@xopcai/xopc 0.0.197 → 0.0.199
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.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-BwmdJ5pv.js → activity-store-DYVN1hRp.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-C5st7lt5.js → agent-avatar-dicebear-Bt70bZjv.js} +1 -1
- package/dist/gateway/static/root/assets/agents-D19uNmJf.js +68 -0
- package/dist/gateway/static/root/assets/{api-BM1hNzjw.js → api-B8mzbAle.js} +1 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-B4x7JfL8.js +1 -0
- package/dist/gateway/static/root/assets/appearance-settings-Dwdagf-Q.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-DkTiesxe.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-qL07mwnY.js → archive-plugin-Cv0VXKLm.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-CqSobpdi.js → attachment-load-CgidKrXn.js} +1 -1
- package/dist/gateway/static/root/assets/automations-page-BR6qMOVr.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DBRPyLYE.js → binary-plugins-DN3CQgIq.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-6wG1LU7t.js → block-editor-BwkSl1F_.js} +5 -5
- package/dist/gateway/static/root/assets/browser-settings-page-CDFQWAxI.js +8 -0
- package/dist/gateway/static/root/assets/browser-workflow-inputs-_ndaecsf.js +1 -0
- package/dist/gateway/static/root/assets/{browser-workflows-page-BEu3E0et.js → browser-workflows-page-C_I31wLm.js} +2 -2
- package/dist/gateway/static/root/assets/button-CSEbl4zT.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-D41mssOq.js +7 -0
- package/dist/gateway/static/root/assets/{capability-presets-api-BoOzFotX.js → capability-presets-api-Dy1jZJKs.js} +1 -1
- package/dist/gateway/static/root/assets/capability-presets-settings-panel-BXgCyuu2.js +3 -0
- package/dist/gateway/static/root/assets/{channel-recipient-api-_8IiTxRB.js → channel-recipient-api-D-9qiuio.js} +1 -1
- package/dist/gateway/static/root/assets/channels-settings-DV5BhAeu.js +1 -0
- package/dist/gateway/static/root/assets/channels-status-swr-B4Rbh3bM.js +1 -0
- package/dist/gateway/static/root/assets/connectors-api-5FEBYguL.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-C_qkEN0T.js +2 -0
- package/dist/gateway/static/root/assets/copy-Dv6d4Dvw.js +1 -0
- package/dist/gateway/static/root/assets/cron-expression-SEFx5rnr.js +2 -0
- package/dist/gateway/static/root/assets/date-picker-D4zCUQJL.js +1 -0
- package/dist/gateway/static/root/assets/dependency-picker-DpQAxS2k.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-CsLR4pWB.js → desktop-pet-B_5G3lQl.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-ClEyoUJe.js +1 -0
- package/dist/gateway/static/root/assets/directory-picker-path-field-AsFWmOjG.js +1 -0
- package/dist/gateway/static/root/assets/dist-BPoKqzeH.js +1 -0
- package/dist/gateway/static/root/assets/dist-DY4Af0fY.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-CD73euAM.js → extension-debug-page-C22Y2o5l.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DAKjpNwd.js → extension-page-C61Ikawk.js} +1 -1
- package/dist/gateway/static/root/assets/extension-settings-page-WlWWcDFr.js +1 -0
- package/dist/gateway/static/root/assets/external-link-DjqjBmc3.js +1 -0
- package/dist/gateway/static/root/assets/form-field-width-DJw_jULe.js +1 -0
- package/dist/gateway/static/root/assets/gateway-config-api-ByIOMQdc.js +1 -0
- package/dist/gateway/static/root/assets/gateway-config-swr-jB0hAhWO.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-CzzS9A17.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry--2njcDpC.js → gateway-startup-retry-C-fRlHCL.js} +1 -1
- package/dist/gateway/static/root/assets/globe-DSSGFWFn.js +1 -0
- package/dist/gateway/static/root/assets/heartbeat-settings-B4A_CXUL.js +1 -0
- package/dist/gateway/static/root/assets/home-page-FVGYYPWo.js +3 -0
- package/dist/gateway/static/root/assets/index-CGbKTCST.js +152 -0
- package/dist/gateway/static/root/assets/index-CR233S0Q.css +1 -0
- package/dist/gateway/static/root/assets/interaction-BmQogeqz.js +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-HMhxgOuD.js → keyboard-shortcuts-settings-BD_TFz0_.js} +1 -1
- package/dist/gateway/static/root/assets/loader-circle-CifKLtgG.js +1 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-BNpkigNb.js +2 -0
- package/dist/gateway/static/root/assets/local-apps-page-BwbUeLfm.js +1 -0
- package/dist/gateway/static/root/assets/{locale-store-Bjvw7jtg.js → locale-store-xULEcFVs.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DXP9OQQt.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-CW2VpqtT.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-split-DvVBewS4.js → markdown-split-B1M9KO16.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-YVj7NVzD.js → media-plugins-B_QlNdqZ.js} +1 -1
- package/dist/gateway/static/root/assets/messages-3qRsLZuX.js +3 -0
- package/dist/gateway/static/root/assets/{notes-page-BDzuL2I9.js → notes-page-BTbD4GmH.js} +1 -1
- package/dist/gateway/static/root/assets/notes-workbench-JRiq7QDW.js +4 -0
- package/dist/gateway/static/root/assets/page-tabs-BaEQMYm_.js +1 -0
- package/dist/gateway/static/root/assets/popover-select-BzdnTy3h.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-CeqtArlZ.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-Bwx_CQht.js → product-open-page-DnalBZZs.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-CjWA13aE.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-jsCkScbG.js +1 -0
- package/dist/gateway/static/root/assets/remote-access-hub-CGPJTEkM.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-Fe05Nus6.js → runtime-tools-settings-panel-cGkBEfg4.js} +4 -4
- package/dist/gateway/static/root/assets/schema-form-CmsrLlxu.js +1 -0
- package/dist/gateway/static/root/assets/sessions-page-BBHzziMd.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-2cGg8-9h.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-draft-Dy10ldo8.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-section-DUWCbaMJ.js +1 -0
- package/dist/gateway/static/root/assets/{settings-loading-skeleton-BRE_-7Da.js → settings-loading-skeleton-Bvy5rdMY.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-C1zxCpqB.js → settings-page-cZSAwsRR.js} +1 -1
- package/dist/gateway/static/root/assets/settings-page-layout-BRQNel6r.js +1 -0
- package/dist/gateway/static/root/assets/settings-shell-dialog-layer-BU3UuiJr.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-Cf06b66-.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-BzA2NCAH.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-xlNKydYY.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-C5Xu93c_.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-Bvde7_i5.js +2 -0
- package/dist/gateway/static/root/assets/{skills-page.utils-CYwFWTso.js → skills-page.utils-vXSqHR7g.js} +1 -1
- package/dist/gateway/static/root/assets/system-settings-panel-9cQGOGCK.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-Bkno4tTe.js +1 -0
- package/dist/gateway/static/root/assets/{theme-store-DtxpMC5S.js → theme-store-CHQRiuCF.js} +1 -1
- package/dist/gateway/static/root/assets/tool-activity-R8V9l6nk.js +1 -0
- package/dist/gateway/static/root/assets/typed-models-lib-q5-Vfqd8.js +1 -0
- package/dist/gateway/static/root/assets/use-autosave-7XfKULPI.js +1 -0
- package/dist/gateway/static/root/assets/user-context-page-CZ9m9aC_.js +1 -0
- package/dist/gateway/static/root/assets/voice-api-key-field-DXr21v-3.js +1 -0
- package/dist/gateway/static/root/assets/work-discovery-overlay-CeG7g_DZ.js +1 -0
- package/dist/gateway/static/root/assets/work-discovery-page-CQWZD03N.js +1 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DqIb1oBB.js → workflow-run-setup-panel-DSQQZP9T.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-Cs-MXFJ1.js +5 -0
- package/dist/gateway/static/root/assets/working-directory-picker-modal-D-IgcHPp.js +1 -0
- package/dist/gateway/static/root/index.html +23 -8
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/tasks.js +54 -2
- package/dist/src/agent/agent-manager.d.ts +1 -0
- package/dist/src/agent/agent-manager.js +1 -0
- package/dist/src/agent/service.js +1 -0
- package/dist/src/agent/service.types.d.ts +1 -0
- package/dist/src/agent/tools/factory.d.ts +2 -0
- package/dist/src/agent/tools/factory.js +2 -1
- package/dist/src/agent/tools/xopc-use-tool.d.ts +1 -0
- package/dist/src/agent/tools/xopc-use-tool.js +56 -6
- package/dist/src/automations/domain/validation.d.ts +40 -0
- package/dist/src/automations/draft/automation-draft-validator.d.ts +4 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/config/rules.js +2 -2
- package/dist/src/gateway/hono/app.d.ts +2 -0
- package/dist/src/gateway/hono/app.js +10 -3
- package/dist/src/gateway/hono/middleware/strict-rate-limit.d.ts +4 -0
- package/dist/src/gateway/hono/middleware/strict-rate-limit.js +8 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -1
- package/dist/src/gateway/hono/routes/config.js +9 -0
- package/dist/src/gateway/hono/routes/deps.d.ts +1 -0
- package/dist/src/gateway/hono/routes/projects.js +55 -0
- package/dist/src/gateway/hono/routes/tasks.js +112 -19
- package/dist/src/gateway/host.d.ts +9 -1
- package/dist/src/gateway/host.js +22 -5
- package/dist/src/gateway/rate-limit/buckets.d.ts +3 -0
- package/dist/src/gateway/rate-limit/buckets.js +12 -0
- package/dist/src/gateway/runtime-config.js +6 -5
- package/dist/src/gateway/security/audit.js +0 -7
- package/dist/src/gateway/server.js +4 -1
- package/dist/src/gateway/service.d.ts +1 -0
- package/dist/src/gateway/service.js +5 -1
- package/dist/src/proactive/actions/service.d.ts +2 -0
- package/dist/src/proactive/actions/service.js +80 -0
- package/dist/src/proactive/execution/insight.js +20 -0
- package/dist/src/proactive/execution/repository.js +8 -2
- package/dist/src/proactive/execution/types.d.ts +14 -0
- package/dist/src/proactive/inbox/repository.js +59 -9
- package/dist/src/proactive/inbox/service.d.ts +2 -2
- package/dist/src/proactive/inbox/service.js +7 -2
- package/dist/src/proactive/inbox/types.d.ts +14 -0
- package/dist/src/proactive/inbox/worker.js +2 -0
- package/dist/src/proactive/scenarios/prompt-composer.js +2 -2
- package/dist/src/storage/sqlite/migrations/118_task_board_rank.sql +6 -0
- package/dist/src/storage/sqlite/migrations/119_proactive_disposition.sql +13 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/migrations/runner.ts +1 -1
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/tasks/home-query-service.d.ts +5 -0
- package/dist/src/tasks/home-query-service.js +7 -2
- package/dist/src/tasks/index.d.ts +1 -0
- package/dist/src/tasks/index.js +4 -3
- package/dist/src/tasks/project-monitoring-service.d.ts +9 -0
- package/dist/src/tasks/project-monitoring-service.js +41 -3
- package/dist/src/tasks/project-operating-view-service.d.ts +1 -2
- package/dist/src/tasks/project-operating-view-service.js +26 -23
- package/dist/src/tasks/task-application-service.js +99 -6
- package/dist/src/tasks/task-change-events.d.ts +13 -0
- package/dist/src/tasks/task-change-events.js +29 -0
- package/dist/src/tasks/task-read-model-projector.js +2 -1
- package/dist/src/tasks/task-repository.d.ts +7 -0
- package/dist/src/tasks/task-repository.js +29 -6
- package/dist/src/tunnel/enable-lan-pairing.js +15 -26
- package/dist/src/tunnel/pair-context.js +1 -1
- package/dist/src/tunnel/pair-url.js +1 -1
- package/dist/src/tunnel/tunnel-qr.d.ts +0 -7
- package/dist/src/tunnel/tunnel-qr.js +2 -19
- package/package.json +3 -1
- package/dist/gateway/static/root/assets/agents-Baxfj44y.js +0 -68
- package/dist/gateway/static/root/assets/app-management-settings-panel-S8LhoD6G.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-D8Cd5vDP.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-0uCxKyE5.js +0 -1
- package/dist/gateway/static/root/assets/automations-page-XyDat125.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-CrYNMR4w.js +0 -8
- package/dist/gateway/static/root/assets/browser-workflow-inputs-Abil4puY.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CvMcDhGf.js +0 -7
- package/dist/gateway/static/root/assets/capability-presets-settings-panel-CHJDY-Ih.js +0 -3
- package/dist/gateway/static/root/assets/channels-settings-Ds9BJbcY.js +0 -1
- package/dist/gateway/static/root/assets/channels-status-swr-DPaJSYX_.js +0 -1
- package/dist/gateway/static/root/assets/connectors-api-CgWjgPSI.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-NUs-Zf7F.js +0 -2
- package/dist/gateway/static/root/assets/cron-expression-ZdDBAoqA.js +0 -2
- package/dist/gateway/static/root/assets/dependency-picker-BGeB1jpn.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-CCjT1bdo.js +0 -1
- package/dist/gateway/static/root/assets/directory-picker-path-field-C-Te1QN3.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-BLSNdlgd.js +0 -1
- package/dist/gateway/static/root/assets/gateway-config-api-CQrf0k3D.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CvgH8IJI.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-SPpnqbjl.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BFoD6047.js +0 -3
- package/dist/gateway/static/root/assets/index-84ys9u-K.js +0 -152
- package/dist/gateway/static/root/assets/index-D-srnucP.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-D5uL2_Fd.js +0 -2
- package/dist/gateway/static/root/assets/local-apps-page-DIWkFa3g.js +0 -1
- package/dist/gateway/static/root/assets/logs-page--6v8qq6y.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-DtEuS-kR.js +0 -1
- package/dist/gateway/static/root/assets/messages-DQ5X6cXp.js +0 -3
- package/dist/gateway/static/root/assets/notes-workbench-IdjuNXvH.js +0 -4
- package/dist/gateway/static/root/assets/page-tabs-7bSEWfSX.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-tgLbHgcV.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-DnJXSuM4.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-DckZKlBI.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CfbUHBUH.js +0 -1
- package/dist/gateway/static/root/assets/schema-form-CFfyC4CB.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-BCfCh4My.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Cbi4FvzO.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-gEnEYT_3.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-layout-CRpXF_05.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BcHdpmFf.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-DU8L68A5.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-kjTqH9yY.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-QAGpwzIM.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-lE1-YRdK.js +0 -2
- package/dist/gateway/static/root/assets/system-settings-panel-CVDsiPKn.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-DsM13-cy.js +0 -1
- package/dist/gateway/static/root/assets/typed-models-lib-DelyYgoc.js +0 -1
- package/dist/gateway/static/root/assets/use-autosave-C50Mq5yQ.js +0 -1
- package/dist/gateway/static/root/assets/user-context-page-D-VEOt2A.js +0 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-DYfgTe3Y.js +0 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-DPbujsp3.js +0 -1
- package/dist/gateway/static/root/assets/work-discovery-page-D77opady.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-B9-PLmlX.js +0 -5
- package/dist/src/gateway/ensure-network-cors.d.ts +0 -3
- package/dist/src/gateway/ensure-network-cors.js +0 -23
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sessions-page-BCfCh4My.js","assets/rolldown-runtime-aKtaBQYM.js","assets/vendor-react-BOUWij0V.js","assets/chunk-KS7C4IRE-BMhrPKJC.js","assets/preload-helper-zJ_50EbN.js","assets/vendor-swr-BIWyz7Rc.js","assets/locale-store-Bjvw7jtg.js","assets/messages-DQ5X6cXp.js","assets/cn-JdwAhgNB.js","assets/use-autosave-C50Mq5yQ.js","assets/check-DUBLcKHA.js","assets/createLucideIcon-DPHK1VkS.js","assets/page-tabs-7bSEWfSX.js","assets/settings-advanced-gate-Cbi4FvzO.js","assets/settings-form-section-gEnEYT_3.js","assets/automations-page-XyDat125.js","assets/cron-expression-ZdDBAoqA.js","assets/workflow-run-setup-panel-DqIb1oBB.js","assets/browser-workflow-inputs-Abil4puY.js","assets/browser-workflows-page-BEu3E0et.js","assets/home-page-BFoD6047.js","assets/activity-store-BwmdJ5pv.js","assets/task-detail-page-DsM13-cy.js","assets/dependency-picker-BGeB1jpn.js","assets/projects-page-DckZKlBI.js","assets/project-detail-page-DnJXSuM4.js","assets/style-TIDOdKy0.js","assets/with-selector-aYPsXwdl.js","assets/style-DLioOiRN.css","assets/notes-workbench-IdjuNXvH.js","assets/theme-store-DtxpMC5S.js","assets/middleware-Pd0e8Igk.js","assets/directory-picker-path-field-C-Te1QN3.js","assets/skills-page.utils-CYwFWTso.js","assets/skill-reload-api-QAGpwzIM.js","assets/copy-to-clipboard-HOJ79TWv.js","assets/notes-page-BDzuL2I9.js","assets/workflows-page-B9-PLmlX.js","assets/skills-page-lE1-YRdK.js","assets/config-reload-event-Bjh2zoKp.js","assets/user-context-page-D-VEOt2A.js","assets/connectors-api-CgWjgPSI.js","assets/connectors-page-NUs-Zf7F.js","assets/logs-page--6v8qq6y.js","assets/settings-page-C1zxCpqB.js","assets/agents-Baxfj44y.js","assets/agent-avatar-dicebear-C5st7lt5.js","assets/markdown-editor-TWGaF7Xa.js","assets/vendor-codemirror-DRr7hFaD.js","assets/code-editor-dFzqyDXS.js","assets/capability-presets-api-BoOzFotX.js","assets/typed-models-lib-DelyYgoc.js","assets/channel-recipient-api-_8IiTxRB.js","assets/settings-loading-skeleton-BRE_-7Da.js","assets/settings-page-layout-CRpXF_05.js","assets/browser-settings-page-CrYNMR4w.js","assets/gateway-config-api-CQrf0k3D.js","assets/channels-settings-Ds9BJbcY.js","assets/browser-BLJWD7WI.js","assets/schema-form-CFfyC4CB.js","assets/channels-status-swr-DPaJSYX_.js","assets/apps-page-0uCxKyE5.js","assets/extension-page-DAKjpNwd.js","assets/extension-settings-page-BLSNdlgd.js","assets/voice-api-key-field-DYfgTe3Y.js","assets/extension-debug-page-CD73euAM.js","assets/share-preview-page-DU8L68A5.js","assets/local-apps-page-DIWkFa3g.js","assets/api-BM1hNzjw.js","assets/local-app-workbench-page-D5uL2_Fd.js","assets/product-open-page-Bwx_CQht.js","assets/product-delivery-tRr-7IxY.js","assets/schemas-zIBW3wiV.js","assets/work-discovery-page-D77opady.js","assets/work-discovery-overlay-DPbujsp3.js","assets/setup-status-panel-BcHdpmFf.js","assets/appearance-settings-D8Cd5vDP.js","assets/keyboard-shortcuts-settings-HMhxgOuD.js","assets/system-settings-panel-CVDsiPKn.js","assets/desktop-pet-settings-CCjT1bdo.js","assets/desktop-pet-sprite-DTqXSpqf.js","assets/app-management-settings-panel-S8LhoD6G.js","assets/capabilities-settings-panel-CvMcDhGf.js","assets/gateway-settings-CvgH8IJI.js","assets/runtime-tools-settings-panel-Fe05Nus6.js","assets/heartbeat-settings-SPpnqbjl.js","assets/remote-access-hub-CfbUHBUH.js","assets/shares-settings-kjTqH9yY.js","assets/capability-presets-settings-panel-CHJDY-Ih.js","assets/management-settings-DtEuS-kR.js","assets/mermaid-render-BbqDc_LQ.js","assets/markdown-split-DvVBewS4.js","assets/html-workspace-editor-bXK5tq64.js","assets/binary-plugins-DBRPyLYE.js","assets/use-blob-object-url-D4BFuzZB.js","assets/preview-open-alternatives-tgLbHgcV.js","assets/media-plugins-YVj7NVzD.js","assets/archive-plugin-qL07mwnY.js","assets/jszip.min-DT31yWkU.js","assets/attachment-process-heavy-B2_kr5EA.js","assets/excel-worksheet-utils-EyvwNT4X.js","assets/attachment-load-CqSobpdi.js","assets/desktop-pet-CsLR4pWB.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{i as e,n as t,t as n}from"./rolldown-runtime-aKtaBQYM.js";import{a as r,i,n as a,r as o,t as s}from"./vendor-react-BOUWij0V.js";import{t as c}from"./preload-helper-zJ_50EbN.js";import{a as l,c as u,d,f,i as p,l as m,n as h,o as g,r as _,s as v,t as y,u as b}from"./chunk-KS7C4IRE-BMhrPKJC.js";import{t as x}from"./createLucideIcon-DPHK1VkS.js";import{t as S}from"./check-DUBLcKHA.js";import{t as C}from"./cn-JdwAhgNB.js";import{i as w,n as T,r as E,t as D}from"./dist-CxGUk8J-.js";import{r as O,t as k}from"./copy-to-clipboard-HOJ79TWv.js";import{n as A,t as j}from"./messages-DQ5X6cXp.js";import{c as M,d as N,f as P,l as F,n as I,o as L,p as R,r as z,s as B,t as V,u as H}from"./locale-store-Bjvw7jtg.js";import{t as U}from"./middleware-Pd0e8Igk.js";import{i as W,n as G,r as K,t as ee}from"./theme-store-DtxpMC5S.js";import{a as q,c as te,d as ne,f as re,g as ie,h as ae,i as oe,l as se,m as J,n as ce,o as le,p as ue,r as de,s as fe,t as pe,u as me}from"./Combination-14nmIgxH.js";import{a as he,i as ge,n as _e,r as ve,t as ye}from"./dist-C230izr8.js";import{a as be,i as xe,n as Se,o as Ce,t as we}from"./vendor-swr-BIWyz7Rc.js";import{n as Te,t as Ee}from"./config-reload-event-Bjh2zoKp.js";import{t as De}from"./activity-store-BwmdJ5pv.js";import{a as Oe,c as ke,d as Ae,f as je,i as Me,l as Ne,n as Pe,o as Y,p as Fe,r as Ie,s as Le,t as Re,u as X}from"./schemas-zIBW3wiV.js";import{i as ze,n as Be,r as Ve,t as He}from"./product-delivery-tRr-7IxY.js";import{t as Ue}from"./gateway-startup-retry--2njcDpC.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Z=e(r(),1),We=e(i(),1);function Ge(e){return Z.createElement(l,{flushSync:We.flushSync,...e})}g();var Ke=o(),Q=a(),qe=`[-webkit-app-region:drag]`,Je=`[-webkit-app-region:no-drag]`,Ye=`h-14 shrink-0 items-center`,Xe=x(`a-arrow-down`,[[`path`,{d:`m14 12 4 4 4-4`,key:`buelq4`}],[`path`,{d:`M18 16V7`,key:`ty0viw`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),Ze=x(`a-arrow-up`,[[`path`,{d:`m14 11 4-4 4 4`,key:`1pu57t`}],[`path`,{d:`M18 16V7`,key:`ty0viw`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),Qe=x(`a-large-small`,[[`path`,{d:`m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16`,key:`xik6mr`}],[`path`,{d:`M15.697 14h5.606`,key:`1stdlc`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),$e=x(`accessibility`,[[`circle`,{cx:`16`,cy:`4`,r:`1`,key:`1grugj`}],[`path`,{d:`m18 19 1-7-6 1`,key:`r0i19z`}],[`path`,{d:`m5 8 3-3 5.5 3-2.36 3.5`,key:`9ptxx2`}],[`path`,{d:`M4.24 14.5a5 5 0 0 0 6.88 6`,key:`10kmtu`}],[`path`,{d:`M13.76 17.5a5 5 0 0 0-6.88-6`,key:`2qq6rc`}]]),et=x(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),tt=x(`air-vent`,[[`path`,{d:`M18 17.5a2.5 2.5 0 1 1-4 2.03V12`,key:`yd12zl`}],[`path`,{d:`M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`larmp2`}],[`path`,{d:`M6 8h12`,key:`6g4wlu`}],[`path`,{d:`M6.6 15.572A2 2 0 1 0 10 17v-5`,key:`1x1kqn`}]]),nt=x(`airplay`,[[`path`,{d:`M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1`,key:`ns4c3b`}],[`path`,{d:`m12 15 5 6H7Z`,key:`14qnn2`}]]),rt=x(`alarm-clock-check`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}],[`path`,{d:`m9 13 2 2 4-4`,key:`6343dt`}]]),it=x(`alarm-clock-minus`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}]]),at=x(`alarm-clock-off`,[[`path`,{d:`M6.87 6.87a8 8 0 1 0 11.26 11.26`,key:`3on8tj`}],[`path`,{d:`M19.9 14.25a8 8 0 0 0-9.15-9.15`,key:`15ghsc`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.26 18.67 4 21`,key:`yzmioq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4 4 2 6`,key:`1ycko6`}]]),ot=x(`alarm-clock-plus`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}],[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}]]),st=x(`alarm-smoke`,[[`path`,{d:`M11 21c0-2.5 2-2.5 2-5`,key:`1sicvv`}],[`path`,{d:`M16 21c0-2.5 2-2.5 2-5`,key:`1o3eny`}],[`path`,{d:`m19 8-.8 3a1.25 1.25 0 0 1-1.2 1H7a1.25 1.25 0 0 1-1.2-1L5 8`,key:`1bvca4`}],[`path`,{d:`M21 3a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a1 1 0 0 1 1-1z`,key:`x3qr1j`}],[`path`,{d:`M6 21c0-2.5 2-2.5 2-5`,key:`i3w1gp`}]]),ct=x(`alarm-clock`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M12 9v4l2 2`,key:`1c63tq`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}]]),lt=x(`album`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`polyline`,{points:`11 3 11 11 14 8 17 11 17 3`,key:`1wcwz3`}]]),ut=x(`align-center-horizontal`,[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4`,key:`11f1s0`}],[`path`,{d:`M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4`,key:`t14dx9`}],[`path`,{d:`M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1`,key:`1w07xs`}],[`path`,{d:`M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1`,key:`1apec2`}]]),dt=x(`align-center-vertical`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4`,key:`14d6g8`}],[`path`,{d:`M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4`,key:`1e2lrw`}],[`path`,{d:`M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1`,key:`1fkdwx`}],[`path`,{d:`M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1`,key:`1euafb`}]]),ft=x(`align-end-horizontal`,[[`rect`,{width:`6`,height:`16`,x:`4`,y:`2`,rx:`2`,key:`z5wdxg`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`9`,rx:`2`,key:`um7a8w`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}]]),pt=x(`align-end-vertical`,[[`rect`,{width:`16`,height:`6`,x:`2`,y:`4`,rx:`2`,key:`10wcwx`}],[`rect`,{width:`9`,height:`6`,x:`9`,y:`14`,rx:`2`,key:`4p5bwg`}],[`path`,{d:`M22 22V2`,key:`12ipfv`}]]),mt=x(`align-horizontal-distribute-center`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M17 22v-5`,key:`4b6g73`}],[`path`,{d:`M17 7V2`,key:`hnrr36`}],[`path`,{d:`M7 22v-3`,key:`1r4jpn`}],[`path`,{d:`M7 5V2`,key:`liy1u9`}]]),ht=x(`align-horizontal-distribute-end`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M10 2v20`,key:`uyc634`}],[`path`,{d:`M20 2v20`,key:`1tx262`}]]),gt=x(`align-horizontal-distribute-start`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M4 2v20`,key:`gtpd5x`}],[`path`,{d:`M14 2v20`,key:`tg6bpw`}]]),_t=x(`align-horizontal-justify-center`,[[`rect`,{width:`6`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`dy24zr`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`7`,rx:`2`,key:`13zkjt`}],[`path`,{d:`M12 2v20`,key:`t6zp3m`}]]),vt=x(`align-horizontal-justify-end`,[[`rect`,{width:`6`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`dy24zr`}],[`rect`,{width:`6`,height:`10`,x:`12`,y:`7`,rx:`2`,key:`1ht384`}],[`path`,{d:`M22 2v20`,key:`40qfg1`}]]),yt=x(`align-horizontal-justify-start`,[[`rect`,{width:`6`,height:`14`,x:`6`,y:`5`,rx:`2`,key:`hsirpf`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`7`,rx:`2`,key:`13zkjt`}],[`path`,{d:`M2 2v20`,key:`1ivd8o`}]]),bt=x(`align-horizontal-space-around`,[[`rect`,{width:`6`,height:`10`,x:`9`,y:`7`,rx:`2`,key:`yn7j0q`}],[`path`,{d:`M4 22V2`,key:`tsjzd3`}],[`path`,{d:`M20 22V2`,key:`1bnhr8`}]]),xt=x(`align-horizontal-space-between`,[[`rect`,{width:`6`,height:`14`,x:`3`,y:`5`,rx:`2`,key:`j77dae`}],[`rect`,{width:`6`,height:`10`,x:`15`,y:`7`,rx:`2`,key:`bq30hj`}],[`path`,{d:`M3 2v20`,key:`1d2pfg`}],[`path`,{d:`M21 2v20`,key:`p059bm`}]]),St=x(`align-start-horizontal`,[[`rect`,{width:`6`,height:`16`,x:`4`,y:`6`,rx:`2`,key:`1n4dg1`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`6`,rx:`2`,key:`17khns`}],[`path`,{d:`M22 2H2`,key:`fhrpnj`}]]),Ct=x(`align-start-vertical`,[[`rect`,{width:`9`,height:`6`,x:`6`,y:`14`,rx:`2`,key:`lpm2y7`}],[`rect`,{width:`16`,height:`6`,x:`6`,y:`4`,rx:`2`,key:`rdj6ps`}],[`path`,{d:`M2 2v20`,key:`1ivd8o`}]]),wt=x(`align-vertical-distribute-center`,[[`path`,{d:`M22 17h-3`,key:`1lwga1`}],[`path`,{d:`M22 7h-5`,key:`o2endc`}],[`path`,{d:`M5 17H2`,key:`1gx9xc`}],[`path`,{d:`M7 7H2`,key:`6bq26l`}],[`rect`,{x:`5`,y:`14`,width:`14`,height:`6`,rx:`2`,key:`1qrzuf`}],[`rect`,{x:`7`,y:`4`,width:`10`,height:`6`,rx:`2`,key:`we8e9z`}]]),Tt=x(`align-vertical-distribute-end`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`14`,rx:`2`,key:`jmoj9s`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`4`,rx:`2`,key:`aza5on`}],[`path`,{d:`M2 20h20`,key:`owomy5`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),Et=x(`align-vertical-distribute-start`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`14`,rx:`2`,key:`jmoj9s`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`4`,rx:`2`,key:`aza5on`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M2 4h20`,key:`mda7wb`}]]),Dt=x(`align-vertical-justify-center`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`16`,rx:`2`,key:`1i8z2d`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`2`,rx:`2`,key:`ypihtt`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ot=x(`align-vertical-justify-end`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`12`,rx:`2`,key:`4l4tp2`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`2`,rx:`2`,key:`ypihtt`}],[`path`,{d:`M2 22h20`,key:`272qi7`}]]),kt=x(`align-vertical-justify-start`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`16`,rx:`2`,key:`1i8z2d`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`6`,rx:`2`,key:`13squh`}],[`path`,{d:`M2 2h20`,key:`1ennik`}]]),At=x(`align-vertical-space-around`,[[`rect`,{width:`10`,height:`6`,x:`7`,y:`9`,rx:`2`,key:`b1zbii`}],[`path`,{d:`M22 20H2`,key:`1p1f7z`}],[`path`,{d:`M22 4H2`,key:`1b7qnq`}]]),jt=x(`align-vertical-space-between`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`15`,rx:`2`,key:`1w91an`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`3`,rx:`2`,key:`17wqzy`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M2 3h20`,key:`91anmk`}]]),Mt=x(`ambulance`,[[`path`,{d:`M10 10H6`,key:`1bsnug`}],[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.28a1 1 0 0 0-.684-.948l-1.923-.641a1 1 0 0 1-.578-.502l-1.539-3.076A1 1 0 0 0 16.382 8H14`,key:`lrkjwd`}],[`path`,{d:`M8 8v4`,key:`1fwk8c`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),Nt=x(`ampersand`,[[`path`,{d:`M16 12h3`,key:`4uvgyw`}],[`path`,{d:`M17.5 12a8 8 0 0 1-8 8A4.5 4.5 0 0 1 5 15.5c0-6 8-4 8-8.5a3 3 0 1 0-6 0c0 3 2.5 8.5 12 13`,key:`nfoe1t`}]]),Pt=x(`amphora`,[[`path`,{d:`M10 2v5.632c0 .424-.272.795-.653.982A6 6 0 0 0 6 14c.006 4 3 7 5 8`,key:`1h8rid`}],[`path`,{d:`M10 5H8a2 2 0 0 0 0 4h.68`,key:`3ezsi6`}],[`path`,{d:`M14 2v5.632c0 .424.272.795.652.982A6 6 0 0 1 18 14c0 4-3 7-5 8`,key:`yt6q09`}],[`path`,{d:`M14 5h2a2 2 0 0 1 0 4h-.68`,key:`8f95yk`}],[`path`,{d:`M18 22H6`,key:`mg6kv4`}],[`path`,{d:`M9 2h6`,key:`1jrp98`}]]),Ft=x(`anchor`,[[`path`,{d:`M12 6v16`,key:`nqf5sj`}],[`path`,{d:`m19 13 2-1a9 9 0 0 1-18 0l2 1`,key:`y7qv08`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}]]),It=x(`ampersands`,[[`path`,{d:`M10 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5`,key:`12lh1k`}],[`path`,{d:`M22 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5`,key:`173c68`}]]),Lt=x(`angry`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 16s-1.5-2-4-2-4 2-4 2`,key:`epbg0q`}],[`path`,{d:`M7.5 8 10 9`,key:`olxxln`}],[`path`,{d:`m14 9 2.5-1`,key:`1j6cij`}],[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}]]),Rt=x(`annoyed`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 15h8`,key:`45n4r`}],[`path`,{d:`M8 9h2`,key:`1g203m`}],[`path`,{d:`M14 9h2`,key:`116p9w`}]]),zt=x(`anvil`,[[`path`,{d:`M7 10H6a4 4 0 0 1-4-4 1 1 0 0 1 1-1h4`,key:`1hjpb6`}],[`path`,{d:`M7 5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1 7 7 0 0 1-7 7H8a1 1 0 0 1-1-1z`,key:`1qn45f`}],[`path`,{d:`M9 12v5`,key:`3anwtq`}],[`path`,{d:`M15 12v5`,key:`5xh3zn`}],[`path`,{d:`M5 20a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3 1 1 0 0 1-1 1H6a1 1 0 0 1-1-1`,key:`1fi4x8`}]]),Bt=x(`antenna`,[[`path`,{d:`M2 12 7 2`,key:`117k30`}],[`path`,{d:`m7 12 5-10`,key:`1tvx22`}],[`path`,{d:`m12 12 5-10`,key:`ev1o1a`}],[`path`,{d:`m17 12 5-10`,key:`1e4ti3`}],[`path`,{d:`M4.5 7h15`,key:`vlsxkz`}],[`path`,{d:`M12 16v6`,key:`c8a4gj`}]]),Vt=x(`aperture`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m14.31 8 5.74 9.94`,key:`1y6ab4`}],[`path`,{d:`M9.69 8h11.48`,key:`1wxppr`}],[`path`,{d:`m7.38 12 5.74-9.94`,key:`1grp0k`}],[`path`,{d:`M9.69 16 3.95 6.06`,key:`libnyf`}],[`path`,{d:`M14.31 16H2.83`,key:`x5fava`}],[`path`,{d:`m16.62 12-5.74 9.94`,key:`1vwawt`}]]),Ht=x(`app-window-mac`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M14 8h.01`,key:`1primd`}]]),Ut=x(`app-window`,[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]),Wt=x(`apple`,[[`path`,{d:`M12 6.528V3a1 1 0 0 1 1-1h0`,key:`11qiee`}],[`path`,{d:`M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21`,key:`110c12`}]]),Gt=x(`archive-restore`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),Kt=x(`archive-x`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`m9.5 17 5-5`,key:`nakeu6`}],[`path`,{d:`m9.5 12 5 5`,key:`1hccrj`}]]),qt=x(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),Jt=x(`armchair`,[[`path`,{d:`M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3`,key:`irtipd`}],[`path`,{d:`M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z`,key:`1qyhux`}],[`path`,{d:`M5 18v2`,key:`ppbyun`}],[`path`,{d:`M19 18v2`,key:`gy7782`}]]),Yt=x(`arrow-big-down-dash`,[[`path`,{d:`M14 8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-6.939 6.939a1.207 1.207 0 0 1-1.708 0l-6.94-6.94a.707.707 0 0 1 .5-1.206H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1z`,key:`1b91ra`}],[`path`,{d:`M9 4h6`,key:`10am2s`}]]),Xt=x(`arrow-big-down`,[[`path`,{d:`M9 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-7.086 7.086a1 1 0 0 1-1.414 0l-7.086-7.086a.707.707 0 0 1 .5-1.207H8a1 1 0 0 0 1-1z`,key:`1o3tkq`}]]),Zt=x(`arrow-big-left-dash`,[[`path`,{d:`M13 9a1 1 0 0 1-1-1V4.707a.707.707 0 0 0-1.207-.5l-6.94 6.94a1.207 1.207 0 0 0 0 1.707l6.94 6.94a.707.707 0 0 0 1.207-.5V16a1 1 0 0 1 1-1h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z`,key:`17jy80`}],[`path`,{d:`M20 9v6`,key:`14roy0`}]]),Qt=x(`arrow-big-left`,[[`path`,{d:`M10.793 19.793a.707.707 0 0 0 1.207-.5V16a1 1 0 0 1 1-1h6a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-6a1 1 0 0 1-1-1V4.707a.707.707 0 0 0-1.207-.5l-6.94 6.94a1.207 1.207 0 0 0 0 1.707z`,key:`qbhtmx`}]]),$t=x(`arrow-big-right-dash`,[[`path`,{d:`M11 9a1 1 0 0 0 1-1V4.707a.707.707 0 0 1 1.207-.5l6.94 6.94a1.207 1.207 0 0 1 0 1.707l-6.94 6.94a.707.707 0 0 1-1.207-.5V16a1 1 0 0 0-1-1H9a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z`,key:`9idyso`}],[`path`,{d:`M4 9v6`,key:`bns7oa`}]]),en=x(`arrow-big-right`,[[`path`,{d:`M13.207 19.793a.707.707 0 0 1-1.207-.5V16a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h6a1 1 0 0 0 1-1V4.707a.707.707 0 0 1 1.207-.5l6.94 6.94a1.207 1.207 0 0 1 0 1.707z`,key:`zee3eo`}]]),tn=x(`arrow-big-up-dash`,[[`path`,{d:`M14 16a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-6.939-6.939a1.207 1.207 0 0 0-1.708 0l-6.94 6.94a.707.707 0 0 0 .5 1.206H8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1z`,key:`q57loy`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),nn=x(`arrow-big-up`,[[`path`,{d:`M9 19a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-6a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-7.086-7.086a1 1 0 0 0-1.414 0l-7.086 7.086a.707.707 0 0 0 .5 1.207H8a1 1 0 0 1 1 1z`,key:`106j91`}]]),rn=x(`arrow-down-0-1`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`rect`,{x:`15`,y:`4`,width:`4`,height:`6`,ry:`2`,key:`1bwicg`}],[`path`,{d:`M17 20v-6h-2`,key:`1qp1so`}],[`path`,{d:`M15 20h4`,key:`1j968p`}]]),an=x(`arrow-down-1-0`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M17 10V4h-2`,key:`zcsr5x`}],[`path`,{d:`M15 10h4`,key:`id2lce`}],[`rect`,{x:`15`,y:`14`,width:`4`,height:`6`,ry:`2`,key:`33xykx`}]]),on=x(`arrow-down-from-line`,[[`path`,{d:`M19 3H5`,key:`1236rx`}],[`path`,{d:`M12 21V7`,key:`gj6g52`}],[`path`,{d:`m6 15 6 6 6-6`,key:`h15q88`}]]),sn=x(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),cn=x(`arrow-down-left`,[[`path`,{d:`M17 7 7 17`,key:`15tmo1`}],[`path`,{d:`M17 17H7V7`,key:`1org7z`}]]),ln=x(`arrow-down-narrow-wide`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h4`,key:`6d7r33`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h10`,key:`1438ji`}]]),un=x(`arrow-down-right`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),dn=x(`arrow-down-to-dot`,[[`path`,{d:`M12 2v14`,key:`jyx4ut`}],[`path`,{d:`m19 9-7 7-7-7`,key:`1oe3oy`}],[`circle`,{cx:`12`,cy:`21`,r:`1`,key:`o0uj5v`}]]),fn=x(`arrow-down-to-line`,[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]),pn=x(`arrow-down-up`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`m21 8-4-4-4 4`,key:`1c9v7m`}],[`path`,{d:`M17 4v16`,key:`7dpous`}]]),eee=x(`arrow-down-wide-narrow`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h10`,key:`1w87gc`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}]]),mn=x(`arrow-down-z-a`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M15 4h5l-5 6h5`,key:`8asdl1`}],[`path`,{d:`M15 20v-3.5a2.5 2.5 0 0 1 5 0V20`,key:`r6l5cz`}],[`path`,{d:`M20 18h-5`,key:`18j1r2`}]]),hn=x(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),gn=x(`arrow-left-from-line`,[[`path`,{d:`m9 6-6 6 6 6`,key:`7v63n9`}],[`path`,{d:`M3 12h14`,key:`13k4hi`}],[`path`,{d:`M21 19V5`,key:`b4bplr`}]]),_n=x(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),vn=x(`arrow-left-to-line`,[[`path`,{d:`M3 19V5`,key:`rwsyhb`}],[`path`,{d:`m13 6-6 6 6 6`,key:`1yhaz7`}],[`path`,{d:`M7 12h14`,key:`uoisry`}]]),yn=x(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),tee=x(`arrow-right-from-line`,[[`path`,{d:`M3 5v14`,key:`1nt18q`}],[`path`,{d:`M21 12H7`,key:`13ipq5`}],[`path`,{d:`m15 18 6-6-6-6`,key:`6tx3qv`}]]),nee=x(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),ree=x(`arrow-right-to-line`,[[`path`,{d:`M17 12H3`,key:`8awo09`}],[`path`,{d:`m11 18 6-6-6-6`,key:`8c2y43`}],[`path`,{d:`M21 5v14`,key:`nzette`}]]),bn=x(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),iee=x(`arrow-up-0-1`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`rect`,{x:`15`,y:`4`,width:`4`,height:`6`,ry:`2`,key:`1bwicg`}],[`path`,{d:`M17 20v-6h-2`,key:`1qp1so`}],[`path`,{d:`M15 20h4`,key:`1j968p`}]]),aee=x(`arrow-up-1-0`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M17 10V4h-2`,key:`zcsr5x`}],[`path`,{d:`M15 10h4`,key:`id2lce`}],[`rect`,{x:`15`,y:`14`,width:`4`,height:`6`,ry:`2`,key:`33xykx`}]]),xn=x(`arrow-up-a-z`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),Sn=x(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),Cn=x(`arrow-up-from-dot`,[[`path`,{d:`m5 9 7-7 7 7`,key:`1hw5ic`}],[`path`,{d:`M12 16V2`,key:`ywoabb`}],[`circle`,{cx:`12`,cy:`21`,r:`1`,key:`o0uj5v`}]]),wn=x(`arrow-up-from-line`,[[`path`,{d:`m18 9-6-6-6 6`,key:`kcunyi`}],[`path`,{d:`M12 3v14`,key:`7cf3v8`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Tn=x(`arrow-up-left`,[[`path`,{d:`M7 17V7h10`,key:`11bw93`}],[`path`,{d:`M17 17 7 7`,key:`2786uv`}]]),En=x(`arrow-up-narrow-wide`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}],[`path`,{d:`M11 16h7`,key:`uosisv`}],[`path`,{d:`M11 20h10`,key:`jvxblo`}]]),Dn=x(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),On=x(`arrow-up-to-line`,[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]),kn=x(`arrow-up-wide-narrow`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 16h7`,key:`uosisv`}],[`path`,{d:`M11 20h4`,key:`1krc32`}]]),An=x(`arrow-up-z-a`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M15 4h5l-5 6h5`,key:`8asdl1`}],[`path`,{d:`M15 20v-3.5a2.5 2.5 0 0 1 5 0V20`,key:`r6l5cz`}],[`path`,{d:`M20 18h-5`,key:`18j1r2`}]]),jn=x(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),Mn=x(`arrows-up-from-line`,[[`path`,{d:`m4 6 3-3 3 3`,key:`9aidw8`}],[`path`,{d:`M7 17V3`,key:`19qxw1`}],[`path`,{d:`m14 6 3-3 3 3`,key:`6iy689`}],[`path`,{d:`M17 17V3`,key:`o0fmgi`}],[`path`,{d:`M4 21h16`,key:`1h09gz`}]]),Nn=x(`asterisk`,[[`path`,{d:`M12 6v12`,key:`1vza4d`}],[`path`,{d:`M17.196 9 6.804 15`,key:`1ah31z`}],[`path`,{d:`m6.804 9 10.392 6`,key:`1b6pxd`}]]),Pn=x(`astroid`,[[`path`,{d:`M12.983 21.186a1 1 0 0 1-1.966 0 10 10 0 0 0-8.203-8.203 1 1 0 0 1 0-1.966 10 10 0 0 0 8.203-8.203 1 1 0 0 1 1.966 0 10 10 0 0 0 8.203 8.203 1 1 0 0 1 0 1.966 10 10 0 0 0-8.203 8.203`,key:`1tipus`}]]),Fn=x(`at-sign`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]),In=x(`atom`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z`,key:`1l2ple`}],[`path`,{d:`M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z`,key:`1wam0m`}]]),Ln=x(`audio-lines`,[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]),Rn=x(`audio-waveform`,[[`path`,{d:`M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2`,key:`57tc96`}]]),zn=x(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),Bn=x(`axe`,[[`path`,{d:`m14 12-8.381 8.38a1 1 0 0 1-3.001-3L11 9`,key:`5z9253`}],[`path`,{d:`M15 15.5a.5.5 0 0 0 .5.5A6.5 6.5 0 0 0 22 9.5a.5.5 0 0 0-.5-.5h-1.672a2 2 0 0 1-1.414-.586l-5.062-5.062a1.205 1.205 0 0 0-1.704 0L9.352 5.648a1.205 1.205 0 0 0 0 1.704l5.062 5.062A2 2 0 0 1 15 13.828z`,key:`19zklq`}]]),Vn=x(`axis-3d`,[[`path`,{d:`M13.5 10.5 15 9`,key:`1nsxvm`}],[`path`,{d:`M4 4v15a1 1 0 0 0 1 1h15`,key:`1w6lkd`}],[`path`,{d:`M4.293 19.707 6 18`,key:`3g1p8c`}],[`path`,{d:`m9 15 1.5-1.5`,key:`1xfbes`}]]),Hn=x(`badge-alert`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Un=x(`backpack`,[[`path`,{d:`M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z`,key:`1ol0lm`}],[`path`,{d:`M8 10h8`,key:`c7uz4u`}],[`path`,{d:`M8 18h8`,key:`1no2b1`}],[`path`,{d:`M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6`,key:`1fr6do`}],[`path`,{d:`M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2`,key:`donm21`}]]),Wn=x(`badge-cent`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M12 7v10`,key:`jspqdw`}],[`path`,{d:`M15.4 10a4 4 0 1 0 0 4`,key:`2eqtx8`}]]),Gn=x(`baby`,[[`path`,{d:`M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5`,key:`1u7htd`}],[`path`,{d:`M15 12h.01`,key:`1k8ypt`}],[`path`,{d:`M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1`,key:`11xh7x`}],[`path`,{d:`M9 12h.01`,key:`157uk2`}]]),Kn=x(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),qn=x(`badge-dollar-sign`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8`,key:`1h4pet`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}]]),Jn=x(`badge-euro`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M7 12h5`,key:`gblrwe`}],[`path`,{d:`M15 9.4a4 4 0 1 0 0 5.2`,key:`1makmb`}]]),Yn=x(`badge-indian-rupee`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M8 8h8`,key:`1bis0t`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`m13 17-5-1h1a4 4 0 0 0 0-8`,key:`nu2bwa`}]]),Xn=x(`badge-info`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`12`,x2:`12`,y1:`16`,y2:`12`,key:`1y1yb1`}],[`line`,{x1:`12`,x2:`12.01`,y1:`8`,y2:`8`,key:`110wyk`}]]),Zn=x(`badge-japanese-yen`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 8 3 3v7`,key:`17yadx`}],[`path`,{d:`m12 11 3-3`,key:`p4cfq1`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}],[`path`,{d:`M9 16h6`,key:`8wimt3`}]]),Qn=x(`badge-minus`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),$n=x(`badge-percent`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 15h.01`,key:`lqbp3k`}]]),er=x(`badge-pound-sterling`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M8 12h4`,key:`qz6y1c`}],[`path`,{d:`M10 16V9.5a2.5 2.5 0 0 1 5 0`,key:`3mlbjk`}],[`path`,{d:`M8 16h7`,key:`sbedsn`}]]),tr=x(`badge-plus`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`16`,key:`10p56q`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),nr=x(`badge-question-mark`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`line`,{x1:`12`,x2:`12.01`,y1:`17`,y2:`17`,key:`io3f8k`}]]),rr=x(`badge-russian-ruble`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M9 16h5`,key:`1syiyw`}],[`path`,{d:`M9 12h5a2 2 0 1 0 0-4h-3v9`,key:`1ge9c1`}]]),ir=x(`badge-turkish-lira`,[[`path`,{d:`M11 7v10a5 5 0 0 0 5-5`,key:`1ja3ih`}],[`path`,{d:`m15 8-6 3`,key:`4x0uwz`}],[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76`,key:`18242g`}]]),ar=x(`badge-swiss-franc`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M11 17V8h4`,key:`1bfq6y`}],[`path`,{d:`M11 12h3`,key:`2eqnfz`}],[`path`,{d:`M9 16h4`,key:`1skf3a`}]]),or=x(`badge-x`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`15`,x2:`9`,y1:`9`,y2:`15`,key:`f7djnv`}],[`line`,{x1:`9`,x2:`15`,y1:`9`,y2:`15`,key:`1shsy8`}]]),sr=x(`badge`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}]]),cr=x(`balloon`,[[`path`,{d:`M12 16v1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v1`,key:`2nz4b`}],[`path`,{d:`M12 6a2 2 0 0 1 2 2`,key:`7y7d82`}],[`path`,{d:`M18 8c0 4-3.5 8-6 8s-6-4-6-8a6 6 0 0 1 12 0`,key:`vqb5s3`}]]),lr=x(`baggage-claim`,[[`path`,{d:`M22 18H6a2 2 0 0 1-2-2V7a2 2 0 0 0-2-2`,key:`4irg2o`}],[`path`,{d:`M17 14V4a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v10`,key:`14fcyx`}],[`rect`,{width:`13`,height:`8`,x:`8`,y:`6`,rx:`1`,key:`o6oiis`}],[`circle`,{cx:`18`,cy:`20`,r:`2`,key:`t9985n`}],[`circle`,{cx:`9`,cy:`20`,r:`2`,key:`e5v82j`}]]),ur=x(`bandage`,[[`path`,{d:`M10 10.01h.01`,key:`1e9xi7`}],[`path`,{d:`M10 14.01h.01`,key:`ac23bv`}],[`path`,{d:`M14 10.01h.01`,key:`2wfrvf`}],[`path`,{d:`M14 14.01h.01`,key:`8tw8yn`}],[`path`,{d:`M18 6v12`,key:`1bcixs`}],[`path`,{d:`M6 6v12`,key:`vkc79e`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`12`,rx:`2`,key:`1wpnh2`}]]),dr=x(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),fr=x(`banknote-arrow-down`,[[`path`,{d:`M12 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5`,key:`x6cv4u`}],[`path`,{d:`m16 19 3 3 3-3`,key:`1ibux0`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M6 12h.01`,key:`c2rlol`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),pr=x(`banknote-arrow-up`,[[`path`,{d:`M12 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5`,key:`x6cv4u`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M19 22v-6`,key:`qhmiwi`}],[`path`,{d:`m22 19-3-3-3 3`,key:`rn6bg2`}],[`path`,{d:`M6 12h.01`,key:`c2rlol`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),mr=x(`banana`,[[`path`,{d:`M4 13c3.5-2 8-2 10 2a5.5 5.5 0 0 1 8 5`,key:`1cscit`}],[`path`,{d:`M5.15 17.89c5.52-1.52 8.65-6.89 7-12C11.55 4 11.5 2 13 2c3.22 0 5 5.5 5 8 0 6.5-4.2 12-10.49 12C5.11 22 2 22 2 20c0-1.5 1.14-1.55 3.15-2.11Z`,key:`1y1nbv`}]]),hr=x(`banknote-x`,[[`path`,{d:`M13 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5`,key:`16nib6`}],[`path`,{d:`m17 17 5 5`,key:`p7ous7`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`m22 17-5 5`,key:`gqnmv0`}],[`path`,{d:`M6 12h.01`,key:`c2rlol`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),gr=x(`banknote`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M6 12h.01M18 12h.01`,key:`113zkx`}]]),_r=x(`barcode`,[[`path`,{d:`M3 5v14`,key:`1nt18q`}],[`path`,{d:`M8 5v14`,key:`1ybrkv`}],[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`M17 5v14`,key:`ycjyhj`}],[`path`,{d:`M21 5v14`,key:`nzette`}]]),vr=x(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),yr=x(`barrel`,[[`path`,{d:`M10 3a41 41 0 0 0 0 18`,key:`1qcnzb`}],[`path`,{d:`M14 3a41 41 0 0 1 0 18`,key:`547vd4`}],[`path`,{d:`M17 3a2 2 0 0 1 1.68.92 15.25 15.25 0 0 1 0 16.16A2 2 0 0 1 17 21H7a2 2 0 0 1-1.68-.92 15.25 15.25 0 0 1 0-16.16A2 2 0 0 1 7 3z`,key:`1wepyy`}],[`path`,{d:`M3.84 17h16.32`,key:`1wh981`}],[`path`,{d:`M3.84 7h16.32`,key:`19jf4x`}]]),br=x(`bath`,[[`path`,{d:`M10 4 8 6`,key:`1rru8s`}],[`path`,{d:`M17 19v2`,key:`ts1sot`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M7 19v2`,key:`12npes`}],[`path`,{d:`M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5`,key:`14ym8i`}]]),xr=x(`battery-charging`,[[`path`,{d:`m11 7-3 5h4l-3 5`,key:`b4a64w`}],[`path`,{d:`M14.856 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.935`,key:`lre1cr`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M5.14 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.936`,key:`13q5k0`}]]),Sr=x(`battery-medium`,[[`path`,{d:`M10 14v-4`,key:`suye4c`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 14v-4`,key:`14a6bd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Cr=x(`battery-full`,[[`path`,{d:`M10 10v4`,key:`1mb2ec`}],[`path`,{d:`M14 10v4`,key:`1nt88p`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 10v4`,key:`1n77qd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),wr=x(`battery-low`,[[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 14v-4`,key:`14a6bd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Tr=x(`battery-plus`,[[`path`,{d:`M10 9v6`,key:`17i7lo`}],[`path`,{d:`M12.543 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.605`,key:`o09yah`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M7 12h6`,key:`iekk3h`}],[`path`,{d:`M7.606 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.606`,key:`xyqvf1`}]]),Er=x(`battery`,[[`path`,{d:`M 22 14 L 22 10`,key:`nqc4tb`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Dr=x(`battery-warning`,[[`path`,{d:`M10 17h.01`,key:`nbq80n`}],[`path`,{d:`M10 7v6`,key:`nne03l`}],[`path`,{d:`M14 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2`,key:`1m83kb`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`h8lgfh`}]]),Or=x(`beaker`,[[`path`,{d:`M4.5 3h15`,key:`c7n0jr`}],[`path`,{d:`M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3`,key:`m1uhx7`}],[`path`,{d:`M6 14h12`,key:`4cwo0f`}]]),kr=x(`bean-off`,[[`path`,{d:`M9 9c-.64.64-1.521.954-2.402 1.165A6 6 0 0 0 8 22a13.96 13.96 0 0 0 9.9-4.1`,key:`bq3udt`}],[`path`,{d:`M10.75 5.093A6 6 0 0 1 22 8c0 2.411-.61 4.68-1.683 6.66`,key:`17ccse`}],[`path`,{d:`M5.341 10.62a4 4 0 0 0 6.487 1.208M10.62 5.341a4.015 4.015 0 0 1 2.039 2.04`,key:`18zqgq`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Ar=x(`bean`,[[`path`,{d:`M10.165 6.598C9.954 7.478 9.64 8.36 9 9c-.64.64-1.521.954-2.402 1.165A6 6 0 0 0 8 22c7.732 0 14-6.268 14-14a6 6 0 0 0-11.835-1.402Z`,key:`1tvzk7`}],[`path`,{d:`M5.341 10.62a4 4 0 1 0 5.279-5.28`,key:`2cyri2`}]]),jr=x(`bed-double`,[[`path`,{d:`M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8`,key:`1k78r4`}],[`path`,{d:`M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4`,key:`fb3tl2`}],[`path`,{d:`M12 4v6`,key:`1dcgq2`}],[`path`,{d:`M2 18h20`,key:`ajqnye`}]]),Mr=x(`bed`,[[`path`,{d:`M2 4v16`,key:`vw9hq8`}],[`path`,{d:`M2 8h18a2 2 0 0 1 2 2v10`,key:`1dgv2r`}],[`path`,{d:`M2 17h20`,key:`18nfp3`}],[`path`,{d:`M6 8v9`,key:`1yriud`}]]),Nr=x(`bed-single`,[[`path`,{d:`M3 20v-8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8`,key:`1wm6mi`}],[`path`,{d:`M5 10V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4`,key:`4k93s5`}],[`path`,{d:`M3 18h18`,key:`1h113x`}]]),Pr=x(`beef-off`,[[`path`,{d:`M11.771 6.109a2.5 2.5 0 0 1 3.12 3.12`,key:`3w1grc`}],[`path`,{d:`M17.852 12.185a6.5 6.5 0 0 0-9.035-9.04`,key:`1xgl7b`}],[`path`,{d:`M18.013 18.013C15.029 20.349 10.831 22 7 22a3 3 0 0 1-2.68-1.66L2.4 16.5`,key:`3m3yc0`}],[`path`,{d:`m18.5 6 2.19 4.5a6.48 6.48 0 0 1-.139 4.393`,key:`1rvkn7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M6.355 6.37a7 7 0 0 0-.075.23c-1.1 3.13-.78 3.9-3.18 6.08A3 3 0 0 0 5 18c3.356 0 6.993-1.267 9.85-3.151`,key:`54713r`}]]),Fr=x(`beef`,[[`path`,{d:`M16.4 13.7A6.5 6.5 0 1 0 6.28 6.6c-1.1 3.13-.78 3.9-3.18 6.08A3 3 0 0 0 5 18c4 0 8.4-1.8 11.4-4.3`,key:`cisjcv`}],[`path`,{d:`m18.5 6 2.19 4.5a6.48 6.48 0 0 1-2.29 7.2C15.4 20.2 11 22 7 22a3 3 0 0 1-2.68-1.66L2.4 16.5`,key:`5byaag`}],[`circle`,{cx:`12.5`,cy:`8.5`,r:`2.5`,key:`9738u8`}]]),Ir=x(`beer-off`,[[`path`,{d:`M13 13v5`,key:`igwfh0`}],[`path`,{d:`M17 11.47V8`,key:`16yw0g`}],[`path`,{d:`M17 11h1a3 3 0 0 1 2.745 4.211`,key:`1xbt65`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-3`,key:`c55o3e`}],[`path`,{d:`M7.536 7.535C6.766 7.649 6.154 8 5.5 8a2.5 2.5 0 0 1-1.768-4.268`,key:`1ydug7`}],[`path`,{d:`M8.727 3.204C9.306 2.767 9.885 2 11 2c1.56 0 2 1.5 3 1.5s1.72-.5 2.5-.5a1 1 0 1 1 0 5c-.78 0-1.5-.5-2.5-.5a3.149 3.149 0 0 0-.842.12`,key:`q81o7q`}],[`path`,{d:`M9 14.6V18`,key:`20ek98`}]]),Lr=x(`beer`,[[`path`,{d:`M17 11h1a3 3 0 0 1 0 6h-1`,key:`1yp76v`}],[`path`,{d:`M9 12v6`,key:`1u1cab`}],[`path`,{d:`M13 12v6`,key:`1sugkk`}],[`path`,{d:`M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z`,key:`1510fo`}],[`path`,{d:`M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`19jb7n`}]]),Rr=x(`bell-check`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`m15 8 2 2 4-4`,key:`sbrgsm`}],[`path`,{d:`M16.8607 4.4824A6 6 0 0 0 6 8C6 12.499 4.589 13.956 3.262 15.326`,key:`qcog4a`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17H20A1 1 0 0 0 20.74 15.327C20.209 14.779 19.665 14.218 19.203 13.454`,key:`mxnnoh`}]]),zr=x(`bell-dot`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M11.68 2.009A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673c-.824-.85-1.678-1.731-2.21-3.348`,key:`xaq59h`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),Br=x(`bell-electric`,[[`path`,{d:`M18.518 17.347A7 7 0 0 1 14 19`,key:`1emhpo`}],[`path`,{d:`M18.8 4A11 11 0 0 1 20 9`,key:`127b67`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`circle`,{cx:`9`,cy:`9`,r:`7`,key:`p2h5vp`}],[`rect`,{x:`4`,y:`16`,width:`10`,height:`6`,rx:`2`,key:`bfnviv`}]]),Vr=x(`bell-minus`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M15 8h6`,key:`8ybuxh`}],[`path`,{d:`M16.243 3.757A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673A9.4 9.4 0 0 1 18.667 12`,key:`bdwj86`}]]),Hr=x(`bell-off`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742`,key:`178tsu`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05`,key:`1hqiys`}]]),Ur=x(`bell-plus`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M15 8h6`,key:`8ybuxh`}],[`path`,{d:`M18 5v6`,key:`g5ayrv`}],[`path`,{d:`M20.002 14.464a9 9 0 0 0 .738.863A1 1 0 0 1 20 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 8.75-5.332`,key:`1abcvy`}]]),Wr=x(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),Gr=x(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),Kr=x(`between-horizontal-end`,[[`rect`,{width:`13`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`11xb64`}],[`path`,{d:`m22 15-3-3 3-3`,key:`26chmm`}],[`rect`,{width:`13`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`k6ky7n`}]]),qr=x(`between-vertical-end`,[[`rect`,{width:`7`,height:`13`,x:`3`,y:`3`,rx:`1`,key:`1fdu0f`}],[`path`,{d:`m9 22 3-3 3 3`,key:`17z65a`}],[`rect`,{width:`7`,height:`13`,x:`14`,y:`3`,rx:`1`,key:`1squn4`}]]),Jr=x(`between-vertical-start`,[[`rect`,{width:`7`,height:`13`,x:`3`,y:`8`,rx:`1`,key:`1fjrkv`}],[`path`,{d:`m15 2-3 3-3-3`,key:`1uh6eb`}],[`rect`,{width:`7`,height:`13`,x:`14`,y:`8`,rx:`1`,key:`w3fjg8`}]]),Yr=x(`between-horizontal-start`,[[`rect`,{width:`13`,height:`7`,x:`8`,y:`3`,rx:`1`,key:`pkso9a`}],[`path`,{d:`m2 9 3 3-3 3`,key:`1agib5`}],[`rect`,{width:`13`,height:`7`,x:`8`,y:`14`,rx:`1`,key:`1q5fc1`}]]),Xr=x(`biceps-flexed`,[[`path`,{d:`M12.409 13.017A5 5 0 0 1 22 15c0 3.866-4 7-9 7-4.077 0-8.153-.82-10.371-2.462-.426-.316-.631-.832-.62-1.362C2.118 12.723 2.627 2 10 2a3 3 0 0 1 3 3 2 2 0 0 1-2 2c-1.105 0-1.64-.444-2-1`,key:`1pmlyh`}],[`path`,{d:`M15 14a5 5 0 0 0-7.584 2`,key:`5rb254`}],[`path`,{d:`M9.964 6.825C8.019 7.977 9.5 13 8 15`,key:`kbvsx9`}]]),Zr=x(`binary`,[[`rect`,{x:`14`,y:`14`,width:`4`,height:`6`,rx:`2`,key:`p02svl`}],[`rect`,{x:`6`,y:`4`,width:`4`,height:`6`,rx:`2`,key:`xm4xkj`}],[`path`,{d:`M6 20h4`,key:`1i6q5t`}],[`path`,{d:`M14 10h4`,key:`ru81e7`}],[`path`,{d:`M6 14h2v6`,key:`16z9wg`}],[`path`,{d:`M14 4h2v6`,key:`1idq9u`}]]),Qr=x(`bike`,[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]),$r=x(`binoculars`,[[`path`,{d:`M10 10h4`,key:`tcdvrf`}],[`path`,{d:`M19 7V4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3`,key:`3apit1`}],[`path`,{d:`M20 21a2 2 0 0 0 2-2v-3.851c0-1.39-2-2.962-2-4.829V8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11a2 2 0 0 0 2 2z`,key:`rhpgnw`}],[`path`,{d:`M 22 16 L 2 16`,key:`14lkq7`}],[`path`,{d:`M4 21a2 2 0 0 1-2-2v-3.851c0-1.39 2-2.962 2-4.829V8a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v11a2 2 0 0 1-2 2z`,key:`104b3k`}],[`path`,{d:`M9 7V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3`,key:`14fczp`}]]),ei=x(`biohazard`,[[`circle`,{cx:`12`,cy:`11.9`,r:`2`,key:`e8h31w`}],[`path`,{d:`M6.7 3.4c-.9 2.5 0 5.2 2.2 6.7C6.5 9 3.7 9.6 2 11.6`,key:`17bolr`}],[`path`,{d:`m8.9 10.1 1.4.8`,key:`15ezny`}],[`path`,{d:`M17.3 3.4c.9 2.5 0 5.2-2.2 6.7 2.4-1.2 5.2-.6 6.9 1.5`,key:`wtwa5u`}],[`path`,{d:`m15.1 10.1-1.4.8`,key:`1r0b28`}],[`path`,{d:`M16.7 20.8c-2.6-.4-4.6-2.6-4.7-5.3-.2 2.6-2.1 4.8-4.7 5.2`,key:`m7qszh`}],[`path`,{d:`M12 13.9v1.6`,key:`zfyyim`}],[`path`,{d:`M13.5 5.4c-1-.2-2-.2-3 0`,key:`1bi9q0`}],[`path`,{d:`M17 16.4c.7-.7 1.2-1.6 1.5-2.5`,key:`1rhjqw`}],[`path`,{d:`M5.5 13.9c.3.9.8 1.8 1.5 2.5`,key:`8gsud3`}]]),ti=x(`bird`,[[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20`,key:`oj1oa8`}],[`path`,{d:`m20 7 2 .5-2 .5`,key:`12nv4d`}],[`path`,{d:`M10 18v3`,key:`1yea0a`}],[`path`,{d:`M14 17.75V21`,key:`1pymcb`}],[`path`,{d:`M7 18a6 6 0 0 0 3.84-10.61`,key:`1npnn0`}]]),ni=x(`birdhouse`,[[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m17 18 1.956-11.468`,key:`l5n2ro`}],[`path`,{d:`m3 8 7.82-5.615a2 2 0 0 1 2.36 0L21 8`,key:`1sy6n7`}],[`path`,{d:`M4 18h16`,key:`19g7jn`}],[`path`,{d:`M7 18 5.044 6.532`,key:`1uqdf2`}],[`circle`,{cx:`12`,cy:`10`,r:`2`,key:`1yojzk`}]]),ri=x(`bitcoin`,[[`path`,{d:`M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727`,key:`yr8idg`}]]),ii=x(`blend`,[[`circle`,{cx:`9`,cy:`9`,r:`7`,key:`p2h5vp`}],[`circle`,{cx:`15`,cy:`15`,r:`7`,key:`19ennj`}]]),ai=x(`blender`,[[`path`,{d:`M8 14a2 2 0 0 0-1.963 1.615l-1.018 5.193A1 1 0 0 0 6 22h12a1 1 0 0 0 .981-1.192l-1.018-5.193A2 2 0 0 0 16 14z`,key:`11zxmj`}],[`path`,{d:`m17 2-1 12`,key:`nxm2fw`}],[`path`,{d:`M8.006 14 7 2`,key:`13bxiv`}],[`path`,{d:`M7.565 8.787A5 5 0 0 0 12 8a5 5 0 0 1 4.56-.75`,key:`1s61ad`}],[`path`,{d:`M19 2H5a2 2 0 0 0-2 2v5a2 2 0 0 0 .688 1.5`,key:`gel3rg`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),oi=x(`blinds`,[[`path`,{d:`M3 3h18`,key:`o7r712`}],[`path`,{d:`M20 7H8`,key:`gd2fo2`}],[`path`,{d:`M20 11H8`,key:`1ynp89`}],[`path`,{d:`M10 19h10`,key:`19hjk5`}],[`path`,{d:`M8 15h12`,key:`1yqzne`}],[`path`,{d:`M4 3v14`,key:`fggqzn`}],[`circle`,{cx:`4`,cy:`19`,r:`2`,key:`p3m9r0`}]]),si=x(`blocks`,[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]),ci=x(`bluetooth-connected`,[[`path`,{d:`m7 7 10 10-5 5V2l5 5L7 17`,key:`1q5490`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`12`,key:`1rsjjs`}],[`line`,{x1:`3`,x2:`6`,y1:`12`,y2:`12`,key:`11yl8c`}]]),li=x(`bluetooth-off`,[[`path`,{d:`m17 17-5 5V12l-5 5`,key:`v5aci6`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M14.5 9.5 17 7l-5-5v4.5`,key:`1kddfz`}]]),ui=x(`bluetooth-searching`,[[`path`,{d:`m7 7 10 10-5 5V2l5 5L7 17`,key:`1q5490`}],[`path`,{d:`M20.83 14.83a4 4 0 0 0 0-5.66`,key:`k8tn1j`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}]]),di=x(`bluetooth`,[[`path`,{d:`m7 7 10 10-5 5V2l5 5L7 17`,key:`1q5490`}]]),fi=x(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),pi=x(`bolt`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),mi=x(`bomb`,[[`circle`,{cx:`11`,cy:`13`,r:`9`,key:`hd149`}],[`path`,{d:`M14.35 4.65 16.3 2.7a2.41 2.41 0 0 1 3.4 0l1.6 1.6a2.4 2.4 0 0 1 0 3.4l-1.95 1.95`,key:`jp4j1b`}],[`path`,{d:`m22 2-1.5 1.5`,key:`ay92ug`}]]),hi=x(`book-a`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m8 13 4-7 4 7`,key:`4rari8`}],[`path`,{d:`M9.1 11h5.7`,key:`1gkovt`}]]),gi=x(`book-alert`,[[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M12 6v3`,key:`1m4b9j`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),_i=x(`book-audio`,[[`path`,{d:`M12 6v7`,key:`1f6ttz`}],[`path`,{d:`M16 8v3`,key:`gejaml`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8 8v3`,key:`1qzp49`}]]),vi=x(`bone`,[[`path`,{d:`M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z`,key:`w610uw`}]]),yi=x(`book-copy`,[[`path`,{d:`M5 7a2 2 0 0 0-2 2v11`,key:`1yhqjt`}],[`path`,{d:`M5.803 18H5a2 2 0 0 0 0 4h9.5a.5.5 0 0 0 .5-.5V21`,key:`edzzo5`}],[`path`,{d:`M9 15V4a2 2 0 0 1 2-2h9.5a.5.5 0 0 1 .5.5v14a.5.5 0 0 1-.5.5H11a2 2 0 0 1 0-4h10`,key:`1nwzrg`}]]),bi=x(`book-check`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9 9.5 2 2 4-4`,key:`1dth82`}]]),oee=x(`book-dashed`,[[`path`,{d:`M12 17h1.5`,key:`1gkc67`}],[`path`,{d:`M12 22h1.5`,key:`1my7sn`}],[`path`,{d:`M12 2h1.5`,key:`19tvb7`}],[`path`,{d:`M17.5 22H19a1 1 0 0 0 1-1`,key:`10akbh`}],[`path`,{d:`M17.5 2H19a1 1 0 0 1 1 1v1.5`,key:`1vrfjs`}],[`path`,{d:`M20 14v3h-2.5`,key:`1naeju`}],[`path`,{d:`M20 8.5V10`,key:`1ctpfu`}],[`path`,{d:`M4 10V8.5`,key:`1o3zg5`}],[`path`,{d:`M4 19.5V14`,key:`ob81pf`}],[`path`,{d:`M4 4.5A2.5 2.5 0 0 1 6.5 2H8`,key:`s8vcyb`}],[`path`,{d:`M8 22H6.5a1 1 0 0 1 0-5H8`,key:`1cu73q`}]]),see=x(`book-down`,[[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9 10 3 3 3-3`,key:`zt5b4y`}]]),cee=x(`book-heart`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8.62 9.8A2.25 2.25 0 1 1 12 6.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z`,key:`9v40y5`}]]),lee=x(`book-headphones`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8 12v-2a4 4 0 0 1 8 0v2`,key:`1vsqkj`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}]]),uee=x(`book-image`,[[`path`,{d:`m20 13.7-2.1-2.1a2 2 0 0 0-2.8 0L9.7 17`,key:`q6ojf0`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`circle`,{cx:`10`,cy:`8`,r:`2`,key:`2qkj4p`}]]),dee=x(`book-key`,[[`path`,{d:`M13 2H6.5A2.5 2.5 0 0 0 4 4.5v15`,key:`4azifu`}],[`path`,{d:`M17 2v6`,key:`qgmh37`}],[`path`,{d:`M17 4h2`,key:`13vrzo`}],[`path`,{d:`M20 15.2V21a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`192hzx`}],[`circle`,{cx:`17`,cy:`10`,r:`2`,key:`y0i25j`}]]),fee=x(`book-lock`,[[`path`,{d:`M18 6V4a2 2 0 1 0-4 0v2`,key:`1aquzs`}],[`path`,{d:`M20 15v6a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`1rkj32`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H10`,key:`18wgow`}],[`rect`,{x:`12`,y:`6`,width:`8`,height:`5`,rx:`1`,key:`73l30o`}]]),pee=x(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),mee=x(`book-minus`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),hee=x(`book-open-check`,[[`path`,{d:`M12 21V7`,key:`gj6g52`}],[`path`,{d:`m16 12 2 2 4-4`,key:`mdajum`}],[`path`,{d:`M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3`,key:`8arnkb`}]]),gee=x(`book-open-text`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M16 12h2`,key:`7q9ll5`}],[`path`,{d:`M16 8h2`,key:`msurwy`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}],[`path`,{d:`M6 12h2`,key:`32wvfc`}],[`path`,{d:`M6 8h2`,key:`30oboj`}]]),xi=x(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),_ee=x(`book-plus`,[[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),vee=x(`book-search`,[[`path`,{d:`M11 22H5.5a1 1 0 0 1 0-5h4.501`,key:`mcbepb`}],[`path`,{d:`m21 22-1.879-1.878`,key:`12q7x1`}],[`path`,{d:`M3 19.5v-15A2.5 2.5 0 0 1 5.5 2H18a1 1 0 0 1 1 1v8`,key:`olfd5n`}],[`circle`,{cx:`17`,cy:`18`,r:`3`,key:`82mm0e`}]]),yee=x(`book-text`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8 11h8`,key:`vwpz6n`}],[`path`,{d:`M8 7h6`,key:`1f0q6e`}]]),bee=x(`book-type`,[[`path`,{d:`M10 13h4`,key:`ytezjc`}],[`path`,{d:`M12 6v7`,key:`1f6ttz`}],[`path`,{d:`M16 8V6H8v2`,key:`x8j6u4`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),xee=x(`book-up-2`,[[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M18 2h1a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`161d7n`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2`,key:`1lorq7`}],[`path`,{d:`m9 10 3-3 3 3`,key:`11gsxs`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),See=x(`book-up`,[[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9 10 3-3 3 3`,key:`11gsxs`}]]),Cee=x(`book-user`,[[`path`,{d:`M15 13a3 3 0 1 0-6 0`,key:`10j68g`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}]]),wee=x(`book-x`,[[`path`,{d:`m14.5 7-5 5`,key:`dy991v`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9.5 7 5 5`,key:`s45iea`}]]),Tee=x(`book`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),Eee=x(`bookmark-check`,[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}],[`path`,{d:`m9 10 2 2 4-4`,key:`1gnqz4`}]]),Dee=x(`bookmark-minus`,[[`path`,{d:`M15 10H9`,key:`o6yqo3`}],[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]),Oee=x(`bookmark-off`,[[`path`,{d:`M19 19v1a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5`,key:`nigmce`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.656 3H17a2 2 0 0 1 2 2v8.344`,key:`hlvsa`}]]),kee=x(`bookmark-plus`,[[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M15 10H9`,key:`o6yqo3`}],[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]),Aee=x(`bookmark-x`,[[`path`,{d:`m14.5 7.5-5 5`,key:`3lb6iw`}],[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}],[`path`,{d:`m9.5 7.5 5 5`,key:`ko136h`}]]),Si=x(`bookmark`,[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]),jee=x(`boom-box`,[[`path`,{d:`M4 9V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4`,key:`vvzvr1`}],[`path`,{d:`M8 8v1`,key:`xcqmfk`}],[`path`,{d:`M12 8v1`,key:`1rj8u4`}],[`path`,{d:`M16 8v1`,key:`1q12zr`}],[`rect`,{width:`20`,height:`12`,x:`2`,y:`9`,rx:`2`,key:`igpb89`}],[`circle`,{cx:`8`,cy:`15`,r:`2`,key:`fa4a8s`}],[`circle`,{cx:`16`,cy:`15`,r:`2`,key:`14c3ya`}]]),Mee=x(`bot-message-square`,[[`path`,{d:`M12 6V2H8`,key:`1155em`}],[`path`,{d:`M15 11v2`,key:`i11awn`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 16a2 2 0 0 1-2 2H8.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 4 20.286V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z`,key:`11gyqh`}],[`path`,{d:`M9 11v2`,key:`1ueba0`}]]),Nee=x(`bot-off`,[[`path`,{d:`M13.67 8H18a2 2 0 0 1 2 2v4.33`,key:`7az073`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M22 22 2 2`,key:`1r8tn9`}],[`path`,{d:`M8 8H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 1.414-.586`,key:`s09a7a`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}],[`path`,{d:`M9.67 4H12v2.33`,key:`110xot`}]]),Ci=x(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Pee=x(`bottle-wine`,[[`path`,{d:`M10 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a6 6 0 0 0 1.2 3.6l.6.8A6 6 0 0 1 17 13v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a6 6 0 0 1 1.2-3.6l.6-.8A6 6 0 0 0 10 5z`,key:`blqgoc`}],[`path`,{d:`M17 13h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4`,key:`43jbee`}]]),Fee=x(`bow-arrow`,[[`path`,{d:`M17 3h4v4`,key:`19p9u1`}],[`path`,{d:`M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17`,key:`12t3w9`}],[`path`,{d:`M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05`,key:`ogng5l`}],[`path`,{d:`M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z`,key:`8v3fy2`}],[`path`,{d:`M9.707 14.293 21 3`,key:`ydm3bn`}]]),wi=x(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Iee=x(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Ti=x(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Lee=x(`brackets`,[[`path`,{d:`M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3`,key:`1kt8lf`}],[`path`,{d:`M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3`,key:`gduv9`}]]),Ree=x(`brain-circuit`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M9 13a4.5 4.5 0 0 0 3-4`,key:`10igwf`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M12 13h4`,key:`1ku699`}],[`path`,{d:`M12 18h6a2 2 0 0 1 2 2v1`,key:`105ag5`}],[`path`,{d:`M12 8h8`,key:`1lhi5i`}],[`path`,{d:`M16 8V5a2 2 0 0 1 2-2`,key:`u6izg6`}],[`circle`,{cx:`16`,cy:`13`,r:`.5`,key:`ry7gng`}],[`circle`,{cx:`18`,cy:`3`,r:`.5`,key:`1aiba7`}],[`circle`,{cx:`20`,cy:`21`,r:`.5`,key:`yhc1fs`}],[`circle`,{cx:`20`,cy:`8`,r:`.5`,key:`1e43v0`}]]),zee=x(`brain-cog`,[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`m10.852 9.228-.383-.923`,key:`1fjppe`}],[`path`,{d:`m13.148 14.772.382.924`,key:`je3va1`}],[`path`,{d:`m13.531 8.305-.383.923`,key:`18epck`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 0 0-5.63-1.446 3 3 0 0 0-.368 1.571 4 4 0 0 0-2.525 5.771`,key:`jcbbz1`}],[`path`,{d:`M17.998 5.125a4 4 0 0 1 2.525 5.771`,key:`1kkn7e`}],[`path`,{d:`M19.505 10.294a4 4 0 0 1-1.5 7.706`,key:`18bmuc`}],[`path`,{d:`M4.032 17.483A4 4 0 0 0 11.464 20c.18-.311.892-.311 1.072 0a4 4 0 0 0 7.432-2.516`,key:`uozx0d`}],[`path`,{d:`M4.5 10.291A4 4 0 0 0 6 18`,key:`whdemb`}],[`path`,{d:`M6.002 5.125a3 3 0 0 0 .4 1.375`,key:`1kqy2g`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Ei=x(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Bee=x(`brick-wall-fire`,[[`path`,{d:`M16 3v2.107`,key:`gq8xun`}],[`path`,{d:`M17 9c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 22 17a5 5 0 0 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C13 11.5 16 9 17 9`,key:`1l2pih`}],[`path`,{d:`M21 8.274V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.938`,key:`jrnqjp`}],[`path`,{d:`M3 15h5.253`,key:`xqg7rb`}],[`path`,{d:`M3 9h8.228`,key:`1ppb70`}],[`path`,{d:`M8 15v6`,key:`1stoo3`}],[`path`,{d:`M8 3v6`,key:`vlvjmk`}]]),Vee=x(`brick-wall-shield`,[[`path`,{d:`M12 9v1.258`,key:`iwpddn`}],[`path`,{d:`M16 3v5.46`,key:`d7ew98`}],[`path`,{d:`M21 9.118V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h5.75`,key:`137t5x`}],[`path`,{d:`M22 17.5c0 2.499-1.75 3.749-3.83 4.474a.5.5 0 0 1-.335-.005c-2.085-.72-3.835-1.97-3.835-4.47V14a.5.5 0 0 1 .5-.499c1 0 2.25-.6 3.12-1.36a.6.6 0 0 1 .76-.001c.875.765 2.12 1.36 3.12 1.36a.5.5 0 0 1 .5.5z`,key:`16j3tf`}],[`path`,{d:`M3 15h7`,key:`1qldh6`}],[`path`,{d:`M3 9h12.142`,key:`1yjd6m`}],[`path`,{d:`M8 15v6`,key:`1stoo3`}],[`path`,{d:`M8 3v6`,key:`vlvjmk`}]]),Hee=x(`brick-wall`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 9v6`,key:`199k2o`}],[`path`,{d:`M16 15v6`,key:`8rj2es`}],[`path`,{d:`M16 3v6`,key:`1j6rpj`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 15v6`,key:`1stoo3`}],[`path`,{d:`M8 3v6`,key:`vlvjmk`}]]),Uee=x(`briefcase-business`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M22 13a18.15 18.15 0 0 1-20 0`,key:`12hx5q`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),Wee=x(`briefcase-medical`,[[`path`,{d:`M12 11v4`,key:`a6ujw6`}],[`path`,{d:`M14 13h-4`,key:`1pl8zg`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M18 6v14`,key:`1mu4gy`}],[`path`,{d:`M6 6v14`,key:`1s15cj`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),Gee=x(`briefcase-conveyor-belt`,[[`path`,{d:`M10 20v2`,key:`1n8e1g`}],[`path`,{d:`M14 20v2`,key:`1lq872`}],[`path`,{d:`M18 20v2`,key:`10uadw`}],[`path`,{d:`M21 20H3`,key:`kdqkdp`}],[`path`,{d:`M6 20v2`,key:`a9bc87`}],[`path`,{d:`M8 16V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v12`,key:`17n9tx`}],[`rect`,{x:`4`,y:`6`,width:`16`,height:`10`,rx:`2`,key:`1097i5`}]]),Kee=x(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),qee=x(`bring-to-front`,[[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`2`,key:`yj20xf`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2`,key:`1ltk23`}],[`path`,{d:`M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2`,key:`1q24h9`}]]),Jee=x(`broccoli`,[[`path`,{d:`M10 13a3 3 0 0 1-2.121-5.121`,key:`1oqad0`}],[`path`,{d:`M15.606 14.204c-3.5 1.5-5.899 4.503-8.899 7.503A1 1 0 0 1 6 22c-2 0-4-2-4-4a1 1 0 0 1 .293-.707c1.911-1.911 3.823-3.578 5.347-5.441`,key:`c93qjr`}],[`path`,{d:`M16.573 14.737A4 4 0 0 1 14 11`,key:`1ymr17`}],[`path`,{d:`M7.14 10.907a4 4 0 1 1 2.756-7.43A4 4 0 0 1 16.7 4.48a2 2 0 0 1 2.82 2.82 4 4 0 0 1 1.002 6.805A4 4 0 1 1 13 16`,key:`1kbgad`}]]),Yee=x(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),Xee=x(`brush-cleaning`,[[`path`,{d:`m16 22-1-4`,key:`1ow2iv`}],[`path`,{d:`M19 14a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v1a1 1 0 0 0 1 1`,key:`11gii7`}],[`path`,{d:`M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z`,key:`bju7h4`}],[`path`,{d:`m8 22 1-4`,key:`s3unb`}]]),Di=x(`bubbles`,[[`path`,{d:`M7.001 15.085A1.5 1.5 0 0 1 9 16.5`,key:`y44lvh`}],[`circle`,{cx:`18.5`,cy:`8.5`,r:`3.5`,key:`1wadoa`}],[`circle`,{cx:`7.5`,cy:`16.5`,r:`5.5`,key:`6mdt3g`}],[`circle`,{cx:`7.5`,cy:`4.5`,r:`2.5`,key:`637s54`}]]),Oi=x(`bug-play`,[[`path`,{d:`M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97`,key:`1gnv52`}],[`path`,{d:`M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z`,key:`1weqy9`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),ki=x(`bug-off`,[[`path`,{d:`M12 20v-8`,key:`i3yub9`}],[`path`,{d:`M12.656 7H14a4 4 0 0 1 4 4v1.344`,key:`vvueyn`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M17.123 17.123A6 6 0 0 1 6 14v-3a4 4 0 0 1 1.72-3.287`,key:`1cu21y`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-3.344`,key:`qb08am`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9.712 4.06A3 3 0 0 1 15 6v1.13`,key:`1bvup6`}]]),Ai=x(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),ji=x(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),Mi=x(`building`,[[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M12 6h.01`,key:`1vi96p`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M16 6h.01`,key:`1x0f13`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M8 6h.01`,key:`1dz90k`}],[`path`,{d:`M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3`,key:`cabbwy`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),Ni=x(`bus-front`,[[`path`,{d:`M4 6 2 7`,key:`1mqr15`}],[`path`,{d:`M10 6h4`,key:`1itunk`}],[`path`,{d:`m22 7-2-1`,key:`1umjhc`}],[`rect`,{width:`16`,height:`16`,x:`4`,y:`3`,rx:`2`,key:`1wxw4b`}],[`path`,{d:`M4 11h16`,key:`mpoxn0`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M16 15h.01`,key:`rnfrdf`}],[`path`,{d:`M6 19v2`,key:`1loha6`}],[`path`,{d:`M18 21v-2`,key:`sqyl04`}]]),Pi=x(`bus`,[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]),Fi=x(`cake-slice`,[[`path`,{d:`M16 13H3`,key:`1wpj08`}],[`path`,{d:`M16 17H3`,key:`3lvfcd`}],[`path`,{d:`m7.2 7.9-3.388 2.5A2 2 0 0 0 3 12.01V20a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-8.654c0-2-2.44-6.026-6.44-8.026a1 1 0 0 0-1.082.057L10.4 5.6`,key:`1gmhf7`}],[`circle`,{cx:`9`,cy:`7`,r:`2`,key:`1305pl`}]]),Ii=x(`cable-car`,[[`path`,{d:`M10 3h.01`,key:`lbucoy`}],[`path`,{d:`M14 2h.01`,key:`1k8aa1`}],[`path`,{d:`m2 9 20-5`,key:`1kz0j5`}],[`path`,{d:`M12 12V6.5`,key:`1vbrij`}],[`rect`,{width:`16`,height:`10`,x:`4`,y:`12`,rx:`3`,key:`if91er`}],[`path`,{d:`M9 12v5`,key:`3anwtq`}],[`path`,{d:`M15 12v5`,key:`5xh3zn`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),Li=x(`cable`,[[`path`,{d:`M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z`,key:`trhst0`}],[`path`,{d:`M17 21v-2`,key:`ds4u3f`}],[`path`,{d:`M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10`,key:`1mo9zo`}],[`path`,{d:`M21 21v-2`,key:`eo0ou`}],[`path`,{d:`M3 5V3`,key:`1k5hjh`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z`,key:`1dd30t`}],[`path`,{d:`M7 5V3`,key:`1t1388`}]]),Ri=x(`cake`,[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]),zi=x(`calculator`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`line`,{x1:`8`,x2:`16`,y1:`6`,y2:`6`,key:`x4nwl0`}],[`line`,{x1:`16`,x2:`16`,y1:`14`,y2:`18`,key:`wjye3r`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}]]),Bi=x(`calendar-1`,[[`path`,{d:`M11 14h1v4`,key:`fy54vd`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,key:`12vinp`}]]),Vi=x(`calendar-arrow-down`,[[`path`,{d:`m14 18 4 4 4-4`,key:`1waygx`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M18 14v8`,key:`irew45`}],[`path`,{d:`M21 11.354V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.343`,key:`bse4f3`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Hi=x(`calendar-arrow-up`,[[`path`,{d:`m14 18 4-4 4 4`,key:`ftkppy`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M18 22v-8`,key:`su0gjh`}],[`path`,{d:`M21 11.343V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9`,key:`1exg90`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Ui=x(`calendar-check-2`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 14V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8`,key:`bce9hv`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m16 20 2 2 4-4`,key:`13tcca`}]]),Wi=x(`calendar-check`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m9 16 2 2 4-4`,key:`19s6y9`}]]),Gi=x(`calendar-cog`,[[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m15.228 19.148-.923.383`,key:`51cr3n`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`m16.47 14.305.382.923`,key:`obybxd`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`path`,{d:`M21 10.592V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6`,key:`1pvbig`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Ki=x(`calendar-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`,key:`1osxxc`}],[`path`,{d:`M3 10h5`,key:`r794hk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),qi=x(`calendar-days`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),Ji=x(`calendar-fold`,[[`path`,{d:`M3 20a2 2 0 0 0 2 2h10a2.4 2.4 0 0 0 1.706-.706l3.588-3.588A2.4 2.4 0 0 0 21 16V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`r586nh`}],[`path`,{d:`M15 22v-5a1 1 0 0 1 1-1h5`,key:`xl3app`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Yi=x(`calendar-heart`,[[`path`,{d:`M12.127 22H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.125`,key:`vxdnp4`}],[`path`,{d:`M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z`,key:`15cy7q`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Xi=x(`calendar-minus-2`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M10 16h4`,key:`17e571`}]]),Zi=x(`calendar-minus`,[[`path`,{d:`M16 19h6`,key:`xwg31i`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 15V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5`,key:`1scpom`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Qi=x(`calendar-off`,[[`path`,{d:`M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18`,key:`16swn3`}],[`path`,{d:`M21 15.5V6a2 2 0 0 0-2-2H9.5`,key:`yhw86o`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h7`,key:`1wap6i`}],[`path`,{d:`M21 10h-5.5`,key:`quycpq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),$i=x(`calendar-plus-2`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M10 16h4`,key:`17e571`}],[`path`,{d:`M12 14v4`,key:`1thi36`}]]),ea=x(`calendar-plus`,[[`path`,{d:`M16 19h6`,key:`xwg31i`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M21 12.598V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5`,key:`1glfrc`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),ta=x(`calendar-range`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M17 14h-6`,key:`bkmgh3`}],[`path`,{d:`M13 18H7`,key:`bb0bb7`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M17 18h.01`,key:`1bdyru`}]]),na=x(`calendar-search`,[[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 11.75V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.25`,key:`1jrsq6`}],[`path`,{d:`m22 22-1.875-1.875`,key:`13zax7`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),ra=x(`calendar-sync`,[[`path`,{d:`M11 10v4h4`,key:`172dkj`}],[`path`,{d:`m11 14 1.535-1.605a5 5 0 0 1 8 1.5`,key:`vu0qm5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`m21 18-1.535 1.605a5 5 0 0 1-8-1.5`,key:`1qgeyt`}],[`path`,{d:`M21 22v-4h-4`,key:`hrummi`}],[`path`,{d:`M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3`,key:`mctw84`}],[`path`,{d:`M3 10h4`,key:`1el30a`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),ia=x(`calendar-x-2`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8`,key:`3spt84`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m17 22 5-5`,key:`1k6ppv`}],[`path`,{d:`m17 17 5 5`,key:`p7ous7`}]]),aa=x(`calendar-x`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m14 14-4 4`,key:`rymu2i`}],[`path`,{d:`m10 14 4 4`,key:`3sz06r`}]]),oa=x(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),sa=x(`calendars`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M15.726 21.01A2 2 0 0 1 14 22H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2`,key:`j6srht`}],[`path`,{d:`M18 2v2`,key:`1kh14s`}],[`path`,{d:`M2 13h2`,key:`13gyu8`}],[`path`,{d:`M8 8h14`,key:`12jxz2`}],[`rect`,{x:`8`,y:`3`,width:`14`,height:`14`,rx:`2`,key:`nsru6w`}]]),ca=x(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),la=x(`camera-off`,[[`path`,{d:`M14.564 14.558a3 3 0 1 1-4.122-4.121`,key:`1rnrzw`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 20H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 .819-.175`,key:`1x3arw`}],[`path`,{d:`M9.695 4.024A2 2 0 0 1 10.004 4h3.993a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v7.344`,key:`1i84u0`}]]),ua=x(`candy-off`,[[`path`,{d:`M10 10v7.9`,key:`m8g9tt`}],[`path`,{d:`M11.802 6.145a5 5 0 0 1 6.053 6.053`,key:`dn87i3`}],[`path`,{d:`M14 6.1v2.243`,key:`1kzysn`}],[`path`,{d:`m15.5 15.571-.964.964a5 5 0 0 1-7.071 0 5 5 0 0 1 0-7.07l.964-.965`,key:`3sxy18`}],[`path`,{d:`M16 7V3a1 1 0 0 1 1.707-.707 2.5 2.5 0 0 0 2.152.717 1 1 0 0 1 1.131 1.131 2.5 2.5 0 0 0 .717 2.152A1 1 0 0 1 21 8h-4`,key:`gpb6xx`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8 17v4a1 1 0 0 1-1.707.707 2.5 2.5 0 0 0-2.152-.717 1 1 0 0 1-1.131-1.131 2.5 2.5 0 0 0-.717-2.152A1 1 0 0 1 3 16h4`,key:`qexcha`}]]),da=x(`candy-cane`,[[`path`,{d:`m10.8 5 2.111 4.223`,key:`11kb8w`}],[`path`,{d:`M17.75 7 15 2.1`,key:`12x7e8`}],[`path`,{d:`m4.874 14.647 2.12 4.24`,key:`ccpt4b`}],[`path`,{d:`M5.7 21a2 2 0 0 1-3.5-2l8.6-14a6 6 0 0 1 10.4 6 2 2 0 1 1-3.464-2 2 2 0 1 0-3.464-2z`,key:`u5e8z4`}],[`path`,{d:`m7.906 9.712 2.005 4.411`,key:`1k0qph`}]]),fa=x(`candy`,[[`path`,{d:`M10 7v10.9`,key:`1gynux`}],[`path`,{d:`M14 6.1V17`,key:`116kdf`}],[`path`,{d:`M16 7V3a1 1 0 0 1 1.707-.707 2.5 2.5 0 0 0 2.152.717 1 1 0 0 1 1.131 1.131 2.5 2.5 0 0 0 .717 2.152A1 1 0 0 1 21 8h-4`,key:`gpb6xx`}],[`path`,{d:`M16.536 7.465a5 5 0 0 0-7.072 0l-2 2a5 5 0 0 0 0 7.07 5 5 0 0 0 7.072 0l2-2a5 5 0 0 0 0-7.07`,key:`1tsln4`}],[`path`,{d:`M8 17v4a1 1 0 0 1-1.707.707 2.5 2.5 0 0 0-2.152-.717 1 1 0 0 1-1.131-1.131 2.5 2.5 0 0 0-.717-2.152A1 1 0 0 1 3 16h4`,key:`qexcha`}]]),pa=x(`cannabis-off`,[[`path`,{d:`M12 22v-4c1.5 1.5 3.5 3 6 3 0-1.5-.5-3.5-2-5`,key:`1bqfb7`}],[`path`,{d:`M13.988 8.327C13.902 6.054 13.365 3.82 12 2a9.3 9.3 0 0 0-1.445 2.9`,key:`1p520n`}],[`path`,{d:`M17.375 11.725C18.882 10.53 21 7.841 21 6c-2.324 0-5.08 1.296-6.662 2.684`,key:`q2itvb`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21.024 15.378A15 15 0 0 0 22 15c-.426-1.279-2.67-2.557-4.25-2.907`,key:`j9amvs`}],[`path`,{d:`M6.995 6.992C5.714 6.4 4.29 6 3 6c0 2 2.5 5 4 6-1.5 0-4.5 1.5-5 3 3.5 1.5 6 1 6 1-1.5 1.5-2 3.5-2 5 2.5 0 4.5-1.5 6-3`,key:`8gmd5g`}]]),ma=x(`cannabis`,[[`path`,{d:`M12 22v-4`,key:`1utk9m`}],[`path`,{d:`M7 12c-1.5 0-4.5 1.5-5 3 3.5 1.5 6 1 6 1-1.5 1.5-2 3.5-2 5 2.5 0 4.5-1.5 6-3 1.5 1.5 3.5 3 6 3 0-1.5-.5-3.5-2-5 0 0 2.5.5 6-1-.5-1.5-3.5-3-5-3 1.5-1 4-4 4-6-2.5 0-5.5 1.5-7 3 0-2.5-.5-5-2-7-1.5 2-2 4.5-2 7-1.5-1.5-4.5-3-7-3 0 2 2.5 5 4 6`,key:`1mezod`}]]),ha=x(`captions-off`,[[`path`,{d:`M10.5 5H19a2 2 0 0 1 2 2v8.5`,key:`jqtk4d`}],[`path`,{d:`M17 11h-.5`,key:`1961ue`}],[`path`,{d:`M19 19H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2`,key:`1keqsi`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7 11h4`,key:`1o1z6v`}],[`path`,{d:`M7 15h2.5`,key:`1ina1g`}]]),ga=x(`captions`,[[`rect`,{width:`18`,height:`14`,x:`3`,y:`5`,rx:`2`,ry:`2`,key:`12ruh7`}],[`path`,{d:`M7 15h4M15 15h2M7 11h2M13 11h4`,key:`1ueiar`}]]),_a=x(`car-front`,[[`path`,{d:`m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8`,key:`1imjwt`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M17 14h.01`,key:`7oqj8z`}],[`rect`,{width:`18`,height:`8`,x:`3`,y:`10`,rx:`2`,key:`a7itu8`}],[`path`,{d:`M5 18v2`,key:`ppbyun`}],[`path`,{d:`M19 18v2`,key:`gy7782`}]]),va=x(`car-taxi-front`,[[`path`,{d:`M10 2h4`,key:`n1abiw`}],[`path`,{d:`m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8`,key:`1imjwt`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M17 14h.01`,key:`7oqj8z`}],[`rect`,{width:`18`,height:`8`,x:`3`,y:`10`,rx:`2`,key:`a7itu8`}],[`path`,{d:`M5 18v2`,key:`ppbyun`}],[`path`,{d:`M19 18v2`,key:`gy7782`}]]),ya=x(`car`,[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]),ba=x(`caravan`,[[`path`,{d:`M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2`,key:`19jm3t`}],[`path`,{d:`M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2`,key:`13hakp`}],[`path`,{d:`M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9`,key:`1crci8`}],[`circle`,{cx:`8`,cy:`19`,r:`2`,key:`t8fc5s`}]]),xa=x(`card-sim`,[[`path`,{d:`M12 14v4`,key:`1thi36`}],[`path`,{d:`M14.172 2a2 2 0 0 1 1.414.586l3.828 3.828A2 2 0 0 1 20 7.828V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z`,key:`1o66bk`}],[`path`,{d:`M8 14h8`,key:`1fgep2`}],[`rect`,{x:`8`,y:`10`,width:`8`,height:`8`,rx:`1`,key:`1aonk6`}]]),Sa=x(`carrot`,[[`path`,{d:`M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15.34 15l-2.46-2.46`,key:`rfqxbe`}],[`path`,{d:`M22 9s-1.33-2-3.5-2C16.86 7 15 9 15 9s1.33 2 3.5 2S22 9 22 9z`,key:`6b25w4`}],[`path`,{d:`M15 2s-2 1.33-2 3.5S15 9 15 9s2-1.84 2-3.5C17 3.33 15 2 15 2z`,key:`fn65lo`}]]),Ca=x(`case-lower`,[[`path`,{d:`M10 9v7`,key:`ylp826`}],[`path`,{d:`M14 6v10`,key:`1jy4vg`}],[`circle`,{cx:`17.5`,cy:`12.5`,r:`3.5`,key:`1a9481`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`3.5`,key:`2jlv1r`}]]),wa=x(`case-sensitive`,[[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M22 9v7`,key:`pvm9v3`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}],[`circle`,{cx:`18.5`,cy:`12.5`,r:`3.5`,key:`z97x68`}]]),Ta=x(`case-upper`,[[`path`,{d:`M15 11h4.5a1 1 0 0 1 0 5h-4a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h3a1 1 0 0 1 0 5`,key:`nxs35`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),Ea=x(`cassette-tape`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`circle`,{cx:`8`,cy:`10`,r:`2`,key:`1xl4ub`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`circle`,{cx:`16`,cy:`10`,r:`2`,key:`r14t7q`}],[`path`,{d:`m6 20 .7-2.9A1.4 1.4 0 0 1 8.1 16h7.8a1.4 1.4 0 0 1 1.4 1l.7 3`,key:`l01ucn`}]]),Da=x(`cast`,[[`path`,{d:`M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6`,key:`3zrzxg`}],[`path`,{d:`M2 12a9 9 0 0 1 8 8`,key:`g6cvee`}],[`path`,{d:`M2 16a5 5 0 0 1 4 4`,key:`1y1dii`}],[`line`,{x1:`2`,x2:`2.01`,y1:`20`,y2:`20`,key:`xu2jvo`}]]),Oa=x(`castle`,[[`path`,{d:`M10 5V3`,key:`1y54qe`}],[`path`,{d:`M14 5V3`,key:`m6isi`}],[`path`,{d:`M15 21v-3a3 3 0 0 0-6 0v3`,key:`lbp5hj`}],[`path`,{d:`M18 3v8`,key:`2ollhf`}],[`path`,{d:`M18 5H6`,key:`98imr9`}],[`path`,{d:`M22 11H2`,key:`1lmjae`}],[`path`,{d:`M22 9v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9`,key:`1rly83`}],[`path`,{d:`M6 3v8`,key:`csox7g`}]]),ka=x(`cat`,[[`path`,{d:`M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z`,key:`x6xyqk`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M11.25 16.25h1.5L12 17l-.75-.75Z`,key:`12kq1m`}]]),Aa=x(`cctv`,[[`path`,{d:`M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97`,key:`ir91b5`}],[`path`,{d:`M17.106 9.053a1 1 0 0 1 .447 1.341l-3.106 6.211a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.92 2.92 0 0 1 3.92-1.3z`,key:`jlp8i1`}],[`path`,{d:`M2 19h3.76a2 2 0 0 0 1.8-1.1L9 15`,key:`19bib8`}],[`path`,{d:`M2 21v-4`,key:`l40lih`}],[`path`,{d:`M7 9h.01`,key:`19b3jx`}]]),ja=x(`chart-area`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z`,key:`q0gr47`}]]),Ma=x(`cctv-off`,[[`path`,{d:`m12.309 6.652 4.797 2.401a1 1 0 0 1 .447 1.341l-.501 1.001.605.605h2.725a1 1 0 0 1 .894 1.447l-.724 1.448`,key:`e75roo`}],[`path`,{d:`m15.166 15.166-.719 1.439a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.9 2.9 0 0 1 .873-1.037`,key:`1h9o5r`}],[`path`,{d:`M2 19h3.76a2 2 0 0 0 1.8-1.1l1.441-2.902`,key:`1askrb`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M2 21v-4`,key:`l40lih`}],[`path`,{d:`M7 9h.01`,key:`19b3jx`}]]),Na=x(`chart-bar-big`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`7`,y:`13`,width:`9`,height:`4`,rx:`1`,key:`1iip1u`}],[`rect`,{x:`7`,y:`5`,width:`12`,height:`4`,rx:`1`,key:`1anskk`}]]),Pa=x(`chart-bar-decreasing`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 11h8`,key:`1feolt`}],[`path`,{d:`M7 16h3`,key:`ur6vzw`}],[`path`,{d:`M7 6h12`,key:`sz5b0d`}]]),Fa=x(`chart-bar-increasing`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 11h8`,key:`1feolt`}],[`path`,{d:`M7 16h12`,key:`wsnu98`}],[`path`,{d:`M7 6h3`,key:`w9rmul`}]]),Ia=x(`chart-bar`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 16h8`,key:`srdodz`}],[`path`,{d:`M7 11h12`,key:`127s9w`}],[`path`,{d:`M7 6h3`,key:`w9rmul`}]]),La=x(`chart-bar-stacked`,[[`path`,{d:`M11 13v4`,key:`vyy2rb`}],[`path`,{d:`M15 5v4`,key:`1gx88a`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`7`,y:`13`,width:`9`,height:`4`,rx:`1`,key:`1iip1u`}],[`rect`,{x:`7`,y:`5`,width:`12`,height:`4`,rx:`1`,key:`1anskk`}]]),Ra=x(`chart-candlestick`,[[`path`,{d:`M9 5v4`,key:`14uxtq`}],[`rect`,{width:`4`,height:`6`,x:`7`,y:`9`,rx:`1`,key:`f4fvz0`}],[`path`,{d:`M9 15v2`,key:`r5rk32`}],[`path`,{d:`M17 3v2`,key:`1l2re6`}],[`rect`,{width:`4`,height:`8`,x:`15`,y:`5`,rx:`1`,key:`z38je5`}],[`path`,{d:`M17 13v3`,key:`5l0wba`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}]]),za=x(`chart-column-big`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`15`,y:`5`,width:`4`,height:`12`,rx:`1`,key:`q8uenq`}],[`rect`,{x:`7`,y:`8`,width:`4`,height:`9`,rx:`1`,key:`sr5ea`}]]),Ba=x(`chart-column-decreasing`,[[`path`,{d:`M13 17V9`,key:`1fwyjl`}],[`path`,{d:`M18 17v-3`,key:`1sqioe`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M8 17V5`,key:`1wzmnc`}]]),Va=x(`chart-column-increasing`,[[`path`,{d:`M13 17V9`,key:`1fwyjl`}],[`path`,{d:`M18 17V5`,key:`sfb6ij`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Ha=x(`chart-column-stacked`,[[`path`,{d:`M11 13H7`,key:`t0o9gq`}],[`path`,{d:`M19 9h-4`,key:`rera1j`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`15`,y:`5`,width:`4`,height:`12`,rx:`1`,key:`q8uenq`}],[`rect`,{x:`7`,y:`8`,width:`4`,height:`9`,rx:`1`,key:`sr5ea`}]]),Ua=x(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Wa=x(`chart-gantt`,[[`path`,{d:`M10 6h8`,key:`zvc2xc`}],[`path`,{d:`M12 16h6`,key:`yi5mkt`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M8 11h7`,key:`wz2hg0`}]]),Ga=x(`chart-line`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`m19 9-5 5-4-4-3 3`,key:`2osh9i`}]]),Ka=x(`chart-network`,[[`path`,{d:`m13.11 7.664 1.78 2.672`,key:`go2gg9`}],[`path`,{d:`m14.162 12.788-3.324 1.424`,key:`11x848`}],[`path`,{d:`m20 4-6.06 1.515`,key:`1wxxh7`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`circle`,{cx:`12`,cy:`6`,r:`2`,key:`1jj5th`}],[`circle`,{cx:`16`,cy:`12`,r:`2`,key:`4ma0v8`}],[`circle`,{cx:`9`,cy:`15`,r:`2`,key:`lf2ghp`}]]),qa=x(`chart-no-axes-column-decreasing`,[[`path`,{d:`M5 21V3`,key:`clc1r8`}],[`path`,{d:`M12 21V9`,key:`uvy0l4`}],[`path`,{d:`M19 21v-6`,key:`tkawy9`}]]),Ja=x(`chart-no-axes-column-increasing`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V9`,key:`uvy0l4`}],[`path`,{d:`M19 21V3`,key:`11j9sm`}]]),Ya=x(`chart-no-axes-column`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]]),Xa=x(`chart-no-axes-combined`,[[`path`,{d:`M12 16v5`,key:`zza2cw`}],[`path`,{d:`M16 14.639V21`,key:`1s85h0`}],[`path`,{d:`M20 10.656V21`,key:`q45596`}],[`path`,{d:`m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15`,key:`1fw8x9`}],[`path`,{d:`M4 18.463V21`,key:`1otddq`}],[`path`,{d:`M8 14.656V21`,key:`1t2idw`}]]),Za=x(`chart-no-axes-gantt`,[[`path`,{d:`M6 5h12`,key:`fvfigv`}],[`path`,{d:`M4 12h10`,key:`oujl3d`}],[`path`,{d:`M12 19h8`,key:`baeox8`}]]),Qa=x(`chart-pie`,[[`path`,{d:`M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z`,key:`pzmjnu`}],[`path`,{d:`M21.21 15.89A10 10 0 1 1 8 2.83`,key:`k2fpak`}]]),$a=x(`chart-scatter`,[[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}],[`circle`,{cx:`18.5`,cy:`5.5`,r:`.5`,fill:`currentColor`,key:`lysivs`}],[`circle`,{cx:`11.5`,cy:`11.5`,r:`.5`,fill:`currentColor`,key:`byv1b8`}],[`circle`,{cx:`7.5`,cy:`16.5`,r:`.5`,fill:`currentColor`,key:`nkw3mc`}],[`circle`,{cx:`17.5`,cy:`14.5`,r:`.5`,fill:`currentColor`,key:`1gjh6j`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}]]),eo=x(`chart-spline`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7`,key:`lw07rv`}]]),to=x(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),no=x(`check-line`,[[`path`,{d:`M20 4L9 15`,key:`1qkx8z`}],[`path`,{d:`M21 19L3 19`,key:`100sma`}],[`path`,{d:`M9 15L4 10`,key:`9zxff7`}]]),ro=x(`chef-hat`,[[`path`,{d:`M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z`,key:`1qvrer`}],[`path`,{d:`M6 17h12`,key:`1jwigz`}]]),io=x(`cherry`,[[`path`,{d:`M2 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z`,key:`cvxqlc`}],[`path`,{d:`M12 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z`,key:`1ostrc`}],[`path`,{d:`M7 14c3.22-2.91 4.29-8.75 5-12 1.66 2.38 4.94 9 5 12`,key:`hqx58h`}],[`path`,{d:`M22 9c-4.29 0-7.14-2.33-10-7 5.71 0 10 4.67 10 7Z`,key:`eykp1o`}]]),ao=x(`chess-bishop`,[[`path`,{d:`M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`,key:`b89hwq`}],[`path`,{d:`M15 18c1.5-.615 3-2.461 3-4.923C18 8.769 14.5 4.462 12 2 9.5 4.462 6 8.77 6 13.077 6 15.539 7.5 17.385 9 18`,key:`8jdkhx`}],[`path`,{d:`m16 7-2.5 2.5`,key:`1jq90w`}],[`path`,{d:`M9 2h6`,key:`1jrp98`}]]),oo=x(`chess-king`,[[`path`,{d:`M4 20a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z`,key:`mqzwx6`}],[`path`,{d:`m6.7 18-1-1C4.35 15.682 3 14.09 3 12a5 5 0 0 1 4.95-5c1.584 0 2.7.455 4.05 1.818C13.35 7.455 14.466 7 16.05 7A5 5 0 0 1 21 12c0 2.082-1.359 3.673-2.7 5l-1 1`,key:`1gdt1g`}],[`path`,{d:`M10 4h4`,key:`1xpv9s`}],[`path`,{d:`M12 2v6.818`,key:`b17a49`}]]),so=x(`chess-knight`,[[`path`,{d:`M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`,key:`b89hwq`}],[`path`,{d:`M16.5 18c1-2 2.5-5 2.5-9a7 7 0 0 0-7-7H6.635a1 1 0 0 0-.768 1.64L7 5l-2.32 5.802a2 2 0 0 0 .95 2.526l2.87 1.456`,key:`axbnlq`}],[`path`,{d:`m15 5 1.425-1.425`,key:`15xz8w`}],[`path`,{d:`m17 8 1.53-1.53`,key:`15zhqh`}],[`path`,{d:`M9.713 12.185 7 18`,key:`1ocm0l`}]]),co=x(`chess-pawn`,[[`path`,{d:`M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`,key:`b89hwq`}],[`path`,{d:`m14.5 10 1.5 8`,key:`cim3qy`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`m8 18 1.5-8`,key:`ja3yjd`}],[`circle`,{cx:`12`,cy:`6`,r:`4`,key:`1frrej`}]]),lo=x(`chess-queen`,[[`path`,{d:`M4 20a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z`,key:`mqzwx6`}],[`path`,{d:`m12.474 5.943 1.567 5.34a1 1 0 0 0 1.75.328l2.616-3.402`,key:`1js4gl`}],[`path`,{d:`m20 9-3 9`,key:`r75r3f`}],[`path`,{d:`m5.594 8.209 2.615 3.403a1 1 0 0 0 1.75-.329l1.567-5.34`,key:`1joj19`}],[`path`,{d:`M7 18 4 9`,key:`1mfzj8`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`7`,r:`2`,key:`9w7p1x`}],[`circle`,{cx:`4`,cy:`7`,r:`2`,key:`1d9wy8`}]]),uo=x(`chess-rook`,[[`path`,{d:`M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`,key:`b89hwq`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`m17 18-1-9`,key:`10nd7q`}],[`path`,{d:`M6 2v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2`,key:`uxf4yx`}],[`path`,{d:`M6 4h12`,key:`1x2ag7`}],[`path`,{d:`m7 18 1-9`,key:`1si9vq`}]]),fo=x(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),po=x(`chevron-first`,[[`path`,{d:`m17 18-6-6 6-6`,key:`1yerx2`}],[`path`,{d:`M7 6v12`,key:`1p53r6`}]]),mo=x(`chevron-last`,[[`path`,{d:`m7 18 6-6-6-6`,key:`lwmzdw`}],[`path`,{d:`M17 6v12`,key:`1o0aio`}]]),ho=x(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),go=x(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),_o=x(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),vo=x(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),yo=x(`chevrons-down`,[[`path`,{d:`m7 6 5 5 5-5`,key:`1lc07p`}],[`path`,{d:`m7 13 5 5 5-5`,key:`1d48rs`}]]),bo=x(`chevrons-left-right`,[[`path`,{d:`m9 7-5 5 5 5`,key:`j5w590`}],[`path`,{d:`m15 7 5 5-5 5`,key:`1bl6da`}]]),xo=x(`chevrons-left-right-ellipsis`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`m17 7 5 5-5 5`,key:`1xlxn0`}],[`path`,{d:`m7 7-5 5 5 5`,key:`19njba`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}]]),So=x(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),Co=x(`chevrons-right-left`,[[`path`,{d:`m20 17-5-5 5-5`,key:`30x0n2`}],[`path`,{d:`m4 17 5-5-5-5`,key:`16spf4`}]]),wo=x(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),To=x(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Eo=x(`chevrons-up`,[[`path`,{d:`m17 11-5-5-5 5`,key:`e8nh98`}],[`path`,{d:`m17 18-5-5-5 5`,key:`2avn1x`}]]),Do=x(`church`,[[`path`,{d:`M10 9h4`,key:`u4k05v`}],[`path`,{d:`M12 7v5`,key:`ma6bk`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9`,key:`flvdwo`}],[`path`,{d:`M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14`,key:`a5i0n2`}]]),Oo=x(`cigarette-off`,[[`path`,{d:`M12 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h13`,key:`1gdiyg`}],[`path`,{d:`M18 8c0-2.5-2-2.5-2-5`,key:`1il607`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21 12a1 1 0 0 1 1 1v2a1 1 0 0 1-.5.866`,key:`166zjj`}],[`path`,{d:`M22 8c0-2.5-2-2.5-2-5`,key:`1gah44`}],[`path`,{d:`M7 12v4`,key:`jqww69`}]]),ko=x(`cigarette`,[[`path`,{d:`M17 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14`,key:`1mb5g1`}],[`path`,{d:`M18 8c0-2.5-2-2.5-2-5`,key:`1il607`}],[`path`,{d:`M21 16a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`1yl5r7`}],[`path`,{d:`M22 8c0-2.5-2-2.5-2-5`,key:`1gah44`}],[`path`,{d:`M7 12v4`,key:`jqww69`}]]),Ao=x(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),jo=x(`circle-arrow-down`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`m8 12 4 4 4-4`,key:`k98ssh`}]]),Mo=x(`circle-arrow-left`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m12 8-4 4 4 4`,key:`15vm53`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}]]),No=x(`circle-arrow-out-down-left`,[[`path`,{d:`M2 12a10 10 0 1 1 10 10`,key:`1yn6ov`}],[`path`,{d:`m2 22 10-10`,key:`28ilpk`}],[`path`,{d:`M8 22H2v-6`,key:`sulq54`}]]),Po=x(`circle-arrow-out-down-right`,[[`path`,{d:`M12 22a10 10 0 1 1 10-10`,key:`130bv5`}],[`path`,{d:`M22 22 12 12`,key:`131aw7`}],[`path`,{d:`M22 16v6h-6`,key:`1gvm70`}]]),Fo=x(`circle-arrow-out-up-left`,[[`path`,{d:`M2 8V2h6`,key:`hiwtdz`}],[`path`,{d:`m2 2 10 10`,key:`1oh8rs`}],[`path`,{d:`M12 2A10 10 0 1 1 2 12`,key:`rrk4fa`}]]),Io=x(`circle-arrow-out-up-right`,[[`path`,{d:`M22 12A10 10 0 1 1 12 2`,key:`1fm58d`}],[`path`,{d:`M22 2 12 12`,key:`yg2myt`}],[`path`,{d:`M16 2h6v6`,key:`zan5cs`}]]),Lo=x(`circle-arrow-right`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m12 16 4-4-4-4`,key:`1i9zcv`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Ro=x(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),zo=x(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Bo=x(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Vo=x(`circle-chevron-left`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m14 16-4-4 4-4`,key:`ojs7w8`}]]),Ho=x(`circle-chevron-down`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 10-4 4-4-4`,key:`894hmk`}]]),Uo=x(`circle-chevron-right`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m10 8 4 4-4 4`,key:`1wy4r4`}]]),Wo=x(`circle-chevron-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m8 14 4-4 4 4`,key:`fy2ptz`}]]),Go=x(`circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]),Ko=x(`circle-divide`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}],[`line`,{x1:`12`,x2:`12`,y1:`16`,y2:`16`,key:`aqc6ln`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`8`,key:`1mkcni`}]]),qo=x(`circle-dollar-sign`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8`,key:`1h4pet`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}]]),Jo=x(`circle-dot-dashed`,[[`path`,{d:`M10.1 2.18a9.93 9.93 0 0 1 3.8 0`,key:`1qdqn0`}],[`path`,{d:`M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7`,key:`1bq7p6`}],[`path`,{d:`M21.82 10.1a9.93 9.93 0 0 1 0 3.8`,key:`1rlaqf`}],[`path`,{d:`M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69`,key:`1xk03u`}],[`path`,{d:`M13.9 21.82a9.94 9.94 0 0 1-3.8 0`,key:`l7re25`}],[`path`,{d:`M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7`,key:`1v18p6`}],[`path`,{d:`M2.18 13.9a9.93 9.93 0 0 1 0-3.8`,key:`xdo6bj`}],[`path`,{d:`M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69`,key:`1jjmaz`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),Yo=x(`circle-dot`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),Xo=x(`circle-ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M17 12h.01`,key:`1m0b6t`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M7 12h.01`,key:`eqddd0`}]]),Zo=x(`circle-equal`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`M7 14h10`,key:`1mhdw3`}]]),Qo=x(`circle-fading-arrow-up`,[[`path`,{d:`M12 2a10 10 0 0 1 7.38 16.75`,key:`175t95`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}],[`path`,{d:`M2.5 8.875a10 10 0 0 0-.5 3`,key:`1vce0s`}],[`path`,{d:`M2.83 16a10 10 0 0 0 2.43 3.4`,key:`o3fkw4`}],[`path`,{d:`M4.636 5.235a10 10 0 0 1 .891-.857`,key:`1szpfk`}],[`path`,{d:`M8.644 21.42a10 10 0 0 0 7.631-.38`,key:`9yhvd4`}]]),$o=x(`circle-fading-plus`,[[`path`,{d:`M12 2a10 10 0 0 1 7.38 16.75`,key:`175t95`}],[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}],[`path`,{d:`M2.5 8.875a10 10 0 0 0-.5 3`,key:`1vce0s`}],[`path`,{d:`M2.83 16a10 10 0 0 0 2.43 3.4`,key:`o3fkw4`}],[`path`,{d:`M4.636 5.235a10 10 0 0 1 .891-.857`,key:`1szpfk`}],[`path`,{d:`M8.644 21.42a10 10 0 0 0 7.631-.38`,key:`9yhvd4`}]]),es=x(`circle-gauge`,[[`path`,{d:`M15.6 2.7a10 10 0 1 0 5.7 5.7`,key:`1e0p6d`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M13.4 10.6 19 5`,key:`1kr7tw`}]]),ts=x(`circle-minus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),ns=x(`circle-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}],[`path`,{d:`M19.08 19.08A10 10 0 1 1 4.92 4.92`,key:`1ablyi`}]]),rs=x(`circle-parking-off`,[[`path`,{d:`M12.656 7H13a3 3 0 0 1 2.984 3.307`,key:`1sjx87`}],[`path`,{d:`M13 13H9`,key:`e2beee`}],[`path`,{d:`M19.071 19.071A1 1 0 0 1 4.93 4.93`,key:`1kb595`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.357 2.687a10 10 0 0 1 12.956 12.956`,key:`5bsfdx`}],[`path`,{d:`M9 17V9`,key:`ojradj`}]]),is=x(`circle-parking`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 17V7h4a3 3 0 0 1 0 6H9`,key:`1dfk2c`}]]),as=x(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),os=x(`circle-pile`,[[`circle`,{cx:`12`,cy:`19`,r:`2`,key:`13j0tp`}],[`circle`,{cx:`12`,cy:`5`,r:`2`,key:`f1ur92`}],[`circle`,{cx:`16`,cy:`12`,r:`2`,key:`4ma0v8`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}],[`circle`,{cx:`4`,cy:`19`,r:`2`,key:`p3m9r0`}],[`circle`,{cx:`8`,cy:`12`,r:`2`,key:`1nvbw3`}]]),ss=x(`circle-percent`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 15h.01`,key:`lqbp3k`}]]),cs=x(`circle-play`,[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),ls=x(`circle-plus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),us=x(`circle-pound-sterling`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M10 16V9.5a1 1 0 0 1 5 0`,key:`1i1are`}],[`path`,{d:`M8 12h4`,key:`qz6y1c`}],[`path`,{d:`M8 16h7`,key:`sbedsn`}]]),ds=x(`circle-power`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M7.998 9.003a5 5 0 1 0 8-.005`,key:`1pek45`}]]),fs=x(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),ps=x(`circle-slash-2`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]),ms=x(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),hs=x(`circle-small`,[[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}]]),gs=x(`circle-star`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M11.051 7.616a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.867l-1.156-1.152a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z`,key:`285bvi`}]]),_s=x(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),vs=x(`circle-user-round`,[[`path`,{d:`M17.925 20.056a6 6 0 0 0-11.851.001`,key:`z69sun`}],[`circle`,{cx:`12`,cy:`11`,r:`4`,key:`1gt34v`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),ys=x(`circle-user`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662`,key:`154egf`}]]),bs=x(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),xs=x(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Ss=x(`circuit-board`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M11 9h4a2 2 0 0 0 2-2V3`,key:`1ve2rv`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`M7 21v-4a2 2 0 0 1 2-2h4`,key:`1fwkro`}],[`circle`,{cx:`15`,cy:`15`,r:`2`,key:`3i40o0`}]]),Cs=x(`citrus`,[[`path`,{d:`M21.66 17.67a1.08 1.08 0 0 1-.04 1.6A12 12 0 0 1 4.73 2.38a1.1 1.1 0 0 1 1.61-.04z`,key:`4ite01`}],[`path`,{d:`M19.65 15.66A8 8 0 0 1 8.35 4.34`,key:`1gxipu`}],[`path`,{d:`m14 10-5.5 5.5`,key:`92pfem`}],[`path`,{d:`M14 17.85V10H6.15`,key:`xqmtsk`}]]),ws=x(`clapperboard`,[[`path`,{d:`m12.296 3.464 3.02 3.956`,key:`qash78`}],[`path`,{d:`M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z`,key:`1h7j8b`}],[`path`,{d:`M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`4lm6w1`}],[`path`,{d:`m6.18 5.276 3.1 3.899`,key:`zjj9t3`}]]),Ts=x(`clipboard-check`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]),Es=x(`clipboard-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v.832`,key:`1ujtp2`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2`,key:`qvpao1`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}],[`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,key:`ublpy`}]]),Ds=x(`clipboard-copy`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]),Os=x(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),ks=x(`clipboard-minus`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M9 14h6`,key:`159ibu`}]]),As=x(`clipboard-paste`,[[`path`,{d:`M11 14h10`,key:`1w8e9d`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v1.344`,key:`1e62lh`}],[`path`,{d:`m17 18 4-4-4-4`,key:`z2g111`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113`,key:`bjbb7m`}],[`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,key:`ublpy`}]]),js=x(`clipboard-pen-line`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,key:`1oijnt`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.5`,key:`1but9f`}],[`path`,{d:`M16 4h2a2 2 0 0 1 1.73 1`,key:`1p8n7l`}],[`path`,{d:`M8 18h1`,key:`13wk12`}],[`path`,{d:`M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`2t3380`}]]),Ms=x(`clipboard-pen`,[[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`,key:`j91f56`}],[`path`,{d:`M21.34 15.664a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`16fuwn`}],[`path`,{d:`M8 22H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`120tdm`}],[`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,key:`ublpy`}]]),Ns=x(`clipboard-plus`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M9 14h6`,key:`159ibu`}],[`path`,{d:`M12 17v-6`,key:`1y8rbf`}]]),Ps=x(`clipboard-type`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M9 12v-1h6v1`,key:`iehl6m`}],[`path`,{d:`M11 17h2`,key:`12w5me`}],[`path`,{d:`M12 11v6`,key:`1bwqyc`}]]),Fs=x(`clipboard-x`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m15 11-6 6`,key:`1toa9n`}],[`path`,{d:`m9 11 6 6`,key:`wlibny`}]]),Is=x(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),Ls=x(`clock-1`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l2-4`,key:`miptyd`}]]),Rs=x(`clock-10`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-4-2`,key:`cedpoo`}]]),zs=x(`clock-11`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-2-4`,key:`ns39ag`}]]),Bs=x(`clock-12`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6`,key:`1ipuwl`}]]),Vs=x(`clock-2`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4-2`,key:`1r2kuh`}]]),Hs=x(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),Us=x(`clock-4`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Ws=x(`clock-5`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l2 4`,key:`1287s9`}]]),Gs=x(`clock-6`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v10`,key:`wf7rdh`}]]),Ks=x(`clock-7`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-2 4`,key:`1095bu`}]]),qs=x(`clock-8`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-4 2`,key:`imc3wl`}]]),Js=x(`clock-9`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6H8`,key:`u39vzm`}]]),Ys=x(`clock-alert`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`path`,{d:`M20 12v5`,key:`12wsvk`}],[`path`,{d:`M20 21h.01`,key:`1p6o6n`}],[`path`,{d:`M21.25 8.2A10 10 0 1 0 16 21.16`,key:`17fp9f`}]]),Xs=x(`clock-arrow-down`,[[`path`,{d:`M12 6v6l2 1`,key:`19cm8n`}],[`path`,{d:`M12.337 21.994a10 10 0 1 1 9.588-8.767`,key:`28moa`}],[`path`,{d:`m14 18 4 4 4-4`,key:`1waygx`}],[`path`,{d:`M18 14v8`,key:`irew45`}]]),Zs=x(`clock-arrow-up`,[[`path`,{d:`M12 6v6l1.56.78`,key:`14ed3g`}],[`path`,{d:`M13.227 21.925a10 10 0 1 1 8.767-9.588`,key:`jwkls1`}],[`path`,{d:`m14 18 4-4 4 4`,key:`ftkppy`}],[`path`,{d:`M18 22v-8`,key:`su0gjh`}]]),Qs=x(`clock-check`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`path`,{d:`M22 12a10 10 0 1 0-11 9.95`,key:`17dhok`}],[`path`,{d:`m22 16-5.5 5.5L14 19`,key:`1eibut`}]]),$s=x(`clock-fading`,[[`path`,{d:`M12 2a10 10 0 0 1 7.38 16.75`,key:`175t95`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`path`,{d:`M2.5 8.875a10 10 0 0 0-.5 3`,key:`1vce0s`}],[`path`,{d:`M2.83 16a10 10 0 0 0 2.43 3.4`,key:`o3fkw4`}],[`path`,{d:`M4.636 5.235a10 10 0 0 1 .891-.857`,key:`1szpfk`}],[`path`,{d:`M8.644 21.42a10 10 0 0 0 7.631-.38`,key:`9yhvd4`}]]),ec=x(`clock-plus`,[[`path`,{d:`M12 6v6l3.644 1.822`,key:`1jmett`}],[`path`,{d:`M16 19h6`,key:`xwg31i`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M21.92 13.267a10 10 0 1 0-8.653 8.653`,key:`1u0osk`}]]),tc=x(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),nc=x(`closed-caption`,[[`path`,{d:`M10 9.17a3 3 0 1 0 0 5.66`,key:`h9wayk`}],[`path`,{d:`M17 9.17a3 3 0 1 0 0 5.66`,key:`1v6zke`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),rc=x(`cloud-alert`,[[`path`,{d:`M12 12v4`,key:`tww15h`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.128 16.949A7 7 0 1 1 15.71 8h1.79a1 1 0 0 1 0 9h-1.642`,key:`1namsd`}]]),ic=x(`cloud-backup`,[[`path`,{d:`M21 15.251A4.5 4.5 0 0 0 17.5 8h-1.79A7 7 0 1 0 3 13.607`,key:`xpoh9y`}],[`path`,{d:`M7 11v4h4`,key:`q9yh32`}],[`path`,{d:`M8 19a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5 4.82 4.82 0 0 0-3.41 1.41L7 15`,key:`1xm8iu`}]]),ac=x(`cloud-check`,[[`path`,{d:`m17 15-5.5 5.5L9 18`,key:`15q87x`}],[`path`,{d:`M5.516 16.07A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 3.501 7.327`,key:`1xtj56`}]]),oc=x(`cloud-cog`,[[`path`,{d:`m10.852 19.772-.383.924`,key:`r7sl7d`}],[`path`,{d:`m13.148 14.228.383-.923`,key:`1d5zpm`}],[`path`,{d:`M13.148 19.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1ydik7`}],[`path`,{d:`m13.53 20.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1m1vsf`}],[`path`,{d:`m14.772 15.852.923-.383`,key:`660p6e`}],[`path`,{d:`m14.772 18.148.923.383`,key:`hrcpis`}],[`path`,{d:`M4.2 15.1a7 7 0 1 1 9.93-9.858A7 7 0 0 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2`,key:`j2q98n`}],[`path`,{d:`m9.228 15.852-.923-.383`,key:`1p9ong`}],[`path`,{d:`m9.228 18.148-.923.383`,key:`6558rz`}]]),sc=x(`cloud-download`,[[`path`,{d:`M12 13v8l-4-4`,key:`1f5nwf`}],[`path`,{d:`m12 21 4-4`,key:`1lfcce`}],[`path`,{d:`M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284`,key:`ui1hmy`}]]),cc=x(`cloud-drizzle`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M8 19v1`,key:`1dk2by`}],[`path`,{d:`M8 14v1`,key:`84yxot`}],[`path`,{d:`M16 19v1`,key:`v220m7`}],[`path`,{d:`M16 14v1`,key:`g12gj6`}],[`path`,{d:`M12 21v1`,key:`q8vafk`}],[`path`,{d:`M12 16v1`,key:`1mx6rx`}]]),lc=x(`cloud-fog`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 17H7`,key:`pygtm1`}],[`path`,{d:`M17 21H9`,key:`1u2q02`}]]),uc=x(`cloud-hail`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 14v2`,key:`a1is7l`}],[`path`,{d:`M8 14v2`,key:`1e9m6t`}],[`path`,{d:`M16 20h.01`,key:`xwek51`}],[`path`,{d:`M8 20h.01`,key:`1vjney`}],[`path`,{d:`M12 16v2`,key:`z66u1j`}],[`path`,{d:`M12 22h.01`,key:`1urd7a`}]]),dc=x(`cloud-lightning`,[[`path`,{d:`M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973`,key:`1cez44`}],[`path`,{d:`m13 12-3 5h4l-3 5`,key:`1t22er`}]]),fc=x(`cloud-moon-rain`,[[`path`,{d:`M11 20v2`,key:`174qtz`}],[`path`,{d:`M18.376 14.512a6 6 0 0 0 3.461-4.127c.148-.625-.659-.97-1.248-.714a4 4 0 0 1-5.259-5.26c.255-.589-.09-1.395-.716-1.248a6 6 0 0 0-4.594 5.36`,key:`zwnc1e`}],[`path`,{d:`M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24`,key:`1qmrp3`}],[`path`,{d:`M7 19v2`,key:`12npes`}]]),pc=x(`cloud-moon`,[[`path`,{d:`M13 16a3 3 0 0 1 0 6H7a5 5 0 1 1 4.9-6z`,key:`ie2ih4`}],[`path`,{d:`M18.376 14.512a6 6 0 0 0 3.461-4.127c.148-.625-.659-.97-1.248-.714a4 4 0 0 1-5.259-5.26c.255-.589-.09-1.395-.716-1.248a6 6 0 0 0-4.594 5.36`,key:`zwnc1e`}]]),mc=x(`cloud-off`,[[`path`,{d:`M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057`,key:`1uxyv8`}],[`path`,{d:`M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78`,key:`99tcn7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),hc=x(`cloud-rain-wind`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m9.2 22 3-7`,key:`sb5f6j`}],[`path`,{d:`m9 13-3 7`,key:`500co5`}],[`path`,{d:`m17 13-3 7`,key:`8t2fiy`}]]),gc=x(`cloud-rain`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 14v6`,key:`1j4efv`}],[`path`,{d:`M8 14v6`,key:`17c4r9`}],[`path`,{d:`M12 16v6`,key:`c8a4gj`}]]),_c=x(`cloud-snow`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M8 19h.01`,key:`puxtts`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M12 21h.01`,key:`h35vbk`}],[`path`,{d:`M16 15h.01`,key:`rnfrdf`}],[`path`,{d:`M16 19h.01`,key:`1vcnzz`}]]),vc=x(`cloud-sun-rain`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}],[`path`,{d:`M15.947 12.65a4 4 0 0 0-5.925-4.128`,key:`dpwdj0`}],[`path`,{d:`M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24`,key:`1qmrp3`}],[`path`,{d:`M11 20v2`,key:`174qtz`}],[`path`,{d:`M7 19v2`,key:`12npes`}]]),yc=x(`cloud-sync`,[[`path`,{d:`m17 18-1.535 1.605a5 5 0 0 1-8-1.5`,key:`adpv5j`}],[`path`,{d:`M17 22v-4h-4`,key:`ex1ofj`}],[`path`,{d:`M20.996 15.251A4.5 4.5 0 0 0 17.495 8h-1.79a7 7 0 1 0-12.709 5.607`,key:`ziqt14`}],[`path`,{d:`M7 10v4h4`,key:`1j6gx1`}],[`path`,{d:`m7 14 1.535-1.605a5 5 0 0 1 8 1.5`,key:`19q5h7`}]]),bc=x(`cloud-sun`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}],[`path`,{d:`M15.947 12.65a4 4 0 0 0-5.925-4.128`,key:`dpwdj0`}],[`path`,{d:`M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z`,key:`s09mg5`}]]),xc=x(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),Sc=x(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),Cc=x(`cloudy`,[[`path`,{d:`M17.5 12a1 1 0 1 1 0 9H9.006a7 7 0 1 1 6.702-9z`,key:`44yre2`}],[`path`,{d:`M21.832 9A3 3 0 0 0 19 7h-2.207a5.5 5.5 0 0 0-10.72.61`,key:`leugyv`}]]),wc=x(`clover`,[[`path`,{d:`M16.17 7.83 2 22`,key:`t58vo8`}],[`path`,{d:`M4.02 12a2.827 2.827 0 1 1 3.81-4.17A2.827 2.827 0 1 1 12 4.02a2.827 2.827 0 1 1 4.17 3.81A2.827 2.827 0 1 1 19.98 12a2.827 2.827 0 1 1-3.81 4.17A2.827 2.827 0 1 1 12 19.98a2.827 2.827 0 1 1-4.17-3.81A1 1 0 1 1 4 12`,key:`17k36q`}],[`path`,{d:`m7.83 7.83 8.34 8.34`,key:`1d7sxk`}]]),Tc=x(`club`,[[`path`,{d:`M17.28 9.05a5.5 5.5 0 1 0-10.56 0A5.5 5.5 0 1 0 12 17.66a5.5 5.5 0 1 0 5.28-8.6Z`,key:`27yuqz`}],[`path`,{d:`M12 17.66L12 22`,key:`ogfahf`}]]),Ec=x(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),Dc=x(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Oc=x(`coffee`,[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]),kc=x(`cog`,[[`path`,{d:`M11 10.27 7 3.34`,key:`16pf9h`}],[`path`,{d:`m11 13.73-4 6.93`,key:`794ttg`}],[`path`,{d:`M12 22v-2`,key:`1osdcq`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M14 12h8`,key:`4f43i9`}],[`path`,{d:`m17 20.66-1-1.73`,key:`eq3orb`}],[`path`,{d:`m17 3.34-1 1.73`,key:`2wel8s`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`m20.66 17-1.73-1`,key:`sg0v6f`}],[`path`,{d:`m20.66 7-1.73 1`,key:`1ow05n`}],[`path`,{d:`m3.34 17 1.73-1`,key:`nuk764`}],[`path`,{d:`m3.34 7 1.73 1`,key:`1ulond`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}]]),Ac=x(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),jc=x(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),Mc=x(`columns-3-cog`,[[`path`,{d:`M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5`,key:`1g2yzs`}],[`path`,{d:`m14.3 19.6 1-.4`,key:`11sv9r`}],[`path`,{d:`M15 3v7.5`,key:`7lm50a`}],[`path`,{d:`m15.2 16.9-.9-.3`,key:`1t7mvx`}],[`path`,{d:`m16.6 21.7.3-.9`,key:`1j67ps`}],[`path`,{d:`m16.8 15.3-.4-1`,key:`1ei7r6`}],[`path`,{d:`m19.1 15.2.3-.9`,key:`18r7jp`}],[`path`,{d:`m19.6 21.7-.4-1`,key:`z2vh2`}],[`path`,{d:`m20.7 16.8 1-.4`,key:`19m87a`}],[`path`,{d:`m21.7 19.4-.9-.3`,key:`1qgwi9`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Nc=x(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Pc=x(`columns-4`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7.5 3v18`,key:`w0wo6v`}],[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M16.5 3v18`,key:`10tjh1`}]]),Fc=x(`combine`,[[`path`,{d:`M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1`,key:`1l7d7l`}],[`path`,{d:`M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1`,key:`9955pe`}],[`path`,{d:`m7 15 3 3`,key:`4hkfgk`}],[`path`,{d:`m7 21 3-3H5a2 2 0 0 1-2-2v-2`,key:`1xljwe`}],[`rect`,{x:`14`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1cdgtw`}],[`rect`,{x:`3`,y:`3`,width:`7`,height:`7`,rx:`1`,key:`zi3rio`}]]),Ic=x(`command`,[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]),Lc=x(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),Rc=x(`component`,[[`path`,{d:`M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z`,key:`1uwlt4`}],[`path`,{d:`M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z`,key:`10291m`}],[`path`,{d:`M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z`,key:`1tqoq1`}],[`path`,{d:`M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z`,key:`1x6lto`}]]),zc=x(`computer`,[[`rect`,{width:`14`,height:`8`,x:`5`,y:`2`,rx:`2`,key:`wc9tft`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6 18h2`,key:`rwmk9e`}],[`path`,{d:`M12 18h6`,key:`aqd8w3`}]]),Bc=x(`concierge-bell`,[[`path`,{d:`M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z`,key:`1pvr1r`}],[`path`,{d:`M20 16a8 8 0 1 0-16 0`,key:`1pa543`}],[`path`,{d:`M12 4v4`,key:`1bq03y`}],[`path`,{d:`M10 4h4`,key:`1xpv9s`}]]),Vc=x(`cone`,[[`path`,{d:`m20.9 18.55-8-15.98a1 1 0 0 0-1.8 0l-8 15.98`,key:`53pte7`}],[`ellipse`,{cx:`12`,cy:`19`,rx:`9`,ry:`3`,key:`1ji25f`}]]),Hc=x(`construction`,[[`rect`,{x:`2`,y:`6`,width:`20`,height:`8`,rx:`1`,key:`1estib`}],[`path`,{d:`M17 14v7`,key:`7m2elx`}],[`path`,{d:`M7 14v7`,key:`1cm7wv`}],[`path`,{d:`M17 3v3`,key:`1v4jwn`}],[`path`,{d:`M7 3v3`,key:`7o6guu`}],[`path`,{d:`M10 14 2.3 6.3`,key:`1023jk`}],[`path`,{d:`m14 6 7.7 7.7`,key:`1s8pl2`}],[`path`,{d:`m8 6 8 8`,key:`hl96qh`}]]),Uc=x(`contact-round`,[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M17.915 22a6 6 0 0 0-12 0`,key:`suqz9p`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,key:`12vinp`}]]),Wc=x(`contact`,[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2`,key:`1waht3`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`11`,r:`3`,key:`itu57m`}],[`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,key:`12vinp`}]]),Gc=x(`container`,[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]),Kc=x(`contrast`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 18a6 6 0 0 0 0-12v12z`,key:`j4l70d`}]]),qc=x(`cookie`,[[`path`,{d:`M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5`,key:`laymnq`}],[`path`,{d:`M8.5 8.5v.01`,key:`ue8clq`}],[`path`,{d:`M16 15.5v.01`,key:`14dtrp`}],[`path`,{d:`M12 12v.01`,key:`u5ubse`}],[`path`,{d:`M11 17v.01`,key:`1hyl5a`}],[`path`,{d:`M7 14v.01`,key:`uct60s`}]]),Jc=x(`cooking-pot`,[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`u0tga0`}],[`path`,{d:`m4 8 16-4`,key:`16g0ng`}],[`path`,{d:`m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8`,key:`12cejc`}]]),Yc=x(`copy-check`,[[`path`,{d:`m12 15 2 2 4-4`,key:`2c609p`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Xc=x(`copy-minus`,[[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Zc=x(`copy-plus`,[[`line`,{x1:`15`,x2:`15`,y1:`12`,y2:`18`,key:`1p7wdc`}],[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Qc=x(`copy-x`,[[`line`,{x1:`12`,x2:`18`,y1:`12`,y2:`18`,key:`1rg63v`}],[`line`,{x1:`12`,x2:`18`,y1:`18`,y2:`12`,key:`ebkxgr`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),$c=x(`copy-slash`,[[`line`,{x1:`12`,x2:`18`,y1:`18`,y2:`12`,key:`ebkxgr`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),el=x(`copyleft`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.17 14.83a4 4 0 1 0 0-5.66`,key:`1sveal`}]]),tl=x(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),nl=x(`copyright`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M14.83 14.83a4 4 0 1 1 0-5.66`,key:`1i56pz`}]]),rl=x(`corner-down-left`,[[`path`,{d:`M20 4v7a4 4 0 0 1-4 4H4`,key:`6o5b7l`}],[`path`,{d:`m9 10-5 5 5 5`,key:`1kshq7`}]]),il=x(`corner-down-right`,[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]),al=x(`corner-left-down`,[[`path`,{d:`m14 15-5 5-5-5`,key:`1eia93`}],[`path`,{d:`M20 4h-7a4 4 0 0 0-4 4v12`,key:`nbpdq2`}]]),ol=x(`corner-left-up`,[[`path`,{d:`M14 9 9 4 4 9`,key:`1af5af`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`,key:`1blwi3`}]]),sl=x(`corner-right-down`,[[`path`,{d:`m10 15 5 5 5-5`,key:`1hpjnr`}],[`path`,{d:`M4 4h7a4 4 0 0 1 4 4v12`,key:`wcbgct`}]]),cl=x(`corner-right-up`,[[`path`,{d:`m10 9 5-5 5 5`,key:`9ctzwi`}],[`path`,{d:`M4 20h7a4 4 0 0 0 4-4V4`,key:`1plgdj`}]]),ll=x(`corner-up-left`,[[`path`,{d:`M20 20v-7a4 4 0 0 0-4-4H4`,key:`1nkjon`}],[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}]]),ul=x(`corner-up-right`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M4 20v-7a4 4 0 0 1 4-4h12`,key:`1lu4f8`}]]),dl=x(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),fl=x(`creative-commons`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M10 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1`,key:`1ss3eq`}],[`path`,{d:`M17 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1`,key:`1od56t`}]]),pl=x(`credit-card`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}]]),ml=x(`croissant`,[[`path`,{d:`M10.2 18H4.774a1.5 1.5 0 0 1-1.352-.97 11 11 0 0 1 .132-6.487`,key:`14kkz9`}],[`path`,{d:`M18 10.2V4.774a1.5 1.5 0 0 0-.97-1.352 11 11 0 0 0-6.486.132`,key:`1g7v07`}],[`path`,{d:`M18 5a4 3 0 0 1 4 3 2 2 0 0 1-2 2 10 10 0 0 0-5.139 1.42`,key:`ratg6b`}],[`path`,{d:`M5 18a3 4 0 0 0 3 4 2 2 0 0 0 2-2 10 10 0 0 1 1.42-5.14`,key:`4454f0`}],[`path`,{d:`M8.709 2.554a10 10 0 0 0-6.155 6.155 1.5 1.5 0 0 0 .676 1.626l9.807 5.42a2 2 0 0 0 2.718-2.718l-5.42-9.807a1.5 1.5 0 0 0-1.626-.676`,key:`qmemie`}]]),hl=x(`crop`,[[`path`,{d:`M6 2v14a2 2 0 0 0 2 2h14`,key:`ron5a4`}],[`path`,{d:`M18 22V8a2 2 0 0 0-2-2H2`,key:`7s9ehn`}]]),gl=x(`cross`,[[`path`,{d:`M4 9a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h4a1 1 0 0 1 1 1v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a1 1 0 0 1 1-1h4a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-4a1 1 0 0 1-1-1V4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4a1 1 0 0 1-1 1z`,key:`1xbrqy`}]]),_l=x(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),vl=x(`crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),yl=x(`cuboid`,[[`path`,{d:`M10 22v-8`,key:`1f8443`}],[`path`,{d:`M2.336 8.89 10 14l11.715-7.029`,key:`1qnufy`}],[`path`,{d:`M22 14a2 2 0 0 1-.971 1.715l-10 6a2 2 0 0 1-2.138-.05l-6-4A2 2 0 0 1 2 16v-6a2 2 0 0 1 .971-1.715l10-6a2 2 0 0 1 2.138.05l6 4A2 2 0 0 1 22 8z`,key:`670npk`}]]),bl=x(`cup-soda`,[[`path`,{d:`m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8`,key:`8166m8`}],[`path`,{d:`M5 8h14`,key:`pcz4l3`}],[`path`,{d:`M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0`,key:`yjz344`}],[`path`,{d:`m12 8 1-6h2`,key:`3ybfa4`}]]),xl=x(`currency`,[[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}],[`line`,{x1:`3`,x2:`6`,y1:`3`,y2:`6`,key:`1jkytn`}],[`line`,{x1:`21`,x2:`18`,y1:`3`,y2:`6`,key:`14zfjt`}],[`line`,{x1:`3`,x2:`6`,y1:`21`,y2:`18`,key:`iusuec`}],[`line`,{x1:`21`,x2:`18`,y1:`21`,y2:`18`,key:`yj2dd7`}]]),Sl=x(`cylinder`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5v14a9 3 0 0 0 18 0V5`,key:`aqi0yr`}]]),Cl=x(`dam`,[[`path`,{d:`M11 11.31c1.17.56 1.54 1.69 3.5 1.69 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`157kva`}],[`path`,{d:`M11.75 18c.35.5 1.45 1 2.75 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`d7q6m6`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M7 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1L10 4a1 1 0 0 0-1-1z`,key:`pr6s65`}]]),wl=x(`database-backup`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 12a9 3 0 0 0 5 2.69`,key:`1ui2ym`}],[`path`,{d:`M21 9.3V5`,key:`6k6cib`}],[`path`,{d:`M3 5v14a9 3 0 0 0 6.47 2.88`,key:`i62tjy`}],[`path`,{d:`M12 12v4h4`,key:`1bxaet`}],[`path`,{d:`M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16`,key:`1f4ei9`}]]),Tl=x(`database-search`,[[`path`,{d:`M21 11.693V5`,key:`175m1t`}],[`path`,{d:`m22 22-1.875-1.875`,key:`13zax7`}],[`path`,{d:`M3 12a9 3 0 0 0 8.697 2.998`,key:`151u9p`}],[`path`,{d:`M3 5v14a9 3 0 0 0 9.28 2.999`,key:`q2rs2p`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}]]),El=x(`database-zap`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 15 21.84`,key:`14ibmq`}],[`path`,{d:`M21 5V8`,key:`1marbg`}],[`path`,{d:`M21 12L18 17H22L19 22`,key:`zafso`}],[`path`,{d:`M3 12A9 3 0 0 0 14.59 14.87`,key:`1y4wr8`}]]),Dl=x(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),Ol=x(`decimals-arrow-left`,[[`path`,{d:`m13 21-3-3 3-3`,key:`s3o1nf`}],[`path`,{d:`M20 18H10`,key:`14r3mt`}],[`path`,{d:`M3 11h.01`,key:`1eifu7`}],[`rect`,{x:`6`,y:`3`,width:`5`,height:`8`,rx:`2.5`,key:`v9paqo`}]]),kl=x(`decimals-arrow-right`,[[`path`,{d:`M10 18h10`,key:`1y5s8o`}],[`path`,{d:`m17 21 3-3-3-3`,key:`1ammt0`}],[`path`,{d:`M3 11h.01`,key:`1eifu7`}],[`rect`,{x:`15`,y:`3`,width:`5`,height:`8`,rx:`2.5`,key:`76md6a`}],[`rect`,{x:`6`,y:`3`,width:`5`,height:`8`,rx:`2.5`,key:`v9paqo`}]]),Al=x(`delete`,[[`path`,{d:`M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z`,key:`1yo7s0`}],[`path`,{d:`m12 9 6 6`,key:`anjzzh`}],[`path`,{d:`m18 9-6 6`,key:`1fp51s`}]]),jl=x(`dessert`,[[`path`,{d:`M10.162 3.167A10 10 0 0 0 2 13a2 2 0 0 0 4 0v-1a2 2 0 0 1 4 0v4a2 2 0 0 0 4 0v-4a2 2 0 0 1 4 0v1a2 2 0 0 0 4-.006 10 10 0 0 0-8.161-9.826`,key:`xi88qy`}],[`path`,{d:`M20.804 14.869a9 9 0 0 1-17.608 0`,key:`1r28rg`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}]]),Ml=x(`diameter`,[[`circle`,{cx:`19`,cy:`19`,r:`2`,key:`17f5cg`}],[`circle`,{cx:`5`,cy:`5`,r:`2`,key:`1gwv83`}],[`path`,{d:`M6.48 3.66a10 10 0 0 1 13.86 13.86`,key:`xr8kdq`}],[`path`,{d:`m6.41 6.41 11.18 11.18`,key:`uhpjw7`}],[`path`,{d:`M3.66 6.48a10 10 0 0 0 13.86 13.86`,key:`cldpwv`}]]),Nl=x(`diamond-minus`,[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z`,key:`1ey20j`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Pl=x(`diamond-percent`,[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0Z`,key:`1tpxz2`}],[`path`,{d:`M9.2 9.2h.01`,key:`1b7bvt`}],[`path`,{d:`m14.5 9.5-5 5`,key:`17q4r4`}],[`path`,{d:`M14.7 14.8h.01`,key:`17nsh4`}]]),Fl=x(`diamond-plus`,[[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z`,key:`1ey20j`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Il=x(`diamond`,[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z`,key:`1f1r0c`}]]),Ll=x(`dice-1`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),Rl=x(`dice-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M15 9h.01`,key:`x1ddxp`}],[`path`,{d:`M9 15h.01`,key:`fzyn71`}]]),zl=x(`dice-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M16 8h.01`,key:`cr5u4v`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Bl=x(`dice-4`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M16 8h.01`,key:`cr5u4v`}],[`path`,{d:`M8 8h.01`,key:`1e4136`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}]]),Vl=x(`dice-5`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M16 8h.01`,key:`cr5u4v`}],[`path`,{d:`M8 8h.01`,key:`1e4136`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),Hl=x(`dice-6`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M16 8h.01`,key:`cr5u4v`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M8 8h.01`,key:`1e4136`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Ul=x(`dices`,[[`rect`,{width:`12`,height:`12`,x:`2`,y:`10`,rx:`2`,ry:`2`,key:`6agr2n`}],[`path`,{d:`m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6`,key:`1o487t`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 14h.01`,key:`ssrbsk`}],[`path`,{d:`M15 6h.01`,key:`cblpky`}],[`path`,{d:`M18 9h.01`,key:`2061c0`}]]),Wl=x(`diff`,[[`path`,{d:`M12 3v14`,key:`7cf3v8`}],[`path`,{d:`M5 10h14`,key:`elsbfy`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Gl=x(`disc-2`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),Kl=x(`disc-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M6 12c0-1.7.7-3.2 1.8-4.2`,key:`oqkarx`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M18 12c0 1.7-.7 3.2-1.8 4.2`,key:`1eah9h`}]]),ql=x(`disc-album`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`12`,cy:`12`,r:`5`,key:`nd82uf`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),Jl=x(`disc`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Yl=x(`divide`,[[`circle`,{cx:`12`,cy:`6`,r:`1`,key:`1bh7o1`}],[`line`,{x1:`5`,x2:`19`,y1:`12`,y2:`12`,key:`13b5wn`}],[`circle`,{cx:`12`,cy:`18`,r:`1`,key:`lqb9t5`}]]),Xl=x(`dna`,[[`path`,{d:`m10 16 1.5 1.5`,key:`11lckj`}],[`path`,{d:`m14 8-1.5-1.5`,key:`1ohn8i`}],[`path`,{d:`M15 2c-1.798 1.998-2.518 3.995-2.807 5.993`,key:`80uv8i`}],[`path`,{d:`m16.5 10.5 1 1`,key:`696xn5`}],[`path`,{d:`m17 6-2.891-2.891`,key:`xu6p2f`}],[`path`,{d:`M2 15c6.667-6 13.333 0 20-6`,key:`1pyr53`}],[`path`,{d:`m20 9 .891.891`,key:`3xwk7g`}],[`path`,{d:`M3.109 14.109 4 15`,key:`q76aoh`}],[`path`,{d:`m6.5 12.5 1 1`,key:`cs35ky`}],[`path`,{d:`m7 18 2.891 2.891`,key:`1sisit`}],[`path`,{d:`M9 22c1.798-1.998 2.518-3.995 2.807-5.993`,key:`q3hbxp`}]]),Zl=x(`dog`,[[`path`,{d:`M11.25 16.25h1.5L12 17z`,key:`w7jh35`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309`,key:`u7s9ue`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5`,key:`v8hric`}]]),Ql=x(`dna-off`,[[`path`,{d:`M15 2c-1.35 1.5-2.092 3-2.5 4.5L14 8`,key:`1bivrr`}],[`path`,{d:`m17 6-2.891-2.891`,key:`xu6p2f`}],[`path`,{d:`M2 15c3.333-3 6.667-3 10-3`,key:`nxix30`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`m20 9 .891.891`,key:`3xwk7g`}],[`path`,{d:`M22 9c-1.5 1.35-3 2.092-4.5 2.5l-1-1`,key:`18cutr`}],[`path`,{d:`M3.109 14.109 4 15`,key:`q76aoh`}],[`path`,{d:`m6.5 12.5 1 1`,key:`cs35ky`}],[`path`,{d:`m7 18 2.891 2.891`,key:`1sisit`}],[`path`,{d:`M9 22c1.35-1.5 2.092-3 2.5-4.5L10 16`,key:`rlvei3`}]]),$l=x(`dock`,[[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M6 16h12`,key:`u522kt`}]]),eu=x(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),tu=x(`donut`,[[`path`,{d:`M20.5 10a2.5 2.5 0 0 1-2.4-3H18a2.95 2.95 0 0 1-2.6-4.4 10 10 0 1 0 6.3 7.1c-.3.2-.8.3-1.2.3`,key:`19sr3x`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),nu=x(`door-closed-locked`,[[`path`,{d:`M10 12h.01`,key:`1kxr2c`}],[`path`,{d:`M18 9V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14`,key:`1bnhmg`}],[`path`,{d:`M2 20h8`,key:`10ntw1`}],[`path`,{d:`M20 17v-2a2 2 0 1 0-4 0v2`,key:`pwaxnr`}],[`rect`,{x:`14`,y:`17`,width:`8`,height:`5`,rx:`1`,key:`15pjcy`}]]),ru=x(`door-closed`,[[`path`,{d:`M10 12h.01`,key:`1kxr2c`}],[`path`,{d:`M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14`,key:`36qu9e`}],[`path`,{d:`M2 20h20`,key:`owomy5`}]]),iu=x(`door-open`,[[`path`,{d:`M11 20H2`,key:`nlcfvz`}],[`path`,{d:`M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z`,key:`au4z13`}],[`path`,{d:`M11 4H8a2 2 0 0 0-2 2v14`,key:`74r1mk`}],[`path`,{d:`M14 12h.01`,key:`1jfl7z`}],[`path`,{d:`M22 20h-3`,key:`vhrsz`}]]),au=x(`dot`,[[`circle`,{cx:`12.1`,cy:`12.1`,r:`1`,key:`18d7e5`}]]),ou=x(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),su=x(`drafting-compass`,[[`path`,{d:`m12.99 6.74 1.93 3.44`,key:`iwagvd`}],[`path`,{d:`M19.136 12a10 10 0 0 1-14.271 0`,key:`ppmlo4`}],[`path`,{d:`m21 21-2.16-3.84`,key:`vylbct`}],[`path`,{d:`m3 21 8.02-14.26`,key:`1ssaw4`}],[`circle`,{cx:`12`,cy:`5`,r:`2`,key:`f1ur92`}]]),cu=x(`drama`,[[`path`,{d:`M10 11h.01`,key:`d2at3l`}],[`path`,{d:`M14 6h.01`,key:`k028ub`}],[`path`,{d:`M18 6h.01`,key:`1v4wsw`}],[`path`,{d:`M6.5 13.1h.01`,key:`1748ia`}],[`path`,{d:`M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3`,key:`172yzv`}],[`path`,{d:`M17.4 9.9c-.8.8-2 .8-2.8 0`,key:`1obv0w`}],[`path`,{d:`M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7`,key:`rqjl8i`}],[`path`,{d:`M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4`,key:`1mr6wy`}]]),lu=x(`drill`,[[`path`,{d:`M10 18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a3 3 0 0 1-3-3 1 1 0 0 1 1-1z`,key:`ioqxb1`}],[`path`,{d:`M13 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1l-.81 3.242a1 1 0 0 1-.97.758H8`,key:`1rs59n`}],[`path`,{d:`M14 4h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3`,key:`105ega`}],[`path`,{d:`M18 6h4`,key:`66u95g`}],[`path`,{d:`m5 10-2 8`,key:`xt2lic`}],[`path`,{d:`m7 18 2-8`,key:`1bzku2`}]]),uu=x(`drone`,[[`path`,{d:`M10 10 7 7`,key:`zp14k7`}],[`path`,{d:`m10 14-3 3`,key:`1jrpxk`}],[`path`,{d:`m14 10 3-3`,key:`7tigam`}],[`path`,{d:`m14 14 3 3`,key:`vm23p3`}],[`path`,{d:`M14.205 4.139a4 4 0 1 1 5.439 5.863`,key:`1tm5p2`}],[`path`,{d:`M19.637 14a4 4 0 1 1-5.432 5.868`,key:`16egi2`}],[`path`,{d:`M4.367 10a4 4 0 1 1 5.438-5.862`,key:`1wta6a`}],[`path`,{d:`M9.795 19.862a4 4 0 1 1-5.429-5.873`,key:`q39hpv`}],[`rect`,{x:`10`,y:`8`,width:`4`,height:`8`,rx:`1`,key:`phrjt1`}]]),du=x(`droplet-off`,[[`path`,{d:`M18.715 13.186C18.29 11.858 17.384 10.607 16 9.5c-2-1.6-3.5-4-4-6.5a10.7 10.7 0 0 1-.884 2.586`,key:`8suz2t`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.795 8.797A11 11 0 0 1 8 9.5C6 11.1 5 13 5 15a7 7 0 0 0 13.222 3.208`,key:`19dw9m`}]]),fu=x(`droplet`,[[`path`,{d:`M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z`,key:`c7niix`}]]),pu=x(`droplets`,[[`path`,{d:`M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z`,key:`1ptgy4`}],[`path`,{d:`M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97`,key:`1sl1rz`}]]),mu=x(`drum`,[[`path`,{d:`m2 2 8 8`,key:`1v6059`}],[`path`,{d:`m22 2-8 8`,key:`173r8a`}],[`ellipse`,{cx:`12`,cy:`9`,rx:`10`,ry:`5`,key:`liohsx`}],[`path`,{d:`M7 13.4v7.9`,key:`1yi6u9`}],[`path`,{d:`M12 14v8`,key:`1tn2tj`}],[`path`,{d:`M17 13.4v7.9`,key:`eqz2v3`}],[`path`,{d:`M2 9v8a10 5 0 0 0 20 0V9`,key:`1750ul`}]]),hu=x(`drumstick`,[[`path`,{d:`M15.4 15.63a7.875 6 135 1 1 6.23-6.23 4.5 3.43 135 0 0-6.23 6.23`,key:`1dtqwm`}],[`path`,{d:`m8.29 12.71-2.6 2.6a2.5 2.5 0 1 0-1.65 4.65A2.5 2.5 0 1 0 8.7 18.3l2.59-2.59`,key:`1oq1fw`}]]),gu=x(`dumbbell`,[[`path`,{d:`M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z`,key:`9m4mmf`}],[`path`,{d:`m2.5 21.5 1.4-1.4`,key:`17g3f0`}],[`path`,{d:`m20.1 3.9 1.4-1.4`,key:`1qn309`}],[`path`,{d:`M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z`,key:`1t2c92`}],[`path`,{d:`m9.6 14.4 4.8-4.8`,key:`6umqxw`}]]),_u=x(`ear-off`,[[`path`,{d:`M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46`,key:`1qngmn`}],[`path`,{d:`M6 8.5c0-.75.13-1.47.36-2.14`,key:`b06bma`}],[`path`,{d:`M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76`,key:`g10hsz`}],[`path`,{d:`M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18`,key:`ygzou7`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),vu=x(`ear`,[[`path`,{d:`M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0`,key:`1dfaln`}],[`path`,{d:`M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4`,key:`1qnva7`}]]),yu=x(`earth-lock`,[[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3`,key:`w732o8`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`f02343`}],[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M12 2a10 10 0 1 0 9.54 13`,key:`zjsr6q`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),bu=x(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),xu=x(`eclipse`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a7 7 0 1 0 10 10`,key:`1yuj32`}]]),Su=x(`egg-fried`,[[`circle`,{cx:`11.5`,cy:`12.5`,r:`3.5`,key:`1cl1mi`}],[`path`,{d:`M3 8c0-3.5 2.5-6 6.5-6 5 0 4.83 3 7.5 5s5 2 5 6c0 4.5-2.5 6.5-7 6.5-2.5 0-2.5 2.5-6 2.5s-7-2-7-5.5c0-3 1.5-3 1.5-5C3.5 10 3 9 3 8Z`,key:`165ef9`}]]),Cu=x(`egg`,[[`path`,{d:`M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12`,key:`1le142`}]]),wu=x(`egg-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 14.347V14c0-6-4-12-8-12-1.078 0-2.157.436-3.157 1.19`,key:`13g2jy`}],[`path`,{d:`M6.206 6.21C4.871 8.4 4 11.2 4 14a8 8 0 0 0 14.568 4.568`,key:`1581id`}]]),Tu=x(`ellipse`,[[`ellipse`,{cx:`12`,cy:`12`,rx:`10`,ry:`6`,key:`swdkt4`}]]),Eu=x(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),Du=x(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),Ou=x(`equal-approximately`,[[`path`,{d:`M5 15a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0`,key:`yrdkhy`}],[`path`,{d:`M5 9a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0`,key:`gzkvyz`}]]),ku=x(`equal-not`,[[`line`,{x1:`5`,x2:`19`,y1:`9`,y2:`9`,key:`1nwqeh`}],[`line`,{x1:`5`,x2:`19`,y1:`15`,y2:`15`,key:`g8yjpy`}],[`line`,{x1:`19`,x2:`5`,y1:`5`,y2:`19`,key:`1x9vlm`}]]),Au=x(`equal`,[[`line`,{x1:`5`,x2:`19`,y1:`9`,y2:`9`,key:`1nwqeh`}],[`line`,{x1:`5`,x2:`19`,y1:`15`,y2:`15`,key:`g8yjpy`}]]),ju=x(`eraser`,[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]),Mu=x(`ethernet-port`,[[`path`,{d:`m15 20 3-3h2a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2l3 3z`,key:`rbahqx`}],[`path`,{d:`M6 8v1`,key:`1636ez`}],[`path`,{d:`M10 8v1`,key:`1talb4`}],[`path`,{d:`M14 8v1`,key:`1rsfgr`}],[`path`,{d:`M18 8v1`,key:`gnkwox`}]]),Nu=x(`euro`,[[`path`,{d:`M4 10h12`,key:`1y6xl8`}],[`path`,{d:`M4 14h9`,key:`1loblj`}],[`path`,{d:`M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2`,key:`1j6lzo`}]]),Pu=x(`ev-charger`,[[`path`,{d:`M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5`,key:`1wtuz0`}],[`path`,{d:`M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16`,key:`e09ifn`}],[`path`,{d:`M2 21h13`,key:`1x0fut`}],[`path`,{d:`M3 7h11`,key:`19efrr`}],[`path`,{d:`m9 11-2 3h3l-2 3`,key:`lmzxi1`}]]),Fu=x(`expand`,[[`path`,{d:`m15 15 6 6`,key:`1s409w`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}],[`path`,{d:`M21 16v5h-5`,key:`1ck2sf`}],[`path`,{d:`M21 8V3h-5`,key:`1qoq8a`}],[`path`,{d:`M3 16v5h5`,key:`1t08am`}],[`path`,{d:`m3 21 6-6`,key:`wwnumi`}],[`path`,{d:`M3 8V3h5`,key:`1ln10m`}],[`path`,{d:`M9 9 3 3`,key:`v551iv`}]]),Iu=x(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Lu=x(`eye-closed`,[[`path`,{d:`m15 18-.722-3.25`,key:`1j64jw`}],[`path`,{d:`M2 8a10.645 10.645 0 0 0 20 0`,key:`1e7gxb`}],[`path`,{d:`m20 15-1.726-2.05`,key:`1cnuld`}],[`path`,{d:`m4 15 1.726-2.05`,key:`1dsqqd`}],[`path`,{d:`m9 18 .722-3.25`,key:`ypw2yx`}]]),Ru=x(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),zu=x(`factory`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`1iv0i2`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Bu=x(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Vu=x(`fan`,[[`path`,{d:`M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z`,key:`484a7f`}],[`path`,{d:`M12 12v.01`,key:`u5ubse`}]]),Hu=x(`fast-forward`,[[`path`,{d:`M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z`,key:`b19h5q`}],[`path`,{d:`M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z`,key:`h7h5ge`}]]),Uu=x(`feather`,[[`path`,{d:`M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z`,key:`18jl4k`}],[`path`,{d:`M16 8 2 22`,key:`vp34q`}],[`path`,{d:`M17.5 15H9`,key:`1oz8nu`}]]),Wu=x(`fence`,[[`path`,{d:`M4 3 2 5v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z`,key:`1n2rgs`}],[`path`,{d:`M6 8h4`,key:`utf9t1`}],[`path`,{d:`M6 18h4`,key:`12yh4b`}],[`path`,{d:`m12 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z`,key:`3ha7mj`}],[`path`,{d:`M14 8h4`,key:`1r8wg2`}],[`path`,{d:`M14 18h4`,key:`1t3kbu`}],[`path`,{d:`m20 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z`,key:`dfd4e2`}]]),Gu=x(`ferris-wheel`,[[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m6.8 15-3.5 2`,key:`hjy98k`}],[`path`,{d:`m20.7 7-3.5 2`,key:`f08gto`}],[`path`,{d:`M6.8 9 3.3 7`,key:`1aevh4`}],[`path`,{d:`m20.7 17-3.5-2`,key:`1liqo3`}],[`path`,{d:`m9 22 3-8 3 8`,key:`wees03`}],[`path`,{d:`M8 22h8`,key:`rmew8v`}],[`path`,{d:`M18 18.7a9 9 0 1 0-12 0`,key:`dhzg4g`}]]),Ku=x(`file-archive`,[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]),qu=x(`file-axis-3d`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m8 18 4-4`,key:`12zab0`}],[`path`,{d:`M8 10v8h8`,key:`tlaukw`}]]),Ju=x(`file-badge`,[[`path`,{d:`M13 22h5a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.3`,key:`cvl1xm`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m7.69 16.479 1.29 4.88a.5.5 0 0 1-.698.591l-1.843-.849a1 1 0 0 0-.879.001l-1.846.85a.5.5 0 0 1-.692-.593l1.29-4.88`,key:`1ff7gj`}],[`circle`,{cx:`6`,cy:`14`,r:`3`,key:`a1xfv6`}]]),Yu=x(`file-braces-corner`,[[`path`,{d:`M14 22h4a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6`,key:`14cnrg`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M5 14a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1 1 1 0 0 1 1 1v2a1 1 0 0 0 1 1`,key:`sr0ebq`}],[`path`,{d:`M9 22a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1`,key:`w793db`}]]),Xu=x(`file-box`,[[`path`,{d:`M14.5 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.8`,key:`1kchwa`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M11.7 14.2 7 17l-4.7-2.8`,key:`1yk8tc`}],[`path`,{d:`M3 13.1a2 2 0 0 0-.999 1.76v3.24a2 2 0 0 0 .969 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01z`,key:`19flxy`}],[`path`,{d:`M7 17v5`,key:`1yj1jh`}]]),Zu=x(`file-braces`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),Qu=x(`file-chart-column-increasing`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M12 18v-4`,key:`q1q25u`}],[`path`,{d:`M16 18v-6`,key:`15y0np`}]]),$u=x(`file-chart-column`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 18v-1`,key:`zg0ygc`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`M16 18v-3`,key:`j5jt4h`}]]),ed=x(`file-chart-line`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m16 13-3.5 3.5-2-2L8 17`,key:`zz7yod`}]]),td=x(`file-chart-pie`,[[`path`,{d:`M15.941 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.704l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.512`,key:`13hoie`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M4.017 11.512a6 6 0 1 0 8.466 8.475`,key:`s6vs5t`}],[`path`,{d:`M9 16a1 1 0 0 1-1-1v-4c0-.552.45-1.008.995-.917a6 6 0 0 1 4.922 4.922c.091.544-.365.995-.917.995z`,key:`1dl6s6`}]]),nd=x(`file-check-corner`,[[`path`,{d:`M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6`,key:`g5mvt7`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14 20 2 2 4-4`,key:`15kota`}]]),rd=x(`file-check`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]),id=x(`file-clock`,[[`path`,{d:`M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85`,key:`ryk6xj`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 14v2.2l1.6 1`,key:`6m4bie`}],[`circle`,{cx:`8`,cy:`16`,r:`6`,key:`10v15b`}]]),ad=x(`file-code-corner`,[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]]),od=x(`file-cog`,[[`path`,{d:`M15 8a1 1 0 0 1-1-1V2a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8z`,key:`1ckgky`}],[`path`,{d:`M20 8v12a2 2 0 0 1-2 2h-4.182`,key:`1726p0`}],[`path`,{d:`m3.305 19.53.923-.382`,key:`ao1pio`}],[`path`,{d:`M4 10.592V4a2 2 0 0 1 2-2h8`,key:`1foop0`}],[`path`,{d:`m4.228 16.852-.924-.383`,key:`1fv9zy`}],[`path`,{d:`m5.852 15.228-.383-.923`,key:`1a9hc2`}],[`path`,{d:`m5.852 20.772-.383.924`,key:`1sh9ke`}],[`path`,{d:`m8.148 15.228.383-.923`,key:`4yu6lf`}],[`path`,{d:`m8.53 21.696-.382-.924`,key:`18b0s9`}],[`path`,{d:`m9.773 16.852.922-.383`,key:`ti6xop`}],[`path`,{d:`m9.773 19.148.922.383`,key:`rws47d`}],[`circle`,{cx:`7`,cy:`18`,r:`3`,key:`lvkj7j`}]]),sd=x(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),cd=x(`file-digit`,[[`path`,{d:`M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2`,key:`jrl274`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 16h2v6`,key:`1bxocy`}],[`path`,{d:`M10 22h4`,key:`ceow96`}],[`rect`,{x:`2`,y:`16`,width:`4`,height:`6`,rx:`2`,key:`r45zd0`}]]),ld=x(`file-diff`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]),ud=x(`file-down`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]),dd=x(`file-exclamation-point`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),fd=x(`file-heart`,[[`path`,{d:`M13 22h5a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v7`,key:`oagw2b`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M3.62 18.8A2.25 2.25 0 1 1 7 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a1 1 0 0 1-1.507 0z`,key:`rg3psg`}]]),pd=x(`file-headphone`,[[`path`,{d:`M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343`,key:`1vfytu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0`,key:`1etmh7`}]]),md=x(`file-image`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]),hd=x(`file-input`,[[`path`,{d:`M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1`,key:`1q9hii`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M2 15h10`,key:`jfw4w8`}],[`path`,{d:`m9 18 3-3-3-3`,key:`112psh`}]]),gd=x(`file-lock`,[[`path`,{d:`M4 9.8V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3`,key:`1432pc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M9 17v-2a2 2 0 0 0-4 0v2`,key:`168m41`}],[`rect`,{width:`8`,height:`5`,x:`3`,y:`17`,rx:`1`,key:`o8vfew`}]]),_d=x(`file-key`,[[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M4 12v6`,key:`bg1pfk`}],[`path`,{d:`M4 14h2`,key:`1sf9f8`}],[`path`,{d:`M9.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v4`,key:`d56i0q`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),vd=x(`file-minus-corner`,[[`path`,{d:`M20 14V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12`,key:`l9p8hp`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),yd=x(`file-minus`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M9 15h6`,key:`cctwl0`}]]),bd=x(`file-music`,[[`path`,{d:`M11.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v10.35`,key:`5ad7z2`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 20v-7l3 1.474`,key:`1ggyb9`}],[`circle`,{cx:`6`,cy:`20`,r:`2`,key:`j7wjp0`}]]),xd=x(`file-output`,[[`path`,{d:`M4.226 20.925A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.127`,key:`wfxp4w`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 11-3 3`,key:`1dgrs4`}],[`path`,{d:`m5 17-3-3h10`,key:`1mvvaf`}]]),Sd=x(`file-pen-line`,[[`path`,{d:`M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z`,key:`ukzhwg`}],[`path`,{d:`M14.487 7.858A1 1 0 0 1 14 7V2`,key:`1klhew`}],[`path`,{d:`M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516`,key:`rxaxab`}],[`path`,{d:`M8 18h1`,key:`13wk12`}]]),Cd=x(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),wd=x(`file-play`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z`,key:`1tzo1f`}]]),Td=x(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),Ed=x(`file-plus`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M9 15h6`,key:`cctwl0`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}]]),Dd=x(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),Od=x(`file-scan`,[[`path`,{d:`M20 10V8a2.4 2.4 0 0 0-.706-1.704l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4.35`,key:`1cdjst`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M16 14a2 2 0 0 0-2 2`,key:`ceaadl`}],[`path`,{d:`M16 22a2 2 0 0 1-2-2`,key:`1wqh5n`}],[`path`,{d:`M20 14a2 2 0 0 1 2 2`,key:`1ny6zw`}],[`path`,{d:`M20 22a2 2 0 0 0 2-2`,key:`1l9q4k`}]]),kd=x(`file-search-corner`,[[`path`,{d:`M11.1 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.589 3.588A2.4 2.4 0 0 1 20 8v3.25`,key:`uh4ikj`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m21 22-2.88-2.88`,key:`9dd25w`}],[`circle`,{cx:`16`,cy:`17`,r:`3`,key:`11br10`}]]),Ad=x(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),jd=x(`file-signal`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M11.5 13.5a2.5 2.5 0 0 1 0 3`,key:`1fccat`}],[`path`,{d:`M15 12a5 5 0 0 1 0 6`,key:`ps46cm`}]]),Md=x(`file-sliders`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M10 11v2`,key:`1s651w`}],[`path`,{d:`M8 17h8`,key:`wh5c61`}],[`path`,{d:`M14 16v2`,key:`12fp5e`}]]),Nd=x(`file-spreadsheet`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]),Pd=x(`file-stack`,[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]),Fd=x(`file-symlink`,[[`path`,{d:`M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7`,key:`huwfnr`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m10 18 3-3-3-3`,key:`18f6ys`}]]),Id=x(`file-terminal`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m8 16 2-2-2-2`,key:`10vzyd`}],[`path`,{d:`M12 18h4`,key:`1wd2n7`}]]),Ld=x(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Rd=x(`file-type-corner`,[[`path`,{d:`M12 22h6a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6`,key:`15usau`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M3 16v-1.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5V16`,key:`s1gz5`}],[`path`,{d:`M6 22h2`,key:`194x9m`}],[`path`,{d:`M7 14v8`,key:`11ixej`}]]),zd=x(`file-type`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M11 18h2`,key:`12mj7e`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5`,key:`qbrxap`}]]),Bd=x(`file-up`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]),Vd=x(`file-user`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M16 22a4 4 0 0 0-8 0`,key:`7a83pg`}],[`circle`,{cx:`12`,cy:`15`,r:`3`,key:`g36mzq`}]]),Hd=x(`file-video-camera`,[[`path`,{d:`M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2`,key:`jrl274`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m10 17.843 3.033-1.755a.64.64 0 0 1 .967.56v4.704a.65.65 0 0 1-.967.56L10 20.157`,key:`17aeo9`}],[`rect`,{width:`7`,height:`6`,x:`3`,y:`16`,rx:`1`,key:`s27ndx`}]]),Ud=x(`file-volume`,[[`path`,{d:`M4 11.55V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-1.95`,key:`44gpjv`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 15a5 5 0 0 1 0 6`,key:`oxg87a`}],[`path`,{d:`M8 14.502a.5.5 0 0 0-.826-.381l-1.893 1.631a1 1 0 0 1-.651.243H3.5a.5.5 0 0 0-.5.501v3.006a.5.5 0 0 0 .5.501h1.129a1 1 0 0 1 .652.243l1.893 1.633a.5.5 0 0 0 .826-.38z`,key:`8rtoi1`}]]),Wd=x(`file-x-corner`,[[`path`,{d:`M11 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1jo35a`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m15 17 5 5`,key:`36xl1x`}],[`path`,{d:`m20 17-5 5`,key:`vdz27y`}]]),Gd=x(`file-x`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14.5 12.5-5 5`,key:`b62r18`}],[`path`,{d:`m9.5 12.5 5 5`,key:`1rk7el`}]]),Kd=x(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),qd=x(`files`,[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),Jd=x(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),Yd=x(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),Xd=x(`fire-extinguisher`,[[`path`,{d:`M15 6.5V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3.5`,key:`sqyvz`}],[`path`,{d:`M9 18h8`,key:`i7pszb`}],[`path`,{d:`M18 3h-3`,key:`7idoqj`}],[`path`,{d:`M11 3a6 6 0 0 0-6 6v11`,key:`1v5je3`}],[`path`,{d:`M5 13h4`,key:`svpcxo`}],[`path`,{d:`M17 10a4 4 0 0 0-8 0v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2Z`,key:`vsjego`}]]),Zd=x(`fish-off`,[[`path`,{d:`M18 12.47v.03m0-.5v.47m-.475 5.056A6.744 6.744 0 0 1 15 18c-3.56 0-7.56-2.53-8.5-6 .348-1.28 1.114-2.433 2.121-3.38m3.444-2.088A8.802 8.802 0 0 1 15 6c3.56 0 6.06 2.54 7 6-.309 1.14-.786 2.177-1.413 3.058`,key:`1j1hse`}],[`path`,{d:`M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33m7.48-4.372A9.77 9.77 0 0 1 16 6.07m0 11.86a9.77 9.77 0 0 1-1.728-3.618`,key:`1q46z8`}],[`path`,{d:`m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98M8.53 3h5.27a2 2 0 0 1 1.98 1.67l.23 1.4M2 2l20 20`,key:`1407gh`}]]),Qd=x(`fish-symbol`,[[`path`,{d:`M2 16s9-15 20-4C11 23 2 8 2 8`,key:`h4oh4o`}]]),$d=x(`fish`,[[`path`,{d:`M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z`,key:`15baut`}],[`path`,{d:`M18 12v.5`,key:`18hhni`}],[`path`,{d:`M16 17.93a9.77 9.77 0 0 1 0-11.86`,key:`16dt7o`}],[`path`,{d:`M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33`,key:`l9di03`}],[`path`,{d:`M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4`,key:`1kjonw`}],[`path`,{d:`m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98`,key:`1zlm23`}]]),ef=x(`fishing-hook`,[[`path`,{d:`m17.586 11.414-5.93 5.93a1 1 0 0 1-8-8l3.137-3.137a.707.707 0 0 1 1.207.5V10`,key:`157y8s`}],[`path`,{d:`M20.414 8.586 22 7`,key:`5g2s34`}],[`circle`,{cx:`19`,cy:`10`,r:`2`,key:`7363ft`}]]),tf=x(`fishing-rod`,[[`path`,{d:`M4 11h1`,key:`13eipc`}],[`path`,{d:`M8 15a2 2 0 0 1-4 0V3a1 1 0 0 1 1-1h.5C14 2 20 9 20 18v4`,key:`1hs3im`}],[`circle`,{cx:`18`,cy:`18`,r:`2`,key:`1emm8v`}]]),nf=x(`flag-off`,[[`path`,{d:`M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1q158e`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4 22V4`,key:`1plyxx`}],[`path`,{d:`M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347`,key:`xj1b71`}]]),rf=x(`flag-triangle-left`,[[`path`,{d:`M18 22V2.8a.8.8 0 0 0-1.17-.71L5.45 7.78a.8.8 0 0 0 0 1.44L18 15.5`,key:`rbbtmw`}]]),af=x(`flag-triangle-right`,[[`path`,{d:`M6 22V2.8a.8.8 0 0 1 1.17-.71l11.38 5.69a.8.8 0 0 1 0 1.44L6 15.5`,key:`kfjsu0`}]]),of=x(`flag`,[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]),sf=x(`flame-kindling`,[[`path`,{d:`M12 2c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 17 10a5 5 0 1 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C8 4.5 11 2 12 2Z`,key:`1ir223`}],[`path`,{d:`m5 22 14-4`,key:`1brv4h`}],[`path`,{d:`m5 18 14 4`,key:`lgyyje`}]]),cf=x(`flashlight-off`,[[`path`,{d:`M11.652 6H18`,key:`voqkpr`}],[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V6`,key:`dzyf92`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7.649 2H17a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8a4 4 0 0 0-.55 1.007`,key:`1hvcfn`}]]),lf=x(`flame`,[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`,key:`1slcih`}]]),uf=x(`flashlight`,[[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z`,key:`17vh7j`}],[`path`,{d:`M6 6h12`,key:`n6hhss`}]]),df=x(`flask-conical-off`,[[`path`,{d:`M10 2v2.343`,key:`15t272`}],[`path`,{d:`M14 2v6.343`,key:`sxr80q`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 20a2 2 0 0 1-2 2H6a2 2 0 0 1-1.755-2.96l5.227-9.563`,key:`k0duyd`}],[`path`,{d:`M6.453 15H15`,key:`1f0z33`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),ff=x(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),pf=x(`flask-round`,[[`path`,{d:`M10 2v6.292a7 7 0 1 0 4 0V2`,key:`1s42pc`}],[`path`,{d:`M5 15h14`,key:`m0yey3`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),mf=x(`flip-horizontal-2`,[[`path`,{d:`m3 7 5 5-5 5V7`,key:`couhi7`}],[`path`,{d:`m21 7-5 5 5 5V7`,key:`6ouia7`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 2v2`,key:`tus03m`}]]),hf=x(`flip-vertical-2`,[[`path`,{d:`m17 3-5 5-5-5h10`,key:`1ftt6x`}],[`path`,{d:`m17 21-5-5-5 5h10`,key:`1m0wmu`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}]]),gf=x(`flower-2`,[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]),_f=x(`flower`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5`,key:`14wa3c`}],[`path`,{d:`M12 7.5V9`,key:`1oy5b0`}],[`path`,{d:`M7.5 12H9`,key:`eltsq1`}],[`path`,{d:`M16.5 12H15`,key:`vk5kw4`}],[`path`,{d:`M12 16.5V15`,key:`k7eayi`}],[`path`,{d:`m8 8 1.88 1.88`,key:`nxy4qf`}],[`path`,{d:`M14.12 9.88 16 8`,key:`1lst6k`}],[`path`,{d:`m8 16 1.88-1.88`,key:`h2eex1`}],[`path`,{d:`M14.12 14.12 16 16`,key:`uqkrx3`}]]),vf=x(`focus`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),yf=x(`fold-horizontal`,[[`path`,{d:`M2 12h6`,key:`1wqiqv`}],[`path`,{d:`M22 12h-6`,key:`1eg9hc`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 9-3 3 3 3`,key:`12ol22`}],[`path`,{d:`m5 15 3-3-3-3`,key:`1kdhjc`}]]),bf=x(`fold-vertical`,[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]]),xf=x(`folder-archive`,[[`circle`,{cx:`15`,cy:`19`,r:`2`,key:`u2pros`}],[`path`,{d:`M20.9 19.8A2 2 0 0 0 22 18V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h5.1`,key:`1jj40k`}],[`path`,{d:`M15 11v-1`,key:`cntcp`}],[`path`,{d:`M15 17v-2`,key:`1279jj`}]]),Sf=x(`folder-bookmark`,[[`path`,{d:`M12 6v8l3-3 3 3V6`,key:`11pvqx`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z`,key:`1u1bxd`}]]),Cf=x(`folder-check`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`m9 13 2 2 4-4`,key:`6343dt`}]]),wf=x(`folder-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2`,key:`1urifu`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),Tf=x(`folder-closed`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),Ef=x(`folder-code`,[[`path`,{d:`M10 10.5 8 13l2 2.5`,key:`m4t9c1`}],[`path`,{d:`m14 10.5 2 2.5-2 2.5`,key:`14w2eb`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z`,key:`1u1bxd`}]]),Df=x(`folder-dot`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`circle`,{cx:`12`,cy:`13`,r:`1`,key:`49l61u`}]]),Of=x(`folder-cog`,[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),kf=x(`folder-git-2`,[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),Af=x(`folder-down`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`m15 13-3 3-3-3`,key:`6j2sf0`}]]),jf=x(`folder-git`,[[`circle`,{cx:`12`,cy:`13`,r:`2`,key:`1c1ljs`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M14 13h3`,key:`1dgedf`}],[`path`,{d:`M7 13h3`,key:`1pygq7`}]]),Mf=x(`folder-input`,[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]),Nf=x(`folder-heart`,[[`path`,{d:`M10.638 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v3.417`,key:`10r6g4`}],[`path`,{d:`M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z`,key:`15cy7q`}]]),Pf=x(`folder-key`,[[`path`,{d:`M13 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.36`,key:`1shsnm`}],[`path`,{d:`M19 12v6`,key:`kflna4`}],[`path`,{d:`M19 14h2`,key:`wp2qbk`}],[`circle`,{cx:`19`,cy:`20`,r:`2`,key:`1jfyz6`}]]),Ff=x(`folder-kanban`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]),If=x(`folder-lock`,[[`rect`,{width:`8`,height:`5`,x:`14`,y:`17`,rx:`1`,key:`19aais`}],[`path`,{d:`M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5`,key:`1w6v7t`}],[`path`,{d:`M20 17v-2a2 2 0 1 0-4 0v2`,key:`pwaxnr`}]]),Lf=x(`folder-minus`,[[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Rf=x(`folder-open-dot`,[[`path`,{d:`m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2`,key:`1nmvlm`}],[`circle`,{cx:`14`,cy:`15`,r:`1`,key:`1gm4qj`}]]),zf=x(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Bf=x(`folder-pen`,[[`path`,{d:`M2 11.5V5a2 2 0 0 1 2-2h3.9c.7 0 1.3.3 1.7.9l.8 1.2c.4.6 1 .9 1.7.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.5`,key:`a8xqs0`}],[`path`,{d:`M11.378 13.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1saktj`}]]),Vf=x(`folder-output`,[[`path`,{d:`M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5`,key:`1yk7aj`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m5 10-3 3 3 3`,key:`1r8ie0`}]]),Hf=x(`folder-root`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`circle`,{cx:`12`,cy:`13`,r:`2`,key:`1c1ljs`}],[`path`,{d:`M12 15v5`,key:`11xva1`}]]),Uf=x(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Wf=x(`folder-search-2`,[[`circle`,{cx:`11.5`,cy:`12.5`,r:`2.5`,key:`1ea5ju`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M13.3 14.3 15 16`,key:`1y4v1n`}]]),Gf=x(`folder-search`,[[`path`,{d:`M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1`,key:`1bw5m7`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]),Kf=x(`folder-symlink`,[[`path`,{d:`M2 9.35V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7`,key:`y8kt7d`}],[`path`,{d:`m8 16 3-3-3-3`,key:`rlqrt1`}]]),qf=x(`folder-tree`,[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]),Jf=x(`folder-sync`,[[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5`,key:`1dkoa9`}],[`path`,{d:`M12 10v4h4`,key:`1czhmt`}],[`path`,{d:`m12 14 1.535-1.605a5 5 0 0 1 8 1.5`,key:`lvuxfi`}],[`path`,{d:`M22 22v-4h-4`,key:`1ewp4q`}],[`path`,{d:`m22 18-1.535 1.605a5 5 0 0 1-8-1.5`,key:`14ync0`}]]),Yf=x(`folder-up`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`m9 13 3-3 3 3`,key:`1pxg3c`}]]),Xf=x(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Zf=x(`folder-x`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`m9.5 10.5 5 5`,key:`ra9qjz`}],[`path`,{d:`m14.5 10.5-5 5`,key:`l2rkpq`}]]),Qf=x(`folders`,[[`path`,{d:`M20 5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5a1.5 1.5 0 0 1 1.2.6l.6.8a1.5 1.5 0 0 0 1.2.6z`,key:`a4852j`}],[`path`,{d:`M3 8.268a2 2 0 0 0-1 1.738V19a2 2 0 0 0 2 2h11a2 2 0 0 0 1.732-1`,key:`yxbcw3`}]]),$f=x(`footprints`,[[`path`,{d:`M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z`,key:`1dudjm`}],[`path`,{d:`M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z`,key:`l2t8xc`}],[`path`,{d:`M16 17h4`,key:`1dejxt`}],[`path`,{d:`M4 13h4`,key:`1bwh8b`}]]),ep=x(`form`,[[`path`,{d:`M4 14h6`,key:`77gv2w`}],[`path`,{d:`M4 2h10`,key:`a2b314`}],[`rect`,{x:`4`,y:`18`,width:`16`,height:`4`,rx:`1`,key:`sybzq6`}],[`rect`,{x:`4`,y:`6`,width:`16`,height:`4`,rx:`1`,key:`1osc9e`}]]),tp=x(`forklift`,[[`path`,{d:`M12 12H5a2 2 0 0 0-2 2v5`,key:`7zsz91`}],[`path`,{d:`M15 19h7`,key:`1askl3`}],[`path`,{d:`M16 19V2`,key:`1gf9nk`}],[`path`,{d:`M6 12V7a2 2 0 0 1 2-2h2.172a2 2 0 0 1 1.414.586l3.828 3.828A2 2 0 0 1 16 10.828`,key:`enx9tf`}],[`path`,{d:`M7 19h4`,key:`fumhkk`}],[`circle`,{cx:`13`,cy:`19`,r:`2`,key:`wjnkru`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}]]),np=x(`forward`,[[`path`,{d:`m15 17 5-5-5-5`,key:`nf172w`}],[`path`,{d:`M4 18v-2a4 4 0 0 1 4-4h12`,key:`jmiej9`}]]),rp=x(`frame`,[[`line`,{x1:`22`,x2:`2`,y1:`6`,y2:`6`,key:`15w7dq`}],[`line`,{x1:`22`,x2:`2`,y1:`18`,y2:`18`,key:`1ip48p`}],[`line`,{x1:`6`,x2:`6`,y1:`2`,y2:`22`,key:`a2lnyx`}],[`line`,{x1:`18`,x2:`18`,y1:`2`,y2:`22`,key:`8vb6jd`}]]),ip=x(`frown`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 16s-1.5-2-4-2-4 2-4 2`,key:`epbg0q`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),ap=x(`fuel`,[[`path`,{d:`M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5`,key:`1wtuz0`}],[`path`,{d:`M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16`,key:`e09ifn`}],[`path`,{d:`M2 21h13`,key:`1x0fut`}],[`path`,{d:`M3 9h11`,key:`1p7c0w`}]]),op=x(`fullscreen`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`rect`,{width:`10`,height:`8`,x:`7`,y:`8`,rx:`1`,key:`vys8me`}]]),sp=x(`funnel-plus`,[[`path`,{d:`M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348`,key:`8mvsmf`}],[`path`,{d:`M16 6h6`,key:`1dogtp`}],[`path`,{d:`M19 3v6`,key:`1ytpjt`}]]),cp=x(`funnel-x`,[[`path`,{d:`M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473`,key:`ol2ft2`}],[`path`,{d:`m16.5 3.5 5 5`,key:`15e6fa`}],[`path`,{d:`m21.5 3.5-5 5`,key:`m0lwru`}]]),lp=x(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),up=x(`gallery-horizontal-end`,[[`path`,{d:`M2 7v10`,key:`a2pl2d`}],[`path`,{d:`M6 5v14`,key:`1kq3d7`}],[`rect`,{width:`12`,height:`18`,x:`10`,y:`3`,rx:`2`,key:`13i7bc`}]]),dp=x(`gallery-horizontal`,[[`path`,{d:`M2 3v18`,key:`pzttux`}],[`rect`,{width:`12`,height:`18`,x:`6`,y:`3`,rx:`2`,key:`btr8bg`}],[`path`,{d:`M22 3v18`,key:`6jf3v`}]]),fp=x(`gallery-thumbnails`,[[`rect`,{width:`18`,height:`14`,x:`3`,y:`3`,rx:`2`,key:`74y24f`}],[`path`,{d:`M4 21h1`,key:`16zlid`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M19 21h1`,key:`edywat`}]]),pp=x(`gallery-vertical-end`,[[`path`,{d:`M7 2h10`,key:`nczekb`}],[`path`,{d:`M5 6h14`,key:`u2x4p`}],[`rect`,{width:`18`,height:`12`,x:`3`,y:`10`,rx:`2`,key:`l0tzu3`}]]),mp=x(`gallery-vertical`,[[`path`,{d:`M3 2h18`,key:`15qxfx`}],[`rect`,{width:`18`,height:`12`,x:`3`,y:`6`,rx:`2`,key:`1439r6`}],[`path`,{d:`M3 22h18`,key:`8prr45`}]]),hp=x(`gamepad-2`,[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`,key:`1gktln`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`,key:`qnk9ow`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`,key:`krot7o`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`,key:`1lcuu1`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`,key:`mfqc10`}]]),gp=x(`gamepad-directional`,[[`path`,{d:`M11.146 15.854a1.207 1.207 0 0 1 1.708 0l1.56 1.56A2 2 0 0 1 15 18.828V21a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-2.172a2 2 0 0 1 .586-1.414z`,key:`1re2og`}],[`path`,{d:`M18.828 15a2 2 0 0 1-1.414-.586l-1.56-1.56a1.207 1.207 0 0 1 0-1.708l1.56-1.56A2 2 0 0 1 18.828 9H21a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1z`,key:`1pchrj`}],[`path`,{d:`M6.586 14.414A2 2 0 0 1 5.172 15H3a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h2.172a2 2 0 0 1 1.414.586l1.56 1.56a1.207 1.207 0 0 1 0 1.708z`,key:`16mt4c`}],[`path`,{d:`M9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2.172a2 2 0 0 1-.586 1.414l-1.56 1.56a1.207 1.207 0 0 1-1.708 0l-1.56-1.56A2 2 0 0 1 9 5.172z`,key:`19ox6c`}]]),_p=x(`gamepad`,[[`line`,{x1:`6`,x2:`10`,y1:`12`,y2:`12`,key:`161bw2`}],[`line`,{x1:`8`,x2:`8`,y1:`10`,y2:`14`,key:`1i6ji0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`13`,y2:`13`,key:`dqpgro`}],[`line`,{x1:`18`,x2:`18.01`,y1:`11`,y2:`11`,key:`meh2c`}],[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}]]),vp=x(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),yp=x(`gavel`,[[`path`,{d:`m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381`,key:`pgg06f`}],[`path`,{d:`m16 16 6-6`,key:`vzrcl6`}],[`path`,{d:`m21.5 10.5-8-8`,key:`a17d9x`}],[`path`,{d:`m8 8 6-6`,key:`18bi4p`}],[`path`,{d:`m8.5 7.5 8 8`,key:`1oyaui`}]]),bp=x(`gem`,[[`path`,{d:`M10.5 3 8 9l4 13 4-13-2.5-6`,key:`b3dvk1`}],[`path`,{d:`M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z`,key:`7w4byz`}],[`path`,{d:`M2 9h20`,key:`16fsjt`}]]),xp=x(`georgian-lari`,[[`path`,{d:`M11.5 21a7.5 7.5 0 1 1 7.35-9`,key:`1gyj8k`}],[`path`,{d:`M13 12V3`,key:`18om2a`}],[`path`,{d:`M4 21h16`,key:`1h09gz`}],[`path`,{d:`M9 12V3`,key:`geutu0`}]]),Sp=x(`ghost`,[[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}],[`path`,{d:`M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z`,key:`uwwb07`}]]),Cp=x(`gift`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`1sqzm4`}],[`path`,{d:`M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5`,key:`kc0143`}],[`rect`,{x:`3`,y:`7`,width:`18`,height:`4`,rx:`1`,key:`1hberx`}]]),wp=x(`git-branch-minus`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),Tp=x(`git-branch-plus`,[[`path`,{d:`M6 3v12`,key:`qpgusn`}],[`path`,{d:`M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,key:`1d02ji`}],[`path`,{d:`M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,key:`chk6ph`}],[`path`,{d:`M15 6a9 9 0 0 0-9 9`,key:`or332x`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),Ep=x(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),Dp=x(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]),Op=x(`git-commit-vertical`,[[`path`,{d:`M12 3v6`,key:`1holv5`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 15v6`,key:`a9ows0`}]]),kp=x(`git-compare-arrows`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]),Ap=x(`git-compare`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`,key:`19pyzm`}]]),jp=x(`git-fork`,[[`circle`,{cx:`12`,cy:`18`,r:`3`,key:`1mpf1b`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`path`,{d:`M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9`,key:`1uq4wg`}],[`path`,{d:`M12 12v3`,key:`158kv8`}]]),Mp=x(`git-graph`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M5 9v6`,key:`158jrl`}],[`circle`,{cx:`5`,cy:`18`,r:`3`,key:`104gr9`}],[`path`,{d:`M12 3v18`,key:`108xh3`}],[`circle`,{cx:`19`,cy:`6`,r:`3`,key:`108a5v`}],[`path`,{d:`M16 15.7A9 9 0 0 0 19 9`,key:`1e3vqb`}]]),Np=x(`git-merge-conflict`,[[`path`,{d:`M12 6h4a2 2 0 0 1 2 2v7`,key:`18ej7s`}],[`path`,{d:`M6 12v9`,key:`9e33v1`}],[`path`,{d:`M9 3 3 9`,key:`ahyygn`}],[`path`,{d:`M9 9 3 3`,key:`v551iv`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Pp=x(`git-merge`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 21V9a9 9 0 0 0 9 9`,key:`7kw0sc`}]]),Fp=x(`git-pull-request-arrow`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M5 9v12`,key:`ih889a`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}]]),Ip=x(`git-pull-request-create-arrow`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M5 9v12`,key:`ih889a`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v3`,key:`1rbwk6`}],[`path`,{d:`M19 15v6`,key:`10aioa`}],[`path`,{d:`M22 18h-6`,key:`1d5gi5`}]]),Lp=x(`git-pull-request-closed`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 9v12`,key:`1sc30k`}],[`path`,{d:`m21 3-6 6`,key:`16nqsk`}],[`path`,{d:`m21 9-6-6`,key:`9j17rh`}],[`path`,{d:`M18 11.5V15`,key:`65xf6f`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Rp=x(`git-pull-request-create`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 9v12`,key:`1sc30k`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v3`,key:`1jb6z3`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),zp=x(`git-pull-request-draft`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M18 6V5`,key:`1oao2s`}],[`path`,{d:`M18 11v-1`,key:`11c8tz`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),Bp=x(`git-pull-request`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),Vp=x(`glasses`,[[`circle`,{cx:`6`,cy:`15`,r:`4`,key:`vux9w4`}],[`circle`,{cx:`18`,cy:`15`,r:`4`,key:`18o8ve`}],[`path`,{d:`M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2`,key:`1ag4bs`}],[`path`,{d:`M2.5 13 5 7c.7-1.3 1.4-2 3-2`,key:`1hm1gs`}],[`path`,{d:`M21.5 13 19 7c-.7-1.3-1.5-2-3-2`,key:`1r31ai`}]]),Hp=x(`glass-water`,[[`path`,{d:`M5.116 4.104A1 1 0 0 1 6.11 3h11.78a1 1 0 0 1 .994 1.105L17.19 20.21A2 2 0 0 1 15.2 22H8.8a2 2 0 0 1-2-1.79z`,key:`p55z4y`}],[`path`,{d:`M6 12a5 5 0 0 1 6 0 5 5 0 0 0 6 0`,key:`mjntcy`}]]),Up=x(`globe-check`,[[`path`,{d:`m15 6 2 2 4-4`,key:`levio8`}],[`path`,{d:`M2 12h20A10 10 0 1 1 12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 4-10`,key:`46evmv`}]]),Wp=x(`globe-lock`,[[`path`,{d:`M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13`,key:`qkt0x6`}],[`path`,{d:`M2 12h8.5`,key:`ovaggd`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),Gp=x(`globe-off`,[[`path`,{d:`M10.114 4.462A14.5 14.5 0 0 1 12 2a10 10 0 0 1 9.313 13.643`,key:`1jq2r7`}],[`path`,{d:`M15.557 15.556A14.5 14.5 0 0 1 12 22 10 10 0 0 1 4.929 4.929`,key:`1ohfya`}],[`path`,{d:`M15.892 10.234A14.5 14.5 0 0 0 12 2a10 10 0 0 0-3.643.687`,key:`1fyh9w`}],[`path`,{d:`M17.656 12H22`,key:`1ttse4`}],[`path`,{d:`M19.071 19.071A10 10 0 0 1 12 22 14.5 14.5 0 0 1 8.44 8.45`,key:`rmtjzo`}],[`path`,{d:`M2 12h10`,key:`19562f`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Kp=x(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),qp=x(`globe-x`,[[`path`,{d:`m16 3 5 5`,key:`1husv6`}],[`path`,{d:`M2 12h20A10 10 0 1 1 12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 4-10`,key:`46evmv`}],[`path`,{d:`m21 3-5 5`,key:`1g5oa7`}]]),Jp=x(`goal`,[[`path`,{d:`M12 13V2l8 4-8 4`,key:`5wlwwj`}],[`path`,{d:`M20.561 10.222a9 9 0 1 1-12.55-5.29`,key:`1c0wjv`}],[`path`,{d:`M8.002 9.997a5 5 0 1 0 8.9 2.02`,key:`gb1g7m`}]]),Yp=x(`graduation-cap`,[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]),Xp=x(`gpu`,[[`path`,{d:`M2 17h18a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H2`,key:`hpo31w`}],[`path`,{d:`M2 21V3`,key:`1bzk4w`}],[`path`,{d:`M7 17v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3`,key:`5hbqbf`}],[`circle`,{cx:`16`,cy:`11`,r:`2`,key:`qt15rb`}],[`circle`,{cx:`8`,cy:`11`,r:`2`,key:`ssideg`}]]),Zp=x(`grape`,[[`path`,{d:`M22 5V2l-5.89 5.89`,key:`1eenpo`}],[`circle`,{cx:`16.6`,cy:`15.89`,r:`3`,key:`xjtalx`}],[`circle`,{cx:`8.11`,cy:`7.4`,r:`3`,key:`u2fv6i`}],[`circle`,{cx:`12.35`,cy:`11.65`,r:`3`,key:`i6i8g7`}],[`circle`,{cx:`13.91`,cy:`5.85`,r:`3`,key:`6ye0dv`}],[`circle`,{cx:`18.15`,cy:`10.09`,r:`3`,key:`snx9no`}],[`circle`,{cx:`6.56`,cy:`13.2`,r:`3`,key:`17x4xg`}],[`circle`,{cx:`10.8`,cy:`17.44`,r:`3`,key:`1hogw9`}],[`circle`,{cx:`5`,cy:`19`,r:`3`,key:`1sn6vo`}]]),Qp=x(`grid-2x2-check`,[[`path`,{d:`M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3`,key:`11za1p`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}]]),$p=x(`grid-2x2-plus`,[[`path`,{d:`M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3`,key:`11za1p`}],[`path`,{d:`M16 19h6`,key:`xwg31i`}],[`path`,{d:`M19 22v-6`,key:`qhmiwi`}]]),em=x(`grid-2x2-x`,[[`path`,{d:`M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3`,key:`11za1p`}],[`path`,{d:`m16 16 5 5`,key:`8tpb07`}],[`path`,{d:`m16 21 5-5`,key:`193jll`}]]),tm=x(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),nm=x(`grid-3x2`,[[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),rm=x(`grid-3x3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),im=x(`grip-horizontal`,[[`circle`,{cx:`12`,cy:`9`,r:`1`,key:`124mty`}],[`circle`,{cx:`19`,cy:`9`,r:`1`,key:`1ruzo2`}],[`circle`,{cx:`5`,cy:`9`,r:`1`,key:`1a8b28`}],[`circle`,{cx:`12`,cy:`15`,r:`1`,key:`1e56xg`}],[`circle`,{cx:`19`,cy:`15`,r:`1`,key:`1a92ep`}],[`circle`,{cx:`5`,cy:`15`,r:`1`,key:`5r1jwy`}]]),am=x(`grip`,[[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`19`,cy:`5`,r:`1`,key:`w8mnmm`}],[`circle`,{cx:`5`,cy:`5`,r:`1`,key:`lttvr7`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}],[`circle`,{cx:`19`,cy:`19`,r:`1`,key:`shf9b7`}],[`circle`,{cx:`5`,cy:`19`,r:`1`,key:`bfqh0e`}]]),om=x(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),sm=x(`ham`,[[`path`,{d:`M13.144 21.144A7.274 10.445 45 1 0 2.856 10.856`,key:`1k1t7q`}],[`path`,{d:`M13.144 21.144A7.274 4.365 45 0 0 2.856 10.856a7.274 4.365 45 0 0 10.288 10.288`,key:`153t1g`}],[`path`,{d:`M16.565 10.435 18.6 8.4a2.501 2.501 0 1 0 1.65-4.65 2.5 2.5 0 1 0-4.66 1.66l-2.024 2.025`,key:`gzrt0n`}],[`path`,{d:`m8.5 16.5-1-1`,key:`otr954`}]]),cm=x(`group`,[[`path`,{d:`M3 7V5c0-1.1.9-2 2-2h2`,key:`adw53z`}],[`path`,{d:`M17 3h2c1.1 0 2 .9 2 2v2`,key:`an4l38`}],[`path`,{d:`M21 17v2c0 1.1-.9 2-2 2h-2`,key:`144t0e`}],[`path`,{d:`M7 21H5c-1.1 0-2-.9-2-2v-2`,key:`rtnfgi`}],[`rect`,{width:`7`,height:`5`,x:`7`,y:`7`,rx:`1`,key:`1eyiv7`}],[`rect`,{width:`7`,height:`5`,x:`10`,y:`12`,rx:`1`,key:`1qlmkx`}]]),lm=x(`hamburger`,[[`path`,{d:`M12 16H4a2 2 0 1 1 0-4h16a2 2 0 1 1 0 4h-4.25`,key:`5dloqd`}],[`path`,{d:`M5 12a2 2 0 0 1-2-2 9 7 0 0 1 18 0 2 2 0 0 1-2 2`,key:`1vl3my`}],[`path`,{d:`M5 16a2 2 0 0 0-2 2 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 2 2 0 0 0-2-2q0 0 0 0`,key:`1us75o`}],[`path`,{d:`m6.67 12 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2`,key:`qqzweh`}]]),um=x(`guitar`,[[`path`,{d:`m11.9 12.1 4.514-4.514`,key:`109xqo`}],[`path`,{d:`M20.1 2.3a1 1 0 0 0-1.4 0l-1.114 1.114A2 2 0 0 0 17 4.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 17.828 7h1.344a2 2 0 0 0 1.414-.586L21.7 5.3a1 1 0 0 0 0-1.4z`,key:`txyc8t`}],[`path`,{d:`m6 16 2 2`,key:`16qmzd`}],[`path`,{d:`M8.23 9.85A3 3 0 0 1 11 8a5 5 0 0 1 5 5 3 3 0 0 1-1.85 2.77l-.92.38A2 2 0 0 0 12 18a4 4 0 0 1-4 4 6 6 0 0 1-6-6 4 4 0 0 1 4-4 2 2 0 0 0 1.85-1.23z`,key:`1de1vg`}]]),dm=x(`hammer`,[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]),fm=x(`hand-coins`,[[`path`,{d:`M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17`,key:`geh8rc`}],[`path`,{d:`m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9`,key:`1fto5m`}],[`path`,{d:`m2 16 6 6`,key:`1pfhp9`}],[`circle`,{cx:`16`,cy:`9`,r:`2.9`,key:`1n0dlu`}],[`circle`,{cx:`6`,cy:`5`,r:`3`,key:`151irh`}]]),pm=x(`hand-fist`,[[`path`,{d:`M12.035 17.012a3 3 0 0 0-3-3l-.311-.002a.72.72 0 0 1-.505-1.229l1.195-1.195A2 2 0 0 1 10.828 11H12a2 2 0 0 0 0-4H9.243a3 3 0 0 0-2.122.879l-2.707 2.707A4.83 4.83 0 0 0 3 14a8 8 0 0 0 8 8h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v2a2 2 0 1 0 4 0`,key:`1ff7rl`}],[`path`,{d:`M13.888 9.662A2 2 0 0 0 17 8V5A2 2 0 1 0 13 5`,key:`1xmd21`}],[`path`,{d:`M9 5A2 2 0 1 0 5 5V10`,key:`f3wfjw`}],[`path`,{d:`M9 7V4A2 2 0 1 1 13 4V7.268`,key:`eaoucv`}]]),mm=x(`hand-grab`,[[`path`,{d:`M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4`,key:`edstyy`}],[`path`,{d:`M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`19wdwo`}],[`path`,{d:`M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5`,key:`1lugqo`}],[`path`,{d:`M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1hbeus`}],[`path`,{d:`M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0`,key:`1etffm`}]]),hm=x(`hand-heart`,[[`path`,{d:`M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16`,key:`1v1a37`}],[`path`,{d:`m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95`,key:`fhfbnt`}],[`path`,{d:`m2 15 6 6`,key:`10dquu`}],[`path`,{d:`m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91`,key:`1x6kdw`}]]),gm=x(`hand-helping`,[[`path`,{d:`M11 12h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 14`,key:`1j4xps`}],[`path`,{d:`m7 18 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9`,key:`uospg8`}],[`path`,{d:`m2 13 6 6`,key:`16e5sb`}]]),_m=x(`hand-metal`,[[`path`,{d:`M18 12.5V10a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4`,key:`wc6myp`}],[`path`,{d:`M14 11V9a2 2 0 1 0-4 0v2`,key:`94qvcw`}],[`path`,{d:`M10 10.5V5a2 2 0 1 0-4 0v9`,key:`m1ah89`}],[`path`,{d:`m7 15-1.76-1.76a2 2 0 0 0-2.83 2.82l3.6 3.6C7.5 21.14 9.2 22 12 22h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v5`,key:`t1skq1`}]]),vm=x(`hand-platter`,[[`path`,{d:`M12 3V2`,key:`ar7q03`}],[`path`,{d:`m15.4 17.4 3.2-2.8a2 2 0 1 1 2.8 2.9l-3.6 3.3c-.7.8-1.7 1.2-2.8 1.2h-4c-1.1 0-2.1-.4-2.8-1.2l-1.302-1.464A1 1 0 0 0 6.151 19H5`,key:`n2g93r`}],[`path`,{d:`M2 14h12a2 2 0 0 1 0 4h-2`,key:`1o2jem`}],[`path`,{d:`M4 10h16`,key:`img6z1`}],[`path`,{d:`M5 10a7 7 0 0 1 14 0`,key:`1ega1o`}],[`path`,{d:`M5 14v6a1 1 0 0 1-1 1H2`,key:`1hescx`}]]),ym=x(`hand`,[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]),bm=x(`handbag`,[[`path`,{d:`M2.048 18.566A2 2 0 0 0 4 21h16a2 2 0 0 0 1.952-2.434l-2-9A2 2 0 0 0 18 8H6a2 2 0 0 0-1.952 1.566z`,key:`1qbui5`}],[`path`,{d:`M8 11V6a4 4 0 0 1 8 0v5`,key:`tcht90`}]]),xm=x(`hard-drive-download`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m16 6-4 4-4-4`,key:`6wukr`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 18h.01`,key:`h775k`}]]),Sm=x(`handshake`,[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]),Cm=x(`hard-drive-upload`,[[`path`,{d:`m16 6-4-4-4 4`,key:`13yo43`}],[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 18h.01`,key:`h775k`}]]),wm=x(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Tm=x(`hard-hat`,[[`path`,{d:`M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5`,key:`1p9q5i`}],[`path`,{d:`M14 6a6 6 0 0 1 6 6v3`,key:`1hnv84`}],[`path`,{d:`M4 15v-3a6 6 0 0 1 6-6`,key:`9ciidu`}],[`rect`,{x:`2`,y:`15`,width:`20`,height:`4`,rx:`1`,key:`g3x8cw`}]]),Em=x(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),Dm=x(`hat-glasses`,[[`path`,{d:`M14 18a2 2 0 0 0-4 0`,key:`1v8fkw`}],[`path`,{d:`m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11`,key:`1fkr7p`}],[`path`,{d:`M2 11h20`,key:`3eubbj`}],[`circle`,{cx:`17`,cy:`18`,r:`3`,key:`82mm0e`}],[`circle`,{cx:`7`,cy:`18`,r:`3`,key:`lvkj7j`}]]),Om=x(`haze`,[[`path`,{d:`m5.2 6.2 1.4 1.4`,key:`17imol`}],[`path`,{d:`M2 13h2`,key:`13gyu8`}],[`path`,{d:`M20 13h2`,key:`16rner`}],[`path`,{d:`m17.4 7.6 1.4-1.4`,key:`t4xlah`}],[`path`,{d:`M22 17H2`,key:`1gtaj3`}],[`path`,{d:`M22 21H2`,key:`1gy6en`}],[`path`,{d:`M16 13a4 4 0 0 0-8 0`,key:`1dyczq`}],[`path`,{d:`M12 5V2.5`,key:`1vytko`}]]),km=x(`hd`,[[`path`,{d:`M10 12H6`,key:`15f2ro`}],[`path`,{d:`M10 15V9`,key:`1lckn7`}],[`path`,{d:`M14 14.5a.5.5 0 0 0 .5.5h1a2.5 2.5 0 0 0 2.5-2.5v-1A2.5 2.5 0 0 0 15.5 9h-1a.5.5 0 0 0-.5.5z`,key:`b3f847`}],[`path`,{d:`M6 15V9`,key:`12stmj`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),Am=x(`hdmi-port`,[[`path`,{d:`M22 9a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1l2 2h12l2-2h1a1 1 0 0 0 1-1Z`,key:`2128wb`}],[`path`,{d:`M7.5 12h9`,key:`1t0ckc`}]]),jm=x(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),Mm=x(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),Nm=x(`heading-4`,[[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 10v3a1 1 0 0 0 1 1h3`,key:`tj5zdr`}],[`path`,{d:`M21 10v8`,key:`1kdml4`}],[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}]]),Pm=x(`heading-3`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]),Fm=x(`heading-5`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 13v-3h4`,key:`1nvgqp`}],[`path`,{d:`M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17`,key:`2nebdn`}]]),Im=x(`heading-6`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`circle`,{cx:`19`,cy:`16`,r:`2`,key:`15mx69`}],[`path`,{d:`M20 10c-2 2-3 3.5-3 6`,key:`f35dl0`}]]),Lm=x(`heading`,[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]),Rm=x(`headphone-off`,[[`path`,{d:`M21 14h-1.343`,key:`1jdnxi`}],[`path`,{d:`M9.128 3.47A9 9 0 0 1 21 12v3.343`,key:`6kipu2`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20.414 20.414A2 2 0 0 1 19 21h-1a2 2 0 0 1-2-2v-3`,key:`9x50f4`}],[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 2.636-6.364`,key:`1bkxnm`}]]),zm=x(`headphones`,[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`,key:`1xhozi`}]]),Bm=x(`headset`,[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]),Vm=x(`heart-crack`,[[`path`,{d:`M12.409 5.824c-.702.792-1.15 1.496-1.415 2.166l2.153 2.156a.5.5 0 0 1 0 .707l-2.293 2.293a.5.5 0 0 0 0 .707L12 15`,key:`idzbju`}],[`path`,{d:`M13.508 20.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.677.6.6 0 0 0 .818.001A5.5 5.5 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5z`,key:`1su70f`}]]),Hm=x(`heart-handshake`,[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]),Um=x(`heart-minus`,[[`path`,{d:`m14.876 18.99-1.368 1.323a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5a5.2 5.2 0 0 1-.244 1.572`,key:`15yztm`}],[`path`,{d:`M15 15h6`,key:`1u4692`}]]),Wm=x(`heart-off`,[[`path`,{d:`M10.5 4.893a5.5 5.5 0 0 1 1.091.931.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 1.872-1.002 3.356-2.187 4.655`,key:`1inpfl`}],[`path`,{d:`m16.967 16.967-3.459 3.346a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 2.747-4.761`,key:`vbc6x7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Gm=x(`heart-plus`,[[`path`,{d:`m14.479 19.374-.971.939a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5a5.2 5.2 0 0 1-.219 1.49`,key:`wg5jx`}],[`path`,{d:`M15 15h6`,key:`1u4692`}],[`path`,{d:`M18 12v6`,key:`1houu1`}]]),Km=x(`heart-x`,[[`path`,{d:`m15.5 12.5 5 5`,key:`15wbfr`}],[`path`,{d:`m20.5 12.5-5 5`,key:`o012pn`}],[`path`,{d:`M21.955 8.774a5.5 5.5 0 0 0-9.546-2.95.6.6 0 0 1-.818 0A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.508 5.332a2 2 0 0 0 2.57.352`,key:`c1obtn`}]]),qm=x(`heart-pulse`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}],[`path`,{d:`M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27`,key:`auskq0`}]]),Jm=x(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),Ym=x(`heater`,[[`path`,{d:`M11 8c2-3-2-3 0-6`,key:`1ldv5m`}],[`path`,{d:`M15.5 8c2-3-2-3 0-6`,key:`1otqoz`}],[`path`,{d:`M6 10h.01`,key:`1lbq93`}],[`path`,{d:`M6 14h.01`,key:`zudwn7`}],[`path`,{d:`M10 16v-4`,key:`1c25yv`}],[`path`,{d:`M14 16v-4`,key:`1dkbt8`}],[`path`,{d:`M18 16v-4`,key:`1yg9me`}],[`path`,{d:`M20 6a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3`,key:`1ubg90`}],[`path`,{d:`M5 20v2`,key:`1abpe8`}],[`path`,{d:`M19 20v2`,key:`kqn6ft`}]]),Xm=x(`hexagon`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]),Zm=x(`highlighter`,[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]),Qm=x(`helicopter`,[[`path`,{d:`M11 17v4`,key:`14wq8k`}],[`path`,{d:`M14 3v8a2 2 0 0 0 2 2h5.865`,key:`12oo5h`}],[`path`,{d:`M17 17v4`,key:`hdt4hh`}],[`path`,{d:`M18 17a4 4 0 0 0 4-4 8 6 0 0 0-8-6 6 5 0 0 0-6 5v3a2 2 0 0 0 2 2z`,key:`yynif`}],[`path`,{d:`M2 10v5`,key:`sa5akn`}],[`path`,{d:`M6 3h16`,key:`27qw71`}],[`path`,{d:`M7 21h14`,key:`1ugz0u`}],[`path`,{d:`M8 13H2`,key:`1thz1o`}]]),$m=x(`history`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),eh=x(`hop-off`,[[`path`,{d:`M10.82 16.12c1.69.6 3.91.79 5.18.85.28.01.53-.09.7-.27`,key:`qyzcap`}],[`path`,{d:`M11.14 20.57c.52.24 2.44 1.12 4.08 1.37.46.06.86-.25.9-.71.12-1.52-.3-3.43-.5-4.28`,key:`y078lb`}],[`path`,{d:`M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .7-.26`,key:`1utre3`}],[`path`,{d:`M17.99 5.52a20.83 20.83 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-1.17.1-2.5.02-3.9-.25`,key:`17o9hm`}],[`path`,{d:`M20.57 11.14c.24.52 1.12 2.44 1.37 4.08.04.3-.08.59-.31.75`,key:`1d1n4p`}],[`path`,{d:`M4.93 4.93a10 10 0 0 0-.67 13.4c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.85.85 0 0 0 .48-.24`,key:`9uv3tt`}],[`path`,{d:`M5.52 17.99c1.05.95 2.91 2.42 4.5 3.15a.8.8 0 0 0 1.13-.68c.2-2.34-.33-5.3-1.57-8.28`,key:`1292wz`}],[`path`,{d:`M8.35 2.68a10 10 0 0 1 9.98 1.58c.43.35.4.96-.12 1.17-1.5.6-4.3.98-6.07 1.05`,key:`7ozu9p`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),th=x(`hop`,[[`path`,{d:`M10.82 16.12c1.69.6 3.91.79 5.18.85.55.03 1-.42.97-.97-.06-1.27-.26-3.5-.85-5.18`,key:`18lxf1`}],[`path`,{d:`M11.5 6.5c1.64 0 5-.38 6.71-1.07.52-.2.55-.82.12-1.17A10 10 0 0 0 4.26 18.33c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.88.88 0 0 0 .73-.74c.3-2.14-.15-3.5-.61-4.88`,key:`vtfxrw`}],[`path`,{d:`M15.62 16.95c.2.85.62 2.76.5 4.28a.77.77 0 0 1-.9.7 16.64 16.64 0 0 1-4.08-1.36`,key:`13hl71`}],[`path`,{d:`M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .96-.96 17.68 17.68 0 0 0-.9-4.87`,key:`1sl8oj`}],[`path`,{d:`M16.94 15.62c.86.2 2.77.62 4.29.5a.77.77 0 0 0 .7-.9 16.64 16.64 0 0 0-1.36-4.08`,key:`19c6kt`}],[`path`,{d:`M17.99 5.52a20.82 20.82 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-2.33.2-5.3-.32-8.27-1.57`,key:`85ghs3`}],[`path`,{d:`M4.93 4.93 3 3a.7.7 0 0 1 0-1`,key:`x087yj`}],[`path`,{d:`M9.58 12.18c1.24 2.98 1.77 5.95 1.57 8.28a.8.8 0 0 1-1.13.68 20.82 20.82 0 0 1-4.5-3.15`,key:`11xdqo`}]]),nh=x(`hospital`,[[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M14 9h-4`,key:`1w2s2s`}],[`path`,{d:`M18 11h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2`,key:`1tthqt`}],[`path`,{d:`M18 21V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16`,key:`dw4p4i`}]]),rh=x(`hotel`,[[`path`,{d:`M10 22v-6.57`,key:`1wmca3`}],[`path`,{d:`M12 11h.01`,key:`z322tv`}],[`path`,{d:`M12 7h.01`,key:`1ivr5q`}],[`path`,{d:`M14 15.43V22`,key:`1q2vjd`}],[`path`,{d:`M15 16a5 5 0 0 0-6 0`,key:`o9wqvi`}],[`path`,{d:`M16 11h.01`,key:`xkw8gn`}],[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 7h.01`,key:`1vti4s`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),ih=x(`hourglass`,[[`path`,{d:`M5 22h14`,key:`ehvnwv`}],[`path`,{d:`M5 2h14`,key:`pdyrp9`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`,key:`1d314k`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`,key:`1vvvr6`}]]),ah=x(`house-heart`,[[`path`,{d:`M8.62 13.8A2.25 2.25 0 1 1 12 10.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z`,key:`n9s7kx`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),oh=x(`house-plug`,[[`path`,{d:`M10 12V8.964`,key:`1vll13`}],[`path`,{d:`M14 12V8.964`,key:`1x3qvg`}],[`path`,{d:`M15 12a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-2a1 1 0 0 1 1-1z`,key:`ppykja`}],[`path`,{d:`M8.5 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-2`,key:`365xoy`}]]),sh=x(`house-plus`,[[`path`,{d:`M12.35 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .71-1.53l7-6a2 2 0 0 1 2.58 0l7 6A2 2 0 0 1 21 10v2.35`,key:`8ek5ge`}],[`path`,{d:`M14.8 12.4A1 1 0 0 0 14 12h-4a1 1 0 0 0-1 1v8`,key:`1rbg29`}],[`path`,{d:`M15 18h6`,key:`3b3c90`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}]]),ch=x(`house-wifi`,[[`path`,{d:`M9.5 13.866a4 4 0 0 1 5 .01`,key:`1wy54i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}],[`path`,{d:`M7 10.754a8 8 0 0 1 10 0`,key:`exoy2g`}]]),lh=x(`ice-cream-bowl`,[[`path`,{d:`M12 17c5 0 8-2.69 8-6H4c0 3.31 3 6 8 6m-4 4h8m-4-3v3M5.14 11a3.5 3.5 0 1 1 6.71 0`,key:`1uxfcu`}],[`path`,{d:`M12.14 11a3.5 3.5 0 1 1 6.71 0`,key:`4k3m1s`}],[`path`,{d:`M15.5 6.5a3.5 3.5 0 1 0-7 0`,key:`zmuahr`}]]),uh=x(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),dh=x(`ice-cream-cone`,[[`path`,{d:`m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11`,key:`1v6356`}],[`path`,{d:`M17 7A5 5 0 0 0 7 7`,key:`151p3v`}],[`path`,{d:`M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4`,key:`1sdaij`}]]),fh=x(`id-card-lanyard`,[[`path`,{d:`M13.5 8h-3`,key:`xvov4w`}],[`path`,{d:`m15 2-1 2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3`,key:`16uttc`}],[`path`,{d:`M16.899 22A5 5 0 0 0 7.1 22`,key:`1d0ppr`}],[`path`,{d:`m9 2 3 6`,key:`1o7bd9`}],[`circle`,{cx:`12`,cy:`15`,r:`3`,key:`g36mzq`}]]),ph=x(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),mh=x(`image-minus`,[[`path`,{d:`M21 9v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7`,key:`m87ecr`}],[`line`,{x1:`16`,x2:`22`,y1:`5`,y2:`5`,key:`ez7e4s`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),hh=x(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),gh=x(`image-down`,[[`path`,{d:`M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21`,key:`9csbqa`}],[`path`,{d:`m14 19 3 3v-5.5`,key:`9ldu5r`}],[`path`,{d:`m17 22 3-3`,key:`1nkfve`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),_h=x(`image-play`,[[`path`,{d:`M15 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z`,key:`nrt1m3`}],[`path`,{d:`M21 12.17V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6`,key:`99hgts`}],[`path`,{d:`m6 21 5-5`,key:`1wyjai`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),vh=x(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),yh=x(`image-up`,[[`path`,{d:`M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21`,key:`9csbqa`}],[`path`,{d:`m14 19.5 3-3 3 3`,key:`9vmjn0`}],[`path`,{d:`M17 22v-5.5`,key:`1aa6fl`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),bh=x(`image-upscale`,[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M17 21h2a2 2 0 0 0 2-2`,key:`130fy9`}],[`path`,{d:`M21 12v3`,key:`1wzk3p`}],[`path`,{d:`m21 3-5 5`,key:`1g5oa7`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2`,key:`kk3yz1`}],[`path`,{d:`m5 21 4.144-4.144a1.21 1.21 0 0 1 1.712 0L13 19`,key:`fyekpt`}],[`path`,{d:`M9 3h3`,key:`d52fa`}],[`rect`,{x:`3`,y:`11`,width:`10`,height:`10`,rx:`1`,key:`1wpmix`}]]),xh=x(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Sh=x(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),Ch=x(`import`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m8 11 4 4 4-4`,key:`1dohi6`}],[`path`,{d:`M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4`,key:`1ywtjm`}]]),wh=x(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),Th=x(`indian-rupee`,[[`path`,{d:`M6 3h12`,key:`ggurg9`}],[`path`,{d:`M6 8h12`,key:`6g4wlu`}],[`path`,{d:`m6 13 8.5 8`,key:`u1kupk`}],[`path`,{d:`M6 13h3`,key:`wdp6ag`}],[`path`,{d:`M9 13c6.667 0 6.667-10 0-10`,key:`1nkvk2`}]]),Eh=x(`infinity`,[[`path`,{d:`M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8`,key:`18ogeb`}]]),Dh=x(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Oh=x(`inspection-panel`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 7h.01`,key:`7u93v4`}],[`path`,{d:`M17 7h.01`,key:`14a9sn`}],[`path`,{d:`M7 17h.01`,key:`19xn7k`}],[`path`,{d:`M17 17h.01`,key:`1sd3ek`}]]),kh=x(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),Ah=x(`iteration-ccw`,[[`path`,{d:`m16 14 4 4-4 4`,key:`hkso8o`}],[`path`,{d:`M20 10a8 8 0 1 0-8 8h8`,key:`1bik7b`}]]),jh=x(`iteration-cw`,[[`path`,{d:`M4 10a8 8 0 1 1 8 8H4`,key:`svv66n`}],[`path`,{d:`m8 22-4-4 4-4`,key:`6g7gki`}]]),Mh=x(`japanese-yen`,[[`path`,{d:`M12 9.5V21m0-11.5L6 3m6 6.5L18 3`,key:`2ej80x`}],[`path`,{d:`M6 15h12`,key:`1hwgt5`}],[`path`,{d:`M6 11h12`,key:`wf4gp6`}]]),Nh=x(`joystick`,[[`path`,{d:`M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z`,key:`jg2n2t`}],[`path`,{d:`M6 15v-2`,key:`gd6mvg`}],[`path`,{d:`M12 15V9`,key:`8c7uyn`}],[`circle`,{cx:`12`,cy:`6`,r:`3`,key:`1gm2ql`}]]),Ph=x(`kanban`,[[`path`,{d:`M5 3v14`,key:`9nsxs2`}],[`path`,{d:`M12 3v8`,key:`1h2ygw`}],[`path`,{d:`M19 3v18`,key:`1sk56x`}]]),Fh=x(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Ih=x(`key-square`,[[`path`,{d:`M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z`,key:`165ttr`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814`,key:`1ubxi2`}]]),Lh=x(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Rh=x(`keyboard-music`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M6 8h4`,key:`utf9t1`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M6 12v4`,key:`dy92yo`}],[`path`,{d:`M10 12v4`,key:`1fxnav`}],[`path`,{d:`M14 12v4`,key:`1hft58`}],[`path`,{d:`M18 12v4`,key:`tjjnbz`}]]),zh=x(`kayak`,[[`path`,{d:`M18 17a1 1 0 0 0-1 1v1a2 2 0 1 0 2-2z`,key:`skzb1g`}],[`path`,{d:`M20.97 3.61a.45.45 0 0 0-.58-.58C10.2 6.6 6.6 10.2 3.03 20.39a.45.45 0 0 0 .58.58C13.8 17.4 17.4 13.8 20.97 3.61`,key:`cv9jm7`}],[`path`,{d:`m6.707 6.707 10.586 10.586`,key:`d2l993`}],[`path`,{d:`M7 5a2 2 0 1 0-2 2h1a1 1 0 0 0 1-1z`,key:`i0et4n`}]]),Bh=x(`keyboard-off`,[[`path`,{d:`M 20 4 A2 2 0 0 1 22 6`,key:`1g1fkt`}],[`path`,{d:`M 22 6 L 22 16.41`,key:`1qjg3w`}],[`path`,{d:`M 7 16 L 16 16`,key:`n0yqwb`}],[`path`,{d:`M 9.69 4 L 20 4`,key:`kbpcgx`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2`,key:`s23sx2`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}]]),Vh=x(`lamp-ceiling`,[[`path`,{d:`M12 2v5`,key:`nd4vlx`}],[`path`,{d:`M14.829 15.998a3 3 0 1 1-5.658 0`,key:`1pybiy`}],[`path`,{d:`M20.92 14.606A1 1 0 0 1 20 16H4a1 1 0 0 1-.92-1.394l3-7A1 1 0 0 1 7 7h10a1 1 0 0 1 .92.606z`,key:`ma1wor`}]]),Hh=x(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),Uh=x(`lamp-desk`,[[`path`,{d:`M10.293 2.293a1 1 0 0 1 1.414 0l2.5 2.5 5.994 1.227a1 1 0 0 1 .506 1.687l-7 7a1 1 0 0 1-1.687-.506l-1.227-5.994-2.5-2.5a1 1 0 0 1 0-1.414z`,key:`sb8slu`}],[`path`,{d:`m14.207 4.793-3.414 3.414`,key:`m2x3oj`}],[`path`,{d:`M3 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z`,key:`8b3myj`}],[`path`,{d:`m9.086 6.5-4.793 4.793a1 1 0 0 0-.18 1.17L7 18`,key:`43s6cu`}]]),Wh=x(`lamp-wall-down`,[[`path`,{d:`M19.929 18.629A1 1 0 0 1 19 20H9a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 11 13h6a1 1 0 0 1 .928.629z`,key:`u4w2d7`}],[`path`,{d:`M6 3a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z`,key:`15356w`}],[`path`,{d:`M8 6h4a2 2 0 0 1 2 2v5`,key:`1m6m7x`}]]),Gh=x(`lamp-floor`,[[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M17.929 7.629A1 1 0 0 1 17 9H7a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 9 2h6a1 1 0 0 1 .928.629z`,key:`1o95gh`}],[`path`,{d:`M9 22h6`,key:`1rlq3v`}]]),Kh=x(`lamp-wall-up`,[[`path`,{d:`M19.929 9.629A1 1 0 0 1 19 11H9a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 11 4h6a1 1 0 0 1 .928.629z`,key:`1uvrbf`}],[`path`,{d:`M6 15a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z`,key:`154r2a`}],[`path`,{d:`M8 18h4a2 2 0 0 0 2-2v-5`,key:`z9mbu0`}]]),qh=x(`lamp`,[[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`M4.077 10.615A1 1 0 0 0 5 12h14a1 1 0 0 0 .923-1.385l-3.077-7.384A2 2 0 0 0 15 2H9a2 2 0 0 0-1.846 1.23Z`,key:`1l7kg2`}],[`path`,{d:`M8 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1z`,key:`1mmzpi`}]]),Jh=x(`land-plot`,[[`path`,{d:`m12 8 6-3-6-3v10`,key:`mvpnpy`}],[`path`,{d:`m8 11.99-5.5 3.14a1 1 0 0 0 0 1.74l8.5 4.86a2 2 0 0 0 2 0l8.5-4.86a1 1 0 0 0 0-1.74L16 12`,key:`ek95tt`}],[`path`,{d:`m6.49 12.85 11.02 6.3`,key:`1kt42w`}],[`path`,{d:`M17.51 12.85 6.5 19.15`,key:`v55bdg`}]]),Yh=x(`landmark`,[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]),Xh=x(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),Zh=x(`laptop-minimal-check`,[[`path`,{d:`M2 20h20`,key:`owomy5`}],[`path`,{d:`m9 10 2 2 4-4`,key:`1gnqz4`}],[`rect`,{x:`3`,y:`4`,width:`18`,height:`12`,rx:`2`,key:`8ur36m`}]]),Qh=x(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),$h=x(`laptop-minimal`,[[`rect`,{width:`18`,height:`12`,x:`3`,y:`4`,rx:`2`,ry:`2`,key:`1qhy41`}],[`line`,{x1:`2`,x2:`22`,y1:`20`,y2:`20`,key:`ni3hll`}]]),eg=x(`lasso-select`,[[`path`,{d:`M7 22a5 5 0 0 1-2-4`,key:`umushi`}],[`path`,{d:`M7 16.93c.96.43 1.96.74 2.99.91`,key:`ybbtv3`}],[`path`,{d:`M3.34 14A6.8 6.8 0 0 1 2 10c0-4.42 4.48-8 10-8s10 3.58 10 8a7.19 7.19 0 0 1-.33 2`,key:`gt5e1w`}],[`path`,{d:`M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z`,key:`bq3ynw`}],[`path`,{d:`M14.33 22h-.09a.35.35 0 0 1-.24-.32v-10a.34.34 0 0 1 .33-.34c.08 0 .15.03.21.08l7.34 6a.33.33 0 0 1-.21.59h-4.49l-2.57 3.85a.35.35 0 0 1-.28.14z`,key:`72q637`}]]),tg=x(`lasso`,[[`path`,{d:`M3.704 14.467a10 8 0 1 1 3.115 2.375`,key:`wxgc5m`}],[`path`,{d:`M7 22a5 5 0 0 1-2-3.994`,key:`1xp6a4`}],[`circle`,{cx:`5`,cy:`16`,r:`2`,key:`18csp3`}]]),ng=x(`laugh`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z`,key:`b2q4dd`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),rg=x(`layers-2`,[[`path`,{d:`M13 13.74a2 2 0 0 1-2 0L2.5 8.87a1 1 0 0 1 0-1.74L11 2.26a2 2 0 0 1 2 0l8.5 4.87a1 1 0 0 1 0 1.74z`,key:`15q6uc`}],[`path`,{d:`m20 14.285 1.5.845a1 1 0 0 1 0 1.74L13 21.74a2 2 0 0 1-2 0l-8.5-4.87a1 1 0 0 1 0-1.74l1.5-.845`,key:`byia6g`}]]),ig=x(`layers-plus`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 .83.18 2 2 0 0 0 .83-.18l8.58-3.9a1 1 0 0 0 0-1.831z`,key:`zzgyd3`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M19 14v6`,key:`1ckrd5`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 .825.178`,key:`1ia9y3`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l2.116-.962`,key:`jksky3`}]]),ag=x(`layers-minus`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 .83.18 2 2 0 0 0 .83-.18l8.58-3.9a1 1 0 0 0 0-1.832z`,key:`tq134k`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M2.003 11.995a1 1 0 0 0 .597.915l8.58 3.91a2 2 0 0 0 .83.18`,key:`8mjqed`}],[`path`,{d:`M2.003 16.995a1 1 0 0 0 .597.915l8.58 3.91a2 2 0 0 0 .83.18 2 2 0 0 0 .83-.18l2.11-.96`,key:`7vwz41`}],[`path`,{d:`M22.018 12.004a1 1 0 0 1-.598.916l-.177.08`,key:`bm5b9y`}]]),og=x(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),sg=x(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),cg=x(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),lg=x(`layout-panel-left`,[[`rect`,{width:`7`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`2obqm`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}]]),ug=x(`layout-list`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]),dg=x(`layout-panel-top`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}]]),fg=x(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),pg=x(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),mg=x(`leafy-green`,[[`path`,{d:`M2 22c1.25-.987 2.27-1.975 3.9-2.2a5.56 5.56 0 0 1 3.8 1.5 4 4 0 0 0 6.187-2.353 3.5 3.5 0 0 0 3.69-5.116A3.5 3.5 0 0 0 20.95 8 3.5 3.5 0 1 0 16 3.05a3.5 3.5 0 0 0-5.831 1.373 3.5 3.5 0 0 0-5.116 3.69 4 4 0 0 0-2.348 6.155C3.499 15.42 4.409 16.712 4.2 18.1 3.926 19.743 3.014 20.732 2 22`,key:`1134nt`}],[`path`,{d:`M2 22 17 7`,key:`1q7jp2`}]]),hg=x(`lectern`,[[`path`,{d:`M16 12h3a2 2 0 0 0 1.902-1.38l1.056-3.333A1 1 0 0 0 21 6H3a1 1 0 0 0-.958 1.287l1.056 3.334A2 2 0 0 0 5 12h3`,key:`13jjxg`}],[`path`,{d:`M18 6V3a1 1 0 0 0-1-1h-3`,key:`1550fe`}],[`rect`,{width:`8`,height:`12`,x:`8`,y:`10`,rx:`1`,key:`qmu8b6`}]]),gg=x(`lens-concave`,[[`path`,{d:`M7 2a1 1 0 0 0-.8 1.6 14 14 0 0 1 0 16.8A1 1 0 0 0 7 22h10a1 1 0 0 0 .8-1.6 14 14 0 0 1 0-16.8A1 1 0 0 0 17 2z`,key:`109j23`}]]),_g=x(`lens-convex`,[[`path`,{d:`M13.433 2a1 1 0 0 1 .824.448 18 18 0 0 1 0 19.104 1 1 0 0 1-.824.448h-2.866a1 1 0 0 1-.824-.448 18 18 0 0 1 0-19.104A1 1 0 0 1 10.567 2z`,key:`cq67go`}]]),vg=x(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),yg=x(`life-buoy`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m4.93 4.93 4.24 4.24`,key:`1ymg45`}],[`path`,{d:`m14.83 9.17 4.24-4.24`,key:`1cb5xl`}],[`path`,{d:`m14.83 14.83 4.24 4.24`,key:`q42g0n`}],[`path`,{d:`m9.17 14.83-4.24 4.24`,key:`bqpfvv`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),bg=x(`library-big`,[[`rect`,{width:`8`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`oynpb5`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z`,key:`1qboyk`}]]),xg=x(`ligature`,[[`path`,{d:`M14 12h2v8`,key:`c1fccl`}],[`path`,{d:`M14 20h4`,key:`lzx1xo`}],[`path`,{d:`M6 12h4`,key:`a4o3ry`}],[`path`,{d:`M6 20h4`,key:`1i6q5t`}],[`path`,{d:`M8 20V8a4 4 0 0 1 7.464-2`,key:`wk9t6r`}]]),Sg=x(`lightbulb-off`,[[`path`,{d:`M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5`,key:`1fkcox`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5`,key:`10m8kw`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),Cg=x(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),wg=x(`line-squiggle`,[[`path`,{d:`M7 3.5c5-2 7 2.5 3 4C1.5 10 2 15 5 16c5 2 9-10 14-7s.5 13.5-4 12c-5-2.5.5-11 6-2`,key:`1lrphd`}]]),Tg=x(`line-dot-right-horizontal`,[[`path`,{d:`M 3 12 L 15 12`,key:`ymhu98`}],[`circle`,{cx:`18`,cy:`12`,r:`3`,key:`1kchzo`}]]),Eg=x(`line-style`,[[`path`,{d:`M11 5h2`,key:`1s6z07`}],[`path`,{d:`M15 12h6`,key:`upa0zy`}],[`path`,{d:`M19 5h2`,key:`fjylsg`}],[`path`,{d:`M3 12h6`,key:`ra68u1`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}],[`path`,{d:`M3 5h2`,key:`1qgu90`}]]),Dg=x(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Og=x(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),kg=x(`list-check`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M16 12H3`,key:`1a2rj7`}],[`path`,{d:`M11 19H3`,key:`zflm78`}],[`path`,{d:`m15 18 2 2 4-4`,key:`1szwhi`}]]),Ag=x(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),jg=x(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Mg=x(`list-chevrons-up-down`,[[`path`,{d:`M3 5h8`,key:`18g2rq`}],[`path`,{d:`M3 12h8`,key:`1xfjp6`}],[`path`,{d:`M3 19h8`,key:`fpbke4`}],[`path`,{d:`m15 8 3-3 3 3`,key:`bc4io6`}],[`path`,{d:`m15 16 3 3 3-3`,key:`9wmg1l`}]]),Ng=x(`list-chevrons-down-up`,[[`path`,{d:`M3 5h8`,key:`18g2rq`}],[`path`,{d:`M3 12h8`,key:`1xfjp6`}],[`path`,{d:`M3 19h8`,key:`fpbke4`}],[`path`,{d:`m15 5 3 3 3-3`,key:`1t4thf`}],[`path`,{d:`m15 19 3-3 3 3`,key:`y4ckd2`}]]),Pg=x(`list-collapse`,[[`path`,{d:`M10 5h11`,key:`1hkqpe`}],[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`M10 19h11`,key:`14g2nv`}],[`path`,{d:`m3 10 3-3-3-3`,key:`i7pm08`}],[`path`,{d:`m3 20 3-3-3-3`,key:`20gx1n`}]]),Fg=x(`list-end`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M16 12H3`,key:`1a2rj7`}],[`path`,{d:`M9 19H3`,key:`s61nz1`}],[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M21 5v12a2 2 0 0 1-2 2h-6`,key:`hey24a`}]]),Ig=x(`list-filter-plus`,[[`path`,{d:`M12 5H2`,key:`1o22fu`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}],[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 8V2`,key:`1wcffq`}]]),Lg=x(`list-filter`,[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]),Rg=x(`list-indent-decrease`,[[`path`,{d:`M21 5H11`,key:`us1j55`}],[`path`,{d:`M21 12H11`,key:`wd7e0v`}],[`path`,{d:`M21 19H11`,key:`saa85w`}],[`path`,{d:`m7 8-4 4 4 4`,key:`o5hrat`}]]),zg=x(`list-indent-increase`,[[`path`,{d:`M21 5H11`,key:`us1j55`}],[`path`,{d:`M21 12H11`,key:`wd7e0v`}],[`path`,{d:`M21 19H11`,key:`saa85w`}],[`path`,{d:`m3 8 4 4-4 4`,key:`1a3j6y`}]]),Bg=x(`list-minus`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]),Vg=x(`list-music`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M11 19H3`,key:`zflm78`}],[`path`,{d:`M21 16V5`,key:`yxg4q8`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),Hg=x(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),Ug=x(`list-plus`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]),Wg=x(`list-restart`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M7 12H3`,key:`13ou7f`}],[`path`,{d:`M7 19H3`,key:`wbqt3n`}],[`path`,{d:`M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14`,key:`qth677`}],[`path`,{d:`M11 10v4h4`,key:`172dkj`}]]),Gg=x(`list-start`,[[`path`,{d:`M3 5h6`,key:`1ltk0q`}],[`path`,{d:`M3 12h13`,key:`ppymz1`}],[`path`,{d:`M3 19h13`,key:`bpdczq`}],[`path`,{d:`m16 8-3-3 3-3`,key:`1pjpp6`}],[`path`,{d:`M21 19V7a2 2 0 0 0-2-2h-6`,key:`4zzq67`}]]),Kg=x(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),qg=x(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),Jg=x(`list-video`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`path`,{d:`M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z`,key:`ms4nik`}]]),Yg=x(`list-x`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`m15.5 9.5 5 5`,key:`ytk86i`}],[`path`,{d:`m20.5 9.5-5 5`,key:`17o44f`}]]),Xg=x(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),Zg=x(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Qg=x(`loader-pinwheel`,[[`path`,{d:`M22 12a1 1 0 0 1-10 0 1 1 0 0 0-10 0`,key:`1lzz15`}],[`path`,{d:`M7 20.7a1 1 0 1 1 5-8.7 1 1 0 1 0 5-8.6`,key:`1gnrpi`}],[`path`,{d:`M7 3.3a1 1 0 1 1 5 8.6 1 1 0 1 0 5 8.6`,key:`u9yy5q`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),$g=x(`loader`,[[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m16.2 7.8 2.9-2.9`,key:`r700ao`}],[`path`,{d:`M18 12h4`,key:`wj9ykh`}],[`path`,{d:`m16.2 16.2 2.9 2.9`,key:`1bxg5t`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m4.9 19.1 2.9-2.9`,key:`bwix9q`}],[`path`,{d:`M2 12h4`,key:`j09sii`}],[`path`,{d:`m4.9 4.9 2.9 2.9`,key:`giyufr`}]]),e_=x(`locate-fixed`,[[`line`,{x1:`2`,x2:`5`,y1:`12`,y2:`12`,key:`bvdh0s`}],[`line`,{x1:`19`,x2:`22`,y1:`12`,y2:`12`,key:`1tbv5k`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`5`,key:`11lu5j`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}],[`circle`,{cx:`12`,cy:`12`,r:`7`,key:`fim9np`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),t_=x(`locate-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M18.89 13.24a7 7 0 0 0-8.13-8.13`,key:`1v9jrh`}],[`path`,{d:`M19 12h3`,key:`osuazr`}],[`path`,{d:`M2 12h3`,key:`1wrr53`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7.05 7.05a7 7 0 0 0 9.9 9.9`,key:`rc5l2e`}]]),n_=x(`lock-keyhole-open`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{width:`18`,height:`12`,x:`3`,y:`10`,rx:`2`,key:`l0tzu3`}],[`path`,{d:`M7 10V7a5 5 0 0 1 9.33-2.5`,key:`car5b7`}]]),r_=x(`locate`,[[`line`,{x1:`2`,x2:`5`,y1:`12`,y2:`12`,key:`bvdh0s`}],[`line`,{x1:`19`,x2:`22`,y1:`12`,y2:`12`,key:`1tbv5k`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`5`,key:`11lu5j`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}],[`circle`,{cx:`12`,cy:`12`,r:`7`,key:`fim9np`}]]),i_=x(`lock-keyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),a_=x(`lock-open`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),o_=x(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),s_=x(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),c_=x(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),l_=x(`logs`,[[`path`,{d:`M3 5h1`,key:`1mv5vm`}],[`path`,{d:`M3 12h1`,key:`lp3yf2`}],[`path`,{d:`M3 19h1`,key:`w6f3n9`}],[`path`,{d:`M8 5h1`,key:`1nxr5w`}],[`path`,{d:`M8 12h1`,key:`1con00`}],[`path`,{d:`M8 19h1`,key:`k7p10e`}],[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}]]),u_=x(`lollipop`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}],[`path`,{d:`M11 11a2 2 0 0 0 4 0 4 4 0 0 0-8 0 6 6 0 0 0 12 0`,key:`107gwy`}]]),d_=x(`luggage`,[[`path`,{d:`M6 20a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2`,key:`1m57jg`}],[`path`,{d:`M8 18V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v14`,key:`1l99gc`}],[`path`,{d:`M10 20h4`,key:`ni2waw`}],[`circle`,{cx:`16`,cy:`20`,r:`2`,key:`1vifvg`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]),f_=x(`magnet`,[[`path`,{d:`m12 15 4 4`,key:`lnac28`}],[`path`,{d:`M2.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.029-6.029a1 1 0 1 1 3 3l-6.029 6.029a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.365-6.367A1 1 0 0 0 8.716 4.282z`,key:`nlhkjb`}],[`path`,{d:`m5 8 4 4`,key:`j6kj7e`}]]),p_=x(`mail-check`,[[`path`,{d:`M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8`,key:`12jkf8`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}]]),m_=x(`mail-minus`,[[`path`,{d:`M22 15V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8`,key:`fuxbkv`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M16 19h6`,key:`xwg31i`}]]),h_=x(`mail-open`,[[`path`,{d:`M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z`,key:`1jhwl8`}],[`path`,{d:`m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10`,key:`1qfld7`}]]),g_=x(`mail-plus`,[[`path`,{d:`M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8`,key:`12jkf8`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M16 19h6`,key:`xwg31i`}]]),__=x(`mail-question-mark`,[[`path`,{d:`M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5`,key:`e61zoh`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2`,key:`7z9rxb`}],[`path`,{d:`M20 22v.01`,key:`12bgn6`}]]),v_=x(`mail-search`,[[`path`,{d:`M22 12.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h7.5`,key:`w80f2v`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z`,key:`8lzu5m`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`path`,{d:`m22 22-1.5-1.5`,key:`1x83k4`}]]),y_=x(`mail-warning`,[[`path`,{d:`M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5`,key:`e61zoh`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M20 14v4`,key:`1hm744`}],[`path`,{d:`M20 22v.01`,key:`12bgn6`}]]),b_=x(`mail-x`,[[`path`,{d:`M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h9`,key:`1j9vog`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`m17 17 4 4`,key:`1b3523`}],[`path`,{d:`m21 17-4 4`,key:`uinynz`}]]),x_=x(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),S_=x(`mailbox`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z`,key:`1lbycx`}],[`polyline`,{points:`15,9 18,9 18,11`,key:`1pm9c0`}],[`path`,{d:`M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2`,key:`15i455`}],[`line`,{x1:`6`,x2:`7`,y1:`10`,y2:`10`,key:`1e2scm`}]]),C_=x(`map-minus`,[[`path`,{d:`m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V14`,key:`40pylx`}],[`path`,{d:`M15 5.764V14`,key:`1bab71`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),w_=x(`mails`,[[`path`,{d:`M17 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 1-1.732`,key:`1vyzll`}],[`path`,{d:`m22 5.5-6.419 4.179a2 2 0 0 1-2.162 0L7 5.5`,key:`k7ramc`}],[`rect`,{x:`7`,y:`3`,width:`15`,height:`12`,rx:`2`,key:`17196g`}]]),T_=x(`map-pin-check-inside`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`path`,{d:`m9 10 2 2 4-4`,key:`1gnqz4`}]]),E_=x(`map-pin-check`,[[`path`,{d:`M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32.197 32.197 0 0 0 .813-.728`,key:`1dq61d`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`m16 18 2 2 4-4`,key:`1mkfmb`}]]),D_=x(`map-pin-house`,[[`path`,{d:`M15 22a1 1 0 0 1-1-1v-4a1 1 0 0 1 .445-.832l3-2a1 1 0 0 1 1.11 0l3 2A1 1 0 0 1 22 17v4a1 1 0 0 1-1 1z`,key:`1p1rcz`}],[`path`,{d:`M18 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 .601.2`,key:`mcbcs9`}],[`path`,{d:`M18 22v-3`,key:`1t1ugv`}],[`circle`,{cx:`10`,cy:`10`,r:`3`,key:`1ns7v1`}]]),O_=x(`map-pin-minus-inside`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),k_=x(`map-pin-minus`,[[`path`,{d:`M18.977 14C19.6 12.701 20 11.343 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738`,key:`11uxia`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M16 18h6`,key:`987eiv`}]]),A_=x(`map-pin-off`,[[`path`,{d:`M12.75 7.09a3 3 0 0 1 2.16 2.16`,key:`1d4wjd`}],[`path`,{d:`M17.072 17.072c-1.634 2.17-3.527 3.912-4.471 4.727a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 1.432-4.568`,key:`12yil7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.475 2.818A8 8 0 0 1 20 10c0 1.183-.31 2.377-.81 3.533`,key:`lhrkcz`}],[`path`,{d:`M9.13 9.13a3 3 0 0 0 3.74 3.74`,key:`13wojd`}]]),j_=x(`map-pin-pen`,[[`path`,{d:`M17.97 9.304A8 8 0 0 0 2 10c0 4.69 4.887 9.562 7.022 11.468`,key:`1fahp3`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`10`,r:`3`,key:`1ns7v1`}]]),M_=x(`map-pin-plus-inside`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),N_=x(`map-pin-plus`,[[`path`,{d:`M19.914 11.105A7.298 7.298 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738`,key:`fcdtly`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M16 18h6`,key:`987eiv`}],[`path`,{d:`M19 15v6`,key:`10aioa`}]]),P_=x(`map-pin-search`,[[`path`,{d:`M 12.248 21.969 a 1 1 0 0 1 -0.849 -0.17 C 9.539 20.193 4 14.993 4 10 a 8 8 0 0 1 16 0 C 20 10.42 19.961 10.841 19.888 11.262`,key:`1jho5b`}],[`path`,{d:`m22 22-1.88-1.88`,key:`1bgjp0`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),F_=x(`map-pin-x`,[[`path`,{d:`M19.752 11.901A7.78 7.78 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 19 19 0 0 0 .09-.077`,key:`y0ewhp`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`m21.5 15.5-5 5`,key:`11iqnx`}],[`path`,{d:`m21.5 20.5-5-5`,key:`1bylgx`}]]),I_=x(`map-pin-x-inside`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`path`,{d:`m14.5 7.5-5 5`,key:`3lb6iw`}],[`path`,{d:`m9.5 7.5 5 5`,key:`ko136h`}]]),L_=x(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),R_=x(`map-pinned`,[[`path`,{d:`M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0`,key:`11u0oz`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712`,key:`q8zwxj`}]]),z_=x(`map-plus`,[[`path`,{d:`m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V12`,key:`svfegj`}],[`path`,{d:`M15 5.764V12`,key:`1ocw4k`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),B_=x(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),V_=x(`mars-stroke`,[[`path`,{d:`m14 6 4 4`,key:`1q72g9`}],[`path`,{d:`M17 3h4v4`,key:`19p9u1`}],[`path`,{d:`m21 3-7.75 7.75`,key:`1cjbfd`}],[`circle`,{cx:`9`,cy:`15`,r:`6`,key:`bx5svt`}]]),H_=x(`mars`,[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`m21 3-6.75 6.75`,key:`pv0uzu`}],[`circle`,{cx:`10`,cy:`14`,r:`6`,key:`1qwbdc`}]]),U_=x(`martini`,[[`path`,{d:`M12 12 4.207 4.207A.707.707 0 0 1 4.707 3h14.586a.707.707 0 0 1 .5 1.207z`,key:`vxdekd`}],[`path`,{d:`M12 12v10`,key:`1nesaz`}],[`path`,{d:`M7 22h10`,key:`10w4w3`}]]),W_=x(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),G_=x(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),K_=x(`medal`,[[`path`,{d:`M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15`,key:`143lza`}],[`path`,{d:`M11 12 5.12 2.2`,key:`qhuxz6`}],[`path`,{d:`m13 12 5.88-9.8`,key:`hbye0f`}],[`path`,{d:`M8 7h8`,key:`i86dvs`}],[`circle`,{cx:`12`,cy:`17`,r:`5`,key:`qbz8iq`}],[`path`,{d:`M12 18v-2h-.5`,key:`fawc4q`}]]),q_=x(`megaphone-off`,[[`path`,{d:`M11.636 6A13 13 0 0 0 19.4 3.2 1 1 0 0 1 21 4v11.344`,key:`bycexp`}],[`path`,{d:`M14.378 14.357A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1`,key:`1t17s6`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 8v6`,key:`aieo6v`}]]),J_=x(`megaphone`,[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]),Y_=x(`meh`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`8`,x2:`16`,y1:`15`,y2:`15`,key:`1xb1d9`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),X_=x(`memory-stick`,[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]),Z_=x(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Q_=x(`merge`,[[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}],[`path`,{d:`M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22`,key:`1hyw0i`}],[`path`,{d:`m20 22-5-5`,key:`1m27yz`}]]),$_=x(`message-circle-check`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ev=x(`message-circle-code`,[[`path`,{d:`m10 9-3 3 3 3`,key:`1oro0q`}],[`path`,{d:`m14 15 3-3-3-3`,key:`bz13h7`}],[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),tv=x(`message-circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.72a10 10 0 0 1 2.69 2.7`,key:`jiglxs`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.28 17.61a10 10 0 0 1-2.7 2.69`,key:`elg7ff`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`m6.163 21.117-2.906.85a1 1 0 0 1-1.236-1.169l.965-2.98`,key:`1qsu07`}]]),nv=x(`message-circle-heart`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 5.004 2.224 3 3 0 0 1-.832 2.083l-3.447 3.62a1 1 0 0 1-1.45-.001z`,key:`hoo97p`}]]),Zee=x(`message-circle-more`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}]]),rv=x(`message-circle-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4.93 4.929a10 10 0 0 0-1.938 11.412 2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 0 0 11.302-1.989`,key:`7il5tn`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}]]),iv=x(`message-circle-plus`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),av=x(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),ov=x(`message-circle-reply`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}],[`path`,{d:`M7 12h8a2 2 0 0 1 2 2v1`,key:`89sh1g`}]]),sv=x(`message-circle-warning`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),cv=x(`message-circle-x`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),lv=x(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),uv=x(`message-square-check`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.7.7 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`m0kn7k`}],[`path`,{d:`m9 11 2 2 4-4`,key:`kz4plv`}]]),dv=x(`message-square-code`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`m10 8-3 3 3 3`,key:`fp6dz7`}],[`path`,{d:`m14 14 3-3-3-3`,key:`1yrceu`}]]),fv=x(`message-square-dashed`,[[`path`,{d:`M14 3h2`,key:`1d12a5`}],[`path`,{d:`M16 19h-2`,key:`1agirb`}],[`path`,{d:`M2 12v-2`,key:`1ey295`}],[`path`,{d:`M2 16v5.286a.71.71 0 0 0 1.212.502l1.149-1.149`,key:`120k8q`}],[`path`,{d:`M20 19a2 2 0 0 0 2-2v-1`,key:`ior8tn`}],[`path`,{d:`M22 10v2`,key:`rmlecy`}],[`path`,{d:`M22 6V5a2 2 0 0 0-2-2`,key:`sp3k6r`}],[`path`,{d:`M4 3a2 2 0 0 0-2 2v1`,key:`11zt7s`}],[`path`,{d:`M8 19h2`,key:`jnunrx`}],[`path`,{d:`M8 3h2`,key:`ysbsee`}]]),pv=x(`message-square-diff`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M10 15h4`,key:`192ueg`}],[`path`,{d:`M10 9h4`,key:`u4k05v`}],[`path`,{d:`M12 7v4`,key:`xawao1`}]]),mv=x(`message-square-dot`,[[`path`,{d:`M12.7 3H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H20a2 2 0 0 0 2-2v-4.7`,key:`wjb7ig`}],[`circle`,{cx:`19`,cy:`6`,r:`3`,key:`108a5v`}]]),hv=x(`message-square-heart`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7.5 9.5c0 .687.265 1.383.697 1.844l3.009 3.264a1.14 1.14 0 0 0 .407.314 1 1 0 0 0 .783-.004 1.14 1.14 0 0 0 .398-.31l3.008-3.264A2.77 2.77 0 0 0 16.5 9.5 2.5 2.5 0 0 0 12 8a2.5 2.5 0 0 0-4.5 1.5`,key:`1faxuh`}]]),gv=x(`message-square-lock`,[[`path`,{d:`M22 8.5V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H10`,key:`fu6chl`}],[`path`,{d:`M20 15v-2a2 2 0 0 0-4 0v2`,key:`vl8a78`}],[`rect`,{x:`14`,y:`15`,width:`8`,height:`5`,rx:`1`,key:`37aafw`}]]),_v=x(`message-square-more`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 11h.01`,key:`z322tv`}],[`path`,{d:`M16 11h.01`,key:`xkw8gn`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}]]),vv=x(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),yv=x(`message-square-quote`,[[`path`,{d:`M14 14a2 2 0 0 0 2-2V8h-2`,key:`1r06pg`}],[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M8 14a2 2 0 0 0 2-2V8H8`,key:`1jzu5j`}]]),bv=x(`message-square-off`,[[`path`,{d:`M19 19H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.7.7 0 0 1 2 21.286V5a2 2 0 0 1 1.184-1.826`,key:`1wyg69`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.656 3H20a2 2 0 0 1 2 2v11.344`,key:`mhl4k6`}]]),xv=x(`message-square-reply`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`m10 8-3 3 3 3`,key:`fp6dz7`}],[`path`,{d:`M17 14v-1a2 2 0 0 0-2-2H7`,key:`1tkjnz`}]]),Sv=x(`message-square-share`,[[`path`,{d:`M12 3H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H20a2 2 0 0 0 2-2v-4`,key:`11da1y`}],[`path`,{d:`M16 3h6v6`,key:`1bx56c`}],[`path`,{d:`m16 9 6-6`,key:`m4dnic`}]]),Cv=x(`message-square-text`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),wv=x(`message-square-warning`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 15h.01`,key:`q59x07`}],[`path`,{d:`M12 7v4`,key:`xawao1`}]]),Tv=x(`message-square-x`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`m14.5 8.5-5 5`,key:`19tnj2`}],[`path`,{d:`m9.5 8.5 5 5`,key:`1oa8ql`}]]),Ev=x(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Dv=x(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),Ov=x(`metronome`,[[`path`,{d:`M12 11.4V9.1`,key:`audfby`}],[`path`,{d:`m12 17 6.59-6.59`,key:`c0sb7j`}],[`path`,{d:`m15.05 5.7-.218-.691a3 3 0 0 0-5.663 0L4.418 19.695A1 1 0 0 0 5.37 21h13.253a1 1 0 0 0 .951-1.31L18.45 16.2`,key:`1pkfrk`}],[`circle`,{cx:`20`,cy:`9`,r:`2`,key:`1udoqf`}]]),kv=x(`mic-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]),Av=x(`mic-vocal`,[[`path`,{d:`m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12`,key:`80a601`}],[`path`,{d:`M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5`,key:`j0ngtp`}],[`circle`,{cx:`16`,cy:`7`,r:`5`,key:`d08jfb`}]]),jv=x(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),Mv=x(`microchip`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 17h4`,key:`pvmtpo`}],[`path`,{d:`M10 7h4`,key:`1vgcok`}],[`path`,{d:`M18 12h2`,key:`quuxs7`}],[`path`,{d:`M18 18h2`,key:`4scel`}],[`path`,{d:`M18 6h2`,key:`1ptzki`}],[`path`,{d:`M4 12h2`,key:`1ltxp0`}],[`path`,{d:`M4 18h2`,key:`1xrofg`}],[`path`,{d:`M4 6h2`,key:`1cx33n`}],[`rect`,{x:`6`,y:`2`,width:`12`,height:`20`,rx:`2`,key:`749fme`}]]),Nv=x(`microscope`,[[`path`,{d:`M6 18h8`,key:`1borvv`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M14 22a7 7 0 1 0 0-14h-1`,key:`1jwaiy`}],[`path`,{d:`M9 14h2`,key:`197e7h`}],[`path`,{d:`M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z`,key:`1bmzmy`}],[`path`,{d:`M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3`,key:`1drr47`}]]),Pv=x(`milestone`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M12 3v3`,key:`1n5kay`}],[`path`,{d:`M18.172 6a2 2 0 0 1 1.414.586l2.06 2.06a1.207 1.207 0 0 1 0 1.708l-2.06 2.06a2 2 0 0 1-1.414.586H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z`,key:`8gz4t4`}]]),Fv=x(`microwave`,[[`rect`,{width:`20`,height:`15`,x:`2`,y:`4`,rx:`2`,key:`2no95f`}],[`rect`,{width:`8`,height:`7`,x:`6`,y:`8`,rx:`1`,key:`zh9wx`}],[`path`,{d:`M18 8v7`,key:`o5zi4n`}],[`path`,{d:`M6 19v2`,key:`1loha6`}],[`path`,{d:`M18 19v2`,key:`1dawf0`}]]),Iv=x(`milk-off`,[[`path`,{d:`M8 2h8`,key:`1ssgc1`}],[`path`,{d:`M9 2v1.343M15 2v2.789a4 4 0 0 0 .672 2.219l.656.984a4 4 0 0 1 .672 2.22v1.131M7.8 7.8l-.128.192A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-3`,key:`y0ejgx`}],[`path`,{d:`M7 15a6.47 6.47 0 0 1 5 0 6.472 6.472 0 0 0 3.435.435`,key:`iaxqsy`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Lv=x(`milk`,[[`path`,{d:`M8 2h8`,key:`1ssgc1`}],[`path`,{d:`M9 2v2.789a4 4 0 0 1-.672 2.219l-.656.984A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-9.789a4 4 0 0 0-.672-2.219l-.656-.984A4 4 0 0 1 15 4.788V2`,key:`qtp12x`}],[`path`,{d:`M7 15a6.472 6.472 0 0 1 5 0 6.47 6.47 0 0 0 5 0`,key:`ygeh44`}]]),Rv=x(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),zv=x(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Bv=x(`minimize`,[[`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3`,key:`hohbtr`}],[`path`,{d:`M21 8h-3a2 2 0 0 1-2-2V3`,key:`5jw1f3`}],[`path`,{d:`M3 16h3a2 2 0 0 1 2 2v3`,key:`198tvr`}],[`path`,{d:`M16 21v-3a2 2 0 0 1 2-2h3`,key:`ph8mxp`}]]),Vv=x(`mirror-rectangular`,[[`path`,{d:`M11 6 8 9`,key:`7zt14w`}],[`path`,{d:`m16 7-8 8`,key:`tkgtvu`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),Hv=x(`mirror-round`,[[`path`,{d:`M10 6.6 8.6 8`,key:`itrr7k`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`M15 7.5 9.5 13`,key:`1vyrsv`}],[`path`,{d:`M7 22h10`,key:`10w4w3`}],[`circle`,{cx:`12`,cy:`10`,r:`8`,key:`1gshiw`}]]),Uv=x(`monitor-cloud`,[[`path`,{d:`M11 13a3 3 0 1 1 2.83-4H14a2 2 0 0 1 0 4z`,key:`1da4q6`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]),Wv=x(`monitor-check`,[[`path`,{d:`m9 10 2 2 4-4`,key:`1gnqz4`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),Gv=x(`monitor-cog`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`m14.305 7.53.923-.382`,key:`1mlnsw`}],[`path`,{d:`m15.228 4.852-.923-.383`,key:`82mpwg`}],[`path`,{d:`m16.852 3.228-.383-.924`,key:`ln4sir`}],[`path`,{d:`m16.852 8.772-.383.923`,key:`1dejw0`}],[`path`,{d:`m19.148 3.228.383-.924`,key:`192kgf`}],[`path`,{d:`m19.53 9.696-.382-.924`,key:`fiavlr`}],[`path`,{d:`m20.772 4.852.924-.383`,key:`1j8mgp`}],[`path`,{d:`m20.772 7.148.924.383`,key:`zix9be`}],[`path`,{d:`M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7`,key:`1tnzv8`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}]]),Kv=x(`monitor-dot`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M22 12.307V15a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8.693`,key:`1dx6ho`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`circle`,{cx:`19`,cy:`6`,r:`3`,key:`108a5v`}]]),qv=x(`monitor-down`,[[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`m15 10-3 3-3-3`,key:`lzhmyn`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),Jv=x(`monitor-off`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826`,key:`cv7jms`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042`,key:`z8ni2w`}]]),Yv=x(`monitor-pause`,[[`path`,{d:`M10 13V7`,key:`1u13u9`}],[`path`,{d:`M14 13V7`,key:`1vj9om`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),Xv=x(`monitor-play`,[[`path`,{d:`M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z`,key:`vbtd3f`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]),Zv=x(`monitor-smartphone`,[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]),Qv=x(`monitor-stop`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}],[`rect`,{x:`9`,y:`7`,width:`6`,height:`6`,rx:`1`,key:`5m2oou`}]]),$v=x(`monitor-speaker`,[[`path`,{d:`M5.5 20H8`,key:`1k40s5`}],[`path`,{d:`M17 9h.01`,key:`1j24nn`}],[`rect`,{width:`10`,height:`16`,x:`12`,y:`4`,rx:`2`,key:`ixliua`}],[`path`,{d:`M8 6H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h4`,key:`1mp6e1`}],[`circle`,{cx:`17`,cy:`15`,r:`1`,key:`tqvash`}]]),ey=x(`monitor-up`,[[`path`,{d:`m9 10 3-3 3 3`,key:`11gsxs`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),Qee=x(`monitor-x`,[[`path`,{d:`m14.5 12.5-5-5`,key:`1jahn5`}],[`path`,{d:`m9.5 12.5 5-5`,key:`1k2t7b`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),$ee=x(`moon-star`,[[`path`,{d:`M18 5h4`,key:`1lhgn2`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),ete=x(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),ty=x(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),tte=x(`motorbike`,[[`path`,{d:`m18 14-1-3`,key:`bdajw9`}],[`path`,{d:`m3 9 6 2a2 2 0 0 1 2-2h2a2 2 0 0 1 1.99 1.81`,key:`f5fotj`}],[`path`,{d:`M8 17h3a1 1 0 0 0 1-1 6 6 0 0 1 6-6 1 1 0 0 0 1-1v-.75A5 5 0 0 0 17 5`,key:`3i90e2`}],[`circle`,{cx:`19`,cy:`17`,r:`3`,key:`1otbdv`}],[`circle`,{cx:`5`,cy:`17`,r:`3`,key:`1d8p0c`}]]),nte=x(`mountain-snow`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}],[`path`,{d:`M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19`,key:`1pvmmp`}]]),rte=x(`mountain`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}]]),ite=x(`mouse-left`,[[`path`,{d:`M12 7.318V10`,key:`17s7lh`}],[`path`,{d:`M5 10v5a7 7 0 0 0 14 0V9c0-3.527-2.608-6.515-6-7`,key:`imk5ea`}],[`circle`,{cx:`7`,cy:`4`,r:`2`,key:`ra7k3`}]]),ate=x(`mouse-pointer-2-off`,[[`path`,{d:`m15.55 8.45 5.138 2.087a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063L8.45 15.551`,key:`1qoshx`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}],[`path`,{d:`m6.816 11.528-2.779-6.84a.495.495 0 0 1 .651-.651l6.84 2.779`,key:`mymuvk`}]]),ote=x(`mouse-pointer-2`,[[`path`,{d:`M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z`,key:`edeuup`}]]),ste=x(`mouse-off`,[[`path`,{d:`M12 6v.343`,key:`1gyhex`}],[`path`,{d:`M18.218 18.218A7 7 0 0 1 5 15V9a7 7 0 0 1 .782-3.218`,key:`ukzz01`}],[`path`,{d:`M19 13.343V9A7 7 0 0 0 8.56 2.902`,key:`104jy9`}],[`path`,{d:`M22 22 2 2`,key:`1r8tn9`}]]),cte=x(`mouse-pointer-ban`,[[`path`,{d:`M2.034 2.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.944L8.204 7.545a1 1 0 0 0-.66.66l-1.066 3.443a.5.5 0 0 1-.944.033z`,key:`11pp1i`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}],[`path`,{d:`m11.8 11.8 8.4 8.4`,key:`oogvdj`}]]),lte=x(`mouse-pointer-click`,[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]),ute=x(`mouse-pointer`,[[`path`,{d:`M12.586 12.586 19 19`,key:`ea5xo7`}],[`path`,{d:`M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z`,key:`277e5u`}]]),dte=x(`mouse-right`,[[`path`,{d:`M12 7.318V10`,key:`17s7lh`}],[`path`,{d:`M19 10v5a7 7 0 0 1-14 0V9c0-3.527 2.608-6.515 6-7`,key:`2es5nn`}],[`circle`,{cx:`17`,cy:`4`,r:`2`,key:`y5j2s2`}]]),fte=x(`mouse`,[[`rect`,{x:`5`,y:`2`,width:`14`,height:`20`,rx:`7`,key:`11ol66`}],[`path`,{d:`M12 6v4`,key:`16clxf`}]]),pte=x(`move-diagonal-2`,[[`path`,{d:`M19 13v6h-6`,key:`1hxl6d`}],[`path`,{d:`M5 11V5h6`,key:`12e2xe`}],[`path`,{d:`m5 5 14 14`,key:`11anup`}]]),mte=x(`move-3d`,[[`path`,{d:`M5 3v16h16`,key:`1mqmf9`}],[`path`,{d:`m5 19 6-6`,key:`jh6hbb`}],[`path`,{d:`m2 6 3-3 3 3`,key:`tkyvxa`}],[`path`,{d:`m18 16 3 3-3 3`,key:`1d4glt`}]]),hte=x(`move-diagonal`,[[`path`,{d:`M11 19H5v-6`,key:`8awifj`}],[`path`,{d:`M13 5h6v6`,key:`7voy1q`}],[`path`,{d:`M19 5 5 19`,key:`wwaj1z`}]]),gte=x(`move-down-left`,[[`path`,{d:`M11 19H5V13`,key:`1akmht`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]]),_te=x(`move-down-right`,[[`path`,{d:`M19 13V19H13`,key:`10vkzq`}],[`path`,{d:`M5 5L19 19`,key:`5zm2fv`}]]),vte=x(`move-down`,[[`path`,{d:`M8 18L12 22L16 18`,key:`cskvfv`}],[`path`,{d:`M12 2V22`,key:`r89rzk`}]]),yte=x(`move-left`,[[`path`,{d:`M6 8L2 12L6 16`,key:`kyvwex`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]),bte=x(`move-horizontal`,[[`path`,{d:`m18 8 4 4-4 4`,key:`1ak13k`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}]]),xte=x(`move-right`,[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]),Ste=x(`move-up-left`,[[`path`,{d:`M5 11V5H11`,key:`3q78g9`}],[`path`,{d:`M5 5L19 19`,key:`5zm2fv`}]]),Cte=x(`move-up-right`,[[`path`,{d:`M13 5H19V11`,key:`1n1gyv`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]]),wte=x(`move-up`,[[`path`,{d:`M8 6L12 2L16 6`,key:`1yvkyx`}],[`path`,{d:`M12 2V22`,key:`r89rzk`}]]),Tte=x(`move-vertical`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m8 18 4 4 4-4`,key:`bh5tu3`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]),Ete=x(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),Dte=x(`music-2`,[[`circle`,{cx:`8`,cy:`18`,r:`4`,key:`1fc0mg`}],[`path`,{d:`M12 18V2l7 4`,key:`g04rme`}]]),Ote=x(`music-3`,[[`circle`,{cx:`12`,cy:`18`,r:`4`,key:`m3r9ws`}],[`path`,{d:`M16 18V2`,key:`40x2m5`}]]),kte=x(`music-4`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`path`,{d:`m9 9 12-2`,key:`1e64n2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),Ate=x(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),jte=x(`navigation-2`,[[`polygon`,{points:`12 2 19 21 12 17 5 21 12 2`,key:`x8c0qg`}]]),Mte=x(`navigation-off`,[[`path`,{d:`M8.43 8.43 3 11l8 2 2 8 2.57-5.43`,key:`1vdtb7`}],[`path`,{d:`M17.39 11.73 22 2l-9.73 4.61`,key:`tya3r6`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Nte=x(`navigation-2-off`,[[`path`,{d:`M9.31 9.31 5 21l7-4 7 4-1.17-3.17`,key:`qoq2o2`}],[`path`,{d:`M14.53 8.88 12 2l-1.17 3.17`,key:`k3sjzy`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Pte=x(`navigation`,[[`polygon`,{points:`3 11 22 2 13 21 11 13 3 11`,key:`1ltx0t`}]]),ny=x(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Fte=x(`newspaper`,[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]),Ite=x(`nfc`,[[`path`,{d:`M6 8.32a7.43 7.43 0 0 1 0 7.36`,key:`9iaqei`}],[`path`,{d:`M9.46 6.21a11.76 11.76 0 0 1 0 11.58`,key:`1yha7l`}],[`path`,{d:`M12.91 4.1a15.91 15.91 0 0 1 .01 15.8`,key:`4iu2gk`}],[`path`,{d:`M16.37 2a20.16 20.16 0 0 1 0 20`,key:`sap9u2`}]]),Lte=x(`non-binary`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`m8.5 4 7 4`,key:`m1xjk3`}],[`path`,{d:`m8.5 8 7-4`,key:`t0m5j6`}],[`circle`,{cx:`12`,cy:`17`,r:`5`,key:`qbz8iq`}]]),ry=x(`notebook-pen`,[[`path`,{d:`M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4`,key:`re6nr2`}],[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`path`,{d:`M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`pqwjuv`}]]),Rte=x(`notebook-tabs`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M15 2v20`,key:`dcj49h`}],[`path`,{d:`M15 7h5`,key:`1xj5lc`}],[`path`,{d:`M15 12h5`,key:`w5shd9`}],[`path`,{d:`M15 17h5`,key:`1qaofu`}]]),iy=x(`notebook-text`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M9.5 8h5`,key:`11mslq`}],[`path`,{d:`M9.5 12H16`,key:`ktog6x`}],[`path`,{d:`M9.5 16H14`,key:`p1seyn`}]]),zte=x(`notebook`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M16 2v20`,key:`rotuqe`}]]),Bte=x(`notepad-text-dashed`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`,key:`j91f56`}],[`path`,{d:`M20 12v2`,key:`w8o0tu`}],[`path`,{d:`M20 18v2a2 2 0 0 1-2 2h-1`,key:`1c9ggx`}],[`path`,{d:`M13 22h-2`,key:`191ugt`}],[`path`,{d:`M7 22H6a2 2 0 0 1-2-2v-2`,key:`1rt9px`}],[`path`,{d:`M4 14v-2`,key:`1v0sqh`}],[`path`,{d:`M4 8V6a2 2 0 0 1 2-2h2`,key:`1mwabg`}],[`path`,{d:`M8 10h6`,key:`3oa6kw`}],[`path`,{d:`M8 14h8`,key:`1fgep2`}],[`path`,{d:`M8 18h5`,key:`17enja`}]]),Vte=x(`notepad-text`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`16`,height:`18`,x:`4`,y:`4`,rx:`2`,key:`1u9h20`}],[`path`,{d:`M8 10h6`,key:`3oa6kw`}],[`path`,{d:`M8 14h8`,key:`1fgep2`}],[`path`,{d:`M8 18h5`,key:`17enja`}]]),Hte=x(`nut-off`,[[`path`,{d:`M12 4V2`,key:`1k5q1u`}],[`path`,{d:`M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592a7.01 7.01 0 0 0 4.125-2.939`,key:`1xcvy9`}],[`path`,{d:`M19 10v3.343`,key:`163tfc`}],[`path`,{d:`M12 12c-1.349-.573-1.905-1.005-2.5-2-.546.902-1.048 1.353-2.5 2-1.018-.644-1.46-1.08-2-2-1.028.71-1.69.918-3 1 1.081-1.048 1.757-2.03 2-3 .194-.776.84-1.551 1.79-2.21m11.654 5.997c.887-.457 1.28-.891 1.556-1.787 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4-.74 0-1.461.068-2.15.192`,key:`17914v`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Ute=x(`nut`,[[`path`,{d:`M12 4V2`,key:`1k5q1u`}],[`path`,{d:`M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592A7.003 7.003 0 0 0 19 14v-4`,key:`1tgyif`}],[`path`,{d:`M12 4C8 4 4.5 6 4 8c-.243.97-.919 1.952-2 3 1.31-.082 1.972-.29 3-1 .54.92.982 1.356 2 2 1.452-.647 1.954-1.098 2.5-2 .595.995 1.151 1.427 2.5 2 1.31-.621 1.862-1.058 2.5-2 .629.977 1.162 1.423 2.5 2 1.209-.548 1.68-.967 2-2 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4Z`,key:`tnsqj`}]]),Wte=x(`octagon-alert`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]]),Gte=x(`octagon-minus`,[[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Kte=x(`octagon-pause`,[[`path`,{d:`M10 15V9`,key:`1lckn7`}],[`path`,{d:`M14 15V9`,key:`1muqhk`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}]]),ay=x(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),qte=x(`octagon`,[[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}]]),Jte=x(`omega`,[[`path`,{d:`M3 20h4.5a.5.5 0 0 0 .5-.5v-.282a.52.52 0 0 0-.247-.437 8 8 0 1 1 8.494-.001.52.52 0 0 0-.247.438v.282a.5.5 0 0 0 .5.5H21`,key:`1x94xo`}]]),Yte=x(`option`,[[`path`,{d:`M3 3h6l6 18h6`,key:`ph9rgk`}],[`path`,{d:`M14 3h7`,key:`16f0ms`}]]),Xte=x(`orbit`,[[`path`,{d:`M20.341 6.484A10 10 0 0 1 10.266 21.85`,key:`1enhxb`}],[`path`,{d:`M3.659 17.516A10 10 0 0 1 13.74 2.152`,key:`1crzgf`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}]]),Zte=x(`package-2`,[[`path`,{d:`M12 3v6`,key:`1holv5`}],[`path`,{d:`M16.76 3a2 2 0 0 1 1.8 1.1l2.23 4.479a2 2 0 0 1 .21.891V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9.472a2 2 0 0 1 .211-.894L5.45 4.1A2 2 0 0 1 7.24 3z`,key:`187q7i`}],[`path`,{d:`M3.054 9.013h17.893`,key:`grwhos`}]]),Qte=x(`origami`,[[`path`,{d:`M12 12V4a1 1 0 0 1 1-1h6.297a1 1 0 0 1 .651 1.759l-4.696 4.025`,key:`1bx4vc`}],[`path`,{d:`m12 21-7.414-7.414A2 2 0 0 1 4 12.172V6.415a1.002 1.002 0 0 1 1.707-.707L20 20.009`,key:`1h3km6`}],[`path`,{d:`m12.214 3.381 8.414 14.966a1 1 0 0 1-.167 1.199l-1.168 1.163a1 1 0 0 1-.706.291H6.351a1 1 0 0 1-.625-.219L3.25 18.8a1 1 0 0 1 .631-1.781l4.165.027`,key:`1hj4wg`}]]),$te=x(`package-check`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),ene=x(`package-minus`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M21 13V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955`,key:`zu9avd`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),tne=x(`package-open`,[[`path`,{d:`M12 22v-9`,key:`x3hkom`}],[`path`,{d:`M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z`,key:`2ntwy6`}],[`path`,{d:`M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13`,key:`1pmm1c`}],[`path`,{d:`M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z`,key:`12ttoo`}]]),oy=x(`package-plus`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M19 14v6`,key:`1ckrd5`}],[`path`,{d:`M21 10.535V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955`,key:`28k6lz`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),nne=x(`package-x`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16.5 14.5 5 5`,key:`ozpm51`}],[`path`,{d:`m16.5 19.5 5-5`,key:`syf6b9`}],[`path`,{d:`M21 10.5V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.13-.074`,key:`isw6gs`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),rne=x(`package-search`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`M20.27 18.27 22 20`,key:`er2am`}],[`path`,{d:`M21 10.498V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.98-.559`,key:`tok1h1`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}],[`circle`,{cx:`18.5`,cy:`16.5`,r:`2.5`,key:`ke13xx`}]]),sy=x(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),ine=x(`paintbrush-vertical`,[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v4`,key:`qmzblu`}],[`path`,{d:`M17 2a1 1 0 0 1 1 1v9H6V3a1 1 0 0 1 1-1z`,key:`ycvu00`}],[`path`,{d:`M6 12a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2h2a1 1 0 0 1 1 1v2.9a2 2 0 1 0 4 0V17a1 1 0 0 1 1-1h2a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1`,key:`iw4wnp`}]]),ane=x(`paint-bucket`,[[`path`,{d:`M11 7 6 2`,key:`1jwth8`}],[`path`,{d:`M18.992 12H2.041`,key:`xw1gg`}],[`path`,{d:`M21.145 18.38A3.34 3.34 0 0 1 20 16.5a3.3 3.3 0 0 1-1.145 1.88c-.575.46-.855 1.02-.855 1.595A2 2 0 0 0 20 22a2 2 0 0 0 2-2.025c0-.58-.285-1.13-.855-1.595`,key:`1nkol4`}],[`path`,{d:`m8.5 4.5 2.148-2.148a1.205 1.205 0 0 1 1.704 0l7.296 7.296a1.205 1.205 0 0 1 0 1.704l-7.592 7.592a3.615 3.615 0 0 1-5.112 0l-3.888-3.888a3.615 3.615 0 0 1 0-5.112L5.67 7.33`,key:`1nk1rd`}]]),one=x(`paint-roller`,[[`rect`,{width:`16`,height:`6`,x:`2`,y:`2`,rx:`2`,key:`jcyz7m`}],[`path`,{d:`M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2`,key:`1b9h7c`}],[`rect`,{width:`4`,height:`6`,x:`8`,y:`16`,rx:`1`,key:`d6e7yl`}]]),sne=x(`paintbrush`,[[`path`,{d:`m14.622 17.897-10.68-2.913`,key:`vj2p1u`}],[`path`,{d:`M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z`,key:`18tc5c`}],[`path`,{d:`M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15`,key:`ytzfxy`}]]),cy=x(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),cne=x(`panda`,[[`path`,{d:`M11.25 17.25h1.5L12 18z`,key:`1wmwwj`}],[`path`,{d:`m15 12 2 2`,key:`k60wz4`}],[`path`,{d:`M18 6.5a.5.5 0 0 0-.5-.5`,key:`1ch4h4`}],[`path`,{d:`M20.69 9.67a4.5 4.5 0 1 0-7.04-5.5 8.35 8.35 0 0 0-3.3 0 4.5 4.5 0 1 0-7.04 5.5C2.49 11.2 2 12.88 2 14.5 2 19.47 6.48 22 12 22s10-2.53 10-7.5c0-1.62-.48-3.3-1.3-4.83`,key:`1c660l`}],[`path`,{d:`M6 6.5a.495.495 0 0 1 .5-.5`,key:`eviuep`}],[`path`,{d:`m9 12-2 2`,key:`326nkw`}]]),lne=x(`panel-bottom-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`m15 8-3 3-3-3`,key:`1oxy1z`}]]),une=x(`panel-bottom-dashed`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M14 15h1`,key:`171nev`}],[`path`,{d:`M19 15h2`,key:`1vnucp`}],[`path`,{d:`M3 15h2`,key:`8bym0q`}],[`path`,{d:`M9 15h1`,key:`1tg3ks`}]]),dne=x(`panel-bottom-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`m9 10 3-3 3 3`,key:`11gsxs`}]]),fne=x(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),pne=x(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),mne=x(`panel-left-dashed`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 14v1`,key:`askpd8`}],[`path`,{d:`M9 19v2`,key:`16tejx`}],[`path`,{d:`M9 3v2`,key:`1noubl`}],[`path`,{d:`M9 9v1`,key:`19ebxg`}]]),hne=x(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),gne=x(`panel-left-right-dashed`,[[`path`,{d:`M15 10V9`,key:`4dkmfx`}],[`path`,{d:`M15 15v-1`,key:`6a4afx`}],[`path`,{d:`M15 21v-2`,key:`1qshmc`}],[`path`,{d:`M15 5V3`,key:`1fk0mb`}],[`path`,{d:`M9 10V9`,key:`1lazqi`}],[`path`,{d:`M9 15v-1`,key:`9lx740`}],[`path`,{d:`M9 21v-2`,key:`1fwk0n`}],[`path`,{d:`M9 5V3`,key:`2q8zi6`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),_ne=x(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),ly=x(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),vne=x(`panel-right-dashed`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 14v1`,key:`ilsfch`}],[`path`,{d:`M15 19v2`,key:`1fst2f`}],[`path`,{d:`M15 3v2`,key:`z204g4`}],[`path`,{d:`M15 9v1`,key:`z2a8b1`}]]),yne=x(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]),uy=x(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),bne=x(`panel-top-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`m9 16 3-3 3 3`,key:`1idcnm`}]]),xne=x(`panel-top-bottom-dashed`,[[`path`,{d:`M14 15h1`,key:`171nev`}],[`path`,{d:`M14 9h1`,key:`l0svgy`}],[`path`,{d:`M19 15h2`,key:`1vnucp`}],[`path`,{d:`M19 9h2`,key:`te2zfg`}],[`path`,{d:`M3 15h2`,key:`8bym0q`}],[`path`,{d:`M3 9h2`,key:`1h4ldw`}],[`path`,{d:`M9 15h1`,key:`1tg3ks`}],[`path`,{d:`M9 9h1`,key:`15jzuz`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Sne=x(`panel-top-dashed`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M14 9h1`,key:`l0svgy`}],[`path`,{d:`M19 9h2`,key:`te2zfg`}],[`path`,{d:`M3 9h2`,key:`1h4ldw`}],[`path`,{d:`M9 9h1`,key:`15jzuz`}]]),Cne=x(`panel-top-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`m15 14-3 3-3-3`,key:`g215vf`}]]),wne=x(`panel-top`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),Tne=x(`panels-left-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M9 15h12`,key:`5ijen5`}]]),Ene=x(`panels-right-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h12`,key:`1wkqb3`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Dne=x(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),dy=x(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),One=x(`parasol`,[[`path`,{d:`M12.5 11.134 18.196 21`,key:`gf58kt`}],[`path`,{d:`M20.425 5.299a10 10 0 0 0-16.941 9.78c.183.563.843.774 1.355.478L20.16 6.711c.512-.296.66-.973.264-1.413`,key:`znqfe4`}],[`path`,{d:`M21 21H3`,key:`oafrgs`}]]),kne=x(`parking-meter`,[[`path`,{d:`M11 15h2`,key:`199qp6`}],[`path`,{d:`M12 12v3`,key:`158kv8`}],[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15.282 19a1 1 0 0 0 .948-.68l2.37-6.988a7 7 0 1 0-13.2 0l2.37 6.988a1 1 0 0 0 .948.68z`,key:`1jofit`}],[`path`,{d:`M9 9a3 3 0 1 1 6 0`,key:`jdoeu8`}]]),Ane=x(`parentheses`,[[`path`,{d:`M8 21s-4-3-4-9 4-9 4-9`,key:`uto9ud`}],[`path`,{d:`M16 3s4 3 4 9-4 9-4 9`,key:`4w2vsq`}]]),jne=x(`party-popper`,[[`path`,{d:`M5.8 11.3 2 22l10.7-3.79`,key:`gwxi1d`}],[`path`,{d:`M4 3h.01`,key:`1vcuye`}],[`path`,{d:`M22 8h.01`,key:`1mrtc2`}],[`path`,{d:`M15 2h.01`,key:`1cjtqr`}],[`path`,{d:`M22 20h.01`,key:`1mrys2`}],[`path`,{d:`m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10`,key:`hbicv8`}],[`path`,{d:`m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17`,key:`1i94pl`}],[`path`,{d:`m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7`,key:`1cofks`}],[`path`,{d:`M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z`,key:`4kbmks`}]]),fy=x(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),py=x(`paw-print`,[[`circle`,{cx:`11`,cy:`4`,r:`2`,key:`vol9p0`}],[`circle`,{cx:`18`,cy:`8`,r:`2`,key:`17gozi`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`path`,{d:`M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z`,key:`1ydw1z`}]]),Mne=x(`pc-case`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,key:`1uq1d7`}],[`path`,{d:`M15 14h.01`,key:`1kp3bh`}],[`path`,{d:`M9 6h6`,key:`dgm16u`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),Nne=x(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Pne=x(`pen-tool`,[[`path`,{d:`M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z`,key:`nt11vn`}],[`path`,{d:`m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18`,key:`15qc1e`}],[`path`,{d:`m2.3 2.3 7.286 7.286`,key:`1wuzzi`}],[`circle`,{cx:`11`,cy:`11`,r:`2`,key:`xmgehs`}]]),Fne=x(`pen-off`,[[`path`,{d:`m10 10-6.157 6.162a2 2 0 0 0-.5.833l-1.322 4.36a.5.5 0 0 0 .622.624l4.358-1.323a2 2 0 0 0 .83-.5L14 13.982`,key:`bjo8r8`}],[`path`,{d:`m12.829 7.172 4.359-4.346a1 1 0 1 1 3.986 3.986l-4.353 4.353`,key:`16h5ne`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ine=x(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),my=x(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Lne=x(`pencil-off`,[[`path`,{d:`m10 10-6.157 6.162a2 2 0 0 0-.5.833l-1.322 4.36a.5.5 0 0 0 .622.624l4.358-1.323a2 2 0 0 0 .83-.5L14 13.982`,key:`bjo8r8`}],[`path`,{d:`m12.829 7.172 4.359-4.346a1 1 0 1 1 3.986 3.986l-4.353 4.353`,key:`16h5ne`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Rne=x(`pencil-ruler`,[[`path`,{d:`M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13`,key:`orapub`}],[`path`,{d:`m8 6 2-2`,key:`115y1s`}],[`path`,{d:`m18 16 2-2`,key:`ee94s4`}],[`path`,{d:`m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17`,key:`cfq27r`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),zne=x(`pentagon`,[[`path`,{d:`M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z`,key:`2hea0t`}]]),hy=x(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Bne=x(`percent`,[[`line`,{x1:`19`,x2:`5`,y1:`5`,y2:`19`,key:`1x9vlm`}],[`circle`,{cx:`6.5`,cy:`6.5`,r:`2.5`,key:`4mh3h7`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`2.5`,key:`1mdrzq`}]]),Vne=x(`person-standing`,[[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`path`,{d:`m9 20 3-6 3 6`,key:`se2kox`}],[`path`,{d:`m6 8 6 2 6-2`,key:`4o3us4`}],[`path`,{d:`M12 10v4`,key:`1kjpxc`}]]),Hne=x(`philippine-peso`,[[`path`,{d:`M20 11H4`,key:`6ut86h`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`M7 21V4a1 1 0 0 1 1-1h4a1 1 0 0 1 0 12H7`,key:`1ana5r`}]]),Une=x(`phone-call`,[[`path`,{d:`M13 2a9 9 0 0 1 9 9`,key:`1itnx2`}],[`path`,{d:`M13 6a5 5 0 0 1 5 5`,key:`11nki7`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Wne=x(`phone-forwarded`,[[`path`,{d:`M14 6h8`,key:`yd68k4`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Gne=x(`phone-incoming`,[[`path`,{d:`M16 2v6h6`,key:`1mfrl5`}],[`path`,{d:`m22 2-6 6`,key:`6f0sa0`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Kne=x(`phone-missed`,[[`path`,{d:`m16 2 6 6`,key:`1gw87d`}],[`path`,{d:`m22 2-6 6`,key:`6f0sa0`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),qne=x(`phone-off`,[[`path`,{d:`M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272`,key:`1wngk7`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}],[`path`,{d:`M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473`,key:`10hv5p`}]]),Jne=x(`phone-outgoing`,[[`path`,{d:`m16 8 6-6`,key:`oawc05`}],[`path`,{d:`M22 8V2h-6`,key:`oqy2zc`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Yne=x(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Xne=x(`pi`,[[`line`,{x1:`9`,x2:`9`,y1:`4`,y2:`20`,key:`ovs5a5`}],[`path`,{d:`M4 7c0-1.7 1.3-3 3-3h13`,key:`10pag4`}],[`path`,{d:`M18 20c-1.7 0-3-1.3-3-3V4`,key:`1gaosr`}]]),Zne=x(`piano`,[[`path`,{d:`M18.5 8c-1.4 0-2.6-.8-3.2-2A6.87 6.87 0 0 0 2 9v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-8.5C22 9.6 20.4 8 18.5 8`,key:`lag0yf`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M6 14v4`,key:`9ng0ue`}],[`path`,{d:`M10 14v4`,key:`1v8uk5`}],[`path`,{d:`M14 14v4`,key:`1tqops`}],[`path`,{d:`M18 14v4`,key:`18uqwm`}]]),Qne=x(`pickaxe`,[[`path`,{d:`m14 13-8.381 8.38a1 1 0 0 1-3.001-3L11 9.999`,key:`1lw9ds`}],[`path`,{d:`M15.973 4.027A13 13 0 0 0 5.902 2.373c-1.398.342-1.092 2.158.277 2.601a19.9 19.9 0 0 1 5.822 3.024`,key:`ffj4ej`}],[`path`,{d:`M16.001 11.999a19.9 19.9 0 0 1 3.024 5.824c.444 1.369 2.26 1.676 2.603.278A13 13 0 0 0 20 8.069`,key:`8tj4zw`}],[`path`,{d:`M18.352 3.352a1.205 1.205 0 0 0-1.704 0l-5.296 5.296a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l5.296-5.296a1.205 1.205 0 0 0 0-1.704z`,key:`hh6h97`}]]),$ne=x(`picture-in-picture-2`,[[`path`,{d:`M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4`,key:`daa4of`}],[`rect`,{width:`10`,height:`7`,x:`12`,y:`13`,rx:`2`,key:`1nb8gs`}]]),ere=x(`picture-in-picture`,[[`path`,{d:`M2 10h6V4`,key:`zwrco`}],[`path`,{d:`m2 4 6 6`,key:`ug085t`}],[`path`,{d:`M21 10V7a2 2 0 0 0-2-2h-7`,key:`git5jr`}],[`path`,{d:`M3 14v2a2 2 0 0 0 2 2h3`,key:`1f7fh3`}],[`rect`,{x:`12`,y:`14`,width:`10`,height:`7`,rx:`1`,key:`1wjs3o`}]]),tre=x(`piggy-bank`,[[`path`,{d:`M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`,key:`1piglc`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M2 8v1a2 2 0 0 0 2 2h1`,key:`1env43`}]]),nre=x(`pilcrow-left`,[[`path`,{d:`M14 3v11`,key:`mlfb7b`}],[`path`,{d:`M14 9h-3a3 3 0 0 1 0-6h9`,key:`1ulc19`}],[`path`,{d:`M18 3v11`,key:`1phi0r`}],[`path`,{d:`M22 18H2l4-4`,key:`yt65j9`}],[`path`,{d:`m6 22-4-4`,key:`6jgyf5`}]]),rre=x(`pilcrow-right`,[[`path`,{d:`M10 3v11`,key:`o3l5kj`}],[`path`,{d:`M10 9H7a1 1 0 0 1 0-6h8`,key:`1wb1nc`}],[`path`,{d:`M14 3v11`,key:`mlfb7b`}],[`path`,{d:`m18 14 4 4H2`,key:`4r8io1`}],[`path`,{d:`m22 18-4 4`,key:`1hjjrd`}]]),ire=x(`pilcrow`,[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]),are=x(`pill-bottle`,[[`path`,{d:`M18 11h-4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h4`,key:`17ldeb`}],[`path`,{d:`M6 7v13a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7`,key:`nc37y6`}],[`rect`,{width:`16`,height:`5`,x:`4`,y:`2`,rx:`1`,key:`3jeezo`}]]),ore=x(`pill`,[[`path`,{d:`m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z`,key:`wa1lgi`}],[`path`,{d:`m8.5 8.5 7 7`,key:`rvfmvr`}]]),gy=x(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),sre=x(`pizza`,[[`path`,{d:`m12 14-1 1`,key:`11onhr`}],[`path`,{d:`m13.75 18.25-1.25 1.42`,key:`1yisr3`}],[`path`,{d:`M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12`,key:`1qtqk6`}],[`path`,{d:`M18.8 9.3a1 1 0 0 0 2.1 7.7`,key:`fbbbr2`}],[`path`,{d:`M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z`,key:`1hyfdd`}]]),_y=x(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),cre=x(`pipette`,[[`path`,{d:`m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12`,key:`1y3wsu`}],[`path`,{d:`m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z`,key:`110lr1`}],[`path`,{d:`m2 22 .414-.414`,key:`jhxm08`}]]),lre=x(`plane-landing`,[[`path`,{d:`M2 22h20`,key:`272qi7`}],[`path`,{d:`M3.77 10.77 2 9l2-4.5 1.1.55c.55.28.9.84.9 1.45s.35 1.17.9 1.45L8 8.5l3-6 1.05.53a2 2 0 0 1 1.09 1.52l.72 5.4a2 2 0 0 0 1.09 1.52l4.4 2.2c.42.22.78.55 1.01.96l.6 1.03c.49.88-.06 1.98-1.06 2.1l-1.18.15c-.47.06-.95-.02-1.37-.24L4.29 11.15a2 2 0 0 1-.52-.38Z`,key:`1ma21e`}]]),ure=x(`plane-takeoff`,[[`path`,{d:`M2 22h20`,key:`272qi7`}],[`path`,{d:`M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z`,key:`fkigj9`}]]),dre=x(`plane`,[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]),vy=x(`plug-zap`,[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]]),yy=x(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),fre=x(`plug-2`,[[`path`,{d:`M9 2v6`,key:`17ngun`}],[`path`,{d:`M15 2v6`,key:`s7yy2p`}],[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M5 8h14`,key:`pcz4l3`}],[`path`,{d:`M6 11V8h12v3a6 6 0 1 1-12 0Z`,key:`wtfw2c`}]]),by=x(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),xy=x(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),pre=x(`pocket-knife`,[[`path`,{d:`M3 2v1c0 1 2 1 2 2S3 6 3 7s2 1 2 2-2 1-2 2 2 1 2 2`,key:`19w3oe`}],[`path`,{d:`M18 6h.01`,key:`1v4wsw`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M20.83 8.83a4 4 0 0 0-5.66-5.66l-12 12a4 4 0 1 0 5.66 5.66Z`,key:`6fykxj`}],[`path`,{d:`M18 11.66V22a4 4 0 0 0 4-4V6`,key:`1utzek`}]]),mre=x(`podcast`,[[`path`,{d:`M13 17a1 1 0 1 0-2 0l.5 4.5a0.5 0.5 0 0 0 1 0z`,fill:`currentColor`,key:`x1mxqr`}],[`path`,{d:`M16.85 18.58a9 9 0 1 0-9.7 0`,key:`d71mpg`}],[`path`,{d:`M8 14a5 5 0 1 1 8 0`,key:`fc81rn`}],[`circle`,{cx:`12`,cy:`11`,r:`1`,fill:`currentColor`,key:`vqiwd`}]]),hre=x(`pointer-off`,[[`path`,{d:`M10 4.5V4a2 2 0 0 0-2.41-1.957`,key:`jsi14n`}],[`path`,{d:`M13.9 8.4a2 2 0 0 0-1.26-1.295`,key:`hirc7f`}],[`path`,{d:`M21.7 16.2A8 8 0 0 0 22 14v-3a2 2 0 1 0-4 0v-1a2 2 0 0 0-3.63-1.158`,key:`1jxb2e`}],[`path`,{d:`m7 15-1.8-1.8a2 2 0 0 0-2.79 2.86L6 19.7a7.74 7.74 0 0 0 6 2.3h2a8 8 0 0 0 5.657-2.343`,key:`10r7hm`}],[`path`,{d:`M6 6v8`,key:`tv5xkp`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),gre=x(`pointer`,[[`path`,{d:`M22 14a8 8 0 0 1-8 8`,key:`56vcr3`}],[`path`,{d:`M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1agjmk`}],[`path`,{d:`M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1`,key:`wdbh2u`}],[`path`,{d:`M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10`,key:`1ibuk9`}],[`path`,{d:`M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`g6ys72`}]]),_re=x(`popcorn`,[[`path`,{d:`M18 8a2 2 0 0 0 0-4 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0 0 4`,key:`10td1f`}],[`path`,{d:`M10 22 9 8`,key:`yjptiv`}],[`path`,{d:`m14 22 1-14`,key:`8jwc8b`}],[`path`,{d:`M20 8c.5 0 .9.4.8 1l-2.6 12c-.1.5-.7 1-1.2 1H7c-.6 0-1.1-.4-1.2-1L3.2 9c-.1-.6.3-1 .8-1Z`,key:`1qo33t`}]]),vre=x(`popsicle`,[[`path`,{d:`M18.6 14.4c.8-.8.8-2 0-2.8l-8.1-8.1a4.95 4.95 0 1 0-7.1 7.1l8.1 8.1c.9.7 2.1.7 2.9-.1Z`,key:`1o68ps`}],[`path`,{d:`m22 22-5.5-5.5`,key:`17o70y`}]]),yre=x(`pound-sterling`,[[`path`,{d:`M18 7c0-5.333-8-5.333-8 0`,key:`1prm2n`}],[`path`,{d:`M10 7v14`,key:`18tmcs`}],[`path`,{d:`M6 21h12`,key:`4dkmi1`}],[`path`,{d:`M6 13h10`,key:`ybwr4a`}]]),Sy=x(`power-off`,[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),bre=x(`presentation`,[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]),Cy=x(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),xre=x(`printer-check`,[[`path`,{d:`M13.5 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v.5`,key:`qeb09x`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}],[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2`,key:`1md90i`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}]]),Sre=x(`printer-x`,[[`path`,{d:`M12.531 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h6.377`,key:`1w39xo`}],[`path`,{d:`m16.5 16.5 5 5`,key:`zc9lw7`}],[`path`,{d:`m16.5 21.5 5-5`,key:`1fr29m`}],[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.5`,key:`18he39`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}]]),Cre=x(`projector`,[[`path`,{d:`M5 7 3 5`,key:`1yys58`}],[`path`,{d:`M9 6V3`,key:`1ptz9u`}],[`path`,{d:`m13 7 2-2`,key:`1w3vmq`}],[`circle`,{cx:`9`,cy:`13`,r:`3`,key:`1mma13`}],[`path`,{d:`M11.83 12H20a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h2.17`,key:`2frwzc`}],[`path`,{d:`M16 16h2`,key:`dnq2od`}]]),wre=x(`printer`,[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]),Tre=x(`proportions`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M12 9v11`,key:`1fnkrn`}],[`path`,{d:`M2 9h13a2 2 0 0 1 2 2v9`,key:`11z3ex`}]]),wy=x(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),Ere=x(`pyramid`,[[`path`,{d:`M2.5 16.88a1 1 0 0 1-.32-1.43l9-13.02a1 1 0 0 1 1.64 0l9 13.01a1 1 0 0 1-.32 1.44l-8.51 4.86a2 2 0 0 1-1.98 0Z`,key:`aenxs0`}],[`path`,{d:`M12 2v20`,key:`t6zp3m`}]]),Ty=x(`qr-code`,[[`rect`,{width:`5`,height:`5`,x:`3`,y:`3`,rx:`1`,key:`1tu5fj`}],[`rect`,{width:`5`,height:`5`,x:`16`,y:`3`,rx:`1`,key:`1v8r4q`}],[`rect`,{width:`5`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`1x03jg`}],[`path`,{d:`M21 16h-3a2 2 0 0 0-2 2v3`,key:`177gqh`}],[`path`,{d:`M21 21v.01`,key:`ents32`}],[`path`,{d:`M12 7v3a2 2 0 0 1-2 2H7`,key:`8crl2c`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M12 3h.01`,key:`n36tog`}],[`path`,{d:`M12 16v.01`,key:`133mhm`}],[`path`,{d:`M16 12h1`,key:`1slzba`}],[`path`,{d:`M21 12v.01`,key:`1lwtk9`}],[`path`,{d:`M12 21v-1`,key:`1880an`}]]),Ey=x(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),Dre=x(`rabbit`,[[`path`,{d:`M13 16a3 3 0 0 1 2.24 5`,key:`1epib5`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3`,key:`ue9ozu`}],[`path`,{d:`M20 8.54V4a2 2 0 1 0-4 0v3`,key:`49iql8`}],[`path`,{d:`M7.612 12.524a3 3 0 1 0-1.6 4.3`,key:`1e33i0`}]]),Ore=x(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),kre=x(`radiation`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 15.4641a4 4 0 0 1-4 0L7.52786 19.74597 A 1 1 0 0 0 7.99303 21.16211 10 10 0 0 0 16.00697 21.16211 1 1 0 0 0 16.47214 19.74597z`,key:`1y4lzb`}],[`path`,{d:`M16 12a4 4 0 0 0-2-3.464l2.472-4.282a1 1 0 0 1 1.46-.305 10 10 0 0 1 4.006 6.94A1 1 0 0 1 21 12z`,key:`163ggk`}],[`path`,{d:`M8 12a4 4 0 0 1 2-3.464L7.528 4.254a1 1 0 0 0-1.46-.305 10 10 0 0 0-4.006 6.94A1 1 0 0 0 3 12z`,key:`1l9i0b`}]]),Are=x(`radical`,[[`path`,{d:`M3 12h3.28a1 1 0 0 1 .948.684l2.298 7.934a.5.5 0 0 0 .96-.044L13.82 4.771A1 1 0 0 1 14.792 4H21`,key:`1mqj8i`}]]),jre=x(`radio-off`,[[`path`,{d:`M13.414 13.414a2 2 0 1 1-2.828-2.828`,key:`srl686`}],[`path`,{d:`M16.247 7.761a6 6 0 0 1 1.744 4.572`,key:`1h86sp`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 2.234 10.72`,key:`1n13k4`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}]]),Mre=x(`radio-receiver`,[[`path`,{d:`M5 16v2`,key:`g5qcv5`}],[`path`,{d:`M19 16v2`,key:`1gbaio`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`8`,rx:`2`,key:`vjsjur`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}]]),Nre=x(`radio-tower`,[[`path`,{d:`M4.9 16.1C1 12.2 1 5.8 4.9 1.9`,key:`s0qx1y`}],[`path`,{d:`M7.8 4.7a6.14 6.14 0 0 0-.8 7.5`,key:`1idnkw`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}],[`path`,{d:`M16.2 4.8c2 2 2.26 5.11.8 7.47`,key:`ojru2q`}],[`path`,{d:`M19.1 1.9a9.96 9.96 0 0 1 0 14.1`,key:`rhi7fg`}],[`path`,{d:`M9.5 18h5`,key:`mfy3pd`}],[`path`,{d:`m8 22 4-11 4 11`,key:`25yftu`}]]),Dy=x(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Pre=x(`radius`,[[`path`,{d:`M20.34 17.52a10 10 0 1 0-2.82 2.82`,key:`fydyku`}],[`circle`,{cx:`19`,cy:`19`,r:`2`,key:`17f5cg`}],[`path`,{d:`m13.41 13.41 4.18 4.18`,key:`1gqbwc`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Fre=x(`rainbow`,[[`path`,{d:`M22 17a10 10 0 0 0-20 0`,key:`ozegv`}],[`path`,{d:`M6 17a6 6 0 0 1 12 0`,key:`5giftw`}],[`path`,{d:`M10 17a2 2 0 0 1 4 0`,key:`gnsikk`}]]),Ire=x(`rat`,[[`path`,{d:`M13 22H4a2 2 0 0 1 0-4h12`,key:`bt3f23`}],[`path`,{d:`M13.236 18a3 3 0 0 0-2.2-5`,key:`1tbvmo`}],[`path`,{d:`M16 9h.01`,key:`1bdo4e`}],[`path`,{d:`M16.82 3.94a3 3 0 1 1 3.237 4.868l1.815 2.587a1.5 1.5 0 0 1-1.5 2.1l-2.872-.453a3 3 0 0 0-3.5 3`,key:`9ch7kn`}],[`path`,{d:`M17 4.988a3 3 0 1 0-5.2 2.052A7 7 0 0 0 4 14.015 4 4 0 0 0 8 18`,key:`3s7e9i`}]]),Lre=x(`ratio`,[[`rect`,{width:`12`,height:`20`,x:`6`,y:`2`,rx:`2`,key:`1oxtiu`}],[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}]]),Rre=x(`receipt-euro`,[[`path`,{d:`M15.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0`,key:`16zdw4`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 12h5`,key:`1g6qi8`}]]),zre=x(`receipt-cent`,[[`path`,{d:`M12 7v10`,key:`jspqdw`}],[`path`,{d:`M14.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0`,key:`qvqont`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),Bre=x(`receipt-indian-rupee`,[[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 11h8`,key:`vwpz6n`}],[`path`,{d:`M8 7h8`,key:`i86dvs`}],[`path`,{d:`M9 7a4 4 0 0 1 0 8H8l3 2`,key:`1xaco0`}]]),Vre=x(`receipt-japanese-yen`,[[`path`,{d:`m12 10 3-3`,key:`1mc12w`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}],[`path`,{d:`M9 15h6`,key:`cctwl0`}],[`path`,{d:`m9 7 3 3v7`,key:`1x0cue`}]]),Hre=x(`receipt-pound-sterling`,[[`path`,{d:`M10 17V9.5a1 1 0 0 1 5 0`,key:`td22vl`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 13h5`,key:`1k9z8w`}],[`path`,{d:`M8 17h7`,key:`8mjdqu`}]]),Ure=x(`receipt-russian-ruble`,[[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 11h5a2 2 0 0 0 0-4h-3v10`,key:`agnv0r`}],[`path`,{d:`M8 15h5`,key:`vxg57a`}]]),Wre=x(`receipt-swiss-franc`,[[`path`,{d:`M10 11h4`,key:`1i0mka`}],[`path`,{d:`M10 17V7h5`,key:`k7jq18`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 15h5`,key:`vxg57a`}]]),Gre=x(`receipt-text`,[[`path`,{d:`M13 16H8`,key:`wsln4y`}],[`path`,{d:`M14 8H8`,key:`1l3xfs`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),Kre=x(`receipt-turkish-lira`,[[`path`,{d:`M10 7v10a5 5 0 0 0 5-5`,key:`1blmz7`}],[`path`,{d:`m14 8-6 3`,key:`2tb98i`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),qre=x(`receipt`,[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),Jre=x(`rectangle-circle`,[[`path`,{d:`M14 4v16H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z`,key:`1m5n7q`}],[`circle`,{cx:`14`,cy:`12`,r:`8`,key:`1pag6k`}]]),Yre=x(`rectangle-ellipsis`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M17 12h.01`,key:`1m0b6t`}],[`path`,{d:`M7 12h.01`,key:`eqddd0`}]]),Xre=x(`rectangle-goggles`,[[`path`,{d:`M20 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-4a2 2 0 0 1-1.6-.8l-1.6-2.13a1 1 0 0 0-1.6 0L9.6 17.2A2 2 0 0 1 8 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`d5y1f`}]]),Zre=x(`rectangle-horizontal`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}]]),Qre=x(`rectangle-vertical`,[[`rect`,{width:`12`,height:`20`,x:`6`,y:`2`,rx:`2`,key:`1oxtiu`}]]),$re=x(`recycle`,[[`path`,{d:`M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5`,key:`x6z5xu`}],[`path`,{d:`M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12`,key:`1x4zh5`}],[`path`,{d:`m14 16-3 3 3 3`,key:`f6jyew`}],[`path`,{d:`M8.293 13.596 7.196 9.5 3.1 10.598`,key:`wf1obh`}],[`path`,{d:`m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843`,key:`9tzpgr`}],[`path`,{d:`m13.378 9.633 4.096 1.098 1.097-4.096`,key:`1oe83g`}]]),Oy=x(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),eie=x(`redo-dot`,[[`circle`,{cx:`12`,cy:`17`,r:`1`,key:`1ixnty`}],[`path`,{d:`M21 7v6h-6`,key:`3ptur4`}],[`path`,{d:`M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7`,key:`1kgawr`}]]),tie=x(`redo`,[[`path`,{d:`M21 7v6h-6`,key:`3ptur4`}],[`path`,{d:`M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7`,key:`1kgawr`}]]),nie=x(`refresh-ccw-dot`,[[`path`,{d:`M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`14sxne`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16`,key:`1hlbsb`}],[`path`,{d:`M16 16h5v5`,key:`ccwih5`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),rie=x(`refresh-ccw`,[[`path`,{d:`M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`14sxne`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16`,key:`1hlbsb`}],[`path`,{d:`M16 16h5v5`,key:`ccwih5`}]]),iie=x(`refresh-cw-off`,[[`path`,{d:`M21 8L18.74 5.74A9.75 9.75 0 0 0 12 3C11 3 10.03 3.16 9.13 3.47`,key:`1krf6h`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}],[`path`,{d:`M3 12C3 9.51 4 7.26 5.64 5.64`,key:`ruvoct`}],[`path`,{d:`m3 16 2.26 2.26A9.75 9.75 0 0 0 12 21c2.49 0 4.74-1 6.36-2.64`,key:`19q130`}],[`path`,{d:`M21 12c0 1-.16 1.97-.47 2.87`,key:`4w8emr`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M22 22 2 2`,key:`1r8tn9`}]]),ky=x(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),aie=x(`regex`,[[`path`,{d:`M17 3v10`,key:`15fgeh`}],[`path`,{d:`m12.67 5.5 8.66 5`,key:`1gpheq`}],[`path`,{d:`m12.67 10.5 8.66-5`,key:`1dkfa6`}],[`path`,{d:`M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z`,key:`swwfx4`}]]),oie=x(`remove-formatting`,[[`path`,{d:`M4 7V4h16v3`,key:`9msm58`}],[`path`,{d:`M5 20h6`,key:`1h6pxn`}],[`path`,{d:`M13 4 8 20`,key:`kqq6aj`}],[`path`,{d:`m15 15 5 5`,key:`me55sn`}],[`path`,{d:`m20 15-5 5`,key:`11p7ol`}]]),sie=x(`refrigerator`,[[`path`,{d:`M5 6a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6Z`,key:`fpq118`}],[`path`,{d:`M5 10h14`,key:`elsbfy`}],[`path`,{d:`M15 7v6`,key:`1nx30x`}]]),cie=x(`repeat-1`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}],[`path`,{d:`M11 10h1v4`,key:`70cz1p`}]]),lie=x(`repeat-2`,[[`path`,{d:`m2 9 3-3 3 3`,key:`1ltn5i`}],[`path`,{d:`M13 18H7a2 2 0 0 1-2-2V6`,key:`1r6tfw`}],[`path`,{d:`m22 15-3 3-3-3`,key:`4rnwn2`}],[`path`,{d:`M11 6h6a2 2 0 0 1 2 2v10`,key:`2f72bc`}]]),uie=x(`repeat-off`,[[`path`,{d:`M11.656 6H21l-4-4`,key:`w9pozh`}],[`path`,{d:`M17.898 17.898A4 4 0 0 1 17 18H3l4-4`,key:`156mfe`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21 13v1a4 4 0 0 1-.171 1.159`,key:`2p1713`}],[`path`,{d:`m21 6-4 4`,key:`p7opkf`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 3.102-3.898`,key:`8cius9`}],[`path`,{d:`m7 22-4-4`,key:`1kl3a3`}]]),die=x(`repeat`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]),fie=x(`replace-all`,[[`path`,{d:`M14 14a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1`,key:`zg1ipl`}],[`path`,{d:`M14 4a1 1 0 0 1 1-1`,key:`dhj8ez`}],[`path`,{d:`M15 10a1 1 0 0 1-1-1`,key:`1mnyi5`}],[`path`,{d:`M19 14a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1`,key:`txt6k4`}],[`path`,{d:`M21 4a1 1 0 0 0-1-1`,key:`sfs9ap`}],[`path`,{d:`M21 9a1 1 0 0 1-1 1`,key:`mp6qeo`}],[`path`,{d:`m3 7 3 3 3-3`,key:`x25e72`}],[`path`,{d:`M6 10V5a2 2 0 0 1 2-2h2`,key:`15xut4`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}]]),pie=x(`reply-all`,[[`path`,{d:`m12 17-5-5 5-5`,key:`1s3y5u`}],[`path`,{d:`M22 18v-2a4 4 0 0 0-4-4H7`,key:`1fcyog`}],[`path`,{d:`m7 17-5-5 5-5`,key:`1ed8i2`}]]),mie=x(`reply`,[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]),hie=x(`replace`,[[`path`,{d:`M14 4a1 1 0 0 1 1-1`,key:`dhj8ez`}],[`path`,{d:`M15 10a1 1 0 0 1-1-1`,key:`1mnyi5`}],[`path`,{d:`M21 4a1 1 0 0 0-1-1`,key:`sfs9ap`}],[`path`,{d:`M21 9a1 1 0 0 1-1 1`,key:`mp6qeo`}],[`path`,{d:`m3 7 3 3 3-3`,key:`x25e72`}],[`path`,{d:`M6 10V5a2 2 0 0 1 2-2h2`,key:`15xut4`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}]]),gie=x(`rewind`,[[`path`,{d:`M12 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 12 18z`,key:`2a1g8i`}],[`path`,{d:`M22 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 22 18z`,key:`rg3s36`}]]),_ie=x(`ribbon`,[[`path`,{d:`M12 11.22C11 9.997 10 9 10 8a2 2 0 0 1 4 0c0 1-.998 2.002-2.01 3.22`,key:`1rnhq3`}],[`path`,{d:`m12 18 2.57-3.5`,key:`116vt7`}],[`path`,{d:`M6.243 9.016a7 7 0 0 1 11.507-.009`,key:`10dq0b`}],[`path`,{d:`M9.35 14.53 12 11.22`,key:`tdsyp2`}],[`path`,{d:`M9.35 14.53C7.728 12.246 6 10.221 6 7a6 5 0 0 1 12 0c-.005 3.22-1.778 5.235-3.43 7.5l3.557 4.527a1 1 0 0 1-.203 1.43l-1.894 1.36a1 1 0 0 1-1.384-.215L12 18l-2.679 3.593a1 1 0 0 1-1.39.213l-1.865-1.353a1 1 0 0 1-.203-1.422z`,key:`nmifey`}]]),vie=x(`road`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M12 5V3`,key:`vd5es`}],[`path`,{d:`M12 9v3`,key:`qyerrc`}],[`path`,{d:`M2.077 18.449A2 2 0 0 0 4 21h16a2 2 0 0 0 1.924-2.55l-4-14A2 2 0 0 0 16 3H8a2 2 0 0 0-1.924 1.45z`,key:`1cuxct`}]]),Ay=x(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),yie=x(`rocking-chair`,[[`path`,{d:`m15 13 3.708 7.416`,key:`1edxn9`}],[`path`,{d:`M3 19a15 15 0 0 0 18 0`,key:`d0d1c4`}],[`path`,{d:`m3 2 3.21 9.633A2 2 0 0 0 8.109 13H18`,key:`tpa4et`}],[`path`,{d:`m9 13-3.708 7.416`,key:`1oplxx`}]]),bie=x(`roller-coaster`,[[`path`,{d:`M6 19V5`,key:`1r845m`}],[`path`,{d:`M10 19V6.8`,key:`9j2tfs`}],[`path`,{d:`M14 19v-7.8`,key:`10s8qv`}],[`path`,{d:`M18 5v4`,key:`1tajlv`}],[`path`,{d:`M18 19v-6`,key:`ielfq3`}],[`path`,{d:`M22 19V9`,key:`158nzp`}],[`path`,{d:`M2 19V9a4 4 0 0 1 4-4c2 0 4 1.33 6 4s4 4 6 4a4 4 0 1 0-3-6.65`,key:`1930oh`}]]),xie=x(`rotate-3d`,[[`path`,{d:`m15.194 13.707 3.814 1.86-1.86 3.814`,key:`16shm9`}],[`path`,{d:`M16.47214 7.52786 A 5 10 0 1 0 13 21.79796`,key:`1245p8`}],[`path`,{d:`M21.79796 11 A 10 5 0 1 0 19 15.57071`,key:`1i40ks`}]]),Sie=x(`rotate-ccw-key`,[[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M12 9h2`,key:`1lpap9`}],[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.74 9.74 0 0 0-6.74 2.74L3 8`,key:`g2jlw`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`circle`,{cx:`12`,cy:`15`,r:`2`,key:`1vpstw`}]]),Cie=x(`rose`,[[`path`,{d:`M17 10h-1a4 4 0 1 1 4-4v.534`,key:`7qf5zm`}],[`path`,{d:`M17 6h1a4 4 0 0 1 1.42 7.74l-2.29.87a6 6 0 0 1-5.339-10.68l2.069-1.31`,key:`1et29u`}],[`path`,{d:`M4.5 17c2.8-.5 4.4 0 5.5.8s1.8 2.2 2.3 3.7c-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2`,key:`kiv2lz`}],[`path`,{d:`M9.77 12C4 15 2 22 2 22`,key:`h28rw0`}],[`circle`,{cx:`17`,cy:`8`,r:`2`,key:`1330xn`}]]),wie=x(`rotate-ccw-square`,[[`path`,{d:`M20 9V7a2 2 0 0 0-2-2h-6`,key:`19z8uc`}],[`path`,{d:`m15 2-3 3 3 3`,key:`177bxs`}],[`path`,{d:`M20 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2`,key:`d36hnl`}]]),jy=x(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Tie=x(`rotate-cw-square`,[[`path`,{d:`M12 5H6a2 2 0 0 0-2 2v3`,key:`l96uqu`}],[`path`,{d:`m9 8 3-3-3-3`,key:`1gzgc3`}],[`path`,{d:`M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2`,key:`1w2k5h`}]]),Eie=x(`route-off`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5c.4 0 .9-.1 1.3-.2`,key:`1effex`}],[`path`,{d:`M5.2 5.2A3.5 3.53 0 0 0 6.5 12H12`,key:`k9y2ds`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21 15.3a3.5 3.5 0 0 0-3.3-3.3`,key:`11nlu2`}],[`path`,{d:`M15 5h-4.3`,key:`6537je`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),My=x(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),Die=x(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),Oie=x(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),kie=x(`rows-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}]]),Aie=x(`rows-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]),jie=x(`rows-4`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 7.5H3`,key:`1hm9pq`}],[`path`,{d:`M21 12H3`,key:`2avoz0`}],[`path`,{d:`M21 16.5H3`,key:`n7jzkj`}]]),Mie=x(`rss`,[[`path`,{d:`M4 11a9 9 0 0 1 9 9`,key:`pv89mb`}],[`path`,{d:`M4 4a16 16 0 0 1 16 16`,key:`k0647b`}],[`circle`,{cx:`5`,cy:`19`,r:`1`,key:`bfqh0e`}]]),Nie=x(`ruler`,[[`path`,{d:`M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z`,key:`icamh8`}],[`path`,{d:`m14.5 12.5 2-2`,key:`inckbg`}],[`path`,{d:`m11.5 9.5 2-2`,key:`fmmyf7`}],[`path`,{d:`m8.5 6.5 2-2`,key:`vc6u1g`}],[`path`,{d:`m17.5 15.5 2-2`,key:`wo5hmg`}]]),Pie=x(`ruler-dimension-line`,[[`path`,{d:`M10 15v-3`,key:`1pjskw`}],[`path`,{d:`M14 15v-3`,key:`1o1mqj`}],[`path`,{d:`M18 15v-3`,key:`cws6he`}],[`path`,{d:`M2 8V4`,key:`3jv1jz`}],[`path`,{d:`M22 6H2`,key:`1iqbfk`}],[`path`,{d:`M22 8V4`,key:`16f4ou`}],[`path`,{d:`M6 15v-3`,key:`1ij1qe`}],[`rect`,{x:`2`,y:`12`,width:`20`,height:`8`,rx:`2`,key:`1tqiko`}]]),Fie=x(`russian-ruble`,[[`path`,{d:`M6 11h8a4 4 0 0 0 0-8H9v18`,key:`18ai8t`}],[`path`,{d:`M6 15h8`,key:`1y8f6l`}]]),Iie=x(`sailboat`,[[`path`,{d:`M10 2v15`,key:`1qf71f`}],[`path`,{d:`M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z`,key:`1pxcvx`}],[`path`,{d:`M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z`,key:`5oog16`}]]),Lie=x(`sandwich`,[[`path`,{d:`m2.37 11.223 8.372-6.777a2 2 0 0 1 2.516 0l8.371 6.777`,key:`f1wd0e`}],[`path`,{d:`M21 15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-5.25`,key:`1pfu07`}],[`path`,{d:`M3 15a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9`,key:`1oq9qw`}],[`path`,{d:`m6.67 15 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2`,key:`1fnwu5`}],[`rect`,{width:`20`,height:`4`,x:`2`,y:`11`,rx:`1`,key:`itshg`}]]),Rie=x(`salad`,[[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`path`,{d:`M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z`,key:`4rw317`}],[`path`,{d:`M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1`,key:`10xrj0`}],[`path`,{d:`m13 12 4-4`,key:`1hckqy`}],[`path`,{d:`M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2`,key:`1p4srx`}]]),zie=x(`satellite-dish`,[[`path`,{d:`M4 10a7.31 7.31 0 0 0 10 10Z`,key:`1fzpp3`}],[`path`,{d:`m9 15 3-3`,key:`88sc13`}],[`path`,{d:`M17 13a6 6 0 0 0-6-6`,key:`15cc6u`}],[`path`,{d:`M21 13A10 10 0 0 0 11 3`,key:`11nf8s`}]]),Bie=x(`satellite`,[[`path`,{d:`m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5`,key:`dzhfyz`}],[`path`,{d:`M16.5 7.5 19 5`,key:`1ltcjm`}],[`path`,{d:`m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5`,key:`nfoymv`}],[`path`,{d:`M9 21a6 6 0 0 0-6-6`,key:`1iajcf`}],[`path`,{d:`M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z`,key:`nv9zqy`}]]),Vie=x(`save-all`,[[`path`,{d:`M10 2v3a1 1 0 0 0 1 1h5`,key:`1xspal`}],[`path`,{d:`M18 18v-6a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6`,key:`1ra60u`}],[`path`,{d:`M18 22H4a2 2 0 0 1-2-2V6`,key:`pblm9e`}],[`path`,{d:`M8 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9.172a2 2 0 0 1 1.414.586l2.828 2.828A2 2 0 0 1 22 6.828V16a2 2 0 0 1-2.01 2z`,key:`1yve0x`}]]),Hie=x(`saudi-riyal`,[[`path`,{d:`m20 19.5-5.5 1.2`,key:`1aenhr`}],[`path`,{d:`M14.5 4v11.22a1 1 0 0 0 1.242.97L20 15.2`,key:`2rtezt`}],[`path`,{d:`m2.978 19.351 5.549-1.363A2 2 0 0 0 10 16V2`,key:`1kbm92`}],[`path`,{d:`M20 10 4 13.5`,key:`8nums9`}]]),Uie=x(`save-off`,[[`path`,{d:`M13 13H8a1 1 0 0 0-1 1v7`,key:`h8g396`}],[`path`,{d:`M14 8h1`,key:`1lfen6`}],[`path`,{d:`M17 21v-4`,key:`1yknxs`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20.41 20.41A2 2 0 0 1 19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 .59-1.41`,key:`1t4vdl`}],[`path`,{d:`M29.5 11.5s5 5 4 5`,key:`zzn4i6`}],[`path`,{d:`M9 3h6.2a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V15`,key:`24cby9`}]]),Ny=x(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Wie=x(`scale`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]),Gie=x(`scale-3d`,[[`path`,{d:`M5 7v11a1 1 0 0 0 1 1h11`,key:`13dt1j`}],[`path`,{d:`M5.293 18.707 11 13`,key:`ezgbsx`}],[`circle`,{cx:`19`,cy:`19`,r:`2`,key:`17f5cg`}],[`circle`,{cx:`5`,cy:`5`,r:`2`,key:`1gwv83`}]]),Kie=x(`scan-barcode`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M8 7v10`,key:`23sfjj`}],[`path`,{d:`M12 7v10`,key:`jspqdw`}],[`path`,{d:`M17 7v10`,key:`578dap`}]]),qie=x(`scaling`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M14 15H9v-5`,key:`pi4jk9`}],[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M21 3 9 15`,key:`15kdhq`}]]),Jie=x(`scan-eye`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0`,key:`11ak4c`}]]),Yie=x(`scan-face`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 9h.01`,key:`x1ddxp`}]]),Xie=x(`scan-heart`,[[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 4.172 4.306l-3.447 3.62a1 1 0 0 1-1.449 0z`,key:`1ak1ef`}]]),Zie=x(`scan-line`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),Qie=x(`scan-search`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]),$ie=x(`scan-qr-code`,[[`path`,{d:`M17 12v4a1 1 0 0 1-1 1h-4`,key:`uk4fdo`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M17 8V7`,key:`q2g9wo`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M7 17h.01`,key:`19xn7k`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`rect`,{x:`7`,y:`7`,width:`5`,height:`5`,rx:`1`,key:`m9kyts`}]]),eae=x(`scan-text`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 8h8`,key:`1jbsf9`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h6`,key:`1vyc9m`}]]),tae=x(`scan`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),nae=x(`scissors-line-dashed`,[[`path`,{d:`M5.42 9.42 8 12`,key:`12pkuq`}],[`circle`,{cx:`4`,cy:`8`,r:`2`,key:`107mxr`}],[`path`,{d:`m14 6-8.58 8.58`,key:`gvzu5l`}],[`circle`,{cx:`4`,cy:`16`,r:`2`,key:`1ehqvc`}],[`path`,{d:`M10.8 14.8 14 18`,key:`ax7m9r`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}]]),rae=x(`school`,[[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M18 4.933V21`,key:`tjwmp4`}],[`path`,{d:`m4 6 7.106-3.79a2 2 0 0 1 1.788 0L20 6`,key:`zywc2d`}],[`path`,{d:`m6 11-3.52 2.147a1 1 0 0 0-.48.854V19a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a1 1 0 0 0-.48-.853L18 11`,key:`1d4ql0`}],[`path`,{d:`M6 4.933V21`,key:`1ufz1j`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}]]),iae=x(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]),aae=x(`scooter`,[[`path`,{d:`M21 4h-3.5l2 11.05`,key:`1gktiw`}],[`path`,{d:`M6.95 17h5.142c.523 0 .95-.406 1.063-.916a6.5 6.5 0 0 1 5.345-5.009`,key:`1bq3u3`}],[`circle`,{cx:`19.5`,cy:`17.5`,r:`2.5`,key:`e4zhv9`}],[`circle`,{cx:`4.5`,cy:`17.5`,r:`2.5`,key:`50vk4p`}]]),oae=x(`screen-share-off`,[[`path`,{d:`M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3`,key:`i8wdob`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`m22 3-5 5`,key:`12jva0`}],[`path`,{d:`m17 3 5 5`,key:`k36vhe`}]]),sae=x(`screen-share`,[[`path`,{d:`M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3`,key:`i8wdob`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`m17 8 5-5`,key:`fqif7o`}],[`path`,{d:`M17 3h5v5`,key:`1o3tu8`}]]),Py=x(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),cae=x(`scroll`,[[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),lae=x(`search-alert`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}],[`path`,{d:`M11 7v4`,key:`m2edmq`}],[`path`,{d:`M11 15h.01`,key:`k85uqc`}]]),Fy=x(`search-check`,[[`path`,{d:`m8 11 2 2 4-4`,key:`1sed1v`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),uae=x(`search-code`,[[`path`,{d:`m13 13.5 2-2.5-2-2.5`,key:`1rvxrh`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}],[`path`,{d:`M9 8.5 7 11l2 2.5`,key:`6ffwbx`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),dae=x(`search-slash`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),fae=x(`search-x`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),Iy=x(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),pae=x(`section`,[[`path`,{d:`M16 5a4 3 0 0 0-8 0c0 4 8 3 8 7a4 3 0 0 1-8 0`,key:`vqan6v`}],[`path`,{d:`M8 19a4 3 0 0 0 8 0c0-4-8-3-8-7a4 3 0 0 1 8 0`,key:`wdjd8o`}]]),mae=x(`send-horizontal`,[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]]),hae=x(`send-to-back`,[[`rect`,{x:`14`,y:`14`,width:`8`,height:`8`,rx:`2`,key:`1b0bso`}],[`rect`,{x:`2`,y:`2`,width:`8`,height:`8`,rx:`2`,key:`1x09vl`}],[`path`,{d:`M7 14v1a2 2 0 0 0 2 2h1`,key:`pao6x6`}],[`path`,{d:`M14 7h1a2 2 0 0 1 2 2v1`,key:`19tdru`}]]),gae=x(`separator-horizontal`,[[`path`,{d:`m16 16-4 4-4-4`,key:`3dv8je`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`m8 8 4-4 4 4`,key:`2bscm2`}]]),Ly=x(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),_ae=x(`separator-vertical`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m16 16 4-4-4-4`,key:`1js579`}],[`path`,{d:`m8 8-4 4 4 4`,key:`1whems`}]]),vae=x(`server-crash`,[[`path`,{d:`M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2`,key:`4b9dqc`}],[`path`,{d:`M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2`,key:`22nnkd`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`m13 6-4 6h6l-4 6`,key:`14hqih`}]]),yae=x(`server-cog`,[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1v3clb`}],[`path`,{d:`m13.148 9.228.383-.923`,key:`t2zzyc`}],[`path`,{d:`m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1bxfiv`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5`,key:`tn8das`}],[`path`,{d:`M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5`,key:`1g2pve`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}]]),bae=x(`server-off`,[[`path`,{d:`M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5`,key:`bt2siv`}],[`path`,{d:`M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z`,key:`1hjrv1`}],[`path`,{d:`M22 17v-1a2 2 0 0 0-2-2h-1`,key:`1iynyr`}],[`path`,{d:`M4 14a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16.5l1-.5.5.5-8-8H4z`,key:`161ggg`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ry=x(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),zy=x(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),By=x(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),xae=x(`shapes`,[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]),Vy=x(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),Sae=x(`sheet`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`line`,{x1:`3`,x2:`21`,y1:`9`,y2:`9`,key:`1vqk6q`}],[`line`,{x1:`3`,x2:`21`,y1:`15`,y2:`15`,key:`o2sbyz`}],[`line`,{x1:`9`,x2:`9`,y1:`9`,y2:`21`,key:`1ib60c`}],[`line`,{x1:`15`,x2:`15`,y1:`9`,y2:`21`,key:`1n26ft`}]]),Cae=x(`share`,[[`path`,{d:`M12 2v13`,key:`1km8f5`}],[`path`,{d:`m16 6-4-4-4 4`,key:`13yo43`}],[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}]]),wae=x(`shell`,[[`path`,{d:`M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44`,key:`1cn552`}]]),Tae=x(`shelving-unit`,[[`path`,{d:`M12 12V9a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3`,key:`wiz68x`}],[`path`,{d:`M16 20v-3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3`,key:`1b59c4`}],[`path`,{d:`M20 22V2`,key:`1bnhr8`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`M4 2v20`,key:`gtpd5x`}],[`path`,{d:`M4 4h16`,key:`1bkgr1`}]]),Hy=x(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),Eae=x(`shield-ban`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m4.243 5.21 14.39 12.472`,key:`1c9a7c`}]]),Uy=x(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Dae=x(`shield-cog-corner`,[[`path`,{d:`M11 22c-3.806-1.45-7-3.966-7-9V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v4`,key:`hf1sz5`}],[`path`,{d:`M14.923 16.547 14 16.164`,key:`41f878`}],[`path`,{d:`m14.923 18.843-.923.383`,key:`82rvv5`}],[`path`,{d:`M16.547 14.923 16.164 14`,key:`1r7ypn`}],[`path`,{d:`m16.547 20.467-.383.924`,key:`au4kyj`}],[`path`,{d:`m18.843 14.923.383-.923`,key:`1cbrwq`}],[`path`,{d:`m19.225 21.391-.382-.924`,key:`1u2bh9`}],[`path`,{d:`m20.467 16.547.923-.383`,key:`cprboc`}],[`path`,{d:`m20.467 18.843.923.383`,key:`inm8l2`}],[`circle`,{cx:`17.695`,cy:`17.695`,r:`3`,key:`1i1rmh`}]]),Oae=x(`shield-ellipsis`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}]]),kae=x(`shield-cog`,[[`path`,{d:`m10.929 14.467-.383.924`,key:`hdyevy`}],[`path`,{d:`M10.929 8.923 10.546 8`,key:`1nr44d`}],[`path`,{d:`M13.225 8.923 13.608 8`,key:`aewley`}],[`path`,{d:`m13.607 15.391-.382-.924`,key:`m37gf1`}],[`path`,{d:`m14.849 10.547.923-.383`,key:`1d3c4q`}],[`path`,{d:`m14.849 12.843.923.383`,key:`lmvhy3`}],[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9.305 10.547-.923-.383`,key:`1d13ox`}],[`path`,{d:`m9.305 12.843-.923.383`,key:`7wxwh5`}],[`circle`,{cx:`12.077`,cy:`11.695`,r:`3`,key:`fse9k8`}]]),Wy=x(`shield-half`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 22V2`,key:`zs6s6o`}]]),Gy=x(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Aae=x(`shield-minus`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}]]),jae=x(`shield-plus`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}],[`path`,{d:`M12 9v6`,key:`199k2o`}]]),Mae=x(`shield-question-mark`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Nae=x(`shield-user`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M6.376 18.91a6 6 0 0 1 11.249.003`,key:`hnjrf2`}],[`circle`,{cx:`12`,cy:`11`,r:`4`,key:`1gt34v`}]]),Ky=x(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Pae=x(`ship-wheel`,[[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}],[`path`,{d:`M12 2v7.5`,key:`1e5rl5`}],[`path`,{d:`m19 5-5.23 5.23`,key:`1ezxxf`}],[`path`,{d:`M22 12h-7.5`,key:`le1719`}],[`path`,{d:`m19 19-5.23-5.23`,key:`p3fmgn`}],[`path`,{d:`M12 14.5V22`,key:`dgcmos`}],[`path`,{d:`M10.23 13.77 5 19`,key:`qwopd4`}],[`path`,{d:`M9.5 12H2`,key:`r7bup8`}],[`path`,{d:`M10.23 10.23 5 5`,key:`k2y7lj`}],[`circle`,{cx:`12`,cy:`12`,r:`2.5`,key:`ix0uyj`}]]),Fae=x(`shield-x`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m14.5 9.5-5 5`,key:`17q4r4`}],[`path`,{d:`m9.5 9.5 5 5`,key:`18nt4w`}]]),Iae=x(`ship`,[[`path`,{d:`M12 10.189V14`,key:`1p8cqu`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6`,key:`qpkstq`}],[`path`,{d:`M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76`,key:`7tigtc`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1924j5`}]]),Lae=x(`shirt`,[[`path`,{d:`M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z`,key:`1wgbhj`}]]),Rae=x(`shopping-bag`,[[`path`,{d:`M16 10a4 4 0 0 1-8 0`,key:`1ltviw`}],[`path`,{d:`M3.103 6.034h17.794`,key:`awc11p`}],[`path`,{d:`M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z`,key:`o988cm`}]]),zae=x(`shopping-basket`,[[`path`,{d:`m15 11-1 9`,key:`5wnq3a`}],[`path`,{d:`m19 11-4-7`,key:`cnml18`}],[`path`,{d:`M2 11h20`,key:`3eubbj`}],[`path`,{d:`m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4`,key:`yiazzp`}],[`path`,{d:`M4.5 15.5h15`,key:`13mye1`}],[`path`,{d:`m5 11 4-7`,key:`116ra9`}],[`path`,{d:`m9 11 1 9`,key:`1ojof7`}]]),Bae=x(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),Vae=x(`shovel`,[[`path`,{d:`M21.56 4.56a1.5 1.5 0 0 1 0 2.122l-.47.47a3 3 0 0 1-4.212-.03 3 3 0 0 1 0-4.243l.44-.44a1.5 1.5 0 0 1 2.121 0z`,key:`1gcedi`}],[`path`,{d:`M3 22a1 1 0 0 1-1-1v-3.586a1 1 0 0 1 .293-.707l3.355-3.355a1.205 1.205 0 0 1 1.704 0l3.296 3.296a1.205 1.205 0 0 1 0 1.704l-3.355 3.355a1 1 0 0 1-.707.293z`,key:`pg9kv3`}],[`path`,{d:`m9 15 7.879-7.878`,key:`1o1zgh`}]]),Hae=x(`shower-head`,[[`path`,{d:`m4 4 2.5 2.5`,key:`uv2vmf`}],[`path`,{d:`M13.5 6.5a4.95 4.95 0 0 0-7 7`,key:`frdkwv`}],[`path`,{d:`M15 5 5 15`,key:`1ag8rq`}],[`path`,{d:`M14 17v.01`,key:`eokfpp`}],[`path`,{d:`M10 16v.01`,key:`14uyyl`}],[`path`,{d:`M13 13v.01`,key:`1v1k97`}],[`path`,{d:`M16 10v.01`,key:`5169yg`}],[`path`,{d:`M11 20v.01`,key:`cj92p8`}],[`path`,{d:`M17 14v.01`,key:`11cswd`}],[`path`,{d:`M20 11v.01`,key:`19e0od`}]]),Uae=x(`shredder`,[[`path`,{d:`M4 13V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1eob4r`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 22v-5`,key:`sfixh4`}],[`path`,{d:`M14 19v-2`,key:`pdve8j`}],[`path`,{d:`M18 20v-3`,key:`uox2gk`}],[`path`,{d:`M2 13h20`,key:`5evz65`}],[`path`,{d:`M6 20v-3`,key:`c6pdcb`}]]),Wae=x(`shrimp`,[[`path`,{d:`M11 12h.01`,key:`1lr4k6`}],[`path`,{d:`M13 22c.5-.5 1.12-1 2.5-1-1.38 0-2-.5-2.5-1`,key:`fatpdi`}],[`path`,{d:`M14 2a3.28 3.28 0 0 1-3.227 1.798l-6.17-.561A2.387 2.387 0 1 0 4.387 8H15.5a1 1 0 0 1 0 13 1 1 0 0 0 0-5H12a7 7 0 0 1-7-7V8`,key:`kehrqe`}],[`path`,{d:`M14 8a8.5 8.5 0 0 1 0 8`,key:`1imjx2`}],[`path`,{d:`M16 16c2 0 4.5-4 4-6`,key:`z0nejz`}]]),Gae=x(`shrink`,[[`path`,{d:`m15 15 6 6m-6-6v4.8m0-4.8h4.8`,key:`17vawe`}],[`path`,{d:`M9 19.8V15m0 0H4.2M9 15l-6 6`,key:`chjx8e`}],[`path`,{d:`M15 4.2V9m0 0h4.8M15 9l6-6`,key:`lav6yq`}],[`path`,{d:`M9 4.2V9m0 0H4.2M9 9 3 3`,key:`1pxi2q`}]]),Kae=x(`shuffle`,[[`path`,{d:`m18 14 4 4-4 4`,key:`10pe0f`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22`,key:`1ailkh`}],[`path`,{d:`M2 6h1.972a4 4 0 0 1 3.6 2.2`,key:`km57vx`}],[`path`,{d:`M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45`,key:`os18l9`}]]),qae=x(`shrub`,[[`path`,{d:`M12 22v-5.172a2 2 0 0 0-.586-1.414L9.5 13.5`,key:`1p17fm`}],[`path`,{d:`M14.5 14.5 12 17`,key:`dy5w4y`}],[`path`,{d:`M17 8.8A6 6 0 0 1 13.8 20H10A6.5 6.5 0 0 1 7 8a5 5 0 0 1 10 0z`,key:`6z7b3o`}]]),Jae=x(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),Yae=x(`signal-low`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}]]),Xae=x(`signal-high`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}],[`path`,{d:`M17 20V8`,key:`1tkaf5`}]]),Zae=x(`signal-medium`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}]]),Qae=x(`signal-zero`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}]]),$ae=x(`signpost-big`,[[`path`,{d:`M10 9H4L2 7l2-2h6`,key:`1hq7x2`}],[`path`,{d:`M14 5h6l2 2-2 2h-6`,key:`bv62ej`}],[`path`,{d:`M10 22V4a2 2 0 1 1 4 0v18`,key:`eqpcf2`}],[`path`,{d:`M8 22h8`,key:`rmew8v`}]]),eoe=x(`signature`,[[`path`,{d:`m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284`,key:`y32ogt`}],[`path`,{d:`M3 21h18`,key:`itz85i`}]]),toe=x(`signal`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}],[`path`,{d:`M17 20V8`,key:`1tkaf5`}],[`path`,{d:`M22 4v16`,key:`sih9yq`}]]),noe=x(`siren`,[[`path`,{d:`M7 18v-6a5 5 0 1 1 10 0v6`,key:`pcx96s`}],[`path`,{d:`M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z`,key:`1b4s83`}],[`path`,{d:`M21 12h1`,key:`jtio3y`}],[`path`,{d:`M18.5 4.5 18 5`,key:`g5sp9y`}],[`path`,{d:`M2 12h1`,key:`1uaihz`}],[`path`,{d:`M12 2v1`,key:`11qlp1`}],[`path`,{d:`m4.929 4.929.707.707`,key:`1i51kw`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}]]),roe=x(`signpost`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M12 3v3`,key:`1n5kay`}],[`path`,{d:`M2.354 10.354a1.207 1.207 0 0 1 0-1.708l2.06-2.06A2 2 0 0 1 5.828 6h12.344a2 2 0 0 1 1.414.586l2.06 2.06a1.207 1.207 0 0 1 0 1.708l-2.06 2.06a2 2 0 0 1-1.414.586H5.828a2 2 0 0 1-1.414-.586z`,key:`1tm261`}]]),ioe=x(`skip-back`,[[`path`,{d:`M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z`,key:`15892j`}],[`path`,{d:`M3 20V4`,key:`1ptbpl`}]]),aoe=x(`skip-forward`,[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]]),ooe=x(`skull`,[[`path`,{d:`m12.5 17-.5-1-.5 1h1z`,key:`3me087`}],[`path`,{d:`M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z`,key:`1o5pge`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}]]),soe=x(`slash`,[[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]),coe=x(`slice`,[[`path`,{d:`M11 16.586V19a1 1 0 0 1-1 1H2L18.37 3.63a1 1 0 1 1 3 3l-9.663 9.663a1 1 0 0 1-1.414 0L8 14`,key:`1sllp5`}]]),qy=x(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),loe=x(`sliders-vertical`,[[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M12 21v-9`,key:`17s77i`}],[`path`,{d:`M12 8V3`,key:`13r4qs`}],[`path`,{d:`M17 16h4`,key:`h1uq16`}],[`path`,{d:`M19 12V3`,key:`o1uvq1`}],[`path`,{d:`M19 21v-5`,key:`qua636`}],[`path`,{d:`M3 14h4`,key:`bcjad9`}],[`path`,{d:`M5 10V3`,key:`cb8scm`}],[`path`,{d:`M5 21v-7`,key:`1w1uti`}]]),uoe=x(`smartphone-charging`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12.667 8 10 12h4l-2.667 4`,key:`h9lk2d`}]]),doe=x(`smartphone-nfc`,[[`rect`,{width:`7`,height:`12`,x:`2`,y:`6`,rx:`1`,key:`5nje8w`}],[`path`,{d:`M13 8.32a7.43 7.43 0 0 1 0 7.36`,key:`1g306n`}],[`path`,{d:`M16.46 6.21a11.76 11.76 0 0 1 0 11.58`,key:`uqvjvo`}],[`path`,{d:`M19.91 4.1a15.91 15.91 0 0 1 .01 15.8`,key:`ujntz3`}]]),Jy=x(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),foe=x(`smile-plus`,[[`path`,{d:`M22 11v1a10 10 0 1 1-9-10`,key:`ew0xw9`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}],[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}]]),poe=x(`smile`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),moe=x(`snail`,[[`path`,{d:`M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0`,key:`hneq2s`}],[`circle`,{cx:`10`,cy:`13`,r:`8`,key:`194lz3`}],[`path`,{d:`M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6`,key:`ixqyt7`}],[`path`,{d:`M18 3 19.1 5.2`,key:`9tjm43`}],[`path`,{d:`M22 3 20.9 5.2`,key:`j3odrs`}]]),hoe=x(`snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`m14 20 1.25-2.5L18 18`,key:`1chtki`}],[`path`,{d:`m14 4 1.25 2.5L18 6`,key:`1b4wsy`}],[`path`,{d:`m17 21-3-6h-4`,key:`15hhxa`}],[`path`,{d:`m17 3-3 6 1.5 3`,key:`11697g`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`m20 10-1.5 2 1.5 2`,key:`1swlpi`}],[`path`,{d:`M22 12h-6.5L14 15`,key:`1mxi28`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h4`,key:`1otusx`}]]),goe=x(`sofa`,[[`path`,{d:`M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3`,key:`1dgpiv`}],[`path`,{d:`M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z`,key:`xacw8m`}],[`path`,{d:`M4 18v2`,key:`jwo5n2`}],[`path`,{d:`M20 18v2`,key:`1ar1qi`}],[`path`,{d:`M12 4v9`,key:`oqhhn3`}]]),_oe=x(`soap-dispenser-droplet`,[[`path`,{d:`M10.5 2v4`,key:`1xt6in`}],[`path`,{d:`M14 2H7a2 2 0 0 0-2 2`,key:`e6xig3`}],[`path`,{d:`M19.29 14.76A6.67 6.67 0 0 1 17 11a6.6 6.6 0 0 1-2.29 3.76c-1.15.92-1.71 2.04-1.71 3.19 0 2.22 1.8 4.05 4 4.05s4-1.83 4-4.05c0-1.16-.57-2.26-1.71-3.19`,key:`adq7uc`}],[`path`,{d:`M9.607 21H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h7V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3`,key:`t9hm96`}]]),voe=x(`solar-panel`,[[`path`,{d:`M11 2h2`,key:`isr7bz`}],[`path`,{d:`m14.28 14-4.56 8`,key:`4anwcf`}],[`path`,{d:`m21 22-1.558-4H4.558`,key:`enk13h`}],[`path`,{d:`M3 10v2`,key:`w8mti9`}],[`path`,{d:`M6.245 15.04A2 2 0 0 1 8 14h12a1 1 0 0 1 .864 1.505l-3.11 5.457A2 2 0 0 1 16 22H4a1 1 0 0 1-.863-1.506z`,key:`pouggg`}],[`path`,{d:`M7 2a4 4 0 0 1-4 4`,key:`78s8of`}],[`path`,{d:`m8.66 7.66 1.41 1.41`,key:`1vaqj8`}]]),yoe=x(`soup`,[[`path`,{d:`M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z`,key:`4rw317`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`path`,{d:`M19.5 12 22 6`,key:`shfsr5`}],[`path`,{d:`M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62`,key:`rpc6vp`}],[`path`,{d:`M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62`,key:`1lf63m`}],[`path`,{d:`M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62`,key:`97tijn`}]]),boe=x(`space`,[[`path`,{d:`M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1`,key:`lt2kga`}]]),xoe=x(`spade`,[[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`M2 14.499a5.5 5.5 0 0 0 9.591 3.675.6.6 0 0 1 .818.001A5.5 5.5 0 0 0 22 14.5c0-2.29-1.5-4-3-5.5l-5.492-5.312a2 2 0 0 0-3-.02L5 8.999c-1.5 1.5-3 3.2-3 5.5`,key:`1aw2pz`}]]),Soe=x(`sparkle`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}]]),Coe=x(`speaker`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M12 6h.01`,key:`1vi96p`}],[`circle`,{cx:`12`,cy:`14`,r:`4`,key:`1jruaj`}],[`path`,{d:`M12 14h.01`,key:`1etili`}]]),Yy=x(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),woe=x(`speech`,[[`path`,{d:`M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20`,key:`11atix`}],[`path`,{d:`M19.8 17.8a7.5 7.5 0 0 0 .003-10.603`,key:`yol142`}],[`path`,{d:`M17 15a3.5 3.5 0 0 0-.025-4.975`,key:`ssbmkc`}]]),Toe=x(`spell-check-2`,[[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M4 21c1.1 0 1.1-1 2.3-1s1.1 1 2.3 1c1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1`,key:`8mdmtu`}]]),Eoe=x(`spell-check`,[[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`m16 20 2 2 4-4`,key:`13tcca`}]]),Doe=x(`spline-pointer`,[[`path`,{d:`M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z`,key:`xwnzip`}],[`path`,{d:`M5 17A12 12 0 0 1 17 5`,key:`1okkup`}],[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}]]),Ooe=x(`split`,[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M8 3H3v5`,key:`15dfkv`}],[`path`,{d:`M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3`,key:`1qrqzj`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}]]),koe=x(`spline`,[[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}],[`path`,{d:`M5 17A12 12 0 0 1 17 5`,key:`1okkup`}]]),Aoe=x(`spool`,[[`path`,{d:`M17 13.44 4.442 17.082A2 2 0 0 0 4.982 21H19a2 2 0 0 0 .558-3.921l-1.115-.32A2 2 0 0 1 17 14.837V7.66`,key:`13vns8`}],[`path`,{d:`m7 10.56 12.558-3.642A2 2 0 0 0 19.018 3H5a2 2 0 0 0-.558 3.921l1.115.32A2 2 0 0 1 7 9.163v7.178`,key:`s8x3u0`}]]),joe=x(`sport-shoe`,[[`path`,{d:`m15 10.42 4.8-5.07`,key:`10at9d`}],[`path`,{d:`M19 18h3`,key:`nnkd4d`}],[`path`,{d:`M9.5 22 21.414 9.415A2 2 0 0 0 21.2 6.4l-5.61-4.208A1 1 0 0 0 14 3v2a2 2 0 0 1-1.394 1.906L8.677 8.053A1 1 0 0 0 8 9c-.155 6.393-2.082 9-4 9a2 2 0 0 0 0 4h14`,key:`v410ed`}]]),Moe=x(`spotlight`,[[`path`,{d:`M15.295 19.562 16 22`,key:`31jsb7`}],[`path`,{d:`m17 16 3.758 2.098`,key:`121ar7`}],[`path`,{d:`m19 12.5 3.026-.598`,key:`19ukd3`}],[`path`,{d:`M7.61 6.3a3 3 0 0 0-3.92 1.3l-1.38 2.79a3 3 0 0 0 1.3 3.91l6.89 3.597a1 1 0 0 0 1.342-.447l3.106-6.211a1 1 0 0 0-.447-1.341z`,key:`lwb9l9`}],[`path`,{d:`M8 9V2`,key:`1xa0v7`}]]),Noe=x(`spray-can`,[[`path`,{d:`M3 3h.01`,key:`159qn6`}],[`path`,{d:`M7 5h.01`,key:`1hq22a`}],[`path`,{d:`M11 7h.01`,key:`1osv80`}],[`path`,{d:`M3 7h.01`,key:`1xzrh3`}],[`path`,{d:`M7 9h.01`,key:`19b3jx`}],[`path`,{d:`M3 11h.01`,key:`1eifu7`}],[`rect`,{width:`4`,height:`4`,x:`15`,y:`5`,key:`mri9e4`}],[`path`,{d:`m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2`,key:`aib6hk`}],[`path`,{d:`m13 14 8-2`,key:`1d7bmk`}],[`path`,{d:`m13 19 8-2`,key:`1y2vml`}]]),Poe=x(`square-activity`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M17 12h-2l-2 5-2-10-2 5H7`,key:`15hlnc`}]]),Foe=x(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Ioe=x(`square-arrow-down-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m16 8-8 8`,key:`166keh`}],[`path`,{d:`M16 16H8V8`,key:`1w2ppm`}]]),Loe=x(`square-arrow-down-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m8 8 8 8`,key:`1imecy`}],[`path`,{d:`M16 8v8H8`,key:`1lbpgo`}]]),Roe=x(`square-arrow-down`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`m8 12 4 4 4-4`,key:`k98ssh`}]]),zoe=x(`square-arrow-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m12 8-4 4 4 4`,key:`15vm53`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}]]),Boe=x(`square-arrow-out-down-left`,[[`path`,{d:`M13 21h6a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6`,key:`14qz4y`}],[`path`,{d:`m3 21 9-9`,key:`1jfql5`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Voe=x(`square-arrow-out-down-right`,[[`path`,{d:`M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6`,key:`14rsvq`}],[`path`,{d:`m21 21-9-9`,key:`1et2py`}],[`path`,{d:`M21 15v6h-6`,key:`1jko0i`}]]),Hoe=x(`square-arrow-out-up-left`,[[`path`,{d:`M13 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6`,key:`14mv1t`}],[`path`,{d:`m3 3 9 9`,key:`rks13r`}],[`path`,{d:`M3 9V3h6`,key:`ira0h2`}]]),Uoe=x(`square-arrow-out-up-right`,[[`path`,{d:`M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6`,key:`y09zxi`}],[`path`,{d:`m21 3-9 9`,key:`mpx6sq`}],[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}]]),Woe=x(`square-arrow-right-enter`,[[`path`,{d:`m10 16 4-4-4-4`,key:`w9835o`}],[`path`,{d:`M3 12h11`,key:`pmja8f`}],[`path`,{d:`M3 8V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3`,key:`1bqs5q`}]]),Goe=x(`square-arrow-right-exit`,[[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`m17 16 4-4-4-4`,key:`iin4zf`}],[`path`,{d:`M21 6.344V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-1.344`,key:`1ojbhp`}]]),Koe=x(`square-arrow-up-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 16V8h8`,key:`19xb1h`}],[`path`,{d:`M16 16 8 8`,key:`1qdy8n`}]]),qoe=x(`square-arrow-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`m12 16 4-4-4-4`,key:`1i9zcv`}]]),Joe=x(`square-arrow-up-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 8h8v8`,key:`b65dnt`}],[`path`,{d:`m8 16 8-8`,key:`13b9ih`}]]),Yoe=x(`square-asterisk`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`m8.5 14 7-4`,key:`12hpby`}],[`path`,{d:`m8.5 10 7 4`,key:`wwy2dy`}]]),Xoe=x(`square-arrow-up`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),Zoe=x(`square-bottom-dashed-scissors`,[[`line`,{x1:`5`,y1:`3`,x2:`19`,y2:`3`,key:`x74652`}],[`line`,{x1:`3`,y1:`5`,x2:`3`,y2:`19`,key:`31ivqu`}],[`line`,{x1:`21`,y1:`5`,x2:`21`,y2:`19`,key:`1am4cd`}],[`line`,{x1:`9`,y1:`21`,x2:`10`,y2:`21`,key:`sb02er`}],[`line`,{x1:`14`,y1:`21`,x2:`15`,y2:`21`,key:`1bvb1m`}],[`path`,{d:`M 3 5 A2 2 0 0 1 5 3`,key:`dbypyf`}],[`path`,{d:`M 19 3 A2 2 0 0 1 21 5`,key:`y6haui`}],[`path`,{d:`M 5 21 A2 2 0 0 1 3 19`,key:`kb75wq`}],[`path`,{d:`M 21 19 A2 2 0 0 1 19 21`,key:`1p3zbf`}],[`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`,key:`cn5opk`}],[`line`,{x1:`9.56066`,y1:`9.56066`,x2:`12`,y2:`12`,key:`mksg6j`}],[`line`,{x1:`17`,y1:`17`,x2:`14.82`,y2:`14.82`,key:`1lwi1d`}],[`circle`,{cx:`8.5`,cy:`15.5`,r:`1.5`,key:`12hfy1`}],[`line`,{x1:`9.56066`,y1:`14.43934`,x2:`17`,y2:`7`,key:`4jyfgs`}]]),Qoe=x(`square-centerline-dashed-horizontal`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3`,key:`1i73f7`}],[`path`,{d:`M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3`,key:`saxlbk`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 2v2`,key:`tus03m`}]]),$oe=x(`square-chart-gantt`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 8h7`,key:`kbo1nt`}],[`path`,{d:`M8 12h6`,key:`ikassy`}],[`path`,{d:`M11 16h5`,key:`oq65wt`}]]),ese=x(`square-centerline-dashed-vertical`,[[`path`,{d:`M21 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v3`,key:`14bfxa`}],[`path`,{d:`M21 16v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3`,key:`14rx03`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}]]),Xy=x(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),tse=x(`square-check`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),nse=x(`square-chevron-down`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m16 10-4 4-4-4`,key:`894hmk`}]]),rse=x(`square-chevron-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m10 8 4 4-4 4`,key:`1wy4r4`}]]),ise=x(`square-chevron-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m14 16-4-4 4-4`,key:`ojs7w8`}]]),ase=x(`square-chevron-up`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m8 14 4-4 4 4`,key:`fy2ptz`}]]),ose=x(`square-code`,[[`path`,{d:`m10 9-3 3 3 3`,key:`1oro0q`}],[`path`,{d:`m14 15 3-3-3-3`,key:`bz13h7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),sse=x(`square-dashed-bottom-code`,[[`path`,{d:`M10 9.5 8 12l2 2.5`,key:`3mjy60`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`m14 9.5 2 2.5-2 2.5`,key:`1bir2l`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2`,key:`as5y1o`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}]]),cse=x(`square-dashed-bottom`,[[`path`,{d:`M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2`,key:`as5y1o`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}]]),lse=x(`square-dashed-kanban`,[[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M21 14v1`,key:`169vum`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}]]),use=x(`square-dashed-mouse-pointer`,[[`path`,{d:`M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z`,key:`xwnzip`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h2`,key:`1qve2z`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v2`,key:`p14lih`}],[`path`,{d:`M3 14v1`,key:`vnatye`}]]),dse=x(`square-dashed-text`,[[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 14v1`,key:`169vum`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h6`,key:`1vyc9m`}],[`path`,{d:`M7 8h8`,key:`1jbsf9`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M9 3h1`,key:`1yesri`}]]),fse=x(`square-dashed-top-solid`,[[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M21 14v1`,key:`169vum`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2`,key:`89voep`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}]]),pse=x(`square-divide`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}],[`line`,{x1:`12`,x2:`12`,y1:`16`,y2:`16`,key:`aqc6ln`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`8`,key:`1mkcni`}]]),mse=x(`square-dot`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),hse=x(`square-dashed`,[[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M21 14v1`,key:`169vum`}]]),gse=x(`square-equal`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`M7 14h10`,key:`1mhdw3`}]]),_se=x(`square-function`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3`,key:`m1af9g`}],[`path`,{d:`M9 11.2h5.7`,key:`3zgcl2`}]]),vse=x(`square-kanban`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]]),yse=x(`square-library`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 7v10`,key:`d5nglc`}],[`path`,{d:`M11 7v10`,key:`pptsnr`}],[`path`,{d:`m15 7 2 10`,key:`1m7qm5`}]]),bse=x(`square-m`,[[`path`,{d:`M8 16V8.5a.5.5 0 0 1 .9-.3l2.7 3.599a.5.5 0 0 0 .8 0l2.7-3.6a.5.5 0 0 1 .9.3V16`,key:`1ywlsj`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),xse=x(`square-menu`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 8h10`,key:`1jw688`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h10`,key:`wp8him`}]]),Sse=x(`square-minus`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Cse=x(`square-mouse-pointer`,[[`path`,{d:`M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z`,key:`xwnzip`}],[`path`,{d:`M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6`,key:`14rsvq`}]]),wse=x(`square-parking-off`,[[`path`,{d:`M3.6 3.6A2 2 0 0 1 5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-.59 1.41`,key:`9l1ft6`}],[`path`,{d:`M3 8.7V19a2 2 0 0 0 2 2h10.3`,key:`17knke`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M13 13a3 3 0 1 0 0-6H9v2`,key:`uoagbd`}],[`path`,{d:`M9 17v-2.3`,key:`1jxgo2`}]]),Tse=x(`square-pause`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),Ese=x(`square-parking`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 17V7h4a3 3 0 0 1 0 6H9`,key:`1dfk2c`}]]),Zy=x(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),Dse=x(`square-percent`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 15h.01`,key:`lqbp3k`}]]),Ose=x(`square-pi`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 7h10`,key:`udp07y`}],[`path`,{d:`M10 7v10`,key:`i1d9ee`}],[`path`,{d:`M16 17a2 2 0 0 1-2-2V7`,key:`ftwdc7`}]]),kse=x(`square-pilcrow`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 12H9.5a2.5 2.5 0 0 1 0-5H17`,key:`1l9586`}],[`path`,{d:`M12 7v10`,key:`jspqdw`}],[`path`,{d:`M16 7v10`,key:`lavkr4`}]]),Ase=x(`square-plus`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),jse=x(`square-play`,[[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}]]),Mse=x(`square-power`,[[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M7.998 9.003a5 5 0 1 0 8-.005`,key:`1pek45`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Nse=x(`square-radical`,[[`path`,{d:`M7 12h2l2 5 2-10h4`,key:`1fxv6h`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Pse=x(`square-round-corner`,[[`path`,{d:`M21 11a8 8 0 0 0-8-8`,key:`1lxwo5`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1dv2y5`}]]),Fse=x(`square-scissors`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`,key:`cn5opk`}],[`line`,{x1:`9.56066`,y1:`9.56066`,x2:`12`,y2:`12`,key:`mksg6j`}],[`line`,{x1:`17`,y1:`17`,x2:`14.82`,y2:`14.82`,key:`1lwi1d`}],[`circle`,{cx:`8.5`,cy:`15.5`,r:`1.5`,key:`12hfy1`}],[`line`,{x1:`9.56066`,y1:`14.43934`,x2:`17`,y2:`7`,key:`4jyfgs`}]]),Ise=x(`square-sigma`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M16 8.9V7H8l4 5-4 5h8v-1.9`,key:`9nih0i`}]]),Lse=x(`square-slash`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),Rse=x(`square-split-horizontal`,[[`path`,{d:`M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3`,key:`lubmu8`}],[`path`,{d:`M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3`,key:`1ag34g`}],[`line`,{x1:`12`,x2:`12`,y1:`4`,y2:`20`,key:`1tx1rr`}]]),zse=x(`square-split-vertical`,[[`path`,{d:`M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3`,key:`1pi83i`}],[`path`,{d:`M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3`,key:`ido5k7`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),Bse=x(`square-square`,[[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),Vse=x(`square-stack`,[[`path`,{d:`M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2`,key:`4i38lg`}],[`path`,{d:`M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2`,key:`mlte4a`}],[`rect`,{width:`8`,height:`8`,x:`14`,y:`14`,rx:`2`,key:`1fa9i4`}]]),Hse=x(`square-star`,[[`path`,{d:`M11.035 7.69a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z`,key:`13edca`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Qy=x(`square-stop`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),$y=x(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),eb=x(`square-user-round`,[[`path`,{d:`M18 21a6 6 0 0 0-12 0`,key:`kaz2du`}],[`circle`,{cx:`12`,cy:`11`,r:`4`,key:`1gt34v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),tb=x(`square-x`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),nb=x(`square-user`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 21v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2`,key:`1m6ac2`}]]),rb=x(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),ib=x(`squares-exclude`,[[`path`,{d:`M16 12v2a2 2 0 0 1-2 2H9a1 1 0 0 0-1 1v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2h0`,key:`1mcohs`}],[`path`,{d:`M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 1-1 1h-5a2 2 0 0 0-2 2v2`,key:`1r1efp`}]]),ab=x(`squares-intersect`,[[`path`,{d:`M10 22a2 2 0 0 1-2-2`,key:`i7yj1i`}],[`path`,{d:`M14 2a2 2 0 0 1 2 2`,key:`170a0m`}],[`path`,{d:`M16 22h-2`,key:`18d249`}],[`path`,{d:`M2 10V8`,key:`7yj4fe`}],[`path`,{d:`M2 4a2 2 0 0 1 2-2`,key:`ddgnws`}],[`path`,{d:`M20 8a2 2 0 0 1 2 2`,key:`1770vt`}],[`path`,{d:`M22 14v2`,key:`iot8ja`}],[`path`,{d:`M22 20a2 2 0 0 1-2 2`,key:`qj8q6g`}],[`path`,{d:`M4 16a2 2 0 0 1-2-2`,key:`1dnafg`}],[`path`,{d:`M8 10a2 2 0 0 1 2-2h5a1 1 0 0 1 1 1v5a2 2 0 0 1-2 2H9a1 1 0 0 1-1-1z`,key:`ci6f0b`}],[`path`,{d:`M8 2h2`,key:`1gmkwm`}]]),ob=x(`squares-subtract`,[[`path`,{d:`M10 22a2 2 0 0 1-2-2`,key:`i7yj1i`}],[`path`,{d:`M16 22h-2`,key:`18d249`}],[`path`,{d:`M16 4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-5a2 2 0 0 1 2-2h5a1 1 0 0 0 1-1z`,key:`1njgbb`}],[`path`,{d:`M20 8a2 2 0 0 1 2 2`,key:`1770vt`}],[`path`,{d:`M22 14v2`,key:`iot8ja`}],[`path`,{d:`M22 20a2 2 0 0 1-2 2`,key:`qj8q6g`}]]),sb=x(`squares-unite`,[[`path`,{d:`M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 0 1 1h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-3a1 1 0 0 0-1-1z`,key:`17jnth`}]]),cb=x(`squircle-dashed`,[[`path`,{d:`M13.77 3.043a34 34 0 0 0-3.54 0`,key:`1oaobr`}],[`path`,{d:`M13.771 20.956a33 33 0 0 1-3.541.001`,key:`95iq0j`}],[`path`,{d:`M20.18 17.74c-.51 1.15-1.29 1.93-2.439 2.44`,key:`1u6qty`}],[`path`,{d:`M20.18 6.259c-.51-1.148-1.291-1.929-2.44-2.438`,key:`1ew6g6`}],[`path`,{d:`M20.957 10.23a33 33 0 0 1 0 3.54`,key:`1l9npr`}],[`path`,{d:`M3.043 10.23a34 34 0 0 0 .001 3.541`,key:`1it6jm`}],[`path`,{d:`M6.26 20.179c-1.15-.508-1.93-1.29-2.44-2.438`,key:`14uchd`}],[`path`,{d:`M6.26 3.82c-1.149.51-1.93 1.291-2.44 2.44`,key:`8k4agb`}]]),lb=x(`squircle`,[[`path`,{d:`M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9`,key:`garfkc`}]]),ub=x(`squirrel`,[[`path`,{d:`M15.236 22a3 3 0 0 0-2.2-5`,key:`21bitc`}],[`path`,{d:`M16 20a3 3 0 0 1 3-3h1a2 2 0 0 0 2-2v-2a4 4 0 0 0-4-4V4`,key:`oh0fg0`}],[`path`,{d:`M18 13h.01`,key:`9veqaj`}],[`path`,{d:`M18 6a4 4 0 0 0-4 4 7 7 0 0 0-7 7c0-5 4-5 4-10.5a4.5 4.5 0 1 0-9 0 2.5 2.5 0 0 0 5 0C7 10 3 11 3 17c0 2.8 2.2 5 5 5h10`,key:`980v8a`}]]),db=x(`star-half`,[[`path`,{d:`M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2`,key:`2ksp49`}]]),fb=x(`stamp`,[[`path`,{d:`M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13`,key:`i9gjdv`}],[`path`,{d:`M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z`,key:`1vzg3v`}],[`path`,{d:`M5 22h14`,key:`ehvnwv`}]]),pb=x(`star-off`,[[`path`,{d:`m10.344 4.688 1.181-2.393a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.237 3.152`,key:`19ctli`}],[`path`,{d:`m17.945 17.945.43 2.505a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a8 8 0 0 0 .4-.099`,key:`ptqqvy`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),mb=x(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),hb=x(`step-forward`,[[`path`,{d:`M10.029 4.285A2 2 0 0 0 7 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`1ystz2`}],[`path`,{d:`M3 4v16`,key:`1ph11n`}]]),gb=x(`step-back`,[[`path`,{d:`M13.971 4.285A2 2 0 0 1 17 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z`,key:`19qhus`}],[`path`,{d:`M21 20V4`,key:`cb8qj8`}]]),_b=x(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),vb=x(`sticker`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M10 16s.8 1 2 1c1.3 0 2-1 2-1`,key:`1vvgv3`}]]),yb=x(`sticky-note-check`,[[`path`,{d:`m15 19 2 2 4-4`,key:`1wqv71`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`M21 13V9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6.5`,key:`1onoss`}]]),bb=x(`sticky-note-minus`,[[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`M21 14V9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.35`,key:`g18rj4`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),xb=x(`sticky-note-off`,[[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M3.586 3.586A2 2 0 0 0 3 5v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.414-.586`,key:`12nghy`}],[`path`,{d:`M8.656 3H15a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 21 9v6.344`,key:`134c6x`}]]),Sb=x(`sticky-note-plus`,[[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 12.356V9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.355`,key:`12ish9`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),Cb=x(`sticky-note`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}]]),wb=x(`sticky-note-x`,[[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`m16 16 5 5`,key:`8tpb07`}],[`path`,{d:`M21 12V9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7`,key:`156tez`}],[`path`,{d:`m21 16-5 5`,key:`kplof2`}]]),Tb=x(`stone`,[[`path`,{d:`M11.264 2.205A4 4 0 0 0 6.42 4.211l-4 8a4 4 0 0 0 1.359 5.117l6 4a4 4 0 0 0 4.438 0l6-4a4 4 0 0 0 1.576-4.592l-2-6a4 4 0 0 0-2.53-2.53z`,key:`1si4ox`}],[`path`,{d:`M11.99 22 14 12l7.822 3.184`,key:`1u8to0`}],[`path`,{d:`M14 12 8.47 2.302`,key:`guo3d5`}]]),Eb=x(`sticky-notes`,[[`path`,{d:`M10 8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 16 14v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2z`,key:`19nc0g`}],[`path`,{d:`M10 8v5a1 1 0 0 0 1 1h5`,key:`m3law1`}],[`path`,{d:`M8 4a2 2 0 0 1 2-2h6a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 22 8v6a2 2 0 0 1-2 2`,key:`1iu1qd`}],[`path`,{d:`M16 2v5a1 1 0 0 0 1 1h5`,key:`af171p`}]]),Db=x(`store`,[[`path`,{d:`M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5`,key:`slp6dd`}],[`path`,{d:`M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244`,key:`o0xfot`}],[`path`,{d:`M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05`,key:`wn3emo`}]]),Ob=x(`stretch-horizontal`,[[`rect`,{width:`20`,height:`6`,x:`2`,y:`4`,rx:`2`,key:`qdearl`}],[`rect`,{width:`20`,height:`6`,x:`2`,y:`14`,rx:`2`,key:`1xrn6j`}]]),kb=x(`stretch-vertical`,[[`rect`,{width:`6`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`19qu7m`}],[`rect`,{width:`6`,height:`20`,x:`14`,y:`2`,rx:`2`,key:`24v0nk`}]]),Ab=x(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),jb=x(`subscript`,[[`path`,{d:`m4 5 8 8`,key:`1eunvl`}],[`path`,{d:`m12 5-8 8`,key:`1ah0jp`}],[`path`,{d:`M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07`,key:`e8ta8j`}]]),Mb=x(`sun-dim`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M20 12h.01`,key:`1ykeid`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M4 12h.01`,key:`158zrr`}],[`path`,{d:`M17.657 6.343h.01`,key:`31pqzk`}],[`path`,{d:`M17.657 17.657h.01`,key:`jehnf4`}],[`path`,{d:`M6.343 17.657h.01`,key:`gdk6ow`}],[`path`,{d:`M6.343 6.343h.01`,key:`1uurf0`}]]),Nb=x(`sun-medium`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 3v1`,key:`1asbbs`}],[`path`,{d:`M12 20v1`,key:`1wcdkc`}],[`path`,{d:`M3 12h1`,key:`lp3yf2`}],[`path`,{d:`M20 12h1`,key:`1vloll`}],[`path`,{d:`m18.364 5.636-.707.707`,key:`1hakh0`}],[`path`,{d:`m6.343 17.657-.707.707`,key:`18m9nf`}],[`path`,{d:`m5.636 5.636.707.707`,key:`1xv1c5`}],[`path`,{d:`m17.657 17.657.707.707`,key:`vl76zb`}]]),Pb=x(`sun-moon`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715`,key:`xlf6rm`}],[`path`,{d:`M16 12a4 4 0 0 0-4-4`,key:`6vsxu`}],[`path`,{d:`m19 5-1.256 1.256`,key:`1yg6a6`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}]]),Fb=x(`sun-snow`,[[`path`,{d:`M10 21v-1`,key:`1u8rkd`}],[`path`,{d:`M10 4V3`,key:`pkzwkn`}],[`path`,{d:`M10 9a3 3 0 0 0 0 6`,key:`gv75dk`}],[`path`,{d:`m14 20 1.25-2.5L18 18`,key:`1chtki`}],[`path`,{d:`m14 4 1.25 2.5L18 6`,key:`1b4wsy`}],[`path`,{d:`m17 21-3-6 1.5-3H22`,key:`o5qa3v`}],[`path`,{d:`m17 3-3 6 1.5 3`,key:`11697g`}],[`path`,{d:`M2 12h1`,key:`1uaihz`}],[`path`,{d:`m20 10-1.5 2 1.5 2`,key:`1swlpi`}],[`path`,{d:`m3.64 18.36.7-.7`,key:`105rm9`}],[`path`,{d:`m4.34 6.34-.7-.7`,key:`d3unjp`}]]),Ib=x(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Lb=x(`sunrise`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m4.93 10.93 1.41 1.41`,key:`2a7f42`}],[`path`,{d:`M2 18h2`,key:`j10viu`}],[`path`,{d:`M20 18h2`,key:`wocana`}],[`path`,{d:`m19.07 10.93-1.41 1.41`,key:`15zs5n`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`,key:`1lzouq`}]]),Rb=x(`sunset`,[[`path`,{d:`M12 10V2`,key:`16sf7g`}],[`path`,{d:`m4.93 10.93 1.41 1.41`,key:`2a7f42`}],[`path`,{d:`M2 18h2`,key:`j10viu`}],[`path`,{d:`M20 18h2`,key:`wocana`}],[`path`,{d:`m19.07 10.93-1.41 1.41`,key:`15zs5n`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}],[`path`,{d:`m16 6-4 4-4-4`,key:`6wukr`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`,key:`1lzouq`}]]),zb=x(`superscript`,[[`path`,{d:`m4 19 8-8`,key:`hr47gm`}],[`path`,{d:`m12 19-8-8`,key:`1dhhmo`}],[`path`,{d:`M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06`,key:`1dfcux`}]]),Bb=x(`swatch-book`,[[`path`,{d:`M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z`,key:`1ldrpk`}],[`path`,{d:`M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7`,key:`11i5po`}],[`path`,{d:`M 7 17h.01`,key:`1euzgo`}],[`path`,{d:`m11 8 2.3-2.3a2.4 2.4 0 0 1 3.404.004L18.6 7.6a2.4 2.4 0 0 1 .026 3.434L9.9 19.8`,key:`o2gii7`}]]),Vb=x(`swiss-franc`,[[`path`,{d:`M10 21V3h8`,key:`br2l0g`}],[`path`,{d:`M6 16h9`,key:`2py0wn`}],[`path`,{d:`M10 9.5h7`,key:`13dmhz`}]]),Hb=x(`switch-camera`,[[`path`,{d:`M11 19H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5`,key:`mtk2lu`}],[`path`,{d:`M13 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5`,key:`120jsl`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m18 22-3-3 3-3`,key:`kgdoj7`}],[`path`,{d:`m6 2 3 3-3 3`,key:`1fnbkv`}]]),Ub=x(`swords`,[[`polyline`,{points:`14.5 17.5 3 6 3 3 6 3 17.5 14.5`,key:`1hfsw2`}],[`line`,{x1:`13`,x2:`19`,y1:`19`,y2:`13`,key:`1vrmhu`}],[`line`,{x1:`16`,x2:`20`,y1:`16`,y2:`20`,key:`1bron3`}],[`line`,{x1:`19`,x2:`21`,y1:`21`,y2:`19`,key:`13pww6`}],[`polyline`,{points:`14.5 6.5 18 3 21 3 21 6 17.5 9.5`,key:`hbey2j`}],[`line`,{x1:`5`,x2:`9`,y1:`14`,y2:`18`,key:`1hf58s`}],[`line`,{x1:`7`,x2:`4`,y1:`17`,y2:`20`,key:`pidxm4`}],[`line`,{x1:`3`,x2:`5`,y1:`19`,y2:`21`,key:`1pehsh`}]]),Wb=x(`sword`,[[`path`,{d:`m11 19-6-6`,key:`s7kpr`}],[`path`,{d:`m5 21-2-2`,key:`1kw20b`}],[`path`,{d:`m8 16-4 4`,key:`1oqv8h`}],[`path`,{d:`M9.5 17.5 21 6V3h-3L6.5 14.5`,key:`pkxemp`}]]),Gb=x(`syringe`,[[`path`,{d:`m18 2 4 4`,key:`22kx64`}],[`path`,{d:`m17 7 3-3`,key:`1w1zoj`}],[`path`,{d:`M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5`,key:`1exhtz`}],[`path`,{d:`m9 11 4 4`,key:`rovt3i`}],[`path`,{d:`m5 19-3 3`,key:`59f2uf`}],[`path`,{d:`m14 4 6 6`,key:`yqp9t2`}]]),Kb=x(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),qb=x(`table-cells-merge`,[[`path`,{d:`M12 21v-6`,key:`lihzve`}],[`path`,{d:`M12 9V3`,key:`da5inc`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Jb=x(`table-cells-split`,[[`path`,{d:`M12 15V9`,key:`8c7uyn`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Yb=x(`table-columns-split`,[[`path`,{d:`M14 14v2`,key:`w2a1xv`}],[`path`,{d:`M14 20v2`,key:`1lq872`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M14 8v2`,key:`i67w9a`}],[`path`,{d:`M2 15h8`,key:`82wtch`}],[`path`,{d:`M2 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2`,key:`up0l64`}],[`path`,{d:`M2 9h8`,key:`yelfik`}],[`path`,{d:`M22 15h-4`,key:`1es58f`}],[`path`,{d:`M22 3h-2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2`,key:`pdjoqf`}],[`path`,{d:`M22 9h-4`,key:`1luja7`}],[`path`,{d:`M5 3v18`,key:`14hmio`}]]),Xb=x(`table-of-contents`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M16 12H3`,key:`1a2rj7`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M21 5h.01`,key:`wa75ra`}],[`path`,{d:`M21 12h.01`,key:`msek7k`}],[`path`,{d:`M21 19h.01`,key:`qvbq2j`}]]),Zb=x(`table-properties`,[[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]),Qb=x(`table-rows-split`,[[`path`,{d:`M14 10h2`,key:`1lstlu`}],[`path`,{d:`M15 22v-8`,key:`1fwwgm`}],[`path`,{d:`M15 2v4`,key:`1044rn`}],[`path`,{d:`M2 10h2`,key:`1r8dkt`}],[`path`,{d:`M20 10h2`,key:`1ug425`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}],[`path`,{d:`M3 22v-6a2 2 135 0 1 2-2h14a2 2 45 0 1 2 2v6`,key:`ibqhof`}],[`path`,{d:`M3 2v2a2 2 45 0 0 2 2h14a2 2 135 0 0 2-2V2`,key:`1uenja`}],[`path`,{d:`M8 10h2`,key:`66od0`}],[`path`,{d:`M9 22v-8`,key:`fmnu31`}],[`path`,{d:`M9 2v4`,key:`j1yeou`}]]),$b=x(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),ex=x(`tablet-smartphone`,[[`rect`,{width:`10`,height:`14`,x:`3`,y:`8`,rx:`2`,key:`1vrsiq`}],[`path`,{d:`M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4`,key:`1j4zmg`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}]]),tx=x(`tablet`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]),nx=x(`tablets`,[[`circle`,{cx:`7`,cy:`7`,r:`5`,key:`x29byf`}],[`circle`,{cx:`17`,cy:`17`,r:`5`,key:`1op1d2`}],[`path`,{d:`M12 17h10`,key:`ls21zv`}],[`path`,{d:`m3.46 10.54 7.08-7.08`,key:`1rehiu`}]]),rx=x(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),ix=x(`tags`,[[`path`,{d:`M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z`,key:`16rjxf`}],[`path`,{d:`M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193`,key:`178nd4`}],[`circle`,{cx:`10.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`12ikhr`}]]),ax=x(`tally-1`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),ox=x(`tally-2`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}]]),sx=x(`tally-3`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}],[`path`,{d:`M14 4v16`,key:`12vmem`}]]),cx=x(`tally-4`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}],[`path`,{d:`M14 4v16`,key:`12vmem`}],[`path`,{d:`M19 4v16`,key:`8ij5ei`}]]),lx=x(`tally-5`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}],[`path`,{d:`M14 4v16`,key:`12vmem`}],[`path`,{d:`M19 4v16`,key:`8ij5ei`}],[`path`,{d:`M22 6 2 18`,key:`h9moai`}]]),ux=x(`tangent`,[[`circle`,{cx:`17`,cy:`4`,r:`2`,key:`y5j2s2`}],[`path`,{d:`M15.59 5.41 5.41 15.59`,key:`l0vprr`}],[`circle`,{cx:`4`,cy:`17`,r:`2`,key:`9p4efm`}],[`path`,{d:`M12 22s-4-9-1.5-11.5S22 12 22 12`,key:`1twk4o`}]]),dx=x(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),fx=x(`telescope`,[[`path`,{d:`m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44`,key:`k4qptu`}],[`path`,{d:`m13.56 11.747 4.332-.924`,key:`19l80z`}],[`path`,{d:`m16 21-3.105-6.21`,key:`7oh9d`}],[`path`,{d:`M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z`,key:`m7xp4m`}],[`path`,{d:`m6.158 8.633 1.114 4.456`,key:`74o979`}],[`path`,{d:`m8 21 3.105-6.21`,key:`1fvxut`}],[`circle`,{cx:`12`,cy:`13`,r:`2`,key:`1c1ljs`}]]),px=x(`tent-tree`,[[`circle`,{cx:`4`,cy:`4`,r:`2`,key:`bt5ra8`}],[`path`,{d:`m14 5 3-3 3 3`,key:`1sorif`}],[`path`,{d:`m14 10 3-3 3 3`,key:`1jyi9h`}],[`path`,{d:`M17 14V2`,key:`8ymqnk`}],[`path`,{d:`M17 14H7l-5 8h20Z`,key:`13ar7p`}],[`path`,{d:`M8 14v8`,key:`1ghmqk`}],[`path`,{d:`m9 14 5 8`,key:`13pgi6`}]]),mx=x(`tent`,[[`path`,{d:`M3.5 21 14 3`,key:`1szst5`}],[`path`,{d:`M20.5 21 10 3`,key:`1310c3`}],[`path`,{d:`M15.5 21 12 15l-3.5 6`,key:`1ddtfw`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}]]),hx=x(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),gx=x(`test-tube-diagonal`,[[`path`,{d:`M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3`,key:`1ub6xw`}],[`path`,{d:`m16 2 6 6`,key:`1gw87d`}],[`path`,{d:`M12 16H4`,key:`1cjfip`}]]),_x=x(`test-tube`,[[`path`,{d:`M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2`,key:`125lnx`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}],[`path`,{d:`M14.5 16h-5`,key:`1ox875`}]]),vx=x(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),yx=x(`test-tubes`,[[`path`,{d:`M9 2v17.5A2.5 2.5 0 0 1 6.5 22A2.5 2.5 0 0 1 4 19.5V2`,key:`1hjrqt`}],[`path`,{d:`M20 2v17.5a2.5 2.5 0 0 1-2.5 2.5a2.5 2.5 0 0 1-2.5-2.5V2`,key:`16lc8n`}],[`path`,{d:`M3 2h7`,key:`7s29d5`}],[`path`,{d:`M14 2h7`,key:`7sicin`}],[`path`,{d:`M9 16H4`,key:`1bfye3`}],[`path`,{d:`M20 16h-5`,key:`ddnjpe`}]]),bx=x(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),xx=x(`text-align-justify`,[[`path`,{d:`M3 5h18`,key:`1u36vt`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}]]),Sx=x(`text-cursor-input`,[[`path`,{d:`M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6`,key:`1528k5`}],[`path`,{d:`M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7`,key:`13ksps`}],[`path`,{d:`M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1`,key:`1n9rhb`}],[`path`,{d:`M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1`,key:`1mj8rg`}],[`path`,{d:`M9 6v12`,key:`velyjx`}]]),Cx=x(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),wx=x(`text-cursor`,[[`path`,{d:`M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1`,key:`uvaxm9`}],[`path`,{d:`M7 22h1a4 4 0 0 0 4-4`,key:`1l7xii`}],[`path`,{d:`M7 2h1a4 4 0 0 1 4 4`,key:`1vrvvh`}]]),Tx=x(`text-initial`,[[`path`,{d:`M15 5h6`,key:`1pr8yx`}],[`path`,{d:`M15 12h6`,key:`upa0zy`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}],[`path`,{d:`m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12`,key:`6lvno8`}],[`path`,{d:`M3.92 10h6.16`,key:`1tl8ex`}]]),Ex=x(`text-quote`,[[`path`,{d:`M17 5H3`,key:`1cn7zz`}],[`path`,{d:`M21 12H8`,key:`scolzb`}],[`path`,{d:`M21 19H8`,key:`13qgcb`}],[`path`,{d:`M3 12v7`,key:`1ri8j3`}]]),Dx=x(`text-search`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]),Ox=x(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),kx=x(`theater`,[[`path`,{d:`M2 10s3-3 3-8`,key:`3xiif0`}],[`path`,{d:`M22 10s-3-3-3-8`,key:`ioaa5q`}],[`path`,{d:`M10 2c0 4.4-3.6 8-8 8`,key:`16fkpi`}],[`path`,{d:`M14 2c0 4.4 3.6 8 8 8`,key:`b9eulq`}],[`path`,{d:`M2 10s2 2 2 5`,key:`1au1lb`}],[`path`,{d:`M22 10s-2 2-2 5`,key:`qi2y5e`}],[`path`,{d:`M8 15h8`,key:`45n4r`}],[`path`,{d:`M2 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1`,key:`1vsc2m`}],[`path`,{d:`M14 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1`,key:`hrha4u`}]]),Ax=x(`thermometer-snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`M10.585 15H10`,key:`4nqulp`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z`,key:`yu0u2z`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h2`,key:`1bbqgq`}]]),jx=x(`thermometer-sun`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8a4 4 0 0 0-1.645 7.647`,key:`wz5p04`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z`,key:`yu0u2z`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}]]),Mx=x(`thermometer`,[[`path`,{d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z`,key:`17jzev`}]]),Nx=x(`thumbs-down`,[[`path`,{d:`M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z`,key:`m61m77`}],[`path`,{d:`M17 14V2`,key:`8ymqnk`}]]),Px=x(`thumbs-up`,[[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}],[`path`,{d:`M7 10v12`,key:`1qc93n`}]]),Fx=x(`ticket-check`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ix=x(`ticket-minus`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}]]),Lx=x(`ticket-percent`,[[`path`,{d:`M2 9a3 3 0 1 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 1 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`1l48ns`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M15 15h.01`,key:`lqbp3k`}]]),Rx=x(`ticket-plus`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}],[`path`,{d:`M12 9v6`,key:`199k2o`}]]),zx=x(`ticket-slash`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`m9.5 14.5 5-5`,key:`qviqfa`}]]),Bx=x(`ticket-x`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`m9.5 14.5 5-5`,key:`qviqfa`}],[`path`,{d:`m9.5 9.5 5 5`,key:`18nt4w`}]]),Vx=x(`ticket`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M13 5v2`,key:`dyzc3o`}],[`path`,{d:`M13 17v2`,key:`1ont0d`}],[`path`,{d:`M13 11v2`,key:`1wjjxi`}]]),Hx=x(`tickets-plane`,[[`path`,{d:`M10.5 17h1.227a2 2 0 0 0 1.345-.52L18 12`,key:`16muxl`}],[`path`,{d:`m12 13.5 3.794.506`,key:`6v5z87`}],[`path`,{d:`m3.173 8.18 11-5a2 2 0 0 1 2.647.993L18.56 8`,key:`15hfpj`}],[`path`,{d:`M6 10V8`,key:`1y41hn`}],[`path`,{d:`M6 14v1`,key:`cao2tf`}],[`path`,{d:`M6 19v2`,key:`1loha6`}],[`rect`,{x:`2`,y:`8`,width:`20`,height:`13`,rx:`2`,key:`p3bz5l`}]]),Ux=x(`tickets`,[[`path`,{d:`m3.173 8.18 11-5a2 2 0 0 1 2.647.993L18.56 8`,key:`15hfpj`}],[`path`,{d:`M6 10V8`,key:`1y41hn`}],[`path`,{d:`M6 14v1`,key:`cao2tf`}],[`path`,{d:`M6 19v2`,key:`1loha6`}],[`rect`,{x:`2`,y:`8`,width:`20`,height:`13`,rx:`2`,key:`p3bz5l`}]]),Wx=x(`timeline`,[[`path`,{d:`M4 12h.01`,key:`158zrr`}],[`path`,{d:`M4 16h.01`,key:`jrnfb7`}],[`path`,{d:`M4 20h.01`,key:`orx0iu`}],[`path`,{d:`M4 4h.01`,key:`cieki8`}],[`path`,{d:`M4 8h.01`,key:`43g258`}],[`path`,{d:`M9.414 13.414a2 2 0 0 0 1.414.586H19a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-8.172a2 2 0 0 0-1.414.586L8 12z`,key:`1pvxkf`}],[`path`,{d:`M9.414 21.414a2 2 0 0 0 1.414.586H19a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-8.172a2 2 0 0 0-1.414.586L8 20z`,key:`1k13gh`}],[`path`,{d:`M9.414 5.414A2 2 0 0 0 10.828 6H19a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-8.172a2 2 0 0 0-1.414.586L8 4z`,key:`12x0hd`}]]),Gx=x(`timer-off`,[[`path`,{d:`M10 2h4`,key:`n1abiw`}],[`path`,{d:`M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7`,key:`10he05`}],[`path`,{d:`M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2`,key:`15f7sh`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M12 12v-2`,key:`fwoke6`}]]),Kx=x(`timer-reset`,[[`path`,{d:`M10 2h4`,key:`n1abiw`}],[`path`,{d:`M12 14v-4`,key:`1evpnu`}],[`path`,{d:`M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6`,key:`1ts96g`}],[`path`,{d:`M9 17H4v5`,key:`8t5av`}]]),qx=x(`timer`,[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]),Jx=x(`toggle-left`,[[`circle`,{cx:`9`,cy:`12`,r:`3`,key:`u3jwor`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`7`,key:`g7kal2`}]]),Yx=x(`toggle-right`,[[`circle`,{cx:`15`,cy:`12`,r:`3`,key:`1afu0r`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`7`,key:`g7kal2`}]]),Xx=x(`toilet`,[[`path`,{d:`M7 12h13a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-.598a.5.5 0 0 0-.424.765l1.544 2.47a.5.5 0 0 1-.424.765H5.402a.5.5 0 0 1-.424-.765L7 18`,key:`kc4kqr`}],[`path`,{d:`M8 18a5 5 0 0 1-5-5V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8`,key:`1tqs57`}]]),Zx=x(`tool-case`,[[`path`,{d:`M10 15h4`,key:`192ueg`}],[`path`,{d:`m14.817 10.995-.971-1.45 1.034-1.232a2 2 0 0 0-2.025-3.238l-1.82.364L9.91 3.885a2 2 0 0 0-3.625.748L6.141 6.55l-1.725.426a2 2 0 0 0-.19 3.756l.657.27`,key:`xbnumr`}],[`path`,{d:`m18.822 10.995 2.26-5.38a1 1 0 0 0-.557-1.318L16.954 2.9a1 1 0 0 0-1.281.533l-.924 2.122`,key:`eaw7gc`}],[`path`,{d:`M4 12.006A1 1 0 0 1 4.994 11H19a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z`,key:`1vaooh`}]]),Qx=x(`toolbox`,[[`path`,{d:`M16 12v4`,key:`vf1vip`}],[`path`,{d:`M16 6a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 22 12v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 .586-1.414l4-4A2 2 0 0 1 8 6z`,key:`1h1rvn`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M8 12v4`,key:`1w4uao`}]]),$x=x(`tornado`,[[`path`,{d:`M21 4H3`,key:`1hwok0`}],[`path`,{d:`M18 8H6`,key:`41n648`}],[`path`,{d:`M19 12H9`,key:`1g4lpz`}],[`path`,{d:`M16 16h-6`,key:`1j5d54`}],[`path`,{d:`M11 20H9`,key:`39obr8`}]]),eS=x(`torus`,[[`ellipse`,{cx:`12`,cy:`11`,rx:`3`,ry:`2`,key:`1b2qxu`}],[`ellipse`,{cx:`12`,cy:`12.5`,rx:`10`,ry:`8.5`,key:`h8emeu`}]]),tS=x(`touchpad-off`,[[`path`,{d:`M12 20v-6`,key:`1rm09r`}],[`path`,{d:`M19.656 14H22`,key:`170xzr`}],[`path`,{d:`M2 14h12`,key:`d8icqz`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2`,key:`s23sx2`}],[`path`,{d:`M9.656 4H20a2 2 0 0 1 2 2v10.344`,key:`ovjcvl`}]]),nS=x(`touchpad`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M12 20v-6`,key:`1rm09r`}]]),rS=x(`towel-rack`,[[`path`,{d:`M22 7h-2`,key:`1okbx2`}],[`path`,{d:`M6.5 3h11A2.5 2.5 0 0 1 20 5.5V20a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1V5.5a1 1 0 0 0-5 0V17a1 1 0 0 0 1 1h4`,key:`kc32tg`}],[`path`,{d:`M9 7H2`,key:`ahf7b7`}]]),iS=x(`tower-control`,[[`path`,{d:`M18.2 12.27 20 6H4l1.8 6.27a1 1 0 0 0 .95.73h10.5a1 1 0 0 0 .96-.73Z`,key:`1pledb`}],[`path`,{d:`M8 13v9`,key:`hmv0ci`}],[`path`,{d:`M16 22v-9`,key:`ylnf1u`}],[`path`,{d:`m9 6 1 7`,key:`dpdgam`}],[`path`,{d:`m15 6-1 7`,key:`ls7zgu`}],[`path`,{d:`M12 6V2`,key:`1pj48d`}],[`path`,{d:`M13 2h-2`,key:`mj6ths`}]]),aS=x(`toy-brick`,[[`rect`,{width:`18`,height:`12`,x:`3`,y:`8`,rx:`1`,key:`158fvp`}],[`path`,{d:`M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3`,key:`s0042v`}],[`path`,{d:`M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3`,key:`9wmeh2`}]]),oS=x(`tractor`,[[`path`,{d:`m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20`,key:`she1j9`}],[`path`,{d:`M16 18h-5`,key:`bq60fd`}],[`path`,{d:`M18 5a1 1 0 0 0-1 1v5.573`,key:`1kv8ia`}],[`path`,{d:`M3 4h8.129a1 1 0 0 1 .99.863L13 11.246`,key:`1q1ert`}],[`path`,{d:`M4 11V4`,key:`9ft8pt`}],[`path`,{d:`M7 15h.01`,key:`k5ht0j`}],[`path`,{d:`M8 10.1V4`,key:`1jgyzo`}],[`circle`,{cx:`18`,cy:`18`,r:`2`,key:`1emm8v`}],[`circle`,{cx:`7`,cy:`15`,r:`5`,key:`ddtuc`}]]),sS=x(`traffic-cone`,[[`path`,{d:`M16.05 10.966a5 2.5 0 0 1-8.1 0`,key:`m5jpwb`}],[`path`,{d:`m16.923 14.049 4.48 2.04a1 1 0 0 1 .001 1.831l-8.574 3.9a2 2 0 0 1-1.66 0l-8.574-3.91a1 1 0 0 1 0-1.83l4.484-2.04`,key:`rbg3g8`}],[`path`,{d:`M16.949 14.14a5 2.5 0 1 1-9.9 0L10.063 3.5a2 2 0 0 1 3.874 0z`,key:`vap8c8`}],[`path`,{d:`M9.194 6.57a5 2.5 0 0 0 5.61 0`,key:`15hn5c`}]]),cS=x(`train-front-tunnel`,[[`path`,{d:`M2 22V12a10 10 0 1 1 20 0v10`,key:`o0fyp0`}],[`path`,{d:`M15 6.8v1.4a3 2.8 0 1 1-6 0V6.8`,key:`m8q3n9`}],[`path`,{d:`M10 15h.01`,key:`44in9x`}],[`path`,{d:`M14 15h.01`,key:`5mohn5`}],[`path`,{d:`M10 19a4 4 0 0 1-4-4v-3a6 6 0 1 1 12 0v3a4 4 0 0 1-4 4Z`,key:`hckbmu`}],[`path`,{d:`m9 19-2 3`,key:`iij7hm`}],[`path`,{d:`m15 19 2 3`,key:`npx8sa`}]]),lS=x(`train-front`,[[`path`,{d:`M8 3.1V7a4 4 0 0 0 8 0V3.1`,key:`1v71zp`}],[`path`,{d:`m9 15-1-1`,key:`1yrq24`}],[`path`,{d:`m15 15 1-1`,key:`1t0d6s`}],[`path`,{d:`M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z`,key:`1p0hjs`}],[`path`,{d:`m8 19-2 3`,key:`13i0xs`}],[`path`,{d:`m16 19 2 3`,key:`xo31yx`}]]),uS=x(`train-track`,[[`path`,{d:`M2 17 17 2`,key:`18b09t`}],[`path`,{d:`m2 14 8 8`,key:`1gv9hu`}],[`path`,{d:`m5 11 8 8`,key:`189pqp`}],[`path`,{d:`m8 8 8 8`,key:`1imecy`}],[`path`,{d:`m11 5 8 8`,key:`ummqn6`}],[`path`,{d:`m14 2 8 8`,key:`1vk7dn`}],[`path`,{d:`M7 22 22 7`,key:`15mb1i`}]]),dS=x(`tram-front`,[[`rect`,{width:`16`,height:`16`,x:`4`,y:`3`,rx:`2`,key:`1wxw4b`}],[`path`,{d:`M4 11h16`,key:`mpoxn0`}],[`path`,{d:`M12 3v8`,key:`1h2ygw`}],[`path`,{d:`m8 19-2 3`,key:`13i0xs`}],[`path`,{d:`m18 22-2-3`,key:`1p0ohu`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M16 15h.01`,key:`rnfrdf`}]]),fS=x(`transgender`,[[`path`,{d:`M12 16v6`,key:`c8a4gj`}],[`path`,{d:`M14 20h-4`,key:`m8m19d`}],[`path`,{d:`M18 2h4v4`,key:`1341mj`}],[`path`,{d:`m2 2 7.17 7.17`,key:`13q8l2`}],[`path`,{d:`M2 5.355V2h3.357`,key:`18136r`}],[`path`,{d:`m22 2-7.17 7.17`,key:`1epvy4`}],[`path`,{d:`M8 5 5 8`,key:`mgbjhz`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),pS=x(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),mS=x(`trash`,[[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),hS=x(`tree-deciduous`,[[`path`,{d:`M8 19a4 4 0 0 1-2.24-7.32A3.5 3.5 0 0 1 9 6.03V6a3 3 0 1 1 6 0v.04a3.5 3.5 0 0 1 3.24 5.65A4 4 0 0 1 16 19Z`,key:`oadzkq`}],[`path`,{d:`M12 19v3`,key:`npa21l`}]]),gS=x(`tree-palm`,[[`path`,{d:`M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4`,key:`foxbe7`}],[`path`,{d:`M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3`,key:`18arnh`}],[`path`,{d:`M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35`,key:`ywahnh`}],[`path`,{d:`M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14`,key:`ft0feo`}]]),_S=x(`tree-pine`,[[`path`,{d:`m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z`,key:`cpyugq`}],[`path`,{d:`M12 22v-3`,key:`kmzjlo`}]]),vS=x(`trending-down`,[[`path`,{d:`M16 17h6v-6`,key:`t6n2it`}],[`path`,{d:`m22 17-8.5-8.5-5 5L2 7`,key:`x473p`}]]),yS=x(`trees`,[[`path`,{d:`M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z`,key:`1l6gj6`}],[`path`,{d:`M7 16v6`,key:`1a82de`}],[`path`,{d:`M13 19v3`,key:`13sx9i`}],[`path`,{d:`M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5`,key:`1sj9kv`}]]),bS=x(`trending-up-down`,[[`path`,{d:`M14.828 14.828 21 21`,key:`ar5fw7`}],[`path`,{d:`M21 16v5h-5`,key:`1ck2sf`}],[`path`,{d:`m21 3-9 9-4-4-6 6`,key:`1h02xo`}],[`path`,{d:`M21 8V3h-5`,key:`1qoq8a`}]]),xS=x(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),SS=x(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),CS=x(`triangle-dashed`,[[`path`,{d:`M10.17 4.193a2 2 0 0 1 3.666.013`,key:`pltmmw`}],[`path`,{d:`M14 21h2`,key:`v4qezv`}],[`path`,{d:`m15.874 7.743 1 1.732`,key:`10m0iw`}],[`path`,{d:`m18.849 12.952 1 1.732`,key:`zadnam`}],[`path`,{d:`M21.824 18.18a2 2 0 0 1-1.835 2.824`,key:`fvwuk4`}],[`path`,{d:`M4.024 21a2 2 0 0 1-1.839-2.839`,key:`1e1kah`}],[`path`,{d:`m5.136 12.952-1 1.732`,key:`1u4ldi`}],[`path`,{d:`M8 21h2`,key:`i9zjee`}],[`path`,{d:`m8.102 7.743-1 1.732`,key:`1zzo4u`}]]),wS=x(`triangle-right`,[[`path`,{d:`M22 18a2 2 0 0 1-2 2H3c-1.1 0-1.3-.6-.4-1.3L20.4 4.3c.9-.7 1.6-.4 1.6.7Z`,key:`183wce`}]]),TS=x(`triangle`,[[`path`,{d:`M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z`,key:`14u9p9`}]]),ES=x(`trophy`,[[`path`,{d:`M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978`,key:`1n3hpd`}],[`path`,{d:`M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978`,key:`rfe1zi`}],[`path`,{d:`M18 9h1.5a1 1 0 0 0 0-5H18`,key:`7xy6bh`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6 9H4.5a1 1 0 0 1 0-5H6`,key:`tex48p`}]]),DS=x(`truck-electric`,[[`path`,{d:`M14 19V7a2 2 0 0 0-2-2H9`,key:`15peso`}],[`path`,{d:`M15 19H9`,key:`18q6dt`}],[`path`,{d:`M19 19h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62L18.3 9.38a1 1 0 0 0-.78-.38H14`,key:`1dkp3j`}],[`path`,{d:`M2 13v5a1 1 0 0 0 1 1h2`,key:`pkmmzz`}],[`path`,{d:`M4 3 2.15 5.15a.495.495 0 0 0 .35.86h2.15a.47.47 0 0 1 .35.86L3 9.02`,key:`1n26pd`}],[`circle`,{cx:`17`,cy:`19`,r:`2`,key:`1nxcgd`}],[`circle`,{cx:`7`,cy:`19`,r:`2`,key:`gzo7y7`}]]),OS=x(`truck`,[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),kS=x(`turkish-lira`,[[`path`,{d:`M15 4 5 9`,key:`14bkc9`}],[`path`,{d:`m15 8.5-10 5`,key:`1grtsx`}],[`path`,{d:`M18 12a9 9 0 0 1-9 9V3`,key:`1sst7f`}]]),AS=x(`turntable`,[[`path`,{d:`M10 12.01h.01`,key:`7rp0yl`}],[`path`,{d:`M18 8v4a8 8 0 0 1-1.07 4`,key:`1st48v`}],[`circle`,{cx:`10`,cy:`12`,r:`4`,key:`19levz`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),jS=x(`turtle`,[[`path`,{d:`m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z`,key:`1lbbv7`}],[`path`,{d:`M4.82 7.9 8 10`,key:`m9wose`}],[`path`,{d:`M15.18 7.9 12 10`,key:`p8dp2u`}],[`path`,{d:`M16.93 10H20a2 2 0 0 1 0 4H2`,key:`12nsm7`}]]),MS=x(`tv-minimal-play`,[[`path`,{d:`M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z`,key:`vbtd3f`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}]]),NS=x(`tv-minimal`,[[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}]]),PS=x(`tv`,[[`path`,{d:`m17 2-5 5-5-5`,key:`16satq`}],[`rect`,{width:`20`,height:`15`,x:`2`,y:`7`,rx:`2`,key:`1e6viu`}]]),FS=x(`type-outline`,[[`path`,{d:`M14 16.5a.5.5 0 0 0 .5.5h.5a2 2 0 0 1 0 4H9a2 2 0 0 1 0-4h.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8a2 2 0 0 1-4 0V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z`,key:`1reda3`}]]),IS=x(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),LS=x(`umbrella-off`,[[`path`,{d:`M12 13v7a2 2 0 0 0 4 0`,key:`rpgb42`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M18.656 13h2.336a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-12.07-7.51`,key:`yawknk`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5.961 5.957a10.28 10.28 0 0 0-3.922 5.769A1 1 0 0 0 3 13h10`,key:`5sfalc`}]]),RS=x(`umbrella`,[[`path`,{d:`M12 13v7a2 2 0 0 0 4 0`,key:`rpgb42`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M20.992 13a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-19.923 0A1 1 0 0 0 3 13z`,key:`124nyo`}]]),zS=x(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),BS=x(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),VS=x(`undo-dot`,[[`path`,{d:`M21 17a9 9 0 0 0-15-6.7L3 13`,key:`8mp6z9`}],[`path`,{d:`M3 7v6h6`,key:`1v2h90`}],[`circle`,{cx:`12`,cy:`17`,r:`1`,key:`1ixnty`}]]),HS=x(`unfold-horizontal`,[[`path`,{d:`M16 12h6`,key:`15xry1`}],[`path`,{d:`M8 12H2`,key:`1jqql6`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 15 3-3-3-3`,key:`wjy7rq`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}]]),US=x(`unfold-vertical`,[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m15 5-3-3-3 3`,key:`itvq4r`}]]),WS=x(`undo`,[[`path`,{d:`M3 7v6h6`,key:`1v2h90`}],[`path`,{d:`M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13`,key:`1r6uu6`}]]),GS=x(`ungroup`,[[`rect`,{width:`8`,height:`6`,x:`5`,y:`4`,rx:`1`,key:`nzclkv`}],[`rect`,{width:`8`,height:`6`,x:`11`,y:`14`,rx:`1`,key:`4tytwb`}]]),KS=x(`university`,[[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M18 16h.01`,key:`plv8zi`}],[`path`,{d:`M22 7a1 1 0 0 0-1-1h-2a2 2 0 0 1-1.143-.359L13.143 2.36a2 2 0 0 0-2.286-.001L6.143 5.64A2 2 0 0 1 5 6H3a1 1 0 0 0-1 1v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2z`,key:`1ogmi3`}],[`path`,{d:`M6 12h.01`,key:`c2rlol`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}],[`circle`,{cx:`12`,cy:`10`,r:`2`,key:`1yojzk`}]]),qS=x(`unlink-2`,[[`path`,{d:`M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2`,key:`1re2ne`}]]),JS=x(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]),YS=x(`unplug`,[[`path`,{d:`m19 5 3-3`,key:`yk6iyv`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`,key:`1snsnr`}]]),XS=x(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),ZS=x(`usb`,[[`circle`,{cx:`10`,cy:`7`,r:`1`,key:`dypaad`}],[`circle`,{cx:`4`,cy:`20`,r:`1`,key:`22iqad`}],[`path`,{d:`M4.7 19.3 19 5`,key:`1enqfc`}],[`path`,{d:`m21 3-3 1 2 2Z`,key:`d3ov82`}],[`path`,{d:`M9.26 7.68 5 12l2 5`,key:`1esawj`}],[`path`,{d:`m10 14 5 2 3.5-3.5`,key:`v8oal5`}],[`path`,{d:`m18 12 1-1 1 1-1 1Z`,key:`1bh22v`}]]),QS=x(`user-check`,[[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),$S=x(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),eC=x(`user-minus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),tC=x(`user-key`,[[`path`,{d:`M20 11v6`,key:`d77pzp`}],[`path`,{d:`M20 13h2`,key:`16rner`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`,key:`1yxgtw`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),nC=x(`user-lock`,[[`path`,{d:`M19 16v-2a2 2 0 0 0-4 0v2`,key:`17sujf`}],[`path`,{d:`M9.5 15H7a4 4 0 0 0-4 4v2`,key:`9it25y`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}],[`rect`,{x:`13`,y:`16`,width:`8`,height:`5`,rx:`.899`,key:`ur80nz`}]]),rC=x(`user-pen`,[[`path`,{d:`M11.5 15H7a4 4 0 0 0-4 4v2`,key:`15lzij`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}]]),iC=x(`user-round-check`,[[`path`,{d:`M2 21a8 8 0 0 1 13.292-6`,key:`bjp14o`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}]]),aC=x(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),oC=x(`user-round-key`,[[`path`,{d:`M19 11v6`,key:`rcqigv`}],[`path`,{d:`M19 13h2`,key:`1gch44`}],[`path`,{d:`M2 21a8 8 0 0 1 12.868-6.349`,key:`1lryzn`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`circle`,{cx:`19`,cy:`19`,r:`2`,key:`17f5cg`}]]),sC=x(`user-round-cog`,[[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`M2 21a8 8 0 0 1 10.434-7.62`,key:`1yezr2`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),cC=x(`user-round-minus`,[[`path`,{d:`M2 21a8 8 0 0 1 13.292-6`,key:`bjp14o`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 19h-6`,key:`vcuq98`}]]),lC=x(`user-round-pen`,[[`path`,{d:`M2 21a8 8 0 0 1 10.821-7.487`,key:`1c8h7z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}]]),uC=x(`user-round-search`,[[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M2 21a8 8 0 0 1 10.434-7.62`,key:`1yezr2`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`path`,{d:`m22 22-1.9-1.9`,key:`1e5ubv`}]]),dC=x(`user-round-x`,[[`path`,{d:`M2 21a8 8 0 0 1 11.873-7`,key:`74fkxq`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`m17 17 5 5`,key:`p7ous7`}],[`path`,{d:`m22 17-5 5`,key:`gqnmv0`}]]),fC=x(`user-round-plus`,[[`path`,{d:`M2 21a8 8 0 0 1 13.292-6`,key:`bjp14o`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M22 19h-6`,key:`vcuq98`}]]),pC=x(`user-round`,[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]),mC=x(`user-search`,[[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}],[`path`,{d:`M10.3 15H7a4 4 0 0 0-4 4v2`,key:`3bnktk`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}]]),hC=x(`user-star`,[[`path`,{d:`M16.051 12.616a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z`,key:`1m8t9f`}],[`path`,{d:`M8 15H7a4 4 0 0 0-4 4v2`,key:`l9tmp8`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}]]),gC=x(`user-x`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]),_C=x(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),vC=x(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),yC=x(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),bC=x(`utensils-crossed`,[[`path`,{d:`m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8`,key:`n7qcjb`}],[`path`,{d:`M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7`,key:`d0u48b`}],[`path`,{d:`m2.1 21.8 6.4-6.3`,key:`yn04lh`}],[`path`,{d:`m19 5-7 7`,key:`194lzd`}]]),xC=x(`utensils`,[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]]),SC=x(`utility-pole`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M3 3v2`,key:`9imdir`}],[`path`,{d:`M7 3v2`,key:`n0os7`}],[`path`,{d:`M17 3v2`,key:`1l2re6`}],[`path`,{d:`M21 3v2`,key:`1duuac`}],[`path`,{d:`m19 5-7 7-7-7`,key:`133zxf`}]]),CC=x(`van`,[[`path`,{d:`M13 6v5a1 1 0 0 0 1 1h6.102a1 1 0 0 1 .712.298l.898.91a1 1 0 0 1 .288.702V17a1 1 0 0 1-1 1h-3`,key:`k3s650`}],[`path`,{d:`M5 18H3a1 1 0 0 1-1-1V8a2 2 0 0 1 2-2h12c1.1 0 2.1.8 2.4 1.8l1.176 4.2`,key:`fnd93u`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),wC=x(`variable`,[[`path`,{d:`M8 21s-4-3-4-9 4-9 4-9`,key:`uto9ud`}],[`path`,{d:`M16 3s4 3 4 9-4 9-4 9`,key:`4w2vsq`}],[`line`,{x1:`15`,x2:`9`,y1:`9`,y2:`15`,key:`f7djnv`}],[`line`,{x1:`9`,x2:`15`,y1:`9`,y2:`15`,key:`1shsy8`}]]),TC=x(`vault`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}],[`path`,{d:`m7.9 7.9 2.7 2.7`,key:`hpeyl3`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}],[`path`,{d:`m13.4 10.6 2.7-2.7`,key:`264c1n`}],[`circle`,{cx:`7.5`,cy:`16.5`,r:`.5`,fill:`currentColor`,key:`nkw3mc`}],[`path`,{d:`m7.9 16.1 2.7-2.7`,key:`p81g5e`}],[`circle`,{cx:`16.5`,cy:`16.5`,r:`.5`,fill:`currentColor`,key:`fubopw`}],[`path`,{d:`m13.4 13.4 2.7 2.7`,key:`abhel3`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),EC=x(`vector-square`,[[`path`,{d:`M19.5 7a24 24 0 0 1 0 10`,key:`8n60xe`}],[`path`,{d:`M4.5 7a24 24 0 0 0 0 10`,key:`2lmadr`}],[`path`,{d:`M7 19.5a24 24 0 0 0 10 0`,key:`1q94o2`}],[`path`,{d:`M7 4.5a24 24 0 0 1 10 0`,key:`2z8ypa`}],[`rect`,{x:`17`,y:`17`,width:`5`,height:`5`,rx:`1`,key:`1ac74s`}],[`rect`,{x:`17`,y:`2`,width:`5`,height:`5`,rx:`1`,key:`1e7h5j`}],[`rect`,{x:`2`,y:`17`,width:`5`,height:`5`,rx:`1`,key:`1t4eah`}],[`rect`,{x:`2`,y:`2`,width:`5`,height:`5`,rx:`1`,key:`940dhs`}]]),DC=x(`vegan`,[[`path`,{d:`M16 8q6 0 6-6-6 0-6 6`,key:`qsyyc4`}],[`path`,{d:`M17.41 3.59a10 10 0 1 0 3 3`,key:`41m9h7`}],[`path`,{d:`M2 2a26.6 26.6 0 0 1 10 20c.9-6.82 1.5-9.5 4-14`,key:`qiv7li`}]]),OC=x(`venetian-mask`,[[`path`,{d:`M18 11c-1.5 0-2.5.5-3 2`,key:`1fod00`}],[`path`,{d:`M4 6a2 2 0 0 0-2 2v4a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V8a2 2 0 0 0-2-2h-3a8 8 0 0 0-5 2 8 8 0 0 0-5-2z`,key:`d70hit`}],[`path`,{d:`M6 11c1.5 0 2.5.5 3 2`,key:`136fht`}]]),kC=x(`venus-and-mars`,[[`path`,{d:`M10 20h4`,key:`ni2waw`}],[`path`,{d:`M12 16v6`,key:`c8a4gj`}],[`path`,{d:`M17 2h4v4`,key:`vhe59`}],[`path`,{d:`m21 2-5.46 5.46`,key:`19kypf`}],[`circle`,{cx:`12`,cy:`11`,r:`5`,key:`16gxyc`}]]),AC=x(`venus`,[[`path`,{d:`M12 15v7`,key:`t2xh3l`}],[`path`,{d:`M9 19h6`,key:`456am0`}],[`circle`,{cx:`12`,cy:`9`,r:`6`,key:`1nw4tq`}]]),jC=x(`vibrate`,[[`path`,{d:`m2 8 2 2-2 2 2 2-2 2`,key:`sv1b1`}],[`path`,{d:`m22 8-2 2 2 2-2 2 2 2`,key:`101i4y`}],[`rect`,{width:`8`,height:`14`,x:`8`,y:`5`,rx:`1`,key:`1oyrl4`}]]),MC=x(`vibrate-off`,[[`path`,{d:`m2 8 2 2-2 2 2 2-2 2`,key:`sv1b1`}],[`path`,{d:`m22 8-2 2 2 2-2 2 2 2`,key:`101i4y`}],[`path`,{d:`M8 8v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2`,key:`1hbad5`}],[`path`,{d:`M16 10.34V6c0-.55-.45-1-1-1h-4.34`,key:`1x5tf0`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),NC=x(`video-off`,[[`path`,{d:`M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196`,key:`w8jjjt`}],[`path`,{d:`M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`1xawa7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),PC=x(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),FC=x(`view`,[[`path`,{d:`M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2`,key:`mrq65r`}],[`path`,{d:`M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2`,key:`be3xqs`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0`,key:`11ak4c`}]]),IC=x(`videotape`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`circle`,{cx:`8`,cy:`14`,r:`2`,key:`1k2qr5`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`circle`,{cx:`16`,cy:`14`,r:`2`,key:`14k7lr`}]]),LC=x(`volleyball`,[[`path`,{d:`M11 7a16 16 20 0 1 10.98 4.362`,key:`1mmfx7`}],[`path`,{d:`M12 12a13 13 0 0 1-8.66 5`,key:`14sm5y`}],[`path`,{d:`M16.83 13.634a16 16 0 0 1-9.267 7.328`,key:`j0eyj5`}],[`path`,{d:`M20.66 17A13 13 0 0 0 12 12a13 13 0 0 1 0-10`,key:`qaetsw`}],[`path`,{d:`M8.17 15.366a16 16 0 0 1-1.713-11.69`,key:`17ewdd`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),RC=x(`voicemail`,[[`circle`,{cx:`6`,cy:`12`,r:`4`,key:`1ehtga`}],[`circle`,{cx:`18`,cy:`12`,r:`4`,key:`4vafl8`}],[`line`,{x1:`6`,x2:`18`,y1:`16`,y2:`16`,key:`pmt8us`}]]),zC=x(`volume-1`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}]]),BC=x(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),VC=x(`volume-off`,[[`path`,{d:`M16 9a5 5 0 0 1 .95 2.293`,key:`1fgyg8`}],[`path`,{d:`M19.364 5.636a9 9 0 0 1 1.889 9.96`,key:`l3zxae`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11`,key:`1gbwow`}],[`path`,{d:`M9.828 4.172A.686.686 0 0 1 11 4.657v.686`,key:`s2je0y`}]]),HC=x(`volume-x`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),UC=x(`volume`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}]]),WC=x(`vote`,[[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}],[`path`,{d:`M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z`,key:`1ezoue`}],[`path`,{d:`M22 19H2`,key:`nuriw5`}]]),GC=x(`wallet-cards`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2`,key:`4125el`}],[`path`,{d:`M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21`,key:`1dpki6`}]]),KC=x(`wallet-minimal`,[[`path`,{d:`M17 14h.01`,key:`7oqj8z`}],[`path`,{d:`M7 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14`,key:`u1rqew`}]]),qC=x(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),JC=x(`wallpaper`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`m9 17 6.1-6.1a2 2 0 0 1 2.81.01L22 15`,key:`1sl52q`}],[`circle`,{cx:`8`,cy:`9`,r:`2`,key:`gjzl9d`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]),YC=x(`wand`,[[`path`,{d:`M15 4V2`,key:`z1p9b7`}],[`path`,{d:`M15 16v-2`,key:`px0unx`}],[`path`,{d:`M8 9h2`,key:`1g203m`}],[`path`,{d:`M20 9h2`,key:`19tzq7`}],[`path`,{d:`M17.8 11.8 19 13`,key:`yihg8r`}],[`path`,{d:`M15 9h.01`,key:`x1ddxp`}],[`path`,{d:`M17.8 6.2 19 5`,key:`fd4us0`}],[`path`,{d:`m3 21 9-9`,key:`1jfql5`}],[`path`,{d:`M12.2 6.2 11 5`,key:`i3da3b`}]]),XC=x(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),ZC=x(`warehouse`,[[`path`,{d:`M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11`,key:`pb2vm6`}],[`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z`,key:`doq5xv`}],[`path`,{d:`M6 13h12`,key:`yf64js`}],[`path`,{d:`M6 17h12`,key:`1jwigz`}]]),QC=x(`washing-machine`,[[`path`,{d:`M3 6h3`,key:`155dbl`}],[`path`,{d:`M17 6h.01`,key:`e2y6kg`}],[`rect`,{width:`18`,height:`20`,x:`3`,y:`2`,rx:`2`,key:`od3kk9`}],[`circle`,{cx:`12`,cy:`13`,r:`5`,key:`nlbqau`}],[`path`,{d:`M12 18a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 1 0-5`,key:`17lach`}]]),$C=x(`watch`,[[`path`,{d:`M12 10v2.2l1.6 1`,key:`n3r21l`}],[`path`,{d:`m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05`,key:`18k57s`}],[`path`,{d:`m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05`,key:`16ny36`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}]]),ew=x(`waves-arrow-down`,[[`path`,{d:`M12 10L12 2`,key:`jvb0aw`}],[`path`,{d:`M16 6L12 10L8 6`,key:`9j6vje`}],[`path`,{d:`M2 15C2.6 15.5 3.2 16 4.5 16C7 16 7 14 9.5 14C12.1 14 11.9 16 14.5 16C17 16 17 14 19.5 14C20.8 14 21.4 14.5 22 15`,key:`s2zepw`}],[`path`,{d:`M2 21C2.6 21.5 3.2 22 4.5 22C7 22 7 20 9.5 20C12.1 20 11.9 22 14.5 22C17 22 17 20 19.5 20C20.8 20 21.4 20.5 22 21`,key:`u68omc`}]]),tw=x(`waves-arrow-up`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`M2 15c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1p9f19`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`vbxynw`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]),nw=x(`waves-horizontal`,[[`path`,{d:`M2 12q2.5 2 5 0t5 0 5 0 5 0`,key:`8ddzzs`}],[`path`,{d:`M2 19q2.5 2 5 0t5 0 5 0 5 0`,key:`1wj4st`}],[`path`,{d:`M2 5q2.5 2 5 0t5 0 5 0 5 0`,key:`69x50u`}]]),rw=x(`waves-ladder`,[[`path`,{d:`M19 5a2 2 0 0 0-2 2v11`,key:`s41o68`}],[`path`,{d:`M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`rd2r6e`}],[`path`,{d:`M7 13h10`,key:`1rwob1`}],[`path`,{d:`M7 9h10`,key:`12czzb`}],[`path`,{d:`M9 5a2 2 0 0 0-2 2v11`,key:`x0q4gh`}]]),iw=x(`waves-vertical`,[[`path`,{d:`M12 2q2 2.5 0 5t0 5 0 5 0 5`,key:`13jdbg`}],[`path`,{d:`M19 2q2 2.5 0 5t0 5 0 5 0 5`,key:`1ozhzu`}],[`path`,{d:`M5 2q2 2.5 0 5t0 5 0 5 0 5`,key:`1bi6v5`}]]),aw=x(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),ow=x(`webcam`,[[`circle`,{cx:`12`,cy:`10`,r:`8`,key:`1gshiw`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 22h10`,key:`10w4w3`}],[`path`,{d:`M12 22v-4`,key:`1utk9m`}]]),sw=x(`webhook-off`,[[`path`,{d:`M17 17h-5c-1.09-.02-1.94.92-2.5 1.9A3 3 0 1 1 2.57 15`,key:`1tvl6x`}],[`path`,{d:`M9 3.4a4 4 0 0 1 6.52.66`,key:`q04jfq`}],[`path`,{d:`m6 17 3.1-5.8a2.5 2.5 0 0 0 .057-2.05`,key:`azowf0`}],[`path`,{d:`M20.3 20.3a4 4 0 0 1-2.3.7`,key:`5joiws`}],[`path`,{d:`M18.6 13a4 4 0 0 1 3.357 3.414`,key:`cangb8`}],[`path`,{d:`m12 6 .6 1`,key:`tpjl1n`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),cw=x(`webhook`,[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,key:`q3hayz`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,key:`1go1hn`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,key:`qlwsc0`}]]),lw=x(`weight-tilde`,[[`path`,{d:`M6.5 8a2 2 0 0 0-1.906 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8z`,key:`1wl739`}],[`path`,{d:`M7.999 15a2.5 2.5 0 0 1 4 0 2.5 2.5 0 0 0 4 0`,key:`1egezo`}],[`circle`,{cx:`12`,cy:`5`,r:`3`,key:`rqqgnr`}]]),uw=x(`weight`,[[`circle`,{cx:`12`,cy:`5`,r:`3`,key:`rqqgnr`}],[`path`,{d:`M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z`,key:`56o5sh`}]]),dw=x(`wheat-off`,[[`path`,{d:`m2 22 10-10`,key:`28ilpk`}],[`path`,{d:`m16 8-1.17 1.17`,key:`1qqm82`}],[`path`,{d:`M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z`,key:`1rdhi6`}],[`path`,{d:`m8 8-.53.53a3.5 3.5 0 0 0 0 4.94L9 15l1.53-1.53c.55-.55.88-1.25.98-1.97`,key:`4wz8re`}],[`path`,{d:`M10.91 5.26c.15-.26.34-.51.56-.73L13 3l1.53 1.53a3.5 3.5 0 0 1 .28 4.62`,key:`rves66`}],[`path`,{d:`M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z`,key:`19rau1`}],[`path`,{d:`M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z`,key:`tc8ph9`}],[`path`,{d:`m16 16-.53.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.49 3.49 0 0 1 1.97-.98`,key:`ak46r`}],[`path`,{d:`M18.74 13.09c.26-.15.51-.34.73-.56L21 11l-1.53-1.53a3.5 3.5 0 0 0-4.62-.28`,key:`1tw520`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),fw=x(`wheat`,[[`path`,{d:`M2 22 16 8`,key:`60hf96`}],[`path`,{d:`M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z`,key:`1rdhi6`}],[`path`,{d:`M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z`,key:`1sdzmb`}],[`path`,{d:`M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z`,key:`eoatbi`}],[`path`,{d:`M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z`,key:`19rau1`}],[`path`,{d:`M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z`,key:`tc8ph9`}],[`path`,{d:`M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z`,key:`2m8kc5`}],[`path`,{d:`M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z`,key:`vex3ng`}]]),pw=x(`wifi-cog`,[[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`M2 7.82a15 15 0 0 1 20 0`,key:`1ovjuk`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`path`,{d:`M5 11.858a10 10 0 0 1 11.5-1.785`,key:`3sn16i`}],[`path`,{d:`M8.5 15.429a5 5 0 0 1 2.413-1.31`,key:`1pxovh`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),mw=x(`whole-word`,[[`circle`,{cx:`7`,cy:`12`,r:`3`,key:`12clwm`}],[`path`,{d:`M10 9v6`,key:`17i7lo`}],[`circle`,{cx:`17`,cy:`12`,r:`3`,key:`gl7c2s`}],[`path`,{d:`M14 7v8`,key:`dl84cr`}],[`path`,{d:`M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1`,key:`lt2kga`}]]),hw=x(`wifi-high`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),gw=x(`wifi-low`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),_w=x(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),vw=x(`wifi-pen`,[[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`path`,{d:`M5 12.859a10 10 0 0 1 10.5-2.222`,key:`rpb7oy`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 3-1.406`,key:`r8bmzl`}]]),yw=x(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),bw=x(`wifi-sync`,[[`path`,{d:`M11.965 10.105v4L13.5 12.5a5 5 0 0 1 8 1.5`,key:`1immaq`}],[`path`,{d:`M11.965 14.105h4`,key:`uejny8`}],[`path`,{d:`M17.965 18.105h4L20.43 19.71a5 5 0 0 1-8-1.5`,key:`1i3a7e`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M21.965 22.105v-4`,key:`1ku6vx`}],[`path`,{d:`M5 12.86a10 10 0 0 1 3-2.032`,key:`pemdtu`}],[`path`,{d:`M8.5 16.429h.01`,key:`2bm739`}]]),xw=x(`wifi-zero`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}]]),Sw=x(`wind-arrow-down`,[[`path`,{d:`M10 2v8`,key:`d4bbey`}],[`path`,{d:`M12.8 21.6A2 2 0 1 0 14 18H2`,key:`19kp1d`}],[`path`,{d:`M17.5 10a2.5 2.5 0 1 1 2 4H2`,key:`19kpjc`}],[`path`,{d:`m6 6 4 4 4-4`,key:`k13n16`}]]),Cw=x(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),ww=x(`wine-off`,[[`path`,{d:`M8 22h8`,key:`rmew8v`}],[`path`,{d:`M7 10h3m7 0h-1.343`,key:`v48bem`}],[`path`,{d:`M12 15v7`,key:`t2xh3l`}],[`path`,{d:`M7.307 7.307A12.33 12.33 0 0 0 7 10a5 5 0 0 0 7.391 4.391M8.638 2.981C8.75 2.668 8.872 2.34 9 2h6c1.5 4 2 6 2 8 0 .407-.05.809-.145 1.198`,key:`1ymjlu`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Tw=x(`wine`,[[`path`,{d:`M8 22h8`,key:`rmew8v`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`M12 15v7`,key:`t2xh3l`}],[`path`,{d:`M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z`,key:`10ffi3`}]]),Ew=x(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Dw=x(`worm`,[[`path`,{d:`m19 12-1.5 3`,key:`9bcu4o`}],[`path`,{d:`M19.63 18.81 22 20`,key:`121v98`}],[`path`,{d:`M6.47 8.23a1.68 1.68 0 0 1 2.44 1.93l-.64 2.08a6.76 6.76 0 0 0 10.16 7.67l.42-.27a1 1 0 1 0-2.73-4.21l-.42.27a1.76 1.76 0 0 1-2.63-1.99l.64-2.08A6.66 6.66 0 0 0 3.94 3.9l-.7.4a1 1 0 1 0 2.55 4.34z`,key:`1tij6q`}]]),Ow=x(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),kw=x(`x-line-top`,[[`path`,{d:`M18 4H6`,key:`1hsngl`}],[`path`,{d:`M18 8 6 20`,key:`xspwia`}],[`path`,{d:`m6 8 12 12`,key:`qb1veh`}]]),Aw=x(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),jw=x(`zap-off`,[[`path`,{d:`M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317`,key:`193nxd`}],[`path`,{d:`M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773`,key:`27a7lr`}],[`path`,{d:`M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643`,key:`1e0qe9`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Mw=x(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),Nw=x(`zodiac-aquarius`,[[`path`,{d:`m2 10 2.456-3.684a.7.7 0 0 1 1.106-.013l2.39 3.413a.7.7 0 0 0 1.096-.001l2.402-3.432a.7.7 0 0 1 1.098 0l2.402 3.432a.7.7 0 0 0 1.098 0l2.389-3.413a.7.7 0 0 1 1.106.013L22 10`,key:`1o8iok`}],[`path`,{d:`m2 18.002 2.456-3.684a.7.7 0 0 1 1.106-.013l2.39 3.413a.7.7 0 0 0 1.097 0l2.402-3.432a.7.7 0 0 1 1.098 0l2.402 3.432a.7.7 0 0 0 1.098 0l2.389-3.413a.7.7 0 0 1 1.106.013L22 18.002`,key:`112qy7`}]]),Pw=x(`zodiac-cancer`,[[`path`,{d:`M21 14.5A9 6.5 0 0 1 5.5 19`,key:`1xj2o6`}],[`path`,{d:`M3 9.5A9 6.5 0 0 1 18.5 5`,key:`1gln3t`}],[`circle`,{cx:`17.5`,cy:`14.5`,r:`3.5`,key:`1ccu1t`}],[`circle`,{cx:`6.5`,cy:`9.5`,r:`3.5`,key:`x5tc2d`}]]),Fw=x(`zodiac-aries`,[[`path`,{d:`M12 7.5a4.5 4.5 0 1 1 5 4.5`,key:`k987hv`}],[`path`,{d:`M7 12a4.5 4.5 0 1 1 5-4.5V21`,key:`mjup0w`}]]),Iw=x(`zodiac-gemini`,[[`path`,{d:`M16 4.525v14.948`,key:`bgoxo0`}],[`path`,{d:`M20 3A17 17 0 0 1 4 3`,key:`1djemw`}],[`path`,{d:`M4 21a17 17 0 0 1 16 0`,key:`onoyo7`}],[`path`,{d:`M8 4.525v14.948`,key:`u5iyof`}]]),Lw=x(`zodiac-capricorn`,[[`path`,{d:`M11 21a3 3 0 0 0 3-3V6.5a1 1 0 0 0-7 0`,key:`1kkncs`}],[`path`,{d:`M7 19V6a3 3 0 0 0-3-3h0`,key:`1jg5y1`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]),Rw=x(`zodiac-leo`,[[`path`,{d:`M10 16c0-4-3-4.5-3-8a5 5 0 0 1 10 0c0 3.466-3 6.196-3 10a3 3 0 0 0 6 0`,key:`1qj6nb`}],[`circle`,{cx:`7`,cy:`16`,r:`3`,key:`yyv3zl`}]]),zw=x(`zodiac-ophiuchus`,[[`path`,{d:`M3 10A6.06 6.06 0 0 1 12 10 A6.06 6.06 0 0 0 21 10`,key:`13lfmc`}],[`path`,{d:`M6 3v12a6 6 0 0 0 12 0V3`,key:`1jnivp`}]]),Bw=x(`zodiac-libra`,[[`path`,{d:`M3 16h6.857c.162-.012.19-.323.038-.38a6 6 0 1 1 4.212 0c-.153.057-.125.368.038.38H21`,key:`1novf0`}],[`path`,{d:`M3 20h18`,key:`1l19wn`}]]),Vw=x(`zodiac-pisces`,[[`path`,{d:`M19 21a15 15 0 0 1 0-18`,key:`br2vug`}],[`path`,{d:`M20 12H4`,key:`1mtusc`}],[`path`,{d:`M5 3a15 15 0 0 1 0 18`,key:`1w7hae`}]]),Hw=x(`zodiac-sagittarius`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M21 3 3 21`,key:`1011np`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),Uw=x(`zodiac-scorpio`,[[`path`,{d:`M10 19V5.5a1 1 0 0 1 5 0V17a2 2 0 0 0 2 2h5l-3-3`,key:`1w8g0z`}],[`path`,{d:`m22 19-3 3`,key:`1ix4wq`}],[`path`,{d:`M5 19V5.5a1 1 0 0 1 5 0`,key:`1d4oa3`}],[`path`,{d:`M5 5.5A2.5 2.5 0 0 0 2.5 3`,key:`gp646f`}]]),Ww=x(`zodiac-taurus`,[[`circle`,{cx:`12`,cy:`15`,r:`6`,key:`lhqcmb`}],[`path`,{d:`M18 3A6 6 0 0 1 6 3`,key:`1p399e`}]]),Gw=x(`zodiac-virgo`,[[`path`,{d:`M11 5.5a1 1 0 0 1 5 0V16a5 5 0 0 0 5 5`,key:`1szkuh`}],[`path`,{d:`M16 11.5a1 1 0 0 1 5 0V16a5 5 0 0 1-5 5`,key:`pyq0k2`}],[`path`,{d:`M6 19V6a3 3 0 0 0-3-3h0`,key:`pvee4g`}],[`path`,{d:`M6 5.5a1 1 0 0 1 5 0V19`,key:`vncctg`}]]),Kw=x(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),qw=x(`zoom-out`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),Jw=t({AArrowDown:()=>Xe,AArrowUp:()=>Ze,ALargeSmall:()=>Qe,Accessibility:()=>$e,Activity:()=>et,AirVent:()=>tt,Airplay:()=>nt,AlarmClock:()=>ct,AlarmClockCheck:()=>rt,AlarmClockMinus:()=>it,AlarmClockOff:()=>at,AlarmClockPlus:()=>ot,AlarmSmoke:()=>st,Album:()=>lt,AlignCenterHorizontal:()=>ut,AlignCenterVertical:()=>dt,AlignEndHorizontal:()=>ft,AlignEndVertical:()=>pt,AlignHorizontalDistributeCenter:()=>mt,AlignHorizontalDistributeEnd:()=>ht,AlignHorizontalDistributeStart:()=>gt,AlignHorizontalJustifyCenter:()=>_t,AlignHorizontalJustifyEnd:()=>vt,AlignHorizontalJustifyStart:()=>yt,AlignHorizontalSpaceAround:()=>bt,AlignHorizontalSpaceBetween:()=>xt,AlignStartHorizontal:()=>St,AlignStartVertical:()=>Ct,AlignVerticalDistributeCenter:()=>wt,AlignVerticalDistributeEnd:()=>Tt,AlignVerticalDistributeStart:()=>Et,AlignVerticalJustifyCenter:()=>Dt,AlignVerticalJustifyEnd:()=>Ot,AlignVerticalJustifyStart:()=>kt,AlignVerticalSpaceAround:()=>At,AlignVerticalSpaceBetween:()=>jt,Ambulance:()=>Mt,Ampersand:()=>Nt,Ampersands:()=>It,Amphora:()=>Pt,Anchor:()=>Ft,Angry:()=>Lt,Annoyed:()=>Rt,Antenna:()=>Bt,Anvil:()=>zt,Aperture:()=>Vt,AppWindow:()=>Ut,AppWindowMac:()=>Ht,Apple:()=>Wt,Archive:()=>qt,ArchiveRestore:()=>Gt,ArchiveX:()=>Kt,Armchair:()=>Jt,ArrowBigDown:()=>Xt,ArrowBigDownDash:()=>Yt,ArrowBigLeft:()=>Qt,ArrowBigLeftDash:()=>Zt,ArrowBigRight:()=>en,ArrowBigRightDash:()=>$t,ArrowBigUp:()=>nn,ArrowBigUpDash:()=>tn,ArrowDown:()=>hn,ArrowDown01:()=>rn,ArrowDown10:()=>an,ArrowDownAZ:()=>sn,ArrowDownFromLine:()=>on,ArrowDownLeft:()=>cn,ArrowDownNarrowWide:()=>ln,ArrowDownRight:()=>un,ArrowDownToDot:()=>dn,ArrowDownToLine:()=>fn,ArrowDownUp:()=>pn,ArrowDownWideNarrow:()=>eee,ArrowDownZA:()=>mn,ArrowLeft:()=>yn,ArrowLeftFromLine:()=>gn,ArrowLeftRight:()=>_n,ArrowLeftToLine:()=>vn,ArrowRight:()=>bn,ArrowRightFromLine:()=>tee,ArrowRightLeft:()=>nee,ArrowRightToLine:()=>ree,ArrowUp:()=>jn,ArrowUp01:()=>iee,ArrowUp10:()=>aee,ArrowUpAZ:()=>xn,ArrowUpDown:()=>Sn,ArrowUpFromDot:()=>Cn,ArrowUpFromLine:()=>wn,ArrowUpLeft:()=>Tn,ArrowUpNarrowWide:()=>En,ArrowUpRight:()=>Dn,ArrowUpToLine:()=>On,ArrowUpWideNarrow:()=>kn,ArrowUpZA:()=>An,ArrowsUpFromLine:()=>Mn,Asterisk:()=>Nn,Astroid:()=>Pn,AtSign:()=>Fn,Atom:()=>In,AudioLines:()=>Ln,AudioWaveform:()=>Rn,Award:()=>zn,Axe:()=>Bn,Axis3d:()=>Vn,Baby:()=>Gn,Backpack:()=>Un,Badge:()=>sr,BadgeAlert:()=>Hn,BadgeCent:()=>Wn,BadgeCheck:()=>Kn,BadgeDollarSign:()=>qn,BadgeEuro:()=>Jn,BadgeIndianRupee:()=>Yn,BadgeInfo:()=>Xn,BadgeJapaneseYen:()=>Zn,BadgeMinus:()=>Qn,BadgePercent:()=>$n,BadgePlus:()=>tr,BadgePoundSterling:()=>er,BadgeQuestionMark:()=>nr,BadgeRussianRuble:()=>rr,BadgeSwissFranc:()=>ar,BadgeTurkishLira:()=>ir,BadgeX:()=>or,BaggageClaim:()=>lr,Balloon:()=>cr,Ban:()=>dr,Banana:()=>mr,Bandage:()=>ur,Banknote:()=>gr,BanknoteArrowDown:()=>fr,BanknoteArrowUp:()=>pr,BanknoteX:()=>hr,Barcode:()=>_r,Barrel:()=>yr,Baseline:()=>vr,Bath:()=>br,Battery:()=>Er,BatteryCharging:()=>xr,BatteryFull:()=>Cr,BatteryLow:()=>wr,BatteryMedium:()=>Sr,BatteryPlus:()=>Tr,BatteryWarning:()=>Dr,Beaker:()=>Or,Bean:()=>Ar,BeanOff:()=>kr,Bed:()=>Mr,BedDouble:()=>jr,BedSingle:()=>Nr,Beef:()=>Fr,BeefOff:()=>Pr,Beer:()=>Lr,BeerOff:()=>Ir,Bell:()=>Gr,BellCheck:()=>Rr,BellDot:()=>zr,BellElectric:()=>Br,BellMinus:()=>Vr,BellOff:()=>Hr,BellPlus:()=>Ur,BellRing:()=>Wr,BetweenHorizontalEnd:()=>Kr,BetweenHorizontalStart:()=>Yr,BetweenVerticalEnd:()=>qr,BetweenVerticalStart:()=>Jr,BicepsFlexed:()=>Xr,Bike:()=>Qr,Binary:()=>Zr,Binoculars:()=>$r,Biohazard:()=>ei,Bird:()=>ti,Birdhouse:()=>ni,Bitcoin:()=>ri,Blend:()=>ii,Blender:()=>ai,Blinds:()=>oi,Blocks:()=>si,Bluetooth:()=>di,BluetoothConnected:()=>ci,BluetoothOff:()=>li,BluetoothSearching:()=>ui,Bold:()=>fi,Bolt:()=>pi,Bomb:()=>mi,Bone:()=>vi,Book:()=>Tee,BookA:()=>hi,BookAlert:()=>gi,BookAudio:()=>_i,BookCheck:()=>bi,BookCopy:()=>yi,BookDashed:()=>oee,BookDown:()=>see,BookHeadphones:()=>lee,BookHeart:()=>cee,BookImage:()=>uee,BookKey:()=>dee,BookLock:()=>fee,BookMarked:()=>pee,BookMinus:()=>mee,BookOpen:()=>xi,BookOpenCheck:()=>hee,BookOpenText:()=>gee,BookPlus:()=>_ee,BookSearch:()=>vee,BookText:()=>yee,BookType:()=>bee,BookUp:()=>See,BookUp2:()=>xee,BookUser:()=>Cee,BookX:()=>wee,Bookmark:()=>Si,BookmarkCheck:()=>Eee,BookmarkMinus:()=>Dee,BookmarkOff:()=>Oee,BookmarkPlus:()=>kee,BookmarkX:()=>Aee,BoomBox:()=>jee,Bot:()=>Ci,BotMessageSquare:()=>Mee,BotOff:()=>Nee,BottleWine:()=>Pee,BowArrow:()=>Fee,Box:()=>wi,Boxes:()=>Iee,Braces:()=>Ti,Brackets:()=>Lee,Brain:()=>Ei,BrainCircuit:()=>Ree,BrainCog:()=>zee,BrickWall:()=>Hee,BrickWallFire:()=>Bee,BrickWallShield:()=>Vee,Briefcase:()=>Kee,BriefcaseBusiness:()=>Uee,BriefcaseConveyorBelt:()=>Gee,BriefcaseMedical:()=>Wee,BringToFront:()=>qee,Broccoli:()=>Jee,Brush:()=>Yee,BrushCleaning:()=>Xee,Bubbles:()=>Di,Bug:()=>Ai,BugOff:()=>ki,BugPlay:()=>Oi,Building:()=>Mi,Building2:()=>ji,Bus:()=>Pi,BusFront:()=>Ni,Cable:()=>Li,CableCar:()=>Ii,Cake:()=>Ri,CakeSlice:()=>Fi,Calculator:()=>zi,Calendar:()=>oa,Calendar1:()=>Bi,CalendarArrowDown:()=>Vi,CalendarArrowUp:()=>Hi,CalendarCheck:()=>Wi,CalendarCheck2:()=>Ui,CalendarClock:()=>Ki,CalendarCog:()=>Gi,CalendarDays:()=>qi,CalendarFold:()=>Ji,CalendarHeart:()=>Yi,CalendarMinus:()=>Zi,CalendarMinus2:()=>Xi,CalendarOff:()=>Qi,CalendarPlus:()=>ea,CalendarPlus2:()=>$i,CalendarRange:()=>ta,CalendarSearch:()=>na,CalendarSync:()=>ra,CalendarX:()=>aa,CalendarX2:()=>ia,Calendars:()=>sa,Camera:()=>ca,CameraOff:()=>la,Candy:()=>fa,CandyCane:()=>da,CandyOff:()=>ua,Cannabis:()=>ma,CannabisOff:()=>pa,Captions:()=>ga,CaptionsOff:()=>ha,Car:()=>ya,CarFront:()=>_a,CarTaxiFront:()=>va,Caravan:()=>ba,CardSim:()=>xa,Carrot:()=>Sa,CaseLower:()=>Ca,CaseSensitive:()=>wa,CaseUpper:()=>Ta,CassetteTape:()=>Ea,Cast:()=>Da,Castle:()=>Oa,Cat:()=>ka,Cctv:()=>Aa,CctvOff:()=>Ma,ChartArea:()=>ja,ChartBar:()=>Ia,ChartBarBig:()=>Na,ChartBarDecreasing:()=>Pa,ChartBarIncreasing:()=>Fa,ChartBarStacked:()=>La,ChartCandlestick:()=>Ra,ChartColumn:()=>Ua,ChartColumnBig:()=>za,ChartColumnDecreasing:()=>Ba,ChartColumnIncreasing:()=>Va,ChartColumnStacked:()=>Ha,ChartGantt:()=>Wa,ChartLine:()=>Ga,ChartNetwork:()=>Ka,ChartNoAxesColumn:()=>Ya,ChartNoAxesColumnDecreasing:()=>qa,ChartNoAxesColumnIncreasing:()=>Ja,ChartNoAxesCombined:()=>Xa,ChartNoAxesGantt:()=>Za,ChartPie:()=>Qa,ChartScatter:()=>$a,ChartSpline:()=>eo,Check:()=>S,CheckCheck:()=>to,CheckLine:()=>no,ChefHat:()=>ro,Cherry:()=>io,ChessBishop:()=>ao,ChessKing:()=>oo,ChessKnight:()=>so,ChessPawn:()=>co,ChessQueen:()=>lo,ChessRook:()=>uo,ChevronDown:()=>fo,ChevronFirst:()=>po,ChevronLast:()=>mo,ChevronLeft:()=>ho,ChevronRight:()=>go,ChevronUp:()=>_o,ChevronsDown:()=>yo,ChevronsDownUp:()=>vo,ChevronsLeft:()=>So,ChevronsLeftRight:()=>bo,ChevronsLeftRightEllipsis:()=>xo,ChevronsRight:()=>wo,ChevronsRightLeft:()=>Co,ChevronsUp:()=>Eo,ChevronsUpDown:()=>To,Church:()=>Do,Cigarette:()=>ko,CigaretteOff:()=>Oo,Circle:()=>xs,CircleAlert:()=>Ao,CircleArrowDown:()=>jo,CircleArrowLeft:()=>Mo,CircleArrowOutDownLeft:()=>No,CircleArrowOutDownRight:()=>Po,CircleArrowOutUpLeft:()=>Fo,CircleArrowOutUpRight:()=>Io,CircleArrowRight:()=>Lo,CircleArrowUp:()=>Ro,CircleCheck:()=>Bo,CircleCheckBig:()=>zo,CircleChevronDown:()=>Ho,CircleChevronLeft:()=>Vo,CircleChevronRight:()=>Uo,CircleChevronUp:()=>Wo,CircleDashed:()=>Go,CircleDivide:()=>Ko,CircleDollarSign:()=>qo,CircleDot:()=>Yo,CircleDotDashed:()=>Jo,CircleEllipsis:()=>Xo,CircleEqual:()=>Zo,CircleFadingArrowUp:()=>Qo,CircleFadingPlus:()=>$o,CircleGauge:()=>es,CircleMinus:()=>ts,CircleOff:()=>ns,CircleParking:()=>is,CircleParkingOff:()=>rs,CirclePause:()=>as,CirclePercent:()=>ss,CirclePile:()=>os,CirclePlay:()=>cs,CirclePlus:()=>ls,CirclePoundSterling:()=>us,CirclePower:()=>ds,CircleQuestionMark:()=>fs,CircleSlash:()=>ms,CircleSlash2:()=>ps,CircleSmall:()=>hs,CircleStar:()=>gs,CircleStop:()=>_s,CircleUser:()=>ys,CircleUserRound:()=>vs,CircleX:()=>bs,CircuitBoard:()=>Ss,Citrus:()=>Cs,Clapperboard:()=>ws,Clipboard:()=>Is,ClipboardCheck:()=>Ts,ClipboardClock:()=>Es,ClipboardCopy:()=>Ds,ClipboardList:()=>Os,ClipboardMinus:()=>ks,ClipboardPaste:()=>As,ClipboardPen:()=>Ms,ClipboardPenLine:()=>js,ClipboardPlus:()=>Ns,ClipboardType:()=>Ps,ClipboardX:()=>Fs,Clock:()=>tc,Clock1:()=>Ls,Clock10:()=>Rs,Clock11:()=>zs,Clock12:()=>Bs,Clock2:()=>Vs,Clock3:()=>Hs,Clock4:()=>Us,Clock5:()=>Ws,Clock6:()=>Gs,Clock7:()=>Ks,Clock8:()=>qs,Clock9:()=>Js,ClockAlert:()=>Ys,ClockArrowDown:()=>Xs,ClockArrowUp:()=>Zs,ClockCheck:()=>Qs,ClockFading:()=>$s,ClockPlus:()=>ec,ClosedCaption:()=>nc,Cloud:()=>Sc,CloudAlert:()=>rc,CloudBackup:()=>ic,CloudCheck:()=>ac,CloudCog:()=>oc,CloudDownload:()=>sc,CloudDrizzle:()=>cc,CloudFog:()=>lc,CloudHail:()=>uc,CloudLightning:()=>dc,CloudMoon:()=>pc,CloudMoonRain:()=>fc,CloudOff:()=>mc,CloudRain:()=>gc,CloudRainWind:()=>hc,CloudSnow:()=>_c,CloudSun:()=>bc,CloudSunRain:()=>vc,CloudSync:()=>yc,CloudUpload:()=>xc,Cloudy:()=>Cc,Clover:()=>wc,Club:()=>Tc,Code:()=>Dc,CodeXml:()=>Ec,Coffee:()=>Oc,Cog:()=>kc,Coins:()=>Ac,Columns2:()=>jc,Columns3:()=>Nc,Columns3Cog:()=>Mc,Columns4:()=>Pc,Combine:()=>Fc,Command:()=>Ic,Compass:()=>Lc,Component:()=>Rc,Computer:()=>zc,ConciergeBell:()=>Bc,Cone:()=>Vc,Construction:()=>Hc,Contact:()=>Wc,ContactRound:()=>Uc,Container:()=>Gc,Contrast:()=>Kc,Cookie:()=>qc,CookingPot:()=>Jc,Copy:()=>tl,CopyCheck:()=>Yc,CopyMinus:()=>Xc,CopyPlus:()=>Zc,CopySlash:()=>$c,CopyX:()=>Qc,Copyleft:()=>el,Copyright:()=>nl,CornerDownLeft:()=>rl,CornerDownRight:()=>il,CornerLeftDown:()=>al,CornerLeftUp:()=>ol,CornerRightDown:()=>sl,CornerRightUp:()=>cl,CornerUpLeft:()=>ll,CornerUpRight:()=>ul,Cpu:()=>dl,CreativeCommons:()=>fl,CreditCard:()=>pl,Croissant:()=>ml,Crop:()=>hl,Cross:()=>gl,Crosshair:()=>_l,Crown:()=>vl,Cuboid:()=>yl,CupSoda:()=>bl,Currency:()=>xl,Cylinder:()=>Sl,Dam:()=>Cl,Database:()=>Dl,DatabaseBackup:()=>wl,DatabaseSearch:()=>Tl,DatabaseZap:()=>El,DecimalsArrowLeft:()=>Ol,DecimalsArrowRight:()=>kl,Delete:()=>Al,Dessert:()=>jl,Diameter:()=>Ml,Diamond:()=>Il,DiamondMinus:()=>Nl,DiamondPercent:()=>Pl,DiamondPlus:()=>Fl,Dice1:()=>Ll,Dice2:()=>Rl,Dice3:()=>zl,Dice4:()=>Bl,Dice5:()=>Vl,Dice6:()=>Hl,Dices:()=>Ul,Diff:()=>Wl,Disc:()=>Jl,Disc2:()=>Gl,Disc3:()=>Kl,DiscAlbum:()=>ql,Divide:()=>Yl,Dna:()=>Xl,DnaOff:()=>Ql,Dock:()=>$l,Dog:()=>Zl,DollarSign:()=>eu,Donut:()=>tu,DoorClosed:()=>ru,DoorClosedLocked:()=>nu,DoorOpen:()=>iu,Dot:()=>au,Download:()=>ou,DraftingCompass:()=>su,Drama:()=>cu,Drill:()=>lu,Drone:()=>uu,Droplet:()=>fu,DropletOff:()=>du,Droplets:()=>pu,Drum:()=>mu,Drumstick:()=>hu,Dumbbell:()=>gu,Ear:()=>vu,EarOff:()=>_u,Earth:()=>bu,EarthLock:()=>yu,Eclipse:()=>xu,Egg:()=>Cu,EggFried:()=>Su,EggOff:()=>wu,Ellipse:()=>Tu,Ellipsis:()=>Du,EllipsisVertical:()=>Eu,Equal:()=>Au,EqualApproximately:()=>Ou,EqualNot:()=>ku,Eraser:()=>ju,EthernetPort:()=>Mu,Euro:()=>Nu,EvCharger:()=>Pu,Expand:()=>Fu,ExternalLink:()=>Iu,Eye:()=>Bu,EyeClosed:()=>Lu,EyeOff:()=>Ru,Factory:()=>zu,Fan:()=>Vu,FastForward:()=>Hu,Feather:()=>Uu,Fence:()=>Wu,FerrisWheel:()=>Gu,File:()=>Kd,FileArchive:()=>Ku,FileAxis3d:()=>qu,FileBadge:()=>Ju,FileBox:()=>Xu,FileBraces:()=>Zu,FileBracesCorner:()=>Yu,FileChartColumn:()=>$u,FileChartColumnIncreasing:()=>Qu,FileChartLine:()=>ed,FileChartPie:()=>td,FileCheck:()=>rd,FileCheckCorner:()=>nd,FileClock:()=>id,FileCode:()=>sd,FileCodeCorner:()=>ad,FileCog:()=>od,FileDiff:()=>ld,FileDigit:()=>cd,FileDown:()=>ud,FileExclamationPoint:()=>dd,FileHeadphone:()=>pd,FileHeart:()=>fd,FileImage:()=>md,FileInput:()=>hd,FileKey:()=>_d,FileLock:()=>gd,FileMinus:()=>yd,FileMinusCorner:()=>vd,FileMusic:()=>bd,FileOutput:()=>xd,FilePen:()=>Cd,FilePenLine:()=>Sd,FilePlay:()=>wd,FilePlus:()=>Ed,FilePlusCorner:()=>Td,FileQuestionMark:()=>Dd,FileScan:()=>Od,FileSearch:()=>Ad,FileSearchCorner:()=>kd,FileSignal:()=>jd,FileSliders:()=>Md,FileSpreadsheet:()=>Nd,FileStack:()=>Pd,FileSymlink:()=>Fd,FileTerminal:()=>Id,FileText:()=>Ld,FileType:()=>zd,FileTypeCorner:()=>Rd,FileUp:()=>Bd,FileUser:()=>Vd,FileVideoCamera:()=>Hd,FileVolume:()=>Ud,FileX:()=>Gd,FileXCorner:()=>Wd,Files:()=>qd,Film:()=>Yd,FingerprintPattern:()=>Jd,FireExtinguisher:()=>Xd,Fish:()=>$d,FishOff:()=>Zd,FishSymbol:()=>Qd,FishingHook:()=>ef,FishingRod:()=>tf,Flag:()=>of,FlagOff:()=>nf,FlagTriangleLeft:()=>rf,FlagTriangleRight:()=>af,Flame:()=>lf,FlameKindling:()=>sf,Flashlight:()=>uf,FlashlightOff:()=>cf,FlaskConical:()=>ff,FlaskConicalOff:()=>df,FlaskRound:()=>pf,FlipHorizontal2:()=>mf,FlipVertical2:()=>hf,Flower:()=>_f,Flower2:()=>gf,Focus:()=>vf,FoldHorizontal:()=>yf,FoldVertical:()=>bf,Folder:()=>Xf,FolderArchive:()=>xf,FolderBookmark:()=>Sf,FolderCheck:()=>Cf,FolderClock:()=>wf,FolderClosed:()=>Tf,FolderCode:()=>Ef,FolderCog:()=>Of,FolderDot:()=>Df,FolderDown:()=>Af,FolderGit:()=>jf,FolderGit2:()=>kf,FolderHeart:()=>Nf,FolderInput:()=>Mf,FolderKanban:()=>Ff,FolderKey:()=>Pf,FolderLock:()=>If,FolderMinus:()=>Lf,FolderOpen:()=>zf,FolderOpenDot:()=>Rf,FolderOutput:()=>Vf,FolderPen:()=>Bf,FolderPlus:()=>Uf,FolderRoot:()=>Hf,FolderSearch:()=>Gf,FolderSearch2:()=>Wf,FolderSymlink:()=>Kf,FolderSync:()=>Jf,FolderTree:()=>qf,FolderUp:()=>Yf,FolderX:()=>Zf,Folders:()=>Qf,Footprints:()=>$f,Forklift:()=>tp,Form:()=>ep,Forward:()=>np,Frame:()=>rp,Frown:()=>ip,Fuel:()=>ap,Fullscreen:()=>op,Funnel:()=>lp,FunnelPlus:()=>sp,FunnelX:()=>cp,GalleryHorizontal:()=>dp,GalleryHorizontalEnd:()=>up,GalleryThumbnails:()=>fp,GalleryVertical:()=>mp,GalleryVerticalEnd:()=>pp,Gamepad:()=>_p,Gamepad2:()=>hp,GamepadDirectional:()=>gp,Gauge:()=>vp,Gavel:()=>yp,Gem:()=>bp,GeorgianLari:()=>xp,Ghost:()=>Sp,Gift:()=>Cp,GitBranch:()=>Ep,GitBranchMinus:()=>wp,GitBranchPlus:()=>Tp,GitCommitHorizontal:()=>Dp,GitCommitVertical:()=>Op,GitCompare:()=>Ap,GitCompareArrows:()=>kp,GitFork:()=>jp,GitGraph:()=>Mp,GitMerge:()=>Pp,GitMergeConflict:()=>Np,GitPullRequest:()=>Bp,GitPullRequestArrow:()=>Fp,GitPullRequestClosed:()=>Lp,GitPullRequestCreate:()=>Rp,GitPullRequestCreateArrow:()=>Ip,GitPullRequestDraft:()=>zp,GlassWater:()=>Hp,Glasses:()=>Vp,Globe:()=>Kp,GlobeCheck:()=>Up,GlobeLock:()=>Wp,GlobeOff:()=>Gp,GlobeX:()=>qp,Goal:()=>Jp,Gpu:()=>Xp,GraduationCap:()=>Yp,Grape:()=>Zp,Grid2x2:()=>tm,Grid2x2Check:()=>Qp,Grid2x2Plus:()=>$p,Grid2x2X:()=>em,Grid3x2:()=>nm,Grid3x3:()=>rm,Grip:()=>am,GripHorizontal:()=>im,GripVertical:()=>om,Group:()=>cm,Guitar:()=>um,Ham:()=>sm,Hamburger:()=>lm,Hammer:()=>dm,Hand:()=>ym,HandCoins:()=>fm,HandFist:()=>pm,HandGrab:()=>mm,HandHeart:()=>hm,HandHelping:()=>gm,HandMetal:()=>_m,HandPlatter:()=>vm,Handbag:()=>bm,Handshake:()=>Sm,HardDrive:()=>wm,HardDriveDownload:()=>xm,HardDriveUpload:()=>Cm,HardHat:()=>Tm,Hash:()=>Em,HatGlasses:()=>Dm,Haze:()=>Om,Hd:()=>km,HdmiPort:()=>Am,Heading:()=>Lm,Heading1:()=>jm,Heading2:()=>Mm,Heading3:()=>Pm,Heading4:()=>Nm,Heading5:()=>Fm,Heading6:()=>Im,HeadphoneOff:()=>Rm,Headphones:()=>zm,Headset:()=>Bm,Heart:()=>Jm,HeartCrack:()=>Vm,HeartHandshake:()=>Hm,HeartMinus:()=>Um,HeartOff:()=>Wm,HeartPlus:()=>Gm,HeartPulse:()=>qm,HeartX:()=>Km,Heater:()=>Ym,Helicopter:()=>Qm,Hexagon:()=>Xm,Highlighter:()=>Zm,History:()=>$m,Hop:()=>th,HopOff:()=>eh,Hospital:()=>nh,Hotel:()=>rh,Hourglass:()=>ih,House:()=>uh,HouseHeart:()=>ah,HousePlug:()=>oh,HousePlus:()=>sh,HouseWifi:()=>ch,IceCreamBowl:()=>lh,IceCreamCone:()=>dh,IdCard:()=>ph,IdCardLanyard:()=>fh,Image:()=>xh,ImageDown:()=>gh,ImageMinus:()=>mh,ImageOff:()=>hh,ImagePlay:()=>_h,ImagePlus:()=>vh,ImageUp:()=>yh,ImageUpscale:()=>bh,Images:()=>Sh,Import:()=>Ch,Inbox:()=>wh,IndianRupee:()=>Th,Infinity:()=>Eh,Info:()=>Dh,InspectionPanel:()=>Oh,Italic:()=>kh,IterationCcw:()=>Ah,IterationCw:()=>jh,JapaneseYen:()=>Mh,Joystick:()=>Nh,Kanban:()=>Ph,Kayak:()=>zh,Key:()=>Lh,KeyRound:()=>Fh,KeySquare:()=>Ih,Keyboard:()=>Hh,KeyboardMusic:()=>Rh,KeyboardOff:()=>Bh,Lamp:()=>qh,LampCeiling:()=>Vh,LampDesk:()=>Uh,LampFloor:()=>Gh,LampWallDown:()=>Wh,LampWallUp:()=>Kh,LandPlot:()=>Jh,Landmark:()=>Yh,Languages:()=>Xh,Laptop:()=>Qh,LaptopMinimal:()=>$h,LaptopMinimalCheck:()=>Zh,Lasso:()=>tg,LassoSelect:()=>eg,Laugh:()=>ng,Layers:()=>og,Layers2:()=>rg,LayersMinus:()=>ag,LayersPlus:()=>ig,LayoutDashboard:()=>sg,LayoutGrid:()=>cg,LayoutList:()=>ug,LayoutPanelLeft:()=>lg,LayoutPanelTop:()=>dg,LayoutTemplate:()=>fg,Leaf:()=>pg,LeafyGreen:()=>mg,Lectern:()=>hg,LensConcave:()=>gg,LensConvex:()=>_g,Library:()=>vg,LibraryBig:()=>bg,LifeBuoy:()=>yg,Ligature:()=>xg,Lightbulb:()=>Cg,LightbulbOff:()=>Sg,LineDotRightHorizontal:()=>Tg,LineSquiggle:()=>wg,LineStyle:()=>Eg,Link:()=>jg,Link2:()=>Og,Link2Off:()=>Dg,List:()=>Xg,ListCheck:()=>kg,ListChecks:()=>Ag,ListChevronsDownUp:()=>Ng,ListChevronsUpDown:()=>Mg,ListCollapse:()=>Pg,ListEnd:()=>Fg,ListFilter:()=>Lg,ListFilterPlus:()=>Ig,ListIndentDecrease:()=>Rg,ListIndentIncrease:()=>zg,ListMinus:()=>Bg,ListMusic:()=>Vg,ListOrdered:()=>Hg,ListPlus:()=>Ug,ListRestart:()=>Wg,ListStart:()=>Gg,ListTodo:()=>Kg,ListTree:()=>qg,ListVideo:()=>Jg,ListX:()=>Yg,Loader:()=>$g,LoaderCircle:()=>Zg,LoaderPinwheel:()=>Qg,Locate:()=>r_,LocateFixed:()=>e_,LocateOff:()=>t_,Lock:()=>o_,LockKeyhole:()=>i_,LockKeyholeOpen:()=>n_,LockOpen:()=>a_,LogIn:()=>s_,LogOut:()=>c_,Logs:()=>l_,Lollipop:()=>u_,Luggage:()=>d_,Magnet:()=>f_,Mail:()=>x_,MailCheck:()=>p_,MailMinus:()=>m_,MailOpen:()=>h_,MailPlus:()=>g_,MailQuestionMark:()=>__,MailSearch:()=>v_,MailWarning:()=>y_,MailX:()=>b_,Mailbox:()=>S_,Mails:()=>w_,Map:()=>B_,MapMinus:()=>C_,MapPin:()=>L_,MapPinCheck:()=>E_,MapPinCheckInside:()=>T_,MapPinHouse:()=>D_,MapPinMinus:()=>k_,MapPinMinusInside:()=>O_,MapPinOff:()=>A_,MapPinPen:()=>j_,MapPinPlus:()=>N_,MapPinPlusInside:()=>M_,MapPinSearch:()=>P_,MapPinX:()=>F_,MapPinXInside:()=>I_,MapPinned:()=>R_,MapPlus:()=>z_,Mars:()=>H_,MarsStroke:()=>V_,Martini:()=>U_,Maximize:()=>G_,Maximize2:()=>W_,Medal:()=>K_,Megaphone:()=>J_,MegaphoneOff:()=>q_,Meh:()=>Y_,MemoryStick:()=>X_,Menu:()=>Z_,Merge:()=>Q_,MessageCircle:()=>lv,MessageCircleCheck:()=>$_,MessageCircleCode:()=>ev,MessageCircleDashed:()=>tv,MessageCircleHeart:()=>nv,MessageCircleMore:()=>Zee,MessageCircleOff:()=>rv,MessageCirclePlus:()=>iv,MessageCircleQuestionMark:()=>av,MessageCircleReply:()=>ov,MessageCircleWarning:()=>sv,MessageCircleX:()=>cv,MessageSquare:()=>Ev,MessageSquareCheck:()=>uv,MessageSquareCode:()=>dv,MessageSquareDashed:()=>fv,MessageSquareDiff:()=>pv,MessageSquareDot:()=>mv,MessageSquareHeart:()=>hv,MessageSquareLock:()=>gv,MessageSquareMore:()=>_v,MessageSquareOff:()=>bv,MessageSquarePlus:()=>vv,MessageSquareQuote:()=>yv,MessageSquareReply:()=>xv,MessageSquareShare:()=>Sv,MessageSquareText:()=>Cv,MessageSquareWarning:()=>wv,MessageSquareX:()=>Tv,MessagesSquare:()=>Dv,Metronome:()=>Ov,Mic:()=>jv,MicOff:()=>kv,MicVocal:()=>Av,Microchip:()=>Mv,Microscope:()=>Nv,Microwave:()=>Fv,Milestone:()=>Pv,Milk:()=>Lv,MilkOff:()=>Iv,Minimize:()=>Bv,Minimize2:()=>Rv,Minus:()=>zv,MirrorRectangular:()=>Vv,MirrorRound:()=>Hv,Monitor:()=>ete,MonitorCheck:()=>Wv,MonitorCloud:()=>Uv,MonitorCog:()=>Gv,MonitorDot:()=>Kv,MonitorDown:()=>qv,MonitorOff:()=>Jv,MonitorPause:()=>Yv,MonitorPlay:()=>Xv,MonitorSmartphone:()=>Zv,MonitorSpeaker:()=>$v,MonitorStop:()=>Qv,MonitorUp:()=>ey,MonitorX:()=>Qee,Moon:()=>ty,MoonStar:()=>$ee,Motorbike:()=>tte,Mountain:()=>rte,MountainSnow:()=>nte,Mouse:()=>fte,MouseLeft:()=>ite,MouseOff:()=>ste,MousePointer:()=>ute,MousePointer2:()=>ote,MousePointer2Off:()=>ate,MousePointerBan:()=>cte,MousePointerClick:()=>lte,MouseRight:()=>dte,Move:()=>Ete,Move3d:()=>mte,MoveDiagonal:()=>hte,MoveDiagonal2:()=>pte,MoveDown:()=>vte,MoveDownLeft:()=>gte,MoveDownRight:()=>_te,MoveHorizontal:()=>bte,MoveLeft:()=>yte,MoveRight:()=>xte,MoveUp:()=>wte,MoveUpLeft:()=>Ste,MoveUpRight:()=>Cte,MoveVertical:()=>Tte,Music:()=>Ate,Music2:()=>Dte,Music3:()=>Ote,Music4:()=>kte,Navigation:()=>Pte,Navigation2:()=>jte,Navigation2Off:()=>Nte,NavigationOff:()=>Mte,Network:()=>ny,Newspaper:()=>Fte,Nfc:()=>Ite,NonBinary:()=>Lte,Notebook:()=>zte,NotebookPen:()=>ry,NotebookTabs:()=>Rte,NotebookText:()=>iy,NotepadText:()=>Vte,NotepadTextDashed:()=>Bte,Nut:()=>Ute,NutOff:()=>Hte,Octagon:()=>qte,OctagonAlert:()=>Wte,OctagonMinus:()=>Gte,OctagonPause:()=>Kte,OctagonX:()=>ay,Omega:()=>Jte,Option:()=>Yte,Orbit:()=>Xte,Origami:()=>Qte,Package:()=>sy,Package2:()=>Zte,PackageCheck:()=>$te,PackageMinus:()=>ene,PackageOpen:()=>tne,PackagePlus:()=>oy,PackageSearch:()=>rne,PackageX:()=>nne,PaintBucket:()=>ane,PaintRoller:()=>one,Paintbrush:()=>sne,PaintbrushVertical:()=>ine,Palette:()=>cy,Panda:()=>cne,PanelBottom:()=>fne,PanelBottomClose:()=>lne,PanelBottomDashed:()=>une,PanelBottomOpen:()=>dne,PanelLeft:()=>ly,PanelLeftClose:()=>pne,PanelLeftDashed:()=>mne,PanelLeftOpen:()=>hne,PanelLeftRightDashed:()=>gne,PanelRight:()=>uy,PanelRightClose:()=>_ne,PanelRightDashed:()=>vne,PanelRightOpen:()=>yne,PanelTop:()=>wne,PanelTopBottomDashed:()=>xne,PanelTopClose:()=>bne,PanelTopDashed:()=>Sne,PanelTopOpen:()=>Cne,PanelsLeftBottom:()=>Tne,PanelsRightBottom:()=>Ene,PanelsTopLeft:()=>Dne,Paperclip:()=>dy,Parasol:()=>One,Parentheses:()=>Ane,ParkingMeter:()=>kne,PartyPopper:()=>jne,Pause:()=>fy,PawPrint:()=>py,PcCase:()=>Mne,Pen:()=>Ine,PenLine:()=>Nne,PenOff:()=>Fne,PenTool:()=>Pne,Pencil:()=>hy,PencilLine:()=>my,PencilOff:()=>Lne,PencilRuler:()=>Rne,Pentagon:()=>zne,Percent:()=>Bne,PersonStanding:()=>Vne,PhilippinePeso:()=>Hne,Phone:()=>Yne,PhoneCall:()=>Une,PhoneForwarded:()=>Wne,PhoneIncoming:()=>Gne,PhoneMissed:()=>Kne,PhoneOff:()=>qne,PhoneOutgoing:()=>Jne,Pi:()=>Xne,Piano:()=>Zne,Pickaxe:()=>Qne,PictureInPicture:()=>ere,PictureInPicture2:()=>$ne,PiggyBank:()=>tre,Pilcrow:()=>ire,PilcrowLeft:()=>nre,PilcrowRight:()=>rre,Pill:()=>ore,PillBottle:()=>are,Pin:()=>gy,PinOff:()=>_y,Pipette:()=>cre,Pizza:()=>sre,Plane:()=>dre,PlaneLanding:()=>lre,PlaneTakeoff:()=>ure,Play:()=>yy,Plug:()=>by,Plug2:()=>fre,PlugZap:()=>vy,Plus:()=>xy,PocketKnife:()=>pre,Podcast:()=>mre,Pointer:()=>gre,PointerOff:()=>hre,Popcorn:()=>_re,Popsicle:()=>vre,PoundSterling:()=>yre,Power:()=>Cy,PowerOff:()=>Sy,Presentation:()=>bre,Printer:()=>wre,PrinterCheck:()=>xre,PrinterX:()=>Sre,Projector:()=>Cre,Proportions:()=>Tre,Puzzle:()=>wy,Pyramid:()=>Ere,QrCode:()=>Ty,Quote:()=>Ey,Rabbit:()=>Dre,Radar:()=>Ore,Radiation:()=>kre,Radical:()=>Are,Radio:()=>Dy,RadioOff:()=>jre,RadioReceiver:()=>Mre,RadioTower:()=>Nre,Radius:()=>Pre,Rainbow:()=>Fre,Rat:()=>Ire,Ratio:()=>Lre,Receipt:()=>qre,ReceiptCent:()=>zre,ReceiptEuro:()=>Rre,ReceiptIndianRupee:()=>Bre,ReceiptJapaneseYen:()=>Vre,ReceiptPoundSterling:()=>Hre,ReceiptRussianRuble:()=>Ure,ReceiptSwissFranc:()=>Wre,ReceiptText:()=>Gre,ReceiptTurkishLira:()=>Kre,RectangleCircle:()=>Jre,RectangleEllipsis:()=>Yre,RectangleGoggles:()=>Xre,RectangleHorizontal:()=>Zre,RectangleVertical:()=>Qre,Recycle:()=>$re,Redo:()=>tie,Redo2:()=>Oy,RedoDot:()=>eie,RefreshCcw:()=>rie,RefreshCcwDot:()=>nie,RefreshCw:()=>ky,RefreshCwOff:()=>iie,Refrigerator:()=>sie,Regex:()=>aie,RemoveFormatting:()=>oie,Repeat:()=>die,Repeat1:()=>cie,Repeat2:()=>lie,RepeatOff:()=>uie,Replace:()=>hie,ReplaceAll:()=>fie,Reply:()=>mie,ReplyAll:()=>pie,Rewind:()=>gie,Ribbon:()=>_ie,Road:()=>vie,Rocket:()=>Ay,RockingChair:()=>yie,RollerCoaster:()=>bie,Rose:()=>Cie,Rotate3d:()=>xie,RotateCcw:()=>jy,RotateCcwKey:()=>Sie,RotateCcwSquare:()=>wie,RotateCw:()=>My,RotateCwSquare:()=>Tie,Route:()=>Oie,RouteOff:()=>Eie,Router:()=>Die,Rows2:()=>kie,Rows3:()=>Aie,Rows4:()=>jie,Rss:()=>Mie,Ruler:()=>Nie,RulerDimensionLine:()=>Pie,RussianRuble:()=>Fie,Sailboat:()=>Iie,Salad:()=>Rie,Sandwich:()=>Lie,Satellite:()=>Bie,SatelliteDish:()=>zie,SaudiRiyal:()=>Hie,Save:()=>Ny,SaveAll:()=>Vie,SaveOff:()=>Uie,Scale:()=>Wie,Scale3d:()=>Gie,Scaling:()=>qie,Scan:()=>tae,ScanBarcode:()=>Kie,ScanEye:()=>Jie,ScanFace:()=>Yie,ScanHeart:()=>Xie,ScanLine:()=>Zie,ScanQrCode:()=>$ie,ScanSearch:()=>Qie,ScanText:()=>eae,School:()=>rae,Scissors:()=>iae,ScissorsLineDashed:()=>nae,Scooter:()=>aae,ScreenShare:()=>sae,ScreenShareOff:()=>oae,Scroll:()=>cae,ScrollText:()=>Py,Search:()=>Iy,SearchAlert:()=>lae,SearchCheck:()=>Fy,SearchCode:()=>uae,SearchSlash:()=>dae,SearchX:()=>fae,Section:()=>pae,Send:()=>Ly,SendHorizontal:()=>mae,SendToBack:()=>hae,SeparatorHorizontal:()=>gae,SeparatorVertical:()=>_ae,Server:()=>Ry,ServerCog:()=>yae,ServerCrash:()=>vae,ServerOff:()=>bae,Settings:()=>By,Settings2:()=>zy,Shapes:()=>xae,Share:()=>Cae,Share2:()=>Vy,Sheet:()=>Sae,Shell:()=>wae,ShelvingUnit:()=>Tae,Shield:()=>Ky,ShieldAlert:()=>Hy,ShieldBan:()=>Eae,ShieldCheck:()=>Uy,ShieldCog:()=>kae,ShieldCogCorner:()=>Dae,ShieldEllipsis:()=>Oae,ShieldHalf:()=>Wy,ShieldMinus:()=>Aae,ShieldOff:()=>Gy,ShieldPlus:()=>jae,ShieldQuestionMark:()=>Mae,ShieldUser:()=>Nae,ShieldX:()=>Fae,Ship:()=>Iae,ShipWheel:()=>Pae,Shirt:()=>Lae,ShoppingBag:()=>Rae,ShoppingBasket:()=>zae,ShoppingCart:()=>Bae,Shovel:()=>Vae,ShowerHead:()=>Hae,Shredder:()=>Uae,Shrimp:()=>Wae,Shrink:()=>Gae,Shrub:()=>qae,Shuffle:()=>Kae,Sigma:()=>Jae,Signal:()=>toe,SignalHigh:()=>Xae,SignalLow:()=>Yae,SignalMedium:()=>Zae,SignalZero:()=>Qae,Signature:()=>eoe,Signpost:()=>roe,SignpostBig:()=>$ae,Siren:()=>noe,SkipBack:()=>ioe,SkipForward:()=>aoe,Skull:()=>ooe,Slash:()=>soe,Slice:()=>coe,SlidersHorizontal:()=>qy,SlidersVertical:()=>loe,Smartphone:()=>Jy,SmartphoneCharging:()=>uoe,SmartphoneNfc:()=>doe,Smile:()=>poe,SmilePlus:()=>foe,Snail:()=>moe,Snowflake:()=>hoe,SoapDispenserDroplet:()=>_oe,Sofa:()=>goe,SolarPanel:()=>voe,Soup:()=>yoe,Space:()=>boe,Spade:()=>xoe,Sparkle:()=>Soe,Sparkles:()=>Yy,Speaker:()=>Coe,Speech:()=>woe,SpellCheck:()=>Eoe,SpellCheck2:()=>Toe,Spline:()=>koe,SplinePointer:()=>Doe,Split:()=>Ooe,Spool:()=>Aoe,SportShoe:()=>joe,Spotlight:()=>Moe,SprayCan:()=>Noe,Sprout:()=>Foe,Square:()=>rb,SquareActivity:()=>Poe,SquareArrowDown:()=>Roe,SquareArrowDownLeft:()=>Ioe,SquareArrowDownRight:()=>Loe,SquareArrowLeft:()=>zoe,SquareArrowOutDownLeft:()=>Boe,SquareArrowOutDownRight:()=>Voe,SquareArrowOutUpLeft:()=>Hoe,SquareArrowOutUpRight:()=>Uoe,SquareArrowRight:()=>qoe,SquareArrowRightEnter:()=>Woe,SquareArrowRightExit:()=>Goe,SquareArrowUp:()=>Xoe,SquareArrowUpLeft:()=>Koe,SquareArrowUpRight:()=>Joe,SquareAsterisk:()=>Yoe,SquareBottomDashedScissors:()=>Zoe,SquareCenterlineDashedHorizontal:()=>Qoe,SquareCenterlineDashedVertical:()=>ese,SquareChartGantt:()=>$oe,SquareCheck:()=>tse,SquareCheckBig:()=>Xy,SquareChevronDown:()=>nse,SquareChevronLeft:()=>ise,SquareChevronRight:()=>rse,SquareChevronUp:()=>ase,SquareCode:()=>ose,SquareDashed:()=>hse,SquareDashedBottom:()=>cse,SquareDashedBottomCode:()=>sse,SquareDashedKanban:()=>lse,SquareDashedMousePointer:()=>use,SquareDashedText:()=>dse,SquareDashedTopSolid:()=>fse,SquareDivide:()=>pse,SquareDot:()=>mse,SquareEqual:()=>gse,SquareFunction:()=>_se,SquareKanban:()=>vse,SquareLibrary:()=>yse,SquareM:()=>bse,SquareMenu:()=>xse,SquareMinus:()=>Sse,SquareMousePointer:()=>Cse,SquareParking:()=>Ese,SquareParkingOff:()=>wse,SquarePause:()=>Tse,SquarePen:()=>Zy,SquarePercent:()=>Dse,SquarePi:()=>Ose,SquarePilcrow:()=>kse,SquarePlay:()=>jse,SquarePlus:()=>Ase,SquarePower:()=>Mse,SquareRadical:()=>Nse,SquareRoundCorner:()=>Pse,SquareScissors:()=>Fse,SquareSigma:()=>Ise,SquareSlash:()=>Lse,SquareSplitHorizontal:()=>Rse,SquareSplitVertical:()=>zse,SquareSquare:()=>Bse,SquareStack:()=>Vse,SquareStar:()=>Hse,SquareStop:()=>Qy,SquareTerminal:()=>$y,SquareUser:()=>nb,SquareUserRound:()=>eb,SquareX:()=>tb,SquaresExclude:()=>ib,SquaresIntersect:()=>ab,SquaresSubtract:()=>ob,SquaresUnite:()=>sb,Squircle:()=>lb,SquircleDashed:()=>cb,Squirrel:()=>ub,Stamp:()=>fb,Star:()=>mb,StarHalf:()=>db,StarOff:()=>pb,StepBack:()=>gb,StepForward:()=>hb,Stethoscope:()=>_b,Sticker:()=>vb,StickyNote:()=>Cb,StickyNoteCheck:()=>yb,StickyNoteMinus:()=>bb,StickyNoteOff:()=>xb,StickyNotePlus:()=>Sb,StickyNoteX:()=>wb,StickyNotes:()=>Eb,Stone:()=>Tb,Store:()=>Db,StretchHorizontal:()=>Ob,StretchVertical:()=>kb,Strikethrough:()=>Ab,Subscript:()=>jb,Sun:()=>Ib,SunDim:()=>Mb,SunMedium:()=>Nb,SunMoon:()=>Pb,SunSnow:()=>Fb,Sunrise:()=>Lb,Sunset:()=>Rb,Superscript:()=>zb,SwatchBook:()=>Bb,SwissFranc:()=>Vb,SwitchCamera:()=>Hb,Sword:()=>Wb,Swords:()=>Ub,Syringe:()=>Gb,Table:()=>$b,Table2:()=>Kb,TableCellsMerge:()=>qb,TableCellsSplit:()=>Jb,TableColumnsSplit:()=>Yb,TableOfContents:()=>Xb,TableProperties:()=>Zb,TableRowsSplit:()=>Qb,Tablet:()=>tx,TabletSmartphone:()=>ex,Tablets:()=>nx,Tag:()=>rx,Tags:()=>ix,Tally1:()=>ax,Tally2:()=>ox,Tally3:()=>sx,Tally4:()=>cx,Tally5:()=>lx,Tangent:()=>ux,Target:()=>dx,Telescope:()=>fx,Tent:()=>mx,TentTree:()=>px,Terminal:()=>hx,TestTube:()=>_x,TestTubeDiagonal:()=>gx,TestTubes:()=>yx,TextAlignCenter:()=>vx,TextAlignEnd:()=>bx,TextAlignJustify:()=>xx,TextAlignStart:()=>Cx,TextCursor:()=>wx,TextCursorInput:()=>Sx,TextInitial:()=>Tx,TextQuote:()=>Ex,TextSearch:()=>Dx,TextWrap:()=>Ox,Theater:()=>kx,Thermometer:()=>Mx,ThermometerSnowflake:()=>Ax,ThermometerSun:()=>jx,ThumbsDown:()=>Nx,ThumbsUp:()=>Px,Ticket:()=>Vx,TicketCheck:()=>Fx,TicketMinus:()=>Ix,TicketPercent:()=>Lx,TicketPlus:()=>Rx,TicketSlash:()=>zx,TicketX:()=>Bx,Tickets:()=>Ux,TicketsPlane:()=>Hx,Timeline:()=>Wx,Timer:()=>qx,TimerOff:()=>Gx,TimerReset:()=>Kx,ToggleLeft:()=>Jx,ToggleRight:()=>Yx,Toilet:()=>Xx,ToolCase:()=>Zx,Toolbox:()=>Qx,Tornado:()=>$x,Torus:()=>eS,Touchpad:()=>nS,TouchpadOff:()=>tS,TowelRack:()=>rS,TowerControl:()=>iS,ToyBrick:()=>aS,Tractor:()=>oS,TrafficCone:()=>sS,TrainFront:()=>lS,TrainFrontTunnel:()=>cS,TrainTrack:()=>uS,TramFront:()=>dS,Transgender:()=>fS,Trash:()=>mS,Trash2:()=>pS,TreeDeciduous:()=>hS,TreePalm:()=>gS,TreePine:()=>_S,Trees:()=>yS,TrendingDown:()=>vS,TrendingUp:()=>xS,TrendingUpDown:()=>bS,Triangle:()=>TS,TriangleAlert:()=>SS,TriangleDashed:()=>CS,TriangleRight:()=>wS,Trophy:()=>ES,Truck:()=>OS,TruckElectric:()=>DS,TurkishLira:()=>kS,Turntable:()=>AS,Turtle:()=>jS,Tv:()=>PS,TvMinimal:()=>NS,TvMinimalPlay:()=>MS,Type:()=>IS,TypeOutline:()=>FS,Umbrella:()=>RS,UmbrellaOff:()=>LS,Underline:()=>zS,Undo:()=>WS,Undo2:()=>BS,UndoDot:()=>VS,UnfoldHorizontal:()=>HS,UnfoldVertical:()=>US,Ungroup:()=>GS,University:()=>KS,Unlink:()=>JS,Unlink2:()=>qS,Unplug:()=>YS,Upload:()=>XS,Usb:()=>ZS,User:()=>vC,UserCheck:()=>QS,UserCog:()=>$S,UserKey:()=>tC,UserLock:()=>nC,UserMinus:()=>eC,UserPen:()=>rC,UserPlus:()=>aC,UserRound:()=>pC,UserRoundCheck:()=>iC,UserRoundCog:()=>sC,UserRoundKey:()=>oC,UserRoundMinus:()=>cC,UserRoundPen:()=>lC,UserRoundPlus:()=>fC,UserRoundSearch:()=>uC,UserRoundX:()=>dC,UserSearch:()=>mC,UserStar:()=>hC,UserX:()=>gC,Users:()=>yC,UsersRound:()=>_C,Utensils:()=>xC,UtensilsCrossed:()=>bC,UtilityPole:()=>SC,Van:()=>CC,Variable:()=>wC,Vault:()=>TC,VectorSquare:()=>EC,Vegan:()=>DC,VenetianMask:()=>OC,Venus:()=>AC,VenusAndMars:()=>kC,Vibrate:()=>jC,VibrateOff:()=>MC,Video:()=>PC,VideoOff:()=>NC,Videotape:()=>IC,View:()=>FC,Voicemail:()=>RC,Volleyball:()=>LC,Volume:()=>UC,Volume1:()=>zC,Volume2:()=>BC,VolumeOff:()=>VC,VolumeX:()=>HC,Vote:()=>WC,Wallet:()=>qC,WalletCards:()=>GC,WalletMinimal:()=>KC,Wallpaper:()=>JC,Wand:()=>YC,WandSparkles:()=>XC,Warehouse:()=>ZC,WashingMachine:()=>QC,Watch:()=>$C,WavesArrowDown:()=>ew,WavesArrowUp:()=>tw,WavesHorizontal:()=>nw,WavesLadder:()=>rw,WavesVertical:()=>iw,Waypoints:()=>aw,Webcam:()=>ow,Webhook:()=>cw,WebhookOff:()=>sw,Weight:()=>uw,WeightTilde:()=>lw,Wheat:()=>fw,WheatOff:()=>dw,WholeWord:()=>mw,Wifi:()=>yw,WifiCog:()=>pw,WifiHigh:()=>hw,WifiLow:()=>gw,WifiOff:()=>_w,WifiPen:()=>vw,WifiSync:()=>bw,WifiZero:()=>xw,Wind:()=>Cw,WindArrowDown:()=>Sw,Wine:()=>Tw,WineOff:()=>ww,Workflow:()=>Ew,Worm:()=>Dw,Wrench:()=>Ow,X:()=>Aw,XLineTop:()=>kw,Zap:()=>Mw,ZapOff:()=>jw,ZodiacAquarius:()=>Nw,ZodiacAries:()=>Fw,ZodiacCancer:()=>Pw,ZodiacCapricorn:()=>Lw,ZodiacGemini:()=>Iw,ZodiacLeo:()=>Rw,ZodiacLibra:()=>Bw,ZodiacOphiuchus:()=>zw,ZodiacPisces:()=>Vw,ZodiacSagittarius:()=>Hw,ZodiacScorpio:()=>Uw,ZodiacTaurus:()=>Ww,ZodiacVirgo:()=>Gw,ZoomIn:()=>Kw,ZoomOut:()=>qw}),$=s();function Yw(e){let t=(0,Q.c)(8),{alt:n,className:r,"aria-hidden":i}=e,a=n?.trim()?n:void 0,o=i??(a?void 0:!0),s;t[0]===r?s=t[1]:(s=C(`relative inline-block shrink-0 overflow-hidden`,r),t[0]=r,t[1]=s);let c,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(`img`,{className:`size-full object-contain dark:hidden`,src:`/logo.svg`,alt:``,"aria-hidden":`true`}),l=(0,$.jsx)(`img`,{className:`hidden size-full object-contain dark:block`,src:`/logo-dark.svg`,alt:``,"aria-hidden":`true`}),t[2]=c,t[3]=l):(c=t[2],l=t[3]);let u;return t[4]!==o||t[5]!==a||t[6]!==s?(u=(0,$.jsxs)(`span`,{className:s,role:`img`,"aria-hidden":o,"aria-label":a,children:[c,l]}),t[4]=o,t[5]=a,t[6]=s,t[7]=u):u=t[7],u}var Xw={primary:`bg-accent text-white shadow-surface hover:bg-accent-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,secondary:`bg-surface-panel text-fg border border-edge shadow-surface hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel dark:border-edge`,ghost:`text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,segmented:``};function Zw(e){let t=(0,Q.c)(16),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:n,variant:a,asChild:o,type:s,ref:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`secondary`:a,l=o===void 0?!1:o,u=s===void 0?`button`:s,d=l?D:`button`,f=l?void 0:u,p=Xw[c],m;t[7]!==n||t[8]!==p?(m=C(`inline-flex items-center justify-center gap-2 rounded-xl px-3 py-2 text-sm font-medium`,`transition-colors duration-150 ease-out transition-transform`,`active:scale-95 motion-reduce:transition-none motion-reduce:active:scale-100`,`disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,p,n),t[7]=n,t[8]=p,t[9]=m):m=t[9];let h;return t[10]!==d||t[11]!==r||t[12]!==i||t[13]!==f||t[14]!==m?(h=(0,$.jsx)(d,{ref:i,type:f,className:m,...r}),t[10]=d,t[11]=r,t[12]=i,t[13]=f,t[14]=m,t[15]=h):h=t[15],h}var Qw=`w-full max-w-md sm:max-w-lg`,$w=`w-full`,eT=`focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:shadow-none focus-visible:border-edge data-[state=open]:border-edge`,tT=`focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:shadow-none focus-visible:border-edge`,nT=`focus:outline-none focus-visible:outline-none focus:ring-0 focus:ring-offset-0 focus:shadow-none focus:border-edge-strong focus-visible:border-edge-strong`,rT=`focus:outline-none focus-visible:outline-none focus:ring-0 focus:ring-offset-0 focus:shadow-none`,iT=`inline-flex w-fit max-w-full min-w-[10rem] max-w-lg justify-between`,aT={transition:`transition-colors duration-150 ease-out`,press:`transition-transform duration-150 ease-out active:scale-95 motion-reduce:transition-none motion-reduce:active:scale-100`,pressCard:`transition-transform duration-150 ease-out active:scale-[0.98] motion-reduce:transition-none motion-reduce:active:scale-100`,focusRingPanel:`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,focusRingBase:`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,disabled:`disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none`},oT=`rounded-lg p-2 text-fg-muted transition-colors transition-transform duration-150 ease-out hover:bg-surface-hover hover:text-fg active:scale-95 motion-reduce:transition-none motion-reduce:active:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`;function sT(e){return e===`***`||e===`••••••••••••`||/^•+$/.test(e)}function cT(e){return e>0?`•`.repeat(e):``}var lT={showKey:!1,revealed:void 0,revealLoading:!1,revealErr:null,copied:!1};function uT(e,t){switch(t.type){case`reset-reveal`:return{...e,showKey:!1,revealed:void 0,revealErr:null};case`toggle-show`:return{...e,showKey:!e.showKey};case`reveal-start`:return{...e,revealLoading:!0,revealErr:null};case`reveal-success`:return{...e,revealed:t.value,revealLoading:!1,showKey:!0,revealErr:null};case`reveal-error`:return{...e,revealed:null,revealLoading:!1,revealErr:t.message};case`copied`:return{...e,copied:!0};case`clear-copied`:return{...e,copied:!1};case`invalidate-reveal`:return{...e,revealed:void 0,showKey:!1}}}function dT(e){let{value:t,reveal:n,loadFailedLabel:r=`Failed to load secret`,baselineValue:i}=e,[a,o]=(0,Z.useReducer)(uT,lT),s=sT(t),c=!!(i?.trim()&&t===i&&!s),l=(0,Z.useRef)(n);l.current=n;let u=(0,Z.useRef)({masked:s,value:t,unchangedConcealed:c});(!s&&!c&&(u.current.masked||u.current.unchangedConcealed)||u.current.value!==t&&!c)&&o({type:`reset-reveal`}),u.current={masked:s,value:t,unchangedConcealed:c};let d=c&&!a.showKey?cT(t.length):s&&a.showKey&&typeof a.revealed==`string`?a.revealed:t,f=c&&!a.showKey?`password`:c&&a.showKey?`text`:s?a.showKey&&typeof a.revealed==`string`?`text`:`password`:a.showKey?`text`:`password`,p=c&&!a.showKey,m=c&&t.trim()||!s&&t.trim()&&!sT(t)?t.trim():typeof a.revealed==`string`&&a.revealed.length>0?a.revealed:``,h=m.length>0,g=(0,Z.useCallback)(async()=>{m&&await k(m)&&(o({type:`copied`}),window.setTimeout(()=>o({type:`clear-copied`}),2e3))},[m]),_=(0,Z.useCallback)(async()=>{if(c||!s){o({type:`toggle-show`});return}if(a.revealed!==void 0){o({type:`toggle-show`});return}if(!l.current){o({type:`toggle-show`});return}o({type:`reveal-start`});try{o({type:`reveal-success`,value:await l.current()})}catch(e){o({type:`reveal-error`,message:e instanceof Error?e.message:r})}},[r,s,c,a.revealed]),v=(0,Z.useCallback)((e,t)=>{p||(s&&typeof a.revealed==`string`&&a.showKey&&e!==a.revealed&&o({type:`invalidate-reveal`}),t(e))},[s,p,a.revealed,a.showKey]),y=a.revealLoading||!s&&!c&&!t.trim()||s&&!n&&a.revealed===void 0;return{masked:s,unchangedConcealed:c,showKey:a.showKey,revealed:a.revealed,revealLoading:a.revealLoading,revealErr:a.revealErr,copied:a.copied,inputValue:d,inputType:f,readOnly:p,copyEnabled:h,copySecret:g,toggleEye:_,onInputChange:v,eyeDisabled:y}}var fT=C(`w-full rounded-lg border border-edge bg-surface-panel py-2 pl-3 pr-20 font-mono text-sm text-fg`,`placeholder:text-fg-subtle`,nT,`dark:border-edge`);function pT(e){let t=(0,Q.c)(69),{id:n,name:r,ariaDescribedBy:i,ariaInvalid:a,value:o,onChange:s,placeholder:c,disabled:l,readOnly:u,className:d,inputClassName:f,labels:p,reveal:m,loadFailedLabel:h,maskedHelp:g,notInConfigFile:_,baselineValue:v,autoComplete:y,onKeyDown:b,inputRef:x}=e,S=l===void 0?!1:l,w=u===void 0?!1:u,T=y===void 0?`off`:y,E;t[0]!==v||t[1]!==h||t[2]!==m||t[3]!==o?(E={value:o,reveal:m,loadFailedLabel:h,baselineValue:v},t[0]=v,t[1]=h,t[2]=m,t[3]=o,t[4]=E):E=t[4];let{masked:D,showKey:O,revealed:k,revealLoading:A,revealErr:j,copied:M,inputValue:N,inputType:P,readOnly:F,copyEnabled:I,copySecret:L,toggleEye:R,onInputChange:z,eyeDisabled:B}=dT(E),V=w||F,H;t[5]===d?H=t[6]:(H=C(`flex flex-col gap-1.5`,d),t[5]=d,t[6]=H);let U;t[7]!==D||t[8]!==g?(U=D&&g?(0,$.jsx)(`p`,{className:`text-xs text-fg-subtle`,children:g}):null,t[7]=D,t[8]=g,t[9]=U):U=t[9];let W=a||void 0,G=D?void 0:c,K;t[10]!==s||t[11]!==z?(K=s?e=>z(e.target.value,s):void 0,t[10]=s,t[11]=z,t[12]=K):K=t[12];let ee;t[13]===f?ee=t[14]:(ee=C(fT,f),t[13]=f,t[14]=ee);let q;t[15]!==i||t[16]!==T||t[17]!==S||t[18]!==n||t[19]!==x||t[20]!==P||t[21]!==N||t[22]!==r||t[23]!==b||t[24]!==V||t[25]!==ee||t[26]!==W||t[27]!==G||t[28]!==K?(q=(0,$.jsx)(`input`,{ref:x,id:n,name:r,"aria-describedby":i,"aria-invalid":W,type:P,autoComplete:T,spellCheck:!1,disabled:S,readOnly:V,value:N,placeholder:G,onChange:K,onKeyDown:b,className:ee}),t[15]=i,t[16]=T,t[17]=S,t[18]=n,t[19]=x,t[20]=P,t[21]=N,t[22]=r,t[23]=b,t[24]=V,t[25]=ee,t[26]=W,t[27]=G,t[28]=K,t[29]=q):q=t[29];let te;t[30]!==M||t[31]!==I||t[32]!==L||t[33]!==S||t[34]!==p.copied||t[35]!==p.copy?(te=I?(0,$.jsx)(`button`,{type:`button`,className:C(`rounded p-1.5 text-fg-subtle hover:bg-surface-hover hover:text-fg`,aT.transition,aT.press,aT.focusRingPanel),title:M?p.copied:p.copy,"aria-label":M?p.copied:p.copy,disabled:S,onClick:()=>void L(),children:M?(0,$.jsx)(Bo,{className:`size-3.5`}):(0,$.jsx)(tl,{className:`size-3.5`})}):null,t[30]=M,t[31]=I,t[32]=L,t[33]=S,t[34]=p.copied,t[35]=p.copy,t[36]=te):te=t[36];let ne;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(ne=C(`rounded p-1.5 text-fg-subtle hover:bg-surface-hover hover:text-fg disabled:opacity-40`,aT.transition,aT.press,aT.focusRingPanel),t[37]=ne):ne=t[37];let re=O?p.hide:p.show,ie=O?p.hide:p.show,ae=S||B,oe;t[38]===R?oe=t[39]:(oe=()=>void R(),t[38]=R,t[39]=oe);let se;t[40]!==A||t[41]!==O?(se=A?(0,$.jsx)(Zg,{className:`size-3.5 animate-spin`,"aria-hidden":!0}):O?(0,$.jsx)(Ru,{className:`size-3.5`,"aria-hidden":!0}):(0,$.jsx)(Bu,{className:`size-3.5`,"aria-hidden":!0}),t[40]=A,t[41]=O,t[42]=se):se=t[42];let J;t[43]!==re||t[44]!==ie||t[45]!==ae||t[46]!==oe||t[47]!==se?(J=(0,$.jsx)(`button`,{type:`button`,className:ne,title:re,"aria-label":ie,disabled:ae,onClick:oe,children:se}),t[43]=re,t[44]=ie,t[45]=ae,t[46]=oe,t[47]=se,t[48]=J):J=t[48];let ce;t[49]!==te||t[50]!==J?(ce=(0,$.jsxs)(`div`,{className:`absolute right-1 top-1/2 flex -translate-y-1/2 gap-0.5`,children:[te,J]}),t[49]=te,t[50]=J,t[51]=ce):ce=t[51];let le;t[52]!==q||t[53]!==ce?(le=(0,$.jsxs)(`div`,{className:`relative min-w-0`,children:[q,ce]}),t[52]=q,t[53]=ce,t[54]=le):le=t[54];let ue;t[55]!==D||t[56]!==_||t[57]!==j||t[58]!==k||t[59]!==O?(ue=D&&O&&k===null&&!j&&_?(0,$.jsx)(`p`,{className:`text-xs text-amber-700 dark:text-amber-400/90`,children:_}):null,t[55]=D,t[56]=_,t[57]=j,t[58]=k,t[59]=O,t[60]=ue):ue=t[60];let de;t[61]===j?de=t[62]:(de=j?(0,$.jsx)(`p`,{className:`text-xs text-red-600 dark:text-red-400`,children:j}):null,t[61]=j,t[62]=de);let fe;return t[63]!==le||t[64]!==ue||t[65]!==de||t[66]!==H||t[67]!==U?(fe=(0,$.jsxs)(`div`,{className:H,children:[U,le,ue,de]}),t[63]=le,t[64]=ue,t[65]=de,t[66]=H,t[67]=U,t[68]=fe):fe=t[68],fe}var mT={show:`Show`,hide:`Hide`,copy:`Copy`,copied:`Copied`};function hT(e){return{show:e.show,hide:e.hide,copy:e.copy,copied:e.copied}}function gT(e){return hT(e)}function _T(e){return{show:e.show,hide:e.hide,copy:`Copy`,copied:`Copied`}}async function vT(e){try{let t=await fetch(z(`/api/config`),{headers:{Authorization:`Bearer ${e}`}});return t.ok?`valid`:t.status===401||t.status===403?`rejected`:`failed`}catch{return`unreachable`}}function yT({baseUrl:e,onSubmit:t,footerLeft:n,className:r,tokenInputRef:i}){let a=I(e=>e.language),o=j(a).token,[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),[d,f]=(0,Z.useState)(!1),p=(0,Z.useRef)(null),m=(0,Z.useCallback)(e=>{p.current=e,typeof i==`function`?i(e):i&&(i.current=e)},[i]);async function h(){let e=s.trim();if(!e){u(a===`zh`?`请输入 Token`:`Please enter a token`),p.current?.focus();return}if(d)return;f(!0);let n=await vT(e);if(f(!1),n!==`valid`){u(n===`rejected`?o.tokenRejected:n===`unreachable`?o.gatewayUnreachable:o.tokenVerificationFailed),p.current?.focus();return}t(e),c(``),u(``)}return(0,$.jsxs)(`form`,{className:C(`flex flex-col gap-3`,r),"aria-busy":d,onSubmit:e=>{e.preventDefault(),h()},children:[e?(0,$.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg-muted`,children:o.gatewayUrl}),(0,$.jsx)(`output`,{className:`truncate rounded-md border border-edge bg-surface-hover px-3 py-2 font-mono text-sm text-fg-muted`,children:e})]}):null,(0,$.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg-muted`,children:a===`zh`?`网关访问凭据`:`Gateway access credential`}),(0,$.jsx)(pT,{id:`gateway-token`,name:`gateway-token`,inputRef:m,value:s,disabled:d,ariaDescribedBy:l?`gateway-token-error`:void 0,ariaInvalid:!!l,onChange:e=>{c(e),u(``)},placeholder:a===`zh`?`Token 或 Password`:`Token or password`,labels:_T(o)}),l?(0,$.jsx)(`p`,{id:`gateway-token-error`,className:`text-xs text-danger`,role:`alert`,children:l}):null]}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[n,(0,$.jsxs)(Zw,{type:`submit`,variant:`primary`,disabled:d,children:[d?(0,$.jsx)(Zg,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,d?o.connecting:o.save]})]})]})}var bT=[`compact`,`default`,`large`];function xT(e){document.documentElement.dataset.fontScale=e}function ST(){try{let e=localStorage.getItem(`xopc-web-font-scale`),t=`default`;if(e){let n=JSON.parse(e).state?.preference;n&&bT.includes(n)&&(t=n)}xT(t)}catch{xT(`default`)}}var CT=R(U(e=>({preference:`default`,setPreference:t=>{xT(t),e({preference:t})}}),{name:`xopc-web-font-scale`}));function wT(){xT(CT.getState().preference)}var TT=t({Anchor:()=>$T,Arrow:()=>iE,Close:()=>rE,Content:()=>nE,Popover:()=>MT,PopoverAnchor:()=>PT,PopoverArrow:()=>XT,PopoverClose:()=>JT,PopoverContent:()=>HT,PopoverPortal:()=>BT,PopoverTrigger:()=>IT,Portal:()=>tE,Root:()=>QT,Trigger:()=>eE,createPopoverScope:()=>OT}),ET=`Popover`,[DT,OT]=ae(ET,[he]),kT=he(),[AT,jT]=DT(ET),MT=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=kT(t),c=Z.useRef(null),[l,u]=Z.useState(!1),[d,f]=de({prop:r,defaultProp:i??!1,onChange:a,caller:ET});return(0,$.jsx)(ge,{...s,children:(0,$.jsx)(AT,{scope:t,contentId:le(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:Z.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:Z.useCallback(()=>u(!0),[]),onCustomAnchorRemove:Z.useCallback(()=>u(!1),[]),modal:o,children:n})})};MT.displayName=ET;var NT=`PopoverAnchor`,PT=Z.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=jT(NT,n),a=kT(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return Z.useEffect(()=>(o(),()=>s()),[o,s]),(0,$.jsx)(ye,{...a,...r,ref:t})});PT.displayName=NT;var FT=`PopoverTrigger`,IT=Z.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=jT(FT,n),a=kT(n),o=w(t,i.triggerRef),s=(0,$.jsx)(ue.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":ZT(i.open),...r,ref:o,onClick:ie(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,$.jsx)(ye,{asChild:!0,...a,children:s})});IT.displayName=FT;var LT=`PopoverPortal`,[RT,zT]=DT(LT,{forceMount:void 0}),BT=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=jT(LT,t);return(0,$.jsx)(RT,{scope:t,forceMount:n,children:(0,$.jsx)(oe,{present:n||a.open,children:(0,$.jsx)(q,{asChild:!0,container:i,children:r})})})};BT.displayName=LT;var VT=`PopoverContent`,HT=Z.forwardRef((e,t)=>{let n=zT(VT,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=jT(VT,e.__scopePopover);return(0,$.jsx)(oe,{present:r||a.open,children:a.modal?(0,$.jsx)(WT,{...i,ref:t}):(0,$.jsx)(GT,{...i,ref:t})})});HT.displayName=VT;var UT=T(`PopoverContent.RemoveScroll`),WT=Z.forwardRef((e,t)=>{let n=jT(VT,e.__scopePopover),r=Z.useRef(null),i=w(t,r),a=Z.useRef(!1);return Z.useEffect(()=>{let e=r.current;if(e)return ce(e)},[]),(0,$.jsx)(pe,{as:UT,allowPinchZoom:!0,children:(0,$.jsx)(KT,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ie(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ie(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:ie(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),GT=Z.forwardRef((e,t)=>{let n=jT(VT,e.__scopePopover),r=Z.useRef(!1),i=Z.useRef(!1);return(0,$.jsx)(KT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),KT=Z.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=jT(VT,n),p=kT(n);return se(),(0,$.jsx)(te,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,$.jsx)(me,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,$.jsx)(ve,{"data-state":ZT(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),qT=`PopoverClose`,JT=Z.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=jT(qT,n);return(0,$.jsx)(ue.button,{type:`button`,...r,ref:t,onClick:ie(e.onClick,()=>i.onOpenChange(!1))})});JT.displayName=qT;var YT=`PopoverArrow`,XT=Z.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=kT(n);return(0,$.jsx)(_e,{...i,...r,ref:t})});XT.displayName=YT;function ZT(e){return e?`open`:`closed`}var QT=MT,$T=PT,eE=IT,tE=BT,nE=HT,rE=JT,iE=XT,aE=`(max-width: 1199px)`,oE=`z-[58]`,sE=`z-[75]`,cE=`z-[76]`,lE=`z-[74]`,uE=`z-[77]`,dE=`z-[300]`;function fE(e,t=!1){if(!t)return dE;switch(e){case`modal`:return uE;case`page`:return lE;default:return`z-50`}}var pE=(0,Z.createContext)({layer:`default`,portalContainer:null});function mE(e,t){return e===`modal`||t===`modal`?`modal`:e===`page`||t===`page`?`page`:`default`}function hE(e){let t=(0,Q.c)(9),{layer:n,portalContainer:r,children:i}=e,a=(0,Z.useContext)(pE),o;t[0]!==n||t[1]!==a.layer?(o=mE(a.layer,n),t[0]=n,t[1]=a.layer,t[2]=o):o=t[2];let s=o,c=r??a.portalContainer,l;t[3]!==s||t[4]!==c?(l={layer:s,portalContainer:c},t[3]=s,t[4]=c,t[5]=l):l=t[5];let u;return t[6]!==i||t[7]!==l?(u=(0,$.jsx)(pE.Provider,{value:l,children:i}),t[6]=i,t[7]=l,t[8]=u):u=t[8],u}function gE(){return(0,Z.useContext)(pE).layer}function _E(){return(0,Z.useContext)(pE).portalContainer}function vE({value:e,options:t,placeholder:n,allowEmpty:r=!0,emptyLabel:i=n,emptyDisabled:a=!1,disabledValues:o,disabled:s,id:c,ariaLabel:l,ariaLabelledBy:u,title:d,triggerClassName:f,contentClassName:p,side:m=`bottom`,align:h=`start`,onChange:g}){let[_,v]=(0,Z.useState)(!1),y=gE(),b=_E(),x=fE(y,b!==null),w=t.find(t=>t.value===e)?.label??(e?`${e} · unavailable`:n),T;return(0,$.jsxs)(QT,{open:_,onOpenChange:v,children:[(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsxs)(`button`,{id:c,type:`button`,"aria-label":l,"aria-labelledby":u,title:d,disabled:s,className:C(`box-border flex h-10 w-full min-w-0 items-center justify-between gap-2 rounded-lg border border-edge bg-surface-subtle px-3 text-left text-sm font-normal text-fg`,`hover:border-edge-strong focus-visible:outline-none focus-visible:border-edge-strong`,s&&`cursor-not-allowed opacity-50 hover:border-edge`,f),children:[(0,$.jsx)(`span`,{className:C(`min-w-0 truncate`,!e&&`text-fg-subtle`),children:w}),(0,$.jsx)(To,{className:`size-4 shrink-0 text-fg-subtle`,"aria-hidden":`true`})]})}),(0,$.jsx)(tE,{container:b??void 0,children:(0,$.jsx)(nE,{side:m,align:h,sideOffset:4,className:C(x,`w-[var(--radix-popover-trigger-width)] min-w-[16rem] overflow-hidden rounded-lg border border-edge bg-surface-panel p-1 shadow-popover outline-none`,p),children:(0,$.jsxs)(`div`,{className:`max-h-64 overflow-y-auto`,children:[r?(0,$.jsxs)(`button`,{type:`button`,disabled:a,className:C(`flex h-9 w-full items-center gap-2 rounded-md px-2 text-left text-sm text-fg hover:bg-surface-hover`,e===``&&`bg-surface-active font-medium`,a&&`cursor-not-allowed opacity-45 hover:bg-transparent`),onClick:()=>{a||(g(``),v(!1))},children:[(0,$.jsx)(S,{className:C(`size-4 shrink-0`,e!==``&&`invisible`),"aria-hidden":`true`}),(0,$.jsx)(`span`,{className:`min-w-0 truncate text-fg-subtle`,children:i})]}):null,t.map(t=>{let n=t.disabled===!0||o?.has(t.value)===!0&&t.value!==e,r=t.group&&t.group!==T;return T=t.group,(0,$.jsxs)(Z.Fragment,{children:[r?(0,$.jsx)(`div`,{className:`px-2 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wide text-fg-subtle`,children:t.group}):null,(0,$.jsxs)(`button`,{type:`button`,disabled:n,className:C(`flex h-9 w-full items-center gap-2 rounded-md px-2 text-left text-sm text-fg hover:bg-surface-hover`,t.value===e&&`bg-surface-active font-medium`,n&&`cursor-not-allowed opacity-45 hover:bg-transparent`),onClick:()=>{n||(g(t.value),v(!1))},children:[(0,$.jsx)(S,{className:C(`size-4 shrink-0`,t.value!==e&&`invisible`),"aria-hidden":`true`}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:t.label})]})]},`${t.group??``}:${t.value}`)})]})})})]})}function yE(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(yE).join(``):(0,Z.isValidElement)(e)?yE(e.props.children):``}function bE(e,t){let n=[];return Z.Children.forEach(e,e=>{if(!(0,Z.isValidElement)(e))return;if(e.type===Z.Fragment){n.push(...bE(e.props.children,t));return}if(e.type===SE){let t=e.props;n.push(...bE(t.children,yE(t.label)));return}if(e.type!==xE)return;let r=e.props,i=yE(r.children).trim(),a=r.value==null?i:String(r.value);n.push({value:a,label:i,disabled:r.disabled,group:t})}),n}function xE(e){return null}function SE(e){return null}function CE(e){if(!e)return;let t=e.split(/\s+/).filter(Boolean).filter(e=>{let t=e.includes(`:`)?e.slice(e.lastIndexOf(`:`)+1):e;return t===`block`||t===`inline-block`||t===`inline-flex`||t===`flex`||t===`flex-1`||t===`flex-auto`||t===`flex-initial`||t===`flex-none`||t===`grow`||t===`shrink`||t===`min-w-0`||t===`min-h-0`||t.startsWith(`w-`)||t.startsWith(`min-w-`)||t.startsWith(`max-w-`)||t.startsWith(`basis-`)||t.startsWith(`grow-`)||t.startsWith(`shrink-`)||t.startsWith(`self-`)||t.startsWith(`order-`)||t.startsWith(`col-`)||t.startsWith(`row-`)});return t.length===0?void 0:t.join(` `)}function wE(e){let t=(0,Q.c)(66),n,r,i,a,o,s,c,l,u,d,f,p;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],d=t[10],f=t[11],p=t[12]):({align:n,children:r,className:i,contentClassName:a,disabled:o,id:s,onChange:c,placeholder:l,side:d,triggerClassName:f,value:p,...u}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p);let m=(0,Z.useId)(),h=p==null?``:String(p),g,_,v,y,b,x,S,w,T,E;if(t[13]!==r||t[14]!==i||t[15]!==o||t[16]!==m||t[17]!==s||t[18]!==l||t[19]!==u.name||t[20]!==h){let e=bE(r);y=e.find(EE),_=y!==void 0,v=y?.label||l||``,w=o||void 0,t[31]===i?T=t[32]:(T=CE(i),t[31]=i,t[32]=T),E=u.name,g=vE,b=s??m,x=h,S=e.filter(TE),t[13]=r,t[14]=i,t[15]=o,t[16]=m,t[17]=s,t[18]=l,t[19]=u.name,t[20]=h,t[21]=g,t[22]=_,t[23]=v,t[24]=y,t[25]=b,t[26]=x,t[27]=S,t[28]=w,t[29]=T,t[30]=E}else g=t[21],_=t[22],v=t[23],y=t[24],b=t[25],x=t[26],S=t[27],w=t[28],T=t[29],E=t[30];let D=l??v,O=y?.disabled===!0,k=u[`aria-label`],A=u[`aria-labelledby`],j=u.title,M;t[33]!==i||t[34]!==f?(M=C(i,f),t[33]=i,t[34]=f,t[35]=M):M=t[35];let N;t[36]===c?N=t[37]:(N=e=>c?.({target:{value:e},currentTarget:{value:e}}),t[36]=c,t[37]=N);let P;t[38]!==g||t[39]!==n||t[40]!==_||t[41]!==a||t[42]!==o||t[43]!==v||t[44]!==u.title||t[45]!==d||t[46]!==b||t[47]!==A||t[48]!==M||t[49]!==N||t[50]!==x||t[51]!==S||t[52]!==D||t[53]!==O||t[54]!==k?(P=(0,$.jsx)(g,{id:b,value:x,options:S,placeholder:D,allowEmpty:_,emptyLabel:v,emptyDisabled:O,disabled:o,ariaLabel:k,ariaLabelledBy:A,title:j,side:d,align:n,triggerClassName:M,contentClassName:a,onChange:N}),t[38]=g,t[39]=n,t[40]=_,t[41]=a,t[42]=o,t[43]=v,t[44]=u.title,t[45]=d,t[46]=b,t[47]=A,t[48]=M,t[49]=N,t[50]=x,t[51]=S,t[52]=D,t[53]=O,t[54]=k,t[55]=P):P=t[55];let F;t[56]!==o||t[57]!==u.name||t[58]!==h?(F=(0,$.jsx)(`input`,{name:u.name,value:h,readOnly:!0,hidden:!0,disabled:o}),t[56]=o,t[57]=u.name,t[58]=h,t[59]=F):F=t[59];let I;return t[60]!==P||t[61]!==F||t[62]!==w||t[63]!==T||t[64]!==E?(I=(0,$.jsxs)(`div`,{"aria-disabled":w,className:T,"data-select-name":E,children:[P,F]}),t[60]=P,t[61]=F,t[62]=w,t[63]=T,t[64]=E,t[65]=I):I=t[65],I}function TE(e){return e.value!==``}function EE(e){return e.value===``}var DE=[`language`,`theme`,`font`];function OE(e){let t=(0,Q.c)(56),{variant:n,sections:r}=e,i=r===void 0?DE:r,a=I(PE),o=I(NE),s=W(ME),c=W(jE),l=CT(AE),u=CT(kE),d;t[0]===a?d=t[1]:(d=j(a),t[0]=a,t[1]=d);let f=d.appearanceSettings,p=n===`page`?`w-full max-w-[min(100%,12rem)] shrink-0 sm:ml-auto sm:w-auto sm:max-w-[11rem]`:n===`toolbar`?`w-auto min-w-[6.5rem] max-w-[10rem] shrink-0 sm:min-w-[7.5rem]`:`w-full`,m;t[2]===p?m=t[3]:(m=C($w,p),t[2]=p,t[3]=m);let h=m,g=n===`page`?`flex flex-col gap-2 border-b border-edge-subtle py-3.5 last:border-b-0 sm:flex-row sm:items-center sm:justify-between sm:gap-6 sm:py-4`:`flex flex-col gap-1.5`,_;t[4]===i?_=t[5]:(_=e=>i.includes(e),t[4]=i,t[5]=_);let v=_;if(n===`toolbar`){let e;t[6]!==f||t[7]!==a||t[8]!==h||t[9]!==o||t[10]!==v?(e=v(`language`)?(0,$.jsxs)(wE,{className:h,value:a,"aria-label":f.languageTitle,onChange:e=>o(e.target.value),children:[(0,$.jsx)(xE,{value:`en`,children:f.langOptionEn}),(0,$.jsx)(xE,{value:`zh`,children:f.langOptionZh})]}):null,t[6]=f,t[7]=a,t[8]=h,t[9]=o,t[10]=v,t[11]=e):e=t[11];let n;t[12]!==f||t[13]!==h||t[14]!==c||t[15]!==v||t[16]!==s?(n=v(`theme`)?(0,$.jsxs)(wE,{className:h,value:s,"aria-label":f.themeTitle,onChange:e=>c(e.target.value),children:[(0,$.jsx)(xE,{value:`light`,children:f.themeOptionLight}),(0,$.jsx)(xE,{value:`dark`,children:f.themeOptionDark}),(0,$.jsx)(xE,{value:`system`,children:f.themeOptionSystem})]}):null,t[12]=f,t[13]=h,t[14]=c,t[15]=v,t[16]=s,t[17]=n):n=t[17];let r;t[18]!==f||t[19]!==l||t[20]!==h||t[21]!==u||t[22]!==v?(r=v(`font`)?(0,$.jsxs)(wE,{className:h,value:l,"aria-label":f.fontScaleTitle,onChange:e=>u(e.target.value),children:[(0,$.jsx)(xE,{value:`compact`,children:f.fontScaleCompact}),(0,$.jsx)(xE,{value:`default`,children:f.fontScaleDefault}),(0,$.jsx)(xE,{value:`large`,children:f.fontScaleLarge})]}):null,t[18]=f,t[19]=l,t[20]=h,t[21]=u,t[22]=v,t[23]=r):r=t[23];let i;return t[24]!==e||t[25]!==n||t[26]!==r?(i=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[e,n,r]}),t[24]=e,t[25]=n,t[26]=r,t[27]=i):i=t[27],i}let y=n===`sidebar`&&`flex flex-col gap-4`,b;t[28]===y?b=t[29]:(b=C(y),t[28]=y,t[29]=b);let x;t[30]!==f||t[31]!==a||t[32]!==g||t[33]!==h||t[34]!==o||t[35]!==v?(x=v(`language`)?(0,$.jsxs)(`div`,{className:g,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:f.languageTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.languageDescription})]}),(0,$.jsxs)(wE,{className:h,value:a,"aria-label":f.languageTitle,onChange:e=>o(e.target.value),children:[(0,$.jsx)(xE,{value:`en`,children:f.langOptionEn}),(0,$.jsx)(xE,{value:`zh`,children:f.langOptionZh})]})]}):null,t[30]=f,t[31]=a,t[32]=g,t[33]=h,t[34]=o,t[35]=v,t[36]=x):x=t[36];let S;t[37]!==f||t[38]!==g||t[39]!==h||t[40]!==c||t[41]!==v||t[42]!==s?(S=v(`theme`)?(0,$.jsxs)(`div`,{className:g,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:f.themeTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.themeDescription})]}),(0,$.jsxs)(wE,{className:h,value:s,"aria-label":f.themeTitle,onChange:e=>c(e.target.value),children:[(0,$.jsx)(xE,{value:`light`,children:f.themeOptionLight}),(0,$.jsx)(xE,{value:`dark`,children:f.themeOptionDark}),(0,$.jsx)(xE,{value:`system`,children:f.themeOptionSystem})]})]}):null,t[37]=f,t[38]=g,t[39]=h,t[40]=c,t[41]=v,t[42]=s,t[43]=S):S=t[43];let w;t[44]!==f||t[45]!==l||t[46]!==g||t[47]!==h||t[48]!==u||t[49]!==v?(w=v(`font`)?(0,$.jsxs)(`div`,{className:g,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:f.fontScaleTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.fontScaleDescription})]}),(0,$.jsxs)(wE,{className:h,value:l,"aria-label":f.fontScaleTitle,onChange:e=>u(e.target.value),children:[(0,$.jsx)(xE,{value:`compact`,children:f.fontScaleCompact}),(0,$.jsx)(xE,{value:`default`,children:f.fontScaleDefault}),(0,$.jsx)(xE,{value:`large`,children:f.fontScaleLarge})]})]}):null,t[44]=f,t[45]=l,t[46]=g,t[47]=h,t[48]=u,t[49]=v,t[50]=w):w=t[50];let T;return t[51]!==w||t[52]!==b||t[53]!==x||t[54]!==S?(T=(0,$.jsxs)(`div`,{className:b,children:[x,S,w]}),t[51]=w,t[52]=b,t[53]=x,t[54]=S,t[55]=T):T=t[55],T}function kE(e){return e.setPreference}function AE(e){return e.preference}function jE(e){return e.setPreference}function ME(e){return e.preference}function NE(e){return e.setLanguage}function PE(e){return e.language}var FE={settingsOverview:`overview`,settingsAppearance:`appearance`,settingsKeyboardShortcuts:`keyboard-shortcuts`,settingsSystem:`system`,settingsDesktopPet:`desktop-pet`,settingsDesktopApp:`desktop-app`,settingsCapabilityPresets:`capability-presets`,settingsChannels:`channels`,settingsGateway:`gateway`,settingsRuntimes:`runtimes`,settingsDevices:`devices`,settingsHeartbeat:`heartbeat`,settingsTunnel:`remote-access`,settingsShares:`shares`,skills:`skills`,channels:`channels`};function IE(e){return FE[e]??null}var LE=new Set([`settingsSystem`,`settingsDesktopPet`,`settingsDesktopApp`]),RE={id:`system`,tabs:[`settingsSystem`,`settingsDesktopPet`,`settingsDesktopApp`]},zE=[{id:`general`,tabs:[`settingsOverview`,`settingsAppearance`,`settingsKeyboardShortcuts`]},{id:`capabilities`,tabs:[`settingsCapabilities`]},{id:`agent`,tabs:[`settingsCapabilityPresets`,`settingsAgentBrowser`]},{id:`connection`,tabs:[`settingsDevices`,`settingsGateway`,`settingsRuntimes`,`settingsTunnel`,`settingsShares`]},{id:`automation`,tabs:[`settingsHeartbeat`]},{id:`diagnostics`,tabs:[`sessions`,`logs`]}],BE=`https://xopcai.github.io/xopc`;function VE(e){return e===`zh`?`${BE}/zh/`:`${BE}/`}function HE(e,t){let n=t.replace(/^\/+/,``).replace(/\.md$/,``);return e===`zh`?`${BE}/zh/${n}`:`${BE}/${n}`}function UE(e,t){let n=HE(e,`remote-access`);return t?`${n}#${t}`:n}function WE(e){return`${HE(e,`tools`)}#browser-optional`}function GE(e){if(e===`chat`)return`/chat`;if(e===`agents`)return`/agents`;if(e===`automations`)return`/automations`;if(e===`settingsKeyboardShortcuts`)return`/settings/keyboard-shortcuts`;if(e===`skills`)return`/skills`;if(e===`connectors`)return`/connectors`;if(e===`channels`||e===`settingsChannels`)return`/channels`;if(e===`settingsAgentBrowser`)return`/settings/agent-browser`;if(e===`settingsCapabilities`)return qE(`models`);let t=IE(e);return t?`/settings/${t}`:e===`sessions`||e===`logs`?`/settings/${e}`:`/${e}`}var KE=[`models`,`image`,`voice`,`search`];function qE(e){return`/settings/capabilities/${e}`}function JE(){let e=(0,Q.c)(49),t=F(QE),n=F(ZE),r=F(XE),i=I(YE),a;e[0]===i?a=e[1]:(a=j(i),e[0]=i,e[1]=a);let o=a,s=o.gatewayLanding,c=o.appearanceSettings.pageTitle,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(OE,{variant:`toolbar`,sections:[`language`,`theme`]}),e[2]=l):l=e[2];let u;e[3]===c?u=e[4]:(u=(0,$.jsx)(`div`,{className:`flex h-14 shrink-0 items-center justify-end px-3 sm:px-4 ${qe}`,children:(0,$.jsx)(`div`,{className:Je,role:`group`,"aria-label":c,children:l})}),e[3]=c,e[4]=u);let d;e[5]===o.appBrand?d=e[6]:(d=(0,$.jsx)(Yw,{className:`size-14 shrink-0`,alt:o.appBrand}),e[5]=o.appBrand,e[6]=d);let f;e[7]===s.headline?f=e[8]:(f=(0,$.jsx)(`h1`,{className:`text-balance text-xl font-semibold tracking-tight text-fg`,children:s.headline}),e[7]=s.headline,e[8]=f);let p;e[9]===s.subline?p=e[10]:(p=(0,$.jsx)(`p`,{className:`max-w-md text-sm leading-relaxed text-fg-muted`,children:s.subline}),e[9]=s.subline,e[10]=p);let m;e[11]!==d||e[12]!==f||e[13]!==p?(m=(0,$.jsxs)(`div`,{className:`flex flex-col items-center gap-2 text-center`,children:[d,f,p]}),e[11]=d,e[12]=f,e[13]=p,e[14]=m):m=e[14];let h;e[15]!==s.sessionExpired||e[16]!==n?(h=n?(0,$.jsx)(`div`,{className:`mt-5 rounded-lg border border-danger/30 bg-danger/10 px-3 py-2.5 text-sm text-fg`,role:`status`,children:s.sessionExpired}):null,e[15]=s.sessionExpired,e[16]=n,e[17]=h):h=e[17];let g;e[18]!==t||e[19]!==r?(g=(0,$.jsx)(yT,{baseUrl:t,onSubmit:r,className:`mt-6`}),e[18]=t,e[19]=r,e[20]=g):g=e[20];let _;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(fo,{className:`size-4 shrink-0 transition-transform duration-150 group-open:rotate-180`,"aria-hidden":!0}),e[21]=_):_=e[21];let v;e[22]===s.tokenHelpSummary?v=e[23]:(v=(0,$.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center justify-between gap-3 font-medium text-fg hover:text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[s.tokenHelpSummary,_]}),e[22]=s.tokenHelpSummary,e[23]=v);let y;e[24]===s.tokenHelpOnboard?y=e[25]:(y=(0,$.jsx)(`p`,{children:s.tokenHelpOnboard}),e[24]=s.tokenHelpOnboard,e[25]=y);let b;e[26]===s.tokenHelpLink?b=e[27]:(b=(0,$.jsx)(`p`,{children:s.tokenHelpLink}),e[26]=s.tokenHelpLink,e[27]=b);let x;e[28]!==y||e[29]!==b?(x=(0,$.jsxs)(`div`,{className:`mt-3 space-y-2 leading-relaxed`,children:[y,b]}),e[28]=y,e[29]=b,e[30]=x):x=e[30];let S;e[31]!==v||e[32]!==x?(S=(0,$.jsxs)(`details`,{className:`group mt-6 border-t border-edge-subtle pt-4 text-sm text-fg-muted`,children:[v,x]}),e[31]=v,e[32]=x,e[33]=S):S=e[33];let C;e[34]===i?C=e[35]:(C=HE(i,`gateway`),e[34]=i,e[35]=C);let w;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(Iu,{className:`size-3.5 opacity-80`,"aria-hidden":!0}),e[36]=w):w=e[36];let T;e[37]!==s.docsGatewayLink||e[38]!==C?(T=(0,$.jsx)(`div`,{className:`mt-5 flex justify-center text-sm`,children:(0,$.jsxs)(`a`,{href:C,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-accent hover:underline`,children:[s.docsGatewayLink,w]})}),e[37]=s.docsGatewayLink,e[38]=C,e[39]=T):T=e[39];let E;e[40]!==S||e[41]!==T||e[42]!==m||e[43]!==h||e[44]!==g?(E=(0,$.jsx)(`main`,{id:`app-main-content`,className:`flex flex-1 flex-col items-center justify-center px-4 py-10 sm:px-6`,children:(0,$.jsxs)(`div`,{className:`w-full max-w-md rounded-xl border border-edge bg-surface-panel p-6 shadow-popover sm:p-8`,children:[m,h,g,S,T]})}),e[40]=S,e[41]=T,e[42]=m,e[43]=h,e[44]=g,e[45]=E):E=e[45];let D;return e[46]!==E||e[47]!==u?(D=(0,$.jsxs)(`div`,{className:`relative flex min-h-full flex-1 flex-col bg-surface-base`,children:[u,E]}),e[46]=E,e[47]=u,e[48]=D):D=e[48],D}function YE(e){return e.language}function XE(e){return e.setGatewayToken}function ZE(e){return e.tokenExpired}function QE(e){return e.baseUrl}function $E(){return typeof window<`u`&&!!window.electronAPI}function eD(){return $E()?window.electronAPI?.platform??`web`:`web`}function tD({runtime:e,sidebarCollapsed:t,mobileNavOpen:n}){let r=e===`darwin`,i=e===`linux`,a=e===`web`,o=a||i||r&&!t&&!n;return{sidebarChromeVisible:o||n,sidebarQuickActionsVisible:o,sidebarChromeDraggable:r,sidebarLeadingInsetClass:r?`pl-[88px]`:``,mainHeaderDraggable:r,mainHeaderQuickActionsVisible:(a||i)&&t||r&&t&&!n,mainHeaderLeadingInsetClass:r&&t?`pl-[88px]`:``,collapsedNewChatVisible:a&&t}}var nD=(0,Z.memo)(function(e){let t=(0,Q.c)(8),{className:n}=e,r=I(rD),i;t[0]===r?i=t[1]:(i=j(r),t[0]=r,t[1]=i);let a=i,o;t[2]===n?o=t[3]:(o=C(`size-8 shrink-0 rounded-xl p-0`,Je,n),t[2]=n,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(Iy,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[4]=s):s=t[4];let c;return t[5]!==a.titleBarCommandPalette||t[6]!==o?(c=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:o,title:a.titleBarCommandPalette,"aria-label":a.titleBarCommandPalette,onClick:iD,children:s}),t[5]=a.titleBarCommandPalette,t[6]=o,t[7]=c):c=t[7],c});function rD(e){return e.language}function iD(){return window.dispatchEvent(new CustomEvent(`open-command-palette`))}function aD(e,t,n){if(!e)return{entries:[t],index:0};if(e.entries[e.index]===t)return e;if(n===`PUSH`){let n=[...e.entries.slice(0,e.index+1),t];return{entries:n,index:n.length-1}}if(n===`REPLACE`){let n=[...e.entries];return n[e.index]=t,{entries:n,index:e.index}}let r=e.entries.indexOf(t);return r>=0?{entries:e.entries,index:r}:{entries:[t],index:0}}var oD;function sD(){let e=(0,Q.c)(10),t=u(),n=b(),r;e[0]!==t.key||e[1]!==n?(r=()=>(oD=aD(oD,t.key,n),oD),e[0]=t.key,e[1]=n,e[2]=r):r=e[2];let[i,a]=(0,Z.useState)(r),o,s;e[3]!==t.key||e[4]!==n?(o=()=>{oD=aD(oD,t.key,n),a(oD)},s=[t.key,n],e[3]=t.key,e[4]=n,e[5]=o,e[6]=s):(o=e[5],s=e[6]),(0,Z.useLayoutEffect)(o,s);let c=i.index>0,l=i.index<i.entries.length-1,d;return e[7]!==c||e[8]!==l?(d={canGoBack:c,canGoForward:l},e[7]=c,e[8]=l,e[9]=d):d=e[9],d}var cD=(0,Z.memo)(function(e){let t=(0,Q.c)(24),{className:n}=e,r=I(lD),i;t[0]===r?i=t[1]:(i=j(r),t[0]=r,t[1]=i);let a=i,o=m(),{canGoBack:s,canGoForward:c}=sD();if(!$E())return null;let l;t[2]===n?l=t[3]:(l=C(`flex shrink-0 items-center gap-0.5`,n),t[2]=n,t[3]=l);let u=!s,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=C(`size-7 shrink-0 rounded-md p-0`,Je),t[4]=d):d=t[4];let f;t[5]===o?f=t[6]:(f=()=>o(-1),t[5]=o,t[6]=f);let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(yn,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[7]=p):p=t[7];let h;t[8]!==a.historyBack||t[9]!==u||t[10]!==f?(h=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,disabled:u,className:d,title:a.historyBack,"aria-label":a.historyBack,onClick:f,children:p}),t[8]=a.historyBack,t[9]=u,t[10]=f,t[11]=h):h=t[11];let g=!c,_;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(_=C(`size-7 shrink-0 rounded-md p-0`,Je),t[12]=_):_=t[12];let v;t[13]===o?v=t[14]:(v=()=>o(1),t[13]=o,t[14]=v);let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(bn,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[15]=y):y=t[15];let b;t[16]!==a.historyForward||t[17]!==v||t[18]!==g?(b=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,disabled:g,className:_,title:a.historyForward,"aria-label":a.historyForward,onClick:v,children:y}),t[16]=a.historyForward,t[17]=v,t[18]=g,t[19]=b):b=t[19];let x;return t[20]!==b||t[21]!==l||t[22]!==h?(x=(0,$.jsxs)(`div`,{className:l,children:[h,b]}),t[20]=b,t[21]=l,t[22]=h,t[23]=x):x=t[23],x});function lD(e){return e.language}var uD=(0,Z.memo)(function(e){let t=(0,Q.c)(8),{className:n}=e,r=I(dD),i;t[0]===r?i=t[1]:(i=j(r),t[0]=r,t[1]=i);let a=i.notes,o;t[2]===n?o=t[3]:(o=C(`size-8 shrink-0 rounded-xl p-0`,Je,n),t[2]=n,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(Cb,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[4]=s):s=t[4];let c;return t[5]!==a.quickCapturePlaceholder||t[6]!==o?(c=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:o,title:a.quickCapturePlaceholder,"aria-label":a.quickCapturePlaceholder,onClick:fD,children:s}),t[5]=a.quickCapturePlaceholder,t[6]=o,t[7]=c):c=t[7],c});function dD(e){return e.language}function fD(){return window.dispatchEvent(new CustomEvent(`open-quick-capture`))}var pD=`xopc-web-sidebar-collapsed`,mD=`xopc-web-sidebar-expanded-width-px`;function hD(){try{return globalThis.localStorage?.getItem(pD)===`1`}catch{return!1}}function gD(e){try{globalThis.localStorage?.setItem(pD,e?`1`:`0`)}catch{}}function _D(e){return Math.min(480,Math.max(248,Math.round(e)))}function vD(){try{let e=globalThis.localStorage?.getItem(mD);if(e==null)return _D(256);let t=Number.parseInt(e,10);return _D(Number.isFinite(t)?t:256)}catch{return _D(256)}}function yD(e){try{globalThis.localStorage?.setItem(mD,String(e))}catch{}}var bD=R((e,t)=>({collapsed:hD(),setCollapsed:t=>{e({collapsed:t}),queueMicrotask(()=>gD(t))},toggleCollapsed:()=>{t().setCollapsed(!t().collapsed)},expandedWidthPx:vD(),setExpandedWidthPx:n=>{let r=_D(n);t().expandedWidthPx!==r&&(e({expandedWidthPx:r}),queueMicrotask(()=>yD(r)))}})),xD=(0,Z.memo)(function(e){let t=(0,Q.c)(15),{variant:n,className:r}=e,i=n===void 0?`sidebar`:n,a=I(SD),o;t[0]===a?o=t[1]:(o=j(a),t[0]=a,t[1]=o);let s=o,c=bD(CD),l=bD(wD),u=i===`sidebar`?`hidden md:inline-flex`:`inline-flex`,d;t[2]!==r||t[3]!==u?(d=C(`size-8 shrink-0 rounded-xl p-0`,u,Je,r),t[2]=r,t[3]=u,t[4]=d):d=t[4];let f=!c,p=c?s.sidebarExpand:s.sidebarCollapse,m;t[5]===l?m=t[6]:(m=()=>l(),t[5]=l,t[6]=m);let h;t[7]===c?h=t[8]:(h=c?(0,$.jsx)(uy,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}):(0,$.jsx)(ly,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[7]=c,t[8]=h);let g;return t[9]!==d||t[10]!==f||t[11]!==p||t[12]!==m||t[13]!==h?(g=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:d,"aria-expanded":f,"aria-controls":`app-sidebar`,"aria-label":p,onClick:m,children:h}),t[9]=d,t[10]=f,t[11]=p,t[12]=m,t[13]=h,t[14]=g):g=t[14],g});function SD(e){return e.language}function CD(e){return e.collapsed}function wD(e){return e.toggleCollapsed}var TD=(0,Z.memo)(function(e){let t=(0,Q.c)(10),{sidebarToggleVariant:n,className:r}=e,i;t[0]===r?i=t[1]:(i=C(`flex min-w-0 shrink-0 items-center gap-0.5`,r),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,$.jsx)(xD,{variant:n}),t[2]=n,t[3]=a);let o,s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsx)(uD,{}),s=(0,$.jsx)(nD,{}),c=(0,$.jsx)(cD,{}),t[4]=o,t[5]=s,t[6]=c):(o=t[4],s=t[5],c=t[6]);let l;return t[7]!==i||t[8]!==a?(l=(0,$.jsxs)(`div`,{className:i,children:[a,o,s,c]}),t[7]=i,t[8]=a,t[9]=l):l=t[9],l}),ED=(0,Z.memo)(function(e){let t=(0,Q.c)(4),{className:n}=e,{pathname:r}=u(),i=bD(DD),a=tD({runtime:eD(),sidebarCollapsed:i,mobileNavOpen:!1});if(r.startsWith(`/settings`)||!i||!a.mainHeaderQuickActionsVisible||a.mainHeaderLeadingInsetClass)return null;let o;t[0]===n?o=t[1]:(o=C(`hidden md:flex`,n),t[0]=n,t[1]=o);let s;return t[2]===o?s=t[3]:(s=(0,$.jsx)(TD,{sidebarToggleVariant:`main`,className:o}),t[2]=o,t[3]=s),s});function DD(e){return e.collapsed}var OD=R(e=>({mobileNavOpen:!1,setMobileNavOpen:t=>e({mobileNavOpen:t}),toggleMobileNav:()=>e(e=>({mobileNavOpen:!e.mobileNavOpen}))})),kD=(0,Z.memo)(function(){let e=(0,Q.c)(12),t=I(AD),n;e[0]===t?n=e[1]:(n=j(t),e[0]=t,e[1]=n);let r=n,i=OD(jD),a=OD(MD),o=i&&`hidden`,s;e[2]===o?s=e[3]:(s=C(`size-8 shrink-0 rounded-xl p-0 md:hidden`,Je,o),e[2]=o,e[3]=s);let c;e[4]===a?c=e[5]:(c=()=>a(!0),e[4]=a,e[5]=c);let l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(Z_,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),e[6]=l):l=e[6];let u;return e[7]!==r.openMenu||e[8]!==i||e[9]!==s||e[10]!==c?(u=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:s,"aria-expanded":i,"aria-controls":`app-sidebar`,"aria-label":r.openMenu,title:r.openMenu,onClick:c,children:l}),e[7]=r.openMenu,e[8]=i,e[9]=s,e[10]=c,e[11]=u):u=e[11],u});function AD(e){return e.language}function jD(e){return e.mobileNavOpen}function MD(e){return e.setMobileNavOpen}var ND=`Dialog`,[PD,Use]=ae(ND),[FD,ID]=PD(ND),LD=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=Z.useRef(null),c=Z.useRef(null),[l,u]=de({prop:r,defaultProp:i??!1,onChange:a,caller:ND});return(0,$.jsx)(FD,{scope:t,triggerRef:s,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:l,onOpenChange:u,onOpenToggle:Z.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};LD.displayName=ND;var RD=`DialogTrigger`,zD=Z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ID(RD,n),a=w(t,i.triggerRef);return(0,$.jsx)(ue.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":aO(i.open),...r,ref:a,onClick:ie(e.onClick,i.onOpenToggle)})});zD.displayName=RD;var BD=`DialogPortal`,[VD,HD]=PD(BD,{forceMount:void 0}),UD=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=ID(BD,t);return(0,$.jsx)(VD,{scope:t,forceMount:n,children:Z.Children.map(r,e=>(0,$.jsx)(oe,{present:n||a.open,children:(0,$.jsx)(q,{asChild:!0,container:i,children:e})}))})};UD.displayName=BD;var WD=`DialogOverlay`,GD=Z.forwardRef((e,t)=>{let n=HD(WD,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ID(WD,e.__scopeDialog);return a.modal?(0,$.jsx)(oe,{present:r||a.open,children:(0,$.jsx)(qD,{...i,ref:t})}):null});GD.displayName=WD;var KD=T(`DialogOverlay.RemoveScroll`),qD=Z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ID(WD,n),a=w(t,ne());return(0,$.jsx)(pe,{as:KD,allowPinchZoom:!0,shards:[i.contentRef],children:(0,$.jsx)(ue.div,{"data-state":aO(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})}),JD=`DialogContent`,YD=Z.forwardRef((e,t)=>{let n=HD(JD,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ID(JD,e.__scopeDialog);return(0,$.jsx)(oe,{present:r||a.open,children:a.modal?(0,$.jsx)(XD,{...i,ref:t}):(0,$.jsx)(ZD,{...i,ref:t})})});YD.displayName=JD;var XD=Z.forwardRef((e,t)=>{let n=ID(JD,e.__scopeDialog),r=Z.useRef(null),i=w(t,n.contentRef,r);return Z.useEffect(()=>{let e=r.current;if(e)return ce(e)},[]),(0,$.jsx)(QD,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:ie(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ie(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:ie(e.onFocusOutside,e=>e.preventDefault())})}),ZD=Z.forwardRef((e,t)=>{let n=ID(JD,e.__scopeDialog),r=Z.useRef(!1),i=Z.useRef(!1);return(0,$.jsx)(QD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),QD=Z.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=ID(JD,n);return se(),(0,$.jsx)($.Fragment,{children:(0,$.jsx)(te,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,$.jsx)(me,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":aO(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),$D=`DialogTitle`,eO=Z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ID($D,n);return(0,$.jsx)(ue.h2,{id:i.titleId,...r,ref:t})});eO.displayName=$D;var tO=`DialogDescription`,nO=Z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ID(tO,n);return(0,$.jsx)(ue.p,{id:i.descriptionId,...r,ref:t})});nO.displayName=tO;var rO=`DialogClose`,iO=Z.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ID(rO,n);return(0,$.jsx)(ue.button,{type:`button`,...r,ref:t,onClick:ie(e.onClick,()=>i.onOpenChange(!1))})});iO.displayName=rO;function aO(e){return e?`open`:`closed`}var oO=()=>c(()=>import(`./sessions-page-BCfCh4My.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),sO=()=>c(()=>import(`./automations-page-XyDat125.js`),__vite__mapDeps([15,1,2,3,4,5,6,7,8,16,10,11,17,18])),cO=()=>c(()=>import(`./browser-workflows-page-BEu3E0et.js`),__vite__mapDeps([19,1,2,3,4,6,7,18])),lO=()=>c(()=>import(`./home-page-BFoD6047.js`),__vite__mapDeps([20,1,2,3,4,10,11,6,7,8,21])),uO=()=>c(()=>import(`./task-detail-page-DsM13-cy.js`),__vite__mapDeps([22,1,2,3,4,6,7,23,10,11,8])),dO=()=>c(()=>import(`./projects-page-DckZKlBI.js`),__vite__mapDeps([24,1,2,3,4,6,7,8])),fO=()=>c(()=>import(`./project-detail-page-DnJXSuM4.js`),__vite__mapDeps([25,1,26,2,27,5,28,3,4,10,11,6,7,8,9,12,29,30,31,32,33,34,23,35])),pO=()=>c(()=>import(`./notes-page-BDzuL2I9.js`),__vite__mapDeps([36,2,1,3,4,29,5,6,7,8,30,31])),mO=()=>c(()=>import(`./workflows-page-B9-PLmlX.js`),__vite__mapDeps([37,1,26,2,27,5,28,3,4,10,11,6,7,8,12,17,35])),hO=()=>c(()=>import(`./skills-page-lE1-YRdK.js`),__vite__mapDeps([38,1,4,2,3,6,7,8,12,39,33,34])),gO=()=>c(()=>import(`./user-context-page-D-VEOt2A.js`),__vite__mapDeps([40,1,2,3,4,5,6,7,9,10,11,8,12,41])),_O=()=>c(()=>import(`./connectors-page-NUs-Zf7F.js`),__vite__mapDeps([42,1,2,3,4,10,11,6,7,8,12,41,35])),vO=()=>c(()=>import(`./logs-page--6v8qq6y.js`),__vite__mapDeps([43,1,2,3,4,6,7,8,35])),yO=()=>c(()=>import(`./settings-page-C1zxCpqB.js`),__vite__mapDeps([44,1,2,3,4,6,7])),bO=()=>c(()=>import(`./agents-Baxfj44y.js`),__vite__mapDeps([45,1,46,2,3,4,5,6,7,8,47,48,49,9,10,11,12,32,50,51,52,14,53,54,30,31])),xO=()=>c(()=>import(`./browser-settings-page-CrYNMR4w.js`),__vite__mapDeps([55,1,2,3,4,6,7,8,9,10,11,12,51,56,13,14,53,54,35])),SO=()=>c(()=>import(`./channels-settings-Ds9BJbcY.js`),__vite__mapDeps([57,1,2,3,4,5,6,7,8,58,59,60,52,53,54])),CO=()=>c(()=>import(`./apps-page-0uCxKyE5.js`),__vite__mapDeps([61,1,2,3,4,5,10,11,6,7,8,12])),wO=()=>c(()=>import(`./extension-page-DAKjpNwd.js`),__vite__mapDeps([62,1,2,3,4])),TO=()=>c(()=>import(`./extension-settings-page-BLSNdlgd.js`),__vite__mapDeps([63,1,2,3,4,5,6,7,8,9,10,11,59,53,64])),EO=()=>c(()=>import(`./extension-debug-page-CD73euAM.js`),__vite__mapDeps([65,1,2,6,7])),DO=()=>c(()=>import(`./share-preview-page-DU8L68A5.js`),__vite__mapDeps([66,1,4,2,3,6,7])),OO=()=>c(()=>import(`./local-apps-page-DIWkFa3g.js`),__vite__mapDeps([67,1,2,3,4,5,6,7,68])),kO=()=>c(()=>import(`./local-app-workbench-page-D5uL2_Fd.js`),__vite__mapDeps([69,1,2,3,4,5,10,11,6,7,68])),AO=()=>c(()=>import(`./product-open-page-Bwx_CQht.js`),__vite__mapDeps([70,2,1,3,4,5,6,7,71,72,68])),jO=()=>c(()=>import(`./work-discovery-page-D77opady.js`),__vite__mapDeps([73,1,2,3,4,10,11,6,7,8])),MO=()=>c(()=>import(`./work-discovery-overlay-DPbujsp3.js`),__vite__mapDeps([74,1,2,6,7,73,3,4,10,11,8])),NO=()=>c(()=>import(`./setup-status-panel-BcHdpmFf.js`),__vite__mapDeps([75,1,2,3,4,5,6,7,8,14,53,54])),PO=()=>c(()=>import(`./appearance-settings-D8Cd5vDP.js`),__vite__mapDeps([76,1,2,6,7,8,13,54,30,31])),FO=()=>c(()=>import(`./keyboard-shortcuts-settings-HMhxgOuD.js`),__vite__mapDeps([77,1,2,6,7,8,54])),IO=()=>c(()=>import(`./system-settings-panel-CVDsiPKn.js`),__vite__mapDeps([78,1,2,6,7,8,14,54])),LO=()=>c(()=>import(`./desktop-pet-settings-CCjT1bdo.js`),__vite__mapDeps([79,1,2,3,4,6,7,8,80,54])),RO=()=>c(()=>import(`./app-management-settings-panel-S8LhoD6G.js`),__vite__mapDeps([81,1,2,5,6,7,8,14,53,54,35])),zO=()=>c(()=>import(`./capabilities-settings-panel-CvMcDhGf.js`),__vite__mapDeps([82,1,2,3,4,5,6,7,8,9,10,11,12,13,14,53,54,64])),BO=()=>c(()=>import(`./gateway-settings-CvgH8IJI.js`),__vite__mapDeps([83,1,2,3,4,5,6,7,8,12,56,13,14,53,54])),VO=()=>c(()=>import(`./runtime-tools-settings-panel-Fe05Nus6.js`),__vite__mapDeps([84,1,2,5,6,7,53,54,8])),HO=()=>c(()=>import(`./heartbeat-settings-SPpnqbjl.js`),__vite__mapDeps([85,1,2,3,4,5,6,7,8,16,10,11,9,12,52,60,53,54])),UO=()=>c(()=>import(`./remote-access-hub-CfbUHBUH.js`),__vite__mapDeps([86,1,2,3,4,5,10,11,6,7,8,58,12,13,14,54,35])),WO=()=>c(()=>import(`./shares-settings-kjTqH9yY.js`),__vite__mapDeps([87,1,2,3,4,5,10,11,6,7,8,12,14,53,54,35])),GO=()=>c(()=>import(`./capability-presets-settings-panel-CHJDY-Ih.js`),__vite__mapDeps([88,1,48,2,3,4,5,6,7,8,49,50,51,14,53,54])),KO=()=>c(()=>import(`./management-settings-DtEuS-kR.js`),__vite__mapDeps([89,1,2,5,6,7,8,53,54])),qO=new Set;function JO(e){qO.has(e)||(qO.add(e),e().catch(()=>{qO.delete(e)}))}function YO(e){let[t]=e.split(/[?#]/,1);return t||`/`}function XO(e){JO(yO);let t=e.slice(10);if(t===`overview`)return JO(NO);if(t===`appearance`)return JO(PO);if(t===`keyboard-shortcuts`)return JO(FO);if(t===`system`)return JO(IO);if(t===`desktop-pet`)return JO(LO);if(t===`desktop-app`)return JO(RO);if(t.startsWith(`capabilities/`))return JO(zO);if(t===`gateway`)return JO(BO);if(t===`runtimes`)return JO(VO);if(t===`devices`)return JO(KO);if(t===`heartbeat`)return JO(HO);if(t===`tunnel`||t===`remote-access`)return JO(UO);if(t===`shares`)return JO(WO);if(t===`capability-presets`)return JO(GO);if(t===`agent-browser`)return JO(xO)}function ZO(e){if(!e.startsWith(`/`))return;let t=YO(e);if(t===`/skills`)return JO(hO);if(t===`/you`)return JO(gO);if(t===`/connectors`)return JO(_O);if(t===`/automations`)return JO(sO);if(t===`/browser-workflows`)return JO(cO);if(t===`/`)return JO(lO);if(t.startsWith(`/tasks/`))return JO(uO);if(t===`/projects`)return JO(dO);if(t.startsWith(`/projects/`))return JO(fO);if(t===`/notes`||t.startsWith(`/notes/`))return JO(pO);if(t===`/workflows`||t.startsWith(`/workflows/`))return JO(mO);if(t===`/channels`||t.startsWith(`/channels/`))return JO(SO);if(t===`/agents`||t.startsWith(`/agents/`))return JO(bO);if(t===`/extensions`)return JO(CO);if(t.startsWith(`/extensions/`))return JO(wO);if(t===`/local-apps`)return JO(OO);if(t.startsWith(`/local-apps/`))return JO(kO);if(t===`/open`)return JO(AO);if(t===`/onboarding/workspace`)return JO(jO);if(t.startsWith(`/share/`))return JO(DO);if(t===`/settings/sessions`)return JO(oO);if(t===`/settings/logs`)return JO(vO);if(t===`/settings/extensions/debug`)return JO(EO);if(t.startsWith(`/settings/ext/`))return JO(TO);if(t.startsWith(`/settings/`))return XO(t)}function QO(){return z(`/api/config`)}var $O=null;async function ek(){return $O||($O=B(QO()).finally(()=>{$O=null}),$O)}function tk(e){let t=(0,Q.c)(6),n;t[0]===e?n=t[1]:(n=e?QO():null,t[0]=e,t[1]=n);let r=n,i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i={revalidateOnFocus:!1},t[2]=i):i=t[2];let a=xe(r,ek,i),o,s;return t[3]===e?(o=t[4],s=t[5]):(o=()=>{if(!e)return;let t=QO(),n=e=>{Te(e.detail)||Ce(t)};return window.addEventListener(`config-reload`,n),()=>window.removeEventListener(`config-reload`,n)},s=[e],t[3]=e,t[4]=o,t[5]=s),(0,Z.useEffect)(o,s),a}function nk(){return Ce(QO())}function rk(){return Intl.DateTimeFormat().resolvedOptions().timeZone||`UTC`}function ik(){return B(z(`/api/you`))}async function ak(){let e=(await ek()).payload?.config,t=e?.userContext?.dreaming,n=e?.userContext?.privacy;return{dreaming:{mode:t?.mode===`off`?`off`:`review`,...typeof t?.timezone==`string`?{timezone:t.timezone}:{},schedule:{time:t?.schedule?.time??`03:00`},minEvidenceSources:t?.minEvidenceSources??2,limit:t?.limit??500},privacy:{sensitiveWritePolicy:n?.sensitiveWritePolicy??`confirm`}}}async function ok(e){await B(z(`/api/config`),{method:`PATCH`,body:JSON.stringify({userContext:e})}),await nk()}async function sk(){return B(z(`/api/you/profile`))}function ck(e){return B(z(`/api/you/profile`),{method:`PATCH`,body:JSON.stringify(e)})}function lk(e){return B(z(`/api/you/understandings`),{method:`POST`,body:JSON.stringify({...e,scope:e.scope??{type:`global`}})})}function uk(e,t){return B(z(`/api/you/understandings/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)})}function dk(e){return B(z(`/api/you/understandings/${encodeURIComponent(e)}`),{method:`DELETE`})}function fk(e){return B(z(`/api/you/rules`),{method:`POST`,body:JSON.stringify({...e,scope:e.scope??{type:`global`}})})}function pk(e,t){return B(z(`/api/you/rules/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)})}function mk(e){return B(z(`/api/you/rules/${encodeURIComponent(e)}`),{method:`DELETE`})}async function hk(){return(await B(z(`/api/understanding/sources/grants`))).grants}function gk(e){return B(z(`/api/understanding/sources/grants/${encodeURIComponent(e)}?deleteDerived=true`),{method:`DELETE`})}function _k(e){return B(z(`/api/understanding/sources/grants/${encodeURIComponent(e)}/refresh`),{method:`POST`})}async function vk(){return(await B(z(`/api/understanding/focuses`))).focuses}function yk(e,t){return B(z(`/api/understanding/focuses/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify({status:t})})}function bk(e){return B(z(`/api/understanding/focuses/${encodeURIComponent(e)}`),{method:`DELETE`})}async function xk(){return B(z(`/api/onboarding/work-discovery`))}async function Sk(){await B(z(`/api/onboarding/work-discovery`),{method:`PATCH`,body:JSON.stringify({status:`dismissed`})})}async function Ck(e){return(await B(z(`/api/work-discovery/preview`),{method:`POST`,body:JSON.stringify({rootPath:e})})).preview}async function wk(){return(await B(z(`/api/work-discovery/candidates`),{method:`POST`})).candidates}async function Tk(e){return(await B(z(`/api/understanding/sources/work-folders`),{method:`POST`,body:JSON.stringify({rootPath:e})})).source}async function Ek(e,t,n){return B(z(`/api/understanding/bootstrap`),{method:`POST`,body:JSON.stringify({items:e,...t?{workDiscoveryRunId:t}:{},sourceCheckpoints:n})})}async function Dk(e){await B(z(`/api/understanding/review`),{method:`POST`,body:JSON.stringify({decisions:e})})}async function Ok(e){return(await B(z(`/api/work-discovery/runs`),{method:`POST`,body:JSON.stringify({rootPath:e,source:`onboarding_selected_directory`,idempotencyKey:crypto.randomUUID()})})).run}async function kk(e,t){return(await B(z(`/api/work-discovery/runs/${encodeURIComponent(e)}/profile`),{method:`POST`,body:JSON.stringify({decisions:t})})).run}async function Ak(e){return(await B(z(`/api/work-discovery/runs/${encodeURIComponent(e)}`))).run}async function jk(e){return(await B(z(`/api/work-discovery/runs/${encodeURIComponent(e)}/cancel`),{method:`POST`})).run}async function Mk(e){return(await B(z(`/api/work-discovery/runs/${encodeURIComponent(e)}/retry`),{method:`POST`})).run}async function Nk(e,t,n){return(await B(z(`/api/work-discovery/runs/${encodeURIComponent(e)}/recognition-feedback`),{method:`POST`,body:JSON.stringify({decision:t,correctedIntent:n})})).run}async function Pk(e,t){await B(z(`/api/work-discovery/runs/${encodeURIComponent(e)}/suggestions/${encodeURIComponent(t)}/select`),{method:`POST`})}function Fk(e,t){return Object.fromEntries(e.map(e=>[e,t]))}function Ik(e,t){let n=Fk(t,`running`);for(let t of e)n[t.sourceId]=t.status;return n}async function Lk(e){if(!e)return;let t=Date.now()+75e3;for(;Date.now()<t;){try{let t=await Ak(e);if(zk.getState().updateDirectoryRun(t),t.status===`completed`||t.status===`failed`||t.status===`canceled`)return}catch{}await new Promise(e=>window.setTimeout(e,800))}}var Rk={status:`idle`,drawerOpen:!1,directoryStatus:`idle`,sources:{},itemCounts:{},memories:[],threads:[],focuses:[],error:void 0},zk=R((e,t)=>({...Rk,setDrawerOpen:n=>{!n&&t().status===`completed`?e({...Rk}):e({drawerOpen:n})},finish:()=>e({...Rk}),updateDirectoryRun:n=>{let r=n.status===`completed`?`completed`:n.status===`failed`||n.status===`canceled`?`failed`:`running`,i=Object.values(t().sources).every(e=>e!==`running`&&e!==`idle`),a=Object.values(t().sources).some(e=>e===`denied`||e===`failed`),o=t().memories.some(e=>e.status===`pending`),s=t().focuses.some(e=>e.status===`candidate`);e({directoryStatus:r,status:r===`completed`&&i?o||s?`review_ready`:a?`partial`:`completed`:r===`failed`&&i?`partial`:`running`})},collectSources:async(n,r)=>{let i=window.electronAPI?.understandingSources?.collect;if(!(!i||!r.length)){e({status:`running`,sources:Fk(r,`running`),itemCounts:Object.fromEntries(r.map(e=>[e,0])),memories:[],threads:[],focuses:[],error:void 0});try{let a=await i(r),o=Ik(a,r),s=Object.fromEntries(a.map(e=>[e.sourceId,e.items.length]));e({sources:o,itemCounts:s});let c=a.flatMap(e=>e.status===`completed`?e.items:[]),l=Object.fromEntries(a.flatMap(e=>e.checkpoint?[[e.sourceId,e.checkpoint]]:[]));c.length&&await Lk(n);let u=c.length?await Ek(c,n,l):{profileCandidates:[],workThreads:[],focuses:[]},d=u.profileCandidates,f=u.focuses,p=Object.values(o).some(e=>e===`denied`||e===`failed`),m=!n||t().directoryStatus===`completed`;e({sources:o,itemCounts:s,memories:d,threads:u.workThreads,focuses:f,status:m?d.some(e=>e.status===`pending`)||f.some(e=>e.status===`candidate`)?`review_ready`:p?`partial`:`completed`:`running`})}catch(t){e(e=>({status:`partial`,sources:Object.fromEntries(Object.entries(e.sources).map(([e,t])=>[e,t===`running`?`failed`:t])),error:t instanceof Error?t.message:String(t)}))}}},reviewMemory:async(t,n)=>{try{await Dk([{understandingId:t,status:n?`accepted`:`rejected`}]),e(e=>{let r=e.memories.map(e=>e.understandingId===t?{...e,status:n?`accepted`:`rejected`}:e);return{memories:r,status:r.some(e=>e.status===`pending`)||e.focuses.some(e=>e.status===`candidate`)?`review_ready`:Object.values(e.sources).some(e=>e===`denied`||e===`failed`)?`partial`:`completed`,error:void 0}})}catch(t){e({error:t instanceof Error?t.message:String(t)})}},reviewFocus:async(t,n)=>{try{await yk(t,n?`active`:`rejected`),e(e=>{let r=e.focuses.map(e=>e.id===t?{...e,status:n?`active`:`rejected`}:e);return{focuses:r,status:e.memories.some(e=>e.status===`pending`)||r.some(e=>e.status===`candidate`)?`review_ready`:Object.values(e.sources).some(e=>e===`denied`||e===`failed`)?`partial`:`completed`,error:void 0}})}catch(t){e({error:t instanceof Error?t.message:String(t)})}}})),Bk=`workDiscovery`;function Vk(e){return new URLSearchParams(e).get(Bk)===`new`}function Hk(e){let t=new URLSearchParams(e);return t.set(Bk,`new`),`?${t.toString()}`}function Uk(e){let t=new URLSearchParams(e);t.delete(Bk);let n=t.toString();return n?`?${n}`:``}function Wk(e){let t=(0,Q.c)(83),{floating:n,persistent:r}=e,i=n===void 0?!1:n,a=r===void 0?!1:r,o=m(),s=u(),c=I(qk),l=zk(),d=c===`zh`,f;t[0]===a?f=t[1]:(f=()=>{a?MO():ZO(`/onboarding/workspace`)},t[0]=a,t[1]=f);let p=f,h;t[2]!==s||t[3]!==o||t[4]!==a?(h=()=>{if(!a){o(`/onboarding/workspace?new=1`);return}o({pathname:s.pathname,search:Hk(s.search)})},t[2]=s,t[3]=o,t[4]=a,t[5]=h):h=t[5];let g=h;if(l.status===`idle`){if(!a)return null;let e;t[6]===c?e=t[7]:(e=j(c),t[6]=c,t[7]=e);let n=e.you.relearn,r=i&&`fixed right-4 top-3 z-40 bg-surface-panel shadow-surface`,o;t[8]===r?o=t[9]:(o=C(`relative size-8 rounded-xl p-0`,Je,r),t[8]=r,t[9]=o);let s;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(Ei,{className:`size-4 text-accent-fg`,"aria-hidden":!0}),t[10]=s):s=t[10];let l;return t[11]!==n||t[12]!==g||t[13]!==p||t[14]!==o?(l=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:o,title:n,"aria-label":n,"data-work-discovery-trigger":!0,onPointerEnter:p,onPointerDown:p,onFocus:p,onClick:g,children:s}),t[11]=n,t[12]=g,t[13]=p,t[14]=o,t[15]=l):l=t[15],l}let _=l.status===`running`,v;t[16]===l.sources?v=t[17]:(v=Object.keys(l.sources).map(Gk),t[16]=l.sources,t[17]=v);let y=v,b=l.drawerOpen,x=l.setDrawerOpen,S=i&&`fixed right-4 top-3 z-40 bg-surface-panel shadow-surface`,w;t[18]===S?w=t[19]:(w=C(`relative size-8 rounded-xl p-0`,Je,S),t[18]=S,t[19]=w);let T=d?`查看用户理解进度`:`View understanding progress`,E;t[20]===_?E=t[21]:(E=_?(0,$.jsx)(Zg,{className:`size-4 animate-spin`}):(0,$.jsx)(Ei,{className:`size-4 text-accent-fg`}),t[20]=_,t[21]=E);let D;t[22]===l.status?D=t[23]:(D=l.status===`review_ready`?(0,$.jsx)(`span`,{className:`absolute right-0.5 top-0.5 size-2 rounded-full bg-accent`}):null,t[22]=l.status,t[23]=D);let O;t[24]!==T||t[25]!==E||t[26]!==D||t[27]!==w?(O=(0,$.jsx)(zD,{asChild:!0,children:(0,$.jsxs)(Zw,{type:`button`,variant:`ghost`,className:w,title:T,children:[E,D]})}),t[24]=T,t[25]=E,t[26]=D,t[27]=w,t[28]=O):O=t[28];let k=d?`正在理解你的工作`:`Understanding your work`,A;t[29]===k?A=t[30]:(A=(0,$.jsx)(eO,{className:`font-semibold text-fg`,children:k}),t[29]=k,t[30]=A);let M=_?d?`后台调查仍在进行`:`Background investigation is running`:d?`本轮调查已有结果`:`This investigation has results`,N;t[31]===M?N=t[32]:(N=(0,$.jsx)(nO,{className:`text-xs text-fg-muted`,children:M}),t[31]=M,t[32]=N);let P;t[33]!==A||t[34]!==N?(P=(0,$.jsxs)(`div`,{children:[A,N]}),t[33]=A,t[34]=N,t[35]=P):P=t[35];let F;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(iO,{asChild:!0,children:(0,$.jsx)(Zw,{variant:`ghost`,className:`size-8 p-0`,children:(0,$.jsx)(Aw,{className:`size-4`})})}),t[36]=F):F=t[36];let L;t[37]===P?L=t[38]:(L=(0,$.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center justify-between border-b border-edge px-4`,children:[P,F]}),t[37]=P,t[38]=L);let R=d?`工作目录`:`Work directories`,z;t[39]!==l.directoryStatus||t[40]!==R||t[41]!==d?(z=(0,$.jsx)(Jk,{label:R,status:l.directoryStatus,count:0,icon:Ei,zh:d}),t[39]=l.directoryStatus,t[40]=R,t[41]=d,t[42]=z):z=t[42];let B;t[43]!==y||t[44]!==l.itemCounts||t[45]!==l.sources||t[46]!==d?(B=y.map(e=>(0,$.jsx)(Jk,{label:e.label,status:l.sources[e.key],count:l.itemCounts[e.key],icon:e.icon,zh:d},e.key)),t[43]=y,t[44]=l.itemCounts,t[45]=l.sources,t[46]=d,t[47]=B):B=t[47];let V;t[48]!==z||t[49]!==B?(V=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[z,B]}),t[48]=z,t[49]=B,t[50]=V):V=t[50];let H;t[51]!==l.threads||t[52]!==d?(H=l.threads.length?(0,$.jsxs)(`div`,{className:`mt-6`,children:[(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:d?`综合识别到的工作重点`:`Work focus across sources`}),(0,$.jsx)(`div`,{className:`mt-2 space-y-2`,children:l.threads.map(e=>(0,$.jsxs)(`div`,{className:`rounded-xl border border-edge bg-surface-base p-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`rounded-full bg-accent-soft px-2 py-0.5 text-[0.7rem] font-medium text-accent-fg`,children:e.horizon===`current`?d?`当前`:`Current`:e.horizon===`ongoing`?d?`持续`:`Ongoing`:d?`长期`:`Long term`}),(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:e.title})]}),(0,$.jsx)(`p`,{className:`mt-1.5 text-xs leading-5 text-fg-muted`,children:e.summary})]},e.id))})]}):null,t[51]=l.threads,t[52]=d,t[53]=H):H=t[53];let U;t[54]!==l||t[55]!==d?(U=l.focuses.length?(0,$.jsxs)(`div`,{className:`mt-6`,children:[(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:d?`你可能正在关注`:`You may be focusing on`}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:d?`这些只是候选,确认后才会用于后续协作。`:`These are candidates and are only used after you confirm them.`}),(0,$.jsx)(`div`,{className:`mt-2 space-y-2`,children:l.focuses.map(e=>(0,$.jsxs)(`div`,{className:`rounded-xl border border-edge bg-surface-base p-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`rounded-full bg-accent-soft px-2 py-0.5 text-[0.7rem] font-medium text-accent-fg`,children:e.horizon===`current`?d?`当前`:`Current`:e.horizon===`ongoing`?d?`持续`:`Ongoing`:d?`长期`:`Long term`}),(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:e.title})]}),(0,$.jsx)(`p`,{className:`mt-1.5 text-xs leading-5 text-fg-muted`,children:e.summary}),e.status===`candidate`?(0,$.jsxs)(`div`,{className:`mt-2 flex gap-2`,children:[(0,$.jsx)(Zw,{type:`button`,className:`px-2.5 py-1.5 text-xs`,variant:`primary`,onClick:()=>void l.reviewFocus(e.id,!0),children:d?`是我在关注的`:`Confirm`}),(0,$.jsx)(Zw,{type:`button`,className:`px-2.5 py-1.5 text-xs`,variant:`ghost`,onClick:()=>void l.reviewFocus(e.id,!1),children:d?`不是`:`Not now`})]}):(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:e.status===`active`?d?`已确认`:`Confirmed`:d?`已忽略`:`Ignored`})]},e.id))})]}):null,t[54]=l,t[55]=d,t[56]=U):U=t[56];let W;t[57]!==l||t[58]!==d?(W=l.memories.length?(0,$.jsxs)(`div`,{className:`mt-6`,children:[(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:d?`新理解到 ${l.memories.length} 条背景`:`${l.memories.length} new insights`}),(0,$.jsx)(`div`,{className:`mt-2 space-y-2`,children:l.memories.map(e=>(0,$.jsxs)(`div`,{className:`rounded-xl bg-surface-base p-3 text-sm leading-6 text-fg`,children:[(0,$.jsx)(`p`,{children:e.statement}),e.status===`pending`&&e.understandingId?(0,$.jsxs)(`div`,{className:`mt-2 flex gap-2`,children:[(0,$.jsx)(Zw,{type:`button`,className:`px-2.5 py-1.5 text-xs`,variant:`primary`,onClick:()=>void l.reviewMemory(e.understandingId,!0),children:d?`记住`:`Remember`}),(0,$.jsx)(Zw,{type:`button`,className:`px-2.5 py-1.5 text-xs`,variant:`ghost`,onClick:()=>void l.reviewMemory(e.understandingId,!1),children:d?`忽略`:`Ignore`})]}):(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:e.status===`accepted`?d?`已写入对你的理解`:`Saved to understanding`:d?`已忽略`:`Ignored`})]},e.id))})]}):null,t[57]=l,t[58]=d,t[59]=W):W=t[59];let G;t[60]===l.error?G=t[61]:(G=l.error?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-danger`,children:l.error}):null,t[60]=l.error,t[61]=G);let K;t[62]!==V||t[63]!==H||t[64]!==U||t[65]!==W||t[66]!==G?(K=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-4`,children:[V,H,U,W,G]}),t[62]=V,t[63]=H,t[64]=U,t[65]=W,t[66]=G,t[67]=K):K=t[67];let ee;t[68]!==g||t[69]!==p||t[70]!==_||t[71]!==l||t[72]!==d?(ee=_?null:(0,$.jsxs)(`div`,{className:`flex shrink-0 gap-2 border-t border-edge p-4`,children:[(0,$.jsx)(Zw,{type:`button`,className:`flex-1`,onPointerEnter:p,onPointerDown:p,onFocus:p,onClick:()=>{l.finish(),g()},children:d?`重新理解`:`Run again`}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`flex-1`,onClick:l.finish,children:d?`完成`:`Done`})]}),t[68]=g,t[69]=p,t[70]=_,t[71]=l,t[72]=d,t[73]=ee):ee=t[73];let q;t[74]!==L||t[75]!==K||t[76]!==ee?(q=(0,$.jsx)(UD,{children:(0,$.jsxs)(YD,{className:`xopc-drawer-right fixed inset-y-0 right-0 z-[61] flex w-[min(26rem,calc(100vw-2rem))] flex-col border-l border-edge bg-surface-panel shadow-float`,children:[L,K,ee]})}),t[74]=L,t[75]=K,t[76]=ee,t[77]=q):q=t[77];let te;return t[78]!==l.drawerOpen||t[79]!==l.setDrawerOpen||t[80]!==O||t[81]!==q?(te=(0,$.jsxs)(LD,{modal:!1,open:b,onOpenChange:x,children:[O,q]}),t[78]=l.drawerOpen,t[79]=l.setDrawerOpen,t[80]=O,t[81]=q,t[82]=te):te=t[82],te}function Gk(e){return{key:e,label:e.split(`-`).map(Kk).join(` `),icon:Ld}}function Kk(e){return e.charAt(0).toUpperCase()+e.slice(1)}function qk(e){return e.language}function Jk(e){let t=(0,Q.c)(16),{label:n,status:r,count:i,icon:a,zh:o}=e,s=r===`completed`,c;t[0]===a?c=t[1]:(c=(0,$.jsx)(a,{className:`size-4 text-fg-muted`}),t[0]=a,t[1]=c);let l;t[2]===n?l=t[3]:(l=(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:n}),t[2]=n,t[3]=l);let u=r===`running`?o?`正在扫描`:`Scanning`:r===`denied`?o?`未授权`:`Permission denied`:r===`failed`?o?`扫描失败`:`Failed`:r===`skipped`?o?`未选择`:`Not selected`:s?i?`${i} ${o?`项`:`items`}`:o?`已完成`:`Completed`:o?`等待开始`:`Waiting`,d;t[4]===u?d=t[5]:(d=(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:u}),t[4]=u,t[5]=d);let f;t[6]!==l||t[7]!==d?(f=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[l,d]}),t[6]=l,t[7]=d,t[8]=f):f=t[8];let p;t[9]!==s||t[10]!==r?(p=s?(0,$.jsx)(S,{className:`size-4 text-success`}):r===`running`?(0,$.jsx)(Zg,{className:`size-4 animate-spin text-accent`}):null,t[9]=s,t[10]=r,t[11]=p):p=t[11];let m;return t[12]!==c||t[13]!==f||t[14]!==p?(m=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-xl border border-edge px-3 py-3`,children:[c,f,p]}),t[12]=c,t[13]=f,t[14]=p,t[15]=m):m=t[15],m}var Yk={startExtra:null,main:null,end:null},Xk=R(e=>({...Yk,setPageHeader:t=>e(t),clearPageHeader:()=>e(Yk)})),Zk=(0,Z.memo)(function(){let e=(0,Q.c)(31),{pathname:t}=u(),n=Xk(Qk),r=Xk($k),i=Xk(eA),a=Xk(tA),o=bD(nA),s=OD(rA),c;e[0]===t?c=e[1]:(c=t.startsWith(`/settings`),e[0]=t,e[1]=c);let l=!c,d,f,p;if(e[2]!==a||e[3]!==s||e[4]!==o){let t=tD({runtime:eD(),sidebarCollapsed:o,mobileNavOpen:s});p=C(`grid min-w-0 shrink-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 bg-surface-panel`,Ye,t.mainHeaderDraggable&&`[-webkit-app-region:drag]`,`px-3 sm:gap-4 sm:px-5 xl:px-6`,a),e[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=C(`flex min-w-0 shrink-0 items-center gap-2.5`,Je),e[8]=d):d=e[8],f=t.mainHeaderLeadingInsetClass?(0,$.jsx)(TD,{sidebarToggleVariant:`main`,className:C(`hidden md:flex`,t.mainHeaderLeadingInsetClass)}):null,e[2]=a,e[3]=s,e[4]=o,e[5]=d,e[6]=f,e[7]=p}else d=e[5],f=e[6],p=e[7];let m;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(ED,{}),e[9]=m):m=e[9];let h;e[10]===l?h=e[11]:(h=l?(0,$.jsx)(kD,{}):null,e[10]=l,e[11]=h);let g;e[12]!==n||e[13]!==d||e[14]!==f||e[15]!==h?(g=(0,$.jsxs)(`div`,{className:d,children:[f,m,h,n]}),e[12]=n,e[13]=d,e[14]=f,e[15]=h,e[16]=g):g=e[16];let _;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(_=C(`w-fit max-w-full`,Je),e[17]=_):_=e[17];let v;e[18]===r?v=e[19]:(v=(0,$.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col justify-center overflow-hidden`,children:(0,$.jsx)(`div`,{className:_,children:r})}),e[18]=r,e[19]=v);let y;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(y=C(`flex min-w-0 shrink-0 items-center justify-end gap-2`,Je),e[20]=y):y=e[20];let b;e[21]===t?b=e[22]:(b=t===`/you`?(0,$.jsx)(Wk,{persistent:!0}):null,e[21]=t,e[22]=b);let x;e[23]!==i||e[24]!==b?(x=(0,$.jsxs)(`div`,{className:y,children:[i,b]}),e[23]=i,e[24]=b,e[25]=x):x=e[25];let S;return e[26]!==x||e[27]!==p||e[28]!==g||e[29]!==v?(S=(0,$.jsxs)(`header`,{className:p,children:[g,v,x]}),e[26]=x,e[27]=p,e[28]=g,e[29]=v,e[30]=S):S=e[30],S});function Qk(e){return e.startExtra}function $k(e){return e.main}function eA(e){return e.end}function tA(e){return e.className}function nA(e){return e.collapsed}function rA(e){return e.mobileNavOpen}var iA=`
|
|
3
|
-
|
|
4
|
-
`,aA=/\r\n/g,oA=`xopc.npmPendingRestart`;function sA(e){let t=e?.postUpdate;if(!t||typeof t!=`object`)return!1;let n=t.restart;if(!n||typeof n!=`object`)return!1;let r=n;return r.ok===!0&&[`in-process`,`daemon`,`unmanaged`].includes(String(r.mode))}var cA=typeof window<`u`&&window.electronAPI?.updater!==void 0;function lA(){return null}function uA(e){if(!(!e||typeof window>`u`))try{let t=sessionStorage.getItem(oA);if(!t)return;let n=JSON.parse(t),r=typeof n.installedVersion==`string`?n.installedVersion.trim():``;r&&r===e&&sessionStorage.removeItem(oA)}catch{}}function dA(e){return uA(e.currentVersion),e}function fA(){let[e,t]=(0,Z.useState)(null),[n,r]=(0,Z.useState)(!1),[i,a]=(0,Z.useState)(()=>lA()),[o,s]=(0,Z.useState)(cA?{state:`idle`}:lA()),c=(0,Z.useRef)(null),l=cA||i!==null;(0,Z.useEffect)(()=>{if(l)return;mA().then(e=>t(dA(e))).catch(()=>{});let e=e=>{let n=e.detail;if(n===null)t(e=>e&&dA({...e,updateAvailable:!1,latestVersion:null,channel:null}));else if(n&&typeof n==`object`){let e=n;t(dA({currentVersion:e.currentVersion??``,updateAvailable:!0,latestVersion:e.latestVersion??null,channel:e.channel??null}))}};return window.addEventListener(`update-available`,e),()=>window.removeEventListener(`update-available`,e)},[l]),(0,Z.useEffect)(()=>{if(!cA)return;let e=window.electronAPI.updater;return e.getStatus().then(e=>s(e)),e.onStatusChanged(e=>s(e))},[]),(0,Z.useEffect)(()=>{},[]),(0,Z.useEffect)(()=>()=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null)},[]);let u=(0,Z.useCallback)(async()=>{if(l)return!1;try{let e=await L(z(`/api/update/check`),{method:`POST`});if(!e.ok)return!1;let n=await e.json();return n.payload?(t(dA(n.payload)),!0):!1}catch{return!1}},[l]),d=(0,Z.useCallback)(async()=>{if(l)return{ok:!1,error:`not-applicable`,message:`npm update is not used in the desktop app.`,status:400};r(!0);try{let e=await L(z(`/api/update/run/stream`),{method:`POST`,headers:{Accept:`text/event-stream`}});if(!e.ok||!e.body){let t=await e.text().catch(()=>``),n=`HTTP ${e.status}`;try{let e=JSON.parse(t);typeof e.message==`string`&&(n=e.message)}catch{t&&(n=t.slice(0,500))}return{ok:!1,error:e.status===409?`busy`:`unknown`,message:n,status:e.status}}let t=await hA(e.body);if(t.ok&&t.result){let e=t.result;if(e&&typeof e==`object`&&e.status===`ok`&&typeof e.installedVersion==`string`){let t=sA(e);try{sessionStorage.setItem(oA,JSON.stringify({installedVersion:e.installedVersion,automaticRestart:t}))}catch{}window.dispatchEvent(new CustomEvent(`xopc:npm-update-installed`,{detail:{version:e.installedVersion,automaticRestart:t}}))}else e&&typeof e==`object`&&e.status===`up-to-date`&&typeof e.latestVersion==`string`&&window.dispatchEvent(new CustomEvent(`xopc:npm-update-installed`,{detail:{version:e.latestVersion}}))}return t}catch(e){return{ok:!1,error:`network`,message:e instanceof Error?e.message:String(e),status:0}}finally{r(!1)}},[l]),f=(0,Z.useCallback)(()=>{if(cA){window.electronAPI.updater.check();return}},[i]),p=(0,Z.useCallback)(()=>{cA&&window.electronAPI.updater.quitAndInstall()},[]);return{npm:e,electron:cA?o:i??o,isElectron:l,checkNow:u,runNpmUpdate:d,npmUpdateRunning:n,electronCheck:f,electronQuitAndInstall:p}}var pA=null;async function mA(){return pA||(pA=(async()=>{let e=await L(z(`/api/update/status`));if(!e.ok)throw Error(`HTTP ${e.status}`);return(await e.json()).payload})().finally(()=>{pA=null}),pA)}async function hA(e){let t=e.getReader(),n=new TextDecoder,r=``,i=null,a=e=>{try{let t=JSON.parse(e);typeof t.line==`string`&&window.dispatchEvent(new CustomEvent(`xopc:npm-update-progress`,{detail:{line:t.line,source:t.source===`stderr`?`stderr`:`stdout`}}))}catch{}},o=e=>{let t=``,n=``;for(let r of e.split(`
|
|
5
|
-
`)){let e=r.replace(/\r$/,``);e.startsWith(`event:`)?t=e.slice(6).trim():e.startsWith(`data:`)&&(n+=e.slice(5).trimStart())}if(n){if(t===`progress`){a(n);return}if(t===`result`)try{let e=JSON.parse(n);i=e.ok?{ok:!0,result:e.result??null}:{ok:!1,error:String(e.error??`unknown`),message:String(e.message??`Update failed`),status:e.error===`busy`?409:400,result:e.result??null}}catch{i={ok:!1,error:`parse`,message:`Invalid update stream`,status:0}}}};try{let e=async()=>{if(i!==null)return i;let{done:a,value:s}=await t.read();if(a)return i;r+=n.decode(s,{stream:!0}),r=r.replace(aA,`
|
|
6
|
-
`);let c=r.split(iA);r=c.pop()??``;for(let e of c)e.length&&o(e);return e()},a=await e();if(a)return a}finally{t.releaseLock()}return i??{ok:!1,error:`no-result`,message:`Update stream ended without a result`,status:0}}var gA=`xopc.updateReminder.dismissed`,_A=typeof window<`u`&&window.electronAPI?.updater!==void 0,vA=`xopc:electron-update-recheck`;function yA(){if(typeof window>`u`)return{};try{let e=localStorage.getItem(gA);if(!e)return{};let t=JSON.parse(e);return t&&typeof t==`object`?t:{}}catch{return{}}}var bA=160;function xA(e){let t=e.trim();return t.length<=bA?t:`${t.slice(0,bA-1)}…`}function SA(){let{npm:e,electron:t,isElectron:n,electronQuitAndInstall:r,runNpmUpdate:i,npmUpdateRunning:a}=fA(),[o,s]=(0,Z.useState)(yA),[c,l]=(0,Z.useState)({downloading:!1,electronError:!1}),[u,d]=(0,Z.useState)(()=>{if(typeof window>`u`||_A)return null;try{let e=sessionStorage.getItem(oA);if(!e)return null;let t=JSON.parse(e),n=typeof t.installedVersion==`string`?t.installedVersion.trim():``;return n?{version:n,automatic:t.automaticRestart===!0}:null}catch{return null}}),f=(0,Z.useRef)(t?.state);f.current!==t?.state&&(f.current=t?.state,t?.state!==`downloading`&&c.downloading&&l(e=>({...e,downloading:!1})),t?.state!==`error`&&c.electronError&&l(e=>({...e,electronError:!1})));let p=(0,Z.useRef)(null);if(u&&e?.currentVersion===u.version&&p.current!==u.version){p.current=u.version;try{sessionStorage.removeItem(oA)}catch{}d(null)}(0,Z.useEffect)(()=>{if(n)return;let e=()=>{try{let e=sessionStorage.getItem(oA);if(!e){d(null);return}let t=JSON.parse(e),n=typeof t.installedVersion==`string`?t.installedVersion.trim():``;d(n?{version:n,automatic:t.automaticRestart===!0}:null)}catch{d(null)}};return e(),window.addEventListener(`xopc:npm-update-installed`,e),()=>window.removeEventListener(`xopc:npm-update-installed`,e)},[n]),(0,Z.useEffect)(()=>{let e=()=>{l(e=>({...e,downloading:!1})),s(e=>{let t={...e};delete t.electronReady;try{localStorage.setItem(gA,JSON.stringify(t))}catch{}return t})};return window.addEventListener(vA,e),()=>window.removeEventListener(vA,e)},[]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail?.version?.trim();t&&s(e=>{let n={...e,npm:t};try{localStorage.setItem(gA,JSON.stringify(n))}catch{}return n})};return window.addEventListener(`xopc:npm-update-installed`,e),()=>window.removeEventListener(`xopc:npm-update-installed`,e)},[]);let m=(0,Z.useMemo)(()=>n&&t?.state===`downloaded`&&t.version?o.electronReady===t.version?{kind:`none`}:{kind:`electron-ready`,version:t.version}:n&&t?.state===`downloading`&&!c.downloading?{kind:`electron-downloading`,percent:Math.round(t.percent??0)}:n&&t?.state===`error`&&t.message&&!c.electronError?{kind:`electron-error`,message:xA(t.message)}:!n&&u&&e&&e.currentVersion!==u.version?u.automatic?{kind:`npm-restarting`,version:u.version}:{kind:`npm-restart-required`,version:u.version}:!n&&e?.updateAvailable&&e.latestVersion?o.npm===e.latestVersion?{kind:`none`}:{kind:`npm`,version:e.latestVersion,channel:e.channel}:{kind:`none`},[o.npm,o.electronReady,t,c.downloading,c.electronError,n,e,u]);return{show:m,dismiss:(0,Z.useCallback)(()=>{if(m.kind===`electron-downloading`){l(e=>({...e,downloading:!0}));return}if(m.kind===`electron-error`){l(e=>({...e,electronError:!0}));return}if(m.kind===`npm-restart-required`||m.kind===`npm-restarting`){try{sessionStorage.removeItem(oA)}catch{}d(null);return}if(m.kind===`none`)return;let e={...o};m.kind===`npm`?e.npm=m.version:m.kind===`electron-ready`&&(e.electronReady=m.version);try{localStorage.setItem(gA,JSON.stringify(e))}catch{}s(e)},[o,m]),electronQuitAndInstall:r,runNpmUpdate:i,npmUpdateRunning:a}}var CA={version:`0.0.197`,commit:`544f0112170c0421f918177a92f1617e9e35dd28`,buildTimeIso:`2026-08-24T14:45:53.054Z`};function wA(){return function(e,t){switch(t.type){case`start`:return e.loading?e:{...e,loading:!0,error:null};case`success`:return{data:t.data,loading:!1,error:null};case`error`:return{data:t.data,loading:!1,error:t.error};case`patch`:return{...e,data:t.updater(e.data)}}}}function TA(e,t,n){let{enabled:r=!0,initial:i,errorData:a}=n,[o,s]=(0,Z.useReducer)(wA(),void 0,()=>({data:i,loading:!1,error:null})),c=(0,Z.useRef)(e);c.current=e;let l=(0,Z.useRef)(a);l.current=a;let u=(0,Z.useRef)(i);u.current=i,(0,Z.useEffect)(()=>{if(!r)return;let e=!1;return s({type:`start`}),c.current().then(t=>{e||s({type:`success`,data:t})}).catch(t=>{if(e)return;let n=l.current;s({type:`error`,data:typeof n==`function`?n(t):n===void 0?u.current:n,error:t})}),()=>{e=!0}},[r,...t]);let d=(0,Z.useCallback)(e=>{s({type:`patch`,updater:typeof e==`function`?e:()=>e})},[]);return{...o,setData:d}}var EA=`https://github.com/xopcai/xopc`,DA=new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}),OA=new Intl.DateTimeFormat(`en-US`,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1});function kA(e,t){let n=new Date(e);if(Number.isNaN(n.getTime()))return e;try{return(t===`zh`?DA:OA).format(n)}catch{return n.toISOString()}}function AA({open:e,onOpenChange:t}){let n=I(e=>e.language),r=j(n),i=r.aboutDialog,a=r.updatePanel,{isElectron:o,electron:s,electronCheck:c,checkNow:l,npm:u,runNpmUpdate:d,npmUpdateRunning:f}=fA(),[p,m]=(0,Z.useState)(!1),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(null),{data:x}=TA(async()=>{let e=await B(z(`/health`));return typeof e.version==`string`?e.version:null},[e],{enabled:e,initial:null,errorData:null}),S=(0,Z.useCallback)(e=>{e||(m(!1),g(!1),v(!1),b(null)),t(e)},[t]),w=(0,Z.useCallback)(async()=>{b(null);let e=j(n).updatePanel,t=await d();if(t.ok){De({tone:`success`,title:e.updateSuccess,message:sA(t.result)?e.updateSuccessAutoRestartDetail:e.updateSuccessDetail,source:n===`zh`?`系统更新`:`System update`,dedupeKey:`system-update`});return}b(`${t.error===`git-checkout`?e.updateErrorGit:t.error===`busy`?e.updateErrorBusy:e.updateErrorFailed}: ${t.message}`)},[d,n]),T=CA.commit,E=n===`zh`?`zh-CN`:`en-US`,D=kA(CA.buildTimeIso,E),O=new Date().getFullYear(),k=i.copyright.replace(`{year}`,String(O));return(0,$.jsx)(LD,{open:e,onOpenChange:S,children:(0,$.jsxs)(UD,{children:[(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[200] bg-scrim`}),(0,$.jsxs)(YD,{className:C(`xopc-dialog-content fixed left-1/2 top-1/2 z-[201] w-[min(100%-2rem,26rem)] -translate-x-1/2 -translate-y-1/2`,`rounded-2xl border border-edge bg-surface-panel shadow-popover dark:border-edge`),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-4 pt-3`,"aria-hidden":!0,children:[(0,$.jsx)(`span`,{className:`size-3 rounded-full bg-[#ff5f57]`}),(0,$.jsx)(`span`,{className:`size-3 rounded-full bg-[#febc2e]`}),(0,$.jsx)(`span`,{className:`size-3 rounded-full bg-[#28c840]`})]}),(0,$.jsxs)(`div`,{className:`px-6 pb-2 pt-1`,children:[(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(iO,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,"aria-label":i.close,children:(0,$.jsx)(Aw,{className:`size-4`,strokeWidth:2})})})}),(0,$.jsxs)(`div`,{className:`-mt-2 flex flex-col items-center text-center`,children:[(0,$.jsx)(Yw,{className:`size-[4.5rem]`,alt:r.appBrand}),(0,$.jsx)(eO,{className:`mt-3 text-xl font-semibold tracking-tight text-fg`,children:r.appBrand}),(0,$.jsx)(nO,{className:`sr-only`,children:i.windowTitle})]}),(0,$.jsxs)(`div`,{className:`mt-6 space-y-3 text-sm`,children:[(0,$.jsxs)(`div`,{className:`grid grid-cols-[5.5rem_1fr] items-center gap-x-3 gap-y-1`,children:[(0,$.jsx)(`span`,{className:`text-fg-muted`,children:i.versionLabel}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center justify-end gap-2 sm:justify-start`,children:[(0,$.jsx)(`span`,{className:`font-mono text-[13px] text-fg tabular-nums`,children:CA.version}),(0,$.jsx)(`button`,{type:`button`,className:C(`shrink-0 rounded-md border border-edge bg-surface-base px-2 py-0.5 text-[11px] font-medium text-fg-muted`,`transition-colors hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`),onClick:()=>{o?(window.dispatchEvent(new CustomEvent(vA)),m(!0),c()):(m(!0),v(!1),g(!0),(async()=>{let e=await l();g(!1),e||v(!0)})())},disabled:o&&[`checking`,`available`,`downloading`,`downloaded`].includes(s?.state??``)||!o&&(h||f),children:o&&s?.state===`checking`||!o&&h?(0,$.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(Zg,{className:`size-3 animate-spin`}),i.checkUpdatesChecking]}):i.checkUpdates})]})]}),o&&p&&(0,$.jsx)(jA,{state:s?.state,version:s?.version,percent:s?.percent,d:i}),!o&&p&&(0,$.jsx)(MA,{checking:h,checkFailed:_,npm:u,npmUpdateRunning:f,upgradeError:y,onUpgrade:w,d:i,tp:a}),(0,$.jsxs)(`div`,{className:`grid grid-cols-[5.5rem_1fr] gap-x-3 gap-y-1`,children:[(0,$.jsx)(`span`,{className:`pt-0.5 text-fg-muted`,children:i.commitLabel}),(0,$.jsx)(`span`,{className:`break-all font-mono text-[11px] leading-snug text-fg`,children:T})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-[5.5rem_1fr] items-baseline gap-x-3 gap-y-1`,children:[(0,$.jsx)(`span`,{className:`text-fg-muted`,children:i.buildDateLabel}),(0,$.jsx)(`span`,{className:`text-right text-[13px] text-fg sm:text-left`,children:D})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-[5.5rem_1fr] items-baseline gap-x-3 gap-y-1`,children:[(0,$.jsx)(`span`,{className:`text-fg-muted`,children:i.gatewayVersionLabel}),(0,$.jsx)(`span`,{className:`text-right font-mono text-[13px] text-fg sm:text-left`,children:x??i.gatewayUnavailable})]}),(0,$.jsx)(`p`,{className:`pt-0.5 text-[11px] text-fg-subtle`,children:i.consoleBuildHint})]}),(0,$.jsxs)(`div`,{className:`mt-6 border-t border-edge-subtle pt-4 text-center text-[11px] leading-relaxed text-fg-muted`,children:[(0,$.jsx)(`p`,{children:(0,$.jsx)(`a`,{className:`text-accent-fg underline decoration-accent-fg/40 underline-offset-2 hover:decoration-accent-fg`,href:EA,target:`_blank`,rel:`noopener noreferrer`,children:i.repositoryLink})}),(0,$.jsx)(`p`,{className:`mt-2`,children:k})]})]})]})]})})}function jA(e){let t=(0,Q.c)(29),{state:n,version:r,percent:i,d:a}=e;if(!n||n===`idle`)return null;if(n===`checking`){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Zg,{className:`size-3.5 animate-spin`}),t[0]=e):e=t[0];let n;return t[1]===a.checkUpdatesChecking?n=t[2]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-fg-muted`,children:[e,(0,$.jsx)(`span`,{children:a.checkUpdatesChecking})]}),t[1]=a.checkUpdatesChecking,t[2]=n),n}if(n===`not-available`){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(zo,{className:`size-3.5`}),t[3]=e):e=t[3];let n;return t[4]===a.checkUpdatesUpToDate?n=t[5]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-green-600 dark:text-green-400`,children:[e,(0,$.jsx)(`span`,{children:a.checkUpdatesUpToDate})]}),t[4]=a.checkUpdatesUpToDate,t[5]=n),n}if(n===`available`){let e;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(ky,{className:`size-3.5`}),t[6]=e):e=t[6];let n;t[7]!==a.checkUpdatesAvailable||t[8]!==r?(n=a.checkUpdatesAvailable.replace(`{version}`,r??`?`),t[7]=a.checkUpdatesAvailable,t[8]=r,t[9]=n):n=t[9];let i;return t[10]===n?i=t[11]:(i=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-accent-fg`,children:[e,(0,$.jsx)(`span`,{children:n})]}),t[10]=n,t[11]=i),i}if(n===`downloading`){let e;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(ou,{className:`size-3.5 motion-safe:animate-[bounce_1s_ease-out_infinite]`}),t[12]=e):e=t[12];let n=a.checkUpdatesDownloading,r;if(t[13]!==a.checkUpdatesDownloading||t[14]!==i){let e;t[16]===i?e=t[17]:(e=Math.round(i??0),t[16]=i,t[17]=e),r=n.replace(`{percent}`,String(e)),t[13]=a.checkUpdatesDownloading,t[14]=i,t[15]=r}else r=t[15];let o;return t[18]===r?o=t[19]:(o=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-fg-muted`,children:[e,(0,$.jsx)(`span`,{children:r})]}),t[18]=r,t[19]=o),o}if(n===`downloaded`){let e;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(ou,{className:`size-3.5`}),t[20]=e):e=t[20];let n;t[21]!==a.checkUpdatesDownloaded||t[22]!==r?(n=a.checkUpdatesDownloaded.replace(`{version}`,r??`?`),t[21]=a.checkUpdatesDownloaded,t[22]=r,t[23]=n):n=t[23];let i;return t[24]===n?i=t[25]:(i=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] font-semibold text-accent-fg`,children:[e,(0,$.jsx)(`span`,{children:n})]}),t[24]=n,t[25]=i),i}if(n===`error`){let e;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Ao,{className:`size-3.5`}),t[26]=e):e=t[26];let n;return t[27]===a.checkUpdatesError?n=t[28]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-red-500 dark:text-red-400`,children:[e,(0,$.jsx)(`span`,{children:a.checkUpdatesError})]}),t[27]=a.checkUpdatesError,t[28]=n),n}return null}function MA(e){let t=(0,Q.c)(28),{checking:n,checkFailed:r,npm:i,npmUpdateRunning:a,upgradeError:o,onUpgrade:s,d:c,tp:l}=e;if(n){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Zg,{className:`size-3.5 animate-spin`}),t[0]=e):e=t[0];let n;return t[1]===c.checkUpdatesChecking?n=t[2]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-fg-muted`,children:[e,(0,$.jsx)(`span`,{children:c.checkUpdatesChecking})]}),t[1]=c.checkUpdatesChecking,t[2]=n),n}if(r){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Ao,{className:`size-3.5`}),t[3]=e):e=t[3];let n;return t[4]===c.checkUpdatesError?n=t[5]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-red-500 dark:text-red-400`,children:[e,(0,$.jsx)(`span`,{children:c.checkUpdatesError})]}),t[4]=c.checkUpdatesError,t[5]=n),n}if(a){let e;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Zg,{className:`size-3.5 animate-spin`}),t[6]=e):e=t[6];let n;return t[7]===l.updateRunning?n=t[8]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-fg-muted`,children:[e,(0,$.jsx)(`span`,{children:l.updateRunning})]}),t[7]=l.updateRunning,t[8]=n),n}if(o){let e;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Ao,{className:`mt-0.5 size-3.5 shrink-0`}),t[9]=e):e=t[9];let n;return t[10]===o?n=t[11]:(n=(0,$.jsxs)(`p`,{className:`flex items-start gap-2 text-[12px] text-red-500 dark:text-red-400`,role:`alert`,children:[e,(0,$.jsx)(`span`,{children:o})]}),t[10]=o,t[11]=n),n}if(i?.updateAvailable&&i.latestVersion){let e;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(ky,{className:`mt-0.5 size-3.5 shrink-0`}),t[12]=e):e=t[12];let n;t[13]!==i.latestVersion||t[14]!==l.reminderNpm?(n=l.reminderNpm.replace(`{{version}}`,i.latestVersion),t[13]=i.latestVersion,t[14]=l.reminderNpm,t[15]=n):n=t[15];let r;t[16]===n?r=t[17]:(r=(0,$.jsxs)(`p`,{className:`flex items-start gap-2 text-[12px] text-accent-fg`,children:[e,(0,$.jsx)(`span`,{children:n})]}),t[16]=n,t[17]=r);let a;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(a=C(`w-full rounded-lg bg-accent px-3 py-1.5 text-center text-xs font-medium text-white`,`hover:bg-accent/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,`disabled:pointer-events-none disabled:opacity-50`),t[18]=a):a=t[18];let o;t[19]!==s||t[20]!==l.updateNow?(o=(0,$.jsx)(`button`,{type:`button`,onClick:s,className:a,children:l.updateNow}),t[19]=s,t[20]=l.updateNow,t[21]=o):o=t[21];let c;return t[22]!==r||t[23]!==o?(c=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[r,o]}),t[22]=r,t[23]=o,t[24]=c):c=t[24],c}let u;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(zo,{className:`size-3.5`}),t[25]=u):u=t[25];let d;return t[26]===c.checkUpdatesUpToDate?d=t[27]:(d=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-green-600 dark:text-green-400`,children:[u,(0,$.jsx)(`span`,{children:c.checkUpdatesUpToDate})]}),t[26]=c.checkUpdatesUpToDate,t[27]=d),d}var NA=C(`flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left text-sm font-medium leading-5 text-fg`,`transition-colors duration-150 ease-out`,`hover:bg-surface-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),PA=C(`rounded-xl border border-edge bg-surface-panel p-1 shadow-popover`,`dark:border-edge`);function FA(e){let t=(0,Q.c)(14),{selected:n,label:r,onSelect:i}=e,a=n&&`bg-accent-soft text-accent-fg hover:bg-accent-soft`,o;t[0]===a?o=t[1]:(o=C(`flex w-full items-center justify-between gap-1.5 rounded-lg px-2.5 py-1.5 text-left text-sm font-medium leading-5 text-fg`,`transition-colors duration-150 ease-out hover:bg-surface-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,a),t[0]=a,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:r}),t[2]=r,t[3]=s);let c=n?`opacity-100`:`opacity-0`,l;t[4]===c?l=t[5]:(l=C(`size-4 shrink-0`,c),t[4]=c,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,$.jsx)(S,{className:l,strokeWidth:2,"aria-hidden":!0}),t[6]=l,t[7]=u);let d;return t[8]!==i||t[9]!==n||t[10]!==o||t[11]!==s||t[12]!==u?(d=(0,$.jsxs)(`button`,{type:`button`,"aria-pressed":n,className:o,onClick:i,children:[s,u]}),t[8]=i,t[9]=n,t[10]=o,t[11]=s,t[12]=u,t[13]=d):d=t[13],d}function IA(e){let t=(0,Q.c)(198),{onOpenFullSettings:n,onAboutClick:r}=e,[i,a]=(0,Z.useState)(null),[o,s]=(0,Z.useState)(null),c=I(HA),l=I(VA),u=W(BA),d=W(zA),f=CT(RA),p=CT(LA),m;t[0]===c?m=t[1]:(m=j(c),t[0]=c,t[1]=m);let h=m,g=h.appearanceSettings,_=c===`zh`?g.langOptionZh:g.langOptionEn,v=u===`light`?g.themeOptionLight:u===`dark`?g.themeOptionDark:g.themeOptionSystem,b=f===`compact`?g.fontScaleCompact:f===`large`?g.fontScaleLarge:g.fontScaleDefault,x=typeof window<`u`?window.electronAPI?.pet:void 0,S=!!x,w=o?.visible?g.hideDesktopPet:g.showDesktopPet,T,E;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{if(!x)return;let e=!1;x.getState().then(t=>{e||s(t)});let t=x.onStateChanged(t=>{e||s(t)});return()=>{e=!0,t()}},E=[x],t[2]=T,t[3]=E):(T=t[2],E=t[3]),(0,Z.useEffect)(T,E);let D;t[4]===o?.visible?D=t[5]:(D=async()=>{x&&(o?.visible?await x.hide():await x.show(),s(await x.getState()))},t[4]=o?.visible,t[5]=D);let O=D,k;t[6]===i?k=t[7]:(k=e=>C(`absolute left-full top-0 z-[60] min-w-[8.75rem] max-w-[min(calc(100vw-2rem),12rem)]`,`ml-2 sm:ml-2.5`,i===e?`block`:`hidden`),t[6]=i,t[7]=k);let A=k,M;t[8]===i?M=t[9]:(M=e=>C(`absolute left-full top-0 z-[55] h-full w-8 sm:w-9`,i===e?`pointer-events-auto`:`pointer-events-none`),t[8]=i,t[9]=M);let N=M,P;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(P=()=>a(null),t[10]=P):P=t[10];let F;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(F=()=>a(`lang`),t[11]=F):F=t[11];let L=i===`lang`&&`bg-surface-hover`,R;t[12]===L?R=t[13]:(R=C(NA,L),t[12]=L,t[13]=R);let z=i===`lang`,B;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(Kp,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[14]=B):B=t[14];let V;t[15]===g.languageTitle?V=t[16]:(V=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:g.languageTitle}),t[15]=g.languageTitle,t[16]=V);let H;t[17]===_?H=t[18]:(H=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:_}),t[17]=_,t[18]=H);let U;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(go,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[19]=U):U=t[19];let G;t[20]!==R||t[21]!==z||t[22]!==V||t[23]!==H?(G=(0,$.jsxs)(`button`,{type:`button`,className:R,"aria-haspopup":`menu`,"aria-expanded":z,children:[B,V,H,U]}),t[20]=R,t[21]=z,t[22]=V,t[23]=H,t[24]=G):G=t[24];let K;t[25]===N?K=t[26]:(K=N(`lang`),t[25]=N,t[26]=K);let ee;t[27]===K?ee=t[28]:(ee=(0,$.jsx)(`div`,{className:K,"aria-hidden":!0}),t[27]=K,t[28]=ee);let q;t[29]===A?q=t[30]:(q=A(`lang`),t[29]=A,t[30]=q);let te=c===`en`,ne;t[31]===l?ne=t[32]:(ne=()=>l(`en`),t[31]=l,t[32]=ne);let re;t[33]!==g.langOptionEn||t[34]!==te||t[35]!==ne?(re=(0,$.jsx)(FA,{selected:te,label:g.langOptionEn,onSelect:ne}),t[33]=g.langOptionEn,t[34]=te,t[35]=ne,t[36]=re):re=t[36];let ie=c===`zh`,ae;t[37]===l?ae=t[38]:(ae=()=>l(`zh`),t[37]=l,t[38]=ae);let oe;t[39]!==g.langOptionZh||t[40]!==ie||t[41]!==ae?(oe=(0,$.jsx)(FA,{selected:ie,label:g.langOptionZh,onSelect:ae}),t[39]=g.langOptionZh,t[40]=ie,t[41]=ae,t[42]=oe):oe=t[42];let se;t[43]!==re||t[44]!==oe?(se=(0,$.jsxs)(`div`,{className:PA,children:[re,oe]}),t[43]=re,t[44]=oe,t[45]=se):se=t[45];let J;t[46]!==g.languageTitle||t[47]!==q||t[48]!==se?(J=(0,$.jsx)(`div`,{className:q,role:`menu`,"aria-label":g.languageTitle,children:se}),t[46]=g.languageTitle,t[47]=q,t[48]=se,t[49]=J):J=t[49];let ce;t[50]!==G||t[51]!==ee||t[52]!==J?(ce=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:F,children:[G,ee,J]}),t[50]=G,t[51]=ee,t[52]=J,t[53]=ce):ce=t[53];let le;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(le=()=>a(`theme`),t[54]=le):le=t[54];let ue=i===`theme`&&`bg-surface-hover`,de;t[55]===ue?de=t[56]:(de=C(NA,ue),t[55]=ue,t[56]=de);let fe=i===`theme`,pe;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,$.jsx)(cy,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[57]=pe):pe=t[57];let me;t[58]===g.themeTitle?me=t[59]:(me=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:g.themeTitle}),t[58]=g.themeTitle,t[59]=me);let he;t[60]===v?he=t[61]:(he=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:v}),t[60]=v,t[61]=he);let ge;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,$.jsx)(go,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[62]=ge):ge=t[62];let _e;t[63]!==de||t[64]!==fe||t[65]!==me||t[66]!==he?(_e=(0,$.jsxs)(`button`,{type:`button`,className:de,"aria-haspopup":`menu`,"aria-expanded":fe,children:[pe,me,he,ge]}),t[63]=de,t[64]=fe,t[65]=me,t[66]=he,t[67]=_e):_e=t[67];let ve;t[68]===N?ve=t[69]:(ve=N(`theme`),t[68]=N,t[69]=ve);let ye;t[70]===ve?ye=t[71]:(ye=(0,$.jsx)(`div`,{className:ve,"aria-hidden":!0}),t[70]=ve,t[71]=ye);let be;t[72]===A?be=t[73]:(be=A(`theme`),t[72]=A,t[73]=be);let xe=u===`light`,Se;t[74]===d?Se=t[75]:(Se=()=>d(`light`),t[74]=d,t[75]=Se);let Ce;t[76]!==g.themeOptionLight||t[77]!==xe||t[78]!==Se?(Ce=(0,$.jsx)(FA,{selected:xe,label:g.themeOptionLight,onSelect:Se}),t[76]=g.themeOptionLight,t[77]=xe,t[78]=Se,t[79]=Ce):Ce=t[79];let we=u===`dark`,Te;t[80]===d?Te=t[81]:(Te=()=>d(`dark`),t[80]=d,t[81]=Te);let Ee;t[82]!==g.themeOptionDark||t[83]!==we||t[84]!==Te?(Ee=(0,$.jsx)(FA,{selected:we,label:g.themeOptionDark,onSelect:Te}),t[82]=g.themeOptionDark,t[83]=we,t[84]=Te,t[85]=Ee):Ee=t[85];let De=u===`system`,Oe;t[86]===d?Oe=t[87]:(Oe=()=>d(`system`),t[86]=d,t[87]=Oe);let ke;t[88]!==g.themeOptionSystem||t[89]!==De||t[90]!==Oe?(ke=(0,$.jsx)(FA,{selected:De,label:g.themeOptionSystem,onSelect:Oe}),t[88]=g.themeOptionSystem,t[89]=De,t[90]=Oe,t[91]=ke):ke=t[91];let Ae;t[92]!==Ce||t[93]!==Ee||t[94]!==ke?(Ae=(0,$.jsxs)(`div`,{className:PA,children:[Ce,Ee,ke]}),t[92]=Ce,t[93]=Ee,t[94]=ke,t[95]=Ae):Ae=t[95];let je;t[96]!==g.themeTitle||t[97]!==be||t[98]!==Ae?(je=(0,$.jsx)(`div`,{className:be,role:`menu`,"aria-label":g.themeTitle,children:Ae}),t[96]=g.themeTitle,t[97]=be,t[98]=Ae,t[99]=je):je=t[99];let Me;t[100]!==_e||t[101]!==ye||t[102]!==je?(Me=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:le,children:[_e,ye,je]}),t[100]=_e,t[101]=ye,t[102]=je,t[103]=Me):Me=t[103];let Ne;t[104]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=()=>a(`font`),t[104]=Ne):Ne=t[104];let Pe=i===`font`&&`bg-surface-hover`,Y;t[105]===Pe?Y=t[106]:(Y=C(NA,Pe),t[105]=Pe,t[106]=Y);let Fe=i===`font`,Ie;t[107]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,$.jsx)(IS,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[107]=Ie):Ie=t[107];let Le;t[108]===g.fontScaleTitle?Le=t[109]:(Le=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:g.fontScaleTitle}),t[108]=g.fontScaleTitle,t[109]=Le);let Re;t[110]===b?Re=t[111]:(Re=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:b}),t[110]=b,t[111]=Re);let X;t[112]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,$.jsx)(go,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[112]=X):X=t[112];let ze;t[113]!==Y||t[114]!==Fe||t[115]!==Le||t[116]!==Re?(ze=(0,$.jsxs)(`button`,{type:`button`,className:Y,"aria-haspopup":`menu`,"aria-expanded":Fe,children:[Ie,Le,Re,X]}),t[113]=Y,t[114]=Fe,t[115]=Le,t[116]=Re,t[117]=ze):ze=t[117];let Be;t[118]===N?Be=t[119]:(Be=N(`font`),t[118]=N,t[119]=Be);let Ve;t[120]===Be?Ve=t[121]:(Ve=(0,$.jsx)(`div`,{className:Be,"aria-hidden":!0}),t[120]=Be,t[121]=Ve);let He;t[122]===A?He=t[123]:(He=A(`font`),t[122]=A,t[123]=He);let Ue=f===`compact`,We;t[124]===p?We=t[125]:(We=()=>p(`compact`),t[124]=p,t[125]=We);let Ge;t[126]!==g.fontScaleCompact||t[127]!==Ue||t[128]!==We?(Ge=(0,$.jsx)(FA,{selected:Ue,label:g.fontScaleCompact,onSelect:We}),t[126]=g.fontScaleCompact,t[127]=Ue,t[128]=We,t[129]=Ge):Ge=t[129];let Ke=f==="default",qe;t[130]===p?qe=t[131]:(qe=()=>p(`default`),t[130]=p,t[131]=qe);let Je;t[132]!==g.fontScaleDefault||t[133]!==Ke||t[134]!==qe?(Je=(0,$.jsx)(FA,{selected:Ke,label:g.fontScaleDefault,onSelect:qe}),t[132]=g.fontScaleDefault,t[133]=Ke,t[134]=qe,t[135]=Je):Je=t[135];let Ye=f===`large`,Xe;t[136]===p?Xe=t[137]:(Xe=()=>p(`large`),t[136]=p,t[137]=Xe);let Ze;t[138]!==g.fontScaleLarge||t[139]!==Ye||t[140]!==Xe?(Ze=(0,$.jsx)(FA,{selected:Ye,label:g.fontScaleLarge,onSelect:Xe}),t[138]=g.fontScaleLarge,t[139]=Ye,t[140]=Xe,t[141]=Ze):Ze=t[141];let Qe;t[142]!==Ge||t[143]!==Je||t[144]!==Ze?(Qe=(0,$.jsxs)(`div`,{className:PA,children:[Ge,Je,Ze]}),t[142]=Ge,t[143]=Je,t[144]=Ze,t[145]=Qe):Qe=t[145];let $e;t[146]!==g.fontScaleTitle||t[147]!==He||t[148]!==Qe?($e=(0,$.jsx)(`div`,{className:He,role:`menu`,"aria-label":g.fontScaleTitle,children:Qe}),t[146]=g.fontScaleTitle,t[147]=He,t[148]=Qe,t[149]=$e):$e=t[149];let et;t[150]!==ze||t[151]!==Ve||t[152]!==$e?(et=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:Ne,children:[ze,Ve,$e]}),t[150]=ze,t[151]=Ve,t[152]=$e,t[153]=et):et=t[153];let tt;t[154]!==w||t[155]!==O?(tt=S?(0,$.jsxs)(`button`,{type:`button`,className:NA,onClick:()=>void O(),onMouseEnter:()=>a(null),onFocus:()=>a(null),children:[(0,$.jsx)(py,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:w})]}):null,t[154]=w,t[155]=O,t[156]=tt):tt=t[156];let nt;t[157]===Symbol.for(`react.memo_cache_sentinel`)?(nt=(0,$.jsx)(`div`,{className:`my-2 h-px bg-edge-subtle`,role:`separator`}),t[157]=nt):nt=t[157];let rt;t[158]===r?rt=t[159]:(rt=()=>r?.(),t[158]=r,t[159]=rt);let it,at,ot;t[160]===Symbol.for(`react.memo_cache_sentinel`)?(it=()=>a(null),at=()=>a(null),ot=(0,$.jsx)(Dh,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[160]=it,t[161]=at,t[162]=ot):(it=t[160],at=t[161],ot=t[162]);let st;t[163]===g.aboutApp?st=t[164]:(st=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:g.aboutApp}),t[163]=g.aboutApp,t[164]=st);let ct;t[165]!==rt||t[166]!==st?(ct=(0,$.jsxs)(`button`,{type:`button`,className:NA,onClick:rt,onMouseEnter:it,onFocus:at,children:[ot,st]}),t[165]=rt,t[166]=st,t[167]=ct):ct=t[167];let lt;t[168]===c?lt=t[169]:(lt=VE(c),t[168]=c,t[169]=lt);let ut,dt,ft;t[170]===Symbol.for(`react.memo_cache_sentinel`)?(ut=()=>a(null),dt=()=>a(null),ft=(0,$.jsx)(xi,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[170]=ut,t[171]=dt,t[172]=ft):(ut=t[170],dt=t[171],ft=t[172]);let pt;t[173]===h.sidebar.helpDocs?pt=t[174]:(pt=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:h.sidebar.helpDocs}),t[173]=h.sidebar.helpDocs,t[174]=pt);let mt;t[175]===Symbol.for(`react.memo_cache_sentinel`)?(mt=(0,$.jsx)(Iu,{className:`size-3.5 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[175]=mt):mt=t[175];let ht;t[176]!==lt||t[177]!==pt?(ht=(0,$.jsxs)(`a`,{href:lt,target:`_blank`,rel:`noopener noreferrer`,className:NA,onMouseEnter:ut,onFocus:dt,children:[ft,pt,mt]}),t[176]=lt,t[177]=pt,t[178]=ht):ht=t[178];let gt,_t,vt;t[179]===Symbol.for(`react.memo_cache_sentinel`)?(gt=C(NA,`text-accent-fg hover:bg-accent-soft hover:text-accent-fg`),_t=()=>a(null),vt=()=>a(null),t[179]=gt,t[180]=_t,t[181]=vt):(gt=t[179],_t=t[180],vt=t[181]);let yt;t[182]===n?yt=t[183]:(yt=()=>n?.(),t[182]=n,t[183]=yt);let bt;t[184]===Symbol.for(`react.memo_cache_sentinel`)?(bt=(0,$.jsx)(By,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[184]=bt):bt=t[184];let xt;t[185]===g.openFullPreferences?xt=t[186]:(xt=(0,$.jsx)(`span`,{className:`min-w-0 flex-1`,children:g.openFullPreferences}),t[185]=g.openFullPreferences,t[186]=xt);let St;t[187]!==yt||t[188]!==xt?(St=(0,$.jsxs)(y,{to:`/settings/overview`,className:gt,onMouseEnter:_t,onFocus:vt,onClick:yt,children:[bt,xt]}),t[187]=yt,t[188]=xt,t[189]=St):St=t[189];let Ct;return t[190]!==ce||t[191]!==Me||t[192]!==et||t[193]!==tt||t[194]!==ct||t[195]!==ht||t[196]!==St?(Ct=(0,$.jsxs)(`div`,{className:`w-[min(calc(100vw-2rem),13rem)] shrink-0 py-0.5`,onMouseLeave:P,children:[ce,Me,et,tt,nt,ct,ht,St]}),t[190]=ce,t[191]=Me,t[192]=et,t[193]=tt,t[194]=ct,t[195]=ht,t[196]=St,t[197]=Ct):Ct=t[197],Ct}function LA(e){return e.setPreference}function RA(e){return e.preference}function zA(e){return e.setPreference}function BA(e){return e.preference}function VA(e){return e.setLanguage}function HA(e){return e.language}function UA({collapsed:e=!1,onNavigate:t}){let n=j(I(e=>e.language)),r=n.appearanceSettings,[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(!1);return(0,Z.useEffect)(()=>{c(()=>import(`./settings-page-C1zxCpqB.js`),__vite__mapDeps([44,1,2,3,4,6,7])),c(()=>import(`./sessions-page-BCfCh4My.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),c(()=>import(`./logs-page--6v8qq6y.js`),__vite__mapDeps([43,1,2,3,4,6,7,8,35])),c(()=>import(`./automations-page-XyDat125.js`),__vite__mapDeps([15,1,2,3,4,5,6,7,8,16,10,11,17,18])),c(()=>import(`./skills-page-lE1-YRdK.js`),__vite__mapDeps([38,1,4,2,3,6,7,8,12,39,33,34]))},[]),(0,$.jsxs)(`div`,{className:C(`flex shrink-0 flex-col`,e&&`mt-auto`,e?`items-center px-1 py-2`:`p-3`),children:[(0,$.jsxs)(QT,{open:i,onOpenChange:a,children:[e?(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:C(`flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-full outline-none ring-offset-surface-base transition-transform`,`hover:opacity-95 active:scale-95`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2`,i&&`ring-2 ring-accent`,`motion-reduce:opacity-100 motion-reduce:active:scale-100`),"aria-expanded":i,"aria-haspopup":`dialog`,title:n.sidebar.appMenuAria,"aria-label":n.sidebar.appMenuAria,children:(0,$.jsx)(Yw,{className:`size-full rounded-full`,alt:n.appBrand})})}):(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:C(`flex w-full min-w-0 items-center gap-2 rounded-xl p-1 text-left outline-none transition-colors duration-150 ease-out`,`hover:bg-surface-active/70`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,i&&`bg-surface-active/70`),"aria-expanded":i,"aria-haspopup":`dialog`,title:n.sidebar.appMenuAria,"aria-label":n.sidebar.appMenuAria,children:[(0,$.jsx)(`span`,{className:`size-8 shrink-0 overflow-hidden rounded-full`,"aria-hidden":!0,children:(0,$.jsx)(Yw,{className:`size-full rounded-full`,alt:``,"aria-hidden":!0})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate text-sm font-semibold leading-tight text-fg`,children:n.appBrand}),(0,$.jsx)(`div`,{className:`truncate text-xs text-fg-muted`,children:r.quickMenuHint})]}),(0,$.jsx)(`span`,{className:C(`flex size-9 shrink-0 items-center justify-center rounded-xl text-fg-muted transition-colors`,i&&`bg-accent-soft text-accent-fg`),"aria-hidden":!0,children:(0,$.jsx)(By,{className:`size-[18px]`,strokeWidth:1.5})})]})}),(0,$.jsx)(tE,{children:(0,$.jsx)(nE,{className:C(`z-50 w-max max-w-[min(calc(100vw-1rem),28rem)] overflow-visible`,`rounded-xl border border-edge bg-surface-panel p-2 shadow-popover dark:border-edge`),side:`top`,align:e?`center`:`start`,sideOffset:8,collisionPadding:12,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),children:(0,$.jsx)(IA,{onOpenFullSettings:()=>{a(!1),t?.()},onAboutClick:()=>{s(!0),a(!1)}})})})]}),(0,$.jsx)(AA,{open:o,onOpenChange:s})]})}var WA=`xopc-web-sidebar-nav-order`;function GA(){try{let e=globalThis.localStorage?.getItem(WA);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch{return[]}}function KA(e){try{globalThis.localStorage?.setItem(WA,JSON.stringify(e))}catch{}}function qA(e,t,n,r,i){if(t===n)return e;let a=e.filter(e=>e!==t),o=a.indexOf(n),s=o===-1?a.length:r===`before`?o:o+1;return YA([...a.slice(0,s),t,...a.slice(s)],i)}function JA(e,t,n){return YA([...e.filter(e=>e!==t),t],n)}function YA(e,t){let n=new Set(e),r=[];for(let e of t)n.has(e)||r.push(e);return r.length===0?e:[...e,...r]}var XA=R((e,t)=>({order:GA(),move:(n,r,i)=>{let a=qA(t().order,n,r,i,new Set(t().order));a!==t().order&&(e({order:a}),queueMicrotask(()=>KA(a)))},moveToFront:n=>{let r=[n,...t().order.filter(e=>e!==n)];e({order:r}),queueMicrotask(()=>KA(r))},moveToEnd:n=>{let r=JA(t().order,n,new Set(t().order));r!==t().order&&(e({order:r}),queueMicrotask(()=>KA(r)))},setOrder:t=>{e({order:t}),queueMicrotask(()=>KA(t))}})),ZA=null,QA=R((e,t)=>({variables:{},loaded:!1,updateContext:t=>e(e=>({variables:{...e.variables,...t}})),setContext:t=>e({variables:t,loaded:!0}),fetchContext:async()=>ZA||(ZA=(async()=>{let e=await B(z(`/api/context`));t().setContext(e)})().finally(()=>{ZA=null}),ZA)})),$A=Re([`backlog`,`ready`,`active`,`review`,`closed`]),ej=Re([`done`,`cancelled`,`duplicate`,`wont_do`]),tj=Re([`idle`,`queued`,`running`,`waiting`,`verifying`,`blocked`]),nj=Re([`dependency`,`user_input`,`approval`,`external_event`,`scheduled_time`,`retry_backoff`,`paused`]),rj=Re([`active`,`resolved`,`cancelled`]),ij=Le({id:X(),taskId:X(),taskRunId:X().optional(),kind:nj,status:rj,reason:X(),condition:ke(X(),je()),resumeAt:Y().int().nonnegative().optional(),resolvedBy:ke(X(),je()).optional(),resolution:je().optional(),createdAt:Y().int().nonnegative(),resolvedAt:Y().int().nonnegative().optional()}),aj=Le({kind:Re([`input_required`,`approval_required`,`dependency_blocked`,`run_failed`,`verification_failed`,`overdue`,`stale`]),summary:X(),sourceId:X().optional()}),oj=Re([`agent`,`workflow`,`human`,`external`]),sj=Re([`queued`,`running`,`waiting`,`verifying`,`succeeded`,`failed`,`cancelled`]),cj=new Set([`succeeded`,`failed`,`cancelled`]),lj=Le({id:X(),taskId:X(),rootRunId:X(),parentRunId:X().optional(),attempt:Y().int().positive(),status:sj,executorKind:oj,executorRef:ke(X(),je()),trigger:ke(X(),je()),correlationId:X(),causationId:X().optional(),idempotencyKey:X(),contractVersion:Y().int().positive(),contextSnapshotId:X().optional(),policySnapshot:ke(X(),je()).optional(),sessionKey:X().optional(),queuedAt:Y().int().nonnegative(),scheduledAt:Y().int().nonnegative().optional(),startedAt:Y().int().nonnegative().optional(),heartbeatAt:Y().int().nonnegative().optional(),completedAt:Y().int().nonnegative().optional(),timeoutAt:Y().int().nonnegative().optional(),leaseOwner:X().optional(),leaseExpiresAt:Y().int().nonnegative().optional(),retryPolicy:ke(X(),je()),retryOfRunId:X().optional(),terminalCode:X().optional(),terminalMessage:X().optional(),version:Y().int().positive()}).superRefine((e,t)=>{!e.parentRunId&&e.rootRunId!==e.id&&t.addIssue({code:`custom`,path:[`rootRunId`],message:`A root run must reference itself`}),e.status!==`queued`&&(!e.contextSnapshotId||!e.policySnapshot)&&t.addIssue({code:`custom`,path:[`contextSnapshotId`],message:`A dispatched run requires context and policy snapshots`}),cj.has(e.status)!==!!e.completedAt&&t.addIssue({code:`custom`,path:[`completedAt`],message:`Only terminal runs have a completion timestamp`})});Le({id:X(),runId:X(),sequence:Y().int().positive(),type:X(),payload:ke(X(),je()),actor:ke(X(),je()),occurredAt:Y().int().nonnegative()});var uj=Re([`low`,`normal`,`high`,`critical`]),dj=Re([`verified_auto`,`verified_then_review`,`manual`]),fj=Le({kind:Re([`user`,`agent`,`system`,`integration`]),id:X().optional()}),pj=Le({taskId:X(),version:Y().int().positive(),objective:X(),expectedOutputs:Pe(X()),acceptanceCriteria:Pe(X()),constraints:Pe(X()),approvalRequired:Pe(X()),assumptions:Pe(X()),risks:Pe(X()),acceptancePolicy:dj,outputDestinations:Pe(ke(X(),je())),createdBy:fj,createdAt:Y().int().nonnegative()}),mj=Le({id:X(),title:X(),body:X().optional(),phase:$A,resolution:ej.optional(),priority:uj,dueAt:Y().int().nonnegative().optional(),projectId:X().optional(),milestoneId:X().optional(),parentTaskId:X().optional(),ownerId:X().optional(),delegateAgentId:X().optional(),source:X(),locale:Re([`en`,`zh`]).optional(),latestContractVersion:Y().int().positive(),version:Y().int().positive(),contract:pj.optional(),createdAt:Y().int().nonnegative(),updatedAt:Y().int().nonnegative(),closedAt:Y().int().nonnegative().optional()}).superRefine((e,t)=>{e.phase===`closed`!=!!e.resolution&&t.addIssue({code:`custom`,path:[`resolution`],message:`Closed tasks require a resolution and open tasks cannot have one`})}),hj=Re([`input`,`reference`,`constraint`,`deliverable`,`evidence`]),gj=Le({id:X(),taskId:X(),targetKind:Re([`document`,`file`,`url`,`session`,`memory`,`task`,`artifact`,`source`]),targetId:X(),role:hj,title:X().optional(),pinned:Ie(),retrievalPolicy:ke(X(),je()),metadata:ke(X(),je()),createdBy:fj,createdAt:Y().int().nonnegative(),updatedAt:Y().int().nonnegative()}),_j=Le({id:X(),taskId:X(),capability:X(),scope:ke(X(),je()),grantedBy:fj,grantedAt:Y().int().nonnegative(),expiresAt:Y().int().nonnegative().optional(),revokedAt:Y().int().nonnegative().optional()}),vj=Le({id:X(),title:X(),phase:$A,resolution:ej.optional(),operationalState:tj}),yj=Le({kind:Re([`artifact`,`test`,`state`,`source`]),title:X(),summary:X(),uri:X().optional(),verifies:Pe(X()).optional(),provenance:Re([`tool`,`external`,`user`,`judge`]),strength:Re([`observed`,`verified`]),observedAt:Y().int().nonnegative()}),bj=Le({recommendation:X(),reasons:Pe(X()),rejectedAlternatives:Pe(Le({option:X(),reason:X()})),uncertainty:X().optional(),confidence:Y().min(0).max(1)}),xj=Le({runId:X(),status:Re([`succeeded`,`failed`,`cancelled`]),summary:X(),changes:Pe(yj),evidence:Pe(yj),verification:Le({status:Re([`passed`,`failed`,`unverified`]),checks:Pe(Le({criterion:X(),status:Re([`passed`,`failed`,`unverified`]),evidenceTitles:Pe(X())}))}),remainingWork:Pe(X()),nextAction:X().optional(),needsUser:Ie(),completionVerdict:Re([`achieved`,`partial`,`not_achieved`]).optional(),failure:Le({code:X(),phase:X(),recoveryAction:X()}).optional(),judgment:bj.optional(),contextTraceId:X().optional(),finalizedAt:Y().int().nonnegative()}),Sj=Me(`kind`,[Le({kind:Oe(`agent`),agentId:X().min(1)}),Le({kind:Oe(`workflow`),workflowId:X().min(1),workflowVersion:X().min(1).optional(),input:je().optional()}),Le({kind:Oe(`human`),actorId:X().min(1)}),Le({kind:Oe(`external`),provider:X().min(1),config:je()})]),Cj=pj.omit({taskId:!0,version:!0,createdBy:!0,createdAt:!0}),wj=gj.omit({id:!0,taskId:!0,createdBy:!0,createdAt:!0,updatedAt:!0});Le({idempotencyKey:X().trim().min(1).max(200),title:X().trim().min(1).max(500),body:X().trim().max(5e4).optional(),projectId:X().trim().min(1).optional(),milestoneId:X().trim().min(1).optional(),parentTaskId:X().trim().min(1).optional(),priority:uj.default(`normal`),dueAt:Y().int().nonnegative().optional(),ownerId:X().trim().min(1).optional(),delegateAgentId:X().trim().min(1).optional(),locale:Re([`en`,`zh`]).optional(),contract:Cj,dependencies:Pe(X().trim().min(1)).default([]),context:Pe(wj).default([]),authorityGrants:Pe(Le({capability:X().min(1),scope:ke(X(),je()).default({}),expiresAt:Y().int().nonnegative().optional()})).default([]),activation:Me(`mode`,[Le({mode:Oe(`capture`),phase:Re([`backlog`,`ready`]).default(`backlog`)}),Le({mode:Oe(`start`),executor:Sj,scheduleAt:Y().int().nonnegative().optional()})])}).strict(),Le({expectedVersion:Y().int().positive(),title:X().trim().min(1).max(500).optional(),body:X().trim().max(5e4).nullable().optional(),projectId:X().trim().min(1).nullable().optional(),milestoneId:X().trim().min(1).nullable().optional(),parentTaskId:X().trim().min(1).nullable().optional(),priority:uj.optional(),dueAt:Y().int().nonnegative().nullable().optional(),ownerId:X().trim().min(1).nullable().optional(),delegateAgentId:X().trim().min(1).nullable().optional()}).strict();var Tj=Le({kind:Re([`dependency`,`user_input`,`approval`,`external_event`,`scheduled_time`,`retry_backoff`,`paused`]),reason:X().min(1),condition:ke(X(),je()).default({}),resumeAt:Y().int().nonnegative().optional()}),Ej=Me(`type`,[Le({type:Oe(`mark_ready`)}),Le({type:Oe(`start`),executor:Sj,scheduleAt:Y().int().nonnegative().optional()}),Le({type:Oe(`request_review`)}),Le({type:Oe(`close`),resolution:ej}),Le({type:Oe(`reopen`),phase:Re([`ready`,`active`])}),Le({type:Oe(`add_wait`),wait:Tj}),Le({type:Oe(`resolve_wait`),waitId:X(),resolution:je().optional()}),Le({type:Oe(`delegate`),agentId:X().optional()}),Le({type:Oe(`revise_contract`),contract:Cj})]);Le({idempotencyKey:X().trim().min(1).max(200),expectedVersion:Y().int().positive(),command:Ej}).strict(),Le({dependsOnTaskIds:Pe(X().trim().min(1)),expectedVersion:Y().int().positive()}).strict(),Le({ok:Oe(!0),items:Pe(Le({task:mj,operationalState:tj,attention:Pe(aj)}))});var Dj=Le({ok:Oe(!0),task:mj,operationalState:tj,run:lj.optional()}),Oj=Le({ok:Oe(!0),task:mj,operationalState:tj,attention:Pe(aj),waits:Pe(ij),runs:Pe(lj),receipts:Pe(xj),context:Pe(gj),authorityGrants:Pe(_j),dependencies:Pe(vj),dependents:Pe(vj),allowedCommands:Pe(X())});Le({ok:Oe(!0),items:Pe(xj)});var kj=Re([`observe`,`ask_before_action`,`auto_low_risk`]),Aj=Le({startHour:Y().int().min(0).max(23),endHour:Y().int().min(0).max(23),timezone:X().min(1)}),jj=Le({projectId:X(),mode:kj,quietHours:Aj.optional(),allowedActions:Pe(X()),confidenceThreshold:Y().min(0).max(1),scenarios:Pe(X()),configured:Ie(),updatedAt:Y().optional()});Le({mode:kj.optional(),quietHours:Aj.nullable().optional(),allowedActions:Pe(X()).optional(),confidenceThreshold:Y().min(0).max(1).optional(),scenarios:Pe(X()).optional()});var Mj=Le({id:X(),name:X(),status:X(),description:X().optional(),brief:X().optional(),updatedAt:Y()}),Nj=Re([`ready`,`moving`,`waiting`,`needs_user`,`done`]),Pj=Le({dependencyTaskId:X(),dependentTaskId:X()}),Fj=Le({id:X(),title:X(),lane:Nj,phase:$A,resolution:ej.optional(),operationalState:tj,priority:uj,dueAt:Y().optional(),acceptanceCriteriaCount:Y().int().nonnegative(),latestVerification:Re([`passed`,`failed`,`unverified`]).optional(),nextCheckAt:Y().int().nonnegative().optional(),attention:Pe(aj).default([]),blockedBy:Pe(vj).default([]),allowedCommands:Pe(X()),updatedAt:Y()});Le({health:Re([`healthy`,`attention`,`idle`,`empty`]),summary:X(),recommendedAction:X().optional(),counts:Le({ready:Y().int().nonnegative(),moving:Y().int().nonnegative(),waiting:Y().int().nonnegative(),needsUser:Y().int().nonnegative(),done:Y().int().nonnegative()}),updatedAt:Y().int().nonnegative()});var Ij=Le({project:Mj,tasks:Pe(Fj),dependencyEdges:Pe(Pj),blockers:Pe(Le({id:X(),taskId:X(),kind:X(),title:X(),detail:X().optional(),href:X().optional(),updatedAt:Y().optional()})),running:Pe(Le({runId:X(),definitionId:X(),status:X(),createdAt:Y()})),recentResults:Pe(Le({taskId:X(),taskTitle:X(),receipt:xj})),digest:Le({health:Re([`healthy`,`attention`,`idle`,`empty`]),summary:X(),recommendedAction:X().optional()}),monitoring:jj}),Lj=Re([`active`,`idle`,`archived`,`pinned`]),Rj=Le({agentId:X().optional(),source:X().optional(),accountId:X().optional(),peerKind:X().optional(),peerId:X().optional(),threadId:X().optional(),scopeId:X().optional()}).passthrough();Le({key:X(),sessionId:X().optional(),name:X().optional(),title:X().optional(),displayName:X().optional(),messageCount:Y(),updatedAt:X(),sourceChannel:X().optional(),status:Lj.optional(),routing:Rj.optional()}).passthrough();var zj=Le({items:Pe(je()),total:Y(),limit:Y(),offset:Y(),hasMore:Ie()}),Bj=Le({role:X(),content:je(),timestamp:Ae([X(),Y()]).optional()}).passthrough(),Vj=Le({session:Le({key:X(),messages:Pe(Bj)}).passthrough()}),Hj=Le({session:Le({key:X(),sessionId:X().optional(),messages:Pe(Bj),name:X().optional(),status:Lj.optional(),sourceChannel:X().optional(),sourceChatId:X().optional(),routing:Rj.optional()}).passthrough(),pagination:Le({total:Y(),limit:Y(),offset:Y(),hasMore:Ie(),before:X().optional(),nextBeforeCursor:X().optional()}).passthrough()}).passthrough();Le({session:Le({key:X().optional(),sessionId:X().optional()}).passthrough().optional(),reused:Ie().optional()}).passthrough();var Uj=Le({ok:Ie().optional(),payload:Le({active:Ie(),runId:X().optional()}).passthrough().optional()}).passthrough(),Wj=Le({ok:Ie().optional(),error:X().optional()}).passthrough(),Gj=Wj.extend({renamed:Ie().optional()});Wj.extend({reset:Ie().optional(),sessionId:X().optional(),previousSessionId:X().optional(),session:je().optional()});var Kj=Le({totalSessions:Y(),activeSessions:Y(),archivedSessions:Y(),pinnedSessions:Y(),totalMessages:Y(),totalTokens:Y(),oldestSession:X().optional(),newestSession:X().optional(),byChannel:ke(X(),Y())}).passthrough();Le({ok:Ie(),payload:Le({sessionKey:X(),sessionId:X(),session:je()}).passthrough().optional(),error:X().optional()}).passthrough();var qj=Le({ok:Oe(!0),projects:Le({items:Pe(Le({project:je(),sessions:Pe(je()),sessionTotal:Y(),sessionHasMore:Ie()}).passthrough()),total:Y(),limit:Y(),offset:Y(),hasMore:Ie()}),inbox:zj}).passthrough();function Jj(e){return Vj.parse(e)}function Yj(e){return Hj.parse(e)}function Xj(e){return Uj.parse(e)}function Zj(e){return Wj.parse(e)}function Qj(e){return Gj.parse(e)}function $j(e){return Kj.parse(e)}function eM(e){return qj.parse(e)}function tM(e){let t=Xj(e).payload,n=typeof t?.runId==`string`?t.runId.trim():``;return!t?.active||!n?{active:!1}:{active:!0,runId:n}}function nM(e){let t=new URLSearchParams;if(!e)return``;e.status&&t.set(`status`,e.status),e.search&&t.set(`search`,e.search),e.channel&&t.set(`channel`,e.channel),e.projectId&&t.set(`projectId`,e.projectId),e.unassigned&&t.set(`unassigned`,`true`),e.updatedAfter!=null&&t.set(`updatedAfter`,String(e.updatedAfter)),e.includePinned&&t.set(`includePinned`,`true`),e.includeSessionKey&&t.set(`includeSessionKey`,e.includeSessionKey),e.sessionTypes?.length&&t.set(`types`,e.sessionTypes.join(`,`)),e.sortBy&&t.set(`sortBy`,e.sortBy),e.sortOrder&&t.set(`sortOrder`,e.sortOrder),e.limit!=null&&t.set(`limit`,String(e.limit)),e.offset!=null&&t.set(`offset`,String(e.offset));let n=t.toString();return n?`?${n}`:``}function rM(e,t){let n=[];t?.includeTranscript&&n.push(`transcript`),t?.includeTranscriptRows&&n.push(`transcriptRows`);let r=n.length?`?include=${n.join(`,`)}`:``;return`/api/sessions/${encodeURIComponent(e)}${r}`}function iM(e,t){let n=new URLSearchParams;n.set(`limit`,String(t?.limit??50));let r=t?.before?.trim();return r?n.set(`before`,r):t?.offset!=null&&n.set(`offset`,String(t.offset)),`/api/sessions/${encodeURIComponent(e)}/history?${n.toString()}`}function aM(e){return`/api/sessions/${encodeURIComponent(e)}/run`}function oM(){return`/api/sessions/stats`}function sM(e){let t=new URLSearchParams;e?.projectLimit!=null&&t.set(`projectLimit`,String(e.projectLimit)),e?.projectOffset!=null&&t.set(`projectOffset`,String(e.projectOffset)),e?.sessionPreviewLimit!=null&&t.set(`sessionPreviewLimit`,String(e.sessionPreviewLimit)),e?.inboxLimit!=null&&t.set(`inboxLimit`,String(e.inboxLimit)),e?.inboxOffset!=null&&t.set(`inboxOffset`,String(e.inboxOffset)),e?.staleDays!=null&&t.set(`staleDays`,String(e.staleDays)),e?.includeSessionKey&&t.set(`includeSessionKey`,e.includeSessionKey);let n=t.toString();return`/api/sidebar/chat-list${n?`?${n}`:``}`}function cM(e,t){let n=encodeURIComponent(e);return t===`delete`?`/api/sessions/${n}`:`/api/sessions/${n}/${t}`}function lM(e){return e?JSON.stringify({status:e.status,search:e.search,channel:e.channel,projectId:e.projectId,unassigned:e.unassigned,updatedAfter:e.updatedAfter,includePinned:e.includePinned,includeSessionKey:e.includeSessionKey,sessionTypes:e.sessionTypes,sortBy:e.sortBy,sortOrder:e.sortOrder,limit:e.limit,offset:e.offset}):`default`}var uM=[0,500,1500],dM=1e4;function fM(e){let t=JSON.stringify([e.content,e.thinking??null,e.attachments??null]),n=2166136261,r=5381;for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);n^=i,n=Math.imul(n,16777619),r=Math.imul(r,33)^i}return`${t.length.toString(36)}:${(n>>>0).toString(36)}:${(r>>>0).toString(36)}`}function pM(e){return e===408||e===429||e>=500}var mM={main:`general`,coder:`coding`,writer:`writing`,researcher:`research`,"data-analyst":`data`,creative:`creative`};function hM(e,t){if(e)return e.replace(/\{\{(\w+)}}/g,(e,n)=>t[n]?.trim()??``).replace(/[ \t]{2,}/g,` `).trim()}function gM(e,t){return{headline:hM(e.headline,t)??e.headline,tagline:hM(e.tagline,t)??e.tagline,contextLabel:hM(e.contextLabel,t),categories:e.categories.map(e=>({...e,title:hM(e.title,t)??e.title,description:hM(e.description,t)??e.description,scenarios:e.scenarios.map((n,r)=>({id:n.id??`${e.id}:${r}`,prompt:hM(n.prompt,t)??n.prompt}))}))}}function _M(e){let t=e?.id.trim().toLowerCase()??``;if(mM[t])return mM[t];let n=[e?.id,e?.name,e?.description,e?.role,...e?.responsibilities??[],...e?.skills??[]].filter(Boolean).join(` `).toLowerCase();return/\b(code|coder|coding|developer|engineer|debug|refactor|test|review|software)\b|编程|代码|开发|工程|调试|测试|审查|重构|软件/.test(n)?`coding`:/\b(write|writer|writing|draft|edit|rewrite|copy|content|translate)\b|写作|文案|编辑|改写|翻译|内容|撰写/.test(n)?`writing`:/\b(research|researcher|search|source|fact|synthesis|investigate|investigation)\b|调研|研究|搜索|检索|核查|资料|事实|来源|综合/.test(n)?`research`:/\b(data|analysis|analyst|csv|sql|metric|visuali[sz]ation|report)\b|数据|分析|报表|指标|可视化|统计/.test(n)?`data`:/\b(creative|design|visual|image|story|brainstorm|ideation)\b|创意|设计|视觉|图像|故事|头脑风暴|构思/.test(n)?`creative`:`general`}function vM(e){switch(e.kind){case`codingProject`:case`generalProject`:return e.projectName;case`note`:return e.title;case`workingDirectory`:case`codingWorkspace`:return e.path;default:return``}}function yM(e,t,n,r){if(r&&n)return hM(t.reasons.agent,{agentName:n})??t.reasons.general;switch(e.kind){case`codingProject`:case`generalProject`:return hM(t.reasons.project,{projectName:e.projectName})??t.reasons.general;case`note`:return hM(t.reasons.note,{noteTitle:e.title})??t.reasons.general;case`workingDirectory`:case`codingWorkspace`:return hM(t.reasons.directory,{path:e.path})??t.reasons.general;default:return n?hM(t.reasons.agent,{agentName:n})??t.reasons.general:t.reasons.general}}function bM(e,t,n){let r=``,i=``,a={};if(e.kind===`codingProject`&&e.workspaceRoot?.trim()&&(r=`understand-codebase`,i=n.contextPrompts.codingWorkspace,a={projectName:e.projectName,workspaceRoot:e.workspaceRoot}),!r||!i)return null;let o=t.find(e=>e.id===r);return o?{id:`context:${r}`,categoryId:r,category:o,icon:o.icon,title:o.title,prompt:hM(i,a)??i,reason:``,score:300}:null}function xM(e,t){switch(e.kind){case`codingProject`:return t===`understand-codebase`?45:t===`implement-feature`?30:20;case`codingWorkspace`:return t===`directory-understand`?45:t===`directory-entry`?30:20;case`generalProject`:return t===`project-next-step`?40:25;case`note`:return t===`note-summarize`?40:25;case`workingDirectory`:return t===`directory-understand`?40:25;default:return 0}}function SM(e,t,n,r,i){let a=e.flatMap((e,i)=>e.scenarios.map((a,o)=>{let s=a.id??`${e.id}:${o}`,c=Math.min(35,Math.max(0,r[s]??0)),l=e.id===n?t.kind===`empty`?55:20:0;return{id:s,categoryId:e.id,category:e,icon:e.icon,title:e.title,prompt:a.prompt,reason:``,score:100-i*8-o+xM(t,e.id)+l+c}})),o=bM(t,e,i);o&&a.push(o);let s=new Set;return a.sort((e,t)=>t.score-e.score).filter(e=>{let t=e.prompt.trim().toLocaleLowerCase();return!t||s.has(t)?!1:(s.add(t),!0)})}function CM(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)>>>0;return t}function wM(e,t){return Math.max(0,...e.scenarios.map((n,r)=>t[n.id??`${e.id}:${r}`]??0))}function TM(e,t,n,r){let i=gM({headline:``,tagline:``,categories:e.exploreCards},{}).categories.map(e=>({...e,scope:`explore`}));if(i.length===0)throw Error(`Welcome spotlight requires at least one exploration card`);let a=CM(n)%i.length;if(r>0)return i[(a+r)%i.length]??i[0];let o=i.map((e,n)=>({card:e,index:n,score:wM(e,t)})).sort((e,t)=>t.score-e.score||Math.abs(e.index-a)-Math.abs(t.index-a))[0];return o&&o.score>0?o.card:i[a]??i[0]}function EM(e){return e.kind===`codingProject`||e.kind===`codingWorkspace`}function DM(e,t,n,r={}){let i,a={};switch(e.kind){case`codingProject`:i=t.codingProject,a.projectName=e.projectName,a.workspaceRoot=e.workspaceRoot;break;case`codingWorkspace`:i=t.codingWorkspace,a.path=e.path;break;case`generalProject`:i=t.generalProject,a.projectName=e.projectName;break;case`note`:i=t.note,a.noteTitle=e.title;break;case`workingDirectory`:i=t.workingDirectory,a.path=e.path;break;default:i=t.empty;break}let o=gM(i,a),s=_M(n),c=n?.name?.trim()||n?.id.trim()||``,l=vM(e)||t.contextFallbackTitle,u=null,d=[...o.categories];if(s!==`general`&&s!==`coding`&&!EM(e)){let e=t.agentCards[s];if(e){let[t]=gM({headline:o.headline,tagline:o.tagline,categories:[e]},{agentName:c,contextTitle:l}).categories;t&&!d.some(e=>e.id===t.id)&&(d.push(t),u=t.id)}}let f=SM(d,e,u,r.affinity??{},t),p=f[0];if(!p)throw Error(`Welcome spotlight requires at least one suggestion`);let m=yM(e,t,c,p.categoryId===u),h=new Map;for(let e of f)h.set(e.categoryId,Math.max(h.get(e.categoryId)??0,e.score));let g=(e.kind===`empty`?d.filter(e=>e.id!==`research`):d).filter(e=>e.scenarios.length>0).sort((e,t)=>(h.get(t.id)??0)-(h.get(e.id)??0)).slice(0,2).map(e=>({...e,scope:`context`})),_=TM(t,r.affinity??{},r.explorationSeed??`default`,Math.max(0,r.explorationOffset??0)),v=r.contextStatus??`ready`;return{...o,contextKind:e.kind,tagline:c&&s!==`general`?hM(t.agentTagline,{agentName:c})??o.tagline:o.tagline,contextStatus:v,statusLabel:v===`loading`?t.contextLoading:v===`degraded`?t.contextFallback:void 0,retryLabel:t.retryContext,refreshExplorationLabel:t.refreshExplorationLabel,otherSuggestionsLabel:t.otherSuggestionsLabel,primaryRecommendation:{id:p.id,categoryId:p.categoryId,icon:p.icon,title:p.title,prompt:p.prompt,reason:m},categories:[...g,_]}}var OM=Le({id:X(),kind:Re([`agent_judgment`,`task`,`connector_approval`]),title:X(),detail:X().optional(),reason:Re([`needs_input`,`blocked`,`user_input`,`user_approval`,`dependency`,`external`,`scheduled`,`retry`,`paused`,`overdue`,`due_soon`,`decision_needed`,`approval_required`]),urgency:Re([`now`,`soon`]),href:X(),projectId:X().optional(),projectName:X().optional(),updatedAt:Y(),judgment:Le({inboxItemId:X(),whyNow:X(),impact:X(),workDone:X(),recommendation:X(),confidence:Y(),valueScore:Y().min(0).max(1).optional(),decision:Le({question:X(),options:Pe(Le({id:X(),label:X(),consequence:X()}))}).optional()}).optional(),response:Me(`kind`,[Le({kind:Oe(`connector_approval`),approvalId:X()})]).optional()}),kM=Le({id:X(),kind:Re([`automation_run`,`workflow_run`]),runId:X(),title:X(),detail:X(),reason:Re([`run_failed`,`run_timeout`]),href:X(),updatedAt:Y(),sessionKey:X().optional()}),AM=Le({id:X(),name:X().optional(),trigger:X(),action:X(),nextRunAt:X()}),jM=Le({id:X(),definitionId:X(),title:X(),status:X(),sessionKey:X().optional(),createdAtMs:Y(),startedAtMs:Y().optional(),completedAtMs:Y().optional(),metrics:Le({agentCount:Y(),doneAgentCount:Y(),errorAgentCount:Y(),skippedAgentCount:Y(),artifactCount:Y(),durationMs:Y().optional()})}),MM=Le({key:X(),name:X(),updatedAt:X().optional(),active:Ie()}),NM=Le({id:X(),kind:Re([`task`,`workflow_run`,`automation_run`]),title:X(),href:X(),completedAt:Y()}),PM=Me(`type`,[Le({type:Oe(`open`),label:X(),target:Re([`work`,`task`,`workflow_run`,`automation`,`session`,`inbox`,`inbox_judgment`]),targetId:X().optional(),sessionKey:X().optional()}),Le({type:Oe(`connector_decision`),label:X(),approvalId:X(),decision:Re([`approve`,`deny`])}),Le({type:Oe(`retry_run`),label:X(),subjectKind:Re([`automation_run`,`workflow_run`]),runId:X()}),Le({type:Oe(`acknowledge_run`),label:X(),subjectKind:Re([`automation_run`,`workflow_run`]),runId:X()}),Le({type:Oe(`ask_ai`),label:X()})]),FM=Le({focusItems:Pe(Le({id:X(),kind:Re([`decision`,`failure`,`running`,`result`,`scheduled`,`suggestion`]),priority:Y(),title:X(),summary:X(),statusLabel:X().optional(),updatedAt:Y(),pinnable:Ie().default(!0),openAction:PM.optional(),primaryAction:PM.optional(),secondaryActions:Pe(PM).max(2).default([])})).min(1),briefing:Le({generatedAt:Y(),summary:X(),focus:Pe(OM),progress:Le({activeWorkflowCount:Y(),activeTaskCount:Y(),movingCount:Y()}),wins:Pe(NM),nextScheduled:AM.optional()}),decisions:Pe(OM),attention:Pe(kM),attentionPolicy:Le({visibleDecisionCount:Y().int().nonnegative(),suppressedDecisionCount:Y().int().nonnegative(),visibleAttentionCount:Y().int().nonnegative(),suppressedAttentionCount:Y().int().nonnegative()}).default({visibleDecisionCount:0,suppressedDecisionCount:0,visibleAttentionCount:0,suppressedAttentionCount:0}),chats:Le({running:Pe(MM),recent:Pe(MM)}),workflowRuns:Le({active:Pe(jM),recent:Pe(jM)}),upcomingAutomations:Pe(AM),tasks:Le({running:Pe(mj)}).default({running:[]}),recentTasks:Pe(xj).default([])});Le({northStar:Le({weeklyTrustedProgress:Y(),weeklyActiveUsers:Y(),trustedProgressPerWeeklyActiveUser:Y()}),tasks:Le({total:Y(),achieved:Y(),partial:Y(),notAchieved:Y(),userCorrected:Y(),achievementRate:Y(),correctionRate:Y(),trusted:Y(),trustedRate:Y()})});function IM(e){return FM.parse(e)}var LM={category:`other`,action:`use`,source:`unknown`,sensitivity:`normal`},RM={memory_search:{category:`memory`,action:`search`,source:`memory`,sensitivity:`personal`,purpose:`personal_context`},memory_get:{category:`memory`,action:`read`,source:`memory`,sensitivity:`personal`,purpose:`personal_context`},web_search:{category:`web`,action:`search`,source:`internet`,sensitivity:`normal`},brave_search:{category:`web`,action:`search`,source:`internet`,sensitivity:`normal`},image_query:{category:`web`,action:`search`,source:`internet`,sensitivity:`normal`},web_fetch:{category:`web`,action:`read`,source:`internet`,sensitivity:`normal`},fetch_url:{category:`web`,action:`read`,source:`internet`,sensitivity:`normal`},open_url:{category:`navigation`,action:`open`,source:`internet`,sensitivity:`normal`},browser_use:{category:`navigation`,action:`open`,source:`internet`,sensitivity:`normal`},grep:{category:`code`,action:`search`,source:`workspace`,sensitivity:`normal`},glob:{category:`code`,action:`search`,source:`workspace`,sensitivity:`normal`},find_files:{category:`code`,action:`search`,source:`workspace`,sensitivity:`normal`},session_search:{category:`other`,action:`search`,source:`runtime`,sensitivity:`normal`},search:{category:`other`,action:`search`,source:`unknown`,sensitivity:`normal`},read_file:{category:`file`,action:`read`,source:`workspace`,sensitivity:`normal`},"review.prepare_diff":{category:`file`,action:`read`,source:`workspace`,sensitivity:`normal`},list_dir:{category:`file`,action:`list`,source:`workspace`,sensitivity:`normal`},ls:{category:`file`,action:`list`,source:`workspace`,sensitivity:`normal`},write_file:{category:`file`,action:`write`,source:`workspace`,sensitivity:`normal`},apply_patch:{category:`file`,action:`edit`,source:`workspace`,sensitivity:`normal`},exec_command:{category:`command`,action:`execute`,source:`runtime`,sensitivity:`normal`},run_command:{category:`command`,action:`execute`,source:`runtime`,sensitivity:`normal`},update_plan:{category:`planning`,action:`plan`,source:`runtime`,sensitivity:`normal`}};function zM(e){let t=e.trim().toLowerCase().replace(/-/g,`_`),n=t.split(`__`).at(-1)??t;return n.split(`.`).at(-1)??n}function BM(e){let t=e.trim().toLowerCase().replace(/-/g,`_`);return RM[t]??RM[zM(t)]??LM}function VM(e){if(typeof e==`string`)try{return VM(JSON.parse(e))}catch{return null}return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function HM(e){let t=VM(e),n=VM(t?.details)?.results??t?.results;return Array.isArray(n)?n.length:void 0}function UM(e){let t=VM(e);return typeof(VM(t?.details)?.error??t?.error)==`string`}function WM(e,t,n){let r=BM(e),i=HM(n),a=t===`completed`&&UM(n)?`failed`:t===`completed`&&i===0?`empty`:t;return{...r,status:a,...i===void 0?{}:{count:i}}}var GM=function(e){return e[e.PermissionDenied=4001]=`PermissionDenied`,e[e.InvalidRequest=4002]=`InvalidRequest`,e[e.MethodNotFound=4003]=`MethodNotFound`,e[e.InternalError=4004]=`InternalError`,e[e.Timeout=4005]=`Timeout`,e[e.ExtensionNotFound=4006]=`ExtensionNotFound`,e[e.RateLimited=4007]=`RateLimited`,e}({}),KM=1e4,qM,JM=new Set;function YM(e,t){qM={type:`endpoint`,endpointId:e,token:t};for(let e of JM)e(qM);JM.clear()}function XM(e){!qM||e&&qM.token!==e||(qM=void 0)}function ZM(e){return qM?Promise.resolve(qM):e?.aborted?Promise.reject(e.reason):new Promise((t,n)=>{let r=e=>{o(),t(e)},i=()=>{o(),n(e?.reason??new DOMException(`Aborted`,`AbortError`))},a=globalThis.setTimeout(()=>{o(),n(Error(`Endpoint connection is not ready`))},KM),o=()=>{globalThis.clearTimeout(a),JM.delete(r),e?.removeEventListener(`abort`,i)};JM.add(r),e?.addEventListener(`abort`,i,{once:!0})})}var QM=[`--color-surface-base`,`--color-surface-panel`,`--color-surface-hover`,`--color-fg`,`--color-fg-muted`,`--color-fg-subtle`,`--color-accent`,`--color-accent-hover`,`--color-accent-soft`,`--color-edge`,`--color-edge-subtle`,`--color-danger`,`--color-success`,`--color-warning`,`--radius-sm`,`--radius-lg`,`--radius-xl`];function $M(e){let t=getComputedStyle(document.documentElement),n={};for(let e of QM){let r=t.getPropertyValue(e).trim();r&&(n[e]=r)}return{mode:e,tokens:n,fontFamily:t.getPropertyValue(`font-family`).trim(),fontFamilyMono:t.getPropertyValue(`--font-mono`).trim()}}var eN={"agent.sendMessage":`agent.send`,"session.list":`session.read`,"session.navigate":`session.read`,"config.get":`config.read`,"config.set":`config.write`,"storage.get":`storage`,"storage.set":`storage`,"storage.remove":`storage`,"storage.keys":`storage`,"ui.notification":`notification`,"ui.navigate":`theme`,"theme.get":`theme`},tN=class{iframes=new Map;byContentWindow=new WeakMap;handlers=new Map;extensionPermissions=new Map;eventSubscribers=new Map;agentStreamSubscriptions=new Map;boundListener=e=>{this.onWindowMessage(e)};constructor(){window.addEventListener(`message`,this.boundListener)}dispose(){window.removeEventListener(`message`,this.boundListener),this.iframes.clear(),this.handlers.clear(),this.extensionPermissions.clear(),this.eventSubscribers.clear(),this.agentStreamSubscriptions.clear()}registerIframe(e,t,n){let r=this.iframes.get(e);r&&r!==t&&r.contentWindow&&this.byContentWindow.delete(r.contentWindow),this.iframes.set(e,t),this.extensionPermissions.set(e,new Set(n)),this.rememberIframeWindow(e,t)}unregisterIframe(e){let t=this.iframes.get(e);t?.contentWindow&&this.byContentWindow.delete(t.contentWindow),this.iframes.delete(e),this.extensionPermissions.delete(e),this.agentStreamSubscriptions.delete(e)}rememberIframeWindow(e,t){let n=t.contentWindow;n&&this.byContentWindow.set(n,{extensionId:e,iframe:t})}subscribeAgentStream(e,t){let n=this.agentStreamSubscriptions.get(e);n||(n=new Set,this.agentStreamSubscriptions.set(e,n)),n.add(t)}unsubscribeAgentStream(e,t){this.agentStreamSubscriptions.get(e)?.delete(t)}forwardAgentStreamEvent(e,t){for(let[n,r]of this.agentStreamSubscriptions)r.has(e)&&this.sendEvent(n,`agent.stream.${e}`,t)}broadcastExtensionEvent(e,t,n){let r=t.startsWith(`ext.`)?t:`ext.${t}`;for(let[t]of this.iframes)t!==e&&this.sendEvent(t,r,n)}handleExtensionEvent(e,t,n){if(t.startsWith(`ext.`)){let r=t.slice(4);this.broadcastExtensionEvent(e,r,n);return}if(t===`agent.subscribe`||t===`agent.unsubscribe`){if(!(this.extensionPermissions.get(e)??new Set).has(`agent.subscribe`))return;let{sessionKey:r}=n??{};if(typeof r!=`string`||!r.trim())return;let i=r.trim();t===`agent.subscribe`?this.subscribeAgentStream(e,i):this.unsubscribeAgentStream(e,i)}}registerMethod(e,t){this.handlers.set(e,t)}subscribeExtensionEvents(e,t){let n=this.eventSubscribers.get(e);return n||(n=new Set,this.eventSubscribers.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this.eventSubscribers.delete(e)}}sendInit(e,t,n){let r=this.iframes.get(e);if(!r?.contentWindow)return;this.rememberIframeWindow(e,r);let i=[...this.extensionPermissions.get(e)??[]];r.contentWindow.postMessage({source:`xopc-host`,type:`init`,extensionId:e,permissions:i,theme:t,locale:n},`*`)}sendEvent(e,t,n){let r=this.iframes.get(e);r?.contentWindow&&r.contentWindow.postMessage({source:`xopc-host`,type:`event`,event:t,data:n},`*`)}broadcastEvent(e,t){for(let[,n]of this.iframes)n.contentWindow?.postMessage({source:`xopc-host`,type:`event`,event:e,data:t},`*`)}postResponse(e,t,n,r,i){let a=e.contentWindow??(t?.source instanceof Window?t.source:null),o={source:`xopc-host`,type:`response`,requestId:n,result:r,error:i};a&&a.postMessage(o,`*`)}isTrustedExtensionSource(e,t){if(t.source===null)return!0;let n=e.contentWindow;if(t.source===n)return!0;if(n&&typeof Window<`u`&&t.source instanceof Window)try{return t.source.frameElement===e}catch{}return!1}async onWindowMessage(e){let t=e.data;if(!t||t.source!==`xopc-extension`)return;let n,r=t.extensionId;if(e.source instanceof Window){let t=this.byContentWindow.get(e.source);t&&(n=t.iframe,r=t.extensionId)}if(n||(n=this.iframes.get(t.extensionId),r=t.extensionId),!n||!(e.source instanceof Window&&this.byContentWindow.has(e.source))&&!this.isTrustedExtensionSource(n,e))return;if(t.type===`event`){this.handleExtensionEvent(r,t.event,t.data);let e=this.eventSubscribers.get(r);if(e){let n={event:t.event,data:t.data};for(let t of e)try{t(n)}catch{}}return}if(t.type!==`request`)return;let{requestId:i,method:a,params:o}=t,s=this.handlers.get(a);if(!s){this.postResponse(n,e,i,void 0,{code:GM.MethodNotFound,message:`Unknown method: ${a}`});return}let c=eN[a],l=this.extensionPermissions.get(r)??new Set;if(c&&!l.has(c)){this.postResponse(n,e,i,void 0,{code:GM.PermissionDenied,message:`Missing permission: ${c}`});return}try{let t=await s(r,o);this.postResponse(n,e,i,t)}catch(t){let r=t instanceof Error?t.message:String(t);this.postResponse(n,e,i,void 0,{code:GM.InternalError,message:r})}}};function nN(e){e.registerMethod(`theme.get`,async()=>$M(W.getState().resolved)),e.registerMethod(`ui.navigate`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&`path`in t?String(t.path??``):``;n&&window.dispatchEvent(new CustomEvent(`extension-navigate`,{detail:{path:n}}))}),e.registerMethod(`ui.notification`,async(e,t)=>{if(!t||typeof t!=`object`)return;let n=t,r=typeof n.title==`string`?n.title.trim():``;r&&De({tone:n.type===`success`||n.type===`warning`||n.type===`error`||n.type===`info`?n.type:`info`,title:r,message:typeof n.message==`string`?n.message:void 0,source:e,dedupeKey:`extension:${e}:${r}`})}),e.registerMethod(`session.navigate`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&`sessionKey`in t?String(t.sessionKey??``):``;n&&window.dispatchEvent(new CustomEvent(`navigate-to-chat`,{detail:{sessionKey:n},bubbles:!0}))}),e.registerMethod(`session.list`,async()=>{let e=await L(z(`/api/sessions`));if(!e.ok)throw Error(`Failed to list sessions: ${e.status}`);return((await e.json()).items??[]).map(e=>({sessionKey:e.key,title:e.name,lastMessageAt:e.updatedAt??e.lastAccessedAt,messageCount:e.messageCount}))}),e.registerMethod(`agent.sendMessage`,async(e,t)=>{let{message:n,sessionKey:r,newSession:i}=t,a=r?.trim()||``;if(i||!a){let e=await L(z(`/api/sessions`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({channel:`webchat`})});if(!e.ok)throw Error(`Session create failed: ${e.status}`);if(a=(await e.json()).session?.key??``,!a)throw Error(`Session create did not return a session key`)}let o=await ZM(),s=await L(z(`/api/sessions/${encodeURIComponent(a)}/inputs`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({clientMessageId:crypto.randomUUID(),delivery:`next`,content:n,origin:o})});if(!s.ok)throw Error(`Agent request failed: ${s.status}`);return{sessionKey:a}}),e.registerMethod(`config.get`,async e=>{let t=await L(z(`/api/extensions/${encodeURIComponent(e)}/config`));if(!t.ok)throw Error(`Failed to get config: ${t.status}`);return t.json()}),e.registerMethod(`config.set`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&!Array.isArray(t)?t:{},r=await L(z(`/api/extensions/${encodeURIComponent(e)}/config`),{method:`PATCH`,body:JSON.stringify(n)});if(!r.ok)throw Error(`Failed to set config: ${r.status}`)}),e.registerMethod(`storage.get`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&`key`in t?String(t.key??``):``,r=await L(z(`/api/extensions/${encodeURIComponent(e)}/storage/${encodeURIComponent(n)}`));if(r.status!==404){if(!r.ok)throw Error(`Failed to get storage key: ${r.status}`);return(await r.json()).value}}),e.registerMethod(`storage.set`,async(e,t)=>{let n=t,r=n&&typeof n.key==`string`?n.key:``,i=await L(z(`/api/extensions/${encodeURIComponent(e)}/storage/${encodeURIComponent(r)}`),{method:`PUT`,body:JSON.stringify({value:n?.value})});if(!i.ok)throw Error(`Failed to set storage key: ${i.status}`)}),e.registerMethod(`storage.remove`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&`key`in t?String(t.key??``):``,r=await L(z(`/api/extensions/${encodeURIComponent(e)}/storage/${encodeURIComponent(n)}`),{method:`DELETE`});if(r.status!==404&&!r.ok)throw Error(`Failed to remove storage key: ${r.status}`)}),e.registerMethod(`storage.keys`,async e=>{let t=await L(z(`/api/extensions/${encodeURIComponent(e)}/storage`));if(!t.ok)throw Error(`Failed to list storage keys: ${t.status}`);return(await t.json()).keys??[]})}function rN(e){return e.active||e.activationEligible===!0}function iN(e){let t=e.ui?.contributions;return t?Array.isArray(t.pages)&&t.pages.length>0||Array.isArray(t.settingsPanels)&&t.settingsPanels.length>0||Array.isArray(t.chatWidgets)&&t.chatWidgets.length>0||Array.isArray(t.sidebarPanels)&&t.sidebarPanels.length>0:!1}function aN(e){return e.source===`bundled`&&e.hasUi===!0&&iN(e)}function oN(e){return e.kind===`image-generation`||e.kind===`media-provider`}function sN(e){return rN(e)?e.hasConfigSchema||oN(e)?!0:e.hasUi?iN(e):!1:!1}function cN(e){return sN(e)||aN(e)}var lN=(0,Z.createContext)(null);function uN({children:e}){let t=(0,Z.useRef)(null);if(!t.current){let e=new tN;nN(e),t.current=e}let n=t.current,r=F(e=>!!e.token),{data:i,isLoading:a,mutate:o}=xe(r?`gateway-extensions-list`:null,()=>B(z(`/api/extensions`)),{revalidateOnFocus:!1}),s=i?.extensions??[],c=W(e=>e.resolved);(0,Z.useEffect)(()=>{r&&QA.getState().fetchContext()},[r]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;t&&typeof t==`object`&&!Array.isArray(t)&&QA.getState().updateContext(t)},t=()=>{QA.getState().fetchContext(),o()};return window.addEventListener(`context-update`,e),window.addEventListener(`config-reload`,t),window.addEventListener(`registry-updated`,t),()=>{window.removeEventListener(`context-update`,e),window.removeEventListener(`config-reload`,t),window.removeEventListener(`registry-updated`,t)}},[o]);let l=(0,Z.useCallback)(e=>{let t=e.detail;t?.sessionKey&&n.forwardAgentStreamEvent(t.sessionKey,t.event??t)},[n]),u=(0,Z.useRef)(l);u.current=l,(0,Z.useEffect)(()=>{let e=e=>{u.current(e)};return window.addEventListener(`agent-stream-event`,e),()=>{window.removeEventListener(`agent-stream-event`,e)}},[]),(0,Z.useEffect)(()=>{let e=$M(c);n.broadcastEvent(`theme.changed`,e)},[c,n]);let d=(0,Z.useRef)(n);d.current=n,(0,Z.useEffect)(()=>()=>{d.current.dispose(),t.current=null},[]);let f=(0,Z.useMemo)(()=>({router:n,extensions:s,loading:a}),[n,s,a]);return(0,$.jsx)(lN.Provider,{value:f,children:e})}function dN(){let e=(0,Z.useContext)(lN);if(!e)throw Error(`useExtensionRouter must be used within ExtensionProvider`);return e.router}function fN(){let e=(0,Z.useContext)(lN);if(!e)throw Error(`useExtensions must be used within ExtensionProvider`);return e.extensions}function pN(){let e=(0,Q.c)(2),t=fN(),n;return e[0]===t?n=e[1]:(n=t.filter(sN),e[0]=t,e[1]=n),n}function mN(){let e=(0,Z.useContext)(lN);if(!e)throw Error(`useExtensionsLoading must be used within ExtensionProvider`);return e.loading}var hN=`open-discussion-capture`;function gN(e){window.dispatchEvent(new CustomEvent(hN,{detail:e?{projectId:e}:{}}))}function _N(e,t){return t.path.startsWith(`/extensions/`)?t.path:`/extensions/${e}/${t.id.startsWith(`${e}.`)?t.id.slice(e.length+1):t.id}`}function vN(e){return Jw[e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)]}var yN=[{id:`builtin:home`,to:`/`,Icon:uh},{id:`builtin:projects`,to:`/projects`,Icon:Ff},{id:`builtin:profile`,to:`/you`,Icon:Hm},{id:`builtin:notes`,to:`/notes`,Icon:Cb},{id:`builtin:automations`,to:`/automations`,Icon:Mw},{id:`builtin:skills`,to:`/skills`,Icon:og},{id:`builtin:connectors`,to:`/connectors`,Icon:Li},{id:`builtin:agents`,to:`/agents`,Icon:yC},{id:`builtin:channels`,to:`/channels`,Icon:by},{id:`builtin:workflows`,to:`/workflows`,Icon:Ep},{id:`builtin:browserWorkflows`,to:`/browser-workflows`,Icon:Xv},{id:`builtin:localApps`,to:`/local-apps`,Icon:wi},{id:`builtin:extensions`,to:`/extensions`,Icon:wy}],bN=3;function xN(e,t,n=bN){let r=new Map;for(let t of e)r.set(t.id,t);let i=[],a=new Set;for(let e of t){let t=r.get(e);!t||a.has(e)||(i.push(t),a.add(e))}for(let t of e)a.has(t.id)||(i.push(t),a.add(t.id));let o=Math.min(4,Math.max(2,Math.round(n)));return i.length<=o?{visible:i,overflow:[],hasOverflow:!1}:{visible:i.slice(0,o),overflow:i.slice(o),hasOverflow:!0}}var SN=`text/plain`,CN=`xopc-nav:`;function wN(e){return`${CN}${e}`}function TN(e){return e.startsWith(CN)?e.slice(9):null}function EN(e){let t=e.currentTarget.getBoundingClientRect();return e.clientY<t.top+t.height/2?`before`:`after`}function DN({isActive:e},t,n,r){return C(`group relative flex w-full items-center text-sm font-medium leading-6 transition-colors duration-200 ease-out`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,t?`justify-center rounded-xl p-2.5`:`gap-2 rounded-lg px-3 py-2 text-left`,e?`bg-accent-soft text-accent-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`,n&&`opacity-40`,r===`before`&&`shadow-[inset_0_2px_0_0_var(--color-accent)]`,r===`after`&&`shadow-[inset_0_-2px_0_0_var(--color-accent)]`)}function ON({isActive:e},t,n){return C(`group relative flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm font-medium leading-5 transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,e?`bg-accent-soft text-accent-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`,t&&`opacity-40`,n===`before`&&`shadow-[inset_0_2px_0_0_var(--color-accent)]`,n===`after`&&`shadow-[inset_0_-2px_0_0_var(--color-accent)]`)}function kN(e){let t=(0,Q.c)(11),{item:n,collapsed:r}=e,{Icon:i,letter:a}=n;if(i){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=C(`size-4`,`shrink-0 opacity-90`),t[0]=e):e=t[0];let n;return t[1]===i?n=t[2]:(n=(0,$.jsx)(i,{className:e,strokeWidth:1.75,"aria-hidden":!0}),t[1]=i,t[2]=n),n}let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=C(`size-4`,`flex shrink-0 items-center justify-center text-[10px] font-bold opacity-70`),t[3]=o):o=t[3];let s;t[4]!==n.label||t[5]!==a?(s=a??n.label.charAt(0),t[4]=n.label,t[5]=a,t[6]=s):s=t[6];let c;t[7]===s?c=t[8]:(c=s.toUpperCase(),t[7]=s,t[8]=c);let l;return t[9]===c?l=t[10]:(l=(0,$.jsx)(`span`,{className:o,"aria-hidden":!0,children:c}),t[9]=c,t[10]=l),l}function AN(e){let t=[];for(let n of e){if(n.activationEligible===!1)continue;let e=n.ui?.contributions?.pages;if(e)for(let r of e){if(!r.showInNav)continue;let e=r.navIcon?vN(r.navIcon):void 0;t.push({id:`ext:${n.id}:${r.id}`,kind:`extension`,label:r.title,to:_N(n.id,r),Icon:e,letter:r.title.charAt(0),title:r.title})}}return t}function jN(e){let t=(0,Q.c)(60),{collapsed:n,onNavigate:r,visibleLimit:i,afterVisible:a}=e,o=n===void 0?!1:n,s=I(LN),c;t[0]===s?c=t[1]:(c=j(s),t[0]=s,t[1]=c);let l=c,u=pN(),d=XA(IN),f=XA(FN),[p,m]=(0,Z.useState)(null),[g,_]=(0,Z.useState)(null),[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(!1),S;if(t[2]!==l.nav||t[3]!==u){let e;t[5]===l.nav?e=t[6]:(e=e=>{let t=e.id.slice(8);return{id:e.id,kind:`builtin`,label:l.nav[t],to:e.to,Icon:e.Icon}},t[5]=l.nav,t[6]=e);let n=yN.map(e),r=AN(u);S=[...n,...r],t[2]=l.nav,t[3]=u,t[4]=S}else S=t[4];let w=S,T;t[7]!==w||t[8]!==d||t[9]!==i?(T=xN(w,d,i),t[7]=w,t[8]=d,t[9]=i,t[10]=T):T=t[10];let E=T,D;t[11]!==E.overflow||t[12]!==E.visible?(D=[...E.visible,...E.overflow].map(PN),t[11]=E.overflow,t[12]=E.visible,t[13]=D):D=t[13];let O=D,k;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>t=>{t.dataTransfer.setData(SN,wN(e)),t.dataTransfer.effectAllowed=`move`,m(e)},t[14]=k):k=t[14];let A=k,M;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>{m(null),_(null),y(!1)},t[15]=M):M=t[15];let N=M,P;t[16]!==p||t[17]!==g?(P=e=>t=>{if(!p)return;t.preventDefault(),t.dataTransfer.dropEffect=`move`;let n=EN(t);g?.id===e&&g.position===n||_({id:e,position:n})},t[16]=p,t[17]=g,t[18]=P):P=t[18];let F=P,L;t[19]!==O||t[20]!==f?(L=e=>t=>{t.preventDefault();let n=TN(t.dataTransfer.getData(SN));if(!n||n===e){N();return}let r=O.filter(e=>e!==n),i=r.indexOf(e);if(i===-1){N();return}let a=EN(t)===`before`?i:i+1;f([...r.slice(0,a),n,...r.slice(a)]),N()},t[19]=O,t[20]=f,t[21]=L):L=t[21];let R=L,z;t[22]===p?z=t[23]:(z=e=>{p&&(e.preventDefault(),e.dataTransfer.dropEffect=`move`,y(!0))},t[22]=p,t[23]=z);let B=z,V;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(V=()=>y(!1),t[24]=V):V=t[24];let H=V,U;t[25]!==O||t[26]!==f?(U=e=>{e.preventDefault();let t=TN(e.dataTransfer.getData(SN));t&&f([...O.filter(e=>e!==t),t]),N()},t[25]=O,t[26]=f,t[27]=U):U=t[27];let W=U,G=NN,K;t[28]!==o||t[29]!==p||t[30]!==g||t[31]!==r||t[32]!==F||t[33]!==R?(K=function(e){let t=p===e.id,n=g?.id===e.id?g.position:null;return(0,$.jsxs)(h,{to:e.to,end:e.to===`/`,draggable:!0,onDragStart:A(e.id),onDragEnd:N,onDragOver:F(e.id),onDrop:R(e.id),className:e=>DN(e,o,t,n),title:e.title??e.label,onMouseEnter:()=>G(e.to),onFocus:()=>G(e.to),onClick:()=>r?.(),children:[(0,$.jsx)(kN,{item:e,collapsed:o}),o?null:(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.id)},t[28]=o,t[29]=p,t[30]=g,t[31]=r,t[32]=F,t[33]=R,t[34]=K):K=t[34];let ee=K,q;t[35]!==o||t[36]!==p||t[37]!==g||t[38]!==l.notes.discussionCapture.title||t[39]!==l.sidebar.moreApps||t[40]!==l.sidebar.moreAppsAria||t[41]!==v||t[42]!==B||t[43]!==W||t[44]!==r||t[45]!==F||t[46]!==R||t[47]!==b||t[48]!==E.overflow?(q=function(){return(0,$.jsxs)(QT,{open:b,onOpenChange:x,children:[(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,onDragOver:B,onDragLeave:H,onDrop:W,className:C(`flex w-full items-center text-sm font-medium leading-6 transition-colors duration-200 ease-out`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,o?`justify-center rounded-xl p-2.5`:`gap-2 rounded-lg px-3 py-2 text-left`,b?`bg-surface-hover text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`,v&&`ring-2 ring-accent ring-offset-2 ring-offset-surface-base`),"aria-label":l.sidebar.moreAppsAria,title:l.sidebar.moreApps,children:[(0,$.jsx)(Du,{className:`size-4 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),o?null:(0,$.jsx)(`span`,{className:`truncate`,children:l.sidebar.moreApps})]})}),(0,$.jsx)(tE,{children:(0,$.jsx)(nE,{side:`right`,align:`start`,sideOffset:8,collisionPadding:8,className:C(`z-50 min-w-[14rem] max-w-[20rem] rounded-lg border border-edge bg-surface-panel p-1 shadow-md`),onOpenAutoFocus:MN,children:(0,$.jsxs)(`ul`,{className:`flex flex-col gap-0.5`,role:`list`,"aria-label":l.sidebar.moreAppsAria,children:[(0,$.jsx)(`li`,{className:`contents`,children:(0,$.jsxs)(`button`,{type:`button`,className:ON({isActive:!1},!1,null),onClick:()=>{x(!1),gN(),r?.()},children:[(0,$.jsx)(Ln,{className:`size-4 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:l.notes.discussionCapture.title})]})}),E.overflow.map(e=>{let t=p===e.id,n=g?.id===e.id?g.position:null;return(0,$.jsx)(`li`,{className:`contents`,children:(0,$.jsxs)(h,{to:e.to,end:e.to===`/`,draggable:!0,onDragStart:A(e.id),onDragEnd:N,onDragOver:F(e.id),onDrop:R(e.id),className:e=>ON(e,t,n),title:e.title??e.label,onMouseEnter:()=>G(e.to),onFocus:()=>G(e.to),onClick:()=>{x(!1),r?.()},children:[(0,$.jsx)(kN,{item:e}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]})},e.id)})]})})})]})},t[35]=o,t[36]=p,t[37]=g,t[38]=l.notes.discussionCapture.title,t[39]=l.sidebar.moreApps,t[40]=l.sidebar.moreAppsAria,t[41]=v,t[42]=B,t[43]=W,t[44]=r,t[45]=F,t[46]=R,t[47]=b,t[48]=E.overflow,t[49]=q):q=t[49];let te=q,ne;t[50]!==E.visible||t[51]!==ee?(ne=E.visible.map(ee),t[50]=E.visible,t[51]=ee,t[52]=ne):ne=t[52];let re;t[53]!==E.hasOverflow||t[54]!==te?(re=E.hasOverflow?te():null,t[53]=E.hasOverflow,t[54]=te,t[55]=re):re=t[55];let ie;return t[56]!==a||t[57]!==ne||t[58]!==re?(ie=(0,$.jsxs)($.Fragment,{children:[ne,a,re]}),t[56]=a,t[57]=ne,t[58]=re,t[59]=ie):ie=t[59],ie}function MN(e){return e.preventDefault()}function NN(e){ZO(e)}function PN(e){return e.id}function FN(e){return e.setOrder}function IN(e){return e.order}function LN(e){return e.language}var RN={feishu:`/channel-icons/feishu.svg`,lark:`/channel-icons/lark.svg`,telegram:`/channel-icons/telegram.svg`,wechat:`/channel-icons/wechat.svg`,weixin:`/channel-icons/weixin.svg`};function zN(e){let t=(0,Q.c)(9),{sourceChannel:n,className:r}=e,i=RN[n.toLowerCase()];if(i){let e;t[0]===r?e=t[1]:(e=C(`shrink-0`,r),t[0]=r,t[1]=e);let n;return t[2]!==i||t[3]!==e?(n=(0,$.jsx)(`img`,{src:i,alt:``,draggable:!1,className:e,"aria-hidden":!0}),t[2]=i,t[3]=e,t[4]=n):n=t[4],n}let a;t[5]===r?a=t[6]:(a=C(`shrink-0`,r),t[5]=r,t[6]=a);let o;return t[7]===a?o=t[8]:(o=(0,$.jsx)(Em,{className:a,strokeWidth:1.75,"aria-hidden":!0}),t[7]=a,t[8]=o),o}function BN(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=C(`animate-pulse rounded-md bg-surface-hover/70 motion-reduce:animate-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(`div`,{"aria-hidden":`true`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var VN=null;async function HN(){return VN||(VN=UN().finally(()=>{VN=null}),VN)}async function UN(){let e=await L(z(`/api/agents`));if(e.ok){let t=await e.json();if(t.ok&&t.payload?.defaultId&&Array.isArray(t.payload.agents)){let e=t.payload.defaultId.trim().toLowerCase(),n=t.payload.agents.filter(e=>!!(e&&typeof e.id==`string`&&e.id.trim())).map(e=>({id:e.id.trim().toLowerCase(),name:typeof e.name==`string`&&e.name.trim()?e.name.trim():void 0,description:typeof e.description==`string`&&e.description.trim()?e.description.trim():void 0,...typeof e.avatar==`string`&&e.avatar.trim()?{avatar:e.avatar.trim()}:{},...typeof e.role==`string`&&e.role.trim()?{role:e.role.trim()}:{},responsibilities:[...Array.isArray(e.responsibilities?.primary)?e.responsibilities.primary:[],...Array.isArray(e.responsibilities?.secondary)?e.responsibilities.secondary:[]].filter(e=>typeof e==`string`&&!!e.trim()),skills:(e.skills?.effectiveAllowlist??e.skills?.entry??[]).filter(e=>typeof e==`string`&&!!e.trim())}));if(n.length>0)return{defaultId:e,items:n}}}let t=(await ek()).payload?.config?.agents,n=(t?.defaultId??`main`).trim().toLowerCase(),r=(Array.isArray(t?.list)?t.list:[]).filter(e=>!!(e&&typeof e.id==`string`&&e.id.trim())).map(e=>({id:e.id.trim().toLowerCase()}));return r.length===0?{defaultId:n,items:[{id:n}]}:{defaultId:n,items:r}}var WN=`xopc-pending-agent-run-changed`;function GN(e){typeof window>`u`||window.dispatchEvent(new CustomEvent(WN,{detail:{chatId:e}}))}var KN=/^No API key found for (\S+)/i;function qN(e){try{let t=JSON.parse(e);return typeof t.kind!=`string`||typeof t.message!=`string`?null:{kind:t.kind,code:typeof t.code==`string`?t.code:t.kind,provider:typeof t.provider==`string`?t.provider:void 0,modelRef:typeof t.modelRef==`string`?t.modelRef:void 0,deepLink:typeof t.deepLink==`string`?t.deepLink:void 0,message:t.message}}catch{return null}}function JN(){return{kind:`send_failed`,code:`send_failed`,message:`Send failed`}}function YN(e){return{kind:`session_not_found`,code:`session_not_found`,message:e}}function XN(e){let t=e.trim();if(!t)return null;if(t.startsWith(`{`)){let e=qN(t);if(e)return e}let n=KN.exec(t);return n?{kind:`provider_setup_required`,code:`provider_setup_required`,provider:n[1].replace(/[.,]$/,``),deepLink:`/settings/capabilities/models`,message:t}:t===`Assistant turn failed`||t.startsWith(`Error: `)?{kind:`unknown`,code:`unknown`,message:t.startsWith(`Error: `)?t.slice(7):t}:{kind:`unknown`,code:`unknown`,message:t}}function ZN(e){return e.kind!==`provider_setup_required`&&e.kind!==`provider_auth_invalid`||!e.provider?null:{kind:e.kind,provider:e.provider,deepLink:e.deepLink??`/settings/capabilities/models`,message:e.message}}function QN(e){return typeof e==`object`&&!!e&&`role`in e}function $N(e){if(!e||typeof e!=`object`)return!1;let t=e.type;return t===`tool_use`||t===`tool_call`||t===`toolCall`}function eP(e){return typeof e==`object`&&!!e}function tP(e){return typeof e.id==`string`&&e.id.length>0?e.id:crypto.randomUUID()}function nP(e){if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return e}}function rP(e){return nP(e.args??e.arguments??e.input??e.function?.arguments)??{}}function iP(e){if(typeof e==`string`){let t=Date.parse(e);return Number.isNaN(t)?Date.now():t}return Date.now()}function aP(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e!=`string`)return;let t=Date.parse(e);return Number.isNaN(t)?void 0:t}var oP=3e5;function sP(e,t,n){let r=new URLSearchParams({uri:e.trim()});return t?.trim()&&r.set(`sessionKey`,t.trim()),n?.trim()&&r.set(`taskId`,n.trim()),`/api/media/read?${r.toString()}`}function cP(e){if(typeof e.content==`string`&&e.content.length>0)return e.content;if(typeof e.data==`string`&&e.data.length>0)return e.data}var lP=[`.txt`,`.md`,`.json`,`.xml`,`.html`,`.css`,`.js`,`.ts`,`.jsx`,`.tsx`,`.yml`,`.yaml`];function uP(e){let t=e.mimeType?.toLowerCase()??``;if(t.startsWith(`text/`)||t===`application/json`||t===`application/xml`||t===`application/javascript`||t===`application/typescript`)return!0;let n=e.name?.toLowerCase()??``;return lP.some(e=>n.endsWith(e))}function dP(e){if(e.extractedText!=null&&e.extractedText!==``)return e.extractedText;if(!uP(e))return;let t=cP(e);if(t)try{let e=pP(t);return new TextDecoder(`utf-8`,{fatal:!1}).decode(new Uint8Array(e))}catch{return}}function fP(e,t){let n=t.trim();if(n.startsWith(`data:`))return n;let r=n.replace(/\s/g,``);return`data:${e&&typeof e==`string`&&e.includes(`/`)?e:`application/octet-stream`};base64,${r}`}function pP(e){if(e==null||e===``)throw Error(`Missing file data`);let t=e;if(e.startsWith(`data:`)){let n=e.match(/base64,(.+)/);n&&(t=n[1])}let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function mP(e){let t=[`B`,`KB`,`MB`,`GB`],n=0,r=e;for(;r>=1024&&n<t.length-1;)r/=1024,n++;return`${r.toFixed(1)} ${t[n]}`}function hP(e){let t=e.toLowerCase();for(let[e,n]of[[`.pdf`,`application/pdf`],[`.docx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`],[`.pptx`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`],[`.xlsx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`],[`.xls`,`application/vnd.ms-excel`],[`.png`,`image/png`],[`.jpg`,`image/jpeg`],[`.jpeg`,`image/jpeg`],[`.gif`,`image/gif`],[`.webp`,`image/webp`],[`.bmp`,`image/bmp`],[`.svg`,`image/svg+xml`],[`.svgz`,`image/svg+xml`],[`.ico`,`image/x-icon`],[`.tif`,`image/tiff`],[`.tiff`,`image/tiff`],[`.avif`,`image/avif`],[`.jxl`,`image/jxl`]])if(t.endsWith(e))return n}function gP(e,t){return(t?.startsWith(`text/`)??!1)||lP.some(t=>e.toLowerCase().endsWith(t))}function _P(e){if(Array.isArray(e))return e.map(e=>vP(e))}function vP(e){if(!e||typeof e!=`object`)return{name:`file`,mimeType:`application/octet-stream`};let t=e,n=yP(t.uri),r=bP(t.name),i=xP(t.mimeType,r),a=typeof t.type==`string`?t.type:void 0,o=a===`photo`||a===`image`||i.startsWith(`image/`)?`image`:a===`voice`||a===`audio`||i.startsWith(`audio/`)?`voice`:a;return{id:typeof t.id==`string`?t.id:void 0,name:r,mimeType:i,type:o,size:typeof t.size==`number`?t.size:void 0,uri:n,bucket:typeof t.bucket==`string`?t.bucket:void 0,path:typeof t.path==`string`?t.path:void 0}}function yP(e){return typeof e==`string`&&e.trim().startsWith(`media://`)?e.trim():void 0}function bP(e){return typeof e==`string`&&e.trim().length>0?e.trim():`file`}function xP(e,t){if(typeof e==`string`&&e.trim().length>0){let t=e.trim();if(t.toLowerCase().split(`;`)[0]?.trim()!==`application/octet-stream`)return t}return hP(t)??`application/octet-stream`}function SP(e){let t=e.uri?.trim();return t?`uri:${t}`:e.id?`id:${e.id}`:`name:${e.name??`file`}|${e.mimeType??``}`}function CP(e){if(!e?.length)return;let t=[],n=new Set;for(let r of e){let e=SP(r);n.has(e)||(n.add(e),t.push(r))}return t.length?t:void 0}var wP=`[Startup context loaded by runtime]`,TP=`...[additional startup memory truncated]...`,EP=`END_QUOTED_NOTES`;function DP(...e){return e.filter(e=>e.length>0).join(`
|
|
7
|
-
|
|
8
|
-
`)}function OP(e){if(!e.includes(wP))return e;let t=e.replace(/^\uFEFF/,``);if(!t.startsWith(wP))return e;let n=-1,r=t.lastIndexOf(EP);if(r>=0)n=r+16;else{let e=t.indexOf(TP);e>=0&&(n=e+43)}if(n<0){let n=t.slice(35),r=n.indexOf(`
|
|
9
|
-
|
|
10
|
-
`);return r>=0?n.slice(r+2).replace(/^\s+/,``):e}return t.slice(n).replace(/^\s+/,``)}function kP(e){if(typeof e!=`string`||!e.includes(`## Skill:`))return e;let t=e.indexOf(`## Skill:`),n=e.slice(0,t).replace(/\s+$/,``),r=e.slice(t),i=r.match(/## Skill:\s*([^\s\r\n]+)/);if(!i)return e;let a=i[1]??``;if(!a)return e;let o=[...r.matchAll(/\*\*Arguments\*\*:\s*([^\r\n]+)/g)],s=o.length>0?(o[o.length-1]?.[1]??``).trim():``,c=s?`/skill:${a} ${s}`:`/skill:${a}`,l=r.length;if(o.length>0){let e=o[o.length-1];l=(e.index??0)+e[0].length}return DP(n,c,r.slice(l).replace(/^\s+/,``))}function AP(e){return e.includes(`<file path=`)?e.replace(/<file\s+path="[^"]*">\r?\n[\s\S]*?<\/file>(?:\r?\n)*/g,``).replace(/\n{3,}/g,`
|
|
11
|
-
|
|
12
|
-
`).trim():e}function jP(e){return!e.includes(`[media attached:`)&&!e.includes(`xopc-media-uri:`)?e:e.replace(/\s*\[media attached:[^\]]+\]\s*\r?\nxopc-media-uri:[^\r\n]+\r?\n\s*xopc-media-path:[^\r\n]+(?:\r?\n\s*Use the read_media tool[^\r\n]*)?/g,``).replace(/\s*\[media attached:[^\]]+\]\s*/g,` `).replace(/\s*xopc-media-uri:[^\r\n]+/g,``).replace(/\s*xopc-media-path:[^\r\n]+/g,``).replace(/\s*Use the read_media tool[^\r\n]*/g,``).replace(/\n{3,}/g,`
|
|
13
|
-
|
|
14
|
-
`).trim()}function MP(e){let t=OP(e);return t=AP(t),t=jP(t),t=PP(t),kP(t)}var NP=/(?:\n{2,})?\[(?:Image description:|\d+ image\(s\) attached(?:; no image-capable model is available to describe them\.| but could not be described:))[\s\S]*\]\s*$/;function PP(e){return e.replace(NP,``).trimEnd()}function FP(e){return WP(e)}function IP(e){if(e.type!==`thinking`)return``;let t=e;return typeof t.text==`string`?t.text:typeof t.thinking==`string`?t.thinking:``}function LP(e,t){let n=e.map(e=>({...e})),r=new Map;for(let e=0;e<n.length;e++){let t=n[e];t.type===`tool_use`&&r.set(t.id,e)}for(let e of t){if(e.type===`tool_use`&&r.has(e.id)){let t=r.get(e.id);n[t]={...e};continue}if(e.type===`thinking`&&n.length>0){let t=n[n.length-1];if(t.type===`thinking`&&IP(t)===IP(e))continue}e.type===`tool_use`&&r.set(e.id,n.length),n.push({...e})}return n}function RP(e){if(e.length<2)return e;let t=[];for(let n of e){if(n.role!==`assistant`){t.push(n);continue}let e=t[t.length-1];e?.role===`assistant`?(e.content=LP(e.content,n.content),n.timestamp!=null&&(e.timestamp=n.timestamp),n.renderKey&&(e.renderKey=n.renderKey),n.turnId&&(e.turnId=n.turnId),n.progressiveRender&&(e.progressiveRender=!0),n.usage&&(e.usage=n.usage),n.attachments?.length&&(e.attachments=CP([...e.attachments??[],...n.attachments]))):t.push({...n,content:[...n.content]})}return t}function zP(e){return e.filter(e=>e.type===`text`).map(e=>e.text.trim()).filter(Boolean).join(`
|
|
15
|
-
`)}function BP(e){return e.filter(e=>e.type===`thinking`).map(e=>(e.text??``).trim()).filter(Boolean).join(`
|
|
16
|
-
`)}function VP(e){return e.filter(e=>e.type===`tool_use`).map(e=>{let t=typeof e.result==`string`?e.result.trim():JSON.stringify(e.result??``);return`${e.name}|${e.status}|${t}`}).join(`
|
|
17
|
-
`)}function HP(e){return e.filter(e=>e.type===`review`).map(e=>JSON.stringify(e)).join(`
|
|
18
|
-
`)}function UP(e,t){return e.role!==`assistant`||t.role!==`assistant`?!1:zP(e.content)===zP(t.content)&&BP(e.content)===BP(t.content)&&VP(e.content)===VP(t.content)&&HP(e.content)===HP(t.content)}function WP(e){let t=[];for(let n of e){if(!QN(n))continue;let e=n,r=String(e.role??``);if(r!==`system`){if(r===`toolResult`||r===`tool`){$P(t,e);continue}if(r===`user`){t.push(qP(e));continue}if(r===`assistant`){t.push(JP(e));continue}}}return RP(t)}function GP(e){return e.filter(e=>e.type===`text`).map(e=>({...e,text:MP(e.text)})).filter(e=>!!e.text?.trim())}function KP(e){return CP([..._P(e.media)??[],..._P(e.attachments)??[]])}function qP(e){let t=e.content,n=typeof t==`string`?(()=>{let e=MP(t);return e.trim()?[{type:`text`,text:e}]:[]})():GP(rF(t));return{role:`user`,...e.turnId?{turnId:e.turnId}:{},content:n,attachments:KP(e),timestamp:typeof e.timestamp==`number`?e.timestamp:iP(e.timestamp),usage:e.usage}}function JP(e){let t=QP(e);return ZP(t,e.metadata),{role:`assistant`,...e.turnId?{turnId:e.turnId}:{},content:t,attachments:KP(e),timestamp:typeof e.timestamp==`number`?e.timestamp:iP(e.timestamp),usage:e.usage}}function YP(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function XP(e){let t=YP(e);if(!t||t.type!==`review`)return null;let n=Array.isArray(t.findings)?t.findings:[],r={type:`review`,target:typeof t.target==`string`?t.target:`working tree changes`,summary:typeof t.summary==`string`?t.summary:``,findings:n.map(e=>{let t=YP(e);if(!t)return null;let n=t.priority===0||t.priority===1||t.priority===2||t.priority===3?t.priority:2,r=typeof t.title==`string`?t.title:``,i=typeof t.body==`string`?t.body:``;if(!r&&!i)return null;let a={title:r,body:i,priority:n};return typeof t.confidenceScore==`number`&&(a.confidenceScore=t.confidenceScore),typeof t.filePath==`string`&&(a.filePath=t.filePath),typeof t.lineStart==`number`&&(a.lineStart=t.lineStart),typeof t.lineEnd==`number`&&(a.lineEnd=t.lineEnd),a}).filter(e=>e!=null),overallCorrectness:t.overallCorrectness===`patch is correct`||t.overallCorrectness===`patch is incorrect`?t.overallCorrectness:`unknown`,overallExplanation:typeof t.overallExplanation==`string`?t.overallExplanation:``};return typeof t.overallConfidenceScore==`number`&&(r.overallConfidenceScore=t.overallConfidenceScore),typeof t.generatedAt==`number`&&(r.generatedAt=t.generatedAt),(t.source===`model`||t.source===`local`)&&(r.source=t.source),r}function ZP(e,t){let n=XP(YP(t)?.review);n&&(e.some(e=>e.type===`review`&&e.target===n.target)||e.push(n))}function QP(e){let t=aP(e.timestamp),n=rF(e.rawContent,t),r=n.length>0?n:rF(e.content,t),i=e.tool_calls;if(Array.isArray(i))for(let e of i){if(!e?.id||r.some(t=>t.type===`tool_use`&&t.id===e.id))continue;let n=e.function?.arguments;if(typeof n==`string`)try{n=JSON.parse(n)}catch{}r.push({type:`tool_use`,id:e.id,name:e.function?.name||`tool`,input:n,status:`running`,startedAt:t})}let a=e.toolCalls;if(Array.isArray(a))for(let e=0;e<a.length;e+=1){let n=a[e],i=typeof n.id==`string`&&n.id?n.id:`tool-call-${e}-${n.name||`tool`}`,o=typeof n.result==`string`,s=r.find(e=>e.type===`tool_use`&&e.id===i);if(s){s.status=o?n.isError?`error`:`done`:s.status,s.result=o?n.result:s.result,s.details=n.details??s.details,o&&(s.completedAt=t,s.durationMs=s.startedAt!=null&&t!=null?Math.max(0,t-s.startedAt):s.durationMs);continue}r.push({type:`tool_use`,id:i,name:n.name||`tool`,input:n.args,status:o?n.isError?`error`:`done`:`running`,result:o?n.result:void 0,details:n.details,startedAt:t,completedAt:o?t:void 0,durationMs:o&&t!=null?0:void 0})}for(let e of r){if(e.type!==`tool_use`)continue;let t=e.details===void 0?e.result:{details:e.details,result:e.result};e.activity=WM(e.name,e.status===`running`?`running`:e.status===`error`?`failed`:`completed`,t)}let o=r.some(e=>e.type===`tool_use`)?`narration`:`answer`;for(let e of r)e.type===`text`&&(e.presentation=o);return r}function $P(e,t){let n=eF(e);if(!n)return;let r=String(t.tool_call_id??t.toolCallId??``),i=tF(t.content),a=!!t.isError,o=aP(t.timestamp),s=r?n.content.find(e=>e.type===`tool_use`&&e.id===r):void 0;if(s){s.status=a?`error`:`done`,s.result=i,s.details=t.details,s.activity=WM(s.name,a?`failed`:`completed`,{details:t.details,result:i}),s.completedAt=o,s.startedAt!=null&&o!=null&&(s.durationMs=Math.max(0,o-s.startedAt));return}let c=n.content.filter(e=>e.type===`tool_use`&&e.status===`running`);c.length===1&&(c[0].status=a?`error`:`done`,c[0].result=i,c[0].details=t.details,c[0].activity=WM(c[0].name,a?`failed`:`completed`,{details:t.details,result:i}),c[0].completedAt=o,c[0].startedAt!=null&&o!=null&&(c[0].durationMs=Math.max(0,o-c[0].startedAt)))}function eF(e){for(let t=e.length-1;t>=0;t--)if(e[t].role===`assistant`)return e[t];return null}function tF(e){return typeof e==`string`?e:Array.isArray(e)?e.filter(e=>eP(e)&&e.type===`text`).map(e=>String(e.text??``)).join(`
|
|
19
|
-
`):String(e??``)}function nF(e){let t=e.source?.data;if(typeof t==`string`&&t.length>0)return{type:`image`,source:{data:t}};let n=e.data;if(typeof n!=`string`||n.length===0)return null;let r=n.trim();return r.startsWith(`data:`)?{type:`image`,source:{data:r}}:{type:`image`,source:{data:`data:${typeof e.mimeType==`string`&&e.mimeType.includes(`/`)?e.mimeType:`image/png`};base64,${r.replace(/\s/g,``)}`}}}function rF(e,t){if(e==null)return[];if(typeof e==`string`)return e.trim()?[{type:`text`,text:e}]:[];if(!Array.isArray(e))return[{type:`text`,text:String(e)}];let n=[];for(let r of e){if(!eP(r))continue;let e=r.type;if(e===`text`&&typeof r.text==`string`)n.push({type:`text`,text:r.text});else if(e===`thinking`){let e=typeof r.thinking==`string`?r.thinking:typeof r.text==`string`?r.text:``;n.push({type:`thinking`,text:e,streaming:!1})}else if(e===`image`){let e=nF(r);e&&n.push(e)}else if(e===`review`){let e=XP(r);e&&n.push(e)}else if(e===`tool_use`||e===`tool_call`){if(!$N(r))continue;let e=tP(r),i=String(r.name??r.function?.name??`tool`),a=r.input??r.function?.arguments;n.push({type:`tool_use`,id:e,toolCallId:e,name:i,input:a,status:`done`,startedAt:t,result:typeof r.result==`string`?r.result:void 0,details:r.details})}else if(e===`toolCall`){if(!$N(r))continue;let e=tP(r),i=String(r.name??r.function?.name??`tool`);n.push({type:`tool_use`,id:e,toolCallId:e,name:i,input:rP(r),status:`done`,startedAt:t,result:typeof r.result==`string`?r.result:void 0,details:r.details})}}return n}function iF(e){return e.replace(/^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}[^\]]*\]\s+/,``)}function aF(e){return(e??[]).filter(e=>e.type===`text`&&!!e.text).map(e=>MP(iF(e.text))).join(`
|
|
20
|
-
|
|
21
|
-
`).trim()}function oF(e,t){let n=e[t];if(!n||n.role!==`user`)return!1;for(let n=t+1;n<e.length;n++)if(e[n].role===`user`)return!1;return!0}function sF(e){if(e?.length)return e.map(e=>{let t=e.data??e.content;return{id:e.id,type:e.type??(e.mimeType?.startsWith(`image/`)?`image`:`document`),mimeType:e.mimeType,...t?{data:t}:{},name:e.name,size:e.size,...e.uri?{uri:e.uri}:{},...e.bucket?{bucket:e.bucket}:{},...e.path?{path:e.path}:{},durationSeconds:e.durationSeconds}})}function cF(e){return e===`user`}function lF(e,t){if(t<0||t>=e.length)return null;let n=e[t];if(!n||!cF(n.role))return null;let r=0;for(let n=0;n<=t;n++){let t=e[n];t&&cF(t.role)&&(r+=1)}return r-1}function uF(e,t){let n=1;for(let r=t+1;r<e.length;r++){let t=e[r];if(t&&cF(t.role))break;n+=1}return n}function dF(e){let t=typeof e.timestamp==`number`&&Number.isFinite(e.timestamp)?e.timestamp:Date.now();if(Array.isArray(e.content)||typeof e.content==`string`){let[n]=WP([{role:`user`,content:e.content,media:e.media,attachments:e.attachments,timestamp:t}]);return n??null}let n=typeof e.text==`string`?MP(e.text.trim()):``,r=_P(e.media);return!n&&!r?.length?null:{role:`user`,content:n?[{type:`text`,text:n}]:[],attachments:r,timestamp:t}}var fF=12e4;function pF(e,t){if(!cF(e.role)||!cF(t.role))return!1;let n=aF(e.content).trim(),r=aF(t.content).trim(),i=e.attachments?.length??0,a=t.attachments?.length??0,o=i===0||a>=i;return!!(o&&n&&r&&(n===r||r.startsWith(n))||i>0&&o&&Math.abs((t.timestamp??0)-(e.timestamp??0))<=fF)}function mF(e,t){return!cF(e.role)||!cF(t.role)?!1:e.timestamp===t.timestamp?!0:aF(e.content)===aF(t.content)}var hF=32*1024*1024,gF=25*1024*1024,_F=Re([`web`,`desktop`,`mobile`]),vF=Re([`foreground`,`background`]),yF=Re([`read`,`write`,`destructive`]),bF=Re([`never`,`always`]),xF=Re([`text`,`json`,`file`]),SF=X().min(1).max(160),CF=X().min(32).max(160).regex(/^[A-Za-z0-9_-]+$/);Me(`type`,[Ne({type:Oe(`endpoint`),endpointId:SF}),Ne({type:Oe(`channel`),channel:X().min(1).max(64)}),Ne({type:Oe(`system`),source:Re([`cli`,`automation`,`heartbeat`,`workflow`,`internal`])})]).options[0].extend({token:CF});var wF=Fe(),TF=Y().int().nonnegative(),EF=ke(X(),je()),DF=Ne({name:X().regex(/^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+$/).max(120),title:X().min(1).max(120),description:X().min(1).max(2e3),inputSchema:EF,effect:yF,confirmation:bF,requiresForeground:Ie(),requiredPermissions:Pe(X().min(1).max(120)).max(20),timeoutMs:Y().int().min(1e3).max(3e5),maxConcurrency:Y().int().min(1).max(4),supportsCancellation:Ie(),idempotent:Ie(),resultKinds:Pe(xF).min(1).max(3)});Ne({principalId:SF,displayName:X().min(1).max(120),kind:_F,platform:X().min(1).max(80),publicKey:X().min(32).max(2048)});var OF=Ne({principalId:SF,endpointId:SF,connectionInstanceId:Fe(),displayName:X().min(1).max(120),kind:_F,platform:X().min(1).max(80),appVersion:X().min(1).max(80),availability:vF,nonce:SF,signedAt:TF,signature:X().min(16).max(1024),tools:Pe(DF).max(100)}),kF=Ne({invocationId:Fe(),toolCallId:SF,toolName:DF.shape.name,arguments:EF,descriptorRevision:X().min(1).max(128),confirmationRequired:Ie(),deadlineAt:TF,uploadGrant:Ne({path:X().startsWith(`/`).max(500),token:SF,maxBytes:Y().int().positive(),maxFiles:Y().int().min(1).max(20),expiresAt:TF}).optional()}),AF=Ne({invocationId:Fe(),reason:X().min(1).max(500)}),jF=Ne({invocationId:Fe()}),MF=Me(`type`,[Ne({type:Oe(`text`),text:X().max(256*1024)}),Ne({type:Oe(`json`),value:je()}),Ne({type:Oe(`file`),fileId:SF,name:X().min(1).max(255),mimeType:X().min(1).max(255),size:Y().int().nonnegative(),sha256:X().regex(/^[a-f0-9]{64}$/)})]),NF=Re([`ENDPOINT_OFFLINE`,`ENDPOINT_NOT_FOREGROUND`,`ENDPOINT_DISCONNECTED`,`TOOL_NOT_FOUND`,`TOOL_REVISION_MISMATCH`,`INVALID_ARGUMENTS`,`PERMISSION_DENIED`,`USER_DENIED`,`TOOL_BUSY`,`TOOL_TIMEOUT`,`TOOL_CANCELLED`,`RESULT_TOO_LARGE`,`PROTOCOL_ERROR`]),PF=(e,t)=>Ne({protocolVersion:Oe(1),messageId:wF,type:Oe(e),sentAt:TF,payload:t}),FF=Me(`type`,[PF(`endpoint.availability_changed`,Ne({availability:vF})),PF(`tool.received`,jF),PF(`tool.progress`,Ne({invocationId:Fe(),message:X().max(500).optional(),percent:Y().min(0).max(100).optional()})),PF(`tool.result`,Ne({invocationId:Fe(),content:Pe(MF).min(1).max(20),details:EF.optional()})),PF(`tool.error`,Ne({invocationId:Fe(),code:NF,message:X().min(1).max(2e3)})),PF(`tool.cancelled`,jF)]),IF=Me(`type`,[PF(`tool.invoke`,kF),PF(`tool.cancel`,AF)]);function LF(e){if(e===null)return`null`;if(typeof e==`string`||typeof e==`boolean`)return JSON.stringify(e);if(typeof e==`number`){if(!Number.isFinite(e))throw Error(`Canonical JSON only supports finite numbers`);return JSON.stringify(e)}if(typeof e!=`object`)throw Error(`Canonical JSON does not support ${typeof e}`);if(Array.isArray(e))return`[${e.map(LF).join(`,`)}]`;let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)throw Error(`Canonical JSON only supports plain objects`);let n=e;return`{${Object.keys(n).sort().map(e=>`${JSON.stringify(e)}:${LF(n[e])}`).join(`,`)}}`}function RF(e){let{signature:t,...n}=e;return LF(n)}var zF=15e3,BF=45e3,VF=Re([`web`,`desktop`,`mobile`,`tui`,`mcp`]),HF=X().min(1).max(512),UF=X().regex(/^[a-z][a-z0-9_.-]*$/).max(160),WF=Fe(),GF=Y().int().nonnegative(),KF=Y().int().positive(),qF=(e,t)=>Ne({protocolVersion:Oe(1),messageId:WF,kind:Oe(e),sentAt:GF,payload:t}),JF=Ne({topic:HF,afterSeq:Y().int().nonnegative().optional()});Me(`kind`,[qF(`realtime.hello`,Ne({ticket:X().min(32).max(512),clientId:X().min(1).max(160),clientKind:VF,subscriptions:Pe(JF).max(100).default([]),endpoint:OF.optional()})),qF(`realtime.subscribe`,Ne({subscriptions:Pe(JF).min(1).max(100)})),qF(`realtime.unsubscribe`,Ne({topics:Pe(HF).min(1).max(100)})),qF(`realtime.ping`,Ne({})),qF(`endpoint.message`,FF)]);var YF=Ne({topic:HF,seq:KF,event:UF,data:je()}),XF=Me(`kind`,[qF(`realtime.ready`,Ne({connectionId:Fe(),heartbeatIntervalMs:Oe(zF),heartbeatTimeoutMs:Oe(BF),endpoint:Ne({endpointId:X().min(1).max(160),turnToken:X().min(32).max(160)}).optional()})),qF(`realtime.event`,YF),qF(`realtime.subscribed`,Ne({topic:HF,cursor:Y().int().nonnegative()})),qF(`realtime.gap`,Ne({topic:HF,requestedSeq:Y().int().nonnegative(),earliestSeq:KF,recoverable:Ie()})),qF(`realtime.pong`,Ne({})),qF(`realtime.error`,Ne({code:X().min(1).max(80),message:X().min(1).max(500)})),qF(`endpoint.message`,IF)]);function ZF(e){return XF.parse(e)}function QF(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return new TextDecoder().decode(e);if(ArrayBuffer.isView(e)){let t=Uint8Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return new TextDecoder().decode(t)}throw Error(`Realtime server sent a non-text frame`)}var $F=class{options;desiredSubscriptions=new Map;cursors=new Map;socket;reconnectTimer;heartbeatTimer;connectionTimer;ticketAbort;generation=0;reconnectAttempts=0;shouldReconnect=!1;ready=!1;lastServerMessageAt=0;endpointBinding;constructor(e){this.options=e}connect(){this.shouldReconnect||(this.shouldReconnect=!0,this.open(!1))}disconnect(){this.shouldReconnect=!1,this.generation+=1,this.clearTimers(),this.ready=!1,this.endpointBinding?.onDisconnected?.(),this.socket?.close(1e3,`Client disconnected`),this.socket=void 0,this.options.onStateChange?.(`disconnected`)}reconnect(){this.generation+=1,this.clearTimers(),this.ready=!1,this.endpointBinding?.onDisconnected?.(),this.socket?.close(1e3,`Client reconnecting`),this.socket=void 0,this.reconnectAttempts=0,this.shouldReconnect=!0,this.open(!0)}subscribe(e,t){this.desiredSubscriptions.set(e,t),t!==void 0&&this.cursors.set(e,t),this.ready&&this.sendSubscriptions([{topic:e,afterSeq:this.cursors.get(e)??t}])}unsubscribe(e){this.desiredSubscriptions.delete(e),this.ready&&this.send(this.clientMessage(`realtime.unsubscribe`,{topics:[e]}))}sendEndpointMessage(e){if(!this.ready)throw Error(`Realtime connection is not ready`);this.send(this.clientMessage(`endpoint.message`,e))}setEndpoint(e){this.endpointBinding=e,this.shouldReconnect&&this.reconnect()}clearEndpoint(e){if(e&&this.endpointBinding!==e)return;let t=this.endpointBinding;this.endpointBinding=void 0,t?.onDisconnected?.(),this.shouldReconnect&&this.reconnect()}async open(e){let t=++this.generation,n=this.options.connectionTimeoutMs??15e3,r=new AbortController;this.ticketAbort?.abort(),this.ticketAbort=r;let i,a=!1,o,s=e=>{a||t!==this.generation||(a=!0,this.clearConnectionTimer(),r.abort(),this.ticketAbort===r&&(this.ticketAbort=void 0),this.ready=!1,this.endpointBinding?.onDisconnected?.(),this.clearHeartbeat(),this.socket===i&&(this.socket=void 0),i&&(i.onopen=null,i.onmessage=null,i.onerror=null,i.onclose=null,i.close(4e3,e.slice(0,120))),this.shouldReconnect?this.scheduleReconnect(e):this.options.onStateChange?.(`disconnected`))};this.connectionTimer=setTimeout(()=>s(`Realtime connection timed out`),n),this.options.onStateChange?.(e?`reconnecting`:`connecting`);try{let[e,n]=await Promise.all([this.options.issueTicket(r.signal),this.endpointBinding?.createHello()]);if(a||!this.shouldReconnect||t!==this.generation)return;i=this.options.createWebSocket(this.options.getWebSocketUrl()),this.socket=i,i.onopen=()=>{if(t!==this.generation)return;let r=[...this.desiredSubscriptions].map(([e,t])=>({topic:e,afterSeq:this.cursors.get(e)??t}));this.send(this.clientMessage(`realtime.hello`,{ticket:e,clientId:this.options.clientId,clientKind:this.options.clientKind,subscriptions:r,...n?{endpoint:n}:{}}))},i.onmessage=e=>{if(t!==this.generation)return;let n=()=>{if(!(a||t!==this.generation))return this.handleServerMessage(QF(e.data))};if(!o){try{let e=n();if(!e)return;let t=e.catch(e=>s(e instanceof Error?e.message:`Invalid realtime server message`)).then(()=>void 0);o=t,t.finally(()=>{o===t&&(o=void 0)})}catch(e){s(e instanceof Error?e.message:`Invalid realtime server message`)}return}let r=o.then(n).catch(e=>s(e instanceof Error?e.message:`Invalid realtime server message`)).then(()=>void 0);o=r,r.finally(()=>{o===r&&(o=void 0)})},i.onerror=()=>{s(`Realtime WebSocket failed`)},i.onclose=e=>{s(e.reason||`WebSocket closed (${e.code??0})`)}}catch(e){s(e instanceof Error?e.message:`Realtime connection failed`)}}handleServerMessage(e){let t=ZF(JSON.parse(e));if(this.lastServerMessageAt=Date.now(),t.kind===`realtime.ready`)this.ready=!0,this.reconnectAttempts=0,this.clearConnectionTimer(),this.ticketAbort=void 0,this.options.onStateChange?.(`connected`),t.payload.endpoint&&this.endpointBinding?.onReady(t.payload.endpoint),this.clearHeartbeat(),this.heartbeatTimer=setInterval(()=>{if(this.ready){if(Date.now()-this.lastServerMessageAt>=t.payload.heartbeatTimeoutMs){this.reconnect();return}this.send(this.clientMessage(`realtime.ping`,{}))}},t.payload.heartbeatIntervalMs);else if(t.kind===`realtime.event`){let e=this.cursors.get(t.payload.topic);if(e!==void 0&&t.payload.seq<=e)return;this.options.onEvent?.(t.payload),this.cursors.set(t.payload.topic,t.payload.seq)}else if(t.kind===`realtime.subscribed`)this.cursors.set(t.payload.topic,t.payload.cursor);else if(t.kind===`realtime.gap`)return this.cursors.set(t.payload.topic,t.payload.earliestSeq-1),this.options.onGap?.(t.payload);else t.kind===`realtime.error`?this.options.onStateChange?.(`error`,t.payload.message):t.kind===`endpoint.message`&&(this.endpointBinding?.onMessage(t.payload),this.options.onEndpointMessage?.(t.payload))}sendSubscriptions(e){this.send(this.clientMessage(`realtime.subscribe`,{subscriptions:e}))}clientMessage(e,t){let n=this.options.createMessageId?.()??globalThis.crypto?.randomUUID?.();if(!n)throw Error(`RealtimeClient requires createMessageId when crypto.randomUUID is unavailable`);return{protocolVersion:1,messageId:n,kind:e,sentAt:Date.now(),payload:t}}send(e){!this.socket||this.socket.readyState!==1||this.socket.send(JSON.stringify(e))}scheduleReconnect(e){if(!this.shouldReconnect)return;this.reconnectAttempts+=1;let t=this.options.maxReconnectAttempts;if(t!==void 0&&this.reconnectAttempts>t){this.shouldReconnect=!1,this.options.onStateChange?.(`error`,e);return}this.options.onStateChange?.(`reconnecting`,e);let n=Math.min(3e4,1e3*2**Math.min(this.reconnectAttempts-1,5)),r=Math.round(n*(.5+Math.random()*.5));this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.open(!0)},r)}clearHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0}clearTimers(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0,this.clearConnectionTimer(),this.ticketAbort?.abort(),this.ticketAbort=void 0,this.clearHeartbeat()}clearConnectionTimer(){this.connectionTimer&&clearTimeout(this.connectionTimer),this.connectionTimer=void 0}},eI=500,tI=null,nI;function rI(e){nI=e,tI!==null&&clearTimeout(tI),tI=setTimeout(()=>{tI=null;let e=nI;nI=void 0,window.dispatchEvent(new CustomEvent(`config-reload`,{detail:e}))},eI)}function iI(e,t){if(e===`config.reload`){rI(t);return}window.dispatchEvent(new CustomEvent(e.replace(/[._]/g,`-`),{detail:t}))}var aI=R(()=>({connectionState:`idle`,error:null}));function oI(e){aI.setState(e)}var sI=new Map,cI=new Map,lI,uI;function dI(){let e=`xopc:realtime-client-id`,t=sessionStorage.getItem(e);if(t)return t;let n=crypto.randomUUID();return sessionStorage.setItem(e,n),n}function fI(){let e=new URL(z(`/api/realtime/v1/ws`));return e.protocol=e.protocol===`https:`?`wss:`:`ws:`,e.toString()}function pI(e){let t=dI(),n=window.electronAPI?`desktop`:`web`,r=new $F({clientId:t,clientKind:n,getWebSocketUrl:fI,issueTicket:async r=>{let i=await fetch(z(`/api/realtime/tickets`),{method:`POST`,headers:{"Content-Type":`application/json`,...e?{Authorization:`Bearer ${e}`}:{}},body:JSON.stringify({clientId:t,clientKind:n}),signal:r}),a=await i.json().catch(()=>null);if(!i.ok||!a?.payload?.ticket)throw Error(a?.error?.message??`Realtime ticket failed (${i.status})`);return a.payload.ticket},createWebSocket:e=>new WebSocket(e),onStateChange:(e,t)=>{oI({connectionState:e,error:t??null}),e===`connected`&&window.dispatchEvent(new CustomEvent(`gateway-realtime-connected`))},onEvent:e=>{(e.topic===`gateway`||e.topic===`sessions`)&&iI(e.event,e.data);for(let t of sI.get(e.topic)??[])t.onEvent(e)},onGap:async e=>{window.dispatchEvent(new CustomEvent(`realtime-gap`,{detail:e})),await Promise.all([...sI.get(e.topic)??[]].map(t=>t.onGap?.(e)))}});lI?.disconnect(),lI=r,uI&&r.setEndpoint(uI),r.subscribe(`gateway`),r.subscribe(`sessions`);for(let e of sI.keys())r.subscribe(e,cI.get(e));return oI({connectionState:`connecting`,error:null}),r.connect(),()=>{lI===r&&(r.disconnect(),lI=void 0)}}function mI(e){return uI=e,lI?.setEndpoint(e),()=>{uI===e&&(uI=void 0,lI?.clearEndpoint(e))}}function hI(e){lI?.sendEndpointMessage(e)}function gI(){lI?.reconnect()}function _I(e,t,n){let r=sI.get(e)??new Set,i=r.size===0;return r.add(t),sI.set(e,r),i&&(cI.set(e,n),lI?.subscribe(e,n)),()=>{let n=sI.get(e);n?.delete(t),(!n||n.size===0)&&(sI.delete(e),cI.delete(e),lI?.unsubscribe(e))}}function vI(e){return`xopc:submission:${e}`}function yI(e,t){try{let n=sessionStorage.getItem(vI(e));if(n){let e=JSON.parse(n);if(e.fingerprint===t&&typeof e.clientMessageId==`string`)return e.clientMessageId}}catch{}let n=crypto.randomUUID();try{sessionStorage.setItem(vI(e),JSON.stringify({clientMessageId:n,fingerprint:t}))}catch{}return n}function bI(e,t){try{let n=sessionStorage.getItem(vI(e));if(!n)return;JSON.parse(n).clientMessageId===t&&sessionStorage.removeItem(vI(e))}catch{}}async function xI(e,t){if(t.aborted)throw new DOMException(`Aborted`,`AbortError`);e!==0&&await new Promise((n,r)=>{let i=()=>{clearTimeout(a),r(new DOMException(`Aborted`,`AbortError`))},a=setTimeout(()=>{t.removeEventListener(`abort`,i),n()},e);t.addEventListener(`abort`,i,{once:!0})})}async function SI(e,t,n){let r;for(let i of uM){await xI(i,n);let a=new AbortController,o=setTimeout(()=>a.abort(),dM),s=()=>a.abort();n.addEventListener(`abort`,s,{once:!0});try{let n=await L(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:t,signal:a.signal});if(!pM(n.status))return n;r=Error(`Session input temporarily unavailable (${n.status})`)}catch(e){if(n.aborted)throw e;r=e}finally{clearTimeout(o),n.removeEventListener(`abort`,s)}}throw r instanceof Error?r:Error(`Session input request failed`)}function CI(e){return`xopc:pendingRun:${e}`}function wI(e){try{let t=globalThis.sessionStorage?.getItem(CI(e));if(!t)return!1;let n=JSON.parse(t);return typeof n.runId==`string`&&n.runId.trim().length>0}catch{return!1}}function TI(e,t){let n=t.trim();if(n)try{let t=CI(e),r=JSON.parse(sessionStorage.getItem(t)??`{}`),i=r.runId===n&&typeof r.lastSeq==`number`?r.lastSeq:0;sessionStorage.setItem(t,JSON.stringify({runId:n,lastSeq:i})),GN(e)}catch{}}function EI(e,t){try{let n=sessionStorage.getItem(CI(e));if(!n)return 0;let r=JSON.parse(n);return r.runId===t&&typeof r.lastSeq==`number`?r.lastSeq:0}catch{return 0}}function DI(e,t,n){if(!(!Number.isInteger(n)||n<1))try{let r=CI(e),i=sessionStorage.getItem(r);if(!i)return;let a=JSON.parse(i);if(a.runId!==t||n<=(typeof a.lastSeq==`number`?a.lastSeq:0))return;sessionStorage.setItem(r,JSON.stringify({runId:t,lastSeq:n}))}catch{}}var OI=class{_abort;_chatId=``;_trackedRunId;_streamCleanup;get isSending(){return!!this._abort}get activeChatId(){return this._chatId}isStreamingFor(e){return!!this._abort&&this._chatId===e}async send(e,t,n,r,i){this._trackedRunId=void 0,this._abort=new AbortController,this._chatId=t;let a=n&&n.length>10?n.slice(0,10):n,o=await ZM(this._abort.signal),s=yI(t,fM({content:e,attachments:a,thinking:r})),c=await SI(z(`/api/sessions/${encodeURIComponent(t)}/inputs`),JSON.stringify({clientMessageId:s,delivery:`next`,content:e,attachments:a,thinking:r,origin:o}),this._abort.signal);if(!c.ok){let e=await c.json().catch(()=>({}));throw Error(N(c.status,c.statusText,e.error?.message))}let l=await c.json();bI(t,s);let u=l.payload?.state,d=u?.inputs?.find(e=>e.clientMessageId===s);if(u?.activeRunId&&d?.id===u.activeInputId){await this.resume(u.activeRunId,t,i);return}this._abort=void 0}abort(){this._notifyServerAbort(),this._abort?.abort(),this._streamCleanup?.(),this._streamCleanup=void 0,this._abort=void 0,this._clearPendingRun()}_notifyServerAbort(){if(this._chatId)try{let e=sessionStorage.getItem(CI(this._chatId));if(!e)return;let t=JSON.parse(e);if(typeof t.runId!=`string`||!t.runId)return;L(z(`/api/agent/abort`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({runId:t.runId})}).catch(()=>{})}catch{}}async resume(e,t,n){this._trackedRunId=void 0,this._abort=new AbortController,this._chatId=t,this._trackedRunId=e,TI(t,e);let r=this._wrapTerminalCallbacks(n),i=await new Promise(n=>{let i=!1,a=e=>{i||(i=!0,this._streamCleanup?.(),this._streamCleanup=void 0,n(e))},o=EI(t,e);this._streamCleanup=_I(`run:${e}`,{onEvent:n=>{let i=n.data&&typeof n.data==`object`?{...n.data,seq:n.seq}:{type:n.event,seq:n.seq,payload:n.data};this._dispatchStreamEvent(n.event,i,r.wrapped),DI(t,e,n.seq),(n.event===`run_end`||n.event===`error`)&&a(!0)},onGap:e=>{if(e.recoverable)return r.wrapped?.onReplayGap?.();a(!1)}},o),this._abort?.signal.addEventListener(`abort`,()=>a(!1),{once:!0})});return this._abort=void 0,this._clearPendingRun(),i}_wrapTerminalCallbacks(e){if(!e)return{wrapped:void 0,sawTerminal:!1,onMissingTerminal:()=>{}};let t=!1,n=()=>{t=!0};return{get sawTerminal(){return t},wrapped:{...e,onResult:r=>{t||(n(),e.onResult(r))},onError:r=>{t||(n(),e.onError(r))}},onMissingTerminal:()=>{t||(n(),e.onError(`Agent run ended without a terminal event`))}}}_clearPendingRun(){let e=this._chatId;if(e)try{let t=CI(e),n=sessionStorage.getItem(t);if(n){let e=JSON.parse(n),t=typeof e?.runId==`string`?e.runId:``;if(this._trackedRunId&&t&&t!==this._trackedRunId)return}sessionStorage.removeItem(t),GN(e)}catch{}this._trackedRunId=void 0}_dispatchStreamEvent(e,t,n){let r=t.payload&&typeof t.payload==`object`?t.payload:{};switch(e){case`run_start`:typeof t.runId==`string`&&this._chatId&&(this._trackedRunId=t.runId,TI(this._chatId,t.runId)),typeof t.runId==`string`&&n?.onStreamStart(t.runId);break;case`user_message`:{let e=dF(r.message);e&&n?.onUserMessage?.(e);break}case`user_transcript`:{let e=dF({text:r.text,media:r.media,timestamp:t.timestamp});e&&n?.onUserMessage?.(e);break}case`assistant_message_start`:typeof t.runId==`string`&&n?.onStreamStart(t.runId);break;case`assistant_delta`:typeof r.delta==`string`&&r.delta&&n?.onToken(r.delta,typeof r.messageId==`string`?r.messageId:void 0);break;case`thinking_delta`:typeof r.delta==`string`&&r.delta&&n?.onThinking(r.delta,!0);break;case`thinking_end`:n?.onThinkingEnd();break;case`assistant_message_end`:n?.onThinkingEnd(),typeof r.messageId==`string`&&(r.presentation===`narration`||r.presentation===`answer`)&&n?.onAssistantMessageEnd?.(r.messageId,r.presentation,r.usage);break;case`tool_start`:{let e=String(r.toolName||`unknown`),i=typeof r.toolCallId==`string`?r.toolCallId:void 0;if(e===`clarify`)break;n?.onToolStart(e,r.args,i,AI(t.timestamp),r.activity);break}case`tool_update`:{let e=typeof r.toolName==`string`&&r.toolName?r.toolName:`unknown`,t=typeof r.toolCallId==`string`?r.toolCallId:void 0;r.details!==void 0&&n?.onToolUpdate?.(e,t,r.details),typeof r.textDelta==`string`&&r.textDelta&&n?.onToolUpdate?.(e,t,{textDelta:r.textDelta});break}case`tool_end`:n?.onToolEnd(typeof r.toolName==`string`&&r.toolName?r.toolName:`unknown`,r.status===`error`||r.status===`cancelled`,kI(r.result),typeof r.toolCallId==`string`?r.toolCallId:void 0,AI(t.timestamp),r.activity);break;case`review_start`:typeof r.reviewId==`string`&&r.reviewId&&n?.onReviewStart?.({reviewId:r.reviewId,target:typeof r.target==`string`?r.target:`working tree changes`,stage:r.stage===`preparing`?`preparing`:`reviewing`});break;case`review_delta`:typeof r.reviewId==`string`&&typeof r.delta==`string`&&r.delta&&n?.onReviewDelta?.({reviewId:r.reviewId,delta:r.delta});break;case`review_end`:typeof r.reviewId==`string`&&r.reviewId&&n?.onReviewEnd?.({reviewId:r.reviewId,status:r.status===`error`?`error`:`complete`,...typeof r.message==`string`&&r.message?{message:r.message}:{}});break;case`progress`:n?.onProgress({stage:String(r.stage||`thinking`),message:String(r.message||``),detail:r.detail,toolName:r.toolName,completed:typeof r.completed==`number`?r.completed:void 0,total:typeof r.total==`number`?r.total:void 0,timestamp:Date.now()});break;case`compaction`:n?.onCompaction?.({status:r.status||`started`,tokensBefore:typeof r.tokensBefore==`number`?r.tokensBefore:void 0,tokensAfter:typeof r.tokensAfter==`number`?r.tokensAfter:void 0,summary:typeof r.summary==`string`?r.summary:void 0});break;case`turn_plan`:{let e=jI(r.plan);e.length>0&&n?.onTurnPlanUpdated?.({explanation:typeof r.explanation==`string`&&r.explanation.trim()?r.explanation.trim():void 0,plan:e});break}case`task_plan_updated`:{let e=MI(r.items),t=r.source===`todo`?`todo`:`update_plan`,i=r.scope===`session`?`session`:`turn`,a=typeof r.planId==`string`?r.planId.trim():``,o=typeof r.revision==`number`&&Number.isInteger(r.revision)?r.revision:0;a&&o>0&&n?.onTaskPlanUpdated?.({planId:a,revision:o,source:t,scope:i,explanation:typeof r.explanation==`string`&&r.explanation.trim()?r.explanation.trim():void 0,items:e});break}case`tts_audio`:n?.onTtsAudio?.({uri:String(r.uri||``),mimeType:String(r.mimeType||`audio/mpeg`),name:String(r.name||`voice.mp3`),attachTo:r.attachTo===`last_assistant`?`last_assistant`:void 0,messageId:typeof r.messageId==`string`?r.messageId:void 0});break;case`clarify_request`:{let e=typeof r.requestId==`string`?r.requestId.trim():``,t=typeof r.question==`string`?r.question.trim():``;if(e&&t&&n?.onClarifyRequest){let i=Array.isArray(r.choices)?r.choices.filter(e=>typeof e==`string`&&e.trim().length>0):void 0,a=typeof r.default==`string`&&r.default.trim()?r.default.trim():void 0;n.onClarifyRequest({requestId:e,question:t,choices:i&&i.length>=2?i:void 0,default:a})}break}case`memory_consent_required`:{let e=Array.isArray(r.requests)?r.requests.filter(e=>!!e&&typeof e==`object`):[];e.length>0&&this._chatId&&window.dispatchEvent(new CustomEvent(`memory-consent-required`,{detail:{sessionKey:this._chatId,requests:e}}));break}case`memory_captured`:{let e=Array.isArray(r.records)?r.records.filter(e=>!!e&&typeof e==`object`):[];e.length>0&&this._chatId&&window.dispatchEvent(new CustomEvent(`memory-captured`,{detail:{sessionKey:this._chatId,records:e}}));break}case`memory_candidate`:{let e=Array.isArray(r.records)?r.records.filter(e=>!!e&&typeof e==`object`):[];e.length>0&&this._chatId&&window.dispatchEvent(new CustomEvent(`memory-candidate`,{detail:{sessionKey:this._chatId,records:e}}));break}case`workflow_run_started`:{let e=r.workflowRun;if(e?.ok===!0){let t=typeof e.runId==`string`?e.runId:``,r=typeof e.sessionKey==`string`?e.sessionKey:``,i=typeof e.definitionId==`string`?e.definitionId:``,a=typeof e.parentSessionKey==`string`?e.parentSessionKey:void 0;t&&r&&i&&n?.onWorkflowRunStarted?.({runId:t,sessionKey:r,definitionId:i,parentSessionKey:a})}break}case`run_end`:typeof t.runId==`string`&&typeof t.sessionKey==`string`&&(r.status===`success`||r.status===`error`||r.status===`cancelled`)&&n?.onResult({runId:t.runId,sessionKey:t.sessionKey,status:r.status,...typeof r.summary==`string`&&r.summary?{summary:r.summary}:{}});break;case`error`:n?.onError(String(r.message||JSON.stringify(JN())));break}}};function kI(e){if(typeof e==`string`||e==null)return e;try{return JSON.stringify(e)}catch{return String(e)}}function AI(e){if(typeof e!=`number`||!Number.isFinite(e))throw Error(`Chat stream event is missing a numeric timestamp`);return e}function jI(e){return Array.isArray(e)?e.map(e=>{let t=e&&typeof e==`object`&&!Array.isArray(e)?e:void 0,n=typeof t?.step==`string`?t.step.trim():``,r=t?.status;if(!(!n||r!==`pending`&&r!==`in_progress`&&r!==`completed`))return{step:n,status:r}}).filter(e=>!!e):[]}function MI(e){return Array.isArray(e)?e.flatMap(e=>{let t=e&&typeof e==`object`&&!Array.isArray(e)?e:void 0,n=typeof t?.id==`string`?t.id.trim():``,r=typeof t?.title==`string`?t.title.trim():``,i=t?.status;return!n||!r||i!==`pending`&&i!==`in_progress`&&i!==`completed`&&i!==`cancelled`?[]:[{id:n,title:r,status:i}]}):[]}function NI(e,t){let n=e=>cF(e.role),r=e.filter(n).length;if(t.filter(n).length<=r)return e;let i=t.filter(n).slice(r);return i.length===0?e:RP([...e,...i])}var PI=`medium`;function FI(){return{name:null,model:``,thinkingLevel:PI,reasoningLevel:`on`,activityDetailDefault:`on`,activityDetailOverride:null,modelSupportsThinking:!1,effectiveWorkspacePath:``,workingDirectoryLocked:!1,workspaceSource:`agent_default_root`}}var II=`xopc.webchat.agentId`;function LI(){if(globalThis.localStorage===void 0)return null;try{return globalThis.localStorage.getItem(`xopc.webchat.agentId`)?.trim().toLowerCase()||null}catch{return null}}var RI=class e{static instance;sender=new OI;activeStreamSessionKey=null;activeResumeRunId=null;userAborted=!1;static get(){return e.instance||=new e,e.instance}clearActiveStreamSessionKey(e){e&&this.activeStreamSessionKey!==e||(this.activeStreamSessionKey=null)}resetRunTracking(){this.activeStreamSessionKey=null,this.activeResumeRunId=null}abort(){this.sender.abort()}isStreamingFor(e){return this.sender.isStreamingFor(e)}get isSending(){return this.sender.isSending}}.get(),zI={get current(){return RI.activeStreamSessionKey},set current(e){RI.activeStreamSessionKey=e}};function BI(e){if(e.type!==`thinking`)return``;let t=e;return(typeof t.text==`string`&&t.text.length>0?t.text:typeof t.thinking==`string`?t.thinking:``).trim()}function VI(e){if(e.role!==`assistant`)return!1;for(let t of e.content)if(t.type===`text`&&(t.text||``).trim().length>0||t.type===`thinking`&&BI(t).length>0||t.type===`tool_use`||t.type===`review`)return!0;return!1}function HI(e,t){return e&&e.role===`assistant`?{...e,content:[...e.content]}:{role:`assistant`,content:[],timestamp:t}}function UI(e){return{...e,content:e.content.map(e=>({...e})),attachments:e.attachments?e.attachments.map(e=>({...e})):void 0}}function WI(e,t){if(!t)return e;if(!e)return t;if(e.endsWith(t))return e;let n=Math.min(e.length,t.length,512);for(let r=n;r>0;r--)if(e.slice(-r)===t.slice(0,r))return e+t.slice(r);return e+t}function GI(e){let t=e[e.length-1];t?.type===`thinking`&&t.streaming&&(t.streaming=!1)}function KI(e){let t=e[e.length-1];t?.type===`thinking`&&t.streaming||e.push({type:`thinking`,text:``,streaming:!0})}function qI(e,t,n){let r=e[e.length-1];if(r?.type===`thinking`){n?r.text=WI(r.text||``,t):r.text=t,r.streaming=!0;return}e.push({type:`thinking`,text:t,streaming:!0})}function JI(e){GI(e);for(let t of e)t.type===`thinking`&&typeof t.text==`string`&&(t.text=t.text.trim())}function YI(e){for(let t of e)t.type===`tool_use`&&t.status===`running`&&(t.status=`done`)}function XI(e,t){return e.trim().toLowerCase()===t.trim().toLowerCase()}function ZI(e,t,n){GI(e);let r=e[e.length-1];if(r?.type===`text`&&r.segmentId===n){r.text=WI(r.text||``,t);return}e.push({type:`text`,text:t,...n?{segmentId:n,presentation:`pending`}:{}})}function QI(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type===`text`&&i.segmentId===t){i.presentation=n;return}}}function $I(e){let t=cL(e);if(!t||t.type!==`review`)return null;let n=Array.isArray(t.findings)?t.findings:[],r={type:`review`,target:typeof t.target==`string`?t.target:`working tree changes`,summary:typeof t.summary==`string`?t.summary:``,findings:n.map(e=>{let t=cL(e);if(!t)return null;let n=t.priority===0||t.priority===1||t.priority===2||t.priority===3?t.priority:2,r=typeof t.title==`string`?t.title:``,i=typeof t.body==`string`?t.body:``;if(!r&&!i)return null;let a={title:r,body:i,priority:n};return typeof t.confidenceScore==`number`&&(a.confidenceScore=t.confidenceScore),typeof t.filePath==`string`&&(a.filePath=t.filePath),typeof t.lineStart==`number`&&(a.lineStart=t.lineStart),typeof t.lineEnd==`number`&&(a.lineEnd=t.lineEnd),a}).filter(e=>e!=null),overallCorrectness:t.overallCorrectness===`patch is correct`||t.overallCorrectness===`patch is incorrect`?t.overallCorrectness:`unknown`,overallExplanation:typeof t.overallExplanation==`string`?t.overallExplanation:``};return typeof t.overallConfidenceScore==`number`&&(r.overallConfidenceScore=t.overallConfidenceScore),typeof t.generatedAt==`number`&&(r.generatedAt=t.generatedAt),(t.source===`model`||t.source===`local`)&&(r.source=t.source),r}function eL(e,t){GI(e);let n=$I(t);if(!n)return;let r=e.findIndex(e=>e.type===`review`&&e.target===n.target);if(r>=0){let t=e[r];if(!t||t.type!==`review`)return;e[r]={...n,reviewId:t.reviewId,status:t.status===`error`?`error`:`complete`,analysisMarkdown:t.analysisMarkdown,errorMessage:t.errorMessage};return}e.push(n)}function tL(e){for(let t of e)t.type===`review`&&(t.status!==`preparing`&&t.status!==`reviewing`||(t.status=`error`,t.errorMessage??=`The review stream ended before a conclusion was returned.`))}function nL(e,t){GI(e);let n=e.find(e=>e.type===`review`&&e.reviewId===t.reviewId);if(n){n.target=t.target||n.target,n.status=t.stage;return}e.push({type:`review`,reviewId:t.reviewId,target:t.target||`working tree changes`,summary:``,findings:[],overallCorrectness:`unknown`,overallExplanation:``,status:t.stage})}function rL(e,t,n){if(!n)return;let r=e.find(e=>e.type===`review`&&e.reviewId===t);r&&(r.status=`reviewing`,r.analysisMarkdown=WI(r.analysisMarkdown??``,n))}function iL(e,t,n,r){let i=e.find(e=>e.type===`review`&&e.reviewId===t);i&&(i.status=n,i.errorMessage=n===`error`?r:void 0)}function aL(e,t,n,r,i,a){GI(e);let o={type:`tool_use`,id:crypto.randomUUID(),toolCallId:r,name:t,activity:a??WM(t,`running`),input:n,status:`running`,startedAt:i};e.push(o)}function oL(e,t,n,r,i,a,o){for(let s=e.length-1;s>=0;s--){let c=e[s];if(!(c.type!==`tool_use`||c.status!==`running`)&&!(i&&c.toolCallId!==i&&c.id!==i)&&!(!i&&!XI(c.name,t))){c.status=n?`error`:`done`,c.result=r,c.activity=o??WM(t,n?`failed`:`completed`,r),c.completedAt=a,c.startedAt!=null&&(c.durationMs=Math.max(0,a-c.startedAt));return}}}function sL(e,t,n,r){for(let i=e.length-1;i>=0;i--){let a=e[i];if(a.type===`tool_use`&&a.status===`running`){if(n&&a.toolCallId===n){a.details=lL(a.details,r);return}if(!n&&XI(a.name,t)){a.details=lL(a.details,r);return}}}}function cL(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function lL(e,t){let n=cL(t);if(typeof n?.textDelta==`string`){let t=cL(e)??{};return{...t,text:WI(String(t.text??``),n.textDelta)}}if(n?.kind!==`command_output_delta`)return t;let r=cL(e)??{},i=n.stream===`stderr`?`stderr`:`stdout`,a=typeof n.delta==`string`?n.delta:``,o=i===`stdout`?`${String(r.stdout??``)}${a}`:String(r.stdout??``),s=i===`stderr`?`${String(r.stderr??``)}${a}`:String(r.stderr??``);return{...r,command:typeof n.command==`string`?n.command:r.command,cwd:typeof n.cwd==`string`?n.cwd:r.cwd,stdout:o,stderr:s,aggregatedOutput:`${String(r.aggregatedOutput??``)}${a}`}}function uL(e){return e!==`ready`}var dL={streamingMsg:null,progress:null,taskPlan:null,sending:!1,streaming:!1};function fL(e){return{...FI(),historyStatus:e,messages:[],hasMore:!1,...dL}}function pL(e){return e.map(e=>UI(e))}function mL(e,t){return e===t?!0:e.role!==t.role||e.timestamp!==t.timestamp?!1:JSON.stringify(e)===JSON.stringify(t)}function hL(e,t){let n=e.length!==t.length,r=t.map((t,r)=>{let i=e[r];if(i&&mL(i,t))return i;n=!0;let a=UI(t);return i?.role===`assistant`&&t.role===`assistant`&&i.renderKey&&UP(i,t)&&(a.renderKey=i.renderKey),a});return n?r:e}function gL(e,t){let n=UI(t),r=e[e.length-1];if(r?.role!==`assistant`)return[...e,n];let i=RP([r,n]);return[...e.slice(0,-1),...i]}function _L(e){let t=e.uri?.trim();return t?`uri:${t}`:e.id?`id:${e.id}`:`name:${e.name??`file`}|${e.mimeType??``}`}function vL(e,t){let n=[...e??[]],r=_L(t);return n.some(e=>_L(e)===r)||n.push({...t}),n}function yL(e){return{name:e.name,model:e.model,thinkingLevel:e.thinkingLevel,reasoningLevel:e.reasoningLevel,activityDetailDefault:e.activityDetailDefault,activityDetailOverride:e.activityDetailOverride,modelSupportsThinking:e.modelSupportsThinking,effectiveWorkspacePath:e.effectiveWorkspacePath,workingDirectoryLocked:e.workingDirectoryLocked,workspaceSource:e.workspaceSource,historyStatus:e.historyStatus,messages:pL(e.messages),hasMore:e.hasMore,streamingMsg:e.streamingMsg?UI(e.streamingMsg):null,progress:e.progress,taskPlan:e.taskPlan?{...e.taskPlan,items:e.taskPlan.items.map(e=>({...e}))}:null,sending:e.sending,streaming:e.streaming}}function bL(e){return String(e??``).trim()}function xL(e){return e?{name:e.name,model:e.model,thinkingLevel:e.thinkingLevel,reasoningLevel:e.reasoningLevel,activityDetailDefault:e.activityDetailDefault,activityDetailOverride:e.activityDetailOverride,modelSupportsThinking:e.modelSupportsThinking,effectiveWorkspacePath:e.effectiveWorkspacePath,workingDirectoryLocked:e.workingDirectoryLocked,workspaceSource:e.workspaceSource}:FI()}var SL=R((e,t)=>({focusedSessionKey:null,initLoading:!0,loadingMore:!1,shellError:null,sessions:{},setFocusedSessionKey:t=>e({focusedSessionKey:t}),setInitLoading:t=>e({initLoading:t}),setLoadingMore:t=>e({loadingMore:t}),setShellError:t=>e({shellError:t}),setSessionHistoryStatus:(t,n)=>{let r=bL(t);r&&e(e=>{let t=e.sessions[r];if(t?.historyStatus===n)return e;let i=t??fL(`unknown`);return{sessions:{...e.sessions,[r]:{...i,historyStatus:n}}}})},patchSessionMeta:(t,n)=>{let r=bL(t);r&&e(e=>{let t=e.sessions[r]??fL(`unknown`);return{sessions:{...e.sessions,[r]:{...t,...n}}}})},initSessionSnapshot:(t,n)=>{let r=bL(t);r&&e(e=>({sessions:{...e.sessions,[r]:yL(n)}}))},setCommittedSnapshot:(t,n)=>{let r=bL(t);r&&e(e=>{let t=e.sessions[r],i=n.hasMore,a=xL(t);if(n.name!==void 0&&(a.name=n.name),!t){let t=pL(n.messages);return{sessions:{...e.sessions,[r]:{...a,historyStatus:`ready`,messages:t,hasMore:i,...dL}}}}if(CL(t))return{sessions:{...e.sessions,[r]:{...t,...a,historyStatus:`ready`,hasMore:i}}};let o=hL(t.messages,n.messages);return{sessions:{...e.sessions,[r]:{...t,...a,historyStatus:`ready`,messages:o,hasMore:i,...dL}}}})},updateSessionMessages:(t,n)=>{let r=bL(t);r&&e(e=>{let t=e.sessions[r];return t?{sessions:{...e.sessions,[r]:{...t,messages:pL(n(t.messages))}}}:e})},finalizeStreamingTurn:(t,n)=>{let r=bL(t);r&&e(e=>{let t=e.sessions[r],i=xL(t),a=t?.hasMore??!1;return{sessions:{...e.sessions,[r]:{...i,historyStatus:`ready`,messages:gL(t?.messages??[],n),hasMore:a,...dL}}}})},completeProgressiveRender:(t,n)=>{let r=bL(t);!r||!n||e(e=>{let t=e.sessions[r];if(!t)return e;let i=!1,a=e=>{if(e.renderKey!==n||!e.progressiveRender)return e;i=!0;let t=UI(e);return delete t.progressiveRender,t},o=t.messages.map(a),s=t.streamingMsg?a(t.streamingMsg):null;return i?{sessions:{...e.sessions,[r]:{...t,messages:o,streamingMsg:s}}}:e})},clearStreamingState:t=>{let n=bL(t);n&&e(e=>{let t=e.sessions[n];return t?{sessions:{...e.sessions,[n]:{...t,...dL}}}:e})},clearSession:t=>{let n=bL(t);n&&e(e=>{if(!(n in e.sessions))return e;let{[n]:t,...r}=e.sessions;return{sessions:r}})},getSessionSnapshot:e=>{let n=bL(e);if(!n)return;let r=t().sessions[n];return r?yL(r):void 0},seedSessionIfEmpty:(e,n,r,i,a=!1)=>{let o=bL(e);!o||t().sessions[o]||t().initSessionSnapshot(o,{...FI(),historyStatus:`ready`,messages:n,hasMore:a,streamingMsg:null,progress:null,taskPlan:null,sending:r,streaming:i})},setSessionFlags:(t,n)=>{let r=bL(t);r&&e(e=>{let t=e.sessions[r];return t?{sessions:{...e.sessions,[r]:{...t,...n.sending===void 0?{}:{sending:n.sending},...n.streaming===void 0?{}:{streaming:n.streaming}}}}:e})},setSessionProgress:(t,n)=>{let r=bL(t);r&&e(e=>{let t=e.sessions[r];return t?{sessions:{...e.sessions,[r]:{...t,progress:n}}}:e})},setSessionTaskPlan:(t,n)=>{let r=bL(t);r&&e(e=>{let t=e.sessions[r];return!t||n.revision<=(t.taskPlan?.revision??0)?e:{sessions:{...e.sessions,[r]:{...t,taskPlan:{...n,items:n.items.map(e=>({...e}))}}}}})},mutateSessionStreaming:(t,n,r=Date.now())=>{let i=bL(t);i&&e(e=>{let t=e.sessions[i];if(!t)return e;let a=HI(t.streamingMsg,r);return a.renderKey??=`assistant-stream:${i}:${r}`,a.progressiveRender=!0,n(a),{sessions:{...e.sessions,[i]:{...t,streamingMsg:UI(a),streaming:!0}}}})},appendAttachmentToCurrentAssistant:(t,n,r)=>{let i=bL(t);i&&e(e=>{let t=e.sessions[i];if(!t)return e;if(t.streamingMsg?.role===`assistant`){let r=UI(t.streamingMsg);return r.attachments=vL(r.attachments,n),{sessions:{...e.sessions,[i]:{...t,streamingMsg:r}}}}let r=pL(t.messages);for(let a=r.length-1;a>=0;a--){let o=r[a];if(o?.role===`assistant`)return r[a]={...o,attachments:vL(o.attachments,n)},{sessions:{...e.sessions,[i]:{...t,messages:r}}}}return e})},applyHydratedTail:(t,n,r)=>{let i=bL(t);i&&e(e=>{let t=e.sessions[i];return t?{sessions:{...e.sessions,[i]:{...t,messages:pL(n),streamingMsg:r?UI(r):null,streaming:!0,sending:!0}}}:e})},appendUserMessageIfMissing:(t,n)=>{let r=bL(t);!r||!cF(n.role)||e(e=>{let t=e.sessions[r],i=xL(t);if(!t)return{sessions:{...e.sessions,[r]:{...i,historyStatus:`ready`,messages:pL([n]),hasMore:!1,...dL}}};let a=t.messages[t.messages.length-1];return a&&pF(a,n)?{sessions:{...e.sessions,[r]:{...t,messages:pL(RP([...t.messages.slice(0,-1),n]))}}}:t.messages.some(e=>mF(e,n))?e:{sessions:{...e.sessions,[r]:{...t,messages:pL(RP([...t.messages,n]))}}}})},mergeCommittedFromServer:(t,n,r)=>{let i=bL(t);i&&e(e=>{let t=e.sessions[i],a=xL(t),o=r??t?.hasMore??!1;if(!t||!CL(t))return{sessions:{...e.sessions,[i]:{...a,historyStatus:`ready`,messages:pL(n),hasMore:o,...dL}}};let s=NI(t.messages,n);return s===t.messages&&o===t.hasMore&&t.historyStatus===`ready`?e:{sessions:{...e.sessions,[i]:{...t,historyStatus:`ready`,messages:pL(s),hasMore:o}}}})},prependHistoryMessages:(t,n,r)=>{let i=bL(t);i&&e(e=>{let t=e.sessions[i],a=xL(t);if(!t)return{sessions:{...e.sessions,[i]:{...a,historyStatus:`ready`,messages:pL(n),hasMore:r,...dL}}};let o=new Set(t.messages.map(e=>e.timestamp)),s=RP([...n.filter(e=>!o.has(e.timestamp)),...t.messages]);return{sessions:{...e.sessions,[i]:{...t,messages:pL(s),hasMore:r}}}})}}));function CL(e){return e?e.streaming||e.sending||!!e.streamingMsg:!1}function wL(e){return SL.getState().getSessionSnapshot(e)}function TL(e){return SL.getState().sessions[bL(e)]?.messages??[]}function EL(e){let t=bL(e);if(!t)return!1;let n=SL.getState().sessions[t];return CL(n)||RI.isStreamingFor(t)?!0:wI(t)}function DL(e){let t=SL(t=>CL(t.sessions[e])),[n,r]=(0,Z.useState)(()=>EL(e)),i=(0,Z.useRef)(e);return i.current!==e&&(i.current=e,r(EL(e))),(0,Z.useEffect)(()=>{r(EL(e))},[e,t]),(0,Z.useEffect)(()=>{let t=t=>{t.detail?.chatId===e&&r(EL(e))};return window.addEventListener(WN,t),()=>window.removeEventListener(WN,t)},[e]),t||n}function OL(e){return e.trim()}var kL=R(e=>({runs:{},markRunning:t=>{let n=OL(t);if(!n)return;let r=Date.now();e(e=>{let t=e.runs[n];return{runs:{...e.runs,[n]:{status:`running`,startedAt:t?.status===`running`?t.startedAt:r,updatedAt:r,unread:!1}}}})},markCompleted:(t,n)=>{let r=OL(t);if(!r)return;let i=Date.now();e(e=>{let t=e.runs[r];return{runs:{...e.runs,[r]:{status:`completed`,startedAt:t?.startedAt??i,updatedAt:i,unread:n}}}})},markFailed:(t,n)=>{let r=OL(t);if(!r)return;let i=Date.now();e(e=>{let t=e.runs[r];return{runs:{...e.runs,[r]:{status:`failed`,startedAt:t?.startedAt??i,updatedAt:i,unread:n}}}})},markViewed:t=>{let n=OL(t);n&&e(e=>{let t=e.runs[n];return t?.unread?{runs:{...e.runs,[n]:{...t,unread:!1}}}:e})},clear:t=>{let n=OL(t);n&&e(e=>{if(!(n in e.runs))return e;let{[n]:t,...r}=e.runs;return{runs:r}})}}));function AL(e){kL.getState().markRunning(e)}function jL(e,t){kL.getState().markCompleted(e,t)}function ML(e,t){kL.getState().markFailed(e,t)}function NL(e){kL.getState().clear(e)}async function PL(e){let t=new URLSearchParams;e?.status&&t.set(`status`,e.status),e?.search?.trim()&&t.set(`search`,e.search.trim()),e?.sortBy&&t.set(`sortBy`,e.sortBy),e?.sortOrder&&t.set(`sortOrder`,e.sortOrder),e?.limit&&t.set(`limit`,String(e.limit)),e?.offset&&t.set(`offset`,String(e.offset));let n=t.toString();return B(z(`/api/projects${n?`?${n}`:``}`))}async function FL(e){return(await B(z(`/api/projects/${encodeURIComponent(e)}`))).project}async function IL(e){let t=await B(z(`/api/projects/${encodeURIComponent(e)}/operating-view`));return Ij.parse(t&&typeof t==`object`?t.view:void 0)}async function LL(e,t={}){let n=new URLSearchParams;n.set(`visibility`,`timeline`),t.includeRelated&&n.set(`includeRelated`,`true`),t.limit&&n.set(`limit`,String(t.limit)),t.offset&&n.set(`offset`,String(t.offset));let r=n.toString();return B(z(`/api/projects/${encodeURIComponent(e)}/activity${r?`?${r}`:``}`))}async function RL(e){return(await B(z(`/api/projects`),{method:`POST`,body:JSON.stringify(e)})).project}async function zL(e){let t=await B(z(`/api/projects/infer-defaults`),{method:`POST`,body:JSON.stringify(e)});return{inference:t.inference,defaultAgentId:t.defaultAgentId}}async function BL(e,t){return(await B(z(`/api/projects/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)})).project}async function VL(e,t){return BL(e,{name:t})}async function HL(e){return BL(e,{status:`archived`})}async function UL(e){return BL(e,{status:`active`})}async function WL(e){return(await B(z(`/api/projects/${encodeURIComponent(e)}/pin`),{method:`POST`})).project}async function GL(e){return(await B(z(`/api/projects/${encodeURIComponent(e)}/unpin`),{method:`POST`})).project}async function KL(e){await B(z(`/api/projects/${encodeURIComponent(e)}`),{method:`DELETE`})}async function qL(e){return(await B(z(`/api/projects/${encodeURIComponent(e)}/sessions?limit=100`))).sessions}async function JL(e){await B(z(`/api/projects/${encodeURIComponent(e)}/digest-memory`),{method:`POST`,body:JSON.stringify({})})}async function YL(e,t){return(await B(z(`/api/projects/${encodeURIComponent(e)}/blockers`),{method:`POST`,body:JSON.stringify(t)})).blocker}async function XL(e,t){let n=new URLSearchParams;t&&n.set(`path`,t);let r=n.toString();return B(z(`/api/projects/${encodeURIComponent(e)}/files${r?`?${r}`:``}`))}async function ZL(e,t,n=50){let r=new URLSearchParams({q:t.trim(),limit:String(n)});return(await B(z(`/api/projects/${encodeURIComponent(e)}/files/search?${r.toString()}`))).entries}async function QL(e,t){return(await B(z(`/api/sessions`),{method:`POST`,body:JSON.stringify({projectId:e,...t?{agentId:t}:{}})})).session}var $L=new Map,eR=`xopc-agent-avatar-updated`;function tR(e){let t=($L.get(e)??0)+1;return $L.set(e,t),typeof window<`u`&&window.dispatchEvent(new CustomEvent(eR,{detail:{agentId:e}})),t}function nR(e){return $L.get(e)??0}var rR=`xopc:custom`,iR=`xopc:dicebear:`,aR=[`adventurer`,`bottts`,`lorelei`,`thumbs`,`fun-emoji`],oR=[...aR,`pixel-art`],sR=[`Avery`,`Blake`,`Casey`,`Drew`,`Eden`],cR=[`Fern`,`Gray`,`Harper`,`Indigo`,`Jules`,`Kai`,`Lane`,`Morgan`,`Noel`,`Oakley`,`Parker`,`Quinn`,`Reese`,`Sage`,`Tatum`];function lR(e){return aR.includes(e)}function uR(e){return oR.includes(e)}function dR(e,t){return`${iR}${e}:${t}`}function fR(e){if(!e.startsWith(iR))return null;let t=e.slice(14),n=t.indexOf(`:`);if(n<=0)return null;let r=t.slice(0,n),i=t.slice(n+1);return!uR(r)||!i.trim()?null:{styleId:r,seed:i}}function pR(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)>>>0;return t}function mR(e,t=128){let n=pR(e)%360,r=(e.trim().charAt(0)||`A`).toUpperCase(),i=`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 ${t} ${t}"><rect width="100%" height="100%" rx="${t/2}" fill="hsl(${n} 58% 42%)"/><text x="50%" y="54%" text-anchor="middle" dominant-baseline="middle" font-family="Inter, system-ui, sans-serif" font-size="${Math.round(t*.42)}" font-weight="700" fill="white">${r}</text></svg>`;return`data:image/svg+xml,${encodeURIComponent(i)}`}function hR(e,t,n,r,i){let a=t?.trim()??``,o=mR(e,r);if(!a)return{kind:`dicebear`,styleId:`adventurer`,seed:e,fallbackSrc:o};if(a===`xopc:custom`){let t=z(`/api/agents/${encodeURIComponent(e)}/avatar`),r=new URLSearchParams;n&&r.set(`token`,n),i>0&&r.set(`v`,String(i));let a=r.toString();return{kind:`sync`,src:a?`${t}?${a}`:t}}if(/^https?:\/\//i.test(a))return{kind:`sync`,src:a};let s=fR(a);return s?{kind:`dicebear`,styleId:s.styleId,seed:s.seed,fallbackSrc:o}:{kind:`dicebear`,styleId:`adventurer`,seed:e,fallbackSrc:o}}function gR(e){let t=F(e=>e.token),n=e.token===void 0?t:e.token,{agentId:r,avatar:i,size:a=44}=e,[,o]=(0,Z.useState)(0);(0,Z.useEffect)(()=>{let e=e=>{e.detail?.agentId===r&&o(e=>e+1)};return window.addEventListener(eR,e),()=>window.removeEventListener(eR,e)},[r]);let s=nR(r),l=(0,Z.useMemo)(()=>hR(r,i,n,a,s),[r,i,n,a,s]),u=l.kind===`sync`?l.src:l.fallbackSrc,[d,f]=(0,Z.useState)(u);return(0,Z.useEffect)(()=>{f(u)},[u]),(0,Z.useEffect)(()=>{if(l.kind!==`dicebear`)return;let e=!1;return c(async()=>{let{dicebearToDataUri:e}=await import(`./agent-avatar-dicebear-C5st7lt5.js`).then(e=>e.t);return{dicebearToDataUri:e}},__vite__mapDeps([46,1])).then(({dicebearToDataUri:t})=>{e||f(t(l.styleId,l.seed,a))}),()=>{e=!0}},[l,a]),(0,$.jsx)(`img`,{src:d,alt:``,width:a,height:a,className:C(`rounded-full object-cover bg-surface-hover`,e.className),draggable:!1,onError:()=>{f(mR(r,a))}})}function _R(e,t){return e.routing?.agentId?.trim().toLowerCase()||t.trim().toLowerCase()||`main`}function vR(e,t){return t.find(t=>t.id===e)?.avatar}var yR=new Map;async function bR(e){let t=lM(e),n=yR.get(t);if(n)return n;let r=z(`/api/sessions${nM(e)}`),i=(async()=>{let e=await Ue(r);if(!e.ok){let t=await e.json().catch(()=>({})),n=typeof t.error==`string`?t.error:t.error?.message;throw Error(n??`HTTP ${e.status}`)}return await e.json()})().finally(()=>{yR.delete(t)});return yR.set(t,i),i}async function xR(e){return eM(await B(z(sM(e))))}async function SR(){return $j(await B(z(oM())))}async function CR(e,t){let n=Jj(await B(z(rM(e,t))));if(!n.session)throw Error(`Session not found`);return n.session}async function wR(e){let t=await B(z(`/api/sessions/resolve`),{method:`POST`,body:JSON.stringify(e)});if(!t.ok||!t.payload)throw Error(t.error??`Session not found`);return t.payload}async function TR(e){Zj(await B(z(cM(e,`delete`)),{method:`DELETE`}))}async function ER(e,t){return{renamed:Qj(await B(z(cM(e,`rename`)),{method:`POST`,body:JSON.stringify({name:t})})).renamed===!0}}async function DR(e){Zj(await B(z(cM(e,`archive`)),{method:`POST`}))}async function OR(e){Zj(await B(z(cM(e,`unarchive`)),{method:`POST`}))}async function kR(e){Zj(await B(z(cM(e,`pin`)),{method:`POST`}))}async function AR(e){Zj(await B(z(cM(e,`unpin`)),{method:`POST`}))}async function jR(e){return(await B(z(`/api/sessions/${encodeURIComponent(e)}/export?format=json`))).content}var MR=`xopc-composer-notice`,NR={info:{Icon:Dh,className:`border-accent/25 bg-accent-soft text-accent-fg`},success:{Icon:Dh,className:`border-success/25 bg-success-soft text-success`},warning:{Icon:SS,className:`border-warning/25 bg-warning-soft text-fg`},error:{Icon:Ao,className:`border-danger/25 bg-danger-soft text-danger`}};function PR(){let e=(0,Q.c)(23),t=I(FR),n=m(),[r,i]=(0,Z.useState)(null),a,o;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{let e,t=t=>{let n=t.detail;if(!n?.message?.trim())return;i({...n,message:n.message.trim()}),window.clearTimeout(e);let r=n.duration??(n.type===`error`?8e3:5e3);r>0&&(e=window.setTimeout(()=>i(null),r))};return window.addEventListener(MR,t),()=>{window.removeEventListener(MR,t),window.clearTimeout(e)}},o=[],e[0]=a,e[1]=o):(a=e[0],o=e[1]),(0,Z.useEffect)(a,o),!r)return null;let{Icon:s,className:c}=NR[r.type],l;e[2]===c?l=e[3]:(l=C(`mx-3 mt-3 flex items-start gap-2.5 rounded-lg border px-3 py-2 text-xs`,c),e[2]=c,e[3]=l);let u=r.type===`error`?`alert`:`status`,d;e[4]===s?d=e[5]:(d=(0,$.jsx)(s,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":!0}),e[4]=s,e[5]=d);let f;e[6]===r.message?f=e[7]:(f=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 leading-5`,children:r.message}),e[6]=r.message,e[7]=f);let p;e[8]!==t||e[9]!==n||e[10]!==r.href?(p=r.href?(0,$.jsx)(`button`,{type:`button`,className:`shrink-0 font-medium underline underline-offset-2`,onClick:()=>n(r.href),children:t===`zh`?`前往设置`:`Open settings`}):null,e[8]=t,e[9]=n,e[10]=r.href,e[11]=p):p=e[11];let h=t===`zh`?`关闭提示`:`Dismiss notice`,g,_;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>i(null),_=(0,$.jsx)(Aw,{className:`size-3.5`,"aria-hidden":!0}),e[12]=g,e[13]=_):(g=e[12],_=e[13]);let v;e[14]===h?v=e[15]:(v=(0,$.jsx)(`button`,{type:`button`,className:`shrink-0 rounded p-0.5 opacity-70 hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current`,"aria-label":h,onClick:g,children:_}),e[14]=h,e[15]=v);let y;return e[16]!==v||e[17]!==l||e[18]!==u||e[19]!==d||e[20]!==f||e[21]!==p?(y=(0,$.jsxs)(`div`,{className:l,role:u,children:[d,f,p,v]}),e[16]=v,e[17]=l,e[18]=u,e[19]=d,e[20]=f,e[21]=p,e[22]=y):y=e[22],y}function FR(e){return e.language}function IR(e,t,n,r){let i=n?t.replace(/\{\{(\w+)\}\}/g,(e,t)=>String(n[t]??``)):t;if(typeof window<`u`&&window.location.hash.replace(/^#/,``).startsWith(`/chat`)){window.dispatchEvent(new CustomEvent(MR,{detail:{type:e,message:i,duration:r?.duration,href:r?.href}}));return}De({tone:e,title:i,href:r?.href,dedupeKey:`action-feedback:${e}:${i}`})}var LR=20,RR=12,zR=5,BR=60;function VR(e,t){return e.name?.trim()||t}function HR(e){let t=/^\/chat\/([^/]+)$/.exec(e);if(!t)return;let n=decodeURIComponent(t[1]);if(n!==`new`)return n}function UR(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function WR(e){let t=new Date(e.updatedAt).getTime();return Number.isFinite(t)?t:0}function GR(e){let t=new Date(e.lastActiveAt??e.updatedAt).getTime();return Number.isFinite(t)?t:0}function KR(e){let t=e.pinnedAt??0;return Number.isFinite(t)?t:0}function qR(e){return e.sourceChannel===`webchat`||e.sourceChannel===`web`}function JR(e){return C(`group flex w-full min-w-0 items-center gap-0.5 rounded-xl pl-1.5 pr-1 text-left text-sm font-medium leading-5 transition-colors duration-200 ease-out`,`focus-within:outline-none`,e?`bg-surface-active text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`)}function YR(e){let t=(0,Q.c)(6),{indented:n}=e,r=(n===void 0?!1:n)&&`pl-7`,i;t[0]===r?i=t[1]:(i=C(`flex items-center gap-2 p-1.5`,r),t[0]=r,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(BN,{className:`size-6 shrink-0 animate-none rounded-lg`}),t[2]=a):a=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(BN,{className:`h-3 w-4/5 animate-none`}),(0,$.jsx)(BN,{className:`mt-1.5 h-2.5 w-2/5 animate-none`})]}),t[3]=o):o=t[3];let s;return t[4]===i?s=t[5]:(s=(0,$.jsxs)(`div`,{className:i,children:[a,o]}),t[4]=i,t[5]=s),s}function XR(){let e=(0,Q.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`div`,{children:[(0,$.jsx)(BN,{className:`mb-1.5 h-2.5 w-14 animate-none`}),(0,$.jsx)(YR,{})]}),n=(0,$.jsx)(BN,{className:`mb-1.5 h-2.5 w-16 animate-none`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 p-4`,"aria-busy":`true`,children:[t,(0,$.jsxs)(`div`,{children:[n,(0,$.jsxs)(`div`,{className:`rounded-xl border border-edge-subtle/70 py-1`,children:[(0,$.jsx)(YR,{}),(0,$.jsx)(YR,{indented:!0}),(0,$.jsx)(YR,{indented:!0})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(BN,{className:`mb-1.5 h-2.5 w-12 animate-none`}),(0,$.jsx)(YR,{}),(0,$.jsx)(YR,{})]})]}),e[2]=r):r=e[2],r}var ZR=(0,Z.memo)(function(e){let t=(0,Q.c)(89),{session:n,isActive:r,showSourceChannelIcon:i,onNavigate:a,mutate:o,onRequestRename:s,onRequestDelete:c,sb:l,sess:u,clipboard:d,defaultUnnamedTitle:f,sessionAgentId:p,sessionAgentAvatar:m}=e,[h,g]=(0,Z.useState)(!1),_=DL(n.key),v;t[0]===n.key?v=t[1]:(v=e=>e.runs[n.key],t[0]=n.key,t[1]=v);let b=kL(v),x;t[2]!==f||t[3]!==n?(x=VR(n,f),t[2]=f,t[3]=n,t[4]=x):x=t[4];let S=x,w=n.status===`pinned`,T;t[5]!==w||t[6]!==o||t[7]!==n.key?(T=async()=>{try{w?await AR(n.key):await kR(n.key),g(!1),o()}catch{}},t[5]=w,t[6]=o,t[7]=n.key,t[8]=T):T=t[8];let E=T,D;t[9]!==d||t[10]!==l.taskChatIdCopied||t[11]!==n.key?(D=async()=>{let e=await k(n.key);if(g(!1),e){IR(`success`,l.taskChatIdCopied,void 0,{duration:2e3});return}IR(`warning`,d.copyFailed,void 0,{duration:4e3})},t[9]=d,t[10]=l.taskChatIdCopied,t[11]=n.key,t[12]=D):D=t[12];let O=D,A;t[13]===r?A=t[14]:(A=JR(r),t[13]=r,t[14]=A);let j=`/chat/${encodeURIComponent(n.key)}`,M;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=C(`min-w-0 flex-1 rounded-xl py-1 outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,`flex min-w-0 items-center gap-2`),t[15]=M):M=t[15];let N;t[16]===a?N=t[17]:(N=()=>a?.(),t[16]=a,t[17]=N);let P;t[18]!==m||t[19]!==p?(P=(0,$.jsx)(gR,{agentId:p,avatar:m,size:24,className:`size-6 shrink-0 ring-1 ring-edge/60 dark:ring-edge`}),t[18]=m,t[19]=p,t[20]=P):P=t[20];let F;t[21]!==_||t[22]!==b||t[23]!==l.taskSessionAgentCompleted||t[24]!==l.taskSessionAgentFailed||t[25]!==l.taskSessionAgentRunning?(F=_?(0,$.jsxs)(`span`,{className:`pointer-events-none absolute -bottom-0.5 -right-0.5 flex size-2.5 items-center justify-center`,title:l.taskSessionAgentRunning,"aria-label":l.taskSessionAgentRunning,children:[(0,$.jsx)(`span`,{className:`absolute size-full animate-ping rounded-full bg-accent/70`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`relative size-2 rounded-full bg-accent shadow-sm ring-2 ring-surface-panel dark:ring-surface-base`,"aria-hidden":!0})]}):b?.unread?(0,$.jsx)(`span`,{className:C(`pointer-events-none absolute -bottom-0.5 -right-0.5 size-2.5 rounded-full shadow-sm ring-2 ring-surface-panel dark:ring-surface-base`,b.status===`failed`?`bg-red-500`:`bg-emerald-500`),title:b.status===`failed`?l.taskSessionAgentFailed:l.taskSessionAgentCompleted,"aria-label":b.status===`failed`?l.taskSessionAgentFailed:l.taskSessionAgentCompleted}):null,t[21]=_,t[22]=b,t[23]=l.taskSessionAgentCompleted,t[24]=l.taskSessionAgentFailed,t[25]=l.taskSessionAgentRunning,t[26]=F):F=t[26];let I;t[27]!==F||t[28]!==P?(I=(0,$.jsxs)(`span`,{className:`relative shrink-0`,children:[P,F]}),t[27]=F,t[28]=P,t[29]=I):I=t[29];let L;t[30]!==r||t[31]!==n.sourceChannel||t[32]!==i||t[33]!==S?(L=i?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:C(`flex size-4 shrink-0 items-center justify-center`,r?`text-fg-muted`:`text-fg-subtle`),title:n.sourceChannel,children:(0,$.jsx)(zN,{sourceChannel:n.sourceChannel,className:`size-3.5`})}),(0,$.jsx)(`span`,{className:`min-w-0 max-w-[8.5rem] truncate`,children:S})]}):(0,$.jsx)(`span`,{className:`min-w-0 max-w-[10rem] truncate`,children:S}),t[30]=r,t[31]=n.sourceChannel,t[32]=i,t[33]=S,t[34]=L):L=t[34];let R;t[35]!==I||t[36]!==L||t[37]!==j||t[38]!==N||t[39]!==S?(R=(0,$.jsxs)(y,{to:j,className:M,title:S,onClick:N,children:[I,L]}),t[35]=I,t[36]=L,t[37]=j,t[38]=N,t[39]=S,t[40]=R):R=t[40];let z=h&&`opacity-100`,B;t[41]===z?B=t[42]:(B=C(`relative z-10 flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted transition-opacity`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,z,`hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),t[41]=z,t[42]=B);let V;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(Du,{className:`size-4`,strokeWidth:2,"aria-hidden":!0}),t[43]=V):V=t[43];let H;t[44]!==h||t[45]!==l.taskSessionMenuAria||t[46]!==B?(H=(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:B,"aria-label":l.taskSessionMenuAria,title:l.taskSessionMenuAria,"aria-expanded":h,children:V})}),t[44]=h,t[45]=l.taskSessionMenuAria,t[46]=B,t[47]=H):H=t[47];let U;t[48]!==s||t[49]!==n.key?(U=()=>{g(!1),s(n.key)},t[48]=s,t[49]=n.key,t[50]=U):U=t[50];let W;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(hy,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[51]=W):W=t[51];let G;t[52]!==l.taskRename||t[53]!==U?(G=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:U,children:[W,l.taskRename]}),t[52]=l.taskRename,t[53]=U,t[54]=G):G=t[54];let K;t[55]===E?K=t[56]:(K=()=>void E(),t[55]=E,t[56]=K);let ee;t[57]===w?ee=t[58]:(ee=w?(0,$.jsx)(_y,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(gy,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[57]=w,t[58]=ee);let q=w?u.unpin:u.pin,te;t[59]!==K||t[60]!==ee||t[61]!==q?(te=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:K,children:[ee,q]}),t[59]=K,t[60]=ee,t[61]=q,t[62]=te):te=t[62];let ne;t[63]===O?ne=t[64]:(ne=()=>void O(),t[63]=O,t[64]=ne);let re;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,$.jsx)(Ds,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[65]=re):re=t[65];let ie;t[66]!==l.taskCopyChatId||t[67]!==ne?(ie=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:ne,children:[re,l.taskCopyChatId]}),t[66]=l.taskCopyChatId,t[67]=ne,t[68]=ie):ie=t[68];let ae;t[69]!==c||t[70]!==n.key?(ae=()=>{g(!1),c(n.key)},t[69]=c,t[70]=n.key,t[71]=ae):ae=t[71];let oe;t[72]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,$.jsx)(pS,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[72]=oe):oe=t[72];let se;t[73]!==l.taskDeleteTask||t[74]!==ae?(se=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-red-600 transition-colors hover:bg-surface-hover dark:text-red-400`,onClick:ae,children:[oe,l.taskDeleteTask]}),t[73]=l.taskDeleteTask,t[74]=ae,t[75]=se):se=t[75];let J;t[76]!==G||t[77]!==te||t[78]!==ie||t[79]!==se?(J=(0,$.jsx)(tE,{children:(0,$.jsxs)(nE,{className:`z-50 w-[9.25rem] rounded-lg border border-edge bg-surface-panel p-1 shadow-elevated dark:border-edge`,side:`bottom`,align:`end`,sideOffset:4,collisionPadding:12,onCloseAutoFocus:iz,children:[G,te,ie,se]})}),t[76]=G,t[77]=te,t[78]=ie,t[79]=se,t[80]=J):J=t[80];let ce;t[81]!==h||t[82]!==H||t[83]!==J?(ce=(0,$.jsxs)(QT,{open:h,onOpenChange:g,children:[H,J]}),t[81]=h,t[82]=H,t[83]=J,t[84]=ce):ce=t[84];let le;return t[85]!==R||t[86]!==ce||t[87]!==A?(le=(0,$.jsxs)(`div`,{className:A,children:[R,ce]}),t[85]=R,t[86]=ce,t[87]=A,t[88]=le):le=t[88],le});function QR(e){let t=(0,Q.c)(70),{project:n,onNavigate:r,onPinToggle:i,onRequestRename:a,onArchive:o,onRequestRemove:s,sb:c}=e,[l,u]=(0,Z.useState)(!1),d;t[0]!==n.effectiveWorkspaceRoot||t[1]!==n.workspaceRoot?(d=n.effectiveWorkspaceRoot?.trim()||n.workspaceRoot?.trim()||``,t[0]=n.effectiveWorkspaceRoot,t[1]=n.workspaceRoot,t[2]=d):d=t[2];let f=d,p=!!(f&&window.electronAPI?.shell?.openPath),m=!!n.pinnedAt,h;t[3]!==c.projectOpenInExplorerFailed||t[4]!==c.projectOpenInExplorerUnavailable||t[5]!==f?(h=async()=>{if(!f||!window.electronAPI?.shell?.openPath){IR(`warning`,c.projectOpenInExplorerUnavailable,void 0,{duration:3500}),u(!1);return}let e=await window.electronAPI.shell.openPath(f);u(!1),e.ok===!1&&IR(`warning`,e.error||c.projectOpenInExplorerFailed,void 0,{duration:4e3})},t[3]=c.projectOpenInExplorerFailed,t[4]=c.projectOpenInExplorerUnavailable,t[5]=f,t[6]=h):h=t[6];let g=h,_=l&&`opacity-100`,v;t[7]===_?v=t[8]:(v=C(`relative z-10 flex size-7 shrink-0 items-center justify-center rounded-lg text-fg-subtle transition-opacity`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,_,`hover:bg-surface-hover hover:text-fg-muted`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),t[7]=_,t[8]=v);let b;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(Du,{className:`size-3.5`,strokeWidth:2,"aria-hidden":!0}),t[9]=b):b=t[9];let x;t[10]!==l||t[11]!==c.projectMenuAria||t[12]!==v?(x=(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:v,"aria-label":c.projectMenuAria,title:c.projectMenuAria,"aria-expanded":l,children:b})}),t[10]=l,t[11]=c.projectMenuAria,t[12]=v,t[13]=x):x=t[13];let S=`/projects/${encodeURIComponent(n.id)}`,w;t[14]===r?w=t[15]:(w=()=>{u(!1),r?.()},t[14]=r,t[15]=w);let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(Iu,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[16]=T):T=t[16];let E;t[17]!==c.projectOpen||t[18]!==S||t[19]!==w?(E=(0,$.jsxs)(y,{to:S,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:w,children:[T,c.projectOpen]}),t[17]=c.projectOpen,t[18]=S,t[19]=w,t[20]=E):E=t[20];let D;t[21]!==i||t[22]!==n?(D=()=>{u(!1),i(n)},t[21]=i,t[22]=n,t[23]=D):D=t[23];let O;t[24]===m?O=t[25]:(O=m?(0,$.jsx)(_y,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(gy,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[24]=m,t[25]=O);let k=m?c.projectUnpin:c.projectPin,A;t[26]!==D||t[27]!==O||t[28]!==k?(A=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:D,children:[O,k]}),t[26]=D,t[27]=O,t[28]=k,t[29]=A):A=t[29];let j;t[30]===g?j=t[31]:(j=()=>void g(),t[30]=g,t[31]=j);let M=!p,N=p?void 0:c.projectOpenInExplorerUnavailable,P;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,$.jsx)(zf,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[32]=P):P=t[32];let F;t[33]!==c.projectOpenInExplorer||t[34]!==j||t[35]!==M||t[36]!==N?(F=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover disabled:cursor-not-allowed disabled:text-fg-subtle disabled:hover:bg-transparent`,onClick:j,disabled:M,title:N,children:[P,c.projectOpenInExplorer]}),t[33]=c.projectOpenInExplorer,t[34]=j,t[35]=M,t[36]=N,t[37]=F):F=t[37];let I;t[38]!==a||t[39]!==n?(I=()=>{u(!1),a(n)},t[38]=a,t[39]=n,t[40]=I):I=t[40];let L;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,$.jsx)(hy,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[41]=L):L=t[41];let R;t[42]!==c.projectRename||t[43]!==I?(R=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:I,children:[L,c.projectRename]}),t[42]=c.projectRename,t[43]=I,t[44]=R):R=t[44];let z;t[45]!==o||t[46]!==n?(z=()=>{u(!1),o(n)},t[45]=o,t[46]=n,t[47]=z):z=t[47];let B;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(qt,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[48]=B):B=t[48];let V;t[49]!==c.projectArchive||t[50]!==z?(V=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:z,children:[B,c.projectArchive]}),t[49]=c.projectArchive,t[50]=z,t[51]=V):V=t[51];let H;t[52]!==s||t[53]!==n?(H=()=>{u(!1),s(n)},t[52]=s,t[53]=n,t[54]=H):H=t[54];let U;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(pS,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[55]=U):U=t[55];let W;t[56]!==c.projectRemove||t[57]!==H?(W=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-red-600 transition-colors hover:bg-surface-hover dark:text-red-400`,onClick:H,children:[U,c.projectRemove]}),t[56]=c.projectRemove,t[57]=H,t[58]=W):W=t[58];let G;t[59]!==E||t[60]!==A||t[61]!==F||t[62]!==R||t[63]!==V||t[64]!==W?(G=(0,$.jsx)(tE,{children:(0,$.jsxs)(nE,{className:`z-50 w-[12rem] rounded-lg border border-edge bg-surface-panel p-1 shadow-elevated dark:border-edge`,side:`bottom`,align:`end`,sideOffset:4,collisionPadding:12,onCloseAutoFocus:$R,children:[E,A,F,R,V,W]})}),t[59]=E,t[60]=A,t[61]=F,t[62]=R,t[63]=V,t[64]=W,t[65]=G):G=t[65];let K;return t[66]!==l||t[67]!==G||t[68]!==x?(K=(0,$.jsxs)(QT,{open:l,onOpenChange:u,children:[x,G]}),t[66]=l,t[67]=G,t[68]=x,t[69]=K):K=t[69],K}function $R(e){return e.preventDefault()}function ez(e){let t=(0,Q.c)(64),{group:n,isExpanded:r,isCollapsed:i,activeSessionKey:a,onToggleExpanded:o,onToggleCollapsed:s,onCreateProjectChat:c,onToggleProjectPin:l,onRequestProjectRename:u,onArchiveProject:d,onRequestProjectRemove:f,onNavigate:p,mutate:m,onRequestRename:h,onRequestDelete:g,sb:_,sess:v,clipboard:y,defaultUnnamedTitle:b,defaultAgentId:x,agentItems:S,excludedSessionKeys:w}=e,T;t[0]!==w||t[1]!==n.sessions?(T=w?n.sessions.filter(e=>!w.has(e.key)):n.sessions,t[0]=w,t[1]=n.sessions,t[2]=T):T=t[2];let E=T,D;t[3]!==r||t[4]!==E?(D=r?E:E.slice(0,zR),t[3]=r,t[4]=E,t[5]=D):D=t[5];let O=D,k=E.length>zR,A=n.sessionHasMore||k,j=r&&!n.sessionHasMore&&k,M;t[6]===a?M=t[7]:(M=e=>e.key===a,t[6]=a,t[7]=M);let N=E.some(M),P=n.project.name,F=N?`bg-surface-active text-fg`:`text-fg-muted`,I;t[8]===F?I=t[9]:(I=C(`group flex h-7 min-w-0 items-center gap-1.5 rounded-xl px-2 text-sm font-medium leading-5`,F),t[8]=F,t[9]=I);let L;t[10]!==n.project.id||t[11]!==s?(L=()=>s(n.project.id),t[10]=n.project.id,t[11]=s,t[12]=L):L=t[12];let R=!i,z;t[13]===n.project.name?z=t[14]:(z=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n.project.name}),t[13]=n.project.name,t[14]=z);let B;t[15]!==n.project.name||t[16]!==L||t[17]!==R||t[18]!==z?(B=(0,$.jsx)(`button`,{type:`button`,className:`flex h-7 min-w-0 flex-1 items-center gap-1 text-left hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,onClick:L,title:n.project.name,"aria-expanded":R,children:z}),t[15]=n.project.name,t[16]=L,t[17]=R,t[18]=z,t[19]=B):B=t[19];let V;t[20]!==n.project||t[21]!==d||t[22]!==p||t[23]!==f||t[24]!==u||t[25]!==l||t[26]!==_?(V=(0,$.jsx)(QR,{project:n.project,onNavigate:p,onPinToggle:l,onRequestRename:u,onArchive:d,onRequestRemove:f,sb:_}),t[20]=n.project,t[21]=d,t[22]=p,t[23]=f,t[24]=u,t[25]=l,t[26]=_,t[27]=V):V=t[27];let H;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(H=C(`flex size-7 shrink-0 items-center justify-center rounded-lg text-fg-subtle transition-opacity hover:bg-surface-hover hover:text-fg-muted`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),t[28]=H):H=t[28];let U;t[29]!==n.project||t[30]!==c?(U=()=>c(n.project),t[29]=n.project,t[30]=c,t[31]=U):U=t[31];let W;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(xy,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),t[32]=W):W=t[32];let G;t[33]!==_.projectNewChat||t[34]!==U?(G=(0,$.jsx)(`button`,{type:`button`,className:H,onClick:U,title:_.projectNewChat,"aria-label":_.projectNewChat,children:W}),t[33]=_.projectNewChat,t[34]=U,t[35]=G):G=t[35];let K;t[36]!==B||t[37]!==V||t[38]!==G||t[39]!==I?(K=(0,$.jsxs)(`div`,{className:I,children:[B,V,G]}),t[36]=B,t[37]=V,t[38]=G,t[39]=I,t[40]=K):K=t[40];let ee;t[41]!==a||t[42]!==S||t[43]!==A||t[44]!==y||t[45]!==x||t[46]!==b||t[47]!==n.project.id||t[48]!==n.sessionLoading||t[49]!==i||t[50]!==m||t[51]!==p||t[52]!==g||t[53]!==h||t[54]!==o||t[55]!==_||t[56]!==v||t[57]!==j||t[58]!==O?(ee=i?null:(0,$.jsxs)(`div`,{className:`ml-3 flex flex-col gap-0.5`,children:[O.map(e=>{let t=_R(e,x);return(0,$.jsx)(ZR,{session:e,isActive:a===e.key,showSourceChannelIcon:!qR(e),onNavigate:p,mutate:m,onRequestRename:h,onRequestDelete:g,sb:_,sess:v,clipboard:y,defaultUnnamedTitle:b,sessionAgentId:t,sessionAgentAvatar:vR(t,S)},e.key)}),A?(0,$.jsxs)(`button`,{type:`button`,className:`ml-1 flex w-fit items-center gap-1 rounded-lg px-2 py-1 text-xs font-medium text-fg-subtle transition-colors hover:bg-surface-hover hover:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,onClick:()=>o(n.project.id),disabled:n.sessionLoading,"aria-busy":n.sessionLoading||void 0,children:[n.sessionLoading?(0,$.jsx)(Zg,{className:`size-3.5 animate-spin`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(fo,{className:C(`size-3.5 transition-transform duration-150 ease-out`,j&&`rotate-180`),strokeWidth:1.75,"aria-hidden":!0}),j?_.projectShowLess:_.projectShowMore]}):null]}),t[41]=a,t[42]=S,t[43]=A,t[44]=y,t[45]=x,t[46]=b,t[47]=n.project.id,t[48]=n.sessionLoading,t[49]=i,t[50]=m,t[51]=p,t[52]=g,t[53]=h,t[54]=o,t[55]=_,t[56]=v,t[57]=j,t[58]=O,t[59]=ee):ee=t[59];let q;return t[60]!==n.project.name||t[61]!==K||t[62]!==ee?(q=(0,$.jsxs)(`section`,{className:`flex flex-col gap-0.5`,"aria-label":P,children:[K,ee]}),t[60]=n.project.name,t[61]=K,t[62]=ee,t[63]=q):q=t[63],q}function tz(e){let t=(0,Q.c)(60),{sessions:n,hasMore:r,loadingMore:i,isCollapsed:a,onToggleCollapsed:o,onCreateChat:s,onLoadMore:c,activeSessionKey:l,onNavigate:u,mutate:d,onRequestRename:f,onRequestDelete:p,sb:m,sess:h,clipboard:g,defaultUnnamedTitle:_,defaultAgentId:v,agentItems:y,excludedSessionKeys:b}=e,x;t[0]!==b||t[1]!==n?(x=b?n.filter(e=>!b.has(e.key)):n,t[0]=b,t[1]=n,t[2]=x):x=t[2];let S=x;if(S.length===0&&!r)return null;let w=m.inboxHeading,T=!a,E=m.inboxHeading,D=a&&`-rotate-90`,O;t[3]===D?O=t[4]:(O=C(`size-3.5 transition-transform duration-150 ease-out`,D),t[3]=D,t[4]=O);let k;t[5]===O?k=t[6]:(k=(0,$.jsx)(fo,{className:O,strokeWidth:1.75,"aria-hidden":!0}),t[5]=O,t[6]=k);let A;t[7]!==o||t[8]!==m.inboxHeading||t[9]!==T||t[10]!==k?(A=(0,$.jsxs)(`button`,{type:`button`,className:`flex min-w-0 flex-1 items-center gap-1 px-2 text-[11px] font-medium uppercase tracking-wide text-fg-subtle transition-colors hover:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,onClick:o,"aria-expanded":T,children:[E,k]}),t[7]=o,t[8]=m.inboxHeading,t[9]=T,t[10]=k,t[11]=A):A=t[11];let j;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(j=C(`flex size-7 shrink-0 items-center justify-center rounded-lg text-fg-subtle transition-opacity hover:bg-surface-hover hover:text-fg-muted`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),t[12]=j):j=t[12];let M;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(xy,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),t[13]=M):M=t[13];let N;t[14]!==_||t[15]!==s?(N=(0,$.jsx)(`button`,{type:`button`,className:j,onClick:s,title:_,"aria-label":_,children:M}),t[14]=_,t[15]=s,t[16]=N):N=t[16];let P;t[17]!==N||t[18]!==A?(P=(0,$.jsxs)(`div`,{className:`group flex min-w-0 items-center pb-1`,children:[A,N]}),t[17]=N,t[18]=A,t[19]=P):P=t[19];let F=a&&`hidden`,I;t[20]===F?I=t[21]:(I=C(`ml-3 flex flex-col gap-0.5`,F),t[20]=F,t[21]=I);let L;if(t[22]!==l||t[23]!==y||t[24]!==g||t[25]!==v||t[26]!==_||t[27]!==d||t[28]!==u||t[29]!==p||t[30]!==f||t[31]!==m||t[32]!==h||t[33]!==S){let e;t[35]!==l||t[36]!==y||t[37]!==g||t[38]!==v||t[39]!==_||t[40]!==d||t[41]!==u||t[42]!==p||t[43]!==f||t[44]!==m||t[45]!==h?(e=e=>{let t=_R(e,v);return(0,$.jsx)(ZR,{session:e,isActive:l===e.key,showSourceChannelIcon:!qR(e),onNavigate:u,mutate:d,onRequestRename:f,onRequestDelete:p,sb:m,sess:h,clipboard:g,defaultUnnamedTitle:_,sessionAgentId:t,sessionAgentAvatar:vR(t,y)},e.key)},t[35]=l,t[36]=y,t[37]=g,t[38]=v,t[39]=_,t[40]=d,t[41]=u,t[42]=p,t[43]=f,t[44]=m,t[45]=h,t[46]=e):e=t[46],L=S.map(e),t[22]=l,t[23]=y,t[24]=g,t[25]=v,t[26]=_,t[27]=d,t[28]=u,t[29]=p,t[30]=f,t[31]=m,t[32]=h,t[33]=S,t[34]=L}else L=t[34];let R;t[47]!==r||t[48]!==i||t[49]!==c||t[50]!==m.projectShowMore?(R=r?(0,$.jsxs)(`button`,{type:`button`,className:`ml-1 flex w-fit items-center gap-1 rounded-lg px-2 py-1 text-xs font-medium text-fg-subtle transition-colors hover:bg-surface-hover hover:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,onClick:c,disabled:i,"aria-busy":i||void 0,children:[i?(0,$.jsx)(Zg,{className:`size-3.5 animate-spin`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(fo,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),m.projectShowMore]}):null,t[47]=r,t[48]=i,t[49]=c,t[50]=m.projectShowMore,t[51]=R):R=t[51];let z;t[52]!==I||t[53]!==L||t[54]!==R?(z=(0,$.jsxs)(`div`,{className:I,children:[L,R]}),t[52]=I,t[53]=L,t[54]=R,t[55]=z):z=t[55];let B;return t[56]!==m.inboxHeading||t[57]!==P||t[58]!==z?(B=(0,$.jsxs)(`section`,{className:`flex flex-col gap-0.5`,"aria-label":w,children:[P,z]}),t[56]=m.inboxHeading,t[57]=P,t[58]=z,t[59]=B):B=t[59],B}function nz(e){let t=(0,Q.c)(33),{sessions:n,activeSessionKey:r,onNavigate:i,mutate:a,onRequestRename:o,onRequestDelete:s,sb:c,sess:l,clipboard:u,defaultUnnamedTitle:d,defaultAgentId:f,agentItems:p}=e;if(n.length===0)return null;let m=l.pinnedSessions,h;t[0]===l.pinnedSessions?h=t[1]:(h=(0,$.jsx)(`h2`,{className:`px-2 pb-1 text-[11px] font-medium uppercase tracking-wide text-fg-subtle`,children:l.pinnedSessions}),t[0]=l.pinnedSessions,t[1]=h);let g;if(t[2]!==r||t[3]!==p||t[4]!==u||t[5]!==f||t[6]!==d||t[7]!==a||t[8]!==i||t[9]!==s||t[10]!==o||t[11]!==c||t[12]!==l||t[13]!==n){let e;t[15]!==r||t[16]!==p||t[17]!==u||t[18]!==f||t[19]!==d||t[20]!==a||t[21]!==i||t[22]!==s||t[23]!==o||t[24]!==c||t[25]!==l?(e=e=>{let t=_R(e,f);return(0,$.jsx)(ZR,{session:e,isActive:r===e.key,showSourceChannelIcon:!qR(e),onNavigate:i,mutate:a,onRequestRename:o,onRequestDelete:s,sb:c,sess:l,clipboard:u,defaultUnnamedTitle:d,sessionAgentId:t,sessionAgentAvatar:vR(t,p)},e.key)},t[15]=r,t[16]=p,t[17]=u,t[18]=f,t[19]=d,t[20]=a,t[21]=i,t[22]=s,t[23]=o,t[24]=c,t[25]=l,t[26]=e):e=t[26],g=n.map(e),t[2]=r,t[3]=p,t[4]=u,t[5]=f,t[6]=d,t[7]=a,t[8]=i,t[9]=s,t[10]=o,t[11]=c,t[12]=l,t[13]=n,t[14]=g}else g=t[14];let _;t[27]===g?_=t[28]:(_=(0,$.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:g}),t[27]=g,t[28]=_);let v;return t[29]!==l.pinnedSessions||t[30]!==h||t[31]!==_?(v=(0,$.jsxs)(`section`,{className:`mb-3 flex flex-col gap-0.5`,"aria-label":m,children:[h,_]}),t[29]=l.pinnedSessions,t[30]=h,t[31]=_,t[32]=v):v=t[32],v}function rz({onNavigate:e}){let t=j(I(e=>e.language)),n=t.sidebar,r=t.sessions,i=F(e=>e.token),a=F(e=>e.openTokenDialog),{data:o,mutate:s}=xe(i?[`gateway-chat-agents`,i]:null,HN,{revalidateOnFocus:!1}),c=o?.defaultId??`main`,l=o?.items??[];(0,Z.useEffect)(()=>{let e=()=>void s();return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},[s]);let{pathname:d}=u(),f=m(),p=HR(d),h=(0,Z.useMemo)(()=>Date.now()-BR*24*60*60*1e3,[]),[g,_]=(0,Z.useState)(null),[v,y]=(0,Z.useState)(``),[b,x]=(0,Z.useState)(null),[S,w]=(0,Z.useState)(null),[T,E]=(0,Z.useState)(``),[D,O]=(0,Z.useState)(null),[k,A]=(0,Z.useState)(()=>p),[M,N]=(0,Z.useState)(!1),[P,L]=(0,Z.useState)(!1),[R,z]=(0,Z.useState)(()=>new Set),[B,V]=(0,Z.useState)(()=>new Set),[H,U]=(0,Z.useState)({}),[W,G]=(0,Z.useState)(()=>new Set),[K,ee]=(0,Z.useState)([]),[q,te]=(0,Z.useState)(null),[ne,re]=(0,Z.useState)(!1),{data:ie,size:ae,setSize:oe,isValidating:se,mutate:J}=we((e,t)=>!i||t&&!t.projects.hasMore?null:[`sidebar-chat-list`,i,k??``,e],async([,,e,t])=>xR({projectLimit:RR,projectOffset:t*RR,sessionPreviewLimit:zR,inboxLimit:t===0?LR:1,inboxOffset:0,staleDays:BR,includeSessionKey:e||void 0}),{keepPreviousData:!0,revalidateOnFocus:!1}),ce=(0,Z.useMemo)(()=>{let e=ie??[],t=[],n=new Set;for(let r of e)for(let e of r.projects.items){if(n.has(e.project.id))continue;n.add(e.project.id);let r=H[e.project.id],i=r?.sessions??e.sessions;t.push({project:e.project,sessions:i,sessionTotal:r?.sessionTotal??e.sessionTotal,sessionHasMore:r?.hasMore??e.sessionHasMore,sessionLoading:W.has(e.project.id),latestAt:Math.max(GR(e.project),...i.map(WR))})}return t.sort((e,t)=>{let n=KR(t.project)-KR(e.project);return n===0?t.latestAt-e.latestAt:n}),t},[ie,W,H]),le=ie?.[0]?.inbox,ue=(0,Z.useMemo)(()=>{let e=[],t=new Set;for(let n of[...le?.items??[],...K])t.has(n.key)||(t.add(n.key),e.push(n));return e.sort((e,t)=>WR(t)-WR(e)),e},[le?.items,K]),de=q??le?.hasMore??!1,fe=(0,Z.useMemo)(()=>{let e=[],t=new Set;for(let n of ce)for(let r of n.sessions)t.has(r.key)||(t.add(r.key),e.push(r));for(let n of ue)t.has(n.key)||(t.add(n.key),e.push(n));return e},[ue,ce]),pe=ce.length>0||ue.length>0,me=(0,Z.useMemo)(()=>fe.filter(e=>e.status===`pinned`).sort((e,t)=>WR(t)-WR(e)),[fe]),he=(0,Z.useMemo)(()=>new Set(me.map(e=>e.key)),[me]),ge=!!(ie&&ae>ie.length),_e=(ie?.[ie.length-1])?.projects.hasMore??!1,ve=!!(i&&!ie&&se),ye=(0,Z.useCallback)(()=>{U({}),ee([]),te(null),J()},[J]),be=(0,Z.useCallback)(e=>{let t=e.currentTarget;if(!_e||ge)return;let{scrollTop:n,scrollHeight:r,clientHeight:i}=t;r-n-i>100||oe(e=>e+1)},[_e,ge,oe]);(0,Z.useEffect)(()=>{if(!i)return;let e=()=>{ye()},t=e=>{if(!e.detail?.key){ye();return}ye()};return window.addEventListener(`session-updated`,t),window.addEventListener(`session-created`,e),()=>{window.removeEventListener(`session-updated`,t),window.removeEventListener(`session-created`,e)}},[i,ye]),(0,Z.useEffect)(()=>{!i||!p||!ie||fe.some(e=>e.key===p)||A(e=>e===p?e:p)},[p,ie,fe,i]);let Se=(0,Z.useCallback)(e=>{let t=fe.find(t=>t.key===e);_(e),y(t?.name?.trim()??``)},[fe]),Ce=async()=>{if(!g)return;let e=v.trim();if(e)try{await ER(g,e),_(null),ye()}catch{}},Te=async e=>{try{await TR(e),p===e&&f(`/chat/new`),ye()}catch{}},Ee=(0,Z.useCallback)(e=>{w(e.id),E(e.name.trim())},[]),De=async()=>{if(!S)return;let e=T.trim();if(e)try{await VL(S,e),w(null),ye(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:S}}))}catch{}},Oe=(0,Z.useCallback)(async e=>{try{await HL(e.id),d===`/projects/${encodeURIComponent(e.id)}`&&f(`/projects`),ye(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e.id}}))}catch{}},[f,d,ye]),ke=(0,Z.useCallback)(async e=>{try{e.pinnedAt?await GL(e.id):await WL(e.id),ye(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e.id}}))}catch{}},[ye]),Ae=async e=>{try{await KL(e),d===`/projects/${encodeURIComponent(e)}`&&f(`/projects`),ye(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e}}))}catch{}},je=(0,Z.useCallback)(e=>{let t=ce.find(t=>t.project.id===e);if(t){if(B.has(e)&&!t.sessionHasMore){V(t=>{let n=new Set(t);return n.delete(e),n});return}V(t=>{let n=new Set(t);return n.add(e),n}),!(!t.sessionHasMore||W.has(e))&&(G(t=>new Set(t).add(e)),(async()=>{try{let n=await bR({projectId:e,limit:LR,offset:t.sessions.length,updatedAfter:h,includePinned:!0,includeSessionKey:p});U(r=>{let i=r[e]?.sessions??t.sessions,a=new Set(i.map(e=>e.key)),o=[...i];for(let e of n.items)a.has(e.key)||(a.add(e.key),o.push(e));return o.sort((e,t)=>WR(t)-WR(e)),{...r,[e]:{sessions:o,sessionTotal:n.total,hasMore:n.hasMore}}})}finally{G(t=>{let n=new Set(t);return n.delete(e),n})}})())}},[p,B,W,ce,h]),Me=(0,Z.useCallback)(e=>{z(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),Ne=(0,Z.useCallback)(()=>{!de||ne||(re(!0),(async()=>{try{let e=await bR({unassigned:!0,limit:LR,offset:ue.length,updatedAfter:h,includePinned:!0,includeSessionKey:p});ee(t=>{let n=new Set([...le?.items??[],...t].map(e=>e.key)),r=[...t];for(let t of e.items)n.has(t.key)||(n.add(t.key),r.push(t));return r}),te(e.hasMore)}finally{re(!1)}})())},[p,le?.items,de,ue.length,ne,h]),Pe=(0,Z.useCallback)(async t=>{try{let n=await QL(t.id,t.defaultAgentId??c);ye(),f(`/chat/${encodeURIComponent(n.key)}`),e?.()}catch{}},[c,f,e,ye]),Y=g?fe.find(e=>e.key===g):void 0,Fe=S?ce.find(e=>e.project.id===S)?.project:void 0,Ie=D?ce.find(e=>e.project.id===D)?.project:void 0;return i?(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{className:C(`app-sidebar-nav-scroll min-h-0 flex-1 overflow-y-auto overscroll-y-contain`,`pb-2`),onScroll:be,children:[ve?(0,$.jsx)(XR,{}):pe?(0,$.jsxs)(`div`,{className:`flex flex-col px-4 pt-4`,children:[(0,$.jsx)(nz,{sessions:me,activeSessionKey:p,onNavigate:e,mutate:ye,onRequestRename:Se,onRequestDelete:x,sb:n,sess:r,clipboard:t.clipboard,defaultUnnamedTitle:t.chat.newSession,defaultAgentId:c,agentItems:l}),ce.length>0?(0,$.jsxs)(`div`,{className:`pb-1`,children:[(0,$.jsx)(`div`,{className:`px-2 pb-1`,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex items-center gap-1 text-[11px] font-medium uppercase tracking-wide text-fg-subtle transition-colors hover:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,onClick:()=>N(e=>!e),"aria-expanded":!M,children:[n.projectsHeading,(0,$.jsx)(fo,{className:C(`size-3.5 transition-transform duration-150 ease-out`,M&&`-rotate-90`),strokeWidth:1.75,"aria-hidden":!0})]})}),M?null:ce.map(i=>(0,$.jsx)(ez,{group:i,isExpanded:B.has(i.project.id),isCollapsed:R.has(i.project.id),activeSessionKey:p,onToggleExpanded:je,onToggleCollapsed:Me,onCreateProjectChat:e=>void Pe(e),onToggleProjectPin:e=>void ke(e),onRequestProjectRename:Ee,onArchiveProject:e=>void Oe(e),onRequestProjectRemove:e=>O(e.id),onNavigate:e,mutate:ye,onRequestRename:Se,onRequestDelete:x,sb:n,sess:r,clipboard:t.clipboard,defaultUnnamedTitle:t.chat.newSession,defaultAgentId:c,agentItems:l,excludedSessionKeys:he},i.project.id))]}):null,(0,$.jsx)(tz,{sessions:ue,hasMore:de,loadingMore:ne,isCollapsed:P,onToggleCollapsed:()=>L(e=>!e),onCreateChat:()=>{f(`/chat/new`),e?.()},onLoadMore:Ne,activeSessionKey:p,onNavigate:e,mutate:ye,onRequestRename:Se,onRequestDelete:x,sb:n,sess:r,clipboard:t.clipboard,defaultUnnamedTitle:t.chat.newSession,defaultAgentId:c,agentItems:l,excludedSessionKeys:he})]}):(0,$.jsx)(`div`,{className:`px-4 pb-2`,children:(0,$.jsx)(`p`,{className:`rounded-xl bg-surface-panel p-3 text-xs leading-relaxed text-fg-muted`,children:n.taskListEmpty})}),ge?(0,$.jsx)(`div`,{className:`flex justify-center py-2`,"aria-busy":!0,children:(0,$.jsx)(Zg,{className:`size-4 animate-spin text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0})}):null]}),(0,$.jsx)(LD,{open:g!==null,onOpenChange:e=>!e&&_(null),children:(0,$.jsxs)(UD,{children:[(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(YD,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] w-[min(100%-2rem,24rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:n.taskRenameTitle}),(0,$.jsx)(`label`,{className:`mt-3 block text-xs font-medium text-fg-subtle`,htmlFor:`sidebar-rename-input`,children:n.taskRenamePlaceholder}),(0,$.jsx)(`input`,{id:`sidebar-rename-input`,type:`text`,value:v,onChange:e=>y(e.target.value),className:C(`mt-1.5 w-full rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg`,tT,`dark:border-edge`),placeholder:Y?VR(Y,t.chat.newSession):``,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),Ce())}}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,onClick:()=>_(null),children:n.taskRenameCancel}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,onClick:()=>void Ce(),disabled:!v.trim(),children:n.taskRenameSave})]})]})]})}),(0,$.jsx)(LD,{open:b!==null,onOpenChange:e=>!e&&x(null),children:(0,$.jsxs)(UD,{children:[(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(YD,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] w-[min(100%-2rem,24rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:r.deleteSessionTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:b?UR(r.deleteSessionMessage,{name:fe.find(e=>e.key===b)?.name?.trim()||t.chat.newSession}):``}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,onClick:()=>x(null),children:r.cancel}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`bg-red-600 hover:bg-red-700`,onClick:()=>{b&&Te(b),x(null)},children:r.delete})]})]})]})}),(0,$.jsx)(LD,{open:S!==null,onOpenChange:e=>!e&&w(null),children:(0,$.jsxs)(UD,{children:[(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(YD,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] w-[min(100%-2rem,24rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:n.projectRenameTitle}),(0,$.jsx)(`label`,{className:`mt-3 block text-xs font-medium text-fg-subtle`,htmlFor:`sidebar-project-rename-input`,children:n.projectRenamePlaceholder}),(0,$.jsx)(`input`,{id:`sidebar-project-rename-input`,type:`text`,value:T,onChange:e=>E(e.target.value),className:C(`mt-1.5 w-full rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg`,tT,`dark:border-edge`),placeholder:Fe?.name??``,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),De())}}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,onClick:()=>w(null),children:n.taskRenameCancel}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,onClick:()=>void De(),disabled:!T.trim(),children:n.taskRenameSave})]})]})]})}),(0,$.jsx)(LD,{open:D!==null,onOpenChange:e=>!e&&O(null),children:(0,$.jsxs)(UD,{children:[(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(YD,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] w-[min(100%-2rem,26rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:n.projectRemoveTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-fg-muted`,children:Ie?UR(n.projectRemoveMessage,{name:Ie.name}):``}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,onClick:()=>O(null),children:r.cancel}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`bg-red-600 hover:bg-red-700`,onClick:()=>{D&&Ae(D),O(null)},children:n.projectRemove})]})]})]})})]}):(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:(0,$.jsx)(`div`,{className:`flex flex-col gap-1.5 px-4 pt-4`,children:(0,$.jsxs)(`div`,{className:`rounded-xl bg-surface-panel p-3`,children:[(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-muted`,children:n.taskListNeedToken}),(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,className:`mt-3 h-8 w-full text-xs font-medium`,onClick:()=>{a(),e?.()},children:n.taskListAddToken})]})})})}function iz(e){return e.preventDefault()}var az=42,oz=`xopc-web-sidebar-visible-app-count`;function sz(e){return Math.min(4,Math.max(2,e))}function cz(){try{let e=Number.parseInt(globalThis.localStorage?.getItem(oz)??``,10);return Number.isFinite(e)?sz(e):bN}catch{return bN}}function lz({onNavigate:e,collapsed:t=!1}){let n=j(I(e=>e.language)),[r,i]=(0,Z.useState)(cz),a=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{try{globalThis.localStorage?.setItem(oz,String(r))}catch{}},[r]);function o(e){e.preventDefault(),a.current={clientY:e.clientY,visibleCount:r},e.currentTarget.setPointerCapture(e.pointerId)}function s(e){let t=a.current;if(!t)return;let n=Math.round((e.clientY-t.clientY)/az);i(sz(t.visibleCount+n))}function c(e){a.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}function l(e){e.key===`ArrowDown`||e.key===`ArrowRight`?(e.preventDefault(),i(e=>sz(e+1))):e.key===`ArrowUp`||e.key===`ArrowLeft`?(e.preventDefault(),i(e=>sz(e-1))):e.key===`Home`?(e.preventDefault(),i(2)):e.key===`End`&&(e.preventDefault(),i(4))}return(0,$.jsxs)(`div`,{className:`app-sidebar-content flex min-h-0 flex-1 flex-col`,children:[(0,$.jsx)(`nav`,{className:C(`shrink-0 pt-4`,t?`px-1.5`:`px-4`),"aria-label":`Main`,children:(0,$.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[t?null:(0,$.jsxs)(y,{to:`/chat/new`,state:{forceNewChat:!0},className:C(`flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left text-sm font-medium leading-5 transition-colors duration-200 ease-out`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,`bg-surface-panel text-fg hover:bg-surface-hover`),title:n.sidebar.newTask,onClick:()=>e?.(),children:[(0,$.jsx)(xy,{className:`size-4 shrink-0 text-accent-fg`,strokeWidth:2,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:n.sidebar.newTask})]}),(0,$.jsx)(jN,{collapsed:t,onNavigate:e,visibleLimit:t?bN:r})]})}),t?null:(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`horizontal`,"aria-label":n.sidebar.resizeApps,"aria-valuemin":2,"aria-valuemax":4,"aria-valuenow":r,tabIndex:0,className:`group flex h-3 shrink-0 touch-none cursor-row-resize items-center px-4 focus-visible:outline-none`,title:n.sidebar.resizeApps,onPointerDown:o,onPointerMove:s,onPointerUp:c,onPointerCancel:c,onKeyDown:l,children:(0,$.jsx)(`span`,{className:`h-px w-full bg-edge-subtle transition-colors group-hover:bg-edge group-focus-visible:bg-accent`})}),(0,$.jsx)(`div`,{className:C(`flex min-h-0 flex-1 flex-col overflow-hidden`,t&&`hidden`),"aria-hidden":t?!0:void 0,children:(0,$.jsx)(rz,{onNavigate:e})}),(0,$.jsx)(UA,{collapsed:t,onNavigate:e})]})}var uz=`(min-width: 768px)`,dz=(0,Z.memo)(function(){let e=(0,Q.c)(42),t=I(fz),n;e[0]===t?n=e[1]:(n=j(t),e[0]=t,e[1]=n);let r=n,i=bD(pz),a=bD(mz),o=bD(hz),s=OD(gz),c=OD(_z),[l,u]=(0,Z.useState)(!1),d=tD({runtime:eD(),sidebarCollapsed:i,mobileNavOpen:s}),f;e[2]!==o||e[3]!==i?(f=e=>{if(i)return;e.preventDefault();let t=e.currentTarget,n=t.parentElement;t.setPointerCapture(e.pointerId),u(!0);let r=e.clientX,a=bD.getState().expandedWidthPx,s=e.pointerId,c=0,l=a,d=a,f=()=>{c=0,d=l,n?.style.setProperty(`--sidebar-expanded-px`,`${d}px`)},p=e=>{l=_D(a+(e.clientX-r)),c===0&&(c=window.requestAnimationFrame(f))},m=()=>{c!==0&&(window.cancelAnimationFrame(c),f());try{t.releasePointerCapture(s)}catch{}u(!1),o(d),window.removeEventListener(`pointermove`,p),window.removeEventListener(`pointerup`,m),window.removeEventListener(`pointercancel`,m)};window.addEventListener(`pointermove`,p),window.addEventListener(`pointerup`,m),window.addEventListener(`pointercancel`,m)},e[2]=o,e[3]=i,e[4]=f):f=e[4];let p=f,m,h;e[5]===c?(m=e[6],h=e[7]):(m=()=>{let e=e=>{e.key===`Escape`&&c(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},h=[c],e[5]=c,e[6]=m,e[7]=h),(0,Z.useEffect)(m,h);let g,_;e[8]===c?(g=e[9],_=e[10]):(g=()=>{let e=window.matchMedia(uz),t=()=>{e.matches&&c(!1)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},_=[c],e[8]=c,e[9]=g,e[10]=_),(0,Z.useEffect)(g,_);let v,y;e[11]===s?(v=e[12],y=e[13]):(v=()=>{if(!s||!window.matchMedia(`(max-width: 767px)`).matches)return;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},y=[s],e[11]=s,e[12]=v,e[13]=y),(0,Z.useEffect)(v,y);let b;e[14]!==r||e[15]!==s||e[16]!==c?(b=s?(0,$.jsx)(`button`,{type:`button`,className:`fixed inset-0 z-40 bg-scrim md:hidden`,"aria-label":r.closeMenu,onClick:()=>c(!1)}):null,e[14]=r,e[15]=s,e[16]=c,e[17]=b):b=e[17];let x=l&&`sidebar-width-resizing`,S=s?`max-md:translate-x-0`:`max-md:-translate-x-full`,w=i?`md:w-0 md:overflow-hidden md:border-0`:`app-sidebar-expanded-width`,T;e[18]!==x||e[19]!==S||e[20]!==w?(T=C(`app-sidebar-push app-chrome-sidebar flex min-h-0 shrink-0 flex-col overflow-hidden bg-transparent`,x,`max-md:fixed max-md:left-0 max-md:top-0 max-md:z-50 max-md:h-[100dvh] max-md:w-[min(16rem,85vw)]`,`max-md:transition-transform max-md:duration-200 max-md:ease-out`,`motion-reduce:max-md:transition-none`,S,`md:relative md:h-full md:translate-x-0`,w),e[18]=x,e[19]=S,e[20]=w,e[21]=T):T=e[21];let E=i&&!s?!0:void 0,D=i&&!s?!0:void 0,O;e[22]!==a||e[23]!==i?(O=i?void 0:{"--sidebar-expanded-px":`${a}px`},e[22]=a,e[23]=i,e[24]=O):O=e[24];let k=d.sidebarChromeVisible?(0,$.jsxs)(`div`,{className:C(`sidebar-chrome-row flex min-w-0`,Ye,d.sidebarChromeDraggable&&`[-webkit-app-region:drag]`,d.sidebarLeadingInsetClass,i?`justify-center gap-1 px-1.5 max-md:flex`:C(`justify-start gap-1`,d.sidebarLeadingInsetClass?`sidebar-chrome-row-darwin pr-3`:`px-3`),i&&`md:hidden`),children:[s?(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:C(`size-8 shrink-0 rounded-xl p-0 md:hidden`,Je),"aria-label":r.closeMenu,title:r.closeMenu,onClick:()=>c(!1),children:(0,$.jsx)(Aw,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0})}):null,d.sidebarQuickActionsVisible&&!i?(0,$.jsx)(TD,{sidebarToggleVariant:`sidebar`,className:`overflow-hidden`}):null]}):null,A;e[25]===c?A=e[26]:(A=(0,$.jsx)(lz,{collapsed:!1,onNavigate:()=>c(!1)}),e[25]=c,e[26]=A);let M;e[27]!==r||e[28]!==p||e[29]!==i?(M=i?null:(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":r.sidebar.resizeHandleAria,onPointerDown:p,className:C(`pointer-events-auto absolute right-0 top-0 z-10 hidden h-full w-2 shrink-0 cursor-col-resize md:block`,`touch-none select-none`,Je)}),e[27]=r,e[28]=p,e[29]=i,e[30]=M):M=e[30];let N;e[31]!==T||e[32]!==E||e[33]!==D||e[34]!==O||e[35]!==k||e[36]!==A||e[37]!==M?(N=(0,$.jsxs)(`aside`,{id:`app-sidebar`,className:T,"aria-hidden":E,"data-collapsed":D,style:O,children:[k,A,M]}),e[31]=T,e[32]=E,e[33]=D,e[34]=O,e[35]=k,e[36]=A,e[37]=M,e[38]=N):N=e[38];let P;return e[39]!==N||e[40]!==b?(P=(0,$.jsxs)($.Fragment,{children:[b,N]}),e[39]=N,e[40]=b,e[41]=P):P=e[41],P});function fz(e){return e.language}function pz(e){return e.collapsed}function mz(e){return e.expandedWidthPx}function hz(e){return e.setExpandedWidthPx}function gz(e){return e.mobileNavOpen}function _z(e){return e.setMobileNavOpen}var vz=450,yz=900;function bz(e){return new Promise(t=>window.setTimeout(t,e))}function xz({label:e,loading:t=!1,disabled:n=!1,className:r,iconClassName:i,strokeWidth:a=1.75,onClick:o,variant:s=`ghost`,type:c=`button`,title:l,"aria-label":u,...d}){let[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(!1),g=(0,Z.useRef)(null),_=(0,Z.useRef)(!1),v=(0,Z.useCallback)(()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null)},[]),y=(0,Z.useCallback)(()=>{v(),h(!0),g.current=window.setTimeout(()=>{h(!1),g.current=null},yz)},[v]);(0,Z.useEffect)(()=>v,[v]),(0,Z.useEffect)(()=>{if(t){f&&(_.current=!0),h(!1);return}_.current&&(_.current=!1,y())},[f,t,y]);let b=t||f,x=async e=>{if(n||b){e.preventDefault();return}let t=Date.now();p(!0),h(!1);try{await o?.(e);let n=vz-(Date.now()-t);n>0&&await bz(n),y()}finally{p(!1)}};return(0,$.jsx)(Zw,{type:c,variant:s,className:C(`relative overflow-hidden`,b&&`bg-accent/10 text-accent hover:bg-accent/15 disabled:opacity-100`,m&&`bg-emerald-500/10 text-emerald-600 hover:bg-emerald-500/15 dark:text-emerald-300`,r),disabled:n,"aria-disabled":n||b,"aria-busy":b||void 0,title:l??e,"aria-label":u??e,onClick:e=>void x(e),...d,children:m&&!b?(0,$.jsx)(S,{className:C(`size-4 transition-transform duration-150 ease-out`,i),strokeWidth:a,"aria-hidden":!0}):(0,$.jsx)(ky,{className:C(`size-4 transition-transform duration-150 ease-out motion-reduce:transition-none`,b&&`animate-spin motion-reduce:animate-none`,i),strokeWidth:a,"aria-hidden":!0})})}function Sz(e){let t=e.toLowerCase();return t.endsWith(`.md`)?`text-green-600 dark:text-green-400`:t.endsWith(`.json`)?`text-yellow-600 dark:text-yellow-400`:t.endsWith(`.ts`)||t.endsWith(`.js`)?`text-blue-600 dark:text-blue-400`:`text-fg-muted`}function Cz(e){let t=(0,Q.c)(39),{entry:n,labels:r,onAction:i}=e,[a,o]=(0,Z.useState)(!1),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=[],t[0]=s):s=t[0];let[c,l]=(0,Z.useState)(s),u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>o(!1),t[1]=u):u=t[1];let d=u,f,p;t[2]!==n.absolutePath||t[3]!==n.isDirectory||t[4]!==a?(f=()=>{if(!a||n.isDirectory||!n.absolutePath||!$E()||!window.electronAPI?.shell?.getOpenWithAppsForPath){l([]);return}let e=!1;return window.electronAPI.shell.getOpenWithAppsForPath(n.absolutePath).then(t=>{e||l(t.recommended.map(kz))}).catch(()=>{e||l([])}),()=>{e=!0}},p=[n.absolutePath,n.isDirectory,a],t[2]=n.absolutePath,t[3]=n.isDirectory,t[4]=a,t[5]=f,t[6]=p):(f=t[5],p=t[6]),(0,Z.useEffect)(f,p);let m,h,g,_;if(t[7]!==n||t[8]!==r.copyPath||t[9]!==r.download||t[10]!==r.openDefault||t[11]!==r.openWith||t[12]!==r.preview||t[13]!==r.recommendedApps||t[14]!==r.revealInFolder||t[15]!==r.share||t[16]!==a||t[17]!==i||t[18]!==c){let e=n.absolutePath&&!n.isDirectory?c.map(Oz):[],s=n.absolutePath?[...n.isDirectory||!r.openDefault?[]:[{action:`openDefault`,label:r.openDefault}],...n.isDirectory||!r.openWith?[]:[{action:`openWith`,label:r.openWith}],...r.revealInFolder?[{action:`revealInFolder`,label:r.revealInFolder}]:[]]:[],l=n.isDirectory?[...s,...r.share?[{action:`share`,label:r.share}]:[],{action:`copyPath`,label:r.copyPath}]:[...s,{action:`preview`,label:r.preview},{action:`download`,label:r.download},...r.share?[{action:`share`,label:r.share}]:[],{action:`copyPath`,label:r.copyPath}];t[23]===a?_=t[24]:(_=a?(0,$.jsx)(`button`,{type:`button`,className:`fixed inset-0 z-40 cursor-default bg-transparent`,"aria-hidden":!0,tabIndex:-1,onPointerDown:e=>{e.preventDefault(),d()}}):null,t[23]=a,t[24]=_),m=`relative shrink-0`;let u=a&&`opacity-100`,f;t[25]===u?f=t[26]:(f=C(`rounded-md p-1 text-fg-muted opacity-0 transition-opacity hover:bg-surface-hover hover:text-fg`,`group-hover:opacity-100`,u),t[25]=u,t[26]=f);let p,v;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>{e.stopPropagation(),o(Ez)},v=(0,$.jsx)(Du,{className:`size-3.5`,"aria-hidden":!0}),t[27]=p,t[28]=v):(p=t[27],v=t[28]),t[29]!==a||t[30]!==f?(h=(0,$.jsx)(`button`,{type:`button`,className:f,"aria-haspopup":`menu`,"aria-expanded":a,"aria-label":`More`,onPointerDown:Dz,onClick:p,children:v}),t[29]=a,t[30]=f,t[31]=h):h=t[31],g=a?(0,$.jsxs)(`div`,{role:`menu`,className:`absolute right-0 top-full z-50 mt-0.5 min-w-[9rem] rounded-md border border-edge bg-surface-panel py-1 shadow-popover`,onPointerDown:Tz,children:[s.slice(0,r.openDefault&&!n.isDirectory?1:0).map(e=>{let{action:t,label:r,appPath:a}=e;return(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:`block w-full px-3 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,title:a,onClick:()=>{i(t,n,a),d()},children:(0,$.jsx)(`span`,{className:`block truncate`,children:r})},a?`${t}:${a}`:t)}),r.recommendedApps&&e.length>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`border-t border-edge-subtle px-3 pb-1 pt-2 text-[11px] font-medium uppercase tracking-normal text-fg-subtle dark:border-edge`,children:r.recommendedApps}),e.map(e=>{let{action:t,label:r,appPath:a}=e;return(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:`block w-full min-w-0 px-3 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,title:a,onClick:()=>{i(t,n,a),d()},children:(0,$.jsx)(`span`,{className:`block truncate`,children:r})},`${t}:${a}`)})]}):null,l.filter(wz).map(e=>{let{action:t,label:r,appPath:a}=e;return(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:`block w-full px-3 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,title:a,onClick:()=>{i(t,n,a),d()},children:(0,$.jsx)(`span`,{className:`block truncate`,children:r})},a?`${t}:${a}`:t)})]}):null,t[7]=n,t[8]=r.copyPath,t[9]=r.download,t[10]=r.openDefault,t[11]=r.openWith,t[12]=r.preview,t[13]=r.recommendedApps,t[14]=r.revealInFolder,t[15]=r.share,t[16]=a,t[17]=i,t[18]=c,t[19]=m,t[20]=h,t[21]=g,t[22]=_}else m=t[19],h=t[20],g=t[21],_=t[22];let v;t[32]!==m||t[33]!==h||t[34]!==g?(v=(0,$.jsxs)(`div`,{className:m,children:[h,g]}),t[32]=m,t[33]=h,t[34]=g,t[35]=v):v=t[35];let y;return t[36]!==_||t[37]!==v?(y=(0,$.jsxs)($.Fragment,{children:[_,v]}),t[36]=_,t[37]=v,t[38]=y):y=t[38],y}function wz(e){return e.action!==`openDefault`}function Tz(e){return e.stopPropagation()}function Ez(e){return!e}function Dz(e){return e.stopPropagation()}function Oz(e){return{action:`openWithApp`,label:e.name,appPath:e.path}}function kz(e){return{name:e.name,path:e.path}}function Az(e){let t=(0,Q.c)(69),{entry:n,depth:r,selectedPath:i,forceOpen:a,onSelect:o,onExpandDir:s,onAction:c,actionLabels:l}=e,[u,d]=(0,Z.useState)(!1),f=a||u,p=i===n.path;if(n.isDirectory){let e=p&&`bg-accent-soft text-accent-fg`,u;t[0]===e?u=t[1]:(u=C(`flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 pr-2 text-left text-sm`,`hover:bg-surface-hover`,e),t[0]=e,t[1]=u);let m=8+r*12,h;t[2]===m?h=t[3]:(h={paddingLeft:m},t[2]=m,t[3]=h);let g;t[4]!==n.path||t[5]!==s||t[6]!==o||t[7]!==f?(g=()=>{let e=!f;d(e),e&&s?.(n.path),o(n.path,!0)},t[4]=n.path,t[5]=s,t[6]=o,t[7]=f,t[8]=g):g=t[8];let _=f&&`rotate-90`,v;t[9]===_?v=t[10]:(v=C(`size-3.5 shrink-0 transition-transform`,_),t[9]=_,t[10]=v);let y;t[11]===v?y=t[12]:(y=(0,$.jsx)(go,{className:v,"aria-hidden":!0}),t[11]=v,t[12]=y);let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(Xf,{className:`size-3.5 shrink-0 text-fg-muted`,"aria-hidden":!0}),t[13]=b):b=t[13];let x;t[14]===n.name?x=t[15]:(x=(0,$.jsx)(`span`,{className:`truncate`,children:n.name}),t[14]=n.name,t[15]=x);let S;t[16]!==x||t[17]!==u||t[18]!==h||t[19]!==g||t[20]!==y||t[21]!==f?(S=(0,$.jsxs)(`button`,{type:`button`,"aria-expanded":f,className:u,style:h,onClick:g,children:[y,b,x]}),t[16]=x,t[17]=u,t[18]=h,t[19]=g,t[20]=y,t[21]=f,t[22]=S):S=t[22];let w;t[23]!==l||t[24]!==n||t[25]!==c?(w=c&&l?(0,$.jsx)(Cz,{entry:n,labels:l,onAction:c}):null,t[23]=l,t[24]=n,t[25]=c,t[26]=w):w=t[26];let T;t[27]!==S||t[28]!==w?(T=(0,$.jsxs)(`div`,{className:`group flex w-full items-stretch gap-0.5`,children:[S,w]}),t[27]=S,t[28]=w,t[29]=T):T=t[29];let E;t[30]!==l||t[31]!==r||t[32]!==n.children||t[33]!==a||t[34]!==c||t[35]!==s||t[36]!==o||t[37]!==i||t[38]!==f?(E=f&&n.children?.length?(0,$.jsx)(`div`,{children:n.children.map(e=>(0,$.jsx)(Az,{entry:e,depth:r+1,selectedPath:i,forceOpen:a,onSelect:o,onExpandDir:s,onAction:c,actionLabels:l},e.path))}):null,t[30]=l,t[31]=r,t[32]=n.children,t[33]=a,t[34]=c,t[35]=s,t[36]=o,t[37]=i,t[38]=f,t[39]=E):E=t[39];let D;return t[40]!==T||t[41]!==E?(D=(0,$.jsxs)(`div`,{className:`select-none`,children:[T,E]}),t[40]=T,t[41]=E,t[42]=D):D=t[42],D}let m=p&&`bg-accent-soft text-accent-fg`,h;t[43]===m?h=t[44]:(h=C(`flex min-w-0 flex-1 items-center gap-1.5 rounded-md py-1 pr-2 text-left text-sm`,`hover:bg-surface-hover`,m),t[43]=m,t[44]=h);let g=8+r*12,_;t[45]===g?_=t[46]:(_={paddingLeft:g},t[45]=g,t[46]=_);let v;t[47]!==n.path||t[48]!==o?(v=()=>o(n.path,!1),t[47]=n.path,t[48]=o,t[49]=v):v=t[49];let y;t[50]===n.name?y=t[51]:(y=C(`size-3.5 shrink-0`,Sz(n.name)),t[50]=n.name,t[51]=y);let b;t[52]===y?b=t[53]:(b=(0,$.jsx)(Ld,{className:y,"aria-hidden":!0}),t[52]=y,t[53]=b);let x;t[54]===n.name?x=t[55]:(x=(0,$.jsx)(`span`,{className:`truncate`,children:n.name}),t[54]=n.name,t[55]=x);let S;t[56]!==h||t[57]!==_||t[58]!==v||t[59]!==b||t[60]!==x?(S=(0,$.jsxs)(`button`,{type:`button`,className:h,style:_,onClick:v,children:[b,x]}),t[56]=h,t[57]=_,t[58]=v,t[59]=b,t[60]=x,t[61]=S):S=t[61];let w;t[62]!==l||t[63]!==n||t[64]!==c?(w=c&&l?(0,$.jsx)(Cz,{entry:n,labels:l,onAction:c}):null,t[62]=l,t[63]=n,t[64]=c,t[65]=w):w=t[65];let T;return t[66]!==w||t[67]!==S?(T=(0,$.jsxs)(`div`,{className:`group flex w-full items-stretch gap-0.5`,children:[S,w]}),t[66]=w,t[67]=S,t[68]=T):T=t[68],T}function jz(e,t){return e.name.toLocaleLowerCase().includes(t)||e.path.toLocaleLowerCase().includes(t)||e.absolutePath?.toLocaleLowerCase().includes(t)}function Mz(e,t){return t?e.flatMap(e=>{let n=e.children?Mz(e.children,t):void 0;return jz(e,t)||n?.length?[{...e,children:n}]:[]}):e}function Nz(e){let t=(0,Q.c)(29),{tree:n,selectedPath:r,onSelectFile:i,onSelectEntry:a,onExpandDir:o,onAction:s,actionLabels:c,emptyHint:l,searchQuery:u,emptySearchHint:d}=e,f=u??``,p;t[0]===f?p=t[1]:(p=f.trim().toLocaleLowerCase(),t[0]=f,t[1]=p);let m=p,h;t[2]!==m||t[3]!==n?(h=Mz(n,m),t[2]=m,t[3]=n,t[4]=h):h=t[4];let g=h,_;t[5]!==a||t[6]!==i?(_=(e,t)=>{a?.(e,t),t||i(e)},t[5]=a,t[6]=i,t[7]=_):_=t[7];let v=_;if(!n.length){let e;return t[8]===l?e=t[9]:(e=(0,$.jsx)(`p`,{className:`text-fg-muted px-3 py-2 text-xs`,children:l}),t[8]=l,t[9]=e),e}if(!g.length){let e=d??l,n;return t[10]===e?n=t[11]:(n=(0,$.jsx)(`p`,{className:`px-3 py-2 text-xs text-fg-muted`,children:e}),t[10]=e,t[11]=n),n}let y;if(t[12]!==c||t[13]!==v||t[14]!==m||t[15]!==s||t[16]!==o||t[17]!==r||t[18]!==g){let e;t[20]!==c||t[21]!==v||t[22]!==m||t[23]!==s||t[24]!==o||t[25]!==r?(e=e=>(0,$.jsx)(Az,{entry:e,depth:0,selectedPath:r,forceOpen:!!m,onSelect:v,onExpandDir:o,onAction:s,actionLabels:c},e.path),t[20]=c,t[21]=v,t[22]=m,t[23]=s,t[24]=o,t[25]=r,t[26]=e):e=t[26],y=g.map(e),t[12]=c,t[13]=v,t[14]=m,t[15]=s,t[16]=o,t[17]=r,t[18]=g,t[19]=y}else y=t[19];let b;return t[27]===y?b=t[28]:(b=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto py-2`,children:y}),t[27]=y,t[28]=b),b}function Pz(e,t){let n=new URLSearchParams;e&&n.set(`dir`,e);let r=t?.projectId?``:t?.sessionKey?.trim();if(r)n.set(`sessionKey`,r);else{let e=t?.projectId?``:t?.agentId?.trim();e&&n.set(`agentId`,e)}let i=n.toString();return i?`?${i}`:``}function Fz(e,t,n){let r=e?.projectId?.trim();if(!r)return null;let i=new URLSearchParams;n&&i.set(`path`,n);let a=i.toString();return z(`/api/projects/${encodeURIComponent(r)}/files/${t}${a?`?${a}`:``}`)}async function Iz(e=``,t){return(await B(z(`/api/workspace/editor/list${Pz(e,t)}`))).payload}async function Lz(e=``,t){return(await Iz(e,t)).entries}async function Rz(e,t,n=50){let r=new URLSearchParams({q:e.trim(),limit:String(n)}),i=t?.sessionKey?.trim();if(i)r.set(`sessionKey`,i);else{let e=t?.agentId?.trim();e&&r.set(`agentId`,e)}return(await B(z(`/api/workspace/editor/files/search?${r.toString()}`))).payload.entries}async function zz(e,t){let n=Fz(t,`read`,e);if(n)return(await B(n)).payload;let r=new URLSearchParams({path:e}),i=t?.sessionKey?.trim();if(i)r.set(`sessionKey`,i);else{let e=t?.agentId?.trim();e&&r.set(`agentId`,e)}return(await B(z(`/api/workspace/editor/read?${r.toString()}`))).payload}async function Bz(e,t){let n=Fz(t,`resolve-reference`,e);if(n){let e=await L(n),t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error?.message||`File reference resolution failed (HTTP ${e.status})`);return t?.ok&&t.payload?t.payload:null}let r=new URLSearchParams({path:e}),i=t?.sessionKey?.trim();if(i)r.set(`sessionKey`,i);else{let e=t?.agentId?.trim();e&&r.set(`agentId`,e)}let a=await L(z(`/api/workspace/editor/resolve-reference?${r.toString()}`)),o=await a.json().catch(()=>null);if(!a.ok)throw Error(o?.error?.message||`File reference resolution failed (HTTP ${a.status})`);return o?.ok&&o.payload?o.payload:null}async function Vz(e,t,n){let r=new URLSearchParams,i=n?.sessionKey?.trim();if(i)r.set(`sessionKey`,i);else{let e=n?.agentId?.trim();e&&r.set(`agentId`,e)}let a=r.toString(),o=await L(z(`/api/workspace/file-ref/${encodeURIComponent(e)}/resolve-action${a?`?${a}`:``}`),{method:`POST`,body:JSON.stringify({action:t})});if(!o.ok)return null;let s=await o.json();return!s.ok||typeof s.payload?.absolutePath!=`string`?null:{absolutePath:s.payload.absolutePath,isDirectory:!!s.payload.isDirectory}}async function Hz(e,t){let n=Fz(t,`raw`,e);if(n){let e=await L(n,{headers:{Accept:`*/*`}});if(!e.ok){let t=(await e.json().catch(()=>({}))).error?.message??`HTTP ${e.status}`;throw Error(t)}return e.blob()}let r=new URLSearchParams({path:e}),i=t?.sessionKey?.trim();if(i)r.set(`sessionKey`,i);else{let e=t?.agentId?.trim();e&&r.set(`agentId`,e)}let a=await L(z(`/api/workspace/editor/raw?${r.toString()}`),{headers:{Accept:`*/*`}});if(!a.ok){let e=(await a.json().catch(()=>({}))).error?.message??`HTTP ${a.status}`;throw Error(e)}return a.blob()}async function Uz(e,t){let n=new URLSearchParams,r=t?.sessionKey?.trim();if(r)n.set(`sessionKey`,r);else{let e=t?.agentId?.trim();e&&n.set(`agentId`,e)}let i=n.toString(),a=await L(z(`/api/workspace/import-file-ref/${encodeURIComponent(e)}${i?`?${i}`:``}`),{method:`POST`,body:JSON.stringify({destination:t?.destination,onConflict:t?.onConflict??`rename`})}),o;try{o=await a.json()}catch{return{ok:!1,error:{code:`UNKNOWN`,message:`HTTP ${a.status}`}}}let s=o;return s.ok&&s.payload?{ok:!0,payload:s.payload}:{ok:!1,error:{code:s.error?.code??`UNKNOWN`,message:s.error?.message??`HTTP ${a.status}`}}}async function Wz(e,t,n){let r=Fz(n,`write`);if(r)return(await B(r,{method:`PUT`,body:JSON.stringify({path:e,content:t})})).payload;let i=n?.sessionKey?.trim();return(await B(z(`/api/workspace/editor/write${i?`?sessionKey=${encodeURIComponent(i)}`:n?.agentId?.trim()?`?agentId=${encodeURIComponent(n.agentId.trim())}`:``}`),{method:`PUT`,body:JSON.stringify({path:e,content:t})})).payload}function Gz(e,t){let n=new Blob([t],{type:`text/plain;charset=utf-8`}),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}function Kz(e,t,n){let r=new Blob([t],{type:n}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)}var qz=5*1024*1024,Jz=32*1024*1024,Yz=new Set(`.ts,.tsx,.js,.jsx,.mjs,.cjs,.css,.scss,.json,.jsonc,.yml,.yaml,.xml,.py,.go,.rs,.java,.c,.cpp,.h,.hpp,.sh,.bash,.zsh,.sql,.toml,.ini`.split(`,`)),Xz=new Set([`.txt`,`.log`,`.csv`,`.tsv`,`.env`,`.gitignore`]),Zz=new Set([`.png`,`.jpg`,`.jpeg`,`.gif`,`.webp`,`.bmp`,`.ico`,`.svg`,`.svgz`,`.tif`,`.tiff`,`.avif`,`.heic`,`.heif`,`.jxl`]),Qz=new Set([`.mp3`,`.wav`,`.ogg`,`.oga`,`.aac`,`.m4a`,`.flac`,`.opus`,`.weba`]),$z=new Set([`.mp4`,`.webm`,`.mov`,`.m4v`,`.ogv`]),eB=new Set([`.zip`]),tB=new Map([[`.pdf`,`application/pdf`],[`.docx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`],[`.pptx`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`],[`.xlsx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`],[`.xls`,`application/vnd.ms-excel`],[`.md`,`text/markdown`],[`.markdown`,`text/markdown`],[`.html`,`text/html`],[`.htm`,`text/html`],[`.json`,`application/json`],[`.txt`,`text/plain`],[`.csv`,`text/csv`],[`.tsv`,`text/tab-separated-values`],[`.png`,`image/png`],[`.jpg`,`image/jpeg`],[`.jpeg`,`image/jpeg`],[`.gif`,`image/gif`],[`.webp`,`image/webp`],[`.svg`,`image/svg+xml`],[`.svgz`,`image/svg+xml`],[`.mp3`,`audio/mpeg`],[`.wav`,`audio/wav`],[`.ogg`,`audio/ogg`],[`.mp4`,`video/mp4`],[`.webm`,`video/webm`],[`.mov`,`video/quicktime`],[`.zip`,`application/zip`]]);function nB(e){let t=e.lastIndexOf(`.`);return t<=0||t===e.length-1?``:e.slice(t).toLowerCase()}function rB(e){let t=e.replace(/\\/g,`/`).split(`/`);return t[t.length-1]||e}function iB(e,t){let n=t?.split(`;`)[0]?.trim().toLowerCase();return n&&n!==`application/octet-stream`?n:tB.get(nB(e))??n??`application/octet-stream`}function aB(e,t){let n=nB(e),r=iB(e,t);return r===`text/markdown`||n===`.md`||n===`.markdown`?`markdown`:r===`text/html`||n===`.html`||n===`.htm`?`html`:r===`application/pdf`||n===`.pdf`?`pdf`:r===`application/vnd.openxmlformats-officedocument.wordprocessingml.document`||n===`.docx`?`docx`:r===`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`||r===`application/vnd.ms-excel`||n===`.xlsx`||n===`.xls`?`spreadsheet`:r===`application/vnd.openxmlformats-officedocument.presentationml.presentation`||n===`.pptx`?`pptx`:r.startsWith(`image/`)||Zz.has(n)?`image`:r.startsWith(`audio/`)||Qz.has(n)?`audio`:r.startsWith(`video/`)||$z.has(n)?`video`:r===`application/zip`||eB.has(n)?`archive`:Yz.has(n)?`code`:r.startsWith(`text/`)||Xz.has(n)||r===`application/json`?`text`:`unsupported`}function oB(e){switch(e){case`text`:case`markdown`:case`code`:case`html`:return`text`;case`unsupported`:return`metadata`;default:return`binary`}}async function sB(e){let{uri:t,sessionKey:n,taskId:r}=e;try{let e=await L(z(sP(t,n,r)));return e.ok?{ok:!0,blob:await e.blob()}:{ok:!1,reason:`http`,status:e.status}}catch(e){return{ok:!1,reason:`network`,message:e instanceof Error?e.message:String(e)}}}async function cB(e){let t=await sB(e);return t.ok?{ok:!0,buffer:await t.blob.arrayBuffer()}:t}function lB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uB(e){if(Array.isArray(e))return e}function dB(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function fB(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pB(e,t){return uB(e)||dB(e,t)||mB(e,t)||fB()}function mB(e,t){if(e){if(typeof e==`string`)return lB(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lB(e,t):void 0}}var hB=Object.entries,gB=Object.setPrototypeOf,_B=Object.isFrozen,vB=Object.getPrototypeOf,yB=Object.getOwnPropertyDescriptor,bB=Object.freeze,xB=Object.seal,SB=Object.create,CB=typeof Reflect<`u`&&Reflect,wB=CB.apply,TB=CB.construct;bB||=function(e){return e},xB||=function(e){return e},wB||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},TB||=function(e){return new e(...[...arguments].slice(1))};var EB=KB(Array.prototype.forEach),DB=KB(Array.prototype.lastIndexOf),OB=KB(Array.prototype.pop),kB=KB(Array.prototype.push),AB=KB(Array.prototype.splice),jB=Array.isArray,MB=KB(String.prototype.toLowerCase),NB=KB(String.prototype.toString),PB=KB(String.prototype.match),FB=KB(String.prototype.replace),IB=KB(String.prototype.indexOf),LB=KB(String.prototype.trim),RB=KB(Number.prototype.toString),zB=KB(Boolean.prototype.toString),BB=typeof BigInt>`u`?null:KB(BigInt.prototype.toString),VB=typeof Symbol>`u`?null:KB(Symbol.prototype.toString),HB=KB(Object.prototype.hasOwnProperty),UB=KB(Object.prototype.toString),WB=KB(RegExp.prototype.test),GB=qB(TypeError);function KB(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return wB(e,t,n)}}function qB(e){return function(){return TB(e,[...arguments])}}function JB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:MB;if(gB&&gB(e,null),!jB(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(_B(t)||(t[r]=e),i=e)}e[i]=!0}return e}function YB(e){for(let t=0;t<e.length;t++)HB(e,t)||(e[t]=null);return e}function XB(e){let t=SB(null);for(let r of hB(e)){var n=pB(r,2);let i=n[0],a=n[1];HB(e,i)&&(jB(a)?t[i]=YB(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=XB(a):t[i]=a)}return t}function ZB(e){switch(typeof e){case`string`:return e;case`number`:return RB(e);case`boolean`:return zB(e);case`bigint`:return BB?BB(e):`0`;case`symbol`:return VB?VB(e):`Symbol()`;case`undefined`:return UB(e);case`function`:case`object`:{if(e===null)return UB(e);let t=e,n=QB(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:UB(e)}return UB(e)}default:return UB(e)}}function QB(e,t){for(;e!==null;){let n=yB(e,t);if(n){if(n.get)return KB(n.get);if(typeof n.value==`function`)return KB(n.value)}e=vB(e)}function n(){return null}return n}function $B(e){try{return WB(e,``),!0}catch{return!1}}var eV=bB(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),tV=bB(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),nV=bB([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),rV=bB([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),iV=bB(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),aV=bB([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),oV=bB([`#text`]),sV=bB(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),cV=bB(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),lV=bB(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),uV=bB([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),dV=xB(/{{[\w\W]*|^[\w\W]*}}/g),fV=xB(/<%[\w\W]*|^[\w\W]*%>/g),pV=xB(/\${[\w\W]*/g),mV=xB(/^data-[\-\w.\u00B7-\uFFFF]+$/),hV=xB(/^aria-[\-\w]+$/),gV=xB(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_V=xB(/^(?:\w+script|data):/i),vV=xB(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yV=xB(/^html$/i),bV=xB(/^[a-z][.\w]*(-[.\w]+)+$/i),xV={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},SV=function(){return typeof window>`u`?null:window},CV=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},wV=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function TV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SV(),t=e=>TV(e);if(t.version=`3.4.7`,t.removed=[],!e||!e.document||e.document.nodeType!==xV.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=QB(d,`cloneNode`),p=QB(d,`remove`),m=QB(d,`nextSibling`),h=QB(d,`childNodes`),g=QB(d,`parentNode`),_=QB(d,`shadowRoot`),v=QB(d,`attributes`),y=o&&o.prototype?QB(o.prototype,`nodeType`):null,b=o&&o.prototype?QB(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C=n,w=C.implementation,T=C.createNodeIterator,E=C.createDocumentFragment,D=C.getElementsByTagName,O=r.importNode,k=wV();t.isSupported=typeof hB==`function`&&typeof g==`function`&&w&&w.createHTMLDocument!==void 0;let A=dV,j=fV,M=pV,N=mV,P=hV,F=_V,I=vV,L=bV,R=gV,z=null,B=JB({},[...eV,...tV,...nV,...iV,...oV]),V=null,H=JB({},[...sV,...cV,...lV,...uV]),U=Object.seal(SB(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,G=null,K=Object.seal(SB(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ee=!0,q=!0,te=!1,ne=!0,re=!1,ie=!0,ae=!1,oe=!1,se=!1,J=!1,ce=!1,le=!1,ue=!0,de=!1,fe=`user-content-`,pe=!0,me=!1,he={},ge=null,_e=JB({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),ve=null,ye=JB({},[`audio`,`video`,`img`,`source`,`image`,`track`]),be=null,xe=JB({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Se=`http://www.w3.org/1998/Math/MathML`,Ce=`http://www.w3.org/2000/svg`,we=`http://www.w3.org/1999/xhtml`,Te=we,Ee=!1,De=null,Oe=JB({},[Se,Ce,we],NB),ke=JB({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ae=JB({},[`annotation-xml`]),je=JB({},[`title`,`style`,`font`,`a`,`script`]),Me=null,Ne=[`application/xhtml+xml`,`text/html`],Pe=null,Y=null,Fe=n.createElement(`form`),Ie=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y&&Y===e)return;(!e||typeof e!=`object`)&&(e={}),e=XB(e),Me=Ne.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Pe=Me===`application/xhtml+xml`?NB:MB,z=HB(e,`ALLOWED_TAGS`)&&jB(e.ALLOWED_TAGS)?JB({},e.ALLOWED_TAGS,Pe):B,V=HB(e,`ALLOWED_ATTR`)&&jB(e.ALLOWED_ATTR)?JB({},e.ALLOWED_ATTR,Pe):H,De=HB(e,`ALLOWED_NAMESPACES`)&&jB(e.ALLOWED_NAMESPACES)?JB({},e.ALLOWED_NAMESPACES,NB):Oe,be=HB(e,`ADD_URI_SAFE_ATTR`)&&jB(e.ADD_URI_SAFE_ATTR)?JB(XB(xe),e.ADD_URI_SAFE_ATTR,Pe):xe,ve=HB(e,`ADD_DATA_URI_TAGS`)&&jB(e.ADD_DATA_URI_TAGS)?JB(XB(ye),e.ADD_DATA_URI_TAGS,Pe):ye,ge=HB(e,`FORBID_CONTENTS`)&&jB(e.FORBID_CONTENTS)?JB({},e.FORBID_CONTENTS,Pe):_e,W=HB(e,`FORBID_TAGS`)&&jB(e.FORBID_TAGS)?JB({},e.FORBID_TAGS,Pe):XB({}),G=HB(e,`FORBID_ATTR`)&&jB(e.FORBID_ATTR)?JB({},e.FORBID_ATTR,Pe):XB({}),he=HB(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?XB(e.USE_PROFILES):e.USE_PROFILES:!1,ee=e.ALLOW_ARIA_ATTR!==!1,q=e.ALLOW_DATA_ATTR!==!1,te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=e.SAFE_FOR_TEMPLATES||!1,ie=e.SAFE_FOR_XML!==!1,ae=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,ce=e.RETURN_DOM_FRAGMENT||!1,le=e.RETURN_TRUSTED_TYPE||!1,se=e.FORCE_BODY||!1,ue=e.SANITIZE_DOM!==!1,de=e.SANITIZE_NAMED_PROPS||!1,pe=e.KEEP_CONTENT!==!1,me=e.IN_PLACE||!1,R=$B(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:gV,Te=typeof e.NAMESPACE==`string`?e.NAMESPACE:we,ke=HB(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?XB(e.MATHML_TEXT_INTEGRATION_POINTS):JB({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ae=HB(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?XB(e.HTML_INTEGRATION_POINTS):JB({},[`annotation-xml`]);let t=HB(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?XB(e.CUSTOM_ELEMENT_HANDLING):SB(null);if(U=SB(null),HB(t,`tagNameCheck`)&&Ie(t.tagNameCheck)&&(U.tagNameCheck=t.tagNameCheck),HB(t,`attributeNameCheck`)&&Ie(t.attributeNameCheck)&&(U.attributeNameCheck=t.attributeNameCheck),HB(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(U.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),re&&(q=!1),ce&&(J=!0),he&&(z=JB({},oV),V=SB(null),he.html===!0&&(JB(z,eV),JB(V,sV)),he.svg===!0&&(JB(z,tV),JB(V,cV),JB(V,uV)),he.svgFilters===!0&&(JB(z,nV),JB(V,cV),JB(V,uV)),he.mathMl===!0&&(JB(z,iV),JB(V,lV),JB(V,uV))),K.tagCheck=null,K.attributeCheck=null,HB(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?K.tagCheck=e.ADD_TAGS:jB(e.ADD_TAGS)&&(z===B&&(z=XB(z)),JB(z,e.ADD_TAGS,Pe))),HB(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?K.attributeCheck=e.ADD_ATTR:jB(e.ADD_ATTR)&&(V===H&&(V=XB(V)),JB(V,e.ADD_ATTR,Pe))),HB(e,`ADD_URI_SAFE_ATTR`)&&jB(e.ADD_URI_SAFE_ATTR)&&JB(be,e.ADD_URI_SAFE_ATTR,Pe),HB(e,`FORBID_CONTENTS`)&&jB(e.FORBID_CONTENTS)&&(ge===_e&&(ge=XB(ge)),JB(ge,e.FORBID_CONTENTS,Pe)),HB(e,`ADD_FORBID_CONTENTS`)&&jB(e.ADD_FORBID_CONTENTS)&&(ge===_e&&(ge=XB(ge)),JB(ge,e.ADD_FORBID_CONTENTS,Pe)),pe&&(z[`#text`]=!0),ae&&JB(z,[`html`,`head`,`body`]),z.table&&(JB(z,[`tbody`]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw GB(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw GB(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=CV(u,i)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));(k.uponSanitizeElement.length>0||k.uponSanitizeAttribute.length>0)&&z===B&&(z=XB(z)),k.uponSanitizeAttribute.length>0&&V===H&&(V=XB(V)),bB&&bB(e),Y=e},Re=JB({},[...tV,...nV,...rV]),X=JB({},[...iV,...aV]),ze=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:Te,tagName:`template`});let n=MB(e.tagName),r=MB(t.tagName);return De[e.namespaceURI]?e.namespaceURI===Ce?t.namespaceURI===we?n===`svg`:t.namespaceURI===Se?n===`svg`&&(r===`annotation-xml`||ke[r]):!!Re[n]:e.namespaceURI===Se?t.namespaceURI===we?n===`math`:t.namespaceURI===Ce?n===`math`&&Ae[r]:!!X[n]:e.namespaceURI===we?t.namespaceURI===Ce&&!Ae[r]||t.namespaceURI===Se&&!ke[r]?!1:!X[n]&&(je[n]||!Re[n]):!!(Me===`application/xhtml+xml`&&De[e.namespaceURI]):!1},Be=function(e){kB(t.removed,{element:e});try{g(e).removeChild(e)}catch{p(e)}},Ve=function(e,n){try{kB(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{kB(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(J||ce)try{Be(n)}catch{}else try{n.setAttribute(e,``)}catch{}},He=function(e){let t=null,r=null;if(se)e=`<remove></remove>`+e;else{let t=PB(e,/^[\r\n\t ]+/);r=t&&t[0]}Me===`application/xhtml+xml`&&Te===we&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?x.createHTML(e):e;if(Te===we)try{t=new l().parseFromString(i,Me)}catch{}if(!t||!t.documentElement){t=w.createDocument(Te,`template`,null);try{t.documentElement.innerHTML=Ee?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Te===we?D.call(t,ae?`html`:`body`)[0]:ae?t.documentElement:a},Ue=function(e){return T.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Z=function(e){e.normalize();let t=T.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;EB([A,j,M],t=>{e=FB(e,t,` `)}),n.data=e,n=t.nextNode()}},We=function(e){let t=b?b(e):null;return typeof t!=`string`||Pe(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},Ge=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===xV.documentFragment}catch{return!1}},Ke=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function Q(e,n,r){EB(e,e=>{e.call(t,n,r,Y)})}let qe=function(e){let n=null;if(Q(k.beforeSanitizeElements,e,null),We(e))return Be(e),!0;let r=Pe(e.nodeName);if(Q(k.uponSanitizeElement,e,{tagName:r,allowedTags:z}),ie&&e.hasChildNodes()&&!Ke(e.firstElementChild)&&WB(/<[/\w!]/g,e.innerHTML)&&WB(/<[/\w!]/g,e.textContent)||ie&&e.namespaceURI===we&&r===`style`&&Ke(e.firstElementChild)||e.nodeType===xV.progressingInstruction||ie&&e.nodeType===xV.comment&&WB(/<[/\w]/g,e.data))return Be(e),!0;if(W[r]||!(K.tagCheck instanceof Function&&K.tagCheck(r))&&!z[r]){if(!W[r]&&Xe(r)&&(U.tagNameCheck instanceof RegExp&&WB(U.tagNameCheck,r)||U.tagNameCheck instanceof Function&&U.tagNameCheck(r)))return!1;if(pe&&!ge[r]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=f(n[i],!0);t.insertBefore(r,m(e))}}}return Be(e),!0}return(y?y(e):e.nodeType)===xV.element&&!ze(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&WB(/<\/no(script|embed|frames)/i,e.innerHTML)?(Be(e),!0):(re&&e.nodeType===xV.text&&(n=e.textContent,EB([A,j,M],e=>{n=FB(n,e,` `)}),e.textContent!==n&&(kB(t.removed,{element:e.cloneNode()}),e.textContent=n)),Q(k.afterSanitizeElements,e,null),!1)},Je=function(e,t,r){if(G[t]||ue&&(t===`id`||t===`name`)&&(r in n||r in Fe))return!1;let i=V[t]||K.attributeCheck instanceof Function&&K.attributeCheck(t,e);if(!(q&&!G[t]&&WB(N,t))&&!(ee&&WB(P,t))){if(!i||G[t]){if(!(Xe(e)&&(U.tagNameCheck instanceof RegExp&&WB(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&WB(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t,e))||t===`is`&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&WB(U.tagNameCheck,r)||U.tagNameCheck instanceof Function&&U.tagNameCheck(r))))return!1}else if(!be[t]&&!WB(R,FB(r,I,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&IB(r,`data:`)===0&&ve[e])&&!(te&&!WB(F,FB(r,I,``)))&&r)return!1}return!0},Ye=JB({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Xe=function(e){return!Ye[MB(e)]&&WB(L,e)},Ze=function(e){Q(k.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||We(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=Pe(o),d=c,f=o===`value`?d:LB(d);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,Q(k.uponSanitizeAttribute,e,r),f=r.attrValue,de&&(l===`id`||l===`name`)&&IB(f,fe)!==0&&(Ve(o,e),f=fe+f),ie&&WB(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Ve(o,e);continue}if(l===`attributename`&&PB(f,`href`)){Ve(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ve(o,e);continue}if(!ne&&WB(/\/>/i,f)){Ve(o,e);continue}re&&EB([A,j,M],e=>{f=FB(f,e,` `)});let p=Pe(e.nodeName);if(!Je(p,l,f)){Ve(o,e);continue}if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!s)switch(u.getAttributeType(p,l)){case`TrustedHTML`:f=x.createHTML(f);break;case`TrustedScriptURL`:f=x.createScriptURL(f);break}if(f!==d)try{s?e.setAttributeNS(s,o,f):e.setAttribute(o,f),We(e)?Be(e):OB(t.removed)}catch{Ve(o,e)}}Q(k.afterSanitizeAttributes,e,null)},Qe=function(e){let t=null,n=Ue(e);for(Q(k.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Q(k.uponSanitizeShadowNode,t,null),qe(t),Ze(t),Ge(t.content)&&Qe(t.content),(y?y(t):t.nodeType)===xV.element){let e=_?_(t):t.shadowRoot;Ge(e)&&($e(e),Qe(e))}Q(k.afterSanitizeShadowDOM,e,null)},$e=function(e){let t=y?y(e):e.nodeType;if(t===xV.element){let t=_?_(e):e.shadowRoot;Ge(t)&&($e(t),Qe(t))}let n=h?h(e):e.childNodes;if(!n)return;let r=[];EB(n,e=>{kB(r,e)});for(let e of r)$e(e);if(t===xV.element){let t=b?b(e):null;if(typeof t==`string`&&Pe(t)===`template`){let t=e.content;Ge(t)&&$e(t)}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ee=!e,Ee&&(e=`<!-->`),typeof e!=`string`&&!Ke(e)&&(e=ZB(e),typeof e!=`string`))throw GB(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(oe||Le(n),t.removed=[],typeof e==`string`&&(me=!1),me){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=Pe(t);if(!z[e]||W[e])throw GB(`root node is forbidden and cannot be sanitized in-place`)}if(We(e))throw GB(`root node is clobbered and cannot be sanitized in-place`);$e(e)}else if(Ke(e))i=He(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===xV.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),$e(a);else{if(!J&&!re&&!ae&&e.indexOf(`<`)===-1)return x&&le?x.createHTML(e):e;if(i=He(e),!i)return J?null:le?S:``}i&&se&&Be(i.firstChild);let c=Ue(me?e:i);for(;o=c.nextNode();)qe(o),Ze(o),Ge(o.content)&&Qe(o.content);if(me)return re&&Z(e),e;if(J){if(re&&Z(i),ce)for(s=E.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(V.shadowroot||V.shadowrootmode)&&(s=O.call(r,s,!0)),s}let l=ae?i.outerHTML:i.innerHTML;return ae&&z[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&WB(yV,i.ownerDocument.doctype.name)&&(l=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
23
|
-
`+l),re&&EB([A,j,M],e=>{l=FB(l,e,` `)}),x&&le?x.createHTML(l):l},t.setConfig=function(){Le(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),oe=!0},t.clearConfig=function(){Y=null,oe=!1},t.isValidAttribute=function(e,t,n){return Y||Le({}),Je(Pe(e),Pe(t),n)},t.addHook=function(e,t){typeof t==`function`&&kB(k[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=DB(k[e],t);return n===-1?void 0:AB(k[e],n,1)[0]}return OB(k[e])},t.removeHooks=function(e){k[e]=[]},t.removeAllHooks=function(){k=wV()},t}var EV=TV();function DV(e,t,n){let r=e?.trim();if(!r||!r.startsWith(`/`)||r.startsWith(`//`)||r.includes(`://`)||r.includes(`\\`))return t;let i=r.split(/[?#]/,1)[0]||`/`;return n.some(e=>i===e||i.startsWith(`${e}/`))?r:t}function OV(e,t){let n=t?.trim();if(!n)return e;let r=e.indexOf(`#`),i=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r):``;return`${i}${i.includes(`?`)?`&`:`?`}returnTo=${encodeURIComponent(n)}${a}`}var kV=[`/notes/`,`/tasks/`,`/projects/`];function AV(e,t){let n=e.split(/[?#]/,1)[0]??``;if(!kV.some(e=>n.startsWith(e)))return e;let r=e.slice(n.length).split(`#`,1)[0];return new URLSearchParams(r.startsWith(`?`)?r.slice(1):r).has(`returnTo`)?e:OV(e,t)}function jV(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var MV=jV();function NV(e){MV=e}var PV={exec:()=>null};function FV(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function IV(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(RV.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var LV=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),RV={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:FV(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:FV(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:FV(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:FV(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:FV(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:FV(e=>RegExp(`^ {0,${e}}>`))},zV=/^(?:[ \t]*(?:\n|$))+/,BV=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,VV=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,HV=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,UV=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,WV=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,GV=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,KV=IV(GV).replace(/bull/g,WV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),qV=IV(GV).replace(/bull/g,WV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),JV=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,YV=/^[^\n]+/,XV=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ZV=IV(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,XV).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),QV=IV(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,WV).getRegex(),$V=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,eH=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,tH=IV(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,eH).replace(`tag`,$V).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nH=IV(JV).replace(`hr`,HV).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,$V).getRegex(),rH={blockquote:IV(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,nH).getRegex(),code:BV,def:ZV,fences:VV,heading:UV,hr:HV,html:tH,lheading:KV,list:QV,newline:zV,paragraph:nH,table:PV,text:YV},iH=IV(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,HV).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,$V).getRegex(),aH={...rH,lheading:qV,table:iH,paragraph:IV(JV).replace(`hr`,HV).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,iH).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,$V).getRegex()},oH={...rH,html:IV(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,eH).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:PV,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:IV(JV).replace(`hr`,HV).replace(`heading`,` *#{1,6} *[^
|
|
24
|
-
]`).replace(`lheading`,KV).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},sH=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cH=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,lH=/^( {2,}|\\)\n(?!\s*$)/,uH=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,dH=/[\p{P}\p{S}]/u,fH=/[\s\p{P}\p{S}]/u,pH=/[^\s\p{P}\p{S}]/u,mH=IV(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,fH).getRegex(),hH=/(?!~)[\p{P}\p{S}]/u,gH=/(?!~)[\s\p{P}\p{S}]/u,_H=/(?:[^\s\p{P}\p{S}]|~)/u,vH=IV(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,LV?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),yH=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,bH=IV(yH,`u`).replace(/punct/g,dH).getRegex(),xH=IV(yH,`u`).replace(/punct/g,hH).getRegex(),SH=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,CH=IV(SH,`gu`).replace(/notPunctSpace/g,pH).replace(/punctSpace/g,fH).replace(/punct/g,dH).getRegex(),wH=IV(SH,`gu`).replace(/notPunctSpace/g,_H).replace(/punctSpace/g,gH).replace(/punct/g,hH).getRegex(),TH=IV(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,pH).replace(/punctSpace/g,fH).replace(/punct/g,dH).getRegex(),EH=IV(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,dH).getRegex(),DH=IV(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,pH).replace(/punctSpace/g,fH).replace(/punct/g,dH).getRegex(),OH=IV(/\\(punct)/,`gu`).replace(/punct/g,dH).getRegex(),kH=IV(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),AH=IV(eH).replace(`(?:-->|$)`,`-->`).getRegex(),jH=IV(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,AH).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),MH=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,NH=IV(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,MH).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),PH=IV(/^!?\[(label)\]\[(ref)\]/).replace(`label`,MH).replace(`ref`,XV).getRegex(),FH=IV(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,XV).getRegex(),IH=IV(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,PH).replace(`nolink`,FH).getRegex(),LH=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,RH={_backpedal:PV,anyPunctuation:OH,autolink:kH,blockSkip:vH,br:lH,code:cH,del:PV,delLDelim:PV,delRDelim:PV,emStrongLDelim:bH,emStrongRDelimAst:CH,emStrongRDelimUnd:TH,escape:sH,link:NH,nolink:FH,punctuation:mH,reflink:PH,reflinkSearch:IH,tag:jH,text:uH,url:PV},zH={...RH,link:IV(/^!?\[(label)\]\((.*?)\)/).replace(`label`,MH).getRegex(),reflink:IV(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,MH).getRegex()},BH={...RH,emStrongRDelimAst:wH,emStrongLDelim:xH,delLDelim:EH,delRDelim:DH,url:IV(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,LH).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:IV(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,LH).getRegex()},VH={...BH,br:IV(lH).replace(`{2,}`,`*`).getRegex(),text:IV(BH.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},HH={normal:rH,gfm:aH,pedantic:oH},UH={normal:RH,gfm:BH,breaks:VH,pedantic:zH},WH={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},GH=e=>WH[e];function KH(e,t){if(t){if(RV.escapeTest.test(e))return e.replace(RV.escapeReplace,GH)}else if(RV.escapeTestNoEncode.test(e))return e.replace(RV.escapeReplaceNoEncode,GH);return e}function qH(e){try{e=encodeURI(e).replace(RV.percentDecode,`%`)}catch{return null}return e}function JH(e,t){let n=e.replace(RV.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(RV.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(RV.slashPipe,`|`);return n}function YH(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function XH(e){let t=e.split(`
|
|
25
|
-
`),n=t.length-1;for(;n>=0&&RV.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
26
|
-
`)}function ZH(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function QH(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function $H(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function eU(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
27
|
-
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
28
|
-
`)}var tU=class{options;rules;lexer;constructor(e){this.options=e||MV}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:XH(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=eU(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=YH(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:YH(t[0],`
|
|
29
|
-
`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:YH(t[0],`
|
|
30
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=YH(t[0],`
|
|
31
|
-
`).split(`
|
|
32
|
-
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|
33
|
-
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
34
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
|
|
35
|
-
${s}`:s,r=r?`${r}
|
|
36
|
-
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
|
|
37
|
-
`+e.join(`
|
|
38
|
-
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
|
|
39
|
-
`+e.join(`
|
|
40
|
-
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|
41
|
-
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=QH(t[2].split(`
|
|
42
|
-
`,1)[0],t[1].length),l=e.split(`
|
|
43
|
-
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
|
|
44
|
-
`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
|
|
45
|
-
`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
|
|
46
|
-
`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|
47
|
-
`+l}u=!l.trim(),r+=p+`
|
|
48
|
-
`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=XH(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:YH(t[0],`
|
|
49
|
-
`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=JH(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|
50
|
-
`):[],a={type:`table`,raw:YH(t[0],`
|
|
51
|
-
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(JH(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:YH(t[0],`
|
|
52
|
-
`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
53
|
-
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=YH(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=ZH(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),$H(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return $H(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},nU=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||MV,this.options.tokenizer=this.options.tokenizer||new tU,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:RV,block:HH.normal,inline:UH.normal};this.options.pedantic?(t.block=HH.pedantic,t.inline=UH.pedantic):this.options.gfm&&(t.block=HH.gfm,this.options.breaks?t.inline=UH.breaks:t.inline=UH.gfm),this.tokenizer.rules=t}static get rules(){return{block:HH,inline:UH}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(RV.carriageReturn,`
|
|
54
|
-
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(RV.tabCharGlobal,` `).replace(RV.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
|
|
55
|
-
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
56
|
-
`)?``:`
|
|
57
|
-
`)+i.raw,n.text+=`
|
|
58
|
-
`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
59
|
-
`)?``:`
|
|
60
|
-
`)+i.raw,n.text+=`
|
|
61
|
-
`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
|
|
62
|
-
`)?``:`
|
|
63
|
-
`)+i.raw,r.text+=`
|
|
64
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
65
|
-
`)?``:`
|
|
66
|
-
`)+i.raw,n.text+=`
|
|
67
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},rU=class{options;parser;constructor(e){this.options=e||MV}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(RV.notSpaceStart)?.[0],i=e.replace(RV.endingNewline,``)+`
|
|
68
|
-
`;return r?`<pre><code class="language-`+KH(r)+`">`+(n?i:KH(i,!0))+`</code></pre>
|
|
69
|
-
`:`<pre><code>`+(n?i:KH(i,!0))+`</code></pre>
|
|
70
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
71
|
-
${this.parser.parse(e)}</blockquote>
|
|
72
|
-
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
73
|
-
`}hr(e){return`<hr>
|
|
74
|
-
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|
75
|
-
`+r+`</`+i+`>
|
|
76
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
77
|
-
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
78
|
-
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
79
|
-
<thead>
|
|
80
|
-
`+t+`</thead>
|
|
81
|
-
`+r+`</table>
|
|
82
|
-
`}tablerow({text:e}){return`<tr>
|
|
83
|
-
${e}</tr>
|
|
84
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
85
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${KH(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=qH(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+KH(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=qH(e);if(i===null)return KH(n);e=i;let a=`<img src="${e}" alt="${KH(n)}"`;return t&&(a+=` title="${KH(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:KH(e.text)}},iU=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},aU=class e{options;renderer;textRenderer;constructor(e){this.options=e||MV,this.options.renderer=this.options.renderer||new rU,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new iU}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},oU=class{options;block;constructor(e){this.options=e||MV}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?nU.lex:nU.lexInline}provideParser(e=this.block){return e?aU.parse:aU.parseInline}},sU=class{defaults=jV();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=aU;Renderer=rU;TextRenderer=iU;Lexer=nU;Tokenizer=tU;Hooks=oU;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new rU(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new tU(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new oU;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];oU.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&oU.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return nU.lex(e,t??this.defaults)}parser(e,t){return aU.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?nU.lex:nU.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?aU.parse:aU.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?nU.lex:nU.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?aU.parse:aU.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
86
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+KH(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},cU=new sU;function lU(e,t){return cU.parse(e,t)}lU.options=lU.setOptions=function(e){return cU.setOptions(e),lU.defaults=cU.defaults,NV(lU.defaults),lU},lU.getDefaults=jV,lU.defaults=MV,lU.use=function(...e){return cU.use(...e),lU.defaults=cU.defaults,NV(lU.defaults),lU},lU.walkTokens=function(e,t){return cU.walkTokens(e,t)},lU.parseInline=cU.parseInline,lU.Parser=aU,lU.parser=aU.parse,lU.Renderer=rU,lU.TextRenderer=iU,lU.Lexer=nU,lU.lexer=nU.lex,lU.Tokenizer=tU,lU.Hooks=oU,lU.parse=lU,lU.options,lU.setOptions,lU.use,lU.walkTokens,lU.parseInline,aU.parse,nU.lex;function uU(e){if(typeof e==`function`&&(e={highlight:e}),!e||typeof e.highlight!=`function`)throw Error(`Must provide highlight function`);return typeof e.langPrefix!=`string`&&(e.langPrefix=`language-`),typeof e.emptyLangClass!=`string`&&(e.emptyLangClass=``),{async:!!e.async,walkTokens(t){if(t.type!==`code`)return;let n=dU(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||``)).then(fU(t));let r=e.highlight(t.text,n,t.lang||``);if(r instanceof Promise)throw Error(`markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.`);fU(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t==`object`&&(r=t.escaped,n=t.lang,t=t.text);let i=dU(n),a=i?e.langPrefix+yU(i):e.emptyLangClass,o=a?` class="${a}"`:``;return t=t.replace(/\n$/,``),`<pre><code${o}>${r?t:yU(t,!0)}\n</code></pre>`}}}}function dU(e){return(e||``).match(/\S*/)[0]}function fU(e){return t=>{typeof t==`string`&&t!==e.text&&(e.escaped=!0,e.text=t)}}var pU=/[&<>"']/,mU=new RegExp(pU.source,`g`),hU=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,gU=new RegExp(hU.source,`g`),_U={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},vU=e=>_U[e];function yU(e,t){if(t){if(pU.test(e))return e.replace(mU,vU)}else if(hU.test(e))return e.replace(gU,vU);return e}var bU=e(n(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},L=I(`//`,`$`),R=I(`/\\*`,`\\*/`),z=I(`#`,`$`),B=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:R,C_LINE_COMMENT_MODE:L,C_NUMBER_MODE:{scope:`number`,begin:O,relevance:0},C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:D,relevance:0},NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:{scope:`title`,begin:T,relevance:0},UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:E,relevance:0}});function V(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function H(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function U(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=V,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function W(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function G(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function K(e,t){e.relevance===void 0&&(e.relevance=1)}var ee=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},q=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],te=`keyword`;function ne(e,t,n=te){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,ne(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,re(n[0],n[1])]})}}function re(e,t){return t?Number(t):+!ie(e)}function ie(e){return q.includes(e.toLowerCase())}var ae={},oe=e=>{console.error(e)},se=(e,...t)=>{console.log(`WARN: ${e}`,...t)},J=(e,t)=>{ae[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ae[`${e}/${t}`]=!0)},ce=Error();function le(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function ue(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw oe(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),ce;if(typeof e.beginScope!=`object`||e.beginScope===null)throw oe(`beginScope must be object`),ce;le(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function de(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw oe(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),ce;if(typeof e.endScope!=`object`||e.endScope===null)throw oe(`endScope must be object`),ce;le(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function fe(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function pe(e){fe(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),ue(e),de(e)}function me(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(C(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[H,G,pe,ee].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[U,W,K].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=ne(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return ge(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function he(e){return e?e.endsWithParent||he(e.starts):!1}function ge(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:he(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var _e=`11.11.1`,ve=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},ye=i,be=a,xe=Symbol(`nomatch`),Se=7,Ce=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(se(s.replace(`{}`,n[1])),se(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(J(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),J(`10.7.0`,`Please use highlight(code, options) instead.
|
|
87
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};z(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,z(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Se&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(R=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return xe;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}else if(r.type===`end`){let e=C(r);if(e!==xe)return e}if(r.type===`illegal`&&a===``)return P+=`
|
|
88
|
-
`,1;if(L>1e5&&L>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw oe(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=me(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,L=0,R=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){L++,R?R=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:ye(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:ye(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:ye(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(z(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new ve(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),z(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=be(l,e)}let E=()=>{k(),J(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),J(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(oe(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)oe(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function L(e){I(e),a.push(e)}function R(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function z(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function V(e){return J(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),J(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:V,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:be,addPlugin:L,removePlugin:R}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=_e,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in B)typeof B[e]==`object`&&n(B[e]);return Object.assign(e,B),e},we=Ce({});we.newInstance=()=>Ce({}),t.exports=we,we.HighlightJS=we,we.default=we}))()).default;function xU(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:`comment`}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let c={match:/\\"/},l={className:`string`,begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},f=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),p={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],h=[`true`,`false`],g={match:/(\/[a-z._-]+)+/},_=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],v=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],y=`autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp`.split(`.`),b=`chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:h,built_in:[..._,...v,`set`,`shopt`,...y,...b]},contains:[f,e.SHEBANG(),p,d,a,o,g,s,c,l,u,n]}}var SU=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),CU=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),wU=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),TU=[...CU,...wU],EU=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),DU=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),OU=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),kU=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function AU(e){let t=e.regex,n=SU(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i=/@-?\w[\w]*(-\w+)*/,a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+DU.join(`|`)+`)`},{begin:`:(:)?(`+OU.join(`|`)+`)`}]},n.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+kU.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...a,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:EU.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...a,n.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+TU.join(`|`)+`)\\b`}]}}var jU=`[A-Za-z$_][0-9A-Za-z$_]*`,MU=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),NU=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],PU=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),FU=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],IU=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],LU=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],RU=[].concat(IU,PU,FU);function zU(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=jU,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:jU,keyword:MU,literal:NU,built_in:RU,"variable.language":LU},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:`[A-Za-z$_][0-9A-Za-z$_]*(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...PU,...FU]}},w={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function D(e){return t.concat(`(?!`,e.join(`|`),`)`)}let O={match:t.concat(/\b/,D([...IU,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},k={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},A={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},j=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(j)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},M,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:j,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},T,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},k,{match:`\\$[A-Za-z$_][0-9A-Za-z$_]*`,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},O,E,S,A,{match:/\$[(.]/}]}}function BU(e){let t={className:`attr`,begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:`punctuation`,relevance:0},r=[`true`,`false`,`null`],i={scope:`literal`,beginKeywords:r.join(` `)};return{name:`JSON`,aliases:[`jsonc`],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}function VU(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={begin:`^[-\\*]{3,}`,end:`$`},i={className:`code`,variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:`(~{3,})[^~](.|\\n)*?\\1~*[ ]*`},{begin:"```",end:"```+[ ]*$"},{begin:`~~~`,end:`~~~+[ ]*$`},{begin:"`.+?`"},{begin:`(?=^( {4}|\\t))`,contains:[{begin:`^( {4}|\\t)`,end:`(\\n)$`}],relevance:0}]},a={className:`bullet`,begin:`^[ ]*([*+-]|(\\d+\\.))(?=\\s+)`,end:`\\s+`,excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:`symbol`,begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:`link`,begin:/:\s*/,end:/$/,excludeBegin:!0}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:`string`,relevance:0,begin:`\\[`,end:`\\]`,excludeBegin:!0,returnEnd:!0},{className:`link`,relevance:0,begin:`\\]\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0},{className:`symbol`,relevance:0,begin:`\\]\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0}]},c={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(c,{contains:[]}),d=e.inherit(l,{contains:[]});c.contains.push(d),l.contains.push(u);let f=[n,s];return[c,l,u,d].forEach(e=>{e.contains=e.contains.concat(f)}),f=f.concat(c,l),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:f},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:f}]}]},n,a,c,l,{className:`quote`,begin:`^>\\s+`,contains:f,end:`$`},i,r,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function HU(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}var UU=`[A-Za-z$_][0-9A-Za-z$_]*`,WU=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),GU=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],KU=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),qU=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],JU=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],YU=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],XU=[].concat(JU,KU,qU);function ZU(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=UU,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:UU,keyword:WU,literal:GU,built_in:XU,"variable.language":YU},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:`[A-Za-z$_][0-9A-Za-z$_]*(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...KU,...qU]}},w={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function D(e){return t.concat(`(?!`,e.join(`|`),`)`)}let O={match:t.concat(/\b/,D([...JU,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},k={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},A={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},j=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(j)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},M,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:j,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},T,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},k,{match:`\\$[A-Za-z$_][0-9A-Za-z$_]*`,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},O,E,S,A,{match:/\$[(.]/}]}}function QU(e){let t=e.regex,n=ZU(e),r=UU,i=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},o={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},c={$pattern:UU,keyword:WU.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:GU,built_in:XU.concat(i),"variable.language":YU},l={className:`meta`,begin:`@[A-Za-z$_][0-9A-Za-z$_]*`},u=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let d=n.contains.find(e=>e.scope===`attr`),f=Object.assign({},d,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,f]),n.contains=n.contains.concat([l,a,o,f]),u(n,`shebang`,e.SHEBANG()),u(n,`use_strict`,s);let p=n.contains.find(e=>e.label===`func.def`);return p.relevance=0,Object.assign(n,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),n}function $U(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}bU.registerLanguage(`bash`,xU),bU.registerLanguage(`css`,AU),bU.registerLanguage(`html`,$U),bU.registerLanguage(`javascript`,zU),bU.registerLanguage(`json`,BU),bU.registerLanguage(`markdown`,VU),bU.registerLanguage(`md`,VU),bU.registerLanguage(`plaintext`,HU),bU.registerLanguage(`typescript`,QU),bU.registerLanguage(`xml`,$U),bU.registerAliases([`js`,`jsx`],{languageName:`javascript`}),bU.registerAliases([`ts`,`tsx`],{languageName:`typescript`}),bU.registerAliases([`sh`,`shell`,`zsh`],{languageName:`bash`});var eW=new sU(uU({emptyLangClass:`hljs`,langPrefix:`hljs language-`,highlight(e,t){let n=(t??``).trim()||`plaintext`,r=bU.getLanguage(n)?n:`plaintext`;return bU.highlight(e,{language:r}).value}}),{renderer:{html({text:e}){return tW(e)}},extensions:[{name:`punctuationBoundStrong`,level:`inline`,start(e){let t=e.indexOf(`**`);return t>=0?t:void 0},tokenizer(e){return iW(e,e=>this.lexer.inlineTokens(e))}}]});function tW(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}var nW=/^\p{P}$/u;function rW(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function iW(e,t){if(!e.startsWith(`**`)||e.startsWith(`***`))return;let n=0;for(let r=2;r<e.length-1;){if(e[r]===`\\`){r+=2;continue}if(e[r]==="`"){let t=r+1;for(;e[t]==="`";)t+=1;let i=t-r;n===0?n=i:n===i&&(n=0),r=t;continue}if(n===0&&e.startsWith(`**`,r)&&e[r+2]!==`*`&&!rW(e,r)){let n=e.slice(2,r),i=Array.from(n)[0]??``,a=Array.from(n).at(-1)??``;return n.length>0&&!/^\s|\s$/u.test(n)&&(nW.test(i)||nW.test(a))?{type:`strong`,raw:e.slice(0,r+2),text:n,tokens:t(n)}:void 0}r+=1}}var aW={gfm:!0,breaks:!1,async:!1};function oW(e,t){return eW.parse(e,{...aW,...t,async:!1})}var sW=/^(?: {0,3})\[[^\]]+\]:\s+\S+/m;function cW(e){if(!e||sW.test(e))return{stable:[],tail:e};let t=eW.lexer(e,aW),n=t.length-1;for(;n>0&&t[n]?.type===`space`;)--n;if(n<=0)return{stable:[],tail:e};let r=[];for(let e of t.slice(0,n)){let t=e.raw??``;t&&(e.type===`space`&&r.length>0?r[r.length-1]+=t:r.push(t))}let i=r.reduce((e,t)=>e+t.length,0);return{stable:r,tail:e.slice(i)}}function lW(e){let{stable:t,tail:n}=cW(e),r=0,i=t.map(e=>{let t={key:`markdown-${r}`,content:e,isTail:!1};return r+=e.length,t});return i.push({key:`markdown-${r}`,content:n,isTail:!0}),i}var uW=new Map,dW=new Set;function fW(){return typeof performance>`u`?Date.now():performance.now()}function pW(e){return null}function mW(e){let t=pW(e);t&&(t.active=!0,dW.add(e))}function hW(e){let t=uW.get(e);t&&(t.active=!1,dW.delete(e))}function gW(e,t){let n=pW(e);n&&(n.deltaCount+=1,n.latestContentLength=t)}function _W(e,t){let n=pW(e);if(!n)return;let r=fW();n.commitCount+=1,n.firstCommitAt??=r,n.lastCommitAt=r,n.latestContentLength=t}function vW(e,t){let n=pW(e);n&&(n.parseCount+=1,n.totalParseMs+=t,n.latestParseMs=t,n.longestParseMs=Math.max(n.longestParseMs,t))}function yW(e,t,n){let r=pW(e);r&&(r.stableBlockCount=t,r.tailLength=n)}function bW(e){return uW.get(e)?.latestParseMs??0}var xW=`png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|txt|md|json|html?|css|mjs?|cjs|js|ts|tsx|jsx|yaml|yml|toml|xml`,SW=new RegExp(String.raw`((?:\.\/)?(?:[A-Za-z0-9_.-]+\/)+[A-Za-z0-9_.-]+\.(?:${xW})(?::\d+|#L\d+)?)`,`gi`),CW=new RegExp(String.raw`(\/(?:Users|usr|var|opt|tmp|home|root|System|private|dev|media|mnt|Volumes|data)\/[^\s"'<>()|*?\n]+?\.(?:${xW})(?::\d+|#L\d+)?)`,`gi`),wW=new RegExp(String.raw`([A-Za-z]:[\\/][^"'<>()\n|*?=]+?\.(?:${xW})(?::\d+|#L\d+)?)`,`gi`);function TW(e){try{let t=new URL(e);return t.protocol!==`xopc:`||t.hostname!==`settings`?null:`/settings${t.pathname===`/`?``:t.pathname}${t.search}${t.hash}`}catch{return null}}function EW(e){try{let t=new URL(e);return t.protocol!==`xopc:`||t.hostname!==`workspace`||t.pathname!==`/file`||!t.searchParams.get(`path`)?.trim()?null:`/xopc/workspace/file${t.search}${t.hash}`}catch{return null}}function DW(e){let t=Ve(e),n=t?ze({...t,title:t.id,capabilities:[`open`]}):null;return n?`#${n}`:TW(e)??EW(e)??e}function OW(e){let t=String.raw`xopc:\/\/(?:settings|workspace\/file|open\?)[^\s[\]()<>"']*`,n=new RegExp(String.raw`\[([^\]\n]*)\]\((${t})\)`,`gi`),r=new RegExp(t,`gi`);return e.replace(n,(e,t,n)=>`[${/^xopc:\/\//i.test(t.trim())?`Open in xopc`:t}](${DW(n)})`).replace(r,DW)}function kW(e){let t=e.trim();if(!t)return null;if(t.startsWith(`xopc://workspace/file`)||t.startsWith(`/xopc/workspace/file`))try{let e=t.startsWith(`/xopc/`)?new URL(t,`https://xopc.local`):new URL(t),n=e.searchParams.get(`path`)?.trim()??``;if(!n)return null;t=n;let r=Number(e.searchParams.get(`line`)??``);return AW(t,Number.isFinite(r)&&r>0?Math.floor(r):void 0)}catch{return null}return jW(t)||(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith(`/`)||t.startsWith(`\\`)||t.includes(`..`)?null:AW(t))}function AW(e,t){let n=e.trim().replace(/\\/g,`/`);if(!n||n.includes(`..`))return null;let r=t,i=n.match(/#L(\d+)$/i);if(i?.[1])r=Number(i[1]),n=n.slice(0,-i[0].length);else{let e=n.match(/:(\d+)$/);e?.[1]&&(r=Number(e[1]),n=n.slice(0,-e[0].length))}return n=n.replace(/^\.\//,``),!n||n.startsWith(`/`)||/^[A-Za-z]:/.test(n)||!new RegExp(String.raw`\.(?:${xW})$`,`i`).test(n)?null:{path:n,line:Number.isFinite(r)&&r&&r>0?Math.floor(r):void 0,kind:`workspace-relative`}}function jW(e){let t=e.trim().replace(/\\/g,`/`);if(!t||/^[A-Za-z]:\/{2,}/.test(t)||!(t.startsWith(`/`)||/^[A-Za-z]:\//.test(t)))return null;let n,r=t.match(/#L(\d+)$/i);if(r?.[1])n=Number(r[1]),t=t.slice(0,-r[0].length);else{let e=t.match(/:(\d+)$/);e?.[1]&&(n=Number(e[1]),t=t.slice(0,-e[0].length))}return new RegExp(String.raw`\.(?:${xW})$`,`i`).test(t)?{path:t,line:Number.isFinite(n)&&n&&n>0?Math.floor(n):void 0,kind:`absolute`}:null}function MW(e){let t=[],n=[CW,wW,SW];for(let r of n){r.lastIndex=0;let n;for(;(n=r.exec(e))!==null;){let r=n[1];if(!r)continue;let i=n.index,a=i+r.length,o=e[i-1]??``;if(o===`:`||o===`@`)continue;let s=kW(r);s&&(s.kind===`workspace-relative`&&o===`/`||t.push({raw:r,start:i,end:a,target:s}))}}t.sort((e,t)=>e.start-t.start||t.end-e.end);let r=[],i=-1;for(let e of t)e.start<i||(r.push(e),i=e.end);return r}function NW(e){let t=e.parentElement;return t?!!t.closest(`a, code, pre, kbd, samp, textarea, script, style, [data-xopc-inline-file]`):!0}function PW(e){let t=e.ownerDocument,n=t.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){return!(e instanceof Text)||NW(e)?NodeFilter.FILTER_REJECT:MW(e.data).length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r=[],i;for(;i=n.nextNode();)r.push(i);for(let e of r){let n=e.data,r=MW(n);if(r.length===0)continue;let i=t.createDocumentFragment(),a=0;for(let e of r){e.start>a&&i.appendChild(t.createTextNode(n.slice(a,e.start)));let r=t.createElement(`a`);r.href=`#`,r.className=`markdown-file-link`,r.dataset.xopcFilePath=e.target.path,r.dataset.xopcFileKind=e.target.kind,e.target.line&&(r.dataset.xopcLine=String(e.target.line)),r.textContent=e.raw,i.appendChild(r),a=e.end}a!==0&&(a<n.length&&i.appendChild(t.createTextNode(n.slice(a))),e.parentNode?.replaceChild(i,e))}}function FW(e){for(let t of e.querySelectorAll(`a[href]`)){let e=t.getAttribute(`href`);if(!(!e||!/^https?:\/\//i.test(e)))try{let n=new URL(e);if(n.protocol!==`http:`&&n.protocol!==`https:`)continue;t.target=`_blank`;let r=new Set(t.rel.split(/\s+/).filter(Boolean));r.add(`noopener`),r.add(`noreferrer`),t.rel=[...r].join(` `)}catch{}}}function IW(e){let t=Math.max(1,e.trim().split(/\r?\n/).length);return Math.min(360,Math.max(180,120+t*18))}var LW=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,RW=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>`,zW=[`base`,`button`,`embed`,`form`,`iframe`,`input`,`link`,`meta`,`object`,`option`,`select`,`style`,`template`,`textarea`],BW=[`action`,`formaction`,`id`,`name`,`srcdoc`,`style`];function VW(e){return EV.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:zW,FORBID_ATTR:BW})}function HW(e){let t=e.replace(/@import\s+url\([^)]*\)\s*;?/gi,``);return EV.sanitize(t,{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},FORBID_TAGS:[`foreignObject`,`script`],FORBID_ATTR:[`href`,`xlink:href`]})}function UW(e){return e.querySelector(`code`)?.textContent??e.textContent??``}function WW(e){let t=e.querySelector(`code`);if(!t?.className)return`plaintext`;for(let e of t.className.split(/\s+/))if(e.startsWith(`language-`))return e.slice(9).trim()||`plaintext`;return`plaintext`}function GW(e,t){let n=document.createDocumentFragment(),r=document.createElement(`span`);r.className=`markdown-code-copy-inner`,r.innerHTML=e===`idle`?LW:RW;let i=document.createElement(`span`);return i.className=`markdown-code-copy-label`,i.textContent=e===`idle`?t.copy:t.copied,n.appendChild(r),n.appendChild(i),n}function KW(e){e.querySelectorAll(`[data-md-code-block]`).forEach(e=>{let t=e.querySelector(`:scope > pre`),n=e.parentNode;t&&n&&(n.insertBefore(t,e),e.remove())})}function qW(e,t){let n=e.querySelectorAll(`.markdown-body pre`),r=[];for(let e of n){if(e.closest(`[data-md-code-block]`)||e.closest(`[data-mermaid-fallback]`))continue;let n=e.parentNode;if(!n)continue;let i=document.createElement(`div`);i.className=`markdown-code-block`,i.setAttribute(`data-md-code-block`,``);let a=document.createElement(`div`);a.className=`markdown-code-block-header`;let o=document.createElement(`span`);o.className=`markdown-code-block-lang`,o.textContent=WW(e);let s=document.createElement(`button`);s.type=`button`,s.className=`markdown-code-copy-btn`,s.dataset.mdCodeCopy=``,s.title=t.copy,s.setAttribute(`aria-label`,t.copy),s.replaceChildren(GW(`idle`,t));let c=n=>{n.preventDefault(),n.stopPropagation(),k(UW(e)).then(e=>{!e||!s.isConnected||(s.replaceChildren(GW(`copied`,t)),s.title=t.copied,s.setAttribute(`aria-label`,t.copied),window.setTimeout(()=>{s.isConnected&&(s.replaceChildren(GW(`idle`,t)),s.title=t.copy,s.setAttribute(`aria-label`,t.copy))},2e3))})};s.addEventListener(`click`,c),a.appendChild(o),a.appendChild(s),i.appendChild(a),n.insertBefore(i,e),i.appendChild(e),r.push(()=>{s.removeEventListener(`click`,c);let t=e.parentElement;t?.matches(`[data-md-code-block]`)&&t.parentNode&&(t.parentNode.insertBefore(e,t),t.remove())})}return()=>{for(let e of r)e()}}function JW(e){return Array.from(e.querySelectorAll(`pre code.language-mermaid, pre code.hljs.language-mermaid`))}function YW(e){let t=e.closest(`pre`);if(!t?.parentNode)return null;let n=t.closest(`[data-md-code-block]`),r=n??document.createElement(`div`);return n||(t.parentNode.insertBefore(r,t),r.appendChild(t)),r.classList.add(`markdown-mermaid-shell`,`markdown-mermaid-pending`),r.style.setProperty(`--markdown-mermaid-placeholder-height`,`${IW(e.textContent??``)}px`),r}function XW(e,t,n){e.replaceChildren(...Array.from(t.childNodes)),e.className=`${t.className} markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.removeAttribute(`data-mermaid-diagram`),e.removeAttribute(`data-mermaid-fallback`),e.setAttribute(n?`data-mermaid-fallback`:`data-mermaid-diagram`,``)}function ZW({content:e,compact:t=!1,breaks:n=!1,className:r,codeCopy:i=!0,onWorkspaceFileOpen:a,openHttpLinksInNewTab:o=!1,renderMermaid:s=!0,streamingMetricsKey:l}){let d=u(),f=m(),p=I(e=>e.language),h=(0,Z.useMemo)(()=>{let e=j(p).chat;return{copy:e.codeBlockCopy,copied:e.messageCopied}},[p]),g=(0,Z.useMemo)(()=>{if(!e.trim())return``;let t=l?performance.now():0,r=VW(oW(OW(e),n?{breaks:!0}:void 0));return l&&vW(l,performance.now()-t),r},[e,n,l]),_=(0,Z.useRef)(null);return(0,Z.useLayoutEffect)(()=>{let e=_.current;if(e&&(KW(e),a&&PW(e),!(!i||!g)))return qW(e,h)},[i,g,h,a]),(0,Z.useLayoutEffect)(()=>{if(!o)return;let e=_.current;e&&FW(e)},[g,o]),(0,Z.useLayoutEffect)(()=>{let e=_.current;if(!e||!g||!s)return;let t=JW(e);if(t.length===0)return;let n=t.map(e=>({code:e,shell:YW(e)})).filter(e=>e.shell!==null),r=!1;return c(async()=>{let{renderMermaidBlock:e}=await import(`./mermaid-render-BbqDc_LQ.js`);return{renderMermaidBlock:e}},__vite__mapDeps([90,1])).then(({renderMermaidBlock:e})=>{if(!r)for(let{code:t,shell:r}of n){if(!t.isConnected||!r.isConnected)continue;let n=e(t.textContent??``),i=document.createElement(`template`);i.innerHTML=HW(n.html).trim();let a=i.content.firstElementChild;a&&XW(r,a,n.error)}}).catch(()=>{if(!r)for(let{shell:e}of n)e.classList.remove(`markdown-mermaid-pending`),e.setAttribute(`data-mermaid-fallback`,``)}),()=>{r=!0}},[s,g]),(0,Z.useLayoutEffect)(()=>{let e=_.current;if(!e)return;let t=t=>{let n=(t.target instanceof Element?t.target:null)?.closest(`a[href]`);if(!n||!e.contains(n))return;let r=n.dataset.xopcFilePath;if(r&&a){t.preventDefault();let e=Number(n.dataset.xopcLine??``);a({path:r,line:Number.isFinite(e)&&e>0?Math.floor(e):void 0,kind:n.dataset.xopcFileKind===`absolute`?`absolute`:`workspace-relative`});return}let i=n.getAttribute(`href`)??``,o=Ve(i),s=o?ze({...o,title:o.id,capabilities:[`open`]}):i.startsWith(`#/`)?i.slice(1):null;if(s){t.preventDefault(),f(AV(s,`${d.pathname}${d.search}`));return}let c=a?kW(i):null;if(c&&a){t.preventDefault(),a(c);return}i.startsWith(`/settings/`)&&(t.preventDefault(),window.location.hash=`#${i}`)};return e.addEventListener(`click`,t),()=>e.removeEventListener(`click`,t)},[d.pathname,d.search,f,a]),(0,$.jsx)(`div`,{ref:_,className:`markdown-render-boundary`,children:(0,$.jsx)(`div`,{className:[`markdown-body`,t?`markdown-compact`:``,r??``].filter(Boolean).join(` `),dangerouslySetInnerHTML:{__html:g}})})}var QW=(0,Z.memo)(ZW);QW.displayName=`MarkdownView`;var $W=()=>c(()=>import(`./markdown-split-DvVBewS4.js`),__vite__mapDeps([91,1,2,47,4,48,49])),eG=()=>c(()=>import(`./html-workspace-editor-bXK5tq64.js`),__vite__mapDeps([92,1,48,2,49])),tG=(0,Z.lazy)(()=>$W().then(e=>({default:e.MarkdownSplit}))),nG=(0,Z.lazy)(()=>eG().then(e=>({default:e.HtmlWorkspaceEditor})));function rG(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col px-4 py-3`,"aria-busy":!0,children:[(0,$.jsx)(`div`,{className:`h-4 w-11/12 animate-pulse rounded bg-surface-hover`}),(0,$.jsx)(`div`,{className:`mt-3 h-4 w-9/12 animate-pulse rounded bg-surface-hover`}),(0,$.jsx)(`div`,{className:`mt-3 h-4 w-10/12 animate-pulse rounded bg-surface-hover`})]}),e[0]=t):t=e[0],t}function iG(e){let t=e.lastIndexOf(`.`);return t>0?e.slice(t).toLowerCase():``}function aG(e){return{".ts":`typescript`,".tsx":`tsx`,".js":`javascript`,".jsx":`jsx`,".json":`json`,".css":`css`,".yml":`yaml`,".yaml":`yaml`,".py":`python`,".go":`go`,".rs":`rust`,".sh":`bash`}[iG(e)]??`plaintext`}function oG(e){let t=(0,Q.c)(12),{text:n,targetLine:r}=e,i=(0,Z.useRef)(null),a;if(t[0]!==n){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=/\r\n|\n|\r/,t[2]=e):e=t[2],a=n.split(e),t[0]=n,t[1]=a}else a=t[1];let o=a,s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{i.current?.scrollIntoView({block:`center`})},t[3]=s):s=t[3];let c;t[4]!==r||t[5]!==n?(c=[r,n],t[4]=r,t[5]=n,t[6]=c):c=t[6],(0,Z.useEffect)(s,c);let l;t[7]!==o||t[8]!==r?(l=o.map((e,t)=>{let n=t+1,a=n===r;return(0,$.jsxs)(`div`,{ref:a?i:void 0,className:a?`flex bg-accent-soft/60 text-fg`:`flex`,"data-line":n,children:[(0,$.jsx)(`span`,{className:`w-12 shrink-0 select-none pr-3 text-right text-fg-subtle`,children:n}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 whitespace-pre-wrap break-words`,children:e||` `})]},n)}),t[7]=o,t[8]=r,t[9]=l):l=t[9];let u;return t[10]===l?u=t[11]:(u=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto px-4 py-3`,children:(0,$.jsx)(`div`,{className:`min-w-max font-mono text-xs leading-relaxed text-fg`,children:l})}),t[10]=l,t[11]=u),u}function sG(e,t){let n=e.textContent??``,r=e.descriptor.context===`workspace`,i=e.workspaceEditing;return t===`markdown`?r&&i?.markdownEditMode?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(rG,{}),children:(0,$.jsx)(tG,{initialContent:n,onSave:e=>void i?.onSaveMarkdown?.(e),isDark:(i?.isDark??e.resolvedTheme===`dark`)===!0,wordWrap:i?.markdownWordWrap===!0,onToggleWordWrap:i?.onToggleMarkdownWordWrap},e.descriptor.id)})}):(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-3`,children:(0,$.jsx)(QW,{content:n})}):t===`html`?r&&i?.htmlCodeMode?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(rG,{}),children:(0,$.jsx)(nG,{initialContent:n,onChange:e=>i?.onHtmlChange?.(e),isDark:(i?.isDark??e.resolvedTheme===`dark`)===!0},e.descriptor.id)})}):(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden px-2 pb-2 pt-1 sm:px-4`,children:(0,$.jsx)(`iframe`,{title:e.descriptor.fileName,className:`min-h-0 w-full flex-1 rounded-lg border border-edge-subtle bg-white dark:border-edge dark:bg-[#1e1e1e]`,srcDoc:n,sandbox:`allow-scripts allow-popups allow-popups-to-escape-sandbox allow-downloads allow-forms allow-modals`})}):e.targetLine&&e.targetLine>0?(0,$.jsx)(oG,{text:n,targetLine:e.targetLine}):t===`code`?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-3`,children:(0,$.jsx)(QW,{content:`\`\`\`${aG(e.descriptor.fileName)}\n${n}\n\`\`\``})}):(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-3`,children:(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words font-mono text-xs text-fg`,children:n})})}function cG(e){return sG(e,`text`)}function lG(e){return sG(e,`markdown`)}function uG(e){return sG(e,`code`)}function dG(e){return sG(e,`html`)}function fG(){return(0,Z.createElement)(`div`,{className:`px-4 py-6 text-sm text-fg-muted`},`Loading preview...`)}function pG(e,t,n,r=`binary`){let i=(0,Z.lazy)(n);return{id:e,readMode:r,capabilities:t,render:e=>(0,Z.createElement)(Z.Suspense,{fallback:fG()},(0,Z.createElement)(i,e))}}var mG={text:{id:`text`,readMode:`text`,capabilities:[`download`],render:e=>(0,Z.createElement)(cG,e)},markdown:{id:`markdown`,readMode:`text`,capabilities:[`download`,`edit`],render:e=>(0,Z.createElement)(lG,e)},code:{id:`code`,readMode:`text`,capabilities:[`download`],render:e=>(0,Z.createElement)(uG,e)},html:{id:`html`,readMode:`text`,capabilities:[`download`,`edit`],render:e=>(0,Z.createElement)(dG,e)},image:pG(`image`,[`download`,`zoom`,`rotate`],()=>c(()=>import(`./binary-plugins-DBRPyLYE.js`).then(e=>({default:e.InteractiveImagePreview})),__vite__mapDeps([93,1,4,2,94,95,8,7]))),pdf:pG(`pdf`,[`download`,`zoom`,`rotate`,`pageNavigation`,`print`],()=>c(()=>import(`./binary-plugins-DBRPyLYE.js`).then(e=>({default:e.PdfPreviewPluginView})),__vite__mapDeps([93,1,4,2,94,95,8,7]))),docx:pG(`docx`,[`download`],()=>c(()=>import(`./binary-plugins-DBRPyLYE.js`).then(e=>({default:e.DocxPreviewPluginView})),__vite__mapDeps([93,1,4,2,94,95,8,7]))),spreadsheet:pG(`spreadsheet`,[`download`],()=>c(()=>import(`./binary-plugins-DBRPyLYE.js`).then(e=>({default:e.SpreadsheetPreviewPluginView})),__vite__mapDeps([93,1,4,2,94,95,8,7]))),pptx:pG(`pptx`,[`download`],()=>c(()=>import(`./binary-plugins-DBRPyLYE.js`).then(e=>({default:e.PptxPreviewPluginView})),__vite__mapDeps([93,1,4,2,94,95,8,7]))),audio:pG(`audio`,[`download`],()=>c(()=>import(`./media-plugins-YVj7NVzD.js`).then(e=>({default:e.AudioPreviewPluginView})),__vite__mapDeps([96,1,2,94,95,8,7]))),video:pG(`video`,[`download`],()=>c(()=>import(`./media-plugins-YVj7NVzD.js`).then(e=>({default:e.VideoPreviewPluginView})),__vite__mapDeps([96,1,2,94,95,8,7]))),archive:pG(`archive`,[`download`],()=>c(()=>import(`./archive-plugin-qL07mwnY.js`).then(e=>({default:e.ArchivePreviewPluginView})),__vite__mapDeps([97,1,2,98,95,8,7]))),unsupported:pG(`unsupported`,[`download`],()=>c(()=>import(`./media-plugins-YVj7NVzD.js`).then(e=>({default:e.UnsupportedPreviewPluginView})),__vite__mapDeps([96,1,2,94,95,8,7])),`metadata`)};function hG(e){return mG[e]??mG.unsupported}function gG(e){let t=(0,Q.c)(82),{plugin:n,actions:r,controls:i,onZoomIn:a,onZoomOut:o,onZoomReset:s,onRotate:c,onSearchChange:l,showDownload:u}=e,d=u===void 0?!0:u,[f,p]=(0,Z.useState)(!1),m;t[0]===n.capabilities?m=t[1]:(m=n.capabilities.includes(`zoom`),t[0]=n.capabilities,t[1]=m);let h=m,g;t[2]===n.capabilities?g=t[3]:(g=n.capabilities.includes(`search`),t[2]=n.capabilities,t[3]=g);let _=g,v;t[4]===n.capabilities?v=t[5]:(v=n.capabilities.includes(`rotate`),t[4]=n.capabilities,t[5]=v);let y=v,b;t[6]!==i||t[7]!==n.capabilities?(b=n.capabilities.includes(`pageNavigation`)&&i.pageCount!=null&&i.pageCount>1,t[6]=i,t[7]=n.capabilities,t[8]=b):b=t[8];let x=b,S=d&&r.canDownload;if(!(h||_||y||x||S))return null;let C;if(t[9]!==r||t[10]!==S||t[11]!==x||t[12]!==y||t[13]!==_||t[14]!==h||t[15]!==i||t[16]!==c||t[17]!==l||t[18]!==a||t[19]!==o||t[20]!==s){if(C=[],x){let e=i.page<=1,n;t[22]===i?n=t[23]:(n=()=>i.setPage(Math.max(1,i.page-1)),t[22]=i,t[23]=n);let r;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(gb,{className:`size-3.5`}),t[24]=r):r=t[24];let a;t[25]!==e||t[26]!==n?(a=(0,$.jsx)(yG,{label:`Previous page`,disabled:e,onClick:n,children:r}),t[25]=e,t[26]=n,t[27]=a):a=t[27];let o;t[28]!==i.page||t[29]!==i.pageCount?(o=(0,$.jsxs)(`span`,{className:`min-w-16 px-1 text-center text-xs text-fg-muted`,children:[i.page,` / `,i.pageCount]}),t[28]=i.page,t[29]=i.pageCount,t[30]=o):o=t[30];let s=i.page>=(i.pageCount??1),c;t[31]===i?c=t[32]:(c=()=>i.setPage(Math.min(i.pageCount??i.page,i.page+1)),t[31]=i,t[32]=c);let l;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(hb,{className:`size-3.5`}),t[33]=l):l=t[33];let u;t[34]!==s||t[35]!==c?(u=(0,$.jsx)(yG,{label:`Next page`,disabled:s,onClick:c,children:l}),t[34]=s,t[35]=c,t[36]=u):u=t[36];let d;t[37]!==o||t[38]!==u||t[39]!==a?(d=(0,$.jsxs)(`div`,{className:`flex items-center gap-1 rounded-md border border-edge-subtle bg-surface-base p-0.5 dark:border-edge`,children:[a,o,u]},`page`),t[37]=o,t[38]=u,t[39]=a,t[40]=d):d=t[40],C.push(d)}if(h){let e;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(zv,{className:`size-3.5`}),t[41]=e):e=t[41];let n;t[42]===o?n=t[43]:(n=(0,$.jsx)(yG,{label:`Zoom out`,onClick:o,children:e}),t[42]=o,t[43]=n);let r;t[44]===i.zoom?r=t[45]:(r=Math.round(i.zoom*100),t[44]=i.zoom,t[45]=r);let c;t[46]!==s||t[47]!==r?(c=(0,$.jsxs)(`button`,{type:`button`,className:`min-w-14 rounded px-1.5 py-1 text-xs text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:s,title:`Reset zoom`,children:[r,`%`]}),t[46]=s,t[47]=r,t[48]=c):c=t[48];let l;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(xy,{className:`size-3.5`}),t[49]=l):l=t[49];let u;t[50]===a?u=t[51]:(u=(0,$.jsx)(yG,{label:`Zoom in`,onClick:a,children:l}),t[50]=a,t[51]=u);let d;t[52]!==u||t[53]!==n||t[54]!==c?(d=(0,$.jsxs)(`div`,{className:`flex items-center gap-1 rounded-md border border-edge-subtle bg-surface-base p-0.5 dark:border-edge`,children:[n,c,u]},`zoom`),t[52]=u,t[53]=n,t[54]=c,t[55]=d):d=t[55],C.push(d)}if(y){let e;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(My,{className:`size-3.5`}),t[56]=e):e=t[56];let n;t[57]===c?n=t[58]:(n=(0,$.jsx)(yG,{label:`Rotate`,onClick:c,children:e}),t[57]=c,t[58]=n),C.push(n)}if(_){let e;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Iy,{className:`size-3.5`,"aria-hidden":!0}),t[59]=e):e=t[59];let n;t[60]===l?n=t[61]:(n=e=>l(e.target.value),t[60]=l,t[61]=n);let r;t[62]!==i.searchQuery||t[63]!==n?(r=(0,$.jsxs)(`label`,{className:`flex min-w-40 items-center gap-1 rounded-md border border-edge-subtle bg-surface-base px-2 py-1 text-xs text-fg-muted dark:border-edge`,children:[e,(0,$.jsx)(`input`,{className:`min-w-0 flex-1 bg-transparent text-fg outline-none placeholder:text-fg-subtle`,value:i.searchQuery,onChange:n,placeholder:`Search`})]},`search`),t[62]=i.searchQuery,t[63]=n,t[64]=r):r=t[64],C.push(r)}if(S){let e;t[65]===r?e=t[66]:(e=()=>void r.onDownload(),t[65]=r,t[66]=e);let n;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(ou,{className:`size-3.5`}),t[67]=n):n=t[67];let i;t[68]===e?i=t[69]:(i=(0,$.jsx)(yG,{label:`Download`,onClick:e,children:n},`download`),t[68]=e,t[69]=i),C.push(i)}t[9]=r,t[10]=S,t[11]=x,t[12]=y,t[13]=_,t[14]=h,t[15]=i,t[16]=c,t[17]=l,t[18]=a,t[19]=o,t[20]=s,t[21]=C}else C=t[21];let w=C.length>4,T;t[70]!==w||t[71]!==C?(T=w?C.slice(0,3):C,t[70]=w,t[71]=C,t[72]=T):T=t[72];let E=T,D;t[73]!==w||t[74]!==C?(D=w?C.slice(3):[],t[73]=w,t[74]=C,t[75]=D):D=t[75];let O=D,k;t[76]!==f||t[77]!==O?(k=O.length>0?(0,$.jsxs)($.Fragment,{children:[f?(0,$.jsx)(`button`,{type:`button`,className:`fixed inset-0 z-40 cursor-default bg-transparent`,"aria-hidden":!0,tabIndex:-1,onPointerDown:e=>{e.preventDefault(),p(!1)}}):null,(0,$.jsx)(yG,{label:`More actions`,onClick:()=>p(vG),children:(0,$.jsx)(Du,{className:`size-3.5`})}),f?(0,$.jsx)(`div`,{role:`menu`,className:`absolute right-0 top-full z-50 mt-1 flex min-w-52 flex-col gap-1 rounded-md border border-edge bg-surface-panel p-1 shadow-popover`,children:O.map(_G)}):null]}):null,t[76]=f,t[77]=O,t[78]=k):k=t[78];let A;return t[79]!==k||t[80]!==E?(A=(0,$.jsxs)(`div`,{className:`relative flex shrink-0 items-center gap-1`,children:[E,k]}),t[79]=k,t[80]=E,t[81]=A):A=t[81],A}function _G(e,t){return(0,$.jsx)(`div`,{className:`flex min-w-0 items-center justify-end`,children:e},t)}function vG(e){return!e}function yG(e){let t=(0,Q.c)(6),{label:n,disabled:r,onClick:i,children:a}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=C(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg disabled:opacity-40`),t[0]=o):o=t[0];let s;return t[1]!==a||t[2]!==r||t[3]!==n||t[4]!==i?(s=(0,$.jsx)(`button`,{type:`button`,className:o,title:n,"aria-label":n,disabled:r,onClick:i,children:a}),t[1]=a,t[2]=r,t[3]=n,t[4]=i,t[5]=s):s=t[5],s}function bG(e){let t=(0,Q.c)(22),n;t[0]===e.type?n=t[1]:(n=hG(e.type),t[0]=e.type,t[1]=n);let r=n,[i,a]=(0,Z.useState)(1),[o,s]=(0,Z.useState)(0),[c,l]=(0,Z.useState)(1),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(``),m;t[2]===u?m=t[3]:(m=e=>{l(Math.max(1,Math.min(u??e,Math.floor(e))))},t[2]=u,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{a(1),s(0),l(1),d(null),p(``)},t[4]=g):g=t[4];let _;t[5]!==e.id||t[6]!==e.type?(_=[e.id,e.type],t[5]=e.id,t[6]=e.type,t[7]=_):_=t[7],(0,Z.useEffect)(g,_);let v;t[8]!==c||t[9]!==u||t[10]!==o||t[11]!==f||t[12]!==h||t[13]!==i?(v={zoom:i,rotation:o,page:c,pageCount:u,searchQuery:f,setPageCount:d,setPage:h},t[8]=c,t[9]=u,t[10]=o,t[11]=f,t[12]=h,t[13]=i,t[14]=v):v=t[14];let y=v,b,x,S,C;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>a(CG),x=()=>a(SG),S=()=>{a(1),s(0)},C=()=>s(xG),t[15]=b,t[16]=x,t[17]=S,t[18]=C):(b=t[15],x=t[16],S=t[17],C=t[18]);let w;return t[19]!==y||t[20]!==r?(w={plugin:r,controls:y,onZoomIn:b,onZoomOut:x,onZoomReset:S,onRotate:C,onSearchChange:p},t[19]=y,t[20]=r,t[21]=w):w=t[21],w}function xG(e){return(e+90)%360}function SG(e){return Math.max(.25,Number((e-.15).toFixed(2)))}function CG(e){return Math.min(4,Number((e+.15).toFixed(2)))}function wG(e){let t=(0,Q.c)(10),{controller:n,actions:r,showDownload:i}=e,a=i===void 0?!0:i,o;return t[0]!==r||t[1]!==n.controls||t[2]!==n.onRotate||t[3]!==n.onSearchChange||t[4]!==n.onZoomIn||t[5]!==n.onZoomOut||t[6]!==n.onZoomReset||t[7]!==n.plugin||t[8]!==a?(o=(0,$.jsx)(gG,{plugin:n.plugin,actions:r,controls:n.controls,onZoomIn:n.onZoomIn,onZoomOut:n.onZoomOut,onZoomReset:n.onZoomReset,onRotate:n.onRotate,onSearchChange:n.onSearchChange,showDownload:a}),t[0]=r,t[1]=n.controls,t[2]=n.onRotate,t[3]=n.onSearchChange,t[4]=n.onZoomIn,t[5]=n.onZoomOut,t[6]=n.onZoomReset,t[7]=n.plugin,t[8]=a,t[9]=o):o=t[9],o}function TG(e){let t=(0,Q.c)(23),n;t[0]===e.language?n=t[1]:(n=j(e.language),t[0]=e.language,t[1]=n);let r=n,i=bG(e.descriptor),a=e.controller??i,o;t[2]!==a||t[3]!==e.actions?(o=(0,$.jsx)(wG,{controller:a,actions:e.actions}),t[2]=a,t[3]=e.actions,t[4]=o):o=t[4];let s=o;if(e.loading){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-3 px-4 py-6`,"aria-busy":`true`,children:[(0,$.jsx)(BN,{className:`h-5 w-48 max-w-full`}),(0,$.jsx)(BN,{className:`h-4 w-full`}),(0,$.jsx)(BN,{className:`h-4 w-11/12`}),(0,$.jsx)(BN,{className:`h-4 w-3/4`}),(0,$.jsx)(BN,{className:`mt-3 min-h-48 flex-1 rounded-lg`})]}),t[5]=e):e=t[5],e}if(e.loadError){let n=(e.descriptor.context===`workspace`?r.workspace.loadError:r.chat.attachmentPreviewLoadError)+`: `+e.loadError,i;return t[6]===n?i=t[7]:(i=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-4`,children:(0,$.jsx)(`p`,{className:`text-sm text-red-600 dark:text-red-400`,children:n})}),t[6]=n,t[7]=i),i}if(e.descriptor.context===`attachment`&&e.showExtractedText&&e.descriptor.type!==`image`){let n=e.extractedText||r.chat.attachmentPreviewNoText,i;return t[8]===n?i=t[9]:(i=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-2 overflow-hidden`,children:(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto rounded-lg border border-edge-subtle bg-surface-hover/40 p-4 dark:border-edge`,children:(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words font-mono text-xs leading-relaxed text-fg-muted`,children:n})})}),t[8]=n,t[9]=i),i}let c;t[10]!==e.renderToolbar||t[11]!==s?(c=e.renderToolbar?e.renderToolbar(s):s,t[10]=e.renderToolbar,t[11]=s,t[12]=c):c=t[12];let l=`${e.descriptor.id}:${a.plugin.id}`,u;t[13]!==a.controls||t[14]!==e?(u={...e,controls:a.controls},t[13]=a.controls,t[14]=e,t[15]=u):u=t[15];let d;t[16]!==a.plugin.render||t[17]!==l||t[18]!==u?(d=(0,$.jsx)(EG,{pluginRender:a.plugin.render,props:u},l),t[16]=a.plugin.render,t[17]=l,t[18]=u,t[19]=d):d=t[19];let f;return t[20]!==c||t[21]!==d?(f=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:[c,d]}),t[20]=c,t[21]=d,t[22]=f):f=t[22],f}function EG(e){let t=(0,Q.c)(5),{pluginRender:n,props:r}=e,i;t[0]!==n||t[1]!==r?(i=n(r),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a;return t[3]===i?a=t[4]:(a=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:i}),t[3]=i,t[4]=a),a}function DG(e){return e.id?String(e.id):`${e.name}:${e.uri??``}`}function OG(){return{id:`__empty__`,context:`attachment`,fileName:``,mimeType:`application/octet-stream`,type:`unsupported`,source:{kind:`inline`}}}function kG(e){let t=(0,Q.c)(66),{open:n,attachment:r,authToken:i,sessionKey:a,language:o}=e,[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(!1),p;t[0]!==r||t[1]!==n?(p=n&&r?DG(r):null,t[0]=r,t[1]=n,t[2]=p):p=t[2];let m=p,h=(0,Z.useRef)(m);m!==h.current&&(h.current=m,c(n&&r?r:null),u(!1),f(!1));let g=s,_;bb0:{if(!g){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=OG(),t[3]=e):e=t[3],_=e;break bb0}let e=g.name??`attachment`,n,r;t[4]!==e||t[5]!==g.mimeType?(n=iB(e,g.mimeType),r=aB(e,n),t[4]=e,t[5]=g.mimeType,t[6]=n,t[7]=r):(n=t[6],r=t[7]);let i=r,o=g.id?String(g.id):`${e}:${g.uri??``}`,s;t[8]!==g.uri||t[9]!==a?(s=g.uri?{kind:`media-uri`,uri:g.uri,sessionKey:a}:{kind:`inline`},t[8]=g.uri,t[9]=a,t[10]=s):s=t[10];let c;t[11]!==e||t[12]!==n||t[13]!==g.size||t[14]!==o||t[15]!==s||t[16]!==i?(c={id:o,context:`attachment`,fileName:e,mimeType:n,size:g.size,type:i,source:s},t[11]=e,t[12]=n,t[13]=g.size,t[14]=o,t[15]=s,t[16]=i,t[17]=c):c=t[17],_=c}let v=_,y;t[18]===g?y=t[19]:(y=g?cP(g):void 0,t[18]=g,t[19]=y);let b=y,x=g?.uri,S;t[20]===v.type?S=t[21]:(S=oB(v.type),t[20]=v.type,t[21]=S);let C=S,w=!!(n&&x&&!b&&i&&(C===`binary`||C===`text`)),T;t[22]!==o||t[23]!==x||t[24]!==g?.taskId||t[25]!==a?(T=async()=>{let e=j(o).chat,t=await cB({uri:x,sessionKey:a,taskId:g?.taskId});if(!t.ok)throw t.reason===`http`?Error(`${e.attachmentPreviewLoadError} (HTTP ${t.status})`):Error(t.message);return t.buffer},t[22]=o,t[23]=x,t[24]=g?.taskId,t[25]=a,t[26]=T):T=t[26];let E=g?.taskId,D;t[27]!==i||t[28]!==b||t[29]!==o||t[30]!==x||t[31]!==n||t[32]!==C||t[33]!==a||t[34]!==E?(D=[n,x,i,o,b,E,a,C],t[27]=i,t[28]=b,t[29]=o,t[30]=x,t[31]=n,t[32]=C,t[33]=a,t[34]=E,t[35]=D):D=t[35];let O;t[36]===w?O=t[37]:(O={enabled:w,initial:null,errorData:null},t[36]=w,t[37]=O);let k=TA(T,D,O),A;bb1:{if(C!==`binary`){A=null;break bb1}if(b)try{let e;t[38]===b?e=t[39]:(e=pP(b),t[38]=b,t[39]=e),A=e;break bb1}catch{A=null;break bb1}if(w&&k.loading){A=null;break bb1}A=k.data??null}let M=A,N;t[40]===g?N=t[41]:(N=g?dP(g)??``:``,t[40]=g,t[41]=N);let P=N,F;t[42]!==P||t[43]!==k.data||t[44]!==o||t[45]!==C?(F=C===`text`?P||(k.data?new TextDecoder(`utf-8`,{fatal:!1}).decode(new Uint8Array(k.data)):j(o).chat.attachmentPreviewNoText):null,t[42]=P,t[43]=k.data,t[44]=o,t[45]=C,t[46]=F):F=t[46];let I=F,L=!!g?.extractedText,R=v.type===`pptx`&&P.length>3e5,z;t[47]!==i||t[48]!==b||t[49]!==o||t[50]!==x||t[51]!==n||t[52]!==C?(z=n&&x&&!b&&!i&&C===`binary`?j(o).chat.attachmentPreviewMissingAuth:null,t[47]=i,t[48]=b,t[49]=o,t[50]=x,t[51]=n,t[52]=C,t[53]=z):z=t[53];let B=z,V=k.error?k.error instanceof Error?k.error.message:String(k.error):null,H=d?null:B??V,U=w?k.loading:!1,W;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(W=()=>f(!0),t[54]=W):W=t[54];let G=P||null,K;return t[55]!==M||t[56]!==v||t[57]!==R||t[58]!==L||t[59]!==H||t[60]!==g||t[61]!==l||t[62]!==U||t[63]!==G||t[64]!==I?(K={preview:g,descriptor:v,fileType:v.type,fileName:v.fileName,loading:U,loadError:H,clearLoadError:W,textContent:I,binaryBuffer:M,hasExtractedText:L,extractedText:G,extractedTextTruncated:R,showExtractedText:l,setShowExtractedText:u},t[55]=M,t[56]=v,t[57]=R,t[58]=L,t[59]=H,t[60]=g,t[61]=l,t[62]=U,t[63]=G,t[64]=I,t[65]=K):K=t[65],K}function AG(e,t,n,r){var i=this,a=(0,Z.useRef)(null),o=(0,Z.useRef)(0),s=(0,Z.useRef)(0),c=(0,Z.useRef)(null),l=(0,Z.useRef)([]),u=(0,Z.useRef)(),d=(0,Z.useRef)(),f=(0,Z.useRef)(e),p=(0,Z.useRef)(!0),m=(0,Z.useRef)(),h=(0,Z.useRef)();f.current=e;var g=typeof window<`u`,_=!t&&t!==0&&g;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var v=!!(n||={}).leading,y=!(`trailing`in n)||!!n.trailing,b=!!n.flushOnExit&&y,x=`maxWait`in n,S=`debounceOnServer`in n&&!!n.debounceOnServer,C=x?Math.max(+n.maxWait||0,t):null,w=(0,Z.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){_&&cancelAnimationFrame(c.current),c.current=_?requestAnimationFrame(e):setTimeout(e,t)},w=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||x&&e-o.current>=C},T=function(t){return c.current=null,y&&l.current?e(t):(l.current=u.current=null,d.current)},E=function e(){var r=Date.now();if(v&&s.current===o.current&&D(),w(r))return T(r);if(p.current){var i=t-(r-a.current);n(e,x?Math.min(i,C-(r-o.current)):i)}},D=function(){r&&r({})},O=function(){if(g||S){var r,s=Date.now(),f=w(s);if(l.current=[].slice.call(arguments),u.current=i,a.current=s,b&&!m.current&&(m.current=function(){globalThis.document?.visibilityState===`hidden`&&h.current.flush()},(r=globalThis.document)==null||r.addEventListener==null||r.addEventListener(`visibilitychange`,m.current)),f){if(!c.current&&p.current)return o.current=a.current,n(E,t),v?e(a.current):d.current;if(x)return n(E,t),e(a.current)}return c.current||n(E,t),d.current}};return O.cancel=function(){var e=c.current;e&&(_?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},O.isPending=function(){return!!c.current},O.flush=function(){return c.current?T(Date.now()):d.current},O},[v,x,t,C,y,b,_,g,S,r]);return h.current=w,(0,Z.useEffect)(function(){return p.current=!0,function(){var e;b&&h.current.flush(),m.current&&=((e=globalThis.document)==null||e.removeEventListener==null||e.removeEventListener(`visibilitychange`,m.current),null),p.current=!1}},[b]),w}function jG(e,t){return e===t}function MG(e,t,n){var r=n&&n.equalityFn||jG,i=(0,Z.useRef)(e),a=(0,Z.useState)({})[1],o=AG((0,Z.useCallback)(function(e){i.current=e,a({})},[a]),t,n,a),s=(0,Z.useRef)(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}function NG(e){let t=(0,Q.c)(12),{projectId:n,sessionKey:r,agentId:i}=e,a;bb0:{let e;t[0]===n?e=t[1]:(e=n?.trim(),t[0]=n,t[1]=e);let o=e;if(o){let e;t[2]===o?e=t[3]:(e={projectId:o},t[2]=o,t[3]=e),a=e;break bb0}let s;t[4]===r?s=t[5]:(s=r?.trim(),t[4]=r,t[5]=s);let c=s;if(c){let e;t[6]===c?e=t[7]:(e={sessionKey:c},t[6]=c,t[7]=e),a=e;break bb0}let l;t[8]===i?l=t[9]:(l=i?.trim(),t[8]=i,t[9]=l);let u=l,d;t[10]===u?d=t[11]:(d=u?{agentId:u}:void 0,t[10]=u,t[11]=d),a=d}return a}function PG(e){return{descriptor:e,textContent:null,binaryBuffer:null,hostAbsolutePath:null,mtimeMs:null,loadError:null,loading:!1,pptxText:null,pptxTruncated:!1,pptxError:null}}function FG(e,t){switch(t.type){case`clear`:return PG(t.descriptor);case`loadStart`:return{...PG(t.descriptor),loading:!0};case`loadSuccess`:return{...e,descriptor:t.payload.descriptor,textContent:t.payload.textContent??null,binaryBuffer:t.payload.binaryBuffer??null,hostAbsolutePath:t.payload.hostAbsolutePath??null,mtimeMs:t.payload.mtimeMs??null,loadError:null,loading:!1};case`loadError`:return{...PG(t.descriptor),loadError:t.error};case`patchMtime`:return{...e,mtimeMs:t.mtimeMs};case`patchText`:return{...e,textContent:t.text};case`pptxClear`:return{...e,pptxText:null,pptxTruncated:!1,pptxError:null};case`pptxSuccess`:return{...e,pptxText:t.text,pptxTruncated:t.truncated,pptxError:null};case`pptxError`:return{...e,pptxText:null,pptxTruncated:!1,pptxError:t.error}}}function IG(e,t){switch(t.type){case`reset`:return{markdownEditMode:!1,htmlCodeMode:!1,saveStatus:`idle`};case`markdown`:return{...e,markdownEditMode:typeof t.value==`function`?t.value(e.markdownEditMode):t.value};case`html`:return{...e,htmlCodeMode:typeof t.value==`function`?t.value(e.htmlCodeMode):t.value};case`saveStatus`:return{...e,saveStatus:t.value}}}function LG({filePath:e,projectId:t,sessionKey:n,agentId:r}){let i=NG({projectId:t,sessionKey:n,agentId:r}),a=(0,Z.useMemo)(()=>{let t=e?rB(e):``,i=iB(t,hP(t)),a=e?aB(t,i):`unsupported`;return{id:e||`__empty__`,context:`workspace`,fileName:t,mimeType:i,type:a,source:{kind:`workspace`,path:e||``,sessionKey:n,agentId:r}}},[r,e,n]),[o,s]=(0,Z.useReducer)(FG,a,PG),[l,u]=(0,Z.useReducer)(IG,{markdownEditMode:!1,htmlCodeMode:!1,saveStatus:`idle`}),[d,f]=(0,Z.useState)([]),[p,m]=(0,Z.useState)([]),h=(0,Z.useRef)(void 0),g=(0,Z.useRef)(e);g.current!==e&&(g.current=e,u({type:`reset`})),(0,Z.useEffect)(()=>{if(!e){s({type:`clear`,descriptor:a});return}let t=!1;s({type:`loadStart`,descriptor:a});let n=oB(a.type),r=e=>{t||s({type:`loadError`,descriptor:a,error:e instanceof Error?e.message:String(e)})};return n===`metadata`?(Bz(e,i).then(e=>{t||s({type:`loadSuccess`,payload:{descriptor:a,hostAbsolutePath:e?.absolutePath??null,mtimeMs:typeof e?.mtimeMs==`number`?e.mtimeMs:null}})}).catch(r),()=>{t=!0}):(n===`text`?zz(e,i).then(({content:e,mtimeMs:n,absolutePath:r})=>{t||s({type:`loadSuccess`,payload:{descriptor:a,textContent:e,hostAbsolutePath:r??null,mtimeMs:typeof n==`number`?n:null}})}).catch(r):Promise.all([Hz(e,i),Bz(e,i).catch(()=>null)]).then(async([e,n])=>{let r=await e.arrayBuffer();t||s({type:`loadSuccess`,payload:{descriptor:a,binaryBuffer:r,hostAbsolutePath:n?.absolutePath??null,mtimeMs:typeof n?.mtimeMs==`number`?n.mtimeMs:null}})}).catch(r),()=>{t=!0})},[a,e,i]),(0,Z.useEffect)(()=>{if(!o.binaryBuffer||o.descriptor.type!==`pptx`){s({type:`pptxClear`});return}let e=!1;return s({type:`pptxClear`}),c(()=>import(`./attachment-process-heavy-B2_kr5EA.js`).then(e=>e.processPptx(o.binaryBuffer,o.descriptor.fileName)),__vite__mapDeps([99,1,4,100])).then(({extractedText:t})=>{if(e)return;let n=t.length>oP;s({type:`pptxSuccess`,text:n?t.slice(0,oP):t,truncated:n})}).catch(t=>{e||s({type:`pptxError`,error:t instanceof Error?t.message:String(t)})}),()=>{e=!0}},[o.binaryBuffer,o.descriptor.fileName,o.descriptor.type]);let _=(0,Z.useCallback)(async t=>{if(e){h.current!==void 0&&clearTimeout(h.current),u({type:`saveStatus`,value:`saving`});try{let{mtimeMs:n}=await Wz(e,t,i);typeof n==`number`&&s({type:`patchMtime`,mtimeMs:n}),u({type:`saveStatus`,value:`saved`}),h.current=setTimeout(()=>u({type:`saveStatus`,value:`idle`}),2e3)}catch{u({type:`saveStatus`,value:`error`}),h.current=setTimeout(()=>u({type:`saveStatus`,value:`idle`}),4e3)}}},[e,i]),v=AG(e=>void _(e),500),y=(0,Z.useCallback)(e=>{s({type:`patchText`,text:e}),v(e)},[v]),b=(0,Z.useCallback)(async()=>{if(!e)return;let t=rB(e);if(o.binaryBuffer){Kz(t,o.binaryBuffer,o.descriptor.mimeType||`application/octet-stream`);return}if(o.textContent!=null){Gz(t,o.textContent);return}let n=await Hz(e,i);Kz(t,await n.arrayBuffer(),o.descriptor.mimeType||n.type||`application/octet-stream`)},[e,o.binaryBuffer,o.descriptor.mimeType,o.textContent,i]),x=(0,Z.useCallback)(async()=>{if(!e)throw Error(`No workspace file selected`);let t=rB(e),n=o.descriptor.mimeType||`application/octet-stream`,r;return r=o.binaryBuffer?new Blob([o.binaryBuffer],{type:n}):o.textContent==null?await Hz(e,i):new Blob([o.textContent],{type:n}),new File([r],t,{type:o.descriptor.mimeType||r.type||`application/octet-stream`,lastModified:o.mtimeMs??Date.now()})},[e,o.binaryBuffer,o.descriptor.mimeType,o.mtimeMs,o.textContent,i]),S=!o.loading&&!!e,C=$E()&&!!o.hostAbsolutePath&&!!window.electronAPI?.shell?.openPath,w=$E()&&!!o.hostAbsolutePath&&!!window.electronAPI?.shell?.chooseAppAndOpenPath,T=(0,Z.useCallback)(async()=>{let e=o.hostAbsolutePath;if(!$E()||!e||!window.electronAPI?.shell){m([]),f([]);return}try{if(window.electronAPI.shell.getOpenWithAppsForPath){let t=await window.electronAPI.shell.getOpenWithAppsForPath(e);m(t.recommended.map(e=>({name:e.name,path:e.path}))),f(t.recent.map(e=>({name:e.name,path:e.path,lastUsedAt:e.lastUsedAt})))}}catch{m([]),f([])}},[o.hostAbsolutePath]);(0,Z.useEffect)(()=>{T()},[T]);let E=(0,Z.useCallback)(async()=>{let e=o.hostAbsolutePath;e&&window.electronAPI?.shell?.openPath&&await window.electronAPI.shell.openPath(e)},[o.hostAbsolutePath]),D=(0,Z.useCallback)(async()=>{let e=o.hostAbsolutePath;!e||!window.electronAPI?.shell?.chooseAppAndOpenPath||(await window.electronAPI.shell.chooseAppAndOpenPath(e)).ok&&T()},[o.hostAbsolutePath,T]),O=(0,Z.useCallback)(async e=>{let t=o.hostAbsolutePath;!t||!e||!window.electronAPI?.shell?.openPathWithApp||(await window.electronAPI.shell.openPathWithApp(t,e)).ok&&T()},[o.hostAbsolutePath,T]),k=$E()&&!!o.hostAbsolutePath&&!!window.electronAPI?.shell?.showItemInFolder,A=(0,Z.useCallback)(async()=>{let e=o.hostAbsolutePath;e&&window.electronAPI?.shell?.showItemInFolder&&await window.electronAPI.shell.showItemInFolder(e)},[o.hostAbsolutePath]);return{...o,extractedText:o.descriptor.type===`pptx`?o.pptxText:null,extractedTextTruncated:o.pptxTruncated,markdownEditMode:l.markdownEditMode,setMarkdownEditMode:e=>u({type:`markdown`,value:e}),htmlCodeMode:l.htmlCodeMode,setHtmlCodeMode:e=>u({type:`html`,value:e}),saveStatus:l.saveStatus,onSaveMarkdown:_,onHtmlChange:y,onDownload:b,createAttachmentFile:x,canDownload:S,canOpenWithSystemApp:C,onOpenWithSystemApp:E,canChooseOpenWithApp:w,onChooseOpenWithApp:D,recommendedOpenWithApps:p,recentOpenWithApps:d,onOpenWithRecentApp:O,canRevealInFolder:k,onRevealInFolder:A}}var RG=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),zG=`VisuallyHidden`,BG=Z.forwardRef((e,t)=>(0,$.jsx)(ue.span,{...e,ref:t,style:{...RG,...e.style}}));BG.displayName=zG;var VG=BG,[HG,Wse]=ae(`Tooltip`,[he]),UG=he(),WG=`TooltipProvider`,GG=700,KG=`tooltip.open`,[qG,JG]=HG(WG),YG=e=>{let{__scopeTooltip:t,delayDuration:n=GG,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=Z.useRef(!0),s=Z.useRef(!1),c=Z.useRef(0);return Z.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,$.jsx)(qG,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:Z.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:Z.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:Z.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};YG.displayName=WG;var XG=`Tooltip`,[ZG,QG]=HG(XG),$G=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=JG(XG,e.__scopeTooltip),l=UG(t),[u,d]=Z.useState(null),f=le(),p=Z.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=Z.useRef(!1),[_,v]=de({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(KG))):c.onClose(),a?.(e)},caller:XG}),y=Z.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=Z.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=Z.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=Z.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return Z.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,$.jsx)(ge,{...l,children:(0,$.jsx)(ZG,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:Z.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:Z.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};$G.displayName=XG;var eK=`TooltipTrigger`,tK=Z.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=QG(eK,n),a=JG(eK,n),o=UG(n),s=w(t,Z.useRef(null),i.onTriggerChange),c=Z.useRef(!1),l=Z.useRef(!1),u=Z.useCallback(()=>c.current=!1,[]);return Z.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,$.jsx)(ye,{asChild:!0,...o,children:(0,$.jsx)(ue.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:ie(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:ie(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:ie(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:ie(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:ie(e.onBlur,i.onClose),onClick:ie(e.onClick,i.onClose)})})});tK.displayName=eK;var nK=`TooltipPortal`,[rK,iK]=HG(nK,{forceMount:void 0}),aK=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=QG(nK,t);return(0,$.jsx)(rK,{scope:t,forceMount:n,children:(0,$.jsx)(oe,{present:n||a.open,children:(0,$.jsx)(q,{asChild:!0,container:i,children:r})})})};aK.displayName=nK;var oK=`TooltipContent`,sK=Z.forwardRef((e,t)=>{let n=iK(oK,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=QG(oK,e.__scopeTooltip);return(0,$.jsx)(oe,{present:r||o.open,children:o.disableHoverableContent?(0,$.jsx)(fK,{side:i,...a,ref:t}):(0,$.jsx)(cK,{side:i,...a,ref:t})})}),cK=Z.forwardRef((e,t)=>{let n=QG(oK,e.__scopeTooltip),r=JG(oK,e.__scopeTooltip),i=Z.useRef(null),a=w(t,i),[o,s]=Z.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=Z.useCallback(()=>{s(null),d(!1)},[d]),p=Z.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=gK(r,hK(r,n.getBoundingClientRect())),a=_K(t.getBoundingClientRect());s(yK([...i,...a])),d(!0)},[d]);return Z.useEffect(()=>()=>f(),[f]),Z.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),Z.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!vK(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,$.jsx)(fK,{...e,ref:a})}),[lK,uK]=HG(XG,{isInside:!1}),dK=E(`TooltipContent`),fK=Z.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=QG(oK,n),l=UG(n),{onClose:u}=c;return Z.useEffect(()=>(document.addEventListener(KG,u),()=>document.removeEventListener(KG,u)),[u]),Z.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,$.jsx)(me,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,$.jsxs)(ve,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,$.jsx)(dK,{children:r}),(0,$.jsx)(lK,{scope:n,isInside:!0,children:(0,$.jsx)(VG,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});sK.displayName=oK;var pK=`TooltipArrow`,mK=Z.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=UG(n);return uK(pK,n).isInside?null:(0,$.jsx)(_e,{...i,...r,ref:t})});mK.displayName=pK;function hK(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function gK(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function _K(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function vK(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function yK(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),bK(t)}function bK(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var xK=YG,SK=$G,CK=tK,wK=aK,TK=sK,EK=mK,DK=`!z-[10000] max-w-[min(28rem,90vw)] rounded-md border border-edge bg-surface-panel px-2.5 py-2 text-left text-xs leading-snug text-fg shadow-lg`,OK=`block w-full min-w-0 truncate rounded border border-transparent bg-surface-hover px-2 py-1.5 font-mono text-xs text-fg focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent`,kK=`inline-flex w-[5.25rem] shrink-0 items-center justify-center gap-1 px-2 py-1 text-xs`;function AK(e){let t=(0,Q.c)(38),{label:n,text:r,compact:i,labels:a,monospace:o}=e,s=o===void 0?!0:o,c=(0,Z.useRef)(null),[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(!1),p;t[0]===r?p=t[1]:(p=async()=>{if(f(!1),await k(r)){u(!0),window.setTimeout(()=>u(!1),2e3);return}O(c.current),f(!0),window.setTimeout(()=>f(!1),2500)},t[0]=r,t[1]=p);let m=p,h=i&&`gap-0.5`,g;t[2]===h?g=t[3]:(g=C(`flex min-w-0 flex-col gap-1`,h),t[2]=h,t[3]=g);let _;t[4]===n?_=t[5]:(_=n?(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg-muted`,children:n}):null,t[4]=n,t[5]=_);let v=n??a.copy,y=!s&&`font-sans`,b;t[6]===y?b=t[7]:(b=C(OK,y),t[6]=y,t[7]=b);let x;t[8]!==v||t[9]!==b||t[10]!==r?(x=(0,$.jsx)(CK,{asChild:!0,children:(0,$.jsx)(`input`,{ref:c,readOnly:!0,type:`text`,value:r,"aria-label":v,className:b,onFocus:jK})}),t[8]=v,t[9]=b,t[10]=r,t[11]=x):x=t[11];let w;t[12]===r?w=t[13]:(w=(0,$.jsx)(wK,{children:(0,$.jsx)(TK,{side:`top`,sideOffset:6,collisionPadding:12,className:DK,children:(0,$.jsx)(`span`,{className:`break-all`,children:r})})}),t[12]=r,t[13]=w);let T;t[14]!==w||t[15]!==x?(T=(0,$.jsx)(`div`,{className:`min-w-0 overflow-hidden`,children:(0,$.jsxs)(SK,{children:[x,w]})}),t[14]=w,t[15]=x,t[16]=T):T=t[16];let E;t[17]===m?E=t[18]:(E=()=>void m(),t[17]=m,t[18]=E);let D;t[19]===l?D=t[20]:(D=l?(0,$.jsx)(S,{className:`size-3.5 shrink-0`}):(0,$.jsx)(tl,{className:`size-3.5 shrink-0`}),t[19]=l,t[20]=D);let A=l?a.copied:a.copy,j;t[21]===A?j=t[22]:(j=(0,$.jsx)(`span`,{className:`truncate`,children:A}),t[21]=A,t[22]=j);let M;t[23]!==E||t[24]!==D||t[25]!==j?(M=(0,$.jsxs)(Zw,{type:`button`,variant:`secondary`,className:kK,onClick:E,children:[D,j]}),t[23]=E,t[24]=D,t[25]=j,t[26]=M):M=t[26];let N;t[27]!==T||t[28]!==M?(N=(0,$.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_5.25rem] items-center gap-2`,children:[T,M]}),t[27]=T,t[28]=M,t[29]=N):N=t[29];let P;t[30]!==d||t[31]!==a.copyFailed?(P=d?(0,$.jsx)(`p`,{className:`text-xs text-red-600 dark:text-red-400`,children:a.copyFailed}):null,t[30]=d,t[31]=a.copyFailed,t[32]=P):P=t[32];let F;return t[33]!==N||t[34]!==P||t[35]!==g||t[36]!==_?(F=(0,$.jsx)(xK,{delayDuration:300,children:(0,$.jsxs)(`div`,{className:g,children:[_,N,P]})}),t[33]=N,t[34]=P,t[35]=g,t[36]=_,t[37]=F):F=t[37],F}function jK(e){return e.currentTarget.select()}function MK(e){let t=(0,Q.c)(12),{rows:n,compact:r,labels:i}=e,a=r&&`gap-1.5`,o;t[0]===a?o=t[1]:(o=C(`flex min-w-0 flex-col gap-2`,a),t[0]=a,t[1]=o);let s;if(t[2]!==r||t[3]!==i||t[4]!==n){let e;t[6]!==r||t[7]!==i?(e=e=>(0,$.jsx)(AK,{label:e.label,text:e.text,compact:r,labels:i},e.key),t[6]=r,t[7]=i,t[8]=e):e=t[8],s=n.map(e),t[2]=r,t[3]=i,t[4]=n,t[5]=s}else s=t[5];let c;return t[9]!==o||t[10]!==s?(c=(0,$.jsx)(`div`,{className:o,children:s}),t[9]=o,t[10]=s,t[11]=c):c=t[11],c}var NK=new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`,timeStyle:`short`}),PK=new Intl.DateTimeFormat(`en`,{dateStyle:`medium`,timeStyle:`short`});function FK(e,t,n,r){if(n===`public`){let n=[{key:`public`,label:r.publicUrlLabel,url:e}];return t&&n.push({key:`lan`,label:r.lanUrlLabel,url:t}),n}return n===`lan`?[{key:`lan`,label:r.lanUrlLabel,url:e}]:[{key:`local`,label:r.localUrlLabel,url:e}]}function IK(e){let t=(0,Q.c)(17),{shareUrl:n,lanUrl:r,reachability:i,compact:a}=e,o=I(RK),s;t[0]===o?s=t[1]:(s=j(o),t[0]=o,t[1]=s);let c=s.sharesSettings,l=r??null,u;t[2]!==i||t[3]!==n||t[4]!==c||t[5]!==l?(u=FK(n,l,i,c),t[2]=i,t[3]=n,t[4]=c,t[5]=l,t[6]=u):u=t[6];let d=u,f;t[7]!==c.copied||t[8]!==c.copy||t[9]!==c.copyFailed?(f={copy:c.copy,copied:c.copied,copyFailed:c.copyFailed},t[7]=c.copied,t[8]=c.copy,t[9]=c.copyFailed,t[10]=f):f=t[10];let p=f,m;t[11]===d?m=t[12]:(m=d.map(LK),t[11]=d,t[12]=m);let h;return t[13]!==a||t[14]!==p||t[15]!==m?(h=(0,$.jsx)(MK,{rows:m,compact:a,labels:p}),t[13]=a,t[14]=p,t[15]=m,t[16]=h):h=t[16],h}function LK(e){return{key:e.key,label:e.label,text:e.url}}function RK(e){return e.language}function zK(e,t){return(t===`zh`?NK:PK).format(new Date(e))}function BK(e){let t=(0,Q.c)(23),{reachability:n,reachabilityHint:r}=e,i=I(VK),a;t[0]===i?a=t[1]:(a=j(i),t[0]=i,t[1]=a);let o=a.sharesSettings;if(n===`public`){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Kp,{className:`size-3`}),t[2]=e):e=t[2];let n;return t[3]===o.reachPublic?n=t[4]:(n=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-emerald-600 dark:text-emerald-400`,children:[e,o.reachPublic]}),t[3]=o.reachPublic,t[4]=n),n}if(n===`lan`){let e;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(yw,{className:`size-3`}),t[5]=e):e=t[5];let n;t[6]===r?n=t[7]:(n=r?(0,$.jsxs)(`span`,{className:`text-fg-muted`,children:[` — `,r]}):null,t[6]=r,t[7]=n);let i;return t[8]!==o.reachLan||t[9]!==n?(i=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-amber-600 dark:text-amber-400`,children:[e,o.reachLan,n]}),t[8]=o.reachLan,t[9]=n,t[10]=i):i=t[10],i}let s;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(_w,{className:`size-3`}),t[11]=s):s=t[11];let c;t[12]===o.reachLocal?c=t[13]:(c=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-fg-subtle`,children:[s,o.reachLocal]}),t[12]=o.reachLocal,t[13]=c);let l=r??o.reachLocalHint,u;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Iu,{className:`size-3`}),t[14]=u):u=t[14];let d;t[15]===o.openTunnel?d=t[16]:(d=(0,$.jsxs)(y,{to:`/settings/remote-access?tab=public`,className:`inline-flex items-center gap-0.5 text-accent hover:underline`,children:[o.openTunnel,u]}),t[15]=o.openTunnel,t[16]=d);let f;t[17]!==l||t[18]!==d?(f=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-fg-muted`,children:[l,` `,d]}),t[17]=l,t[18]=d,t[19]=f):f=t[19];let p;return t[20]!==c||t[21]!==f?(p=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[c,f]}),t[20]=c,t[21]=f,t[22]=p):p=t[22],p}function VK(e){return e.language}function HK(e){let t=(0,Q.c)(24),{result:n}=e,r=I(UK),i;t[0]===r?i=t[1]:(i=j(r),t[0]=r,t[1]=i);let a=i.sharesSettings,o;t[2]===n.fileName?o=t[3]:(o=(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:n.fileName}),t[2]=n.fileName,t[3]=o);let s=a.expiresLabel,c;t[4]!==r||t[5]!==n.expiresAt?(c=zK(n.expiresAt,r),t[4]=r,t[5]=n.expiresAt,t[6]=c):c=t[6];let l;t[7]!==a.expiresLabel||t[8]!==c?(l=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:[s,`: `,c]}),t[7]=a.expiresLabel,t[8]=c,t[9]=l):l=t[9];let u;t[10]!==o||t[11]!==l?(u=(0,$.jsxs)(`div`,{children:[o,l]}),t[10]=o,t[11]=l,t[12]=u):u=t[12];let d;t[13]!==n.lanUrl||t[14]!==n.reachability||t[15]!==n.shareUrl?(d=(0,$.jsx)(IK,{shareUrl:n.shareUrl,lanUrl:n.lanUrl,reachability:n.reachability}),t[13]=n.lanUrl,t[14]=n.reachability,t[15]=n.shareUrl,t[16]=d):d=t[16];let f;t[17]!==n.reachability||t[18]!==n.reachabilityHint?(f=(0,$.jsx)(BK,{reachability:n.reachability,reachabilityHint:n.reachabilityHint}),t[17]=n.reachability,t[18]=n.reachabilityHint,t[19]=f):f=t[19];let p;return t[20]!==u||t[21]!==d||t[22]!==f?(p=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[u,d,f]}),t[20]=u,t[21]=d,t[22]=f,t[23]=p):p=t[23],p}function UK(e){return e.language}function WK(e){let t=(0,Q.c)(94),{params:n,loading:r,error:i,onConfirm:a,onCancel:o}=e,s=I(GK),c;t[0]===s?c=t[1]:(c=j(s),t[0]=s,t[1]=c);let l=c.sharesSettings,[u,d]=(0,Z.useState)(n.ttlMs??864e5),[f,p]=(0,Z.useState)(n.maxViews??null),[m,h]=(0,Z.useState)(n.description??``),g;t[2]!==m||t[3]!==f||t[4]!==a||t[5]!==u?(g=e=>{e.preventDefault(),a({ttlMs:u,maxViews:f,description:m.trim()||void 0})},t[2]=m,t[3]=f,t[4]=a,t[5]=u,t[6]=g):g=t[6];let _;t[7]===n.path?_=t[8]:(_=(0,$.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,title:n.path,children:n.path}),t[7]=n.path,t[8]=_);let v;t[9]===l.shareConfirmHint?v=t[10]:(v=(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:l.shareConfirmHint}),t[9]=l.shareConfirmHint,t[10]=v);let y;t[11]!==_||t[12]!==v?(y=(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge-subtle bg-surface-muted/45 px-3 py-2.5`,children:[_,v]}),t[11]=_,t[12]=v,t[13]=y):y=t[13];let b;t[14]===l.ttlLabel?b=t[15]:(b=(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg`,children:l.ttlLabel}),t[14]=l.ttlLabel,t[15]=b);let x;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>d(Number(e.target.value)),t[16]=x):x=t[16];let S=l.ttlOptions[`1h`],C;t[17]===S?C=t[18]:(C=(0,$.jsx)(xE,{value:36e5,children:S}),t[17]=S,t[18]=C);let w=l.ttlOptions[`6h`],T;t[19]===w?T=t[20]:(T=(0,$.jsx)(xE,{value:216e5,children:w}),t[19]=w,t[20]=T);let E=l.ttlOptions[`24h`],D;t[21]===E?D=t[22]:(D=(0,$.jsx)(xE,{value:864e5,children:E}),t[21]=E,t[22]=D);let O=l.ttlOptions[`3d`],k;t[23]===O?k=t[24]:(k=(0,$.jsx)(xE,{value:2592e5,children:O}),t[23]=O,t[24]=k);let A=l.ttlOptions[`7d`],M;t[25]===A?M=t[26]:(M=(0,$.jsx)(xE,{value:6048e5,children:A}),t[25]=A,t[26]=M);let N=l.ttlOptions[`30d`],P;t[27]===N?P=t[28]:(P=(0,$.jsx)(xE,{value:2592e6,children:N}),t[27]=N,t[28]=P);let F;t[29]!==r||t[30]!==T||t[31]!==D||t[32]!==k||t[33]!==M||t[34]!==P||t[35]!==C||t[36]!==u?(F=(0,$.jsxs)(wE,{value:u,disabled:r,onChange:x,children:[C,T,D,k,M,P]}),t[29]=r,t[30]=T,t[31]=D,t[32]=k,t[33]=M,t[34]=P,t[35]=C,t[36]=u,t[37]=F):F=t[37];let L;t[38]!==F||t[39]!==b?(L=(0,$.jsxs)(`label`,{className:`flex min-w-0 flex-col gap-1.5`,children:[b,F]}),t[38]=F,t[39]=b,t[40]=L):L=t[40];let R;t[41]===l.maxViewsLabel?R=t[42]:(R=(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg`,children:l.maxViewsLabel}),t[41]=l.maxViewsLabel,t[42]=R);let z=f??`unlimited`,B;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>p(e.target.value===`unlimited`?null:Number(e.target.value)),t[43]=B):B=t[43];let V;t[44]===l.maxViewsUnlimited?V=t[45]:(V=(0,$.jsx)(xE,{value:`unlimited`,children:l.maxViewsUnlimited}),t[44]=l.maxViewsUnlimited,t[45]=V);let H,U,W,G;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,$.jsx)(xE,{value:1,children:`1`}),U=(0,$.jsx)(xE,{value:5,children:`5`}),W=(0,$.jsx)(xE,{value:10,children:`10`}),G=(0,$.jsx)(xE,{value:50,children:`50`}),t[46]=H,t[47]=U,t[48]=W,t[49]=G):(H=t[46],U=t[47],W=t[48],G=t[49]);let K;t[50]!==r||t[51]!==z||t[52]!==V?(K=(0,$.jsxs)(wE,{value:z,disabled:r,onChange:B,children:[V,H,U,W,G]}),t[50]=r,t[51]=z,t[52]=V,t[53]=K):K=t[53];let ee;t[54]!==R||t[55]!==K?(ee=(0,$.jsxs)(`label`,{className:`flex min-w-0 flex-col gap-1.5`,children:[R,K]}),t[54]=R,t[55]=K,t[56]=ee):ee=t[56];let q;t[57]!==L||t[58]!==ee?(q=(0,$.jsxs)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-2`,children:[L,ee]}),t[57]=L,t[58]=ee,t[59]=q):q=t[59];let te;t[60]===l.descriptionLabel?te=t[61]:(te=(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg`,children:l.descriptionLabel}),t[60]=l.descriptionLabel,t[61]=te);let ne;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(ne=e=>h(e.target.value),t[62]=ne):ne=t[62];let re;t[63]!==m||t[64]!==r||t[65]!==l.descriptionPlaceholder?(re=(0,$.jsx)(`input`,{type:`text`,value:m,disabled:r,onChange:ne,placeholder:l.descriptionPlaceholder,className:`h-10 rounded-lg border border-edge bg-surface-subtle px-3 text-sm text-fg outline-none placeholder:text-fg-subtle focus:border-edge-strong disabled:opacity-60`}),t[63]=m,t[64]=r,t[65]=l.descriptionPlaceholder,t[66]=re):re=t[66];let ie;t[67]!==te||t[68]!==re?(ie=(0,$.jsxs)(`label`,{className:`mt-3 flex flex-col gap-1.5`,children:[te,re]}),t[67]=te,t[68]=re,t[69]=ie):ie=t[69];let ae;t[70]===i?ae=t[71]:(ae=i?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-red-600 dark:text-red-400`,children:i}):null,t[70]=i,t[71]=ae);let oe;t[72]!==q||t[73]!==ie||t[74]!==ae||t[75]!==y?(oe=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-3`,children:[y,q,ie,ae]}),t[72]=q,t[73]=ie,t[74]=ae,t[75]=y,t[76]=oe):oe=t[76];let se;t[77]!==r||t[78]!==o||t[79]!==l.cancel?(se=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,disabled:r,onClick:o,children:l.cancel}),t[77]=r,t[78]=o,t[79]=l.cancel,t[80]=se):se=t[80];let J;t[81]===r?J=t[82]:(J=r?(0,$.jsx)(Zg,{className:`size-4 animate-spin`}):null,t[81]=r,t[82]=J);let ce=r?l.creating:l.createButton,le;t[83]!==r||t[84]!==J||t[85]!==ce?(le=(0,$.jsxs)(Zw,{type:`submit`,disabled:r,children:[J,ce]}),t[83]=r,t[84]=J,t[85]=ce,t[86]=le):le=t[86];let ue;t[87]!==se||t[88]!==le?(ue=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-2 border-t border-edge px-4 py-3`,children:[se,le]}),t[87]=se,t[88]=le,t[89]=ue):ue=t[89];let de;return t[90]!==g||t[91]!==oe||t[92]!==ue?(de=(0,$.jsxs)(`form`,{className:`flex min-h-0 flex-1 flex-col`,onSubmit:g,children:[oe,ue]}),t[90]=g,t[91]=oe,t[92]=ue,t[93]=de):de=t[93],de}function GK(e){return e.language}function KK(e){let t=(0,Q.c)(36),{open:n,onOpenChange:r,loading:i,error:a,result:o,pendingParams:s,onConfirm:c}=e,l=I(qK),u;t[0]===l?u=t[1]:(u=j(l),t[0]=l,t[1]=u);let d=u.sharesSettings,f;t[2]===l?f=t[3]:(f=j(l),t[2]=l,t[3]=f);let p=f,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(GD,{className:`fixed inset-0 z-[70] bg-scrim backdrop-blur-[2px]`}),t[4]=m):m=t[4];let h;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(h=C(`fixed left-1/2 top-1/2 z-[71] flex h-[min(31rem,calc(100dvh-2rem))] w-[min(30rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col`,`overflow-hidden rounded-lg border border-edge bg-surface-panel shadow-popover outline-none`),t[5]=h):h=t[5];let g=o?d.shareCreated:d.shareConfirmTitle,_;t[6]===g?_=t[7]:(_=(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:g}),t[6]=g,t[7]=_);let v;t[8]!==s||t[9]!==o||t[10]!==d.createHint?(v=!o&&s?(0,$.jsx)(nO,{className:`mt-0.5 text-xs text-fg-muted`,children:d.createHint}):null,t[8]=s,t[9]=o,t[10]=d.createHint,t[11]=v):v=t[11];let y;t[12]!==_||t[13]!==v?(y=(0,$.jsxs)(`div`,{children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14];let b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(Aw,{className:`size-4`}),t[15]=b):b=t[15];let x;t[16]===d.cancel?x=t[17]:(x=(0,$.jsx)(iO,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-md text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":d.cancel,children:b})}),t[16]=d.cancel,t[17]=x);let S;t[18]!==x||t[19]!==y?(S=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-2 border-b border-edge px-4 py-3`,children:[y,x]}),t[18]=x,t[19]=y,t[20]=S):S=t[20];let w;t[21]!==a||t[22]!==i||t[23]!==p||t[24]!==c||t[25]!==r||t[26]!==s||t[27]!==o?(w=o?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-4`,children:(0,$.jsx)(HK,{result:o})}):s&&c?(0,$.jsx)(WK,{params:s,loading:!!i,error:a,onConfirm:c,onCancel:()=>r(!1)},`${s.path}:${s.sessionKey??s.agentId??``}`):i?(0,$.jsxs)(`p`,{className:`flex items-center gap-2 p-4 text-sm text-fg-muted`,children:[(0,$.jsx)(Zg,{className:`size-4 animate-spin`}),p.workspace.sharing]}):a?(0,$.jsx)(`p`,{className:`p-4 text-sm text-red-600 dark:text-red-400`,children:a}):null,t[21]=a,t[22]=i,t[23]=p,t[24]=c,t[25]=r,t[26]=s,t[27]=o,t[28]=w):w=t[28];let T;t[29]!==S||t[30]!==w?(T=(0,$.jsxs)(UD,{children:[m,(0,$.jsxs)(YD,{className:h,children:[S,w]})]}),t[29]=S,t[30]=w,t[31]=T):T=t[31];let E;return t[32]!==r||t[33]!==n||t[34]!==T?(E=(0,$.jsx)(LD,{open:n,onOpenChange:r,children:T}),t[32]=r,t[33]=n,t[34]=T,t[35]=E):E=t[35],E}function qK(e){return e.language}async function JK(){return B(z(`/api/shares`))}async function YK(e){return B(z(`/api/shares`),{method:`POST`,body:JSON.stringify(e)})}async function XK(e){return B(z(`/api/shares/${e}`),{method:`DELETE`})}async function ZK(){return B(z(`/api/shares`),{method:`DELETE`,body:JSON.stringify({expired:!0})})}async function QK(e,t){return B(z(`/api/shares/${e}`),{method:`PATCH`,body:JSON.stringify({extendTtlMs:t})})}function $K(){let[e,t]=(0,Z.useState)(!1),[n,r]=(0,Z.useState)(!1),[i,a]=(0,Z.useState)(null),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(null),u=(0,Z.useCallback)(e=>{t(!0),l(e),a(null),s(null)},[]),d=(0,Z.useCallback)(async e=>{if(!c||n)return null;r(!0),s(null);try{let t=await YK({...c,...e});return a(t.payload),t.payload}catch(e){return s(e instanceof Error?e.message:String(e)),null}finally{r(!1)}},[n,c]),f=(0,Z.useCallback)(()=>{a(null),s(null),r(!1),l(null)},[]);return{dialogOpen:e,loading:n,result:i,error:o,pendingParams:c,createShareLink:u,confirmShareLink:d,handleOpenChange:(0,Z.useCallback)(e=>{t(e),e||f()},[f])}}function eq(e){return e.map(e=>({name:e.name,path:e.path,absolutePath:e.absolutePath,isDirectory:e.isDirectory,children:e.isDirectory?[]:void 0}))}function tq(e,t,n){return e.map(e=>e.path===t?{...e,children:n}:e.isDirectory&&e.children?.length?{...e,children:tq(e.children,t,n)}:e)}function nq(e,t){let[n,r]=(0,Z.useState)([]),[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(null),u=(0,Z.useRef)(new Set),d=e.trim(),f=t?.trim()??``,p=f,m=f?``:d,h=(0,Z.useMemo)(()=>{if(p)return{sessionKey:p};if(m)return{agentId:m}},[p,m]);return{tree:n,loading:i,error:o,workspaceRoot:c,loadRoot:(0,Z.useCallback)(async()=>{a(!0),s(null),u.current.clear();try{let e=await Iz(``,h);r(eq(e.entries)),l(e.root?.trim()||null),u.current.add(``)}catch(e){s(e instanceof Error?e.message:String(e))}finally{a(!1)}},[h]),loadChildren:(0,Z.useCallback)(async e=>{if(!u.current.has(e)){u.current.add(e);try{let t=eq(await Lz(e,h));r(n=>tq(n,e,t))}catch{u.current.delete(e)}}},[h]),reset:(0,Z.useCallback)(()=>{r([]),s(null),l(null),u.current.clear()},[])}}function rq({workspacePath:e,className:t}){let n=j(I(e=>e.language)).workspace,[r,i]=(0,Z.useState)(!1),[a,o]=(0,Z.useState)([]),[s,c]=(0,Z.useState)([]),[l,u]=(0,Z.useState)(!1),d=$E()&&!!e.trim()&&!!window.electronAPI?.shell?.openPath,f=(0,Z.useCallback)(async()=>{let t=window.electronAPI?.shell;if(!t?.getOpenWithAppsForPath||!e.trim()){o([]),c([]);return}try{let n=await t.getOpenWithAppsForPath(e);o(n.recommended.map(e=>({name:e.name,path:e.path}))),c(n.recent.map(e=>({name:e.name,path:e.path})))}catch{o([]),c([])}},[e]);(0,Z.useEffect)(()=>{f()},[f]);let p=(0,Z.useCallback)(e=>{IR(`warning`,e||n.openLocationFailed,void 0,{duration:4e3})},[n.openLocationFailed]),m=(0,Z.useCallback)(async()=>{let t=window.electronAPI?.shell;if(!(!t?.openPath||!e)){u(!0);try{let n=await t.openPath(e);n.ok===!1&&p(n.error)}finally{u(!1),i(!1)}}},[p,e]),h=(0,Z.useCallback)(async t=>{let n=window.electronAPI?.shell;if(!(!n?.openPathWithApp||!e)){u(!0);try{let r=await n.openPathWithApp(e,t);r.ok===!1?p(r.error):f()}finally{u(!1),i(!1)}}},[f,p,e]),g=(0,Z.useCallback)(async()=>{let t=window.electronAPI?.shell;if(!(!t?.chooseAppAndOpenPath||!e)){u(!0);try{let n=await t.chooseAppAndOpenPath(e);n.ok===!1&&n.code!==`CANCELED`&&p(n.error),n.ok&&f()}finally{u(!1),i(!1)}}},[f,p,e]),_=(0,Z.useCallback)(async()=>{let t=await k(e);IR(t?`success`:`warning`,t?n.pathCopied:n.copyPathFailed,void 0,{duration:t?2500:4e3}),i(!1)},[n.copyPathFailed,n.pathCopied,e]);if(!d)return null;let v=`flex w-full items-center gap-2 rounded-md px-2.5 py-2 text-left text-sm text-fg hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-50`,y=a[0]??s[0],b=y?a.filter(e=>e.path!==y.path):a,x=y?s.filter(e=>e.path!==y.path):s;return(0,$.jsxs)(QT,{open:r,onOpenChange:e=>{i(e),e&&f()},children:[(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsxs)(Zw,{variant:`ghost`,className:C(`min-w-0 max-w-40 shrink rounded-md px-2 py-1.5 text-xs`,t),"aria-label":n.openLocation,title:n.openLocation,children:[(0,$.jsx)(ey,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:y?.name??n.openLocation}),(0,$.jsx)(fo,{className:`size-3.5 shrink-0`,"aria-hidden":!0})]})}),(0,$.jsx)(tE,{children:(0,$.jsxs)(nE,{align:`end`,side:`bottom`,sideOffset:6,className:`z-50 w-60 rounded-lg border border-edge bg-surface-panel p-1 shadow-popover outline-none`,children:[y?(0,$.jsxs)(`button`,{type:`button`,disabled:l,className:v,title:y.path,onClick:()=>void h(y.path),children:[(0,$.jsx)(ey,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:y.name})]}):null,(0,$.jsx)(`div`,{className:C(y&&`border-t border-edge pt-1`),children:(0,$.jsxs)(`button`,{type:`button`,disabled:l,className:v,onClick:()=>void m(),children:[(0,$.jsx)(zf,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),n.openInFileManager]})}),b.length>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`border-t border-edge px-2.5 pb-1 pt-2 text-[11px] font-medium uppercase tracking-wide text-fg-subtle`,children:n.recommendedApps}),b.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:l,className:v,title:e.path,onClick:()=>void h(e.path),children:[(0,$.jsx)(ey,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.name})]},e.path))]}):null,x.length>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`border-t border-edge px-2.5 pb-1 pt-2 text-[11px] font-medium uppercase tracking-wide text-fg-subtle`,children:n.recentApps}),x.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:l,className:v,title:e.path,onClick:()=>void h(e.path),children:[(0,$.jsx)(ey,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.name})]},e.path))]}):null,(0,$.jsxs)(`div`,{className:`mt-1 border-t border-edge pt-1`,children:[(0,$.jsxs)(`button`,{type:`button`,disabled:l,className:v,onClick:()=>void g(),children:[(0,$.jsx)(ey,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),n.chooseApp]}),(0,$.jsxs)(`button`,{type:`button`,className:v,onClick:()=>void _(),children:[(0,$.jsx)(tl,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),n.copyPath]})]})]})})]})}var iq=R(e=>({agentId:``,setAgentId:t=>e({agentId:t})})),aq=`xopc-web-workspace-panel-open`,oq=`xopc-web-workspace-panel-width-px`;function sq(){try{return globalThis.localStorage?.getItem(aq)===`1`}catch{return!1}}function cq(e){try{globalThis.localStorage?.setItem(aq,e?`1`:`0`)}catch{}}function lq(e){return Math.min(520,Math.max(200,Math.round(e)))}function uq(){try{let e=globalThis.localStorage?.getItem(oq);if(e==null)return 320;let t=Number.parseInt(e,10);return Number.isFinite(t)?lq(t):320}catch{return 320}}function dq(e){try{globalThis.localStorage?.setItem(oq,String(e))}catch{}}var fq=R((e,t)=>({open:sq(),setOpen:t=>{e({open:t}),queueMicrotask(()=>cq(t))},toggleOpen:()=>{t().setOpen(!t().open)},widthPx:uq(),setWidthPx:n=>{let r=lq(n);t().widthPx!==r&&(e({widthPx:r}),queueMicrotask(()=>dq(r)))}})),pq=R(e=>({path:null,line:null,projectId:null,setPath:(t,n,r)=>e({path:t,line:t&&typeof n==`number`&&Number.isFinite(n)&&n>0?Math.floor(n):null,projectId:t&&r?.trim()||null})})),mq=(0,Z.memo)(function(){let e=j(I(e=>e.language)),{pathname:t}=u(),{sessionKey:n}=d(),r=t.startsWith(`/chat`)&&n?decodeURIComponent(n):null,i=fq(e=>e.open),a=fq(e=>e.setOpen),o=fq(e=>e.widthPx),s=fq(e=>e.setWidthPx),[c,l]=(0,Z.useState)(!1),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(``),[g,_]=(0,Z.useState)([]),[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(null),S=pq(e=>e.path),w=pq(e=>e.setPath),T=iq(e=>e.agentId),{tree:E,loading:D,error:O,workspaceRoot:A,loadRoot:M,loadChildren:N,reset:P}=nq(T,r),F=r??T,L=(0,Z.useMemo)(()=>r==null?T.trim()?{agentId:T.trim()}:void 0:{sessionKey:r},[r,T]),R=m.trim(),{dialogOpen:z,loading:B,result:V,error:H,pendingParams:U,createShareLink:W,confirmShareLink:G,handleOpenChange:K}=$K(),ee=(0,Z.useCallback)(e=>{if(!i)return;e.preventDefault();let t=e.currentTarget,n=t.closest(`#app-workspace-panel`);t.setPointerCapture(e.pointerId),l(!0);let r=e.clientX,a=fq.getState().widthPx,o=e.pointerId,c=0,u=a,d=a,f=()=>{c=0,d=u,n?.style.setProperty(`--workspace-panel-px`,`${d}px`)},p=e=>{u=lq(a+(r-e.clientX)),c===0&&(c=window.requestAnimationFrame(f))},m=()=>{c!==0&&(window.cancelAnimationFrame(c),f());try{t.releasePointerCapture(o)}catch{}l(!1),s(d),window.removeEventListener(`pointermove`,p),window.removeEventListener(`pointerup`,m),window.removeEventListener(`pointercancel`,m)};window.addEventListener(`pointermove`,p),window.addEventListener(`pointerup`,m),window.addEventListener(`pointercancel`,m)},[i,s]);(0,Z.useEffect)(()=>{t.startsWith(`/chat`)||a(!1)},[t,a]),(0,Z.useEffect)(()=>{if(!i){P(),w(null);return}w(null),M()},[i,F,M,P,w]),(0,Z.useEffect)(()=>{if(!i)return;let e=e=>{if(e.key===`Escape`){if(f){e.preventDefault(),e.stopPropagation(),h(``),p(!1);return}pq.getState().path||a(!1)}};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[f,i,a]),(0,Z.useEffect)(()=>{if(!i||!f||!R){_([]),y(!1),x(null);return}let e=!1;y(!0),x(null),_([]);let t=window.setTimeout(()=>{Rz(R,L,50).then(t=>{e||_(t)}).catch(t=>{e||x(t instanceof Error?t.message:String(t))}).finally(()=>{e||y(!1)})},180);return()=>{e=!0,window.clearTimeout(t)}},[f,R,i,L]),(0,Z.useEffect)(()=>{if(!i||!window.matchMedia(`(max-width: 767px)`).matches)return;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[i]);let q=(0,Z.useCallback)(e=>{N(e)},[N]),te=(0,Z.useCallback)(async(t,n,r)=>{switch(t){case`preview`:if(n.isDirectory)return;w(n.path);break;case`download`:if(n.isDirectory)return;try{let e=rB(n.path);if(oB(aB(e))!==`text`)Kz(e,await(await Hz(n.path,L)).arrayBuffer(),hP(e)??`application/octet-stream`);else{let{content:t}=await zz(n.path,L);Gz(e,t)}}catch{}break;case`copyPath`:try{await k(n.absolutePath??n.path)&&IR(`success`,e.workspace.pathCopied,void 0,{duration:2500})}catch{}break;case`openDefault`:if(!n.absolutePath||!window.electronAPI?.shell?.openPath)return;await window.electronAPI.shell.openPath(n.absolutePath);break;case`openWith`:if(!n.absolutePath||!window.electronAPI?.shell?.chooseAppAndOpenPath)return;await window.electronAPI.shell.chooseAppAndOpenPath(n.absolutePath);break;case`openWithApp`:if(!n.absolutePath||!r||!window.electronAPI?.shell?.openPathWithApp)return;await window.electronAPI.shell.openPathWithApp(n.absolutePath,r);break;case`revealInFolder`:if(!n.absolutePath||!window.electronAPI?.shell?.showItemInFolder)return;await window.electronAPI.shell.showItemInFolder(n.absolutePath);break;case`share`:await W({path:n.path,...n.isDirectory?{kind:`directory`,directoryMode:`browse`}:{},...L});break;default:break}},[W,e.workspace.pathCopied,w,L]);return(0,$.jsxs)($.Fragment,{children:[i?(0,$.jsx)(`button`,{type:`button`,className:`fixed inset-0 z-40 bg-scrim md:hidden`,"aria-label":e.closeMenu,onClick:()=>a(!1)}):null,(0,$.jsx)(`aside`,{id:`app-workspace-panel`,"aria-label":e.workspace.title,"aria-hidden":!i,className:C(`flex min-h-0 flex-col overflow-hidden bg-surface-base`,`max-md:fixed max-md:right-0 max-md:top-0 max-md:z-50 max-md:h-[100dvh] max-md:shadow-popover`,`max-md:transition-transform max-md:duration-200 max-md:ease-out`,`motion-reduce:max-md:transition-none`,`max-md:w-[min(20rem,92vw)]`,i?`max-md:translate-x-0`:`max-md:pointer-events-none max-md:translate-x-full`,`md:relative md:h-full md:translate-x-0`,`motion-reduce:md:transition-none`,!i&&`md:pointer-events-none md:w-0 md:min-w-0 md:max-w-0 md:overflow-hidden`,i&&`app-workspace-panel-expanded-width md:shrink-0`,i&&c&&`workspace-panel-rail-resizing`),style:i?{"--workspace-panel-px":`${o}px`}:void 0,children:i?(0,$.jsxs)(`div`,{className:C(`relative flex h-full min-h-0 w-full min-w-0 flex-col overflow-x-hidden overflow-y-hidden bg-surface-base`),children:[(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":e.workspace.resizeHandleAria,onPointerDown:ee,className:C(`pointer-events-auto absolute left-0 top-0 z-20 hidden h-full w-2 cursor-col-resize md:block`,`before:content-[''] before:pointer-events-none before:absolute before:left-1/2 before:top-0 before:z-0 before:h-full before:w-px before:-translate-x-1/2`,`before:bg-transparent before:transition-[background-color] before:duration-150`,`hover:bg-surface-hover/20 hover:before:bg-edge/65 dark:hover:before:bg-edge/75`,c&&`bg-surface-hover/30 before:!bg-edge/80 dark:before:!bg-edge/85`,`transition-[background-color] duration-150`,`touch-none select-none`,Je)}),(0,$.jsxs)(`div`,{className:`flex h-11 shrink-0 items-center gap-2 border-b border-edge px-4 dark:border-edge`,children:[(0,$.jsx)(`h2`,{className:`sr-only`,children:e.workspace.title}),(0,$.jsx)(rq,{workspacePath:A??``}),(0,$.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-1`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:C(`size-9 shrink-0 rounded-md p-0`,f&&`bg-surface-hover text-fg`),"aria-label":e.workspace.search,title:e.workspace.search,"aria-pressed":f,onClick:()=>p(!0),children:(0,$.jsx)(Iy,{className:`size-4`,strokeWidth:1.75})}),(0,$.jsx)(xz,{className:`size-9 shrink-0 rounded-md p-0`,loading:D,label:e.cron.refresh,onClick:M}),(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`size-9 shrink-0 rounded-md p-0`,"aria-label":e.workspace.close,title:e.workspace.close,onClick:()=>a(!1),children:(0,$.jsx)(Aw,{className:`size-4`,strokeWidth:1.75})})]})]}),f?(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge bg-surface-muted/40 px-3 py-2`,children:(0,$.jsxs)(`div`,{className:`flex h-9 items-center gap-2 rounded-md border border-edge bg-surface-panel px-2 focus-within:border-accent focus-within:ring-2 focus-within:ring-accent/20`,children:[(0,$.jsx)(Iy,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`input`,{type:`text`,role:`searchbox`,value:m,onChange:e=>h(e.target.value),placeholder:e.workspace.searchPlaceholder,"aria-label":e.workspace.searchPlaceholder,className:`min-w-0 flex-1 bg-transparent text-sm text-fg outline-none placeholder:text-fg-subtle`}),(0,$.jsx)(`button`,{type:`button`,className:`flex size-7 shrink-0 items-center justify-center rounded-md text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":e.workspace.clearSearch,title:e.workspace.clearSearch,onClick:()=>{h(``),p(!1)},children:(0,$.jsx)(Aw,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})})]})}):null,O?(0,$.jsxs)(`p`,{className:`shrink-0 px-4 py-2 text-xs text-red-600 dark:text-red-400`,children:[e.workspace.loadError,`: `,O]}):null,R?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto py-2`,children:v?(0,$.jsxs)(`div`,{className:`space-y-2 px-3 py-1`,children:[(0,$.jsx)(BN,{className:`h-11 w-full`}),(0,$.jsx)(BN,{className:`h-11 w-full`}),(0,$.jsx)(BN,{className:`h-11 w-full`})]}):b?(0,$.jsxs)(`p`,{className:`px-3 py-2 text-xs text-red-600 dark:text-red-400`,children:[e.workspace.loadError,`: `,b]}):g.length===0?(0,$.jsx)(`p`,{className:`px-3 py-2 text-xs text-fg-muted`,children:e.workspace.noSearchResults}):g.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:C(`flex w-full min-w-0 items-center gap-2 px-3 py-2 text-left hover:bg-surface-hover`,S===e.path&&`bg-accent-soft text-accent-fg`),onClick:()=>w(e.path),title:e.path,children:[(0,$.jsx)(Ld,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm text-fg`,children:e.name}),(0,$.jsx)(`span`,{className:`block truncate text-xs text-fg-subtle`,children:e.path})]})]},e.path))}):(0,$.jsx)(Nz,{tree:E,selectedPath:S,onSelectFile:e=>w(e),onExpandDir:q,onAction:te,actionLabels:{preview:e.workspace.preview,download:e.workspace.download,copyPath:e.workspace.copyPath,share:e.workspace.shareLink,...$E()?{openDefault:e.workspace.openSystemApp,openWith:e.workspace.chooseApp,revealInFolder:e.workspace.revealInFolder,recommendedApps:e.workspace.recommendedApps}:{}},emptyHint:e.workspace.emptyDir})]}):null}),(0,$.jsx)(KK,{open:z,onOpenChange:K,loading:B,error:H,result:V,pendingParams:U,onConfirm:e=>void G(e)})]})}),hq=300*1e3,gq=Math.round(hq/6e4);function _q(e){return`${Math.floor(e/60)}:${(e%60).toString().padStart(2,`0`)}`}function vq(e){let t=(0,Q.c)(7),{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onCancel:s}=e;if(!n)return null;let c;return t[0]!==a||t[1]!==s||t[2]!==o||t[3]!==n||t[4]!==i||t[5]!==r?(c=(0,$.jsx)(yq,{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onCancel:s},n.requestId),t[0]=a,t[1]=s,t[2]=o,t[3]=n,t[4]=i,t[5]=r,t[6]=c):c=t[6],c}function yq(e){let t=(0,Q.c)(70),{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onCancel:s}=e,[c,l]=(0,Z.useState)(``),[u]=(0,Z.useState)(xq),[d,f]=(0,Z.useState)(0),p=(0,Z.useRef)(null),m,h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>{let e=window.setInterval(()=>f(bq),1e3);return()=>window.clearInterval(e)},h=[],t[0]=m,t[1]=h):(m=t[0],h=t[1]),(0,Z.useEffect)(m,h);let g,_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{p.current?.focus()},_=[],t[2]=g,t[3]=_):(g=t[2],_=t[3]),(0,Z.useEffect)(g,_);let v;t[4]===o?v=t[5]:(v=e=>{o(e)},t[4]=o,t[5]=v);let y=v,b=Math.max(0,Math.ceil((u-Date.now())/1e3)),x=`clarify-meta-${n.requestId}`,S=i?`clarify-err-${n.requestId}`:void 0,w;t[6]!==s||t[7]!==r?(w=e=>{e.key===`Escape`&&!r&&(e.preventDefault(),e.stopPropagation(),s())},t[6]=s,t[7]=r,t[8]=w):w=t[8];let T=w,E=Array.isArray(n.choices)&&n.choices.length>=2,D;t[9]!==a.clarifyDefaultChoice||t[10]!==n.default?(D=n.default?a.clarifyDefaultChoice.replace(`{{text}}`,n.default):null,t[9]=a.clarifyDefaultChoice,t[10]=n.default,t[11]=D):D=t[11];let O=D,k;t[12]===a.clarifyServerTimeout?k=t[13]:(k=a.clarifyServerTimeout.replace(`{{minutes}}`,String(gq)),t[12]=a.clarifyServerTimeout,t[13]=k);let A=k,j;t[14]!==a.clarifyTimeRemaining||t[15]!==b?(j=a.clarifyTimeRemaining.replace(`{{time}}`,_q(b)),t[14]=a.clarifyTimeRemaining,t[15]=b,t[16]=j):j=t[16];let M=j,N=a.clarifyRegionAria,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P=C(`mb-4 rounded-lg border border-edge bg-surface-elevated px-4 py-3 text-sm text-fg shadow-sm outline-none`,aT.focusRingPanel),t[17]=P):P=t[17];let F;t[18]===a.clarifyResumeHint?F=t[19]:(F=(0,$.jsx)(`p`,{className:`mb-2 text-xs text-fg-muted`,children:a.clarifyResumeHint}),t[18]=a.clarifyResumeHint,t[19]=F);let I;t[20]===n.question?I=t[21]:(I=(0,$.jsx)(QW,{content:n.question,compact:!0,className:`mb-3`}),t[20]=n.question,t[21]=I);let L;t[22]===A?L=t[23]:(L=(0,$.jsx)(`li`,{children:A}),t[22]=A,t[23]=L);let R;t[24]!==a.clarifyDefaultTimeoutNote||t[25]!==n.default?(R=n.default?(0,$.jsx)(`li`,{children:a.clarifyDefaultTimeoutNote}):null,t[24]=a.clarifyDefaultTimeoutNote,t[25]=n.default,t[26]=R):R=t[26];let z;t[27]===a.clarifySkipNote?z=t[28]:(z=(0,$.jsx)(`li`,{children:a.clarifySkipNote}),t[27]=a.clarifySkipNote,t[28]=z);let B;t[29]===M?B=t[30]:(B=(0,$.jsx)(`li`,{children:M}),t[29]=M,t[30]=B);let V;t[31]!==x||t[32]!==L||t[33]!==R||t[34]!==z||t[35]!==B?(V=(0,$.jsxs)(`ul`,{id:x,className:`mb-3 list-inside list-disc space-y-1 text-xs text-fg-muted`,children:[L,R,z,B]}),t[31]=x,t[32]=L,t[33]=R,t[34]=z,t[35]=B,t[36]=V):V=t[36];let H;t[37]!==S||t[38]!==i?(H=i?(0,$.jsx)(`div`,{id:S,role:`alert`,className:`mb-3 rounded-md border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-800 dark:border-red-900/50 dark:bg-red-950/40 dark:text-red-200`,children:i}):null,t[37]=S,t[38]=i,t[39]=H):H=t[39];let U;t[40]!==c||t[41]!==O||t[42]!==E||t[43]!==a.clarifyChoicesGroupAria||t[44]!==a.clarifyCustomLabel||t[45]!==a.clarifyPlaceholder||t[46]!==a.clarifySend||t[47]!==a.clarifyUseDefault||t[48]!==o||t[49]!==y||t[50]!==n.choices||t[51]!==n.default||t[52]!==r?(U=E?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`max-h-[min(40vh,16rem)] overflow-y-auto overflow-x-hidden pr-1 [scrollbar-gutter:stable]`,"aria-label":a.clarifyChoicesGroupAria,children:(0,$.jsxs)(`div`,{className:`grid grid-cols-1 gap-2 sm:grid-cols-2`,children:[n.choices.map(e=>(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,disabled:r,className:C(`min-h-9 w-full justify-start rounded-lg px-3 py-2 text-left text-sm font-normal shadow-none`,`hover:border-edge`),onClick:()=>y(e),children:e},e)),n.default?(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,disabled:r,className:C(`min-h-9 w-full justify-start rounded-lg border border-dashed border-edge px-3 py-2 text-left text-sm font-normal text-fg-muted`,`hover:border-edge hover:text-fg`),onClick:()=>y(n.default),children:O}):null]})}),(0,$.jsxs)(`div`,{className:`mt-3 border-t border-edge-subtle pt-3`,children:[(0,$.jsx)(`p`,{className:`mb-2 text-xs font-medium text-fg-muted`,children:a.clarifyCustomLabel}),(0,$.jsxs)(`form`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end`,onSubmit:e=>{e.preventDefault();let t=c.trim();t&&o(t)},children:[(0,$.jsx)(`input`,{type:`text`,value:c,onChange:e=>l(e.target.value),disabled:r,placeholder:a.clarifyPlaceholder,"aria-label":a.clarifyPlaceholder,className:`min-w-0 flex-1 rounded-md border border-edge bg-surface-panel px-3 py-2 text-fg placeholder:text-fg-muted focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-50`}),(0,$.jsx)(Zw,{type:`submit`,variant:`primary`,disabled:r||!c.trim(),className:`shrink-0 rounded-lg px-4 py-2 shadow-surface`,children:a.clarifySend})]})]})]}):(0,$.jsxs)(`form`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end`,onSubmit:e=>{e.preventDefault();let t=c.trim();t&&(o(t),l(``))},children:[(0,$.jsx)(`input`,{type:`text`,value:c,onChange:e=>l(e.target.value),disabled:r,placeholder:a.clarifyPlaceholder,"aria-label":a.clarifyPlaceholder,className:`min-w-0 flex-1 rounded-md border border-edge bg-surface-panel px-3 py-2 text-fg placeholder:text-fg-muted focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-50`}),(0,$.jsx)(Zw,{type:`submit`,variant:`primary`,disabled:r||!c.trim(),className:`shrink-0 rounded-lg px-4 py-2 shadow-surface`,children:a.clarifySend}),n.default?(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,disabled:r,className:`shrink-0 rounded-lg px-3 py-2 text-sm font-normal text-fg-muted shadow-none hover:text-fg`,onClick:()=>y(n.default),children:a.clarifyUseDefault}):null]}),t[40]=c,t[41]=O,t[42]=E,t[43]=a.clarifyChoicesGroupAria,t[44]=a.clarifyCustomLabel,t[45]=a.clarifyPlaceholder,t[46]=a.clarifySend,t[47]=a.clarifyUseDefault,t[48]=o,t[49]=y,t[50]=n.choices,t[51]=n.default,t[52]=r,t[53]=U):U=t[53];let W;t[54]===s?W=t[55]:(W=()=>void s(),t[54]=s,t[55]=W);let G;t[56]!==a.clarifySkip||t[57]!==r||t[58]!==W?(G=(0,$.jsx)(`div`,{className:`mt-3 flex flex-wrap items-center justify-end gap-2 border-t border-edge-subtle pt-3`,children:(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,disabled:r,className:`text-fg-muted hover:text-fg`,onClick:W,children:a.clarifySkip})}),t[56]=a.clarifySkip,t[57]=r,t[58]=W,t[59]=G):G=t[59];let K;return t[60]!==a.clarifyRegionAria||t[61]!==x||t[62]!==T||t[63]!==F||t[64]!==I||t[65]!==V||t[66]!==H||t[67]!==U||t[68]!==G?(K=(0,$.jsxs)(`section`,{ref:p,tabIndex:-1,"aria-label":N,"aria-describedby":x,onKeyDown:T,className:P,children:[F,I,V,H,U,G]}),t[60]=a.clarifyRegionAria,t[61]=x,t[62]=T,t[63]=F,t[64]=I,t[65]=V,t[66]=H,t[67]=U,t[68]=G,t[69]=K):K=t[69],K}function bq(e){return e+1}function xq(){return Date.now()+hq}function Sq(e){return e.contextKind===`empty`?e.projectCount>0?`choose_project`:e.workDiscovery?.enabled?e.workDiscovery.state.status===`in_progress`&&e.workDiscovery.state.activeRunId?`resume_discovery`:e.workDiscovery.state.status===`not_started`?`discover_folder`:`hidden`:`hidden`:`hidden`}var Cq={code:Ec,review:Ts,note:iy,task:Ag,target:dx,search:Fy,folder:zf,content:Cb,documents:Qu,globe:Kp};function wq(e){let t=(0,Q.c)(5),{name:n,className:r}=e,i=Cq[n]??zf,a;t[0]===r?a=t[1]:(a=C(`size-[1.125rem] text-accent-fg sm:size-5`,r),t[0]=r,t[1]=a);let o;return t[2]!==i||t[3]!==a?(o=(0,$.jsx)(i,{className:a,strokeWidth:1.75,"aria-hidden":!0}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}var Tq=(0,Z.memo)(function({spotlight:e,onPickPrompt:t,onRetryContext:n,onRefreshExploration:r,onSelectProject:i}){let a=e,o=(0,Z.useId)(),[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)([]),[d,f]=(0,Z.useState)(null),[p,h]=(0,Z.useState)(a.contextKind!==`empty`),[g,_]=(0,Z.useState)(!1),[v,y]=(0,Z.useState)(null),b=m(),x=F(e=>e.token),S=j(I(e=>e.language)).onboarding.workDiscovery;(0,Z.useEffect)(()=>{if(!x||a.contextKind!==`empty`){h(!0),u([]),f(null);return}let e=!1;return h(!1),Promise.allSettled([PL({status:`active`,sortBy:`updatedAt`,sortOrder:`desc`,limit:5}),xk()]).then(([t,n])=>{e||(u(t.status===`fulfilled`?t.value.items:[]),f(n.status===`fulfilled`?n.value:null),h(!0))}),()=>{e=!0}},[a.contextKind,x]);let w=(0,Z.useMemo)(()=>s==null?void 0:a.categories[s],[a.categories,s]),T=e=>{t({...e,contextKind:a.contextKind})},E=!!r,D=Sq({contextKind:a.contextKind,projectCount:l.length,workDiscovery:d}),O=async e=>{if(!(!i||v)){y(e);try{await i(e),_(!1)}catch{IR(`error`,S.projectStartFailed)}finally{y(null)}}},k=C(`mt-1 inline-flex min-h-9 items-center gap-2 rounded-lg px-3 text-sm font-medium text-accent-fg hover:bg-accent-soft`,aT.transition,aT.press,aT.focusRingBase);return(0,$.jsxs)(`div`,{className:`flex flex-col gap-3.5 pb-2 pt-6 sm:gap-4 sm:pb-3 sm:pt-8 [@media(max-height:800px)]:pt-3 sm:[@media(max-height:800px)]:pt-4`,children:[(0,$.jsxs)(`div`,{className:`flex flex-col items-center gap-1.5 px-1 pt-14 text-center sm:gap-2 sm:pt-16 [@media(max-height:800px)]:pt-6 sm:[@media(max-height:800px)]:pt-7`,children:[(0,$.jsx)(Yw,{className:`size-11 shrink-0 sm:size-12`,"aria-hidden":!0}),a.contextLabel?(0,$.jsx)(`div`,{className:`max-w-full truncate rounded-full border border-edge-subtle bg-surface-base px-2.5 py-1 text-xs text-fg-muted sm:max-w-md`,title:a.contextLabel,children:a.contextLabel}):null,(0,$.jsx)(`h1`,{className:`text-balance text-lg font-semibold tracking-tight text-fg sm:text-xl`,children:a.headline}),(0,$.jsx)(`p`,{className:`max-w-md text-pretty text-sm leading-snug text-fg-muted sm:text-[0.9375rem]`,children:a.tagline}),(0,$.jsx)(`div`,{className:`min-h-7 text-xs text-fg-muted`,"aria-live":`polite`,"aria-atomic":`true`,children:a.statusLabel?(0,$.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-center gap-1.5`,children:[(0,$.jsx)(`span`,{children:a.statusLabel}),a.contextStatus===`degraded`&&n?(0,$.jsxs)(`button`,{type:`button`,onClick:n,className:C(`inline-flex min-h-7 items-center gap-1 rounded-md px-1.5 font-medium text-accent-fg hover:bg-accent-soft`,aT.transition,aT.focusRingBase),children:[(0,$.jsx)(ky,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),a.retryLabel]}):null]}):null}),!p&&a.contextKind===`empty`?(0,$.jsx)(BN,{className:`mt-1 h-9 w-36 rounded-lg`}):D===`choose_project`&&i?(0,$.jsxs)(QT,{open:g,onOpenChange:_,children:[(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:k,children:[(0,$.jsx)(zf,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),S.selectProject]})}),(0,$.jsx)(tE,{children:(0,$.jsxs)(nE,{align:`center`,side:`bottom`,sideOffset:6,collisionPadding:12,className:`z-50 w-[min(22rem,calc(100vw-2rem))] rounded-xl border border-edge bg-surface-panel p-1.5 text-left shadow-popover outline-none`,children:[(0,$.jsx)(`p`,{className:`px-2.5 pb-1.5 pt-1 text-xs font-medium text-fg-muted`,children:S.recentProjects}),l.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:v!==null,onClick:()=>void O(e.id),className:C(`flex min-h-11 w-full items-center gap-2.5 rounded-lg px-2.5 py-2 text-left hover:bg-surface-hover disabled:cursor-wait disabled:opacity-60`,aT.transition,aT.focusRingPanel),children:[(0,$.jsx)(zf,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:e.name}),e.description?(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,children:e.description}):null]}),(0,$.jsx)(go,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0})]},e.id)),d?.enabled?(0,$.jsxs)(`button`,{type:`button`,onClick:()=>{_(!1),b(`/onboarding/workspace?new=1`)},className:C(`mt-1 flex min-h-10 w-full items-center gap-2.5 border-t border-edge-subtle px-2.5 pt-2 text-left text-sm font-medium text-fg-muted hover:text-fg`,aT.transition,aT.focusRingPanel),children:[(0,$.jsx)(zf,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),S.chooseAnotherFolder]}):null]})})]}):D===`discover_folder`?(0,$.jsxs)(`button`,{type:`button`,onClick:()=>b(`/onboarding/workspace?new=1`),className:k,children:[(0,$.jsx)(zf,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),S.chooseWorkFolder]}):D===`resume_discovery`?(0,$.jsxs)(`button`,{type:`button`,onClick:()=>b(`/onboarding/workspace`),className:k,children:[(0,$.jsx)(ky,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),S.resumeAnalysis]}):null]}),(0,$.jsxs)(`section`,{className:`mt-7 sm:mt-8 [@media(max-height:800px)]:mt-4 sm:[@media(max-height:800px)]:mt-5`,"aria-label":a.otherSuggestionsLabel,children:[(0,$.jsx)(`div`,{className:`mb-2 flex min-h-8 items-center justify-end gap-3`,children:E?(0,$.jsxs)(`button`,{type:`button`,"aria-label":a.refreshExplorationLabel,title:a.refreshExplorationLabel,onClick:r,className:C(`inline-flex h-8 shrink-0 items-center gap-1.5 rounded-lg px-2 text-xs font-medium text-fg-muted hover:bg-surface-hover hover:text-fg`,aT.transition,aT.press,aT.focusRingPanel),children:[(0,$.jsx)(ky,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),a.refreshExplorationLabel]}):null}),(0,$.jsx)(`div`,{className:`grid w-full grid-cols-1 gap-2 sm:grid-cols-3 sm:gap-2.5`,children:a.categories.map((e,t)=>{let n=s===t;return(0,$.jsx)(`div`,{className:`relative min-w-0`,children:(0,$.jsxs)(`button`,{type:`button`,"aria-expanded":n,"aria-controls":n?o:void 0,onClick:()=>c(e=>e===t?null:t),className:C(`flex min-h-14 h-full w-full flex-row items-start gap-2.5 rounded-xl border bg-surface-panel p-2.5 text-left shadow-surface sm:flex-col sm:gap-2`,aT.transition,aT.press,aT.focusRingPanel,n?`border-accent ring-1 ring-accent/25`:`border-edge hover:border-edge-strong hover:bg-surface-hover/40 dark:hover:bg-surface-hover/30`),children:[(0,$.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg bg-accent-soft sm:size-10`,children:(0,$.jsx)(wq,{name:e.icon})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium leading-snug text-fg sm:text-[0.9375rem]`,children:e.title}),(0,$.jsx)(`div`,{className:`mt-0.5 text-xs leading-snug text-fg-muted sm:text-sm`,children:e.description})]})]})},e.id)})})]}),w&&w.scenarios.length>0?(0,$.jsx)(`div`,{id:o,role:`region`,"aria-label":w.title,className:`flex flex-col gap-1.5 rounded-xl border border-edge bg-surface-base/80 p-2.5 dark:bg-surface-hover/20`,children:(0,$.jsx)(`ul`,{className:`flex flex-col gap-1`,children:w.scenarios.slice(0,3).map((e,t)=>(0,$.jsx)(`li`,{children:(0,$.jsxs)(`button`,{type:`button`,onClick:()=>T({suggestionId:e.id??`${w.id}:${t}`,categoryId:w.id,prompt:e.prompt}),className:C(`flex min-h-11 w-full items-start gap-2 rounded-lg border border-transparent p-2.5 text-left text-sm leading-snug text-fg`,aT.transition,aT.press,aT.focusRingPanel,`hover:border-edge hover:bg-surface-panel dark:hover:bg-surface-panel/40`),children:[(0,$.jsx)(lv,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-pretty`,children:e.prompt})]})},e.id??e.prompt))})}):null]})}),Eq=(0,Z.memo)(function(e){let t=(0,Q.c)(30),{showSkeleton:n}=e,r=n===void 0||n?``:`opacity-0`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(Yw,{className:`size-11 shrink-0 opacity-80 sm:size-12`,"aria-hidden":!0}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=C(`h-5 w-44 max-w-full`,r),t[1]=r,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,$.jsx)(BN,{className:a}),t[3]=a,t[4]=o);let s;t[5]===r?s=t[6]:(s=C(`h-4 w-[min(100%,24rem)]`,r),t[5]=r,t[6]=s);let c;t[7]===s?c=t[8]:(c=(0,$.jsx)(BN,{className:s}),t[7]=s,t[8]=c);let l;t[9]===r?l=t[10]:(l=C(`h-3 w-32`,r),t[9]=r,t[10]=l);let u;t[11]===l?u=t[12]:(u=(0,$.jsx)(`div`,{className:`flex min-h-7 items-center`,children:(0,$.jsx)(BN,{className:l})}),t[11]=l,t[12]=u);let d;t[13]!==o||t[14]!==c||t[15]!==u?(d=(0,$.jsxs)(`div`,{className:`flex flex-col items-center gap-1.5 px-1 pt-14 text-center sm:gap-2 sm:pt-16`,children:[i,o,c,u]}),t[13]=o,t[14]=c,t[15]=u,t[16]=d):d=t[16];let f;t[17]===r?f=t[18]:(f=C(`h-7 w-24 rounded-lg`,r),t[17]=r,t[18]=f);let p;t[19]===f?p=t[20]:(p=(0,$.jsx)(`div`,{className:`mb-2 flex min-h-8 items-center justify-end gap-3`,children:(0,$.jsx)(BN,{className:f})}),t[19]=f,t[20]=p);let m;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(m=[0,1,2],t[21]=m):m=t[21];let h;t[22]===r?h=t[23]:(h=(0,$.jsx)(`div`,{className:`grid w-full grid-cols-1 gap-2 sm:grid-cols-3 sm:gap-2.5`,children:m.map(e=>(0,$.jsxs)(`div`,{className:`flex min-h-14 w-full flex-row items-start gap-2.5 rounded-xl border border-edge bg-surface-panel p-2.5 sm:flex-col sm:gap-2`,children:[(0,$.jsx)(BN,{className:C(`size-9 shrink-0 rounded-lg sm:size-10`,r)}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(BN,{className:C(`h-4 w-24`,r)}),(0,$.jsx)(BN,{className:C(`h-3 w-32 max-w-full`,r)})]})]},e))}),t[22]=r,t[23]=h);let g;t[24]!==p||t[25]!==h?(g=(0,$.jsxs)(`section`,{className:`mt-7 sm:mt-8`,"aria-hidden":`true`,children:[p,h]}),t[24]=p,t[25]=h,t[26]=g):g=t[26];let _;return t[27]!==g||t[28]!==d?(_=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3.5 pb-2 pt-6 sm:gap-4 sm:pb-3 sm:pt-8`,"aria-busy":`true`,children:[d,g]}),t[27]=g,t[28]=d,t[29]=_):_=t[29],_});function Dq(e){let t=e;return e.fullscreenElement??t.webkitFullscreenElement??t.msFullscreenElement??null}async function Oq(e){let t=e;try{if(typeof e.requestFullscreen==`function`){await e.requestFullscreen();return}}catch{}if(typeof t.webkitRequestFullscreen==`function`){await Promise.resolve(t.webkitRequestFullscreen());return}if(typeof t.msRequestFullscreen==`function`){await Promise.resolve(t.msRequestFullscreen());return}throw Error(`fullscreen_unavailable`)}async function kq(e){let t=e;if(typeof e.exitFullscreen==`function`){await e.exitFullscreen();return}if(typeof t.webkitExitFullscreen==`function`){await Promise.resolve(t.webkitExitFullscreen());return}typeof t.msExitFullscreen==`function`&&await Promise.resolve(t.msExitFullscreen())}function Aq(){return typeof window<`u`&&typeof window.electronAPI?.fullscreen?.enter==`function`}function jq(){let e=(0,Q.c)(11),t=(0,Z.useRef)(null),[n,r]=(0,Z.useState)(!1),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=Aq(),e[0]=i):i=e[0];let a=i,o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{let e=t.current,n=Dq(document);r(!!(e&&n===e))},e[1]=o):o=e[1];let s=o,c,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{if(a)return;let e=()=>s();return document.addEventListener(`fullscreenchange`,e),document.addEventListener(`webkitfullscreenchange`,e),()=>{document.removeEventListener(`fullscreenchange`,e),document.removeEventListener(`webkitfullscreenchange`,e)}},l=[s,a],e[2]=c,e[3]=l):(c=e[2],l=e[3]),(0,Z.useEffect)(c,l);let u,d;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{if(!a)return;let e=window.electronAPI.fullscreen,t=e.onChange(e=>r(e));return e.isFullscreen().then(r),t},d=[a],e[4]=u,e[5]=d):(u=e[4],d=e[5]),(0,Z.useEffect)(u,d);let f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=async()=>{if(a){await window.electronAPI.fullscreen.enter();return}let e=t.current;if(e&&Dq(document)!==e)try{await Oq(e)}catch{}},e[6]=f):f=e[6];let p=f,m;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=async()=>{if(a){await window.electronAPI.fullscreen.exit();return}if(Dq(document)===t.current)try{await kq(document)}catch{}},e[7]=m):m=e[7];let h=m,g;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(g=async()=>{if(a){await window.electronAPI.fullscreen.toggle();return}Dq(document)===t.current?await h():await p()},e[8]=g):g=e[8];let _=g,v;return e[9]===n?v=e[10]:(v={rootRef:t,active:n,enter:p,exit:h,toggle:_},e[9]=n,e[10]=v),v}function Mq(e,t){switch(e){case`pdf`:return t.attachmentPreviewPdf;case`docx`:return t.attachmentPreviewDocument;case`pptx`:return t.attachmentPreviewPresentation;case`spreadsheet`:return t.attachmentPreviewSpreadsheet;default:return``}}function Nq({open:e,attachment:t,authToken:n,sessionKey:r,layerClassName:i=`z-[81]`,onClose:a}){let o=I(e=>e.language),s=j(o).chat,c=kG({open:e,attachment:t,authToken:n,sessionKey:r,language:o}),l=bG(c.descriptor),{rootRef:u,active:d,enter:f,exit:p}=jq(),{preview:m,fileType:h,hasExtractedText:g,showExtractedText:_}=c,v=h!==`image`&&h!==`text`&&h!==`pptx`&&g,y=!!(m&&!c.loading&&!c.loadError),b=()=>{p(),a()},x=()=>{if(!m)return;let e=m.mimeType||`application/octet-stream`,t=null;if(c.binaryBuffer)t=new Blob([c.binaryBuffer],{type:e});else{let n=cP(m);if(!n)return;try{let r=atob(n.replace(/\s/g,``)),i=new Uint8Array(r.length);for(let e=0;e<r.length;e++)i[e]=r.charCodeAt(e);t=new Blob([i],{type:e})}catch{return}}let n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=m.name??`download`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)},S=!!(c.binaryBuffer||cP(m??{})),w={onDownload:x,canDownload:S},T=C(`min-h-0 min-w-0 flex-1 cursor-pointer border-0 p-0`,`bg-surface-base transition-colors`,`hover:bg-surface-hover/90 dark:bg-black/60 dark:hover:bg-black/70`,aT.focusRingBase);return(0,$.jsx)(LD,{open:e,onOpenChange:e=>!e&&b(),children:(0,$.jsx)(UD,{children:(0,$.jsxs)(YD,{className:C(`xopc-dialog-content-fullscreen fixed inset-0 flex h-[100dvh] w-full flex-row overflow-hidden`,i,`border-0 bg-transparent p-0 shadow-none outline-none`),children:[(0,$.jsx)(`button`,{type:`button`,className:T,onClick:b,"aria-label":s.attachmentPreviewClose}),(0,$.jsxs)(`div`,{ref:u,className:C(`flex h-full min-h-0 w-[min(100%,var(--max-width-app-main))] shrink-0 flex-col overflow-hidden`,`bg-surface-panel sm:border-x sm:border-edge dark:sm:border-edge`,`shadow-float dark:shadow-elevated`),children:[(0,$.jsxs)(`div`,{className:C(`flex shrink-0 items-start gap-2 border-b border-edge px-4 py-2 dark:border-edge`,Je),children:[(0,$.jsx)(eO,{className:`min-w-0 flex-1 truncate text-sm font-semibold text-fg`,children:m?.name??``}),(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[v?(0,$.jsxs)(`div`,{className:`mr-2 flex rounded-lg border border-edge p-0.5 dark:border-edge`,role:`group`,"aria-label":s.attachmentPreviewText,children:[(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-2.5 py-1 text-xs font-medium ${_?`text-fg-muted hover:text-fg`:`bg-surface-hover text-fg`}`,onClick:()=>{c.setShowExtractedText(!1),c.clearLoadError()},children:Mq(h,s)}),(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-2.5 py-1 text-xs font-medium ${_?`bg-surface-hover text-fg`:`text-fg-muted hover:text-fg`}`,onClick:()=>{c.setShowExtractedText(!0),c.clearLoadError()},children:s.attachmentPreviewText})]}):null,m?(0,$.jsx)(wG,{controller:l,actions:w}):null,y?(0,$.jsx)(`button`,{type:`button`,className:`rounded-md p-2 text-fg-muted hover:bg-surface-hover hover:text-fg`,title:d?s.attachmentPreviewExitFullscreen:s.attachmentPreviewFullscreen,"aria-label":d?s.attachmentPreviewExitFullscreen:s.attachmentPreviewFullscreen,onClick:()=>void(d?p():f()),children:d?(0,$.jsx)(Rv,{className:`size-4`}):(0,$.jsx)(W_,{className:`size-4`})}):null,(0,$.jsx)(iO,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`rounded-md p-2 text-fg-muted hover:bg-surface-hover hover:text-fg`,title:s.attachmentPreviewClose,"aria-label":s.attachmentPreviewClose,children:(0,$.jsx)(Aw,{className:`size-4`})})})]})]}),(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden px-4 pb-4 pt-2 sm:px-8`,children:m?(0,$.jsx)(TG,{language:o,descriptor:c.descriptor,loading:c.loading,loadError:c.loadError,textContent:c.textContent,binaryBuffer:c.binaryBuffer,showExtractedText:c.showExtractedText,extractedText:c.extractedText,extractedTextTruncated:c.extractedTextTruncated,actions:{onDownload:x,canDownload:S},controller:l,renderToolbar:()=>null}):null})]}),(0,$.jsx)(`button`,{type:`button`,className:T,onClick:b,"aria-label":s.attachmentPreviewClose})]})})})}function Pq(e,t){let n=t?.split(`;`)[0]?.trim();return!n?.startsWith(`image/`)||e.type===n?e:new Blob([e],{type:n})}function Fq(e,t){let n=(0,Q.c)(29),r;n[0]!==e.mimeType||n[1]!==e.type?(r=e.type===`image`||e.mimeType?.startsWith(`image/`)===!0,n[0]=e.mimeType,n[1]=e.type,n[2]=r):r=n[2];let i=r,a;n[3]!==e||n[4]!==i?(a=i?cP(e):void 0,n[3]=e,n[4]=i,n[5]=a):a=n[5];let o=a,s;bb0:{if(!o){s=void 0;break bb0}let t=e.mimeType?.startsWith(`image/`)?e.mimeType:`image/png`,r;n[6]!==o||n[7]!==t?(r=fP(t,o),n[6]=o,n[7]=t,n[8]=r):r=n[8],s=r}let c=s,l=`${e.uri??``}\n${t.sessionKey??``}\n${e.taskId??``}`,[u,d]=(0,Z.useState)(),f;n[9]!==e.mimeType||n[10]!==e.taskId||n[11]!==e.uri||n[12]!==c||n[13]!==i||n[14]!==t.authToken||n[15]!==t.sessionKey||n[16]!==l?(f=()=>{if(c||!e.uri||!i){d(void 0);return}if(!String(t.authToken??``).trim()){d(void 0);return}let n,r=!1;return d({key:l,status:`loading`}),(async()=>{let i=await sB({uri:e.uri,sessionKey:t.sessionKey,taskId:e.taskId});if(r)return;if(!i.ok){d({key:l,status:`error`});return}let a=URL.createObjectURL(Pq(i.blob,e.mimeType));n=a,d({key:l,blobUrl:a,status:`loaded`})})(),()=>{r=!0,n&&URL.revokeObjectURL(n)}},n[9]=e.mimeType,n[10]=e.taskId,n[11]=e.uri,n[12]=c,n[13]=i,n[14]=t.authToken,n[15]=t.sessionKey,n[16]=l,n[17]=f):f=n[17];let p;n[18]!==e.taskId||n[19]!==e.uri||n[20]!==c||n[21]!==i||n[22]!==t.authToken||n[23]!==t.sessionKey||n[24]!==l?(p=[c,e.taskId,e.uri,i,t.authToken,t.sessionKey,l],n[18]=e.taskId,n[19]=e.uri,n[20]=c,n[21]=i,n[22]=t.authToken,n[23]=t.sessionKey,n[24]=l,n[25]=p):p=n[25],(0,Z.useEffect)(f,p);let m=u?.key===l?u:void 0,h=c??m?.blobUrl??``,g=!c&&m?.status===`error`,_;return n[26]!==h||n[27]!==g?(_={src:h,error:g},n[26]=h,n[27]=g,n[28]=_):_=n[28],_}function Iq(e){let t=(0,Q.c)(51),{attachment:n,authToken:r,sessionKey:i,showDelete:a,onDelete:o,imageSize:s,compact:c,className:l,overflowLabel:u,onOpen:d}=e,f=a===void 0?!1:a,p=s===void 0?`thumbnail`:s,m=c===void 0?!1:c,h=I(Lq),g;t[0]===h?g=t[1]:(g=j(h),t[0]=h,t[1]=g);let _=g,v=(0,Z.useId)(),y;t[2]!==n.mimeType||t[3]!==n.type?(y=n.mimeType?.startsWith(`image/`)||n.type===`image`,t[2]=n.mimeType,t[3]=n.type,t[4]=y):y=t[4];let b=y,x;t[5]!==r||t[6]!==i?(x={authToken:r,sessionKey:i},t[5]=r,t[6]=i,t[7]=x):x=t[7];let S=Fq(n,x),w;t[8]===n?w=t[9]:(w=!!n.uri&&!cP(n),t[8]=n,t[9]=w);let T=w,E;t[10]!==r||t[11]!==T?(E=T&&!String(r??``).trim(),t[10]=r,t[11]=T,t[12]=E):E=t[12];let D=E,O=n.mimeType===`application/pdf`,k;t[13]!==n.mimeType||t[14]!==n.name?(k=n.mimeType?.includes(`spreadsheetml`)||n.name?.toLowerCase().endsWith(`.xlsx`)||n.name?.toLowerCase().endsWith(`.xls`),t[13]=n.mimeType,t[14]=n.name,t[15]=k):k=t[15];let A=k,M=n.name??`file`,N=n.type===`pasted_text`,P=N&&!D,F=n.mimeType?.split(`;`,1)[0]?.trim().toLowerCase()===`text/html`?`HTML`:n.mimeType?.split(`;`,1)[0]?.trim().toLowerCase()===`application/json`?`JSON`:`TXT`,L;t[16]!==n.size||t[17]!==F?(L=typeof n.size==`number`?`${F} · ${mP(n.size)}`:F,t[16]=n.size,t[17]=F,t[18]=L):L=t[18];let R=L,z=D?`${M} — ${_.chat.attachmentPreviewMissingAuth}`:M,B=_.chat.attachmentPreviewMissingAuth,V=p===`single`?`size-full object-contain`:p===`grid-cell`?`size-full object-cover`:`max-h-16 w-full object-cover`,H=p===`single`?m?`w-36 max-w-full`:`w-44 max-w-full`:p===`grid-cell`?`min-h-0 w-full`:`max-w-[10rem]`,U=p===`grid-cell`?`relative block aspect-square w-full min-w-0 overflow-hidden rounded-md border border-edge dark:border-edge`:p===`single`?`relative block aspect-[4/3] w-full overflow-hidden rounded-md border border-edge bg-surface-hover dark:border-edge`:`block w-full overflow-hidden rounded-md border border-edge dark:border-edge`,W=p===`grid-cell`?`w-full min-h-0`:`inline-block`,G;t[19]!==l||t[20]!==W?(G=C(`group relative min-w-0`,W,l),t[19]=l,t[20]=W,t[21]=G):G=t[21];let K;t[22]!==n||t[23]!==M||t[24]!==U||t[25]!==S||t[26]!==V||t[27]!==H||t[28]!==A||t[29]!==b||t[30]!==N||t[31]!==O||t[32]!==_.chat.attachmentPreviewLoadError||t[33]!==_.chat.pastedText||t[34]!==z||t[35]!==v||t[36]!==B||t[37]!==d||t[38]!==u||t[39]!==R||t[40]!==D||t[41]!==P?(K=b?(0,$.jsxs)(`div`,{className:H,children:[(0,$.jsxs)(`div`,{className:`relative size-full min-h-0`,children:[(0,$.jsxs)(`button`,{type:`button`,className:C(U,aT.transition,aT.press,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),onClick:()=>d(n),title:z,"aria-label":z,"aria-describedby":D?v:void 0,children:[S.src?(0,$.jsx)(`img`,{src:S.src,alt:M,className:V,decoding:`async`}):S.error||D?(0,$.jsxs)(`span`,{className:`flex size-full flex-col items-center justify-center gap-1 bg-surface-hover px-2 text-center text-[10px] text-fg-muted`,title:D?B:_.chat.attachmentPreviewLoadError,children:[(0,$.jsx)(hh,{className:`size-5`,strokeWidth:1.5,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:D?B:_.chat.attachmentPreviewLoadError})]}):(0,$.jsx)(`span`,{className:`block size-full animate-pulse bg-surface-active`,"aria-hidden":!0}),u?(0,$.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center bg-black/55 text-lg font-semibold text-white`,children:u}):null]}),O?(0,$.jsx)(`div`,{className:`pointer-events-none absolute bottom-1 right-1 rounded bg-black/60 px-1.5 py-0.5 text-[10px] font-semibold text-white`,"aria-hidden":!0,children:`PDF`}):null]}),D?(0,$.jsx)(`p`,{id:v,className:`mt-1 line-clamp-2 text-[10px] leading-snug text-amber-600 dark:text-amber-500`,children:B}):null]}):(0,$.jsx)(`div`,{className:C(`max-w-[14rem]`,P&&`inline-flex max-w-full`),children:(0,$.jsxs)(`button`,{type:`button`,onClick:()=>d(n),title:z,"aria-label":z,"aria-describedby":D?v:void 0,className:C(`flex min-w-0 border border-edge bg-surface-hover text-left text-xs text-fg-muted hover:bg-surface-active dark:border-edge`,P?`w-auto max-w-full items-center gap-1.5 rounded-full px-2.5 py-1`:`w-full gap-2 rounded-md px-2 py-1.5`,D?`items-start`:`items-center`,aT.transition,aT.press,aT.focusRingPanel),children:[N?(0,$.jsx)(ad,{className:C(`shrink-0 text-accent-fg`,P?`size-3.5`:`size-8`),"aria-hidden":!0}):A?(0,$.jsx)(Nd,{className:`size-8 shrink-0 text-fg-subtle`,"aria-hidden":!0}):(0,$.jsx)(Ld,{className:`size-8 shrink-0 text-fg-subtle`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:C(`truncate text-fg`,P?`inline`:`block`),children:N?_.chat.pastedText:M}),P?(0,$.jsxs)(`span`,{className:`ml-1 whitespace-nowrap text-fg-subtle`,children:[`· `,R]}):null,D?(0,$.jsx)(`span`,{id:v,className:`mt-0.5 line-clamp-2 block text-[10px] font-normal leading-snug text-amber-600 dark:text-amber-500`,children:B}):null]})]})}),t[22]=n,t[23]=M,t[24]=U,t[25]=S,t[26]=V,t[27]=H,t[28]=A,t[29]=b,t[30]=N,t[31]=O,t[32]=_.chat.attachmentPreviewLoadError,t[33]=_.chat.pastedText,t[34]=z,t[35]=v,t[36]=B,t[37]=d,t[38]=u,t[39]=R,t[40]=D,t[41]=P,t[42]=K):K=t[42];let ee;t[43]!==_.chat.attachmentPreviewRemove||t[44]!==o||t[45]!==f?(ee=f?(0,$.jsx)(`button`,{type:`button`,className:C(`absolute -right-1 -top-1 flex size-5 items-center justify-center rounded-full border border-edge bg-surface-panel text-fg-muted shadow-surface hover:text-fg dark:border-edge`,aT.transition,aT.press,aT.focusRingPanel),onClick:e=>{e.stopPropagation(),o?.()},title:_.chat.attachmentPreviewRemove,"aria-label":_.chat.attachmentPreviewRemove,children:(0,$.jsx)(Aw,{className:`size-3`})}):null,t[43]=_.chat.attachmentPreviewRemove,t[44]=o,t[45]=f,t[46]=ee):ee=t[46];let q;return t[47]!==G||t[48]!==K||t[49]!==ee?(q=(0,$.jsxs)(`div`,{className:G,children:[K,ee]}),t[47]=G,t[48]=K,t[49]=ee,t[50]=q):q=t[50],q}function Lq(e){return e.language}function Rq(e){return typeof e==`number`&&Number.isFinite(e)&&e>0&&e!==1/0}function zq(e){if(!Number.isFinite(e)||e<0)return`0:00`;let t=Math.floor(e%60);return`${Math.floor(e/60)}:${t.toString().padStart(2,`0`)}`}function Bq(e){return e.type===`voice`||e.type===`audio`||e.mimeType?.startsWith(`audio/`)===!0}function Vq({att:e,align:t=`start`,variant:n=`default`,sessionKey:r}){let i=j(I(e=>e.language)),a=(0,Z.useRef)(null),o=(0,Z.useId)(),[s,c]=(0,Z.useState)(),[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(1),p=(0,Z.useMemo)(()=>{let t=e.durationSeconds;return typeof t==`number`&&Number.isFinite(t)&&t>0?t:0},[e.durationSeconds]),[m,h]=(0,Z.useState)(p),g=(0,Z.useRef)(p);g.current!==p&&(g.current=p,h(p));let[_,v]=(0,Z.useState)(0),y=(0,Z.useCallback)(()=>{let e=a.current;if(!e)return;let t=e.duration;Rq(t)&&h(t)},[]),b=`${e.uri??``}:${e.content?.length??0}:${e.mimeType??``}`,x=(0,Z.useRef)(b);x.current!==b&&(x.current=b,v(0),u(!1)),(0,Z.useEffect)(()=>{let t,n=!1;return(async()=>{let i=e.content??e.data;if(i){c(`data:${e.mimeType?.includes(`/`)?e.mimeType:`audio/mpeg`};base64,${i.replace(/\s/g,``)}`);return}if(e.uri)try{let i=await L(z(sP(e.uri,r,e.taskId)));if(!i.ok||n)return;let a=await i.blob(),o=URL.createObjectURL(a);t=o,c(o)}catch{}})(),()=>{n=!0,t&&URL.revokeObjectURL(t)}},[e,r]),(0,Z.useEffect)(()=>{let e=()=>a.current?.pause(),t=e=>{let t=e.detail?.id;t&&t!==o&&a.current?.pause()};return window.addEventListener(`xopc-voice-recording-start`,e),window.addEventListener(`xopc-voice-playback-start`,t),()=>{window.removeEventListener(`xopc-voice-recording-start`,e),window.removeEventListener(`xopc-voice-playback-start`,t)}},[o]);let S=(0,Z.useCallback)(()=>{let e=a.current;!e||!s||(l?e.pause():e.play().catch(()=>{}))},[l,s]);if(!Bq(e))return null;let w=m>0?Math.min(100,Number.isFinite(m)?_/m*100:0):0,T=typeof m==`number`&&m>0&&Number.isFinite(m),E=!!(s&&!T),D=s?(0,$.jsxs)(`span`,{className:`tabular-nums tracking-tight text-fg-muted`,"aria-live":`polite`,children:[(0,$.jsx)(`span`,{children:zq(_)}),(0,$.jsx)(`span`,{className:`mx-0.5 text-fg-subtle`,children:`/`}),T?(0,$.jsx)(`span`,{children:zq(m)}):(0,$.jsx)(`span`,{className:`text-fg-subtle`,title:i.chat.voiceAwaitingMeta,children:`--`})]}):(0,$.jsx)(`span`,{className:`tabular-nums tracking-tight text-fg-subtle`,children:`-- / --`}),O=s?(0,$.jsx)(`audio`,{ref:a,src:s,preload:`metadata`,className:`hidden`,onLoadedMetadata:y,onLoadedData:y,onDurationChange:y,onTimeUpdate:e=>v(e.currentTarget.currentTime),onPlay:e=>{e.currentTarget.playbackRate=d,window.dispatchEvent(new CustomEvent(`xopc-voice-playback-start`,{detail:{id:o}})),u(!0)},onPause:()=>u(!1),onEnded:()=>{u(!1),v(0)}}):(0,$.jsx)(`span`,{className:`sr-only`,children:i.chat.voiceLoading}),k=(0,$.jsx)(`button`,{type:`button`,onClick:S,disabled:!s,className:C(`flex size-8 shrink-0 items-center justify-center rounded-full border text-accent-fg`,`border-edge-subtle bg-surface-panel transition-colors`,`hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,`motion-safe:active:scale-[0.97]`,`dark:bg-surface-panel/90 dark:border-edge`,n===`compact`&&C(`border-white/55 bg-white/92 shadow-[inset_0_1px_0_rgb(255_255_255/0.65)]`,`dark:border-white/14 dark:bg-surface-hover/98 dark:shadow-none`),!s&&`opacity-50`),"aria-label":l?i.chat.voicePause:i.chat.voicePlay,title:l?i.chat.voicePause:i.chat.voicePlay,children:l?(0,$.jsx)(fy,{className:`size-[14px]`,strokeWidth:2}):(0,$.jsx)(yy,{className:`size-[14px] ml-px`,strokeWidth:2})}),A=C(`relative h-0.5 min-h-[2px] w-full overflow-hidden rounded-full bg-edge-subtle dark:bg-edge/65`,n===`compact`&&`bg-white/45 dark:bg-white/14`),M=C(`inline-flex min-w-0 items-center rounded-full border`,n===`compact`?`max-w-[min(220px,88vw)] gap-2 px-2 py-1.5 backdrop-blur-[2px]`:`min-w-[min(160px,80vw)] max-w-[17rem] gap-2 px-2 py-1.5`,n===`compact`?`border-white/58 bg-white/86 shadow-none dark:border-white/13 dark:bg-black/[0.22] dark:backdrop-blur-sm`:`border-edge-subtle bg-surface-panel/[0.96] shadow-surface dark:border-edge dark:bg-surface-panel/92`),N=`${i.chat.voiceAriaRegion}${e.name?` · ${e.name}`:``}`;return(0,$.jsx)(`div`,{className:C(`flex min-w-0`,t===`end`&&`justify-end`,t===`center`&&`justify-center`),children:(0,$.jsxs)(`div`,{role:`group`,"aria-label":N,className:M,children:[k,(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col justify-center gap-1 py-px`,children:[n==="default"?(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 text-[11px] leading-snug tracking-tight text-fg-muted`,children:[(0,$.jsx)(jv,{className:`size-3 shrink-0 opacity-90 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate font-normal`,children:i.chat.voiceMessage})]}):(0,$.jsx)(`span`,{className:`sr-only`,children:i.chat.voiceMessage}),(0,$.jsx)(`div`,{className:A,"aria-hidden":!0,children:s?E?(0,$.jsx)(`span`,{className:C(`absolute inset-y-0 left-[18%] w-[42%] max-w-[4.5rem] rounded-full bg-accent/45 motion-safe:animate-pulse`)}):(0,$.jsx)(`div`,{className:C(`h-full rounded-full bg-accent motion-safe:transition-[width] motion-safe:duration-150 motion-safe:ease-linear`),style:{width:`${w}%`}}):null}),(0,$.jsx)(`div`,{className:C(`flex justify-end text-[10px] leading-snug tracking-tight text-fg-muted`),children:D})]}),s?(0,$.jsxs)(`button`,{type:`button`,className:`shrink-0 rounded px-1 py-0.5 text-[10px] tabular-nums text-fg-muted hover:bg-surface-hover hover:text-fg`,title:i.chat.voicePlaybackSpeed,"aria-label":`${i.chat.voicePlaybackSpeed}: ${d}×`,onClick:()=>{let e=d===1?1.25:d===1.25?1.5:d===1.5?.75:1;f(e),a.current&&(a.current.playbackRate=e)},children:[d,`×`]}):null,O]})})}function Hq(e){return e.type===`voice`||e.type===`audio`||e.mimeType?.startsWith(`audio/`)===!0}var Uq=9;function Wq(e,t){let n=t?`max-w-[11rem]`:`max-w-52`,r=`gap-1`;return e===1?{container:`grid grid-cols-1 ${n} ${r}`,tileSize:`single`}:e===2?{container:`grid grid-cols-2 ${n} ${r}`,tileSize:`grid-cell`}:e===3?{container:`grid grid-cols-3 ${n} ${r}`,tileSize:`grid-cell`}:e===4?{container:`grid grid-cols-2 ${n} ${r}`,tileSize:`grid-cell`}:e<=Uq?{container:`grid grid-cols-3 ${n} ${r}`,tileSize:`grid-cell`}:{container:`grid grid-cols-3 ${n} ${r}`,tileSize:`grid-cell`,overflowCount:e-(Uq-1)}}function Gq(e){let t=(0,Q.c)(23),{attachments:n,authToken:r,sessionKey:i,layout:a,centerUserVoiceRow:o}=e,s=a===void 0?`assistant`:a,c=o===void 0?!1:o,[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(null);if(!n?.length)return null;let p,m,h,g;if(t[0]!==n||t[1]!==r||t[2]!==c||t[3]!==s||t[4]!==i){let e=n.filter(qq),a=n.filter(Hq),o=n.filter(Kq);p=`flex flex-col gap-2`,m=e.length>0?(()=>{let t=Wq(e.length,s===`user`),n=t.overflowCount==null?e:e.slice(0,Uq-1);return(0,$.jsxs)(`div`,{className:C(`w-full min-w-0`,t.container),children:[n.map((e,n)=>(0,$.jsx)(Iq,{attachment:e,authToken:r,sessionKey:i,imageSize:t.tileSize,compact:s===`user`,onOpen:e=>{f(e),u(!0)}},e.id??`${e.name}-${n}`)),t.overflowCount==null?null:(0,$.jsx)(Iq,{attachment:e[Uq-1],authToken:r,sessionKey:i,imageSize:`grid-cell`,compact:s===`user`,overflowLabel:`+${t.overflowCount}`,onOpen:e=>{f(e),u(!0)}},e[Uq-1]?.id??`overflow-${Uq-1}`)]})})():null,h=a.length>0?(0,$.jsx)(`div`,{className:C(`flex flex-col gap-2`,s===`user`&&(c?`items-center`:`items-end`)),children:a.map((e,t)=>(0,$.jsx)(Vq,{att:e,sessionKey:i,align:s===`user`?c?`center`:`end`:`start`,variant:s===`user`?`compact`:`default`},e.id??`${e.name}-${t}`))}):null,g=o.length>0?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:o.map((e,t)=>(0,$.jsx)(Iq,{attachment:e,authToken:r,sessionKey:i,onOpen:e=>{f(e),u(!0)}},e.id??`${e.name}-${t}`))}):null,t[0]=n,t[1]=r,t[2]=c,t[3]=s,t[4]=i,t[5]=p,t[6]=m,t[7]=h,t[8]=g}else p=t[5],m=t[6],h=t[7],g=t[8];let _;t[9]!==p||t[10]!==m||t[11]!==h||t[12]!==g?(_=(0,$.jsxs)(`div`,{className:p,children:[m,h,g]}),t[9]=p,t[10]=m,t[11]=h,t[12]=g,t[13]=_):_=t[13];let v;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{u(!1),f(null)},t[14]=v):v=t[14];let y;t[15]!==d||t[16]!==r||t[17]!==l||t[18]!==i?(y=(0,$.jsx)(Nq,{open:l,attachment:d,authToken:r,sessionKey:i,onClose:v}),t[15]=d,t[16]=r,t[17]=l,t[18]=i,t[19]=y):y=t[19];let b;return t[20]!==_||t[21]!==y?(b=(0,$.jsxs)($.Fragment,{children:[_,y]}),t[20]=_,t[21]=y,t[22]=b):b=t[22],b}function Kq(e){return e.type!==`image`&&!e.mimeType?.startsWith(`image/`)&&!Hq(e)}function qq(e){return e.type===`image`||e.mimeType?.startsWith(`image/`)}var Jq=`fill-chat-composer`;function Yq(e){window.dispatchEvent(new CustomEvent(Jq,{detail:{text:e}}))}function Xq(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function Zq(e){if(typeof e==`string`)return e;if(!Array.isArray(e))return``;let t=[];for(let n of e){if(!n||typeof n!=`object`)continue;let e=n;e.type===`text`&&typeof e.text==`string`&&t.push(e.text)}return t.join(`
|
|
89
|
-
`)}function Qq(e){if(e==null)return{details:null,text:``,isStructured:!1};if(typeof e==`object`&&!Array.isArray(e)){let t=e;return`content`in t||`details`in t?{details:Xq(t.details),text:Zq(t.content),isStructured:!0}:{details:null,text:``,isStructured:!1}}if(typeof e==`string`){let t=e.trim();if(t.startsWith(`{`))try{let e=Xq(JSON.parse(t));if(e&&(`content`in e||`details`in e))return{details:Xq(e.details),text:Zq(e.content),isStructured:!0}}catch{}return{details:null,text:e,isStructured:!1}}return{details:null,text:String(e),isStructured:!1}}var $q=String.raw`png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|txt|md|json|html?|css|mjs?|cjs|js|ts|mp3|wav|ogg|m4a|mp4|mov|webm`;function eJ(){return`(?:${$q})`}var tJ=RegExp(`(/[^\\s"'"<>|*?\\n]+?\\.(?:${eJ()}))`,`gi`),nJ=RegExp(`([A-Za-z]:[\\\\/][^"'\`<>*?\\n|=]+?\\.(?:${eJ()}))`,`gi`),rJ={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,webp:`image/webp`,bmp:`image/bmp`,svg:`image/svg+xml`,pdf:`application/pdf`,doc:`application/msword`,docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,xls:`application/vnd.ms-excel`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,ppt:`application/vnd.ms-powerpoint`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,txt:`text/plain`,md:`text/markdown`,json:`application/json`,html:`text/html`,htm:`text/html`,css:`text/css`,mjs:`text/javascript`,cjs:`text/javascript`,js:`text/javascript`,ts:`text/typescript`,mp3:`audio/mpeg`,wav:`audio/wav`,ogg:`audio/ogg`,m4a:`audio/mp4`,mp4:`video/mp4`,mov:`video/quicktime`,webm:`video/webm`};function iJ(e){let t=e.lastIndexOf(`.`);return t<0?`application/octet-stream`:rJ[e.slice(t+1).toLowerCase()]??`application/octet-stream`}function aJ(e){return e.startsWith(`image/`)}function oJ(e){let t=e.trim();if(t.length<4||t.startsWith(`//`)&&!t.startsWith(`//Users`)||t.startsWith(`http:`)||t.startsWith(`https:`)||t.startsWith(`data:`)||t.startsWith(`file://`))return!1;if(t.startsWith(`/`))return/^\/(?:Users|usr|var|opt|tmp|home|root|System|private|dev|media|mnt|Volumes|data)(?:\/|[\s]|$)/i.test(t);if(/^[A-Za-z]:[\\/]/.test(t)){let e=t.replace(/\\/g,`/`);return!/^[A-Za-z]:\/{2,}/.test(e)}return!!t.startsWith(`\\\\`)}function sJ(e){let t=e.replace(/\\/g,`/`).split(`/`).filter(Boolean);return t[t.length-1]||e}function cJ(e){let t=e.trim();return t.includes(`
|
|
90
|
-
`)||t.includes(`\r`)?t:t.replace(/^(?:File written|File edited)\s*:\s*/i,``).replace(/^Saved\s*:\s*/i,``).trim()}function lJ(e){let t=e.trim();if(t.includes(`
|
|
91
|
-
`)||t.includes(`\r`))return t;let n=t.match(/^[fd?] (.+)$/);return n?n[1].trim():t}function uJ(e,t,n,r,i){let a=e.trim();if(!a||!oJ(a)||!/\.(png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|txt|md|json|html?|css|mjs?|cjs|js|ts|mp3|wav|ogg|m4a|mp4|mov|webm)$/i.test(a))return;let o=sJ(a);t.push({absolutePath:a,fileName:o,mimeType:iJ(o),startIndex:r,endIndex:i})}var dJ=new Set([`SOUL.md`,`IDENTITY.md`,`TOOLS.md`,`AGENTS.md`,`HEARTBEAT.md`].map(e=>e.toLowerCase()));function fJ(e){let t=sJ(e.replace(/\\/g,`/`));return!t||t===`.`||t===`..`?!1:dJ.has(t.toLowerCase())}function pJ(e){let t=e.trim();return t.includes(`
|
|
92
|
-
`)||t.includes(`\r`)?!1:/^[fd?] .+$/i.test(t)}function mJ(e){let t=e.trim().replace(/\\/g,`/`);return t.length<4||t.includes(`..`)||t.startsWith(`/`)||/^[A-Za-z]:/i.test(t)||t.startsWith(`\\\\`)||/^[a-z][a-z0-9+.-]*:/i.test(t)||fJ(t)?!1:/\.(png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|txt|md|json|html?|css|mjs?|cjs|js|ts|mp3|wav|ogg|m4a|mp4|mov|webm)$/i.test(t)}function hJ(e,t,n){let r=lJ(cJ(e)).trim().replace(/\\/g,`/`);if(!mJ(r))return;let i=sJ(r);t.push({absolutePath:`rel:${r}`,fileName:i,mimeType:iJ(i),workspaceRelativePath:r,startIndex:0,endIndex:0})}function gJ(e,t,n){if(typeof e==`string`){if(pJ(e)){let r=lJ(cJ(e)).trim().replace(/\\/g,`/`);if(oJ(r)&&/\.[a-z0-9]+$/i.test(r)){let i=n.indexOf(e);i>=0?uJ(r,t,n,i,i+e.length):uJ(r,t,n,0,0)}return}let r=lJ(cJ(e)).trim().replace(/\\/g,`/`);if(oJ(r)&&/\.[a-z0-9]+$/i.test(r)){let i=n.indexOf(e);i>=0?uJ(r,t,n,i,i+e.length):uJ(r,t,n,0,0);return}let i=t.length;if(_J(r,t),t.length>i)return;mJ(r)&&hJ(e,t,n);return}if(Array.isArray(e)){for(let r of e)gJ(r,t,n);return}if(e&&typeof e==`object`){let r=e,i=r.workspaceRelativePaths,a=Array.isArray(i)&&i.length>0&&i.every(e=>typeof e==`string`);if(a)for(let e of i)hJ(e,t,n);for(let[e,i]of Object.entries(r))a&&e===`paths`||gJ(i,t,n)}}function _J(e,t){for(let n of[tJ,nJ]){n.lastIndex=0;let r;for(;(r=n.exec(e))!==null;){let n=r[1];if(n){let i=r.indices?.[1]?.[0]??r.index??0;uJ(n,t,e,i,i+n.length)}}}}function vJ(){return`(?:[A-Za-z0-9_.-]+\\/)*[A-Za-z0-9_.-]+\\.(?:${eJ()})`}function yJ(e){let t=`(${vJ()})`,n=[RegExp(`\\*\\*${t}\\*\\*`,`gi`),RegExp("`"+t+"`",`gi`),RegExp(`\\]\\(${t}\\)`,`gi`)],r=[];for(let t of n){t.lastIndex=0;let n;for(;(n=t.exec(e))!==null;){let t=n[1]?.trim().replace(/^<|>$/g,``);if(t)try{hJ(decodeURIComponent(t),r,e)}catch{hJ(t,r,e)}}}let i=new Set;return r.reduce((e,t)=>{let n=t.workspaceRelativePath??t.absolutePath;return i.has(n)?e:(i.add(n),e.push({...t,origin:`assistant-markdown`}),e)},[])}function bJ(e,t){let n=e.trim().replace(/\\/g,`/`),r=t.trim().replace(/\\/g,`/`).replace(/^\/+/,``);return!r||n.length<r.length?!1:n===r||n.endsWith(`/${r}`)}function xJ(e){let t=e.map(e=>e.workspaceRelativePath).filter(e=>!!e);return t.length===0?e:e.filter(e=>e.workspaceRelativePath||!oJ(e.absolutePath)?!0:!t.some(t=>bJ(e.absolutePath,t)))}function SJ(e){let t=[];if(!e?.trim())return[];try{gJ(JSON.parse(e),t,e)}catch{}t.some(e=>e.workspaceRelativePath)||_J(e,t);let n=xJ(t),r=new Set;return n.reduce((e,t)=>{let n=t.absolutePath;return r.has(n)?e:(r.add(n),e.push({...t,origin:`tool-result`}),e)},[])}var CJ=new Set([`write_file`,`apply_patch`]),wJ=new Set([`image_generate`,`send_media`]),TJ=new Set([`create_share`]);function EJ(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function DJ(e){if(!e?.length)return[];let t=[];for(let n of e){if(n.type!==`tool_use`||n.status!==`done`)continue;let e=Qq(n.result).details,r=n.details&&typeof n.details==`object`&&!Array.isArray(n.details)?n.details:null;t.push(..._P((e??r)?.media)??[])}return CP(t)??[]}function OJ(e){return(e??``).replace(/\\/g,`/`).replace(/^\/+/,``).trim()}function kJ(e,t){let n=OJ(e.workspaceRelativePath),r=OJ(t.workspaceRelativePath),i=e.absolutePath,a=t.absolutePath;return n&&r?n===r:n&&oJ(a)?bJ(a,n):r&&oJ(i)?bJ(i,r):oJ(i)&&oJ(a)?i.replace(/\\/g,`/`).trim()===a.replace(/\\/g,`/`).trim():i===a}function AJ(e,t){let n=oJ(e.absolutePath)?e.absolutePath:oJ(t.absolutePath)?t.absolutePath:e.absolutePath;return{...e,absolutePath:n,workspaceRelativePath:e.workspaceRelativePath??t.workspaceRelativePath,fileName:e.fileName||t.fileName,mimeType:e.mimeType||t.mimeType}}function jJ(e){let t=[],n=OJ(e.workspaceRelativePath);n&&t.push(`rel:${n}`);let r=e.absolutePath?.replace(/\\/g,`/`).trim();return oJ(r)&&t.push(`abs:${r}`),t}function MJ(e){let t=new Map;return e.forEach((e,n)=>{for(let r of jJ(e))t.set(r,n)}),t}function NJ(e,t,n){for(let e of jJ(n)){let n=t.get(e);if(n!==void 0)return n}for(let t=0;t<e.length;t++)if(kJ(e[t],n))return t;return-1}function PJ(e,t){let n=MJ(e);for(let r of t){let t=NJ(e,n,r);if(t>=0){e[t]=AJ(e[t],r);for(let r of jJ(e[t]))n.set(r,t);continue}let i=e.length;e.push(r);for(let e of jJ(r))n.set(e,i)}}function FJ(e){return!(e.type===`voice`||e.type===`audio`||e.type===`image`||e.mimeType?.startsWith(`image/`)||e.mimeType?.startsWith(`audio/`))}function IJ(e,t){if(!e?.length||!t.length)return e;let n=e.filter(e=>FJ(e)?!RJ(e,t):!0);return n.length===e.length?e:n.length?n:void 0}function LJ(e){let t=e.replace(/\\/g,`/`).split(`/`).filter(Boolean);return(t[t.length-1]??e).trim().toLowerCase()}function RJ(e,t){if(e.uri?.startsWith(`media://`))return!1;let n=OJ(void 0),r=(e.name??``).trim().toLowerCase();for(let e of t){let t=OJ(e.workspaceRelativePath);if(t&&n&&n===t||t&&!n&&r&&LJ(t)===r||oJ(e.absolutePath)&&n&&bJ(e.absolutePath,n)||!t&&!n&&r&&oJ(e.absolutePath)&&LJ(e.absolutePath)===r)return!0}return!1}function zJ(e){if(!e?.length)return[];let t=[];for(let n of e){if(n.type!==`tool_use`)continue;let e=n;if(e.status!==`done`)continue;if(!CJ.has(e.name)){if(!TJ.has(e.name))continue;let n=EJ(e.input);n.trim()&&PJ(t,SJ(n));continue}let r=EJ(e.result);r.trim()&&PJ(t,SJ(r))}let n=new Set(t.flatMap(e=>{let t=OJ(e.workspaceRelativePath);return t?[t]:[]})),r=new Set;for(let e of t)if(oJ(e.absolutePath)){let t=LJ(e.absolutePath);t&&r.add(t)}for(let i of e){if(i.type!==`text`)continue;let e=(i.text??``).trim();!e||n.size===0&&r.size===0||PJ(t,yJ(e).filter(e=>{let t=OJ(e.workspaceRelativePath);if(!t)return!1;if(n.has(t))return!0;if(t.split(`/`).length<2)return!1;let i=LJ(t);return i.length>0&&r.has(i)}))}return t}function BJ(e,t){let n=e.source?.data?.trim();if(!n)return null;let r=n.match(/^data:([^;]+);base64,([\s\S]+)$/i);if(r?.[1]&&r[2]){let e=r[2].replace(/\s/g,``);return{name:`image-${t+1}`,mimeType:r[1],type:`image`,content:e,data:e}}if(n.startsWith(`data:`))return{name:`image-${t+1}`,mimeType:`image/png`,type:`image`,content:n,data:n};let i=n.replace(/\s/g,``);return{name:`image-${t+1}`,mimeType:`image/png`,type:`image`,content:i,data:i}}function VJ(e){if(!e?.length)return[];let t=[];for(let n=0;n<e.length;n+=1){let r=BJ(e[n],n);r&&t.push(r)}return t}var HJ=160;function UJ(e){return e.presentation===`pending`||e.presentation===`narration`}function WJ(e){let t=e.trim();if(!t)return``;let n=t.search(/[。!?.!?\n]/);if(n>=0&&n<HJ){let e=t[n];return t.slice(0,n+(e===`
|
|
93
|
-
`?0:1)).trim()}return t.length<=HJ?t:`${t.slice(0,HJ).trimEnd()}…`}function GJ(e){return UJ(e)?WJ(e.text):e.text}function KJ(e){let t=[],n=!1;for(let r of e)if(!(r.type===`thinking`||r.type===`tool_use`))if(r.type===`text`){if(UJ(r)){if(n)continue;n=!0}t.push(GJ(r))}else r.type===`image`&&t.push(`[image]`);return t.join(`
|
|
94
|
-
|
|
95
|
-
`).trim()}function qJ(e){if(!e.trim())return``;let t=lU.parse(e,{gfm:!0,breaks:!1});return new DOMParser().parseFromString(`<div>${t}</div>`,`text/html`).body.textContent?.trim()??``}function JJ(e){let t=[],n=!1;for(let r of e)if(!(r.type===`thinking`||r.type===`tool_use`))if(r.type===`text`){if(UJ(r)){if(n)continue;n=!0}t.push(qJ(GJ(r)))}else r.type===`image`&&t.push(`[image]`);return t.join(`
|
|
96
|
-
|
|
97
|
-
`).trim()}function YJ(e,t){let n=t??WM(e,`running`);return n.category===`memory`&&n.action===`search`?`memorySearch`:n.category===`web`&&n.action===`search`?`webSearch`:n.category===`code`&&n.action===`search`?`codeSearch`:n.category===`other`&&n.action===`search`?`search`:n.category===`file`&&n.action===`read`?`readFile`:n.category===`file`&&n.action===`list`?`listDir`:n.category===`file`&&n.action===`write`?`writeFile`:n.category===`file`&&n.action===`edit`?`editFile`:n.category===`command`&&n.action===`execute`?`runCommand`:n.category===`navigation`&&n.action===`open`?`openUrl`:n.category===`web`&&n.action===`read`?`fetchUrl`:`other`}function XJ(e,t,n){let r=n??WM(e,`running`);if(r.category===`planning`)return t.updatePlan??t.unknownTool.replace(`{{name}}`,e);let i=YJ(e,r);return i===`webSearch`?t.searchedWeb:i===`memorySearch`?t.searchedMemory??t.searched??t.searchedWeb:i===`codeSearch`?t.searchedCode??t.searched??t.searchedWeb:i===`search`?t.searched??t.searchedWeb:i===`readFile`?t.readFile:i===`runCommand`?t.runCommand:i===`listDir`?t.listDirectory:i===`writeFile`?t.writeFile:i===`editFile`?t.editFile:i===`openUrl`?t.openUrl:i===`fetchUrl`?t.fetchUrl:t.unknownTool.replace(`{{name}}`,e.trim()||`tool`)}function ZJ(e){if(e===void 0)return``;try{return JSON.stringify(JSON.parse(e),null,2)}catch{try{return JSON.stringify(e,null,2)}catch{return String(e)}}}function QJ(e){if(e==null)return null;try{return typeof e==`string`?JSON.parse(e):e}catch{return null}}function $J(e){let t=QJ(e),n=t?.query??t?.q??t?.query_string??t?.search_term??t?.searchQuery;return typeof n==`string`?n:typeof n==`number`?String(n):``}function eY(e){let t=QJ(e),n=t?.path??t?.file_path??t?.filepath??t?.file??t?.qualified_name??t?.function_name;return typeof n==`string`?n:``}function tY(e){let t=QJ(e),n=t?.url??t?.href??t?.uri??t?.website;return typeof n==`string`?n:``}function nY(e){let t=QJ(e),n=t?.command??t?.cmd??t?.shell??t?.script;return typeof n==`string`?n:``}var rY=120;function iY(e){if(e==null)return``;let t=QJ(e);if(!t)return typeof e==`string`?e.trim():``;let n=[t.command,t.cmd,t.shell,t.script,t.path,t.file_path,t.filepath,t.file,t.url,t.href,t.uri,t.website,t.query,t.q,t.query_string,t.search_term,t.searchQuery,t.qualified_name,t.function_name,t.name_pattern,t.qn_pattern,t.file_pattern];for(let e of n){if(typeof e==`string`&&e.trim()){let t=e.trim();return t.length>rY?`${t.slice(0,rY)}…`:t}if(typeof e==`number`&&Number.isFinite(e))return String(e)}return``}var aY=120,oY=240,sY=3,cY=[`readFile`,`editFile`,`writeFile`,`runCommand`,`memorySearch`,`codeSearch`,`webSearch`,`search`,`fetchUrl`,`openUrl`,`listDir`,`other`];function lY(e,t){return YJ(e,t)}function uY(e){let t=new Map;for(let n of e){if(n.type!==`tool_use`)continue;let e=lY(n.name,n.activity),r=t.get(e)??{total:0,running:0};r.total+=1,n.status===`running`&&(r.running+=1),t.set(e,r)}return t}function dY(e,t,n){return n[t===1?`${e}_one`:`${e}_other`].replace(/\{\{count\}\}/g,String(t))}function fY(e,t){switch(e){case`webSearch`:return t.webSearch;case`memorySearch`:return t.memorySearch;case`codeSearch`:return t.codeSearch;case`search`:return t.search;case`readFile`:return t.readFile;case`editFile`:return t.editFile;case`writeFile`:return t.writeFile;case`runCommand`:return t.runCommand;case`listDir`:return t.listDir;case`openUrl`:return t.openUrl;case`fetchUrl`:return t.fetchUrl;case`other`:return t.other}}function pY(e){let t=[];for(let n of cY)e.has(n)&&t.push(n);return t}function mY(e,t){return e.length===0?``:e.length===1?e[0]:e.length===2?`${e[0]}${t.joinFinal}${e[1]}`:`${e.slice(0,-1).join(t.join)}${t.joinFinal}${e[e.length-1]}`}function hY(e,t){return e.length>t?`${e.slice(0,t)}…`:e}function gY(e,t,n,r){let i=e.input,a=``;return a=t===`memorySearch`?``:t===`webSearch`||t===`codeSearch`||t===`search`?$J(i).trim():t===`runCommand`?nY(i).trim():t===`readFile`||t===`editFile`||t===`writeFile`?eY(i).trim():t===`fetchUrl`||t===`openUrl`?tY(i).trim():iY(i).trim(),a?hY(`${dY(t,1,n)}${r===`zh`?`:`:`: `}${hY(a,aY)}`,oY):null}function _Y(e,t,n,r){let i=uY(e);if(i.size===0)return null;let a=i.size===1?[...i.keys()][0]:null;if(a&&i.get(a).total===1){let n=e.find(e=>e.type===`tool_use`&&lY(e.name,e.activity)===a);if(n){let e=gY(n,a,t,r);if(e)return e}}let o=pY(i),s=o.slice(0,sY),c=o.length-s.length,l=mY(s.map(e=>dY(e,i.get(e).total,t)),n);return c>0&&(l=`${l}${n.moreSuffix}`),hY(l,oY)}function vY(e,t){let n=uY(e),r=[];for(let e of cY){let t=n.get(e);t&&t.running>0&&r.push(e)}return r.length===1?fY(r[0],t):r.length>1?t.mixed:e.some(e=>e.type===`thinking`&&e.streaming)?t.thinking:n.size>0?t.mixed:null}function yY(e){return e.filter(e=>e.type!==`thinking`||!!e.text?.trim()||!!e.streaming)}function bY(e,t){return(e===1?t.viewSteps_one:t.viewSteps_other).replace(/\{\{count\}\}/g,String(e))}function xY(e,t,n,r,i){return _Y(e,t,n,r)??i}function SY(e,t){return vY(e,t)}function CY(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function wY(e){if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return e}}function TY(e){let t=CY(wY(e));if(!t)return[];let n=CY(t.details)?.results??t.results;if(Array.isArray(n))return n.map(CY).filter(e=>e!==null);let r=Array.isArray(t.content)?t.content:[];for(let e of r){let t=CY(e)?.text,n=CY(wY(t));if(Array.isArray(n?.results))return n.results.map(CY).filter(e=>e!==null)}return[]}function EY(e,t){return e.replace(/\{\{count\}\}/g,String(t))}function DY(e,t){if(e.status===`running`||e.activity?.status===`running`)return{title:t.running,purpose:t.purpose};if(e.status===`error`||e.activity?.status===`failed`)return{title:t.failed,purpose:t.purpose};let n=TY(e.result),r=e.activity?.count??n.length;return{title:r===0?t.empty:EY(r===1?t.found_one:t.found_other,r),purpose:t.purpose}}function OY(e){return e.startsWith(`@@`)?`hunk`:e.startsWith(`+++`)||e.startsWith(`---`)||e.startsWith(`diff `)||e.startsWith(`index `)?`meta`:e.startsWith(`+`)?`add`:e.startsWith(`-`)?`del`:`context`}function kY(e){let t=e.details?.diff;if(typeof t!=`string`||t.length===0)return null;let n=t.split(`
|
|
98
|
-
`),r=[],i=0,a=0;for(let e of n){let t=OY(e);t===`add`&&!e.startsWith(`+++`)&&i++,t===`del`&&!e.startsWith(`---`)&&a++,r.push({kind:t,text:e})}return{raw:t,lines:r,added:i,removed:a}}var AY=`inline-flex max-w-full min-w-0 items-center gap-1 rounded-md bg-accent-soft/40 px-1.5 py-0.5 text-[11px] font-medium text-fg-muted [overflow-wrap:anywhere] dark:bg-accent-soft/25`,jY=`inline-flex max-w-full min-w-0 items-center break-words rounded-md bg-surface-hover/60 px-1.5 py-0.5 font-mono text-xs text-fg [overflow-wrap:anywhere] dark:bg-surface-hover/35`,MY=`max-h-72 w-full min-w-0 max-w-full overflow-y-auto overflow-x-hidden whitespace-pre-wrap break-words rounded-md bg-surface-hover/60 p-2 font-mono text-xs text-fg-muted [overflow-wrap:anywhere] dark:bg-surface-hover/35`,NY=`cursor-pointer select-none text-xs text-fg-subtle underline-offset-2 hover:text-fg-muted group-open:text-fg-muted`;function PY(e){let t=(0,Q.c)(5),{children:n,tone:r}=e,i=r===void 0?`neutral`:r,a=i===`positive`?`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`:i===`negative`?`bg-red-500/15 text-red-700 dark:text-red-300`:i===`warning`?`bg-amber-500/15 text-amber-700 dark:text-amber-300`:i===`accent`?`bg-accent-soft/70 text-accent-fg dark:bg-accent-soft/50`:``,o;t[0]===a?o=t[1]:(o=C(AY,a),t[0]=a,t[1]=o);let s;return t[2]!==n||t[3]!==o?(s=(0,$.jsx)(`span`,{className:o,children:n}),t[2]=n,t[3]=o,t[4]=s):s=t[4],s}function FY(e){let t=(0,Q.c)(3),{children:n,title:r}=e,i;return t[0]!==n||t[1]!==r?(i=(0,$.jsx)(`code`,{className:jY,title:r,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}var IY=(0,Z.memo)(function(e){let t=(0,Q.c)(11),{text:n,label:r,copiedLabel:i}=e,[a,o]=(0,Z.useState)(!1),s;t[0]===n?s=t[1]:(s=async e=>{e.preventDefault(),e.stopPropagation(),await k(n)&&(o(!0),window.setTimeout(()=>o(!1),1200))},t[0]=n,t[1]=s);let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=C(`inline-flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,aT.transition,aT.focusRingPanel),t[2]=c):c=t[2];let l;t[3]!==a||t[4]!==i||t[5]!==r?(l=a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(S,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(tl,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`hidden sm:inline`,children:r})]}),t[3]=a,t[4]=i,t[5]=r,t[6]=l):l=t[6];let u;return t[7]!==r||t[8]!==s||t[9]!==l?(u=(0,$.jsx)(`button`,{type:`button`,onClick:s,className:c,"aria-label":r,title:r,children:l}),t[7]=r,t[8]=s,t[9]=l,t[10]=u):u=t[10],u});function LY(e){let t=(0,Q.c)(8),{summary:n,children:r,defaultOpen:i}=e,a=i===void 0?!1:i,o;t[0]===n?o=t[1]:(o=(0,$.jsx)(`summary`,{className:NY,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,$.jsx)(`div`,{className:`mt-1.5 min-w-0`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,open:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function RY(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,$.jsx)(`pre`,{className:MY,children:n}),t[0]=n,t[1]=r),r}function zY(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>{let r=t[n];return r==null?``:String(r)})}function BY(e){return e.details??{}}var VY=/\[(\d+)\/(\d+) lines\]\s*$/;function HY(e){let t=e.match(VY);if(!t)return null;let n=Number(t[1]),r=Number(t[2]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{shown:n,total:r}}function UY(e){return e.replace(VY,``).trimEnd()}var WY=(0,Z.memo)(function(e){let t=(0,Q.c)(32),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=eY(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=Qq(n.result),t[2]=n.result,t[3]=o);let s=o.text,c;t[4]===s?c=t[5]:(c=HY(s),t[4]=s,t[5]=c);let l=c,u;t[6]===s?u=t[7]:(u=UY(s),t[6]=s,t[7]=u);let d=u,f;bb0:{if(l){f=l.total;break bb0}if(!d){f=0;break bb0}let e;t[8]===d?e=t[9]:(e=d.split(`
|
|
99
|
-
`),t[8]=d,t[9]=e),f=e.length}let p=f,m;if(t[10]!==d){bb1:{if(!d){m=``;break bb1}let e=d.split(`
|
|
100
|
-
`);if(e.length<=12){m=d;break bb1}m=`${e.slice(0,12).join(`
|
|
101
|
-
`)}\n…`}t[10]=d,t[11]=m}else m=t[11];let h=m,g;t[12]===a?g=t[13]:(g=a?(0,$.jsx)(FY,{title:a,children:a}):null,t[12]=a,t[13]=g);let _;t[14]!==r||t[15]!==l||t[16]!==p?(_=p>0?(0,$.jsx)(PY,{children:l&&l.shown<l.total?zY(r.linesPartial,{shown:l.shown,total:l.total}):zY(r.linesBadge,{count:p})}):null,t[14]=r,t[15]=l,t[16]=p,t[17]=_):_=t[17];let v;t[18]!==r||t[19]!==a?(v=a?(0,$.jsx)(IY,{text:a,label:r.copyPath,copiedLabel:r.copied}):null,t[18]=r,t[19]=a,t[20]=v):v=t[20];let y;t[21]!==g||t[22]!==_||t[23]!==v?(y=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[g,_,v]}),t[21]=g,t[22]=_,t[23]=v,t[24]=y):y=t[24];let b;t[25]!==d||t[26]!==r||t[27]!==h?(b=d?(0,$.jsx)(LY,{summary:r.viewContent,children:(0,$.jsx)(RY,{children:h})}):null,t[25]=d,t[26]=r,t[27]=h,t[28]=b):b=t[28];let x;return t[29]!==y||t[30]!==b?(x=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[y,b]}),t[29]=y,t[30]=b,t[31]=x):x=t[31],x});function GY(e){let t=(0,Q.c)(4),{lines:n}=e,r;t[0]===n?r=t[1]:(r=n.map(KY),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,$.jsx)(`pre`,{className:`max-h-80 w-full min-w-0 max-w-full overflow-auto rounded-md bg-surface-hover/60 p-2 font-mono text-xs leading-snug text-fg-muted dark:bg-surface-hover/35`,children:r}),t[2]=r,t[3]=i),i}function KY(e,t){return(0,$.jsx)(`div`,{className:C(`whitespace-pre-wrap break-words [overflow-wrap:anywhere]`,e.kind===`add`&&`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`,e.kind===`del`&&`bg-red-500/15 text-red-700 dark:text-red-300`,e.kind===`hunk`&&`text-fg-subtle`,e.kind===`meta`&&`text-fg-disabled`),children:e.text||`\xA0`},t)}var qY=(0,Z.memo)(function(e){let t=(0,Q.c)(25),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=eY(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=Qq(n.result),t[2]=n.result,t[3]=o);let s=o,c;t[4]===s?c=t[5]:(c=kY(s),t[4]=s,t[5]=c);let l=c,u;t[6]===a?u=t[7]:(u=a?(0,$.jsx)(FY,{title:a,children:a}):null,t[6]=a,t[7]=u);let d;t[8]!==l||t[9]!==r?(d=l?(0,$.jsx)(PY,{tone:`accent`,children:zY(r.diffStats,{added:l.added,removed:l.removed})}):null,t[8]=l,t[9]=r,t[10]=d):d=t[10];let f;t[11]!==r||t[12]!==a?(f=a?(0,$.jsx)(IY,{text:a,label:r.copyPath,copiedLabel:r.copied}):null,t[11]=r,t[12]=a,t[13]=f):f=t[13];let p;t[14]!==u||t[15]!==d||t[16]!==f?(p=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[u,d,f]}),t[14]=u,t[15]=d,t[16]=f,t[17]=p):p=t[17];let m;t[18]!==l||t[19]!==r||t[20]!==s?(m=l?(0,$.jsx)(LY,{summary:r.viewDiff,defaultOpen:!0,children:(0,$.jsx)(GY,{lines:l.lines})}):s.text?(0,$.jsx)(`p`,{className:`text-xs text-fg-muted [overflow-wrap:anywhere]`,children:s.text}):null,t[18]=l,t[19]=r,t[20]=s,t[21]=m):m=t[21];let h;return t[22]!==p||t[23]!==m?(h=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[p,m]}),t[22]=p,t[23]=m,t[24]=h):h=t[24],h});function JY(e){return!Number.isFinite(e)||e<0?``:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var YY=(0,Z.memo)(function(e){let t=(0,Q.c)(20),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=eY(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=Qq(n.result),t[2]=n.result,t[3]=o);let s=o,c,l,u;if(t[4]!==r||t[5]!==s||t[6]!==a){let e=BY(s),n=typeof e.size==`number`?e.size:null;c=`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,t[10]===a?l=t[11]:(l=a?(0,$.jsx)(FY,{title:a,children:a}):null,t[10]=a,t[11]=l),u=n==null?null:(0,$.jsx)(PY,{children:zY(r.sizeBadge,{size:JY(n)})}),t[4]=r,t[5]=s,t[6]=a,t[7]=c,t[8]=l,t[9]=u}else c=t[7],l=t[8],u=t[9];let d;t[12]!==r||t[13]!==a?(d=a?(0,$.jsx)(IY,{text:a,label:r.copyPath,copiedLabel:r.copied}):null,t[12]=r,t[13]=a,t[14]=d):d=t[14];let f;return t[15]!==c||t[16]!==l||t[17]!==u||t[18]!==d?(f=(0,$.jsxs)(`div`,{className:c,children:[l,u,d]}),t[15]=c,t[16]=l,t[17]=u,t[18]=d,t[19]=f):f=t[19],f}),XY=12;function ZY(e){if(!e)return{preview:``,truncated:!1};let t=e.split(`
|
|
102
|
-
`);return t.length<=XY?{preview:e,truncated:!1}:{preview:`${t.slice(0,XY).join(`
|
|
103
|
-
`)}\n…`,truncated:!0}}var QY=(0,Z.memo)(function({block:e,labels:t}){let n=nY(e.input),r=(0,Z.useMemo)(()=>Qq(e.result),[e.result]),i=(e.details&&typeof e.details==`object`&&!Array.isArray(e.details)?e.details:null)??BY(r),a=typeof i.exitCode==`number`?i.exitCode:null,o=!!i.timedOut,s=!!i.truncated,c=e.status===`running`,l=e.status===`error`,u=typeof i.aggregatedOutput==`string`&&i.aggregatedOutput.length>0?i.aggregatedOutput:r.text,{preview:d}=(0,Z.useMemo)(()=>ZY(u),[u]),f=c?(0,$.jsxs)(PY,{children:[(0,$.jsx)(Zg,{className:`size-3 animate-spin`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:t.exitCodeUnknown})]}):o?(0,$.jsx)(PY,{tone:`warning`,children:t.timedOut}):a===0?(0,$.jsx)(PY,{tone:`positive`,children:t.exitCodeOk}):a==null?l?(0,$.jsx)(PY,{tone:`negative`,children:t.exitCodeUnknown}):null:(0,$.jsx)(PY,{tone:`negative`,children:zY(t.exitCodeNonZero,{code:a})});return(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[n?(0,$.jsxs)(FY,{title:n,children:[(0,$.jsx)(`span`,{className:`mr-1 text-fg-disabled`,children:`$`}),n]}):null,f,s?(0,$.jsx)(PY,{tone:`warning`,children:t.truncatedBadge}):null,n?(0,$.jsx)(IY,{text:n,label:t.copyCommand,copiedLabel:t.copied}):null]}),u?(0,$.jsx)(LY,{summary:t.viewOutput,children:(0,$.jsx)(RY,{children:d})}):c?null:(0,$.jsx)(`p`,{className:`text-xs text-fg-disabled`,children:t.noOutput})]})}),$Y=(0,Z.memo)(function(e){let t=(0,Q.c)(27),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=tY(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=Qq(n.result),t[2]=n.result,t[3]=o);let s=o,c,l,u,d,f;if(t[4]!==r||t[5]!==s||t[6]!==a){let e=BY(s),n=typeof e.extractedLength==`number`?e.extractedLength:null,i;if(t[12]!==s.text){bb0:{if(!s.text){i=``;break bb0}let e=s.text.split(`
|
|
104
|
-
`);if(e.length<=12){i=s.text;break bb0}i=`${e.slice(0,12).join(`
|
|
105
|
-
`)}\n…`}t[12]=s.text,t[13]=i}else i=t[13];c=i,f=`space-y-1.5`,l=`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,t[14]===a?u=t[15]:(u=a?(0,$.jsx)(`a`,{href:a,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex max-w-full min-w-0 items-center break-words rounded-md bg-surface-hover/60 px-1.5 py-0.5 font-mono text-xs text-accent-fg underline-offset-2 hover:underline [overflow-wrap:anywhere] dark:bg-surface-hover/35`,title:a,children:a}):null,t[14]=a,t[15]=u),d=n!=null&&n>0?(0,$.jsx)(PY,{children:zY(r.linesBadge,{count:n})}):null,t[4]=r,t[5]=s,t[6]=a,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f}else c=t[7],l=t[8],u=t[9],d=t[10],f=t[11];let p;t[16]!==l||t[17]!==u||t[18]!==d?(p=(0,$.jsxs)(`div`,{className:l,children:[u,d]}),t[16]=l,t[17]=u,t[18]=d,t[19]=p):p=t[19];let m;t[20]!==r||t[21]!==c?(m=c?(0,$.jsx)(LY,{summary:r.viewContent,children:(0,$.jsx)(RY,{children:c})}):null,t[20]=r,t[21]=c,t[22]=m):m=t[22];let h;return t[23]!==f||t[24]!==p||t[25]!==m?(h=(0,$.jsxs)(`div`,{className:f,children:[p,m]}),t[23]=f,t[24]=p,t[25]=m,t[26]=h):h=t[26],h}),eX=R(U(e=>({showRawToolData:!1,setShowRawToolData:t=>e({showRawToolData:t})}),{name:`xopc-web-dev-view`}));function tX(e,t){if(!Number.isFinite(e)||e<=0)return t===`zh`?`不到1秒`:`<1s`;let n=Math.floor(e/1e3);if(n===0)return t===`zh`?`不到1秒`:`<1s`;let r=Math.floor(n/60),i=n%60;return t===`zh`?r===0?`${i}秒`:i===0?`${r}分`:`${r}分${i}秒`:r===0?`${i}s`:i===0?`${r}m`:`${r}m ${i}s`}var nX={extension:wy,local:Xv,cloakbrowser:Wy,cdp:hx,cloud:Sc};function rX(e){let t=(0,Q.c)(29),{payload:n}=e,r=m(),i=I(iX),a;t[0]===i?a=t[1]:(a=j(i),t[0]=i,t[1]=a);let o=a.chat,s=nX[n.backend]??Kp,c=o.browserSetupRequiredTitle,l=o.browserSetupRequiredReasons[n.reason]??o.browserSetupRequiredReasons.generic,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=C(`mt-2 flex flex-col gap-2 rounded-xl border border-amber-300/60 bg-amber-50/70 p-3`,`dark:border-amber-500/30 dark:bg-amber-500/10`),t[2]=u):u=t[2];let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=C(`flex size-8 shrink-0 items-center justify-center rounded-lg`,`bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300`),t[3]=d):d=t[3];let f;t[4]===s?f=t[5]:(f=(0,$.jsx)(`span`,{className:d,"aria-hidden":!0,children:(0,$.jsx)(s,{className:`size-4`,strokeWidth:1.75})}),t[4]=s,t[5]=f);let p;t[6]===c?p=t[7]:(p=(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-amber-900 dark:text-amber-100`,children:c}),t[6]=c,t[7]=p);let h;t[8]===l?h=t[9]:(h=(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-relaxed text-amber-900/85 dark:text-amber-100/80`,children:l}),t[8]=l,t[9]=h);let g;t[10]!==p||t[11]!==h?(g=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[p,h]}),t[10]=p,t[11]=h,t[12]=g):g=t[12];let _;t[13]!==f||t[14]!==g?(_=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[f,g]}),t[13]=f,t[14]=g,t[15]=_):_=t[15];let v;t[16]!==r||t[17]!==n.deepLink?(v=()=>r(n.deepLink),t[16]=r,t[17]=n.deepLink,t[18]=v):v=t[18];let y;t[19]!==o.browserSetupRequiredCta||t[20]!==v?(y=(0,$.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`h-8 px-3 py-1.5 text-xs`,onClick:v,children:o.browserSetupRequiredCta})}),t[19]=o.browserSetupRequiredCta,t[20]=v,t[21]=y):y=t[21];let b;t[22]!==o.browserSetupRequiredDetailToggle||t[23]!==n.detail?(b=n.detail?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-amber-800/80 underline-offset-2 hover:text-amber-900 dark:text-amber-200/80 dark:hover:text-amber-100`,children:o.browserSetupRequiredDetailToggle}),(0,$.jsx)(`pre`,{className:`mt-2 max-h-40 w-full min-w-0 overflow-y-auto overflow-x-hidden whitespace-pre-wrap break-words rounded-md bg-amber-100/60 p-2 font-mono text-[11px] text-amber-900 dark:bg-amber-500/15 dark:text-amber-100 [overflow-wrap:anywhere]`,children:n.detail})]}):null,t[22]=o.browserSetupRequiredDetailToggle,t[23]=n.detail,t[24]=b):b=t[24];let x;return t[25]!==y||t[26]!==b||t[27]!==_?(x=(0,$.jsxs)(`section`,{role:`status`,"aria-live":`polite`,className:u,children:[_,y,b]}),t[25]=y,t[26]=b,t[27]=_,t[28]=x):x=t[28],x}function iX(e){return e.language}var aX=new Set([`extension`,`local`,`cloakbrowser`,`cdp`,`cloud`]),oX=new Set([`extension_not_installed`,`extension_bridge_offline`,`extension_not_connected`,`local_chromium_missing`,`cloakbrowser_not_installed`,`cdp_unreachable`,`cloud_api_key_missing`]);function sX(e){if(!e?.trim())return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!=`object`)return null;let n=t;if(n.kind!==`browser_setup_required`)return null;let r=n.backend,i=n.reason,a=n.deepLink;return typeof r!=`string`||!aX.has(r)||typeof i!=`string`||!oX.has(i)||typeof a!=`string`||!a.startsWith(`/settings/`)?null:{kind:`browser_setup_required`,backend:r,reason:i,deepLink:a,detail:typeof n.detail==`string`?n.detail:void 0,message:typeof n.message==`string`?n.message:void 0}}function cX(){return function(e,t){switch(t.type){case`reset`:return{form:null,baseline:null};case`sync`:{let e=structuredClone(t.value);return{form:e,baseline:structuredClone(e)}}case`patch`:return{...e,form:e.form?{...e.form,...t.patch}:null};case`saved`:{let n=structuredClone(t.value),r=e.form;return{form:r!==null&&JSON.stringify(r)!==JSON.stringify(t.value)?r:n,baseline:structuredClone(n)}}case`set-form`:return e.form?{...e,form:t.updater(e.form)}:e}}}function lX(e,t){return{...e,...t.patch}}function uX(e){let{enabled:t,parsed:n,dirty:r,trackedParsedRef:i,dispatch:a,onResetDirty:o}=e;if(!t){i.current!==null&&(i.current=null,a({type:`reset`}),o?.());return}n!==null&&!r&&i.current!==n&&(i.current=n,a({type:`sync`,value:n}))}function dX(e){return e.split(`/`).filter(Boolean).map(e=>encodeURIComponent(e)).join(`/`)}function fX(e,t){let n=dX(t);return z(`/api/extensions/${encodeURIComponent(e)}/assets/${n}`)}var pX={theme:`Read theme (light / dark)`,"agent.send":`Send messages to the assistant`,"agent.subscribe":`Receive live agent stream events for a chat`,"session.read":`List and open chat sessions`,"session.write":`Modify chat sessions`,"config.read":`Read extension configuration`,"config.write":`Write extension configuration`,storage:`Read and write extension storage`,notification:`Show in-app notifications`,clipboard:`Use the clipboard`,"workspace.read":`Read workspace files`,"workspace.write":`Write workspace files`},mX={theme:`读取主题(浅色/深色)`,"agent.send":`向助手发送消息`,"agent.subscribe":`接收会话的实时助手流式事件`,"session.read":`列出并打开聊天会话`,"session.write":`修改聊天会话`,"config.read":`读取扩展配置`,"config.write":`写入扩展配置`,storage:`读写扩展存储`,notification:`显示应用内通知`,clipboard:`使用剪贴板`,"workspace.read":`读取工作区文件`,"workspace.write":`写入工作区文件`};function hX(e,t){let n=pX[e];return t===`zh`&&mX[e]?mX[e]:n??e}function gX(e){let t=(0,Q.c)(58),{open:n,onOpenChange:r,extensionId:i,extensionName:a,permissions:o,onConfirm:s}=e,c=I(vX),l,u,d,f,p,m,h,g,_,v,y,b;t[0]!==a||t[1]!==c||t[2]!==r||t[3]!==n?(p=j(c).extensionUi,f=LD,y=n,b=r,d=UD,t[16]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[130] bg-scrim`}),t[16]=v):v=t[16],u=YD,g=`fixed left-1/2 top-1/2 z-[131] w-[min(28rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-5 shadow-elevated`,_=_X,l=eO,m=`text-base font-semibold text-fg`,h=p.permissionTitle.replace(`{{name}}`,a),t[0]=a,t[1]=c,t[2]=r,t[3]=n,t[4]=l,t[5]=u,t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g,t[12]=_,t[13]=v,t[14]=y,t[15]=b):(l=t[4],u=t[5],d=t[6],f=t[7],p=t[8],m=t[9],h=t[10],g=t[11],_=t[12],v=t[13],y=t[14],b=t[15]);let x;t[17]!==l||t[18]!==m||t[19]!==h?(x=(0,$.jsx)(l,{className:m,children:h}),t[17]=l,t[18]=m,t[19]=h,t[20]=x):x=t[20];let S;t[21]===i?S=t[22]:(S=(0,$.jsxs)(`span`,{className:`font-mono text-xs text-fg-muted`,title:i,children:[`(`,i,`)`]}),t[21]=i,t[22]=S);let C;t[23]!==p.permissionSubtitle||t[24]!==S?(C=(0,$.jsxs)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:[p.permissionSubtitle,` `,S]}),t[23]=p.permissionSubtitle,t[24]=S,t[25]=C):C=t[25];let w;t[26]!==c||t[27]!==o||t[28]!==p.permissionsNone?(w=o.length===0?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-fg-muted`,children:p.permissionsNone}):(0,$.jsx)(`ul`,{className:`mt-4 max-h-48 list-inside list-disc space-y-1 overflow-y-auto text-sm text-fg`,children:o.map(e=>(0,$.jsx)(`li`,{children:hX(e,c)},e))}),t[26]=c,t[27]=o,t[28]=p.permissionsNone,t[29]=w):w=t[29];let T;t[30]===p.deny?T=t[31]:(T=(0,$.jsx)(iO,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg border border-edge px-3 py-2 text-sm text-fg hover:bg-surface-muted`,children:p.deny})}),t[30]=p.deny,t[31]=T);let E;t[32]!==s||t[33]!==r?(E=()=>{s(),r(!1)},t[32]=s,t[33]=r,t[34]=E):E=t[34];let D;t[35]!==p.allow||t[36]!==E?(D=(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg bg-accent px-3 py-2 text-sm font-medium text-white hover:opacity-90`,onClick:E,children:p.allow}),t[35]=p.allow,t[36]=E,t[37]=D):D=t[37];let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(`div`,{className:`mt-6 flex justify-end gap-2`,children:[T,D]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;t[41]!==u||t[42]!==C||t[43]!==w||t[44]!==O||t[45]!==g||t[46]!==_||t[47]!==x?(k=(0,$.jsxs)(u,{className:g,onOpenAutoFocus:_,children:[x,C,w,O]}),t[41]=u,t[42]=C,t[43]=w,t[44]=O,t[45]=g,t[46]=_,t[47]=x,t[48]=k):k=t[48];let A;t[49]!==d||t[50]!==k||t[51]!==v?(A=(0,$.jsxs)(d,{children:[v,k]}),t[49]=d,t[50]=k,t[51]=v,t[52]=A):A=t[52];let M;return t[53]!==f||t[54]!==A||t[55]!==y||t[56]!==b?(M=(0,$.jsx)(f,{open:y,onOpenChange:b,children:A}),t[53]=f,t[54]=A,t[55]=y,t[56]=b,t[57]=M):M=t[57],M}function _X(e){return e.preventDefault()}function vX(e){return e.language}async function yX(e){let{grant:t}=await B(z(`/api/extensions/${encodeURIComponent(e)}/ui-grant`));return t}async function bX(e){return(await B(z(`/api/extensions/${encodeURIComponent(e)}/ui-grant`),{method:`POST`})).grant}var xX=48,SX=2e3,CX=`allow-scripts allow-forms allow-popups`;function wX(e){let t=(0,Q.c)(79),{extensionId:n,extensionName:r,entrypoint:i,permissions:a,title:o,className:s,fixedHeight:c,maxHeight:l,minHeight:u,initialData:d}=e,f=l===void 0?SX:l,p=u===void 0?xX:u,m=I(EX),h;t[0]===m?h=t[1]:(h=j(m),t[0]=m,t[1]=h);let g=h.extensionUi,_=dN(),v=(0,Z.useRef)(null),y=W(TX),b;t[2]!==n||t[3]!==r?(b=r?.trim()||n,t[2]=n,t[3]=r,t[4]=b):b=t[4];let x=b,S;t[5]!==n||t[6]!==o?(S=o?.trim()||`Extension ${n}`,t[5]=n,t[6]=o,t[7]=S):S=t[7];let C=S,w;t[8]===a?w=t[9]:(w=JSON.stringify(Array.from(a??[]).toSorted()),t[8]=a,t[9]=w);let T=w,E;t[10]===T?E=t[11]:(E=JSON.parse(T),t[10]=T,t[11]=E);let D=E,O=c??Math.min(f,Math.max(p,320)),k;t[12]===O?k=t[13]:(k={allowed:!1,dialogOpen:!1,reloadKey:0,loadError:!1,dynamicHeight:O,grantResolved:!1,grantError:null},t[12]=O,t[13]=k);let[A,M]=(0,Z.useReducer)(lX,k),{allowed:N,dialogOpen:P,reloadKey:F,loadError:L,dynamicHeight:R,grantResolved:z,grantError:B}=A,V;t[14]===n?V=t[15]:(V=()=>{let e=!0;return M({type:`patch`,patch:{allowed:!1,dialogOpen:!1,grantResolved:!1,grantError:null}}),yX(n).then(t=>{e&&M({type:`patch`,patch:{allowed:t.granted,dialogOpen:!t.granted,grantResolved:!0}})}).catch(t=>{e&&M({type:`patch`,patch:{allowed:!1,dialogOpen:!0,grantResolved:!0,grantError:t instanceof Error?t.message:String(t)}})}),()=>{e=!1}},t[14]=n,t[15]=V);let H;t[16]!==n||t[17]!==D?(H=[n,D],t[16]=n,t[17]=D,t[18]=H):H=t[18],(0,Z.useEffect)(V,H);let U;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(U=e=>M({type:`patch`,patch:{dialogOpen:e}}),t[19]=U):U=t[19];let G=U,K;t[20]!==i||t[21]!==n?(K=fX(n,i),t[20]=i,t[21]=n,t[22]=K):K=t[22];let ee=K,q,te;t[23]!==N||t[24]!==n||t[25]!==c||t[26]!==f||t[27]!==p||t[28]!==D||t[29]!==_?(q=()=>{if(!N)return;let e=v.current;if(!e)return;_.registerIframe(n,e,D);let t=_.subscribeExtensionEvents(n,e=>{if(e.event!==`ui.resize`||!e.data||typeof e.data!=`object`||e.data===null)return;let t=Number(e.data.height);Number.isFinite(t)&&c===void 0&&M({type:`patch`,patch:{dynamicHeight:Math.min(f,Math.max(p,t))}})});return()=>{t(),_.unregisterIframe(n)}},te=[N,n,c,f,p,D,_],t[23]=N,t[24]=n,t[25]=c,t[26]=f,t[27]=p,t[28]=D,t[29]=_,t[30]=q,t[31]=te):(q=t[30],te=t[31]),(0,Z.useLayoutEffect)(q,te);let ne,re;t[32]!==N||t[33]!==n||t[34]!==y||t[35]!==_?(ne=()=>{if(!N)return;let e=$M(y);_.sendEvent(n,`theme.changed`,e)},re=[N,n,y,_],t[32]=N,t[33]=n,t[34]=y,t[35]=_,t[36]=ne,t[37]=re):(ne=t[36],re=t[37]),(0,Z.useEffect)(ne,re);let ie;t[38]!==R||t[39]!==c?(ie=c===void 0?{width:`100%`,height:R,border:`none`}:{width:`100%`,height:c,border:`none`},t[38]=R,t[39]=c,t[40]=ie):ie=t[40];let ae=ie,oe;t[41]===n?oe=t[42]:(oe=()=>{bX(n).then(e=>{if(!e.granted)throw Error(`Permission grant was not persisted`);M({type:`patch`,patch:{allowed:!0,grantError:null}})}).catch(e=>{M({type:`patch`,patch:{allowed:!1,grantError:e instanceof Error?e.message:String(e)}})})},t[41]=n,t[42]=oe);let se=oe;if(!z){let e=`${s??``} min-h-32 animate-pulse rounded-lg bg-surface-muted`,n;return t[43]===e?n=t[44]:(n=(0,$.jsx)(`div`,{className:e}),t[43]=e,t[44]=n),n}if(!N){let e;t[45]!==P||t[46]!==x||t[47]!==n||t[48]!==se||t[49]!==D?(e=(0,$.jsx)(gX,{open:P,onOpenChange:G,extensionId:n,extensionName:x,permissions:D,onConfirm:se}),t[45]=P,t[46]=x,t[47]=n,t[48]=se,t[49]=D,t[50]=e):e=t[50];let r;t[51]!==s||t[52]!==P||t[53]!==B||t[54]!==g?(r=P?null:(0,$.jsxs)(`div`,{className:s?`${s} rounded-lg border border-edge border-dashed bg-surface-base p-4 text-sm text-fg-muted`:`rounded-lg border border-edge border-dashed bg-surface-base p-4 text-sm text-fg-muted`,children:[B?(0,$.jsx)(`p`,{className:`mb-2 text-danger`,children:B}):null,(0,$.jsx)(`p`,{children:g.deniedHint}),(0,$.jsx)(`button`,{type:`button`,className:`mt-2 text-sm font-medium text-accent underline-offset-2 hover:underline`,onClick:()=>M({type:`patch`,patch:{dialogOpen:!0}}),children:g.reviewPermissions})]}),t[51]=s,t[52]=P,t[53]=B,t[54]=g,t[55]=r):r=t[55];let i;return t[56]!==e||t[57]!==r?(i=(0,$.jsxs)($.Fragment,{children:[e,r]}),t[56]=e,t[57]=r,t[58]=i):i=t[58],i}let J;t[59]!==L||t[60]!==F||t[61]!==g?(J=L?(0,$.jsxs)(`div`,{className:`mb-2 rounded-lg border border-amber-500/40 bg-amber-500/10 px-3 py-2 text-sm text-fg`,children:[(0,$.jsx)(`p`,{children:g.loadFailed}),(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:g.loadFailedConnectionHint}),(0,$.jsx)(`button`,{type:`button`,className:`mt-2 font-medium text-accent underline-offset-2 hover:underline`,onClick:()=>{M({type:`patch`,patch:{loadError:!1,reloadKey:F+1}})},children:g.retryLoad})]}):null,t[59]=L,t[60]=F,t[61]=g,t[62]=J):J=t[62];let ce=`${n}-${i}-${F}`,le;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(le=()=>M({type:`patch`,patch:{loadError:!0}}),t[63]=le):le=t[63];let ue;t[64]!==n||t[65]!==d||t[66]!==m||t[67]!==_?(ue=()=>{M({type:`patch`,patch:{loadError:!1}}),_.sendInit(n,$M(W.getState().resolved),m),d!==void 0&&_.sendEvent(n,`widget.data`,d)},t[64]=n,t[65]=d,t[66]=m,t[67]=_,t[68]=ue):ue=t[68];let de;t[69]!==s||t[70]!==C||t[71]!==ee||t[72]!==ae||t[73]!==ce||t[74]!==ue?(de=(0,$.jsx)(`iframe`,{ref:v,className:s,title:C,src:ee,style:ae,sandbox:CX,referrerPolicy:`no-referrer`,onError:le,onLoad:ue},ce),t[69]=s,t[70]=C,t[71]=ee,t[72]=ae,t[73]=ce,t[74]=ue,t[75]=de):de=t[75];let fe;return t[76]!==J||t[77]!==de?(fe=(0,$.jsxs)(`div`,{className:`flex flex-1 min-h-0 min-w-0 flex-col`,children:[J,de]}),t[76]=J,t[77]=de,t[78]=fe):fe=t[78],fe}function TX(e){return e.resolved}function EX(e){return e.language}function DX(e){let t=(0,Q.c)(8),{extensionId:n,extensionName:r,entrypoint:i,title:a,toolResult:o,maxHeight:s,interactive:c,permissions:l}=e,u=s===void 0?400:s,d;return t[0]!==i||t[1]!==n||t[2]!==r||t[3]!==u||t[4]!==l||t[5]!==a||t[6]!==o?(d=(0,$.jsx)(`div`,{className:`mt-2 w-full min-w-0 overflow-hidden rounded-xl border border-edge bg-surface-base`,children:(0,$.jsx)(wX,{extensionId:n,extensionName:r,entrypoint:i,permissions:l,title:a,className:`w-full`,minHeight:80,maxHeight:u,initialData:o})}),t[0]=i,t[1]=n,t[2]=r,t[3]=u,t[4]=l,t[5]=a,t[6]=o,t[7]=d):d=t[7],d}function OX(e){let t=pN();return(0,Z.useMemo)(()=>{for(let n of t){let t=n.ui?.contributions?.chatWidgets;if(t){for(let r of t)if(r.match.toolName&&r.match.toolName===e)return{...r,extensionId:n.id}}}return null},[t,e])}var kX={task:dx,project:Ff,note:ry,workflow_definition:Ew,workflow_run:yy,automation:Ci,local_app:Ut,file:Ld,session:Cv,settings:By},AX={task:{en:`Task`,zh:`结果`},project:{en:`Project`,zh:`项目`},note:{en:`Note`,zh:`笔记`},workflow_definition:{en:`Workflow`,zh:`工作流`},workflow_run:{en:`Workflow run`,zh:`工作流运行`},automation:{en:`Automation`,zh:`自动化`},local_app:{en:`Local app`,zh:`本地应用`},file:{en:`File`,zh:`文件`},session:{en:`Conversation`,zh:`对话`},settings:{en:`Settings`,zh:`设置`}},jX={created:{en:`Created`,zh:`已创建`},updated:{en:`Updated`,zh:`已更新`},opened:{en:`Ready`,zh:`已就绪`},started:{en:`Started`,zh:`已启动`},completed:{en:`Completed`,zh:`已完成`},failed:{en:`Failed`,zh:`失败`}};function MX(e,t){return t===`zh`?`继续处理${AX[e.kind].zh}「${e.title}」(ID: ${e.id}):`:`Continue working on ${AX[e.kind].en.toLowerCase()} "${e.title}" (ID: ${e.id}): `}function NX(e){let t=(0,Q.c)(63),{delivery:n}=e,r=n.primary,i=m(),a=u(),o=I(PX)===`zh`?`zh`:`en`;if(!r)return null;let s=kX[r.kind],c;t[0]===r?c=t[1]:(c=ze(r),t[0]=r,t[1]=c);let l=c,d;t[2]!==r.capabilities||t[3]!==l?(d=l&&r.capabilities.includes(`open`),t[2]=r.capabilities,t[3]=l,t[4]=d):d=t[4];let f=!!d,p;t[5]===r.capabilities?p=t[6]:(p=r.capabilities.includes(`continue_in_chat`),t[5]=r.capabilities,t[6]=p);let h=p,g=n.operation===`failed`,_;t[7]!==a||t[8]!==i||t[9]!==l?(_=()=>{l&&i(AV(l,`${a.pathname}${a.search}`))},t[7]=a,t[8]=i,t[9]=l,t[10]=_):_=t[10];let v=_,y=g?`border-red-300/70 dark:border-red-500/35`:`border-edge`,b;t[11]===y?b=t[12]:(b=C(`mt-2 overflow-hidden rounded-xl border bg-surface-raised`,y),t[11]=y,t[12]=b);let x=`${jX[n.operation][o]} ${AX[r.kind][o]}`,S=f?v:void 0,w=!f,T=f&&`transition-colors hover:bg-surface-hover/60`,E=!f&&`cursor-default`,D;t[13]!==T||t[14]!==E?(D=C(`flex w-full items-start gap-3 p-3 text-left`,T,E),t[13]=T,t[14]=E,t[15]=D):D=t[15];let O=g?`bg-red-100 text-red-700 dark:bg-red-500/15 dark:text-red-300`:`bg-accent-soft text-accent-fg`,k;t[16]===O?k=t[17]:(k=C(`flex size-9 shrink-0 items-center justify-center rounded-lg`,O),t[16]=O,t[17]=k);let A;t[18]===s?A=t[19]:(A=(0,$.jsx)(s,{className:`size-4.5`,strokeWidth:1.75}),t[18]=s,t[19]=A);let j;t[20]!==k||t[21]!==A?(j=(0,$.jsx)(`span`,{className:k,"aria-hidden":!0,children:A}),t[20]=k,t[21]=A,t[22]=j):j=t[22];let M;t[23]===r.title?M=t[24]:(M=(0,$.jsx)(`span`,{className:`truncate text-sm font-semibold text-fg`,children:r.title}),t[23]=r.title,t[24]=M);let N=AX[r.kind][o],P;t[25]===N?P=t[26]:(P=(0,$.jsx)(`span`,{className:`rounded-full border border-edge px-1.5 py-0.5 text-[10px] font-medium text-fg-muted`,children:N}),t[25]=N,t[26]=P);let F;t[27]!==M||t[28]!==P?(F=(0,$.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-1.5`,children:[M,P]}),t[27]=M,t[28]=P,t[29]=F):F=t[29];let L=jX[n.operation][o],R;t[30]===L?R=t[31]:(R=(0,$.jsx)(`span`,{children:L}),t[30]=L,t[31]=R);let z;t[32]===r.status?z=t[33]:(z=r.status?(0,$.jsxs)(`span`,{children:[`· `,r.status]}):null,t[32]=r.status,t[33]=z);let B;t[34]!==R||t[35]!==z?(B=(0,$.jsxs)(`span`,{className:`mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-fg-muted`,children:[R,z]}),t[34]=R,t[35]=z,t[36]=B):B=t[36];let V;t[37]===r.summary?V=t[38]:(V=r.summary?(0,$.jsx)(`span`,{className:`mt-1.5 line-clamp-2 block text-xs leading-relaxed text-fg-subtle`,children:r.summary}):null,t[37]=r.summary,t[38]=V);let H;t[39]!==F||t[40]!==B||t[41]!==V?(H=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[F,B,V]}),t[39]=F,t[40]=B,t[41]=V,t[42]=H):H=t[42];let U;t[43]===f?U=t[44]:(U=f?(0,$.jsx)(go,{className:`mt-2 size-4 shrink-0 text-fg-disabled`,"aria-hidden":!0}):null,t[43]=f,t[44]=U);let W;t[45]!==D||t[46]!==j||t[47]!==H||t[48]!==U||t[49]!==S||t[50]!==w?(W=(0,$.jsxs)(`button`,{type:`button`,onClick:S,disabled:w,className:D,children:[j,H,U]}),t[45]=D,t[46]=j,t[47]=H,t[48]=U,t[49]=S,t[50]=w,t[51]=W):W=t[51];let G;t[52]!==h||t[53]!==f||t[54]!==o||t[55]!==v||t[56]!==r?(G=f||h?(0,$.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-edge px-3 py-2`,children:[h?(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`h-8 px-3 py-1.5 text-xs`,onClick:()=>Yq(MX(r,o)),children:o===`zh`?`在对话中继续`:`Continue in chat`}):null,f?(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`h-8 px-3 py-1.5 text-xs`,onClick:v,children:o===`zh`?`打开`:`Open`}):null]}):null,t[52]=h,t[53]=f,t[54]=o,t[55]=v,t[56]=r,t[57]=G):G=t[57];let K;return t[58]!==W||t[59]!==G||t[60]!==b||t[61]!==x?(K=(0,$.jsxs)(`section`,{className:b,"aria-label":x,children:[W,G]}),t[58]=W,t[59]=G,t[60]=b,t[61]=x,t[62]=K):K=t[62],K}function PX(e){return e.language}function FX(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function IX(e){let t=FX(e);return t?He(t.delivery)??He(FX(t.details)?.delivery)??He(e):null}function LX(e){let t=IX(e.details);if(t)return t;let n=Qq(e.result),r=IX(n.details);if(r)return r;let i=Be(n.text);if(i)return i;if(typeof e.result==`string`)try{return IX(JSON.parse(e.result))}catch{return null}return IX(e.result)}var RX=`workflow`;function zX(e){return e.name===RX}function BX(e){if(e.result!=null){let t=VX(Qq(e.result).details);if(t)return t}return VX(e.details)}function VX(e){if(!e||typeof e!=`object`)return null;let t=e;return typeof t.name!=`string`||!Array.isArray(t.agents)?null:e}function HX(e){return e.status===`running`?`running`:UX(e)||e.status===`error`?`failed`:`completed`}function UX(e){if(e.status===`error`)return!0;let t=YX(e).toLowerCase().trim();return!!(t.startsWith(`workflow failed`)||t.includes(`workflow graph validation failed`)||t.includes(`workflow aborted`)||t.includes(`timed out`)||GX(e))}function WX(e){let t=BX(e),n=YX(e).trim(),r=GX(e);return{headline:KX(n,r),detailLines:qX(n,r,t),snapshot:t,logs:t?.logs??[],failedAgents:t?.agents.filter(e=>e.status===`error`||e.status===`skipped`||!!e.error?.trim())??[]}}function GX(e){if(e.details!=null&&typeof e.details==`object`){let t=e.details.error;if(typeof t==`string`&&t.trim())return t.trim()}if(e.result!=null){let t=Qq(e.result).details?.error;if(typeof t==`string`&&t.trim())return t.trim()}return``}function KX(e,t){let n=t||e;if(!n)return`workflow failed`;let r=n.replace(/^workflow failed:\s*/i,``).trim();return r&&r!==n?r:n.length>140?`${n.slice(0,137)}…`:n}function qX(e,t,n){let r=[],i=e=>{let t=e.trim();t&&!r.includes(t)&&r.push(t)};e&&i(e),t&&t!==e&&i(t);for(let e of n?.logs??[])i(e);for(let e of n?.agents??[])e.error?.trim()?i(`${e.label}: ${e.error.trim()}`):e.status===`error`?i(`${e.label}: subagent failed`):e.status===`skipped`&&i(`${e.label}: skipped`);return r}function JX(e){let t=YX(e);if(!t)return`runtime_error`;let n=t.toLowerCase();return n.includes(`workflow graph`)||n.includes(`workflow definition`)||n.includes(`validation`)?`validation_error`:n.includes(`abort`)?`aborted`:n.includes(`timed out`)||n.includes(`timeout`)?`timeout`:`runtime_error`}function YX(e){let t=GX(e);if(t)return t;if(e.result==null)return``;let n=Qq(e.result);return n.text?n.text:typeof e.result==`string`?e.result:``}function XX(e){let t=e.agents.map(e=>e.phase).filter(e=>!!e),n=[],r=new Set;for(let i of[e.phases,t,e.currentPhase?[e.currentPhase]:[]])for(let e of i)r.has(e)||(r.add(e),n.push(e));let i=[],a=new Set;for(let t of n){let n=e.agents.filter(e=>e.phase===t);if(!(n.length===0&&e.currentPhase!==t)){for(let e of n)a.add(e.id);i.push(ZX(t,n))}}let o=e.agents.filter(e=>!a.has(e.id));return{phases:i,unphased:o.length>0?ZX(`unphased`,o):null}}function ZX(e,t){let n=0,r=0,i=0,a=0;for(let e of t)e.status===`done`?n++:e.status===`running`?r++:e.status===`error`?i++:e.status===`skipped`&&a++;let o=t.length>0&&n+i+a===t.length;return{title:e,agents:t,done:n,running:r,errored:i,skipped:a,complete:o}}function QX(e){if(!Number.isFinite(e)||e<0)return``;let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;if(n<60)return r?`${n}m ${r}s`:`${n}m`;let i=Math.floor(n/60),a=n%60;return a?`${i}h ${a}m`:`${i}h`}function $X(e,t=Date.now()){return e.durationMs!=null&&Number.isFinite(e.durationMs)?e.durationMs:e.status===`running`&&e.startedAtMs!=null?Math.max(0,t-e.startedAtMs):null}function eZ(e,t=Date.now()){let n=$X(e,t);return n==null?``:QX(n)}function tZ(e){let t=String(e??``).toLowerCase();return t===`high`||t===`critical`||t===`h`?`high`:t===`med`||t===`medium`||t===`m`?`med`:t===`low`||t===`l`?`low`:`neutral`}function nZ(e,t){switch(e.status){case`queued`:return t.statusQueued;case`running`:return t.statusRunning;case`done`:return t.statusDone;case`error`:return t.statusError;case`skipped`:return t.statusSkipped;default:return e.status}}function rZ(e){return e===`done`?`bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:e===`error`?`bg-rose-500/10 text-rose-700 dark:text-rose-300`:e===`running`?`bg-accent-soft text-accent-fg`:`bg-surface-hover text-fg-subtle`}var iZ=(0,Z.memo)(function(e){let t=(0,Q.c)(96),{agent:n,snapshot:r,labels:i,className:a,onClose:o}=e;if(!n)return null;let s,c,l,u,d,f,p,m,h,g,_,v,y,b;if(t[0]!==n||t[1]!==a||t[2]!==i||t[3]!==r?.logs){let e=eZ(n);l=n.error||n.resultPreview||n.currentStep||i.runningPlaceholder;let o;t[18]===r?.logs?o=t[19]:(o=r?.logs??[],t[18]=r?.logs,t[19]=o),c=o;let x;t[20]!==n.prompt||t[21]!==c?(x=!!n.prompt?.trim()||c.length>0,t[20]=n.prompt,t[21]=c,t[22]=x):x=t[22],s=x,d=!0,t[23]===a?f=t[24]:(f=C(`min-w-0 rounded-xl border border-edge-subtle bg-surface-base/55 p-3`,a),t[23]=a,t[24]=f),b=`flex min-w-0 items-start justify-between gap-3`,v=`min-w-0`;let S;t[25]===n.label?S=t[26]:(S=(0,$.jsx)(`h4`,{className:`min-w-0 truncate text-sm font-semibold text-fg`,children:n.label}),t[25]=n.label,t[26]=S);let w;t[27]===n.status?w=t[28]:(w=C(`shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium`,rZ(n.status)),t[27]=n.status,t[28]=w);let T;t[29]!==n||t[30]!==i?(T=nZ(n,i),t[29]=n,t[30]=i,t[31]=T):T=t[31];let E;t[32]!==w||t[33]!==T?(E=(0,$.jsx)(`span`,{className:w,children:T}),t[32]=w,t[33]=T,t[34]=E):E=t[34],t[35]!==S||t[36]!==E?(y=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[S,E]}),t[35]=S,t[36]=E,t[37]=y):y=t[37],g=`mt-1 flex min-w-0 flex-wrap gap-x-3 gap-y-1 text-xs text-fg-subtle`;let D=n.phase||`-`,O;t[38]===D?O=t[39]:(O=(0,$.jsx)(`span`,{className:`text-fg-muted`,children:D}),t[38]=D,t[39]=O),t[40]!==i.phaseHeading||t[41]!==O?(_=(0,$.jsxs)(`span`,{children:[i.phaseHeading,`: `,O]}),t[40]=i.phaseHeading,t[41]=O,t[42]=_):_=t[42],m=i.elapsedHeading,h=`: `,u=`tabular-nums text-fg-muted`,p=e?i.workedFor(e):`-`,t[0]=n,t[1]=a,t[2]=i,t[3]=r?.logs,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g,t[14]=_,t[15]=v,t[16]=y,t[17]=b}else s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12],g=t[13],_=t[14],v=t[15],y=t[16],b=t[17];let x;t[43]!==u||t[44]!==p?(x=(0,$.jsx)(`span`,{className:u,children:p}),t[43]=u,t[44]=p,t[45]=x):x=t[45];let S;t[46]!==x||t[47]!==m||t[48]!==h?(S=(0,$.jsxs)(`span`,{children:[m,h,x]}),t[46]=x,t[47]=m,t[48]=h,t[49]=S):S=t[49];let w;t[50]!==S||t[51]!==g||t[52]!==_?(w=(0,$.jsxs)(`div`,{className:g,children:[_,S]}),t[50]=S,t[51]=g,t[52]=_,t[53]=w):w=t[53];let T;t[54]!==w||t[55]!==v||t[56]!==y?(T=(0,$.jsxs)(`div`,{className:v,children:[y,w]}),t[54]=w,t[55]=v,t[56]=y,t[57]=T):T=t[57];let E;t[58]!==i.close||t[59]!==o?(E=o?(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-7 shrink-0 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,aT.transition,aT.focusRingPanel),"aria-label":i.close,onClick:o,children:(0,$.jsx)(Aw,{className:`size-3.5`,"aria-hidden":!0})}):null,t[58]=i.close,t[59]=o,t[60]=E):E=t[60];let D;t[61]!==T||t[62]!==E||t[63]!==b?(D=(0,$.jsxs)(`div`,{className:b,children:[T,E]}),t[61]=T,t[62]=E,t[63]=b,t[64]=D):D=t[64];let O;t[65]!==n.currentStep||t[66]!==i.currentStepHeading?(O=n.currentStep?(0,$.jsxs)(`div`,{className:`mt-3 rounded-lg border border-edge-subtle bg-surface-panel px-2.5 py-2`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.currentStepHeading}),(0,$.jsx)(`div`,{className:`mt-1 wrap-break-word text-sm text-fg-muted`,children:n.currentStep})]}):null,t[65]=n.currentStep,t[66]=i.currentStepHeading,t[67]=O):O=t[67];let k;t[68]===i.outputHeading?k=t[69]:(k=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.outputHeading}),t[68]=i.outputHeading,t[69]=k);let A=n.error?`font-mono text-rose-600 dark:text-rose-400`:`text-fg-muted`,j;t[70]===A?j=t[71]:(j=C(`mt-1 max-h-44 overflow-y-auto whitespace-pre-wrap wrap-break-word text-sm leading-6`,A),t[70]=A,t[71]=j);let M;t[72]!==l||t[73]!==j?(M=(0,$.jsx)(`div`,{className:j,children:l}),t[72]=l,t[73]=j,t[74]=M):M=t[74];let N;t[75]!==k||t[76]!==M?(N=(0,$.jsxs)(`div`,{className:`mt-3 rounded-lg border border-edge-subtle bg-surface-panel px-2.5 py-2`,children:[k,M]}),t[75]=k,t[76]=M,t[77]=N):N=t[77];let P;t[78]!==n.steps||t[79]!==i.stepsHeading?(P=n.steps?.length?(0,$.jsxs)(`div`,{className:`mt-3 space-y-1.5`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.stepsHeading}),n.steps.map(aZ)]}):null,t[78]=n.steps,t[79]=i.stepsHeading,t[80]=P):P=t[80];let F;t[81]!==n.prompt||t[82]!==s||t[83]!==i.executionHeading||t[84]!==i.logsHeading||t[85]!==i.promptHeading||t[86]!==c?(F=s?(0,$.jsxs)(`details`,{className:`group mt-3 rounded-lg border border-edge-subtle bg-surface-panel`,children:[(0,$.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center justify-between gap-2 px-2.5 py-2 text-xs font-medium text-fg-muted`,children:[i.executionHeading,(0,$.jsx)(fo,{className:`size-3.5 shrink-0 text-fg-subtle transition-transform group-open:rotate-180`,"aria-hidden":!0})]}),(0,$.jsxs)(`div`,{className:`space-y-3 border-t border-edge-subtle p-2.5`,children:[n.prompt?.trim()?(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.promptHeading}),(0,$.jsx)(`pre`,{className:`mt-1 max-h-40 min-w-0 overflow-y-auto whitespace-pre-wrap wrap-break-word rounded-md bg-surface-hover/45 p-2 font-mono text-xs leading-5 text-fg-muted`,children:n.prompt})]}):null,c.length>0?(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.logsHeading}),(0,$.jsx)(`div`,{className:`mt-1 max-h-36 space-y-0.5 overflow-y-auto rounded-md bg-surface-hover/45 p-2 font-mono text-xs leading-5 text-fg-subtle`,children:c.map(oZ)})]}):null]})]}):null,t[81]=n.prompt,t[82]=s,t[83]=i.executionHeading,t[84]=i.logsHeading,t[85]=i.promptHeading,t[86]=c,t[87]=F):F=t[87];let I;return t[88]!==d||t[89]!==f||t[90]!==D||t[91]!==O||t[92]!==N||t[93]!==P||t[94]!==F?(I=(0,$.jsxs)(`section`,{"data-workflow-inline-detail":d,className:f,children:[D,O,N,P,F]}),t[88]=d,t[89]=f,t[90]=D,t[91]=O,t[92]=N,t[93]=P,t[94]=F,t[95]=I):I=t[95],I});function aZ(e){return(0,$.jsxs)(`div`,{className:`rounded-lg bg-surface-panel px-2.5 py-2`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate text-xs font-medium text-fg`,children:e.label}),(0,$.jsx)(`span`,{className:`shrink-0 text-[10px] text-fg-subtle`,children:e.status})]}),e.detail||e.resultPreview||e.error?(0,$.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap wrap-break-word text-xs leading-5 text-fg-muted`,children:e.error||e.resultPreview||e.detail}):null]},e.id)}function oZ(e){return(0,$.jsx)(`div`,{className:`wrap-break-word`,children:e},e)}var sZ=(0,Z.memo)(function(e){let t=(0,Q.c)(38),{name:n,description:r,status:i,doneCount:a,totalCount:o,durationText:s,metaText:c,collapsed:l,onToggleCollapsed:u,actions:d,labels:f}=e,p=o>0?`${a}/${o}`:i===`running`?`…`:`0`,m;t[0]!==p||t[1]!==s||t[2]!==f||t[3]!==c||t[4]!==i?(m=c??(i===`running`?f.runningMeta(p,s):i===`completed`?f.completedMeta(p,s):f.failedMeta),t[0]=p,t[1]=s,t[2]=f,t[3]=c,t[4]=i,t[5]=m):m=t[5];let h=m,g=i===`failed`&&`border-rose-300/40`,_;t[6]===g?_=t[7]:(_=C(`flex min-w-0 items-center gap-2 border-b border-edge-subtle px-3 py-2`,g),t[6]=g,t[7]=_);let v;t[8]===i?v=t[9]:(v=(0,$.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 text-fg-subtle`,children:i===`running`?(0,$.jsx)(Zg,{className:`size-4 animate-spin text-accent-fg`}):(0,$.jsx)(Xm,{className:`size-4`})}),t[8]=i,t[9]=v);let y;t[10]===n?y=t[11]:(y=(0,$.jsx)(`div`,{className:`min-w-0 shrink truncate text-base font-semibold tracking-tight text-fg`,children:n}),t[10]=n,t[11]=y);let b;t[12]===h?b=t[13]:(b=(0,$.jsx)(`div`,{className:`min-w-0 flex-1 truncate text-xs tabular-nums text-fg-subtle`,children:h}),t[12]=h,t[13]=b);let x;t[14]!==y||t[15]!==b?(x=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,children:[y,b]}),t[14]=y,t[15]=b,t[16]=x):x=t[16];let S;t[17]===r?S=t[18]:(S=r?(0,$.jsx)(`div`,{className:`mt-0.5 line-clamp-1 text-xs text-fg-subtle`,children:r}):null,t[17]=r,t[18]=S);let w;t[19]!==x||t[20]!==S?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[x,S]}),t[19]=x,t[20]=S,t[21]=w):w=t[21];let T;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(T=C(`inline-flex size-7 items-center justify-center rounded-md`,`text-fg-muted hover:bg-surface-hover hover:text-fg`,aT.transition,aT.focusRingPanel),t[22]=T):T=t[22];let E=l?f.expand:f.collapse,D=l?f.expand:f.collapse,O;t[23]===l?O=t[24]:(O=l?(0,$.jsx)(fo,{className:`size-4`}):(0,$.jsx)(_o,{className:`size-4`}),t[23]=l,t[24]=O);let k;t[25]!==u||t[26]!==E||t[27]!==D||t[28]!==O?(k=(0,$.jsx)(`button`,{type:`button`,onClick:u,className:T,"aria-label":E,title:D,children:O}),t[25]=u,t[26]=E,t[27]=D,t[28]=O,t[29]=k):k=t[29];let A;t[30]!==d||t[31]!==k?(A=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[d,k]}),t[30]=d,t[31]=k,t[32]=A):A=t[32];let j;return t[33]!==A||t[34]!==_||t[35]!==v||t[36]!==w?(j=(0,$.jsxs)(`div`,{className:_,children:[v,w,A]}),t[33]=A,t[34]=_,t[35]=v,t[36]=w,t[37]=j):j=t[37],j}),cZ={queued:(0,$.jsx)(Go,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0}),running:(0,$.jsx)(Zg,{className:`size-3.5 shrink-0 animate-spin text-accent-fg`,"aria-hidden":!0}),done:(0,$.jsx)(Bo,{className:`size-3.5 shrink-0 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}),error:(0,$.jsx)(Ao,{className:`size-3.5 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0}),skipped:(0,$.jsx)(ms,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0})},lZ=(0,Z.memo)(function(e){let t=(0,Q.c)(39),{agent:n,labels:r,selected:i,onSelect:a}=e,[,o]=(0,Z.useState)(0),s;t[0]!==n.status||t[1]!==o?(s=()=>{if(n.status!==`running`)return;let e=window.setInterval(()=>o(uZ),1e3);return()=>window.clearInterval(e)},t[0]=n.status,t[1]=o,t[2]=s):s=t[2];let c;t[3]!==n.startedAtMs||t[4]!==n.status?(c=[n.status,n.startedAtMs],t[3]=n.startedAtMs,t[4]=n.status,t[5]=c):c=t[5],(0,Z.useEffect)(s,c);let l;t[6]===n.status?l=t[7]:(l=cZ[n.status]??(0,$.jsx)(Yo,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[6]=n.status,t[7]=l);let u=l,d;t[8]===n?d=t[9]:(d=eZ(n),t[8]=n,t[9]=d);let f=d,p=n.status===`queued`?r.queued:n.status===`running`&&!n.currentStep?r.running:n.currentStep,m;t[10]!==n||t[11]!==a?(m=()=>a?.(n),t[10]=n,t[11]=a,t[12]=m):m=t[12];let h=`${r.openDetail}: ${n.label}`,g=i?`true`:void 0,_=i&&`bg-surface-hover/80 ring-1 ring-edge-subtle`,v;t[13]===_?v=t[14]:(v=C(`flex w-full min-w-0 flex-col gap-0.5 rounded-md px-1.5 py-0.5 text-left`,`text-sm leading-6 text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,_,aT.transition,aT.focusRingPanel),t[13]=_,t[14]=v);let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(go,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0}),t[15]=y):y=t[15];let b;t[16]!==n.id||t[17]!==r?(b=r.agentNumber(n.id),t[16]=n.id,t[17]=r,t[18]=b):b=t[18];let x;t[19]===b?x=t[20]:(x=(0,$.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-fg-disabled`,children:b}),t[19]=b,t[20]=x);let S;t[21]===n.label?S=t[22]:(S=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-fg`,children:n.label}),t[21]=n.label,t[22]=S);let w;t[23]===f?w=t[24]:(w=f?(0,$.jsx)(`span`,{className:`shrink-0 text-[10px] tabular-nums text-fg-disabled`,children:f}):null,t[23]=f,t[24]=w);let T;t[25]!==u||t[26]!==x||t[27]!==S||t[28]!==w?(T=(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[y,u,x,S,w]}),t[25]=u,t[26]=x,t[27]=S,t[28]=w,t[29]=T):T=t[29];let E;t[30]===p?E=t[31]:(E=p?(0,$.jsx)(`span`,{className:`ml-7 truncate text-xs text-fg-subtle`,children:p}):null,t[30]=p,t[31]=E);let D;return t[32]!==T||t[33]!==E||t[34]!==m||t[35]!==h||t[36]!==g||t[37]!==v?(D=(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsxs)(`button`,{type:`button`,onClick:m,"aria-label":h,"aria-current":g,className:v,children:[T,E]})}),t[32]=T,t[33]=E,t[34]=m,t[35]=h,t[36]=g,t[37]=v,t[38]=D):D=t[38],D});function uZ(e){return e+1}var dZ=(0,Z.memo)(function(e){let t=(0,Q.c)(69),{kind:n,reason:r,detailLines:i,logs:a,failedAgents:o,snapshot:s,selectedAgentId:c,onSelectAgent:l,labels:u,className:d}=e,f=n===`validation_error`?u.titleValidation:n===`aborted`?u.titleAbort:n===`timeout`?u.titleTimeout:u.titleRuntime,p;t[0]===r?p=t[1]:(p=r.trim()||`workflow failed`,t[0]=r,t[1]=p);let m=p,h;t[2]===a?h=t[3]:(h=a??[],t[2]=a,t[3]=h);let g=h,_;t[4]===o?_=t[5]:(_=o??[],t[4]=o,t[5]=_);let v=_;s?.agents;let y;t[6]===s?.agents?y=t[7]:(y=s?.agents??[],t[6]=s?.agents,t[7]=y);let b=y,x;if(t[8]!==i||t[9]!==m){x=[];let e=e=>{let t=e.trim();t&&!x.includes(t)&&x.push(t)};e(m);for(let t of i??[])e(t);t[8]=i,t[9]=m,t[10]=x}else x=t[10];let w=x.join(`
|
|
106
|
-
`),T;t[11]!==n||t[12]!==u.recoveryActions?(T=u.recoveryActions[n]??[],t[11]=n,t[12]=u.recoveryActions,t[13]=T):T=t[13];let E=T,D=s?.doneCount??0,O=s?.agentCount??0,A=v.length||s?.errorCount||0,j=!!w||E.length>0||g.length>0||b.length>0,[M,N]=(0,Z.useState)(!1),[P,F]=(0,Z.useState)(!1),[I,L]=(0,Z.useState)(!1),R=!M,z;t[14]!==w||t[15]!==m?(z=async()=>{await k(w||m)&&(L(!0),window.setTimeout(()=>L(!1),1500))},t[14]=w,t[15]=m,t[16]=z):z=t[16];let B=z,V=fZ[n],H;t[17]===f?H=t[18]:(H=(0,$.jsx)(`span`,{className:`shrink-0 text-sm font-semibold tracking-tight text-fg`,children:f}),t[17]=f,t[18]=H);let U;t[19]===m?U=t[20]:(U=(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm text-fg-muted`,children:m}),t[19]=m,t[20]=U);let W;t[21]!==H||t[22]!==U?(W=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,children:[H,U]}),t[21]=H,t[22]=U,t[23]=W):W=t[23];let G;t[24]!==j||t[25]!==M||t[26]!==u.expandHint?(G=M&&j?(0,$.jsx)(`div`,{className:`mt-0.5 text-xs text-fg-subtle`,children:u.expandHint}):null,t[24]=j,t[25]=M,t[26]=u.expandHint,t[27]=G):G=t[27];let K;t[28]!==W||t[29]!==G?(K=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[W,G]}),t[28]=W,t[29]=G,t[30]=K):K=t[30];let ee;t[31]===R?ee=t[32]:(ee=(0,$.jsx)(`span`,{className:`inline-flex size-7 shrink-0 items-center justify-center rounded-md text-fg-muted`,"aria-hidden":!0,children:R?(0,$.jsx)(_o,{className:`size-4`}):(0,$.jsx)(fo,{className:`size-4`})}),t[31]=R,t[32]=ee);let q;t[33]!==K||t[34]!==ee||t[35]!==V?(q=(0,$.jsxs)($.Fragment,{children:[V,K,ee]}),t[33]=K,t[34]=ee,t[35]=V,t[36]=q):q=t[36];let te=q,ne;t[37]===d?ne=t[38]:(ne=C(`min-w-0 rounded-xl border border-edge bg-surface-panel shadow-surface`,d),t[37]=d,t[38]=ne);let re;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(re=()=>N(pZ),t[39]=re):re=t[39];let ie=R?u.collapse:u.expand,ae=R?`rounded-t-xl border-b border-edge-subtle`:`rounded-xl`,oe;t[40]===ae?oe=t[41]:(oe=C(`flex w-full min-w-0 items-center gap-2 px-3 py-2 text-left`,ae,`hover:bg-surface-hover`,aT.transition,aT.focusRingPanel),t[40]=ae,t[41]=oe);let se;t[42]!==te||t[43]!==R||t[44]!==ie||t[45]!==oe?(se=(0,$.jsx)(`button`,{type:`button`,onClick:re,"aria-expanded":R,"aria-label":ie,className:oe,children:te}),t[42]=te,t[43]=R,t[44]=ie,t[45]=oe,t[46]=se):se=t[46];let J;t[47]!==j||t[48]!==I||t[49]!==w||t[50]!==D||t[51]!==A||t[52]!==B||t[53]!==R||t[54]!==u||t[55]!==g||t[56]!==l||t[57]!==P||t[58]!==E||t[59]!==c||t[60]!==O||t[61]!==m||t[62]!==b?(J=R?(0,$.jsxs)(`div`,{className:`space-y-3 px-3 py-2.5`,children:[(0,$.jsxs)(`section`,{className:`min-w-0 rounded-lg bg-surface-hover/35 px-2.5 py-2`,children:[(0,$.jsxs)(`div`,{className:`mb-1 flex min-w-0 items-center justify-between gap-2`,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:()=>F(mZ),"aria-expanded":P,className:C(`inline-flex min-w-0 flex-1 items-center gap-1 text-left text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,`hover:text-fg-muted`,aT.transition,aT.focusRingPanel),children:[(0,$.jsx)(`span`,{className:`truncate`,children:u.detailsHeading}),P?(0,$.jsx)(_o,{className:`size-3`}):(0,$.jsx)(fo,{className:`size-3`})]}),(0,$.jsxs)(`button`,{type:`button`,onClick:B,className:C(`inline-flex h-6 shrink-0 items-center gap-1 rounded-md px-1.5 text-xs text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,aT.transition,aT.focusRingPanel),"aria-label":I?u.copyReasonDone:u.copyReason,title:I?u.copyReasonDone:u.copyReason,children:[I?(0,$.jsx)(S,{className:`size-3.5`}):(0,$.jsx)(tl,{className:`size-3.5`}),(0,$.jsx)(`span`,{children:I?u.copyReasonDone:u.copyReason})]})]}),P?(0,$.jsx)(`pre`,{className:`max-h-36 min-w-0 overflow-y-auto whitespace-pre-wrap break-words rounded-md bg-surface-panel/60 p-2 font-sans text-sm leading-6 text-fg-muted`,children:w||m}):(0,$.jsx)(`div`,{className:`truncate text-sm text-fg-muted`,title:m,children:m})]}),O>0?(0,$.jsxs)(`section`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:u.impactHeading}),(0,$.jsx)(`div`,{className:`text-sm text-fg-muted`,children:u.impactTpl(D,O,A)})]}):null,E.length>0?(0,$.jsxs)(`section`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:u.recoveryHeading}),(0,$.jsx)(`ul`,{className:`space-y-0.5 text-sm text-fg-muted`,children:E.map(hZ)})]}):null,b.length>0?(0,$.jsxs)(`section`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:u.executedAgentsHeading}),(0,$.jsx)(`div`,{className:`space-y-0.5`,children:b.map(e=>(0,$.jsx)(lZ,{agent:e,labels:u.phase,selected:c===e.id,onSelect:l},e.id))})]}):null,g.length>0?(0,$.jsxs)(`section`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:u.logsHeading}),(0,$.jsx)(`pre`,{className:`max-h-48 min-w-0 overflow-y-auto whitespace-pre-wrap break-words rounded-md bg-surface-hover/60 p-2 font-mono text-xs text-fg-muted dark:bg-surface-hover/35`,children:g.join(`
|
|
107
|
-
`)})]}):null,j?null:(0,$.jsx)(`div`,{className:`text-xs text-fg-disabled`,children:u.noExtraDetails})]}):null,t[47]=j,t[48]=I,t[49]=w,t[50]=D,t[51]=A,t[52]=B,t[53]=R,t[54]=u,t[55]=g,t[56]=l,t[57]=P,t[58]=E,t[59]=c,t[60]=O,t[61]=m,t[62]=b,t[63]=J):J=t[63];let ce;return t[64]!==ne||t[65]!==se||t[66]!==J||t[67]!==f?(ce=(0,$.jsxs)(`div`,{className:ne,role:`group`,"aria-label":f,children:[se,J]}),t[64]=ne,t[65]=se,t[66]=J,t[67]=f,t[68]=ce):ce=t[68],ce}),fZ={validation_error:(0,$.jsx)(ay,{className:`size-4 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0}),aborted:(0,$.jsx)(bs,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),timeout:(0,$.jsx)(Gx,{className:`size-4 shrink-0 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}),runtime_error:(0,$.jsx)(SS,{className:`size-4 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0})};function pZ(e){return!e}function mZ(e){return!e}function hZ(e){return(0,$.jsxs)(`li`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`text-fg-disabled`,children:`•`}),(0,$.jsx)(`span`,{className:`min-w-0 break-words`,children:e})]},e)}var gZ=(0,Z.memo)(function(e){let t=(0,Q.c)(49),{rollup:n,isCurrent:r,labels:i,selectedAgentId:a,onSelectAgent:o}=e,[s,c]=(0,Z.useState)(r||n.running>0||n.errored>0||n.skipped>0||!n.complete),l,u;t[0]===r?(l=t[1],u=t[2]):(l=()=>{r&&c(!0)},u=[r],t[0]=r,t[1]=l,t[2]=u),(0,Z.useEffect)(l,u);let d=n.agents.length,f;t[3]!==n.complete||t[4]!==n.running?(f=n.running>0?(0,$.jsx)(Zg,{className:`size-3.5 shrink-0 animate-spin text-accent-fg`,"aria-hidden":!0}):n.complete?(0,$.jsx)(Bo,{className:`size-3.5 shrink-0 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}):(0,$.jsx)(xs,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0}),t[3]=n.complete,t[4]=n.running,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>c(_Z),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=C(`flex w-full min-w-0 items-center gap-2 rounded-md p-1 text-left`,`text-sm font-medium text-fg`,`hover:bg-surface-hover`,aT.transition,aT.focusRingPanel),t[7]=h):h=t[7];let g=s&&`rotate-90`,_;t[8]===g?_=t[9]:(_=C(`size-3.5 shrink-0 text-fg-subtle transition-transform duration-150`,g),t[8]=g,t[9]=_);let v;t[10]===_?v=t[11]:(v=(0,$.jsx)(go,{className:_,"aria-hidden":!0}),t[10]=_,t[11]=v);let y;t[12]===n.title?y=t[13]:(y=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n.title}),t[12]=n.title,t[13]=y);let b;t[14]!==i||t[15]!==n.done||t[16]!==d?(b=i.countTpl(n.done,d),t[14]=i,t[15]=n.done,t[16]=d,t[17]=b):b=t[17];let x;t[18]===b?x=t[19]:(x=(0,$.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-fg-subtle`,children:b}),t[18]=b,t[19]=x);let S;t[20]!==i||t[21]!==n.running?(S=n.running>0?(0,$.jsx)(`span`,{className:`text-accent-fg`,children:i.runningTag(n.running)}):null,t[20]=i,t[21]=n.running,t[22]=S):S=t[22];let w;t[23]!==i||t[24]!==n.errored?(w=n.errored>0?(0,$.jsx)(`span`,{className:`text-rose-600 dark:text-rose-400`,children:i.errorsTag(n.errored)}):null,t[23]=i,t[24]=n.errored,t[25]=w):w=t[25];let T;t[26]!==i||t[27]!==n.skipped?(T=n.skipped>0?(0,$.jsx)(`span`,{children:i.skippedTag(n.skipped)}):null,t[26]=i,t[27]=n.skipped,t[28]=T):T=t[28];let E;t[29]!==S||t[30]!==w||t[31]!==T?(E=(0,$.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs text-fg-disabled`,children:[S,w,T]}),t[29]=S,t[30]=w,t[31]=T,t[32]=E):E=t[32];let D;t[33]!==s||t[34]!==p||t[35]!==x||t[36]!==E||t[37]!==v||t[38]!==y?(D=(0,$.jsxs)(`button`,{type:`button`,onClick:m,"aria-expanded":s,className:h,children:[v,p,y,x,E]}),t[33]=s,t[34]=p,t[35]=x,t[36]=E,t[37]=v,t[38]=y,t[39]=D):D=t[39];let O;t[40]!==i||t[41]!==o||t[42]!==s||t[43]!==n.agents||t[44]!==a?(O=s?(0,$.jsxs)(`div`,{className:`ml-4 mt-0.5 space-y-0.5 border-l border-edge-subtle pl-2`,children:[n.agents.map(e=>(0,$.jsx)(lZ,{agent:e,labels:i,selected:a===e.id,onSelect:o},e.id)),n.agents.length===0?(0,$.jsx)(`div`,{className:`px-1.5 py-0.5 text-xs text-fg-disabled`,children:`…`}):null]}):null,t[40]=i,t[41]=o,t[42]=s,t[43]=n.agents,t[44]=a,t[45]=O):O=t[45];let k;return t[46]!==D||t[47]!==O?(k=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[D,O]}),t[46]=D,t[47]=O,t[48]=k):k=t[48],k});function _Z(e){return!e}function vZ(e){let t=(0,Q.c)(44),{snapshot:n,labels:r,logsExpanded:i,onToggleLogs:a,selectedAgentId:o,onSelectAgent:s}=e,c;t[0]===n.agents?c=t[1]:(c=n.agents.filter(SZ),t[0]=n.agents,t[1]=c);let l=c,u;t[2]===n.agents?u=t[3]:(u=n.agents.filter(xZ),t[2]=n.agents,t[3]=u);let d=u,f;t[4]===n.agents?f=t[5]:(f=n.agents.filter(bZ),t[4]=n.agents,t[5]=f);let p=f,m;t[6]===n.agents?m=t[7]:(m=n.agents.filter(yZ),t[6]=n.agents,t[7]=m);let h=m,g;t[8]!==r.phase||t[9]!==r.runningAgentsHeading||t[10]!==s||t[11]!==l||t[12]!==o?(g=(0,$.jsx)(CZ,{heading:r.runningAgentsHeading,agents:l,labels:r.phase,selectedAgentId:o,onSelectAgent:s}),t[8]=r.phase,t[9]=r.runningAgentsHeading,t[10]=s,t[11]=l,t[12]=o,t[13]=g):g=t[13];let _;t[14]!==d||t[15]!==r.failedAgentsHeading||t[16]!==r.phase||t[17]!==s||t[18]!==o?(_=(0,$.jsx)(CZ,{heading:r.failedAgentsHeading,agents:d,labels:r.phase,selectedAgentId:o,onSelectAgent:s}),t[14]=d,t[15]=r.failedAgentsHeading,t[16]=r.phase,t[17]=s,t[18]=o,t[19]=_):_=t[19];let v;t[20]!==p||t[21]!==r.completedAgentsHeading||t[22]!==r.phase||t[23]!==s||t[24]!==o?(v=(0,$.jsx)(CZ,{heading:r.completedAgentsHeading,agents:p,labels:r.phase,selectedAgentId:o,onSelectAgent:s}),t[20]=p,t[21]=r.completedAgentsHeading,t[22]=r.phase,t[23]=s,t[24]=o,t[25]=v):v=t[25];let y;t[26]!==r.phase||t[27]!==r.queuedAgentsHeading||t[28]!==s||t[29]!==h||t[30]!==o?(y=(0,$.jsx)(CZ,{heading:r.queuedAgentsHeading,agents:h,labels:r.phase,selectedAgentId:o,onSelectAgent:s}),t[26]=r.phase,t[27]=r.queuedAgentsHeading,t[28]=s,t[29]=h,t[30]=o,t[31]=y):y=t[31];let b;t[32]!==r.recentLogsHeading||t[33]!==r.showAllLogs||t[34]!==i||t[35]!==a||t[36]!==n.logs?(b=(0,$.jsx)(wZ,{recentLogs:n.logs,recentLogsHeading:r.recentLogsHeading,showAllLogsLabel:r.showAllLogs,logsExpanded:i,onToggleLogs:a}),t[32]=r.recentLogsHeading,t[33]=r.showAllLogs,t[34]=i,t[35]=a,t[36]=n.logs,t[37]=b):b=t[37];let x;return t[38]!==g||t[39]!==_||t[40]!==v||t[41]!==y||t[42]!==b?(x=(0,$.jsxs)(`div`,{className:`space-y-3`,children:[g,_,v,y,b]}),t[38]=g,t[39]=_,t[40]=v,t[41]=y,t[42]=b,t[43]=x):x=t[43],x}function yZ(e){return e.status===`queued`}function bZ(e){return e.status===`done`}function xZ(e){return e.status===`error`||e.status===`skipped`}function SZ(e){return e.status===`running`}function CZ(e){let t=(0,Q.c)(16),{heading:n,agents:r,labels:i,selectedAgentId:a,onSelectAgent:o}=e;if(r.length===0)return null;let s;t[0]===n?s=t[1]:(s=(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[0]=n,t[1]=s);let c;if(t[2]!==r||t[3]!==i||t[4]!==o||t[5]!==a){let e;t[7]!==i||t[8]!==o||t[9]!==a?(e=e=>(0,$.jsx)(lZ,{agent:e,labels:i,selected:a===e.id,onSelect:o},e.id),t[7]=i,t[8]=o,t[9]=a,t[10]=e):e=t[10],c=r.map(e),t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=c}else c=t[6];let l;t[11]===c?l=t[12]:(l=(0,$.jsx)(`div`,{className:`space-y-0.5`,children:c}),t[11]=c,t[12]=l);let u;return t[13]!==s||t[14]!==l?(u=(0,$.jsxs)(`section`,{className:`min-w-0`,children:[s,l]}),t[13]=s,t[14]=l,t[15]=u):u=t[15],u}function wZ(e){let t=(0,Q.c)(19),{recentLogs:n,recentLogsHeading:r,showAllLogsLabel:i,logsExpanded:a,onToggleLogs:o}=e,s;t[0]!==a||t[1]!==n?(s=a||n.length<=2?n:n.slice(-2),t[0]=a,t[1]=n,t[2]=s):s=t[2];let c=s;if(n.length===0)return null;let l;t[3]===r?l=t[4]:(l=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:r}),t[3]=r,t[4]=l);let u;t[5]!==o||t[6]!==n.length||t[7]!==i?(u=n.length>2?(0,$.jsx)(`button`,{type:`button`,onClick:o,className:`text-[10px] text-accent-fg hover:underline`,children:i}):null,t[5]=o,t[6]=n.length,t[7]=i,t[8]=u):u=t[8];let d;t[9]!==l||t[10]!==u?(d=(0,$.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-2`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11];let f;t[12]===c?f=t[13]:(f=c.map(TZ),t[12]=c,t[13]=f);let p;t[14]===f?p=t[15]:(p=(0,$.jsx)(`div`,{className:`space-y-0.5`,children:f}),t[14]=f,t[15]=p);let m;return t[16]!==d||t[17]!==p?(m=(0,$.jsxs)(`div`,{className:`border-t border-edge-subtle pt-2`,children:[d,p]}),t[16]=d,t[17]=p,t[18]=m):m=t[18],m}function TZ(e){return(0,$.jsx)(`div`,{className:`break-words font-mono text-xs text-fg-subtle`,children:e},e)}function EZ(e){let t=(0,Q.c)(29),{rollup:n,currentPhase:r,labels:i,recentLogs:a,recentLogsHeading:o,showAllLogsLabel:s,logsExpanded:c,onToggleLogs:l,selectedAgentId:u,onSelectAgent:d}=e,f;t[0]!==c||t[1]!==a?(f=c||a.length<=2?a:a.slice(-2),t[0]=c,t[1]=a,t[2]=f):f=t[2];let p=f,m;if(t[3]!==r||t[4]!==i||t[5]!==d||t[6]!==n.phases||t[7]!==u){let e;t[9]!==r||t[10]!==i||t[11]!==d||t[12]!==u?(e=e=>(0,$.jsx)(gZ,{rollup:e,isCurrent:e.title===r,labels:i,selectedAgentId:u,onSelectAgent:d},e.title),t[9]=r,t[10]=i,t[11]=d,t[12]=u,t[13]=e):e=t[13],m=n.phases.map(e),t[3]=r,t[4]=i,t[5]=d,t[6]=n.phases,t[7]=u,t[8]=m}else m=t[8];let h;t[14]!==i||t[15]!==d||t[16]!==n.unphased||t[17]!==u?(h=n.unphased?(0,$.jsx)(gZ,{rollup:n.unphased,isCurrent:!1,labels:i,selectedAgentId:u,onSelectAgent:d}):null,t[14]=i,t[15]=d,t[16]=n.unphased,t[17]=u,t[18]=h):h=t[18];let g;t[19]!==l||t[20]!==a.length||t[21]!==o||t[22]!==s||t[23]!==p?(g=a.length>0?(0,$.jsxs)(`div`,{className:`mt-2 border-t border-edge-subtle pt-2`,children:[(0,$.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-2`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:o}),a.length>2?(0,$.jsx)(`button`,{type:`button`,onClick:l,className:`text-[10px] text-accent-fg hover:underline`,children:s}):null]}),(0,$.jsx)(`div`,{className:`space-y-0.5`,children:p.map(DZ)})]}):null,t[19]=l,t[20]=a.length,t[21]=o,t[22]=s,t[23]=p,t[24]=g):g=t[24];let _;return t[25]!==m||t[26]!==h||t[27]!==g?(_=(0,$.jsxs)(`div`,{className:`space-y-1`,children:[m,h,g]}),t[25]=m,t[26]=h,t[27]=g,t[28]=_):_=t[28],_}function DZ(e){return(0,$.jsx)(`div`,{className:`break-words font-mono text-xs text-fg-subtle`,children:e},e)}var OZ=5,kZ=(0,Z.memo)(function(e){let t=(0,Q.c)(17),{result:n,labels:r}=e;if(!n){let e;return t[0]===r.emptyResult?e=t[1]:(e=(0,$.jsx)(`div`,{className:`text-sm text-fg-disabled`,children:r.emptyResult}),t[0]=r.emptyResult,t[1]=e),e}let i;t[2]===n.title?i=t[3]:(i=n.title?(0,$.jsx)(`h3`,{className:`text-base font-semibold text-fg`,children:n.title}):null,t[2]=n.title,t[3]=i);let a;t[4]===n.summary?a=t[5]:(a=(0,$.jsx)(QW,{content:n.summary,className:`workflow-result-markdown`,openHttpLinksInNewTab:!0}),t[4]=n.summary,t[5]=a);let o;t[6]===n.sections?o=t[7]:(o=n.sections??[],t[6]=n.sections,t[7]=o);let s;if(t[8]!==r||t[9]!==o){let e;t[11]===r?e=t[12]:(e=(e,t)=>(0,$.jsx)(AZ,{section:e,labels:r},`${e.kind}:${e.title}:${t}`),t[11]=r,t[12]=e),s=o.map(e),t[8]=r,t[9]=o,t[10]=s}else s=t[10];let c;return t[13]!==i||t[14]!==a||t[15]!==s?(c=(0,$.jsxs)(`article`,{className:`min-w-0 space-y-6`,children:[i,a,s]}),t[13]=i,t[14]=a,t[15]=s,t[16]=c):c=t[16],c});function AZ(e){let t=(0,Q.c)(23),{section:n,labels:r}=e;if(n.kind===`text`){let e;return t[0]!==n.content||t[1]!==n.title?(e=(0,$.jsx)(jZ,{heading:n.title,text:n.content}),t[0]=n.content,t[1]=n.title,t[2]=e):e=t[2],e}if(n.kind===`findings`){let e;t[3]!==r||t[4]!==n.items||t[5]!==n.title?(e=n.title||r.topFindingsHeading(n.items.length),t[3]=r,t[4]=n.items,t[5]=n.title,t[6]=e):e=t[6];let i;return t[7]!==r.moreSuffix||t[8]!==n.items||t[9]!==e?(i=(0,$.jsx)(PZ,{heading:e,items:n.items,moreSuffix:r.moreSuffix}),t[7]=r.moreSuffix,t[8]=n.items,t[9]=e,t[10]=i):i=t[10],i}if(n.kind===`risks`){let e;t[11]!==r||t[12]!==n.items||t[13]!==n.title?(e=n.title||r.topRisksHeading(n.items.length),t[11]=r,t[12]=n.items,t[13]=n.title,t[14]=e):e=t[14];let i;return t[15]!==r.moreSuffix||t[16]!==n.items||t[17]!==e?(i=(0,$.jsx)(IZ,{heading:e,items:n.items,moreSuffix:r.moreSuffix}),t[15]=r.moreSuffix,t[16]=n.items,t[17]=e,t[18]=i):i=t[18],i}if(n.kind===`questions`){let e=n.title||r.openQuestionsHeading,i;return t[19]!==r.moreSuffix||t[20]!==n.items||t[21]!==e?(i=(0,$.jsx)(MZ,{heading:e,items:n.items,moreSuffix:r.moreSuffix}),t[19]=r.moreSuffix,t[20]=n.items,t[21]=e,t[22]=i):i=t[22],i}}function jZ(e){let t=(0,Q.c)(7),{heading:n,text:r}=e,i;t[0]===n?i=t[1]:(i=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=(0,$.jsx)(QW,{content:r,compact:!0,className:`mt-2`,openHttpLinksInNewTab:!0}),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,$.jsxs)(`section`,{className:`min-w-0`,children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function MZ(e){let t=(0,Q.c)(21),{heading:n,items:r,moreSuffix:i}=e,a,o,s,c,l;t[0]!==n||t[1]!==r?(l=r.slice(0,OZ),s=`min-w-0`,t[7]===n?c=t[8]:(c=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[7]=n,t[8]=c),a=`mt-1 space-y-1 text-sm text-fg-muted`,o=l.map(NZ),t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l):(a=t[2],o=t[3],s=t[4],c=t[5],l=t[6]);let u;t[9]!==a||t[10]!==o?(u=(0,$.jsx)(`ul`,{className:a,children:o}),t[9]=a,t[10]=o,t[11]=u):u=t[11];let d;t[12]!==r.length||t[13]!==i||t[14]!==l.length?(d=r.length>l.length?(0,$.jsx)(`div`,{className:`mt-1 pl-4 text-xs text-fg-disabled`,children:i(r.length-l.length)}):null,t[12]=r.length,t[13]=i,t[14]=l.length,t[15]=d):d=t[15];let f;return t[16]!==s||t[17]!==c||t[18]!==u||t[19]!==d?(f=(0,$.jsxs)(`section`,{className:s,children:[c,u,d]}),t[16]=s,t[17]=c,t[18]=u,t[19]=d,t[20]=f):f=t[20],f}function NZ(e,t){return(0,$.jsxs)(`li`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`text-fg-disabled`,children:`-`}),(0,$.jsx)(`span`,{className:`min-w-0 break-words`,children:e})]},`${e}:${t}`)}function PZ(e){let t=(0,Q.c)(21),{heading:n,items:r,moreSuffix:i}=e,a,o,s,c,l;t[0]!==n||t[1]!==r?(l=r.slice(0,OZ),s=`min-w-0`,t[7]===n?c=t[8]:(c=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[7]=n,t[8]=c),a=`mt-2 space-y-2`,o=l.map(FZ),t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l):(a=t[2],o=t[3],s=t[4],c=t[5],l=t[6]);let u;t[9]!==a||t[10]!==o?(u=(0,$.jsx)(`ul`,{className:a,children:o}),t[9]=a,t[10]=o,t[11]=u):u=t[11];let d;t[12]!==r.length||t[13]!==i||t[14]!==l.length?(d=r.length>l.length?(0,$.jsx)(`div`,{className:`mt-2 pl-1 text-xs text-fg-disabled`,children:i(r.length-l.length)}):null,t[12]=r.length,t[13]=i,t[14]=l.length,t[15]=d):d=t[15];let f;return t[16]!==s||t[17]!==c||t[18]!==u||t[19]!==d?(f=(0,$.jsxs)(`section`,{className:s,children:[c,u,d]}),t[16]=s,t[17]=c,t[18]=u,t[19]=d,t[20]=f):f=t[20],f}function FZ(e,t){return(0,$.jsx)(RZ,{item:e},`${e.title}:${e.file??``}:${t}`)}function IZ(e){let t=(0,Q.c)(21),{heading:n,items:r,moreSuffix:i}=e,a,o,s,c,l;t[0]!==n||t[1]!==r?(l=r.slice(0,OZ),s=`min-w-0`,t[7]===n?c=t[8]:(c=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[7]=n,t[8]=c),a=`mt-2 space-y-2`,o=l.map(LZ),t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l):(a=t[2],o=t[3],s=t[4],c=t[5],l=t[6]);let u;t[9]!==a||t[10]!==o?(u=(0,$.jsx)(`ul`,{className:a,children:o}),t[9]=a,t[10]=o,t[11]=u):u=t[11];let d;t[12]!==r.length||t[13]!==i||t[14]!==l.length?(d=r.length>l.length?(0,$.jsx)(`div`,{className:`mt-2 pl-1 text-xs text-fg-disabled`,children:i(r.length-l.length)}):null,t[12]=r.length,t[13]=i,t[14]=l.length,t[15]=d):d=t[15];let f;return t[16]!==s||t[17]!==c||t[18]!==u||t[19]!==d?(f=(0,$.jsxs)(`section`,{className:s,children:[c,u,d]}),t[16]=s,t[17]=c,t[18]=u,t[19]=d,t[20]=f):f=t[20],f}function LZ(e,t){return(0,$.jsx)(RZ,{item:{title:e.title,severity:e.severity,detail:e.impact,recommendation:e.mitigation}},`${e.title}:${t}`)}function RZ(e){let t=(0,Q.c)(19),{item:n}=e,r=tZ(n.severity),i=r===`high`?`bg-rose-500/15 text-rose-700 dark:text-rose-300`:r===`med`?`bg-amber-500/15 text-amber-700 dark:text-amber-300`:`bg-surface-hover text-fg-muted`,a=n.file?n.line==null?n.file:`${n.file}:${n.line}`:``,o;t[0]!==n.severity||t[1]!==i?(o=n.severity?(0,$.jsx)(`span`,{className:C(`rounded px-1.5 py-0.5 text-[10px] font-medium uppercase`,i),children:n.severity}):null,t[0]=n.severity,t[1]=i,t[2]=o):o=t[2];let s;t[3]===n.title?s=t[4]:(s=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-words text-sm font-medium text-fg`,children:n.title}),t[3]=n.title,t[4]=s);let c;t[5]!==o||t[6]!==s?(c=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;t[8]===a?l=t[9]:(l=a?(0,$.jsx)(`div`,{className:`mt-1 break-all font-mono text-xs text-fg-subtle`,children:a}):null,t[8]=a,t[9]=l);let u;t[10]===n.detail?u=t[11]:(u=n.detail?(0,$.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap break-words text-xs leading-5 text-fg-muted`,children:n.detail}):null,t[10]=n.detail,t[11]=u);let d;t[12]===n.recommendation?d=t[13]:(d=n.recommendation?(0,$.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap break-words text-xs leading-5 text-fg-muted`,children:n.recommendation}):null,t[12]=n.recommendation,t[13]=d);let f;return t[14]!==c||t[15]!==l||t[16]!==u||t[17]!==d?(f=(0,$.jsxs)(`li`,{className:`min-w-0 rounded-lg border border-edge-subtle bg-surface-base/45 px-3 py-2`,children:[c,l,u,d]}),t[14]=c,t[15]=l,t[16]=u,t[17]=d,t[18]=f):f=t[18],f}function zZ(e){return e?e.toLowerCase().startsWith(`zh`)?`zh`:`en`:`default`}var BZ={default:new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}),en:new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`}),zh:new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`,timeStyle:`short`})},VZ={default:new Intl.DateTimeFormat(void 0,{dateStyle:`medium`}),en:new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`}),zh:new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`})},HZ={default:new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}),en:new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}),zh:new Intl.DateTimeFormat(`zh-CN`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})},UZ={default:new Intl.DateTimeFormat(void 0,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}),en:new Intl.DateTimeFormat(`en-US`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}),zh:new Intl.DateTimeFormat(`zh-CN`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`})},WZ={en:new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`}),zh:new Intl.RelativeTimeFormat(`zh-CN`,{numeric:`auto`})};function GZ(e,t){return BZ[zZ(t)].format(e)}function KZ(e,t){return VZ[zZ(t)].format(e)}function qZ(e,t){return HZ[zZ(t)].format(e)}function JZ(e,t){return UZ[zZ(t)].format(e)}function YZ(e,t,n){return WZ[zZ(n)===`zh`?`zh`:`en`].format(e,t)}function XZ(e){return e===`zh`?`zh`:`en`}function ZZ(e,t){let n=XZ(t),r=n===`en`?void 0:e.metadata.i18n?.[n],i=r?.examplePrompts&&r.examplePrompts.length>0?r.examplePrompts:e.metadata.examplePrompts??[];return{description:$Z(r?.description,e.description),whenToUse:eQ(r?.whenToUse,e.metadata.whenToUse),examplePrompts:i}}function QZ(e){return[e.name,e.title,e.description,e.metadata.whenToUse??``,...(e.metadata.examplePrompts??[]).map(e=>e.text),...Object.values(e.metadata.i18n??{}).flatMap(e=>[e.description??``,e.whenToUse??``,...(e.examplePrompts??[]).map(e=>e.text)]),...e.metadata.tags].join(` `).toLowerCase()}function $Z(e,t){return e?.trim()||t}function eQ(e,t){return e?.trim()||t?.trim()||void 0}function tQ(e,t,n){if(e.field===`goal`){t(e.text);return}n(t=>({...t,[e.field]:e.text}))}var nQ=[`all`,`code-review`,`planning`,`research`,`writing`,`productivity`];new Set(nQ);var rQ=[`all`,`builtin`,`user`];new Set(rQ);var iQ=`agent`,aQ=`layout`,oQ=`status`,sQ=`trigger`,cQ=new Set([`runs`,`library`]),lQ=new Set([`list`,`board`]),uQ=new Set([`all`,`attention`,`running`,`queued`,`succeeded`]);new Set([`result`,`process`,`diagnostics`,`artifacts`,`debug`]);var dQ={"code-review":[`code-review`,`pr`,`release`],planning:[`planning`,`implementation`,`architecture`,`decision`,`review`],research:[`research`,`investigation`,`debug`,`incident`,`troubleshooting`],writing:[`writing`,`content`,`communication`,`email`,`document`],productivity:[`productivity`,`meeting`,`comparison`,`brainstorm`,`decision-making`]},fQ={research:[{key:`question`,labelKey:`argQuestion`,placeholderKey:`argQuestionPlaceholder`,required:!0,multiline:!0}],multi_perspective_review:[{key:`target`,labelKey:`argTarget`,placeholderKey:`argTargetPlaceholder`,multiline:!0}],pr_review:[{key:`target`,labelKey:`argDiff`,placeholderKey:`argDiffPlaceholder`,multiline:!0}],debug_incident:[{key:`error`,labelKey:`argError`,placeholderKey:`argErrorPlaceholder`,required:!0,multiline:!0},{key:`context`,labelKey:`argContext`,placeholderKey:`argContextPlaceholder`,multiline:!0}],implementation_plan:[{key:`request`,labelKey:`argRequest`,placeholderKey:`argRequestPlaceholder`,required:!0,multiline:!0},{key:`scope`,labelKey:`argScope`,placeholderKey:`argScopePlaceholder`}],release_check:[{key:`target`,labelKey:`argTarget`,placeholderKey:`argReleaseTargetPlaceholder`,multiline:!0}],content_draft:[{key:`topic`,labelKey:`argTopic`,placeholderKey:`argTopicPlaceholder`,required:!0,multiline:!0},{key:`audience`,labelKey:`argAudience`,placeholderKey:`argAudiencePlaceholder`},{key:`format`,labelKey:`argFormat`,placeholderKey:`argFormatPlaceholder`}],decision_compare:[{key:`question`,labelKey:`argDecisionQuestion`,placeholderKey:`argDecisionQuestionPlaceholder`,required:!0,multiline:!0},{key:`options`,labelKey:`argOptions`,placeholderKey:`argOptionsPlaceholder`,multiline:!0},{key:`criteria`,labelKey:`argCriteria`,placeholderKey:`argCriteriaPlaceholder`,multiline:!0}],meeting_prep:[{key:`meeting_topic`,labelKey:`argMeetingTopic`,placeholderKey:`argMeetingTopicPlaceholder`,required:!0,multiline:!0},{key:`attendees`,labelKey:`argAttendees`,placeholderKey:`argAttendeesPlaceholder`},{key:`goal`,labelKey:`argMeetingGoal`,placeholderKey:`argMeetingGoalPlaceholder`,multiline:!0}],weekly_review:[{key:`wins`,labelKey:`argWins`,placeholderKey:`argWinsPlaceholder`,required:!0,multiline:!0},{key:`blockers`,labelKey:`argBlockers`,placeholderKey:`argBlockersPlaceholder`,multiline:!0},{key:`carryover`,labelKey:`argCarryover`,placeholderKey:`argCarryoverPlaceholder`,multiline:!0}],client_proposal:[{key:`client_brief`,labelKey:`argClientBrief`,placeholderKey:`argClientBriefPlaceholder`,required:!0,multiline:!0},{key:`offer`,labelKey:`argOffer`,placeholderKey:`argOfferPlaceholder`,multiline:!0},{key:`budget_hint`,labelKey:`argBudgetHint`,placeholderKey:`argBudgetHintPlaceholder`}],content_repurpose:[{key:`source`,labelKey:`argSource`,placeholderKey:`argSourcePlaceholder`,required:!0,multiline:!0},{key:`platforms`,labelKey:`argPlatforms`,placeholderKey:`argPlatformsPlaceholder`,multiline:!0}],competitor_scan:[{key:`market`,labelKey:`argMarket`,placeholderKey:`argMarketPlaceholder`,required:!0,multiline:!0},{key:`competitors`,labelKey:`argCompetitors`,placeholderKey:`argCompetitorsPlaceholder`,multiline:!0},{key:`focus`,labelKey:`argFocus`,placeholderKey:`argFocusPlaceholder`}],offer_design:[{key:`skills`,labelKey:`argSkills`,placeholderKey:`argSkillsPlaceholder`,required:!0,multiline:!0},{key:`audience`,labelKey:`argOfferAudience`,placeholderKey:`argOfferAudiencePlaceholder`,multiline:!0},{key:`constraints`,labelKey:`argConstraints`,placeholderKey:`argConstraintsPlaceholder`,multiline:!0}],inbox_triage:[{key:`inbox`,labelKey:`argInbox`,placeholderKey:`argInboxPlaceholder`,required:!0,multiline:!0},{key:`priorities`,labelKey:`argPriorities`,placeholderKey:`argPrioritiesPlaceholder`,multiline:!0}]},pQ=new Set([`queued`,`running`]);function mQ(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function hQ(e,t){return e?JZ(e,t):`—`}function gQ(e){if(!e||!Number.isFinite(e))return`—`;let t=Math.max(0,Math.floor(e/1e3));if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;if(n<60)return r?`${n}m ${r}s`:`${n}m`;let i=Math.floor(n/60),a=n%60;return a?`${i}h ${a}m`:`${i}h`}function _Q(e){return e===`succeeded`?`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`:e===`failed`||e===`timeout`?`bg-red-500/15 text-red-700 dark:text-red-300`:e===`cancelled`?`bg-amber-500/15 text-amber-700 dark:text-amber-300`:`bg-accent-soft text-accent-fg`}function vQ(e,t){if(t===`all`)return!0;let n=e.metadata.tags.map(e=>e.toLowerCase());return dQ[t].some(e=>n.includes(e))}function yQ(e,t){return t===`all`?!0:t===`builtin`?e.metadata.builtIn:e.metadata.source===`user`}function bQ(e,t,n,r){let i=t.trim().toLowerCase();return e.filter(e=>!vQ(e,n)||!yQ(e,r)?!1:i?QZ(e).includes(i):!0)}function xQ(e){let t=[e.summary.trim()];for(let n of e.sections??[]){let e=n.title.trim()?`## ${n.title.trim()}`:``;if(n.kind===`text`){t.push([e,n.content.trim()].filter(Boolean).join(`
|
|
108
|
-
|
|
109
|
-
`));continue}if(n.kind===`questions`){t.push([e,...n.items.map(e=>`- ${e}`)].filter(Boolean).join(`
|
|
110
|
-
`));continue}if(n.kind===`findings`){t.push([e,...n.items.map(e=>[`### ${e.title}`,e.severity?`**Severity:** ${e.severity}`:``,e.file?`**Location:** \`${e.file}${e.line==null?``:`:${e.line}`}\``:``,e.detail??``,e.recommendation??``].filter(Boolean).join(`
|
|
111
|
-
|
|
112
|
-
`))].filter(Boolean).join(`
|
|
113
|
-
|
|
114
|
-
`));continue}t.push([e,...n.items.map(e=>[`### ${e.title}`,e.severity?`**Severity:** ${e.severity}`:``,e.impact??``,e.mitigation??``].filter(Boolean).join(`
|
|
115
|
-
|
|
116
|
-
`))].filter(Boolean).join(`
|
|
117
|
-
|
|
118
|
-
`))}return t.filter(Boolean).join(`
|
|
119
|
-
|
|
120
|
-
`)}function SQ(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:typeof e.summary==`string`}function CQ(e){return SQ(e)?e:null}function wQ(e){let t=e.run.metadata?.sessionKey?.trim();return t&&/^agent:[^:]+:webchat:/i.test(t)?t:null}function TQ(e,t){let n=`/chat/${encodeURIComponent(e)}`,r=t?.trim();return r?`${n}?${new URLSearchParams({draft:r}).toString()}`:n}function EQ(e,t){let n=e.trim(),r=new URLSearchParams({run:n}),i=t?.ownerAgentId?.trim();return i&&r.set(`agent`,i),`/workflows?${r.toString()}`}function DQ(e){let t=e.source;return t&&typeof t==`object`&&`kind`in t&&typeof t.kind==`string`?t.kind:e.metadata?.triggerSource?.trim()||`unknown`}function OQ(e,t){let n=t.trim();return!n||n===`all`?!0:DQ(e)===n}function kQ(e){let t={};for(let[n,r]of Object.entries(e)){let e=r.trim();e&&(t[n]=e)}return Object.keys(t).length>0?t:void 0}function AQ(e){let t=[];e.run.error&&t.push({key:`run-error`,kind:`run_error`,severity:e.run.error.recoverable?`warning`:`error`,code:e.run.error.code,message:e.run.error.message,detail:e.run.error.detail});for(let n of e.agents){n.status===`error`?t.push({key:`agent-error:${n.id}`,kind:`agent_error`,severity:`error`,agentId:n.id,agentLabel:n.label,message:n.error,detail:n.resultPreview}):n.status===`skipped`&&t.push({key:`agent-skipped:${n.id}`,kind:`agent_skipped`,severity:`warning`,agentId:n.id,agentLabel:n.label,message:n.error});for(let e of n.steps??[])e.status===`error`&&t.push({key:`step-error:${n.id}:${e.id}`,kind:`step_error`,severity:`error`,agentId:n.id,agentLabel:n.label,stepId:e.id,stepLabel:e.label,message:e.error,detail:e.resultPreview??e.detail})}return t}var jQ=(0,Z.memo)(function({block:e,startedAt:t,labels:n,className:r}){let i=HX(e),a=(0,Z.useMemo)(()=>BX(e),[e]),o=m(),s=i===`failed`?JX(e):null,c=i===`failed`?YX(e):``,[l,u]=(0,Z.useState)(!1);(0,Z.useEffect)(()=>{i===`completed`&&u(!0),(i===`running`||i===`failed`)&&u(!1)},[i]);let[d,f]=(0,Z.useState)(!1),[p,h]=(0,Z.useState)(null),g=(0,Z.useMemo)(()=>p==null||!a?null:a.agents.find(e=>e.id===p)??null,[p,a]),_=(0,Z.useCallback)(e=>{h(e.id)},[]),v=(0,Z.useCallback)(()=>{h(null)},[]);(0,Z.useEffect)(()=>{h(null)},[a?.runId,i]);let[,y]=(0,Z.useState)(0);(0,Z.useEffect)(()=>{if(i!==`running`)return;let e=window.setInterval(()=>y(e=>e+1),1e3);return()=>window.clearInterval(e)},[i]);let b=(0,Z.useMemo)(()=>i===`running`?t?QX(Date.now()-t):``:a?.durationMs==null?``:QX(a.durationMs),[i,t,a?.durationMs]),[x,w]=(0,Z.useState)(!1),T=(0,Z.useCallback)(async()=>{!a||!SQ(a.result)||await k(xQ(a.result))&&(w(!0),window.setTimeout(()=>w(!1),1500))},[a]),E=(0,Z.useCallback)(()=>{let e=a?.runId?.trim();if(e){o(EQ(e));return}let t=a?.name?.trim();t&&o(`/workflows?def=${encodeURIComponent(t)}`)},[o,a?.name,a?.runId]),D=(0,Z.useCallback)(()=>{let e=a?.name?.trim();e&&o(`/workflows?def=${encodeURIComponent(e)}©=1`)},[o,a?.name]),O=(0,Z.useCallback)(e=>{let t=a?.runId?.trim();if(!t)return;let n=e.target;n instanceof Element&&n.closest(`button,a,input,textarea,select,summary,[role="button"],[data-workflow-inline-detail]`)||o(EQ(t))},[o,a?.runId]);if(UX(e)||i===`completed`&&!a){let t=s??JX(e),i=WX(e),a=i.snapshot,o=p==null||!a?null:a.agents.find(e=>e.id===p)??null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(dZ,{kind:t,reason:i.headline||c||`workflow failed`,detailLines:i.detailLines,logs:i.logs,failedAgents:i.failedAgents,snapshot:a,selectedAgentId:p,onSelectAgent:_,labels:n.error,className:r}),(0,$.jsx)(iZ,{agent:o,snapshot:a,labels:n.checkDetail,className:`mt-2`,onClose:v})]})}let A=a?.agentCount??0,j=a?.doneCount??0,M=a?XX(a):{phases:[],unphased:null},N=i===`running`&&a?n.currentProgressTpl(a.currentPhase,a.runningCount,a.doneCount,a.agentCount):void 0,P=(0,$.jsx)($.Fragment,{children:i===`completed`&&a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`button`,{type:`button`,onClick:T,className:C(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,aT.transition,aT.focusRingPanel),"aria-label":x?n.copyDoneAria:n.copyAria,title:x?n.copyDoneAria:n.copyAria,children:x?(0,$.jsx)(S,{className:`size-4 text-emerald-600 dark:text-emerald-400`}):(0,$.jsx)(tl,{className:`size-4`})}),a?.name?(0,$.jsx)(`button`,{type:`button`,onClick:D,className:C(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,aT.transition,aT.focusRingPanel),"aria-label":n.saveAria,title:n.saveTitle,children:(0,$.jsx)(Ny,{className:`size-4`})}):null,a?.name?(0,$.jsx)(`button`,{type:`button`,onClick:E,className:C(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,aT.transition,aT.focusRingPanel),"aria-label":n.openInWorkflowsAria,title:n.openInWorkflowsTitle,children:(0,$.jsx)(Ep,{className:`size-4`})}):null]}):null});return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{onClick:O,className:C(`min-w-0 rounded-xl border border-edge bg-surface-panel shadow-surface`,a?.runId&&`cursor-pointer hover:bg-surface-hover/35`,r),role:`group`,"aria-label":a?`Workflow ${a.name}`:`Workflow`,children:[(0,$.jsx)(sZ,{name:a?.name??e.name,description:a?.description,status:i,doneCount:j,totalCount:A,durationText:b,metaText:N,collapsed:l,onToggleCollapsed:()=>u(e=>!e),actions:P,labels:n.header}),l?null:(0,$.jsxs)(`div`,{className:`space-y-3 px-3 py-2.5`,children:[i===`completed`&&a?(0,$.jsx)(kZ,{result:SQ(a.result)?a.result:null,labels:n.result}):null,i===`running`&&a?(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge-subtle bg-surface-base/45 px-3 py-2.5`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:a.currentPhase??n.live.activeFallback}),(0,$.jsx)(`span`,{className:`shrink-0 tabular-nums`,children:n.live.progress(a.doneCount,a.agentCount)})]}),a.agentCount>0?(0,$.jsx)(`div`,{className:`mt-2 h-1.5 overflow-hidden rounded-full bg-surface-hover`,children:(0,$.jsx)(`div`,{className:`h-full rounded-full bg-accent transition-all`,style:{width:`${Math.round(a.doneCount/a.agentCount*100)}%`}})}):null,(0,$.jsx)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2`,children:(0,$.jsx)(`button`,{type:`button`,className:C(`rounded-md px-2 py-1 text-xs font-medium text-accent-fg hover:bg-accent-soft`,aT.focusRingPanel),onClick:E,children:n.live.details})})]}):null,i===`running`&&!a?(0,$.jsxs)(`div`,{className:`py-1 text-sm text-fg-subtle`,children:[(0,$.jsx)(`span`,{className:`inline-block size-2 animate-pulse rounded-full bg-accent align-middle`}),(0,$.jsx)(`span`,{className:`ml-2 align-middle`,children:n.viewSubagentsHeading})]}):null,i===`completed`&&a&&(M.phases.length>0||M.unphased)?(0,$.jsxs)(`details`,{className:`group`,open:d,onToggle:e=>f(e.target.open),children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-xs text-fg-subtle underline-offset-2 hover:text-fg-muted`,children:n.viewSubagentsHeading}),(0,$.jsxs)(`div`,{className:`mt-2`,children:[(0,$.jsx)(EZ,{rollup:M,currentPhase:void 0,labels:n.phase,recentLogs:[],recentLogsHeading:n.recentLogsHeading,showAllLogsLabel:n.showAllLogs,logsExpanded:!1,onToggleLogs:()=>{},selectedAgentId:p,onSelectAgent:_}),(0,$.jsx)(iZ,{agent:g,snapshot:a,labels:n.checkDetail,className:`mt-2`,onClose:v})]})]}):null]})]})})}),MQ=(0,Z.memo)(function(e){let t=(0,Q.c)(3),{active:n,failed:r}=e;if(n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Zg,{className:`mt-0.5 size-4 shrink-0 animate-spin text-accent-fg`,"aria-hidden":!0}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(bs,{className:`mt-0.5 size-4 shrink-0 text-red-600 dark:text-red-400`,"aria-hidden":!0}),t[1]=e):e=t[1],e}let i;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(Bo,{className:`mt-0.5 size-4 shrink-0 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}),t[2]=i):i=t[2],i}),NQ=(0,Z.memo)(function(e){let t=(0,Q.c)(14),{active:n,startedAt:r,frozenMs:i,language:a,className:o}=e,[,s]=(0,Z.useState)(0),c;t[0]!==n||t[1]!==s?(c=()=>{if(!n)return;let e=window.setInterval(()=>s(VQ),500);return()=>window.clearInterval(e)},t[0]=n,t[1]=s,t[2]=c):c=t[2];let l;t[3]===n?l=t[4]:(l=[n],t[3]=n,t[4]=l),(0,Z.useEffect)(c,l);let u=n&&r!=null?Math.max(0,Date.now()-r):0,d;t[5]!==n||t[6]!==u||t[7]!==i||t[8]!==a||t[9]!==r?(d=n&&r!=null?tX(u,a):i==null?null:tX(i,a),t[5]=n,t[6]=u,t[7]=i,t[8]=a,t[9]=r,t[10]=d):d=t[10];let f=d;if(!f)return null;let p;return t[11]!==o||t[12]!==f?(p=(0,$.jsx)(`span`,{className:o,children:f}),t[11]=o,t[12]=f,t[13]=p):p=t[13],p});function PQ(e){let t=(0,Q.c)(80),{activity:n,toolLabels:r,stepLabels:i,clusterLabels:a,cardLabels:o,sessionKey:s,workflowOptions:c}=e,l=I(FQ),u=n.blocks,d=u.length,f=n.active,p=n.failedCount,m=n.expandedByDefault,[h,g]=(0,Z.useState)(null),_=h??m,v=n.startedAt??null,y=n.durationMs??null,b;bb0:{if(f){b=``;break bb0}let e;t[0]!==a.done||t[1]!==a.join||t[2]!==l||t[3]!==d||t[4]!==i||t[5]!==u?(e=xY(u,a.done,a.join,l,bY(d,i)),t[0]=a.done,t[1]=a.join,t[2]=l,t[3]=d,t[4]=i,t[5]=u,t[6]=e):e=t[6];let r=e;if(p>0){let e=i.activityPartial,n;if(t[7]!==p||t[8]!==i.activityFailedCount){let e;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(e=/\{\{count\}\}/g,t[10]=e):e=t[10],n=i.activityFailedCount.replace(e,String(p)),t[7]=p,t[8]=i.activityFailedCount,t[9]=n}else n=t[9];b=`${e} · ${n}`;break bb0}b=n.hasTool?`${i.activityCompleted} · ${r}`:i.activityAnalysisComplete}let x=b,S;bb1:{if(!f){S=null;break bb1}let e;t[11]!==a.ing||t[12]!==u?(e=SY(u,a.ing),t[11]=a.ing,t[12]=u,t[13]=e):e=t[13],S=e}let w=S;if(d===0)return null;let T;t[14]!==i.editFile||t[15]!==i.fetchUrl||t[16]!==i.listDirectory||t[17]!==i.memoryActivity||t[18]!==i.openUrl||t[19]!==i.rawThinking||t[20]!==i.readFile||t[21]!==i.runCommand||t[22]!==i.searched||t[23]!==i.searchedCode||t[24]!==i.searchedMemory||t[25]!==i.searchedWeb||t[26]!==i.stepDetails||t[27]!==i.thoughts||t[28]!==i.thoughtsStreaming||t[29]!==i.toolError||t[30]!==i.toolFailedImpact||t[31]!==i.toolRunning||t[32]!==i.unknownTool||t[33]!==i.writeFile?(T={thoughts:i.thoughts,thoughtsStreaming:i.thoughtsStreaming,searchedWeb:i.searchedWeb,searchedMemory:i.searchedMemory,searchedCode:i.searchedCode,searched:i.searched,readFile:i.readFile,stepDetails:i.stepDetails,runCommand:i.runCommand,listDirectory:i.listDirectory,writeFile:i.writeFile,editFile:i.editFile,openUrl:i.openUrl,fetchUrl:i.fetchUrl,unknownTool:i.unknownTool,toolFailedImpact:i.toolFailedImpact,rawThinking:i.rawThinking,toolRunning:i.toolRunning,toolError:i.toolError,memoryActivity:i.memoryActivity},t[14]=i.editFile,t[15]=i.fetchUrl,t[16]=i.listDirectory,t[17]=i.memoryActivity,t[18]=i.openUrl,t[19]=i.rawThinking,t[20]=i.readFile,t[21]=i.runCommand,t[22]=i.searched,t[23]=i.searchedCode,t[24]=i.searchedMemory,t[25]=i.searchedWeb,t[26]=i.stepDetails,t[27]=i.thoughts,t[28]=i.thoughtsStreaming,t[29]=i.toolError,t[30]=i.toolFailedImpact,t[31]=i.toolRunning,t[32]=i.unknownTool,t[33]=i.writeFile,t[34]=T):T=t[34];let E=T,D;t[35]!==f||t[36]!==x||t[37]!==v||t[38]!==l||t[39]!==d||t[40]!==i||t[41]!==w?(D=f?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:w??bY(d,i)}),(0,$.jsx)(NQ,{active:f,startedAt:v,frozenMs:null,language:l,className:`ml-1.5 tabular-nums text-fg-muted`})]}):(0,$.jsx)($.Fragment,{children:(0,$.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:x})}),t[35]=f,t[36]=x,t[37]=v,t[38]=l,t[39]=d,t[40]=i,t[41]=w,t[42]=D):D=t[42];let O=D,k;t[43]!==f||t[44]!==y||t[45]!==v||t[46]!==l?(k=f?null:(0,$.jsx)(NQ,{active:!1,startedAt:v,frozenMs:y,language:l,className:`mt-0.5 tabular-nums text-xs text-fg-muted`}),t[43]=f,t[44]=y,t[45]=v,t[46]=l,t[47]=k):k=t[47];let A=k,j;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(j=C(`grid w-full min-w-0 grid-cols-[auto_minmax(0,1fr)_auto_auto] items-start gap-x-2 rounded-t-xl px-3 py-2 text-left`,aT.transition,`hover:bg-surface-hover/80 dark:hover:bg-surface-hover/50`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),t[48]=j):j=t[48];let M;t[49]===m?M=t[50]:(M=()=>g(e=>!(e??m)),t[49]=m,t[50]=M);let N=p>0,P;t[51]!==f||t[52]!==N?(P=(0,$.jsx)(MQ,{active:f,failed:N}),t[51]=f,t[52]=N,t[53]=P):P=t[53];let F;t[54]===O?F=t[55]:(F=(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(`span`,{className:`inline-flex max-w-full flex-wrap items-baseline rounded-md bg-accent-soft/70 px-2 py-0.5 text-xs font-medium text-fg dark:bg-accent-soft/40`,children:O})}),t[54]=O,t[55]=F);let L;t[56]===A?L=t[57]:(L=(0,$.jsx)(`span`,{className:`flex items-start justify-end`,children:A}),t[56]=A,t[57]=L);let R=_&&`rotate-180`,z;t[58]===R?z=t[59]:(z=C(`mt-0.5 size-4 shrink-0 text-fg-muted transition-transform`,R),t[58]=R,t[59]=z);let B;t[60]===z?B=t[61]:(B=(0,$.jsx)(fo,{className:z,"aria-hidden":!0}),t[60]=z,t[61]=B);let V;t[62]!==_||t[63]!==F||t[64]!==L||t[65]!==B||t[66]!==M||t[67]!==P?(V=(0,$.jsxs)(`button`,{type:`button`,className:j,onClick:M,"aria-expanded":_,children:[P,F,L,B]}),t[62]=_,t[63]=F,t[64]=L,t[65]=B,t[66]=M,t[67]=P,t[68]=V):V=t[68];let H;t[69]!==o||t[70]!==_||t[71]!==s||t[72]!==E||t[73]!==r||t[74]!==u||t[75]!==c?(H=_?(0,$.jsx)(`div`,{className:`border-t border-edge-subtle/90 px-3 pb-3 pt-2 dark:border-edge-subtle`,children:(0,$.jsx)(IQ,{blocks:u,toolLabels:r,stepLabels:E,cardLabels:o,sessionKey:s,workflowOptions:c})}):null,t[69]=o,t[70]=_,t[71]=s,t[72]=E,t[73]=r,t[74]=u,t[75]=c,t[76]=H):H=t[76];let U;return t[77]!==V||t[78]!==H?(U=(0,$.jsxs)(`div`,{className:`my-1 w-full min-w-0 overflow-hidden rounded-xl bg-surface-hover/50 dark:bg-surface-hover/30`,children:[V,H]}),t[77]=V,t[78]=H,t[79]=U):U=t[79],U}function FQ(e){return e.language}function IQ(e){let t=(0,Q.c)(20),{blocks:n,toolLabels:r,stepLabels:i,cardLabels:a,className:o,sessionKey:s,workflowOptions:c}=e;if(n.length===0)return null;let l;t[0]===o?l=t[1]:(l=C(`min-w-0 overflow-x-hidden`,o),t[0]=o,t[1]=l);let u;if(t[2]!==n||t[3]!==a||t[4]!==s||t[5]!==i||t[6]!==r||t[7]!==c){let e;t[9]!==a||t[10]!==s||t[11]!==i||t[12]!==r||t[13]!==c?(e=(e,t)=>(0,$.jsx)(zQ,{block:e,toolLabels:r,stepLabels:i,cardLabels:a,sessionKey:s,workflowOptions:c},e.type===`tool_use`?e.id:`thinking-${t}`),t[9]=a,t[10]=s,t[11]=i,t[12]=r,t[13]=c,t[14]=e):e=t[14],u=n.map(e),t[2]=n,t[3]=a,t[4]=s,t[5]=i,t[6]=r,t[7]=c,t[8]=u}else u=t[8];let d;t[15]===u?d=t[16]:(d=(0,$.jsx)(`div`,{className:`ml-1 min-w-0 space-y-3 border-l border-edge-subtle pl-3 dark:border-edge-subtle`,children:u}),t[15]=u,t[16]=d);let f;return t[17]!==l||t[18]!==d?(f=(0,$.jsx)(`div`,{className:l,children:d}),t[17]=l,t[18]=d,t[19]=f):f=t[19],f}function LQ(e){let t=(0,Q.c)(15),{toolName:n,toolResult:r}=e,i=pN(),a=OX(n);if(!a||i.length===0)return null;let o;if(t[0]!==i||t[1]!==a.extensionId){let e;t[3]===a.extensionId?e=t[4]:(e=e=>e.id===a.extensionId,t[3]=a.extensionId,t[4]=e),o=i.find(e),t[0]=i,t[1]=a.extensionId,t[2]=o}else o=t[2];let s=o,c=s?.name??a.extensionId,l=a.maxHeight??400,u=a.interactive??!1,d=s?.ui?.permissions,f;return t[5]!==c||t[6]!==l||t[7]!==u||t[8]!==d||t[9]!==r||t[10]!==a.entrypoint||t[11]!==a.extensionId||t[12]!==a.id||t[13]!==a.title?(f=(0,$.jsx)(DX,{extensionId:a.extensionId,extensionName:c,widgetId:a.id,entrypoint:a.entrypoint,title:a.title,toolResult:r,maxHeight:l,interactive:u,permissions:d}),t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=r,t[10]=a.entrypoint,t[11]=a.extensionId,t[12]=a.id,t[13]=a.title,t[14]=f):f=t[14],f}var RQ=new Set([`readFile`,`editFile`,`writeFile`,`runCommand`,`fetchUrl`]);function zQ(e){let t=(0,Q.c)(109),{block:n,toolLabels:r,stepLabels:i,cardLabels:a,sessionKey:o,workflowOptions:s}=e,c=eX(BQ),l;bb0:{if(n.type!==`tool_use`){l=``;break bb0}if(n.status===`running`){l=``;break bb0}let e=n.result;if(e==null){l=``;break bb0}if(typeof e==`string`){let n;t[0]===e?n=t[1]:(n=e.trim(),t[0]=e,t[1]=n),l=n;break bb0}try{let n;t[2]===e?n=t[3]:(n=JSON.stringify(e,null,2),t[2]=e,t[3]=n),l=n}catch{l=String(e)}}let u=l,d;bb1:{if(n.type!==`tool_use`||n.status===`running`){d=null;break bb1}if(n.name!==`browser_use`){d=null;break bb1}let e;t[4]===u?e=t[5]:(e=sX(u),t[4]=u,t[5]=e),d=e}let f=d,p;t[6]===n?p=t[7]:(p=n.type===`tool_use`?LX(n):null,t[6]=n,t[7]=p);let m=p,h=m&&m.primary?.kind!==`workflow_run`&&m.primary?.kind!==`file`?m:null;if(n.type===`thinking`){let e=!!n.streaming,r;t[8]===n.text?r=t[9]:(r=n.text?.trim()??``,t[8]=n.text,t[9]=r);let a=r;if(!a&&!e)return null;let o;t[10]===e?o=t[11]:(o=(0,$.jsx)(`div`,{className:`mt-0.5 shrink-0`,children:e?(0,$.jsx)(Zg,{className:`size-4 animate-spin text-fg-muted`,"aria-hidden":!0}):(0,$.jsx)(Bo,{className:`size-4 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0})}),t[10]=e,t[11]=o);let s=e?i.thoughtsStreaming:i.thoughts,l;t[12]===s?l=t[13]:(l=(0,$.jsx)(`span`,{className:`inline-flex max-w-full min-w-0 break-words rounded-md bg-accent-soft/60 px-1.5 py-0.5 text-xs font-medium text-fg [overflow-wrap:anywhere] dark:bg-accent-soft/35`,children:s}),t[12]=s,t[13]=l);let u;t[14]!==c||t[15]!==i.rawThinking||t[16]!==e||t[17]!==a?(u=c&&a?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-fg-subtle underline-offset-2 hover:text-fg-muted`,children:i.rawThinking}),(0,$.jsx)(`p`,{className:`mt-1 whitespace-pre-wrap break-words text-xs leading-relaxed text-fg-muted [overflow-wrap:anywhere]`,children:a})]}):e?(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:`…`}):null,t[14]=c,t[15]=i.rawThinking,t[16]=e,t[17]=a,t[18]=u):u=t[18];let d;t[19]!==l||t[20]!==u?(d=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[l,u]}),t[19]=l,t[20]=u,t[21]=d):d=t[21];let f;return t[22]!==o||t[23]!==d?(f=(0,$.jsxs)(`div`,{className:`flex min-w-0 gap-2.5`,children:[o,d]}),t[22]=o,t[23]=d,t[24]=f):f=t[24],f}if(zX(n)){let e;return t[25]!==n||t[26]!==o||t[27]!==s.labels?(e=(0,$.jsx)(jQ,{block:n,startedAt:n.startedAt,sessionKey:o,labels:s.labels}),t[25]=n,t[26]=o,t[27]=s.labels,t[28]=e):e=t[28],e}let g=n.status===`running`,_=n.status===`error`||n.activity?.status===`failed`,v=u,b=g&&n.details&&typeof n.details==`object`&&!Array.isArray(n.details)&&typeof n.details.text==`string`?n.details.text:``,x=v??``;if(x)try{let e;t[29]===x?e=t[30]:(e=JSON.stringify(JSON.parse(x),null,2),t[29]=x,t[30]=e),x=e}catch{}let S,C;t[31]!==n.activity||t[32]!==n.name?(S=lY(n.name,n.activity),C=RQ.has(S),t[31]=n.activity,t[32]=n.name,t[33]=S,t[34]=C):(S=t[33],C=t[34]);let w=C,T;t[35]!==n||t[36]!==S||t[37]!==i?(T=S===`memorySearch`?DY(n,i.memoryActivity):null,t[35]=n,t[36]=S,t[37]=i,t[38]=T):T=t[38];let E=T,D;t[39]!==n.activity||t[40]!==n.name||t[41]!==E?.title||t[42]!==i?(D=E?.title??XJ(n.name,{searchedWeb:i.searchedWeb,searchedMemory:i.searchedMemory,searchedCode:i.searchedCode,searched:i.searched,readFile:i.readFile,runCommand:i.runCommand,listDirectory:i.listDirectory,writeFile:i.writeFile,editFile:i.editFile,openUrl:i.openUrl,fetchUrl:i.fetchUrl,unknownTool:i.unknownTool},n.activity),t[39]=n.activity,t[40]=n.name,t[41]=E?.title,t[42]=i,t[43]=D):D=t[43];let O=D,k;t[44]!==n.input||t[45]!==E?(k=E?``:iY(n.input),t[44]=n.input,t[45]=E,t[46]=k):k=t[46];let A=k,j;t[47]===n.input?j=t[48]:(j=n.input===void 0?``:ZJ(n.input),t[47]=n.input,t[48]=j);let M=j,N;t[49]!==n||t[50]!==a||t[51]!==w||t[52]!==S?(N=w?S===`readFile`?(0,$.jsx)(WY,{block:n,labels:a}):S===`editFile`?(0,$.jsx)(qY,{block:n,labels:a}):S===`writeFile`?(0,$.jsx)(YY,{block:n,labels:a}):S===`runCommand`?(0,$.jsx)(QY,{block:n,labels:a}):S===`fetchUrl`?(0,$.jsx)($Y,{block:n,labels:a}):null:null,t[49]=n,t[50]=a,t[51]=w,t[52]=S,t[53]=N):N=t[53];let P=N,F=!g&&c,I;t[54]!==_||t[55]!==g?(I=(0,$.jsx)(`div`,{className:`mt-0.5 shrink-0`,children:g?(0,$.jsx)(Zg,{className:`size-4 animate-spin text-fg-muted`,"aria-hidden":!0}):_?(0,$.jsx)(bs,{className:`size-4 text-red-600 dark:text-red-400`,"aria-hidden":!0}):(0,$.jsx)(Bo,{className:`size-4 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0})}),t[54]=_,t[55]=g,t[56]=I):I=t[56];let L;t[57]===O?L=t[58]:(L=(0,$.jsx)(`span`,{className:`inline-flex max-w-full min-w-0 break-words rounded-md bg-accent-soft/60 px-1.5 py-0.5 text-xs font-medium text-fg [overflow-wrap:anywhere] dark:bg-accent-soft/35`,children:O}),t[57]=O,t[58]=L);let R;t[59]!==_||t[60]!==g||t[61]!==i?(R=g?(0,$.jsx)(`span`,{className:`text-xs text-fg-disabled`,children:i.toolRunning}):_?(0,$.jsx)(`span`,{className:`text-xs text-red-600 dark:text-red-400`,children:i.toolError}):null,t[59]=_,t[60]=g,t[61]=i,t[62]=R):R=t[62];let z;t[63]!==L||t[64]!==R?(z=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[L,R]}),t[63]=L,t[64]=R,t[65]=z):z=t[65];let B;t[66]!==E||t[67]!==i?(B=E?(0,$.jsxs)(`div`,{className:`space-y-1 text-xs text-fg-muted`,children:[(0,$.jsx)(`p`,{children:E.purpose}),(0,$.jsxs)(`div`,{className:`flex flex-wrap gap-x-3 gap-y-1`,children:[(0,$.jsx)(y,{className:`font-medium text-accent-fg hover:underline`,to:`/you?tab=understanding`,children:i.memoryActivity.manage}),(0,$.jsx)(y,{className:`font-medium text-accent-fg hover:underline`,to:`/you?tab=privacy`,children:i.memoryActivity.privacy})]}),(0,$.jsxs)(`details`,{children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-fg-subtle hover:text-fg-muted`,children:i.memoryActivity.why}),(0,$.jsx)(`div`,{className:`mt-1.5 rounded-md bg-surface-hover/60 px-2 py-1.5 dark:bg-surface-hover/35`,children:(0,$.jsx)(`p`,{children:i.memoryActivity.explanation})})]})]}):null,t[66]=E,t[67]=i,t[68]=B):B=t[68];let V;t[69]!==_||t[70]!==i?(V=_?(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-red-600 dark:text-red-400`,children:i.toolFailedImpact}):null,t[69]=_,t[70]=i,t[71]=V):V=t[71];let H;t[72]===h?H=t[73]:(H=h?(0,$.jsx)(NX,{delivery:h}):null,t[72]=h,t[73]=H);let U;t[74]!==A||t[75]!==w?(U=!w&&A?(0,$.jsx)(`p`,{className:`min-w-0 rounded-md bg-accent-soft/40 px-1.5 py-1 text-xs break-words text-fg-muted [overflow-wrap:anywhere] dark:bg-accent-soft/25`,children:A}):null,t[74]=A,t[75]=w,t[76]=U):U=t[76];let W;t[77]===b?W=t[78]:(W=b?(0,$.jsx)(`pre`,{className:`max-h-48 min-w-0 overflow-y-auto overflow-x-hidden rounded-md bg-surface-hover/60 p-2 whitespace-pre-wrap break-words font-mono text-xs leading-relaxed text-fg-muted [overflow-wrap:anywhere] dark:bg-surface-hover/35`,children:b}):null,t[77]=b,t[78]=W);let G;t[79]!==a||t[80]!==w||t[81]!==x||t[82]!==M||t[83]!==F||t[84]!==i||t[85]!==r?(G=F?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-fg-subtle underline-offset-2 hover:text-fg-muted group-open:text-fg-muted`,children:w?a.rawDetails:i.stepDetails}),(0,$.jsxs)(`div`,{className:`mt-2 max-h-48 w-full min-w-0 max-w-full overflow-y-auto overflow-x-hidden rounded-md bg-surface-hover/60 p-2 font-mono dark:bg-surface-hover/35`,children:[M?(0,$.jsxs)(`div`,{className:`mb-2 min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-0.5 text-[10px] uppercase tracking-wide text-fg-disabled`,children:r.input}),(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words text-fg-muted [overflow-wrap:anywhere]`,children:M})]}):null,(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-0.5 text-[10px] uppercase tracking-wide text-fg-disabled`,children:r.output}),(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words text-fg-muted [overflow-wrap:anywhere]`,children:x||r.noOutput})]})]})]}):null,t[79]=a,t[80]=w,t[81]=x,t[82]=M,t[83]=F,t[84]=i,t[85]=r,t[86]=G):G=t[86];let K;t[87]!==n.name||t[88]!==n.result||t[89]!==_||t[90]!==g?(K=!g&&!_?(0,$.jsx)(LQ,{toolName:n.name,toolResult:n.result}):null,t[87]=n.name,t[88]=n.result,t[89]=_,t[90]=g,t[91]=K):K=t[91];let ee;t[92]!==f||t[93]!==g?(ee=!g&&f?(0,$.jsx)(rX,{payload:f}):null,t[92]=f,t[93]=g,t[94]=ee):ee=t[94];let q;t[95]!==P||t[96]!==z||t[97]!==B||t[98]!==V||t[99]!==H||t[100]!==U||t[101]!==W||t[102]!==G||t[103]!==K||t[104]!==ee?(q=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1.5`,children:[z,P,B,V,H,U,W,G,K,ee]}),t[95]=P,t[96]=z,t[97]=B,t[98]=V,t[99]=H,t[100]=U,t[101]=W,t[102]=G,t[103]=K,t[104]=ee,t[105]=q):q=t[105];let te;return t[106]!==I||t[107]!==q?(te=(0,$.jsxs)(`div`,{className:`flex min-w-0 gap-2.5`,children:[I,q]}),t[106]=I,t[107]=q,t[108]=te):te=t[108],te}function BQ(e){return e.showRawToolData}function VQ(e){return e+1}var HQ=String.raw`a-zA-Z0-9_./\-\p{L}\p{N}`,UQ=`[${HQ}]+`,WQ=String.raw`(?:[^"\\]|\\.)*`,GQ=String.raw`((?:[^"\\]|\\.)*)`,KQ=RegExp(`^[${HQ}]+$`,`u`);function qQ(e){return e.replace(/\\(.)/g,(e,t)=>t)}var JQ=RegExp(`@file:(?:"${GQ}"|(${UQ}))`,`gu`),YQ=RegExp(`(@file:(?:"${WQ}"|${UQ}))$`,`u`),XQ=RegExp(`(@file:(?:"${WQ}"|${UQ}))([ \\t\\f\\v]*)$`,`u`),ZQ=`(?:"${WQ}"|${UQ})`;function QQ(e){let t=e.lastIndexOf(`@file:`);return t===-1?!1:RegExp(`^@file:${ZQ}$`,`u`).test(e.slice(t))}function $Q(e){let t=e[2];if(t!=null&&t!==``)return t;let n=e[1];return n==null?``:qQ(n)}function e$(e){return KQ.test(e)?e:`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`}function t$(){return new RegExp(JQ.source,`gu`)}var n$=RegExp(`^@file:(?:"${GQ}"|(${UQ}))`,`u`),r$=`[a-zA-Z0-9](?:[a-zA-Z0-9._-]{0,62})`,i$=RegExp(`\\/skill:(${r$})`,`g`);function a$(){return new RegExp(i$.source,`g`)}var o$=RegExp(`(\\/skill:${r$})$`),s$=RegExp(`(\\/skill:${r$})([ \\t\\f\\v]*)$`),c$=RegExp(`^${r$}$`);function l$(e){return c$.test(e.trim())}var u$=RegExp(`^\\/skill:(${r$})`),d$=[],f$=new Map;function p$(e){let t=new Set;for(let n of e??[]){n?.name&&t.add(n.name);for(let e of n.aliases??[])typeof e==`string`&&e.length>0&&t.add(e)}d$=Array.from(t).toSorted((e,t)=>t.length-e.length).map(e=>({key:e})),f$.clear()}function m$(e,t){if(t>=e.length)return!0;let n=e[t];return!/[a-zA-Z0-9_-]/.test(n)}function h$(e,t){return!(e[t]!==`/`||t>0&&!/\s/.test(e[t-1]))}function g$(e,t){if(!h$(e,t)||d$.length===0)return null;let n=e.slice(t);if(n.startsWith(`/skill:`))return null;for(let{key:e}of d$){let t=`/${e}`;if(n.startsWith(t)&&m$(n,t.length))return{len:t.length,matchedKey:e}}return null}function _$(e){let t=[],n=0;for(;n<e.length;){if(e[n]!==`/`){n+=1;continue}let r=e.slice(n).match(u$);if(r?.[0]){n+=r[0].length;continue}let i=g$(e,n);i?(t.push({start:n,end:n+i.len}),n+=i.len):n+=1}return t}function v$(e){for(let t=e.length-1;t>=0;--t){if(e[t]!==`/`||e.startsWith(`/skill:`,t))continue;let n=g$(e,t);if(n&&t+n.len===e.length)return!0}return!1}function y$(e){if(!e.startsWith(`/`)||d$.length===0||e.startsWith(`/skill:`))return!1;let t=g$(e,0);return t?e.length===t.len||!/[a-zA-Z0-9_-]/.test(e[t.len]):!1}function b$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function x$(e){let t=f$.get(e);return t||(t=RegExp(`(${b$(e)})([ \\t\\f\\v]*)$`),f$.set(e,t)),t}function S$(e){for(let{key:t}of d$){let n=`/${t}`;if(!e.endsWith(n))continue;let r=e.length-n.length;if(g$(e,r))return{tokenStart:r}}return null}function C$(e){for(let{key:t}of d$){let n=`/${t}`,r=e.match(x$(n));if(!r)continue;let i=e.length-r[0].length;if(g$(e,i))return{tokenStart:i}}return null}function w$(e){let t=[],n=(n,r)=>{let i=new RegExp(n.source,n.flags),a;for(;(a=i.exec(e))!==null;)t.push({start:a.index,end:a.index+a[0].length,seg:r(a)})};n(a$(),e=>({kind:`skill`,name:e[1]??``})),n(t$(),e=>({kind:`file`,path:$Q(e)}));for(let n of _$(e))t.push({start:n.start,end:n.end,seg:{kind:`command`,name:e.slice(n.start+1,n.end)}});t.sort((e,t)=>e.start===t.start?t.end-e.end:e.start-t.start);let r=[],i=0;for(let n of t)n.start<i||(n.start>i&&r.push({kind:`text`,text:e.slice(i,n.start)}),r.push(n.seg),i=n.end);return i<e.length&&r.push({kind:`text`,text:e.slice(i)}),r.length===0&&r.push({kind:`text`,text:e}),r}function T$(e){let t=e.replace(/\/$/,``);return`@${t.split(`/`).pop()??t}`}function E$(e){return e.kind===`text`?`t:${e.text}`:e.kind===`skill`?`s:${e.name}`:e.kind===`file`?`f:${e.path}`:`c:${e.name}`}var D$=(0,Z.memo)(function(e){let t=(0,Q.c)(10),{text:n}=e,r;t[0]===n?r=t[1]:(r=w$(n),t[0]=n,t[1]=r);let i=r,a;if(t[2]!==i){let e=new Map;a=i.map(t=>{let n=E$(t),r=e.get(n)??0;return e.set(n,r+1),{part:t,key:`${n}#${String(r)}`}}),t[2]=i,t[3]=a}else a=t[3];let o=a;if(!i.some(O$)){let e;return t[4]===n?e=t[5]:(e=(0,$.jsx)(`div`,{className:`markdown-content min-w-0`,children:(0,$.jsx)(QW,{content:n,compact:!0,breaks:!0})}),t[4]=n,t[5]=e),e}let s;t[6]===o?s=t[7]:(s=o.map(k$),t[6]=o,t[7]=s);let c;return t[8]===s?c=t[9]:(c=(0,$.jsx)(`span`,{className:`inline-flex max-w-full flex-wrap items-baseline gap-x-1.5 gap-y-1 [text-align:inherit]`,children:s}),t[8]=s,t[9]=c),c});function O$(e){return e.kind!==`text`}function k$(e){let{part:t,key:n}=e;return t.kind===`skill`?(0,$.jsxs)(`span`,{className:`chat-skill-pill max-w-full shrink-0`,"data-skill":t.name,children:[`/`,t.name]},n):t.kind===`command`?(0,$.jsxs)(`span`,{className:`chat-command-pill max-w-full shrink-0`,"data-slash-command":t.name,children:[`/`,t.name]},n):t.kind===`file`?(0,$.jsx)(`span`,{className:`chat-file-pill max-w-full shrink-0`,"data-file":t.path,children:T$(t.path)},n):t.text?(0,$.jsx)(`div`,{className:`markdown-content inline-block min-w-0 max-w-full align-baseline text-fg`,children:(0,$.jsx)(QW,{content:t.text,compact:!0,breaks:!0})},n):null}function A$(e,t){switch(e.code){case`provider_setup_required`:return{title:t.providerSetupRequiredTitle,body:t.providerSetupRequiredBody.replace(`{{provider}}`,e.provider??t.agentRunErrorUnknownProvider),cta:t.providerSetupRequiredCta,deepLink:`/settings/capabilities/models`};case`provider_auth_invalid`:return{title:t.agentRunErrorAuthInvalidTitle,body:t.agentRunErrorAuthInvalidBody.replace(`{{provider}}`,e.provider??t.agentRunErrorUnknownProvider),cta:t.agentRunErrorCtaProviders,deepLink:`/settings/capabilities/models`};case`rate_limit`:return{title:t.agentRunErrorRateLimitTitle,body:t.agentRunErrorRateLimitBody};case`timeout`:return{title:t.agentRunErrorTimeoutTitle,body:t.agentRunErrorTimeoutBody};case`billing`:return{title:t.agentRunErrorBillingTitle,body:t.agentRunErrorBillingBody};case`model_quota_exhausted`:return{title:t.xopcQuotaExhaustedTitle,body:t.xopcQuotaExhaustedBody};case`platform_token_limit_exceeded`:return{title:t.xopcPlatformLimitTitle,body:t.xopcPlatformLimitBody,cta:t.xopcPlatformLimitCta,deepLink:`/settings/capabilities/models?add=1`};case`send_failed`:return{title:t.agentRunErrorSendFailedTitle,body:t.agentRunErrorSendFailedBody};case`session_not_found`:return{title:t.sessionNotFoundTitle,body:t.sessionNotFoundBody,cta:t.sessionNotFoundCta,deepLink:`/chat/new`};default:return{title:t.agentRunErrorUnknownTitle,body:t.agentRunErrorUnknownBody}}}function j$(e){let t=(0,Q.c)(4),{code:n}=e;switch(n){case`provider_setup_required`:case`provider_auth_invalid`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Fh,{className:`size-4`,strokeWidth:1.75}),t[0]=e):e=t[0],e}case`rate_limit`:case`timeout`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(tc,{className:`size-4`,strokeWidth:1.75}),t[1]=e):e=t[1],e}case`billing`:case`model_quota_exhausted`:case`platform_token_limit_exceeded`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(qC,{className:`size-4`,strokeWidth:1.75}),t[2]=e):e=t[2],e}default:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Ao,{className:`size-4`,strokeWidth:1.75}),t[3]=e):e=t[3],e}}}function M$(e){return e===`provider_setup_required`||e===`provider_auth_invalid`||e===`rate_limit`||e===`timeout`||e===`billing`||e===`model_quota_exhausted`||e===`platform_token_limit_exceeded`||e===`session_not_found`?`amber`:`red`}function N$(e){let t=(0,Q.c)(46),{payload:n}=e,r=m(),i=I(F$),a,o;t[0]!==i||t[1]!==n?(a=j(i).chat,o=A$(n,a),t[0]=i,t[1]=n,t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s=o,c=M$(n.code),l=c===`amber`?`border-amber-300/60 bg-amber-50 dark:border-amber-500/30 dark:bg-amber-950`:`border-red-300/60 bg-red-50 dark:border-red-500/30 dark:bg-red-950`,u=c===`amber`?`bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300`:`bg-red-100 text-red-700 dark:bg-red-500/20 dark:text-red-300`,d=c===`amber`?`text-amber-900 dark:text-amber-100`:`text-red-900 dark:text-red-100`,f=c===`amber`?`text-amber-900/85 dark:text-amber-100/80`:`text-red-900/85 dark:text-red-100/80`,p=c===`amber`?`text-amber-800/80 hover:text-amber-900 dark:text-amber-200/80 dark:hover:text-amber-100`:`text-red-800/80 hover:text-red-900 dark:text-red-200/80 dark:hover:text-red-100`,h=c===`amber`?`bg-amber-100/60 text-amber-900 dark:bg-amber-500/15 dark:text-amber-100`:`bg-red-100/60 text-red-900 dark:bg-red-500/15 dark:text-red-100`,g=c===`amber`?`bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-500 dark:text-amber-950 dark:hover:bg-amber-400`:`bg-red-600 text-white hover:bg-red-700 dark:bg-red-500 dark:text-red-950 dark:hover:bg-red-400`,_=n.code===`model_quota_exhausted`,v=P$,y;t[4]===l?y=t[5]:(y=C(`flex flex-col gap-2 rounded-xl border p-3`,l),t[4]=l,t[5]=y);let b;t[6]===u?b=t[7]:(b=C(`flex size-8 shrink-0 items-center justify-center rounded-lg`,u),t[6]=u,t[7]=b);let x;t[8]===n.code?x=t[9]:(x=(0,$.jsx)(j$,{code:n.code}),t[8]=n.code,t[9]=x);let S;t[10]!==b||t[11]!==x?(S=(0,$.jsx)(`span`,{className:b,"aria-hidden":!0,children:x}),t[10]=b,t[11]=x,t[12]=S):S=t[12];let w;t[13]===d?w=t[14]:(w=C(`text-sm font-semibold`,d),t[13]=d,t[14]=w);let T;t[15]!==s.title||t[16]!==w?(T=(0,$.jsx)(`h3`,{className:w,children:s.title}),t[15]=s.title,t[16]=w,t[17]=T):T=t[17];let E;t[18]===f?E=t[19]:(E=C(`mt-1 text-xs leading-relaxed`,f),t[18]=f,t[19]=E);let D;t[20]!==s.body||t[21]!==E?(D=(0,$.jsx)(`p`,{className:E,children:s.body}),t[20]=s.body,t[21]=E,t[22]=D):D=t[22];let O;t[23]!==T||t[24]!==D?(O=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[T,D]}),t[23]=T,t[24]=D,t[25]=O):O=t[25];let k;t[26]!==O||t[27]!==S?(k=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[S,O]}),t[26]=O,t[27]=S,t[28]=k):k=t[28];let A;t[29]!==s.cta||t[30]!==s.deepLink||t[31]!==g||t[32]!==a||t[33]!==r||t[34]!==_?(A=_?(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex h-8 items-center rounded-lg px-3 py-1.5 text-xs font-medium transition-colors`,g),onClick:()=>v(`/models/billing`),children:a.xopcQuotaPurchaseCta}),(0,$.jsx)(`button`,{type:`button`,className:`inline-flex h-8 items-center rounded-lg border border-current px-3 py-1.5 text-xs font-medium transition-colors hover:bg-amber-500/10`,onClick:()=>v(`/models/quota/request`),children:a.xopcQuotaRequestCta}),(0,$.jsx)(`button`,{type:`button`,className:`inline-flex h-8 items-center rounded-lg border border-current px-3 py-1.5 text-xs font-medium transition-colors hover:bg-amber-500/10`,onClick:()=>r(`/settings/capabilities/models?add=1`),children:a.xopcQuotaOwnProviderCta})]}):s.cta&&s.deepLink?(0,$.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex h-8 items-center rounded-lg px-3 py-1.5 text-xs font-medium transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-500/50`,g),onClick:()=>r(s.deepLink),children:s.cta})}):null,t[29]=s.cta,t[30]=s.deepLink,t[31]=g,t[32]=a,t[33]=r,t[34]=_,t[35]=A):A=t[35];let M;t[36]!==p||t[37]!==h||t[38]!==a||t[39]!==n.message?(M=n.message?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:C(`cursor-pointer select-none underline-offset-2`,p),children:a.agentRunErrorDetailToggle}),(0,$.jsx)(`pre`,{className:C(`mt-2 max-h-40 w-full min-w-0 overflow-y-auto overflow-x-hidden whitespace-pre-wrap break-words rounded-md p-2 font-mono text-[11px] [overflow-wrap:anywhere]`,h),children:n.message})]}):null,t[36]=p,t[37]=h,t[38]=a,t[39]=n.message,t[40]=M):M=t[40];let N;return t[41]!==k||t[42]!==A||t[43]!==M||t[44]!==y?(N=(0,$.jsxs)(`section`,{role:`alert`,"aria-live":`polite`,className:y,children:[k,A,M]}),t[41]=k,t[42]=A,t[43]=M,t[44]=y,t[45]=N):N=t[45],N}function P$(e){return window.open(`https://console.xopc.ai${e}`,`_blank`,`noopener,noreferrer`)}function F$(e){return e.language}function I$(e){let t=(0,Q.c)(8),{errorText:n}=e,r;t[0]===n?r=t[1]:(r=XN(n),t[0]=n,t[1]=r);let i=r;if(!i)return null;let a;t[2]===i?a=t[3]:(a=ZN(i),t[2]=i,t[3]=a);let o=a;if(o){let e;return t[4]===o?e=t[5]:(e=(0,$.jsx)(`div`,{className:`mb-4`,children:(0,$.jsx)(L$,{payload:o})}),t[4]=o,t[5]=e),e}let s;return t[6]===i?s=t[7]:(s=(0,$.jsx)(`div`,{className:`mb-4`,children:(0,$.jsx)(N$,{payload:i})}),t[6]=i,t[7]=s),s}function L$(e){let t=(0,Q.c)(32),{payload:n}=e,r=m(),i=I(R$),a,o,s,c;t[0]!==i||t[1]!==n.kind||t[2]!==n.provider?(o=j(i).chat,a=n.kind===`provider_auth_invalid`,c=a?o.agentRunErrorAuthInvalidTitle:o.providerSetupRequiredTitle,s=(a?o.agentRunErrorAuthInvalidBody:o.providerSetupRequiredBody).replace(`{{provider}}`,n.provider),t[0]=i,t[1]=n.kind,t[2]=n.provider,t[3]=a,t[4]=o,t[5]=s,t[6]=c):(a=t[3],o=t[4],s=t[5],c=t[6]);let l=s,u=a?o.agentRunErrorCtaProviders:o.providerSetupRequiredCta,d=a?o.agentRunErrorDetailToggle:o.providerSetupRequiredDetailToggle,f=a?`alert`:`status`,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=C(`flex flex-col gap-2 rounded-xl border border-amber-300/60 bg-amber-50 p-3`,`dark:border-amber-500/30 dark:bg-amber-950`),t[7]=p):p=t[7];let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=C(`flex size-8 shrink-0 items-center justify-center rounded-lg`,`bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300`),t[8]=h):h=t[8];let g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`span`,{className:h,"aria-hidden":!0,children:(0,$.jsx)(Fh,{className:`size-4`,strokeWidth:1.75})}),t[9]=g):g=t[9];let _;t[10]===c?_=t[11]:(_=(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-amber-900 dark:text-amber-100`,children:c}),t[10]=c,t[11]=_);let v;t[12]===l?v=t[13]:(v=(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-relaxed text-amber-900/85 dark:text-amber-100/80`,children:l}),t[12]=l,t[13]=v);let y;t[14]!==_||t[15]!==v?(y=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[g,(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,v]})]}),t[14]=_,t[15]=v,t[16]=y):y=t[16];let b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=C(`inline-flex h-8 items-center rounded-lg px-3 py-1.5 text-xs font-medium`,`bg-amber-600 text-white hover:bg-amber-700`,`dark:bg-amber-500 dark:text-amber-950 dark:hover:bg-amber-400`,`transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-500/50`),t[17]=b):b=t[17];let x;t[18]!==r||t[19]!==n.deepLink?(x=()=>r(n.deepLink),t[18]=r,t[19]=n.deepLink,t[20]=x):x=t[20];let S;t[21]!==u||t[22]!==x?(S=(0,$.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:(0,$.jsx)(`button`,{type:`button`,className:b,onClick:x,children:u})}),t[21]=u,t[22]=x,t[23]=S):S=t[23];let w;t[24]!==d||t[25]!==n.message?(w=n.message?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-amber-800/80 underline-offset-2 hover:text-amber-900 dark:text-amber-200/80 dark:hover:text-amber-100`,children:d}),(0,$.jsx)(`pre`,{className:`mt-2 max-h-40 w-full min-w-0 overflow-y-auto overflow-x-hidden whitespace-pre-wrap break-words rounded-md bg-amber-100/60 p-2 font-mono text-[11px] text-amber-900 dark:bg-amber-500/15 dark:text-amber-100 [overflow-wrap:anywhere]`,children:n.message})]}):null,t[24]=d,t[25]=n.message,t[26]=w):w=t[26];let T;return t[27]!==S||t[28]!==w||t[29]!==f||t[30]!==y?(T=(0,$.jsxs)(`section`,{role:f,"aria-live":`polite`,className:p,children:[y,S,w]}),t[27]=S,t[28]=w,t[29]=f,t[30]=y,t[31]=T):T=t[31],T}function R$(e){return e.language}var z$=/^No API key found for (\S+)/i;function B$(e){let t=e.trim();if(t.startsWith(`{`))try{let e=JSON.parse(t);return e.kind!==`provider_setup_required`||typeof e.provider!=`string`||!e.provider||typeof e.deepLink!=`string`||!e.deepLink.startsWith(`/settings/`)?null:{kind:`provider_setup_required`,provider:e.provider,deepLink:e.deepLink,message:typeof e.message==`string`?e.message:void 0}}catch{return null}let n=z$.exec(t);return n?{kind:`provider_setup_required`,provider:n[1].replace(/[.,]$/,``),deepLink:`/settings/capabilities/models`,message:t}:null}function V$(e){let t=e.replace(/\r$/,``),n=``,r=t,i=r.match(/^\s{0,3}/)?.[0]??``;for(n+=i,r=r.slice(i.length);r.startsWith(`>`);){n+=`>`,r=r.slice(1),r.startsWith(` `)&&(n+=` `,r=r.slice(1));let e=r.match(/^\s{0,3}/)?.[0]??``;n+=e,r=r.slice(e.length)}return n}function H$(e){let t=e.replace(/\r$/,``);return t.slice(V$(t).length)}function U$(e){return H$(e).trim().replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim())}function W$(e){return(H$(e).match(/\|/g)??[]).length}function G$(e){let t=H$(e).trim();return t?t.startsWith(`|`)?U$(e).length>=2:W$(e)>=2:!1}function K$(e){let t=H$(e).trim();return t.includes(`-`)&&/^[\s|:-]+$/.test(t)}function q$(e){let t=H$(e).trim();return t.length>0&&/^[\s|:]+$/.test(t)}function J$(e){return U$(e).filter(e=>e.includes(`-`)).length}function Y$(e,t=``){return`${t}| ${Array.from({length:e},()=>`---`).join(` | `)} |`}function X$(e,t){let n=U$(e);for(;n.length<t;)n.push(``);return`${V$(e)}| ${n.slice(0,t).join(` | `)} |`}function Z$(e){return(e.match(/^\s*(```|~~~)/gm)??[]).length%2==1}function Q$(e){if(!e.includes(`|`)||Z$(e))return e;let t=e.split(`
|
|
121
|
-
`),n=t.length-1;for(;n>0&&t[n-1]?.trim();)n--;let r=t.slice(n).findIndex(e=>G$(e));if(r<0)return e;let i=n+r,a=t[i]??``,o=U$(a).length;if(o<2)return e;let s=V$(a),c=i+1,l=t[c];if(l===void 0)return`${e}${e.endsWith(`
|
|
122
|
-
`)?``:`
|
|
123
|
-
`}${Y$(o,s)}`;if(!H$(l).trim()){let e=[...t];return e[c]=Y$(o,s),e.join(`
|
|
124
|
-
`)}if(K$(l)&&J$(l)<o||q$(l)){let e=[...t];return e[c]=Y$(o,s),e.join(`
|
|
125
|
-
`)}if(!K$(l))return e;let u=t.length-1,d=t[u]??``;if(u>c&&G$(d)&&!K$(d)&&!d.trim().endsWith(`|`)){let e=[...t];return e[u]=X$(d,o),e.join(`
|
|
126
|
-
`)}return e}function $$(e){let t=[];for(let n of e){let e=t[t.length-1];if(n.type===`text`&&e?.type===`text`&&n.segmentId===e.segmentId&&n.presentation===e.presentation){e.text=`${e.text??``}${n.text??``}`;continue}t.push({...n})}return t}var e1=/^\s*\|?\s*:?-{3,}:?\s*(?:\|\s*:?-{3,}:?\s*)+\|?\s*$/m,t1=/^\s{0,3}(?:[-+*]|\d+[.)])\s+/m,n1=/^\s{0,3}```/gm;function r1(e){return(e.match(n1)?.length??0)%2==1?`code`:e1.test(e)?`table`:t1.test(e)?`list`:e.length>=4096?`long_text`:`plain`}var i1={plain:32,long_text:48,list:40,table:72,code:64},a1=48,o1=16,s1=6,c1=512;function l1({tailKind:e,latestParseMs:t}){let n=i1[e];return!Number.isFinite(t)||t<=16?n:Math.min(120,Math.max(n,Math.ceil(t*2)))}function u1({intervalMs:e,elapsedMs:t,firstCommit:n}){return n?Math.max(a1,e):Math.max(0,e-t)}function d1({visibleLength:e,pendingContent:t}){if(e>=t.length)return t.length;let n=Math.min(c1,Math.max(s1,Math.ceil(t.length/o1))),r=Math.min(t.length,e+n),i=t.charCodeAt(r-1),a=t.charCodeAt(r);return i>=55296&&i<=56319&&a>=56320&&a<=57343&&(r+=1),r}function f1(e,t,n,r,i){let a=(0,Q.c)(13),o=r===void 0?!1:r,s;a[0]!==o||a[1]!==e||a[2]!==t?(s=()=>t||o?``:e,a[0]=o,a[1]=e,a[2]=t,a[3]=s):s=a[3];let[c,l]=(0,Z.useState)(s),u=(0,Z.useRef)(e),d=(0,Z.useRef)(c),f=(0,Z.useRef)(null),p=(0,Z.useRef)(null),m=(0,Z.useRef)(t||o),h=(0,Z.useRef)(!1),g,_;a[4]!==e||a[5]!==n||a[6]!==i||a[7]!==t||a[8]!==c?(g=()=>{if(u.current=e,t&&(m.current=!0,h.current=!1,gW(n,e.length)),!m.current){d.current=e,l(e);return}if(c===e){t||(m.current=!1,p.current=null,h.current||(h.current=!0,i?.()));return}if(!e.startsWith(c)){d.current=e,l(e);return}if(f.current!==null)return;let r=l1({tailKind:r1(e.slice(-8192)),latestParseMs:bW(n)}),a=performance.now(),o=p.current,s=u1({intervalMs:r,elapsedMs:o===null?0:a-o,firstCommit:o===null});f.current=window.setTimeout(()=>{f.current=null;let e=u.current,t=d1({visibleLength:d.current.length,pendingContent:e}),r=e.slice(0,t);d.current=r,p.current=performance.now(),_W(n,r.length),l(r)},s)},_=[e,n,i,t,c],a[4]=e,a[5]=n,a[6]=i,a[7]=t,a[8]=c,a[9]=g,a[10]=_):(g=a[9],_=a[10]),(0,Z.useEffect)(g,_);let v,y;return a[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>()=>{f.current!==null&&(window.clearTimeout(f.current),f.current=null)},y=[],a[11]=v,a[12]=y):(v=a[11],y=a[12]),(0,Z.useEffect)(v,y),c}function p1(e){if(!e.filePath)return``;if(!e.lineStart)return e.filePath;let t=e.lineEnd&&e.lineEnd!==e.lineStart?`-${e.lineEnd}`:``;return`${e.filePath}:${e.lineStart}${t}`}function m1(e){let t=(0,Q.c)(37),{review:n}=e,r=n.status===`preparing`||n.status===`reviewing`,i=n.status===`preparing`,a=n.source===`local`&&n.overallCorrectness===`unknown`,o=n.overallCorrectness===`patch is incorrect`?`border-red-500/30 bg-red-500/5 text-red-700 dark:text-red-300`:n.overallCorrectness===`patch is correct`?`border-emerald-500/30 bg-emerald-500/5 text-emerald-700 dark:text-emerald-300`:`border-edge bg-surface-muted text-fg-secondary`,s;t[0]===r?s=t[1]:(s=r?(0,$.jsx)(Zg,{className:`size-4 animate-spin text-accent`,"aria-hidden":!0}):null,t[0]=r,t[1]=s);let c=r?`Reviewing changes`:`Code review finished`,l;t[2]===c?l=t[3]:(l=(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg-primary`,children:c}),t[2]=c,t[3]=l);let u;t[4]!==o||t[5]!==i||t[6]!==r||t[7]!==n.overallCorrectness?(u=r?(0,$.jsx)(`div`,{className:`rounded-md border border-edge bg-surface-muted px-1.5 py-0.5 text-[11px] font-medium text-fg-secondary`,children:i?`Collecting changes`:`Review assistant`}):(0,$.jsx)(`div`,{className:C(`rounded-md border px-1.5 py-0.5 text-[11px] font-medium`,o),children:n.overallCorrectness}),t[4]=o,t[5]=i,t[6]=r,t[7]=n.overallCorrectness,t[8]=u):u=t[8];let d;t[9]!==s||t[10]!==l||t[11]!==u?(d=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[s,l,u]}),t[9]=s,t[10]=l,t[11]=u,t[12]=d):d=t[12];let f;t[13]===n.target?f=t[14]:(f=(0,$.jsxs)(`div`,{className:`mt-1 text-xs text-fg-tertiary`,children:[`Based on `,n.target]}),t[13]=n.target,t[14]=f);let p;t[15]!==i||t[16]!==r||t[17]!==n.analysisMarkdown?(p=r&&!n.analysisMarkdown?(0,$.jsx)(`div`,{className:`mt-3 text-sm text-fg-secondary`,children:i?`Preparing an isolated review context…`:`The review assistant is checking the changes…`}):null,t[15]=i,t[16]=r,t[17]=n.analysisMarkdown,t[18]=p):p=t[18];let m;t[19]===n.analysisMarkdown?m=t[20]:(m=n.analysisMarkdown?(0,$.jsxs)(`div`,{className:`mt-3 rounded-md border border-edge-subtle bg-surface px-2.5 py-2`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-xs font-medium text-fg-secondary`,children:`Review assistant`}),(0,$.jsx)(QW,{content:n.analysisMarkdown,compact:!0,openHttpLinksInNewTab:!0})]}):null,t[19]=n.analysisMarkdown,t[20]=m);let h;t[21]!==n.errorMessage||t[22]!==n.status?(h=n.status===`error`&&n.errorMessage?(0,$.jsxs)(`div`,{className:`mt-3 rounded-md border border-warning/30 bg-warning/5 px-2.5 py-2 text-sm text-warning`,children:[`The review assistant could not complete: `,n.errorMessage]}):null,t[21]=n.errorMessage,t[22]=n.status,t[23]=h):h=t[23];let g;t[24]!==r||t[25]!==a||t[26]!==n.findings||t[27]!==n.overallExplanation||t[28]!==n.summary?(g=r?null:(0,$.jsxs)($.Fragment,{children:[n.summary?(0,$.jsx)(`div`,{className:`mt-3 text-sm text-fg-secondary`,children:n.summary}):null,(0,$.jsx)(`div`,{className:`mt-3 space-y-2`,children:n.findings.length===0?(0,$.jsx)(`div`,{className:`text-sm text-fg-secondary`,children:a?`No model findings were produced.`:`No findings.`}):n.findings.map(h1)}),n.overallExplanation?(0,$.jsx)(`div`,{className:`mt-3 whitespace-pre-wrap text-sm text-fg-secondary`,children:n.overallExplanation}):null]}),t[24]=r,t[25]=a,t[26]=n.findings,t[27]=n.overallExplanation,t[28]=n.summary,t[29]=g):g=t[29];let _;return t[30]!==g||t[31]!==d||t[32]!==f||t[33]!==p||t[34]!==m||t[35]!==h?(_=(0,$.jsxs)(`div`,{className:`min-w-0 rounded-lg border border-edge bg-surface-subtle p-3`,children:[d,f,p,m,h,g]}),t[30]=g,t[31]=d,t[32]=f,t[33]=p,t[34]=m,t[35]=h,t[36]=_):_=t[36],_}function h1(e,t){let n=p1(e);return(0,$.jsxs)(`div`,{className:`rounded-md border border-edge bg-surface p-2`,children:[(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,$.jsxs)(`span`,{className:`rounded border border-edge bg-surface-muted px-1.5 py-0.5 text-[11px] font-semibold text-fg-secondary`,children:[`P`,e.priority]}),(0,$.jsx)(`span`,{className:`min-w-0 text-sm font-medium text-fg-primary`,children:e.title})]}),n?(0,$.jsx)(`div`,{className:`mt-1 break-all text-xs text-fg-tertiary`,children:n}):null,e.body?(0,$.jsx)(`div`,{className:`mt-1 text-sm text-fg-secondary`,children:e.body}):null]},`${e.title}-${t}`)}function g1({resolution:e,sessionKey:t,onClose:n}){let r=I(e=>e.language),i=j(r).chat.fileReference,[a,o]=(0,Z.useState)(!1),s=$E()&&!!window.electronAPI?.shell,c=e.target.path,l=e.status===`ready`?e.ref:null,u=l?.displayName??c.split(/[\\/]/).pop()??c,d=l?.absolutePath??c,f=(0,Z.useCallback)(()=>{k(d).then(e=>{e&&(o(!0),window.setTimeout(()=>o(!1),2e3))})},[d]),p=(0,Z.useCallback)(async e=>{if(!l?.fileRefId||!s)return;let n=await Vz(l.fileRefId,e,{sessionKey:t?.trim()||void 0});n&&(e===`openExternal`?await window.electronAPI?.shell?.openPath(n.absolutePath):await window.electronAPI?.shell?.showItemInFolder(n.absolutePath))},[s,l?.fileRefId,t]);return(0,$.jsxs)(`div`,{className:C(`mt-2 flex max-w-xl min-w-0 flex-col gap-1.5 rounded-lg border px-2.5 py-2 text-xs`,e.status===`ready`&&e.ref.exists&&e.ref.scope!==`missing`?`border-edge-subtle bg-surface-panel`:`border-warning/30 bg-warning/5`),children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[e.status===`loading`?(0,$.jsx)(Zg,{className:`size-3.5 shrink-0 animate-spin text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):e.status===`error`||l?.scope===`missing`||l?.scope===`invalid`?(0,$.jsx)(Ao,{className:`size-3.5 shrink-0 text-warning`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Kd,{className:`size-3.5 shrink-0 text-accent`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:u}),(0,$.jsx)(`button`,{type:`button`,onClick:n,className:C(`ml-auto inline-flex size-5 shrink-0 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,aT.focusRingPanel),"aria-label":i.closeActions,children:(0,$.jsx)(Aw,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0})})]}),(0,$.jsx)(`p`,{className:`line-clamp-2 break-all text-[11px] leading-snug text-fg-muted`,children:e.status===`loading`?i.resolvingDescription:e.status===`error`?e.message:l?.scope===`missing`?i.missingDescription:l?.scope===`invalid`?i.invalidDescription:s?i.externalDescription:i.browserExternalDescription}),(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1 pt-0.5`,children:[s&&l?.capabilities.includes(`openExternal`)?(0,$.jsxs)(`button`,{type:`button`,className:_1,onClick:()=>void p(`openExternal`),children:[(0,$.jsx)(Iu,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i.openExternal})]}):null,s&&l?.capabilities.includes(`revealInFolder`)?(0,$.jsxs)(`button`,{type:`button`,className:_1,onClick:()=>void p(`revealInFolder`),children:[(0,$.jsx)(zf,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i.revealInFolder})]}):null,(0,$.jsxs)(`button`,{type:`button`,className:_1,onClick:f,children:[(0,$.jsx)(tl,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:a?j(r).chat.messageCopied:i.copyPath})]})]})]})}var _1=C(`inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,aT.focusRingPanel,aT.press);function v1(e){let t=(0,Q.c)(35),{content:n,compact:r,sessionKey:i,projectId:a,streaming:o,animateInitialContent:s,onProgressiveRenderComplete:c}=e,l=o===void 0?!1:o,u=s===void 0?!1:s,d=`assistant-markdown-${(0,Z.useId)()}`,f=f1(n,l,d,u,c),[p,m]=(0,Z.useState)(l||u),h,g;t[0]===l?(h=t[1],g=t[2]):(h=()=>{l&&m(!0)},g=[l],t[0]=l,t[1]=h,t[2]=g),(0,Z.useEffect)(h,g);let _=l||f!==n,v=l||p,y=f,b;t[3]===y?b=t[4]:(b=lW(y),t[3]=y,t[4]=b);let x=b,S,w;t[5]!==d||t[6]!==_?(S=()=>{if(_)return mW(d),()=>hW(d)},w=[d,_],t[5]=d,t[6]=_,t[7]=S,t[8]=w):(S=t[7],w=t[8]),(0,Z.useEffect)(S,w);let T,E;t[9]!==d||t[10]!==v||t[11]!==x?(T=()=>{if(!v)return;let e=x.at(-1);yW(d,Math.max(0,x.length-1),e?.content.length??0)},E=[d,v,x],t[9]=d,t[10]=v,t[11]=x,t[12]=T,t[13]=E):(T=t[12],E=t[13]),(0,Z.useEffect)(T,E);let D=pq(b1),O=I(y1),k;t[14]===O?k=t[15]:(k=j(O),t[14]=O,t[15]=k);let A=k.chat.fileReference,[M,N]=(0,Z.useState)(null),P;t[16]!==A.resolveFailedDescription||t[17]!==a||t[18]!==i||t[19]!==D?(P=e=>{if(e.kind===`workspace-relative`){D(e.path,e.line,a),N(null);return}N({status:`loading`,target:e}),Bz(e.path,{projectId:a?.trim()||void 0,sessionKey:i?.trim()||void 0}).then(t=>{if(!t){N({status:`error`,target:e,message:A.resolveFailedDescription});return}if(t.scope===`workspace`&&t.workspaceRelativePath){D(t.workspaceRelativePath,e.line,a),N(null);return}N({status:`ready`,target:e,ref:t})}).catch(t=>{N({status:`error`,target:e,message:t instanceof Error?t.message:String(t)})})},t[16]=A.resolveFailedDescription,t[17]=a,t[18]=i,t[19]=D,t[20]=P):P=t[20];let F=P,L;t[21]!==r||t[22]!==n||t[23]!==d||t[24]!==F||t[25]!==v||t[26]!==_||t[27]!==x?(L=v?(0,$.jsx)(`div`,{className:`markdown-stream-blocks`,children:x.map(e=>(0,$.jsx)(QW,{content:_&&e.isTail?Q$(e.content):e.content,compact:r,className:C(`markdown-stream-block`,e.isTail&&`markdown-stream-tail`),onWorkspaceFileOpen:F,openHttpLinksInNewTab:!0,renderMermaid:!_,streamingMetricsKey:d},e.key))}):(0,$.jsx)(QW,{content:n,compact:r,onWorkspaceFileOpen:F,openHttpLinksInNewTab:!0}),t[21]=r,t[22]=n,t[23]=d,t[24]=F,t[25]=v,t[26]=_,t[27]=x,t[28]=L):L=t[28];let R;t[29]!==M||t[30]!==i?(R=M?(0,$.jsx)(g1,{resolution:M,sessionKey:i,onClose:()=>N(null)}):null,t[29]=M,t[30]=i,t[31]=R):R=t[31];let z;return t[32]!==L||t[33]!==R?(z=(0,$.jsxs)($.Fragment,{children:[L,R]}),t[32]=L,t[33]=R,t[34]=z):z=t[34],z}function y1(e){return e.language}function b1(e){return e.setPath}function x1(e,t,n,r,i,a,o,s,c,l,u){if(e.type===`text`){if(n)return(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(D$,{text:iF(OP(e.text??``))})},t);let i=GJ(e),a=B$(i??``);return a?(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(L$,{payload:a})},t):(0,$.jsx)(`div`,{className:`markdown-content min-w-0`,children:(0,$.jsx)(v1,{content:i,compact:!0,sessionKey:s,projectId:c,streaming:r,animateInitialContent:l,onProgressiveRenderComplete:u})},t)}if(e.type===`image`&&e.source?.data){let n=o??0;return a?(0,$.jsx)(`button`,{type:`button`,className:C(`inline-block max-w-full rounded-lg p-0 text-left`,aT.press,aT.focusRingPanel,`cursor-pointer`),onClick:()=>a(e,n),title:i,"aria-label":i,children:(0,$.jsx)(`img`,{src:e.source.data,className:`max-h-48 max-w-64 rounded-lg align-top object-contain`,alt:``})},t):(0,$.jsx)(`img`,{src:e.source.data,className:`max-h-48 max-w-64 rounded-lg object-contain`,alt:``},t)}return e.type===`review`?(0,$.jsx)(m1,{review:e},t):null}function S1(e){let t=(0,Q.c)(19),{content:n,isUser:r,isAssistantMessageStreaming:i,toolLabels:a,stepLabels:o,clusterLabels:s,cardLabels:c,imagePreviewLabel:l,onImagePreview:u,sessionKey:d,projectId:f,workflowOptions:p,assistantActivity:m,progressiveRender:h,onProgressiveRenderComplete:g}=e,_=h===void 0?!1:h,v;t[0]!==n||t[1]!==r?(v=r?n:$$(n),t[0]=n,t[1]=r,t[2]=v):v=t[2];let y=v,b;if(t[3]!==m||t[4]!==c||t[5]!==s||t[6]!==l||t[7]!==i||t[8]!==r||t[9]!==u||t[10]!==g||t[11]!==_||t[12]!==f||t[13]!==y||t[14]!==d||t[15]!==o||t[16]!==a||t[17]!==p){let e=[],n=r?[]:m?.blocks??[],h=!1,v=!1,x=0,S=0;for(;x<y.length;){let t=y[x];if(t.type===`thinking`||t.type===`tool_use`)!r&&m&&!h&&n.length>0&&(e.push((0,$.jsx)(PQ,{activity:m,toolLabels:a,stepLabels:o,clusterLabels:s,cardLabels:c,sessionKey:d,workflowOptions:p},`turn-activity`)),h=!0),x++;else{if(!r&&t.type===`text`&&UJ(t)){if(v){x++;continue}v=!0}let n=t.type===`image`?S++:0,a=x1(t,`block-${x}`,r,i,l,u,t.type===`image`?n:x,d,f,_,g);a&&e.push(a),x++}}b=(0,$.jsx)($.Fragment,{children:e}),t[3]=m,t[4]=c,t[5]=s,t[6]=l,t[7]=i,t[8]=r,t[9]=u,t[10]=g,t[11]=_,t[12]=f,t[13]=y,t[14]=d,t[15]=o,t[16]=a,t[17]=p,t[18]=b}else b=t[18];return b}function C1(e){return e?new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}):``}function w1(e){return e===`zh`?O1():D1()}function T1(){return{close:`Close`,statusQueued:`Queued`,statusRunning:`Running`,statusDone:`Completed`,statusError:`Failed`,statusSkipped:`Skipped`,workedFor:e=>`Worked for ${e}`,statusHeading:`Status`,phaseHeading:`Phase`,elapsedHeading:`Elapsed`,currentStepHeading:`Current step`,executionHeading:`Execution process`,outputHeading:`Output`,stepsHeading:`Steps`,transcriptHeading:`Transcript`,promptHeading:`Prompt`,logsHeading:`Workflow logs`,runningPlaceholder:`Waiting for check updates…`}}function E1(){return{close:`关闭`,statusQueued:`排队中`,statusRunning:`运行中`,statusDone:`已完成`,statusError:`失败`,statusSkipped:`已跳过`,workedFor:e=>`已运行 ${e}`,statusHeading:`状态`,phaseHeading:`阶段`,elapsedHeading:`耗时`,currentStepHeading:`当前步骤`,executionHeading:`执行过程`,outputHeading:`产出`,stepsHeading:`步骤`,transcriptHeading:`Transcript`,promptHeading:`输入`,logsHeading:`工作流日志`,runningPlaceholder:`等待检查项更新…`}}function D1(){return{header:{collapse:`Collapse`,expand:`Expand`,runningMeta:(e,t)=>t?`${e} · ${t}`:`${e}`,completedMeta:(e,t)=>t?`✓ ${e} · ${t}`:`✓ ${e}`,failedMeta:`failed`},phase:{countTpl:(e,t)=>`${e}/${t}`,runningTag:e=>`· ${e} running`,errorsTag:e=>`· ${e} errors`,skippedTag:e=>`· ${e} skipped`,showPrompt:`Show prompt`,hidePrompt:`Hide prompt`,promptHeading:`Prompt`,resultPreviewHeading:`Result`,errorHeading:`Error`,emptyPreview:`(no preview)`,agentNumber:e=>`Check ${e}`,queued:`Queued`,running:`Running…`,openDetail:`View check details`},checkDetail:T1(),result:{topFindingsHeading:e=>`Top findings (${e})`,topRisksHeading:e=>`Top risks (${e})`,openQuestionsHeading:`Open questions`,moreSuffix:e=>`${e} more…`,emptyResult:`(no result)`},error:{titleValidation:`Workflow setup needs attention`,titleAbort:`Workflow aborted`,titleTimeout:`Workflow timed out`,titleRuntime:`Workflow failed`,expand:`Expand details`,collapse:`Collapse details`,expandHint:`Click to see error details`,detailsHeading:`Failure reason`,impactHeading:`Impact`,recoveryHeading:`Recommended actions`,recoveryActions:{validation_error:[`Open the workflow and review the highlighted steps.`,`Reconnect any step that cannot reach the final result.`],aborted:[`The run was stopped. Start it again if you still need the result.`],timeout:[`Retry the workflow.`,`If it times out again, reduce concurrency or check model/API availability.`],runtime_error:[`Review the failed check first.`,`Use completed check results if they are still relevant.`,`Copy the error details if you want to continue diagnosis.`]},logsHeading:`Technical logs`,failedAgentsHeading:`Check status`,executedAgentsHeading:`Check status`,progressHeading:`Execution process`,noExtraDetails:`No additional details recorded.`,copyReason:`Copy`,copyReasonDone:`Copied`,impactTpl:(e,t,n)=>`${e}/${t} checks completed · ${n} need attention`,phase:{countTpl:(e,t)=>`${e}/${t}`,runningTag:e=>`· ${e} running`,errorsTag:e=>`· ${e} errors`,skippedTag:e=>`· ${e} skipped`,showPrompt:`Show prompt`,hidePrompt:`Hide prompt`,promptHeading:`Prompt`,resultPreviewHeading:`Result`,errorHeading:`Error`,emptyPreview:`(no preview)`,agentNumber:e=>`Check ${e}`,queued:`Queued`,running:`Running…`,openDetail:`View check details`}},saveAria:`Copy and edit workflow…`,saveTitle:`Open a copied workflow draft in the Workflows center`,copyAria:`Copy result`,copyDoneAria:`Copied`,openInWorkflowsAria:`Open task details`,openInWorkflowsTitle:`Open this task in the task center`,viewSubagentsHeading:`View checks`,runningProgressHeading:`Current progress`,runningAgentsHeading:`Running checks`,completedAgentsHeading:`Completed checks`,queuedAgentsHeading:`Queued checks`,failedAgentsHeading:`Needs attention`,currentProgressTpl:(e,t,n,r)=>`${e?`Step: ${e}`:`Task is running`} · ${t} running · ${n}/${r} completed`,recentLogsHeading:`Recent updates`,showAllLogs:`Show all`,live:{details:`Details`,openRun:`Open run`,stop:`Stop`,close:`Close workflow details`,title:`Task`,overview:`Overview`,agents:`Checks`,logs:`Logs`,result:`Result`,currentState:`Current state`,runId:`Run ID`,elapsed:`Elapsed`,progress:(e,t)=>`${e}/${t} checks`,activeFallback:`Task is running`,noResult:`No result recorded yet.`,status:{queued:`Queued`,running:`Running`,succeeded:`Completed`,failed:`Failed`,cancelled:`Cancelled`,timeout:`Timed out`}}}}function O1(){return{header:{collapse:`收起`,expand:`展开`,runningMeta:(e,t)=>t?`${e} · ${t}`:`${e}`,completedMeta:(e,t)=>t?`✓ ${e} · ${t}`:`✓ ${e}`,failedMeta:`失败`},phase:{countTpl:(e,t)=>`${e}/${t}`,runningTag:e=>`· ${e} 运行中`,errorsTag:e=>`· ${e} 失败`,skippedTag:e=>`· ${e} 已跳过`,showPrompt:`查看 prompt`,hidePrompt:`收起 prompt`,promptHeading:`Prompt`,resultPreviewHeading:`结果预览`,errorHeading:`错误`,emptyPreview:`(暂无预览)`,agentNumber:e=>`检查 ${e}`,queued:`排队中`,running:`运行中…`,openDetail:`查看检查项详情`},checkDetail:E1(),result:{topFindingsHeading:e=>`主要发现(${e})`,topRisksHeading:e=>`主要风险(${e})`,openQuestionsHeading:`待解决的问题`,moreSuffix:e=>`还有 ${e} 条…`,emptyResult:`(无结果)`},error:{titleValidation:`工作流配置需要处理`,titleAbort:`工作流已中止`,titleTimeout:`工作流超时`,titleRuntime:`工作流执行失败`,expand:`展开详情`,collapse:`收起详情`,expandHint:`点击查看错误详情`,detailsHeading:`失败原因`,impactHeading:`影响范围`,recoveryHeading:`建议处理`,recoveryActions:{validation_error:[`打开工作流并查看高亮的问题步骤。`,`重新连接无法到达最终结果的步骤。`],aborted:[`本次执行已停止。如仍需要结果,可以重新运行。`],timeout:[`重新运行工作流。`,`如果仍然超时,建议降低并发或检查模型/API 可用性。`],runtime_error:[`优先查看失败检查项。`,`已完成检查项的结果仍可按需参考。`,`需要继续诊断时,可以复制错误详情。`]},logsHeading:`技术日志`,failedAgentsHeading:`检查项状态`,executedAgentsHeading:`检查项状态`,progressHeading:`执行过程`,noExtraDetails:`没有更多诊断信息。`,copyReason:`复制`,copyReasonDone:`已复制`,impactTpl:(e,t,n)=>`已完成 ${e}/${t} 个检查项 · ${n} 个需要关注`,phase:{countTpl:(e,t)=>`${e}/${t}`,runningTag:e=>`· ${e} 运行中`,errorsTag:e=>`· ${e} 失败`,skippedTag:e=>`· ${e} 已跳过`,showPrompt:`查看 prompt`,hidePrompt:`收起 prompt`,promptHeading:`Prompt`,resultPreviewHeading:`结果预览`,errorHeading:`错误`,emptyPreview:`(暂无预览)`,agentNumber:e=>`检查 ${e}`,queued:`排队中`,running:`运行中…`,openDetail:`查看检查项详情`}},saveAria:`复制并编辑工作流…`,saveTitle:`在工作流中心打开复制草案`,copyAria:`复制结果`,copyDoneAria:`已复制`,openInWorkflowsAria:`打开任务详情`,openInWorkflowsTitle:`在任务中心查看此任务`,viewSubagentsHeading:`查看检查项`,runningProgressHeading:`当前进展`,runningAgentsHeading:`正在检查`,completedAgentsHeading:`已完成检查`,queuedAgentsHeading:`等待检查`,failedAgentsHeading:`需要关注`,currentProgressTpl:(e,t,n,r)=>`${e?`正在执行 ${e}`:`任务正在执行`} · ${t} 个运行中 · 已完成 ${n}/${r}`,recentLogsHeading:`最近更新`,showAllLogs:`显示全部`,live:{details:`详情`,openRun:`打开运行`,stop:`停止`,close:`关闭工作流详情`,title:`任务`,overview:`概览`,agents:`检查项`,logs:`日志`,result:`结果`,currentState:`当前状态`,runId:`运行 ID`,elapsed:`耗时`,progress:(e,t)=>`${e}/${t} 个检查项`,activeFallback:`任务正在执行`,noResult:`暂无结果。`,status:{queued:`排队中`,running:`运行中`,succeeded:`已完成`,failed:`失败`,cancelled:`已取消`,timeout:`超时`}}}}function k1(e){let t=(0,Q.c)(28),{open:n,title:r,description:i,confirmLabel:a,cancelLabel:o,destructive:s,onConfirm:c,onCancel:l}=e,u;t[0]===l?u=t[1]:(u=e=>{e||l()},t[0]=l,t[1]=u);let d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,$.jsx)(GD,{className:C(`xopc-dialog-overlay fixed inset-0 bg-scrim backdrop-blur-[1px]`,sE)}),t[2]=d):d=t[2];let f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=C(`fixed left-1/2 top-1/2 w-[min(100%-2rem,28rem)] -translate-x-1/2 -translate-y-1/2`,cE,`rounded-2xl border border-edge bg-surface-panel p-6 shadow-popover outline-none dark:border-edge`),t[3]=f):f=t[3];let p;t[4]===r?p=t[5]:(p=(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:r}),t[4]=r,t[5]=p);let m;t[6]===i?m=t[7]:(m=(0,$.jsx)(nO,{className:`mt-2 max-h-[min(50vh,16rem)] overflow-y-auto text-sm text-fg-muted whitespace-pre-wrap break-all`,children:i}),t[6]=i,t[7]=m);let h;t[8]!==o||t[9]!==l?(h=(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,onClick:l,children:o}),t[8]=o,t[9]=l,t[10]=h):h=t[10];let g=s&&`border-danger/40 bg-danger text-white hover:bg-danger/90 dark:border-danger/40`,_;t[11]===g?_=t[12]:(_=C(g),t[11]=g,t[12]=_);let v;t[13]!==a||t[14]!==c||t[15]!==_?(v=(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,className:_,onClick:c,children:a}),t[13]=a,t[14]=c,t[15]=_,t[16]=v):v=t[16];let y;t[17]!==h||t[18]!==v?(y=(0,$.jsxs)(`div`,{className:`mt-6 flex justify-end gap-2`,children:[h,v]}),t[17]=h,t[18]=v,t[19]=y):y=t[19];let b;t[20]!==y||t[21]!==p||t[22]!==m?(b=(0,$.jsxs)(UD,{children:[d,(0,$.jsxs)(YD,{className:f,children:[p,m,y]})]}),t[20]=y,t[21]=p,t[22]=m,t[23]=b):b=t[23];let x;return t[24]!==n||t[25]!==u||t[26]!==b?(x=(0,$.jsx)(LD,{open:n,onOpenChange:u,children:b}),t[24]=n,t[25]=u,t[26]=b,t[27]=x):x=t[27],x}var A1=`xopc-attachment`,j1=/^xopc-attachment:\/\/notes\/([^/]+)\/([^/?#]+)$/i,M1=/^\/api\/notes\/([^/]+)\/media\/([^/?#]+)$/i;function N1(e,t){return`${A1}://notes/${encodeURIComponent(e)}/${encodeURIComponent(t)}`}function P1(e,t){let n=e.trim();if(!n)return null;let r=n.split(`?`)[0],i=r.match(j1),a=r.match(M1),o=i??a;if(!o)return null;let s=decodeURIComponent(o[1]),c=decodeURIComponent(o[2]);return t&&s!==t?null:{noteId:s,attachmentId:c}}function F1(e,t){return`/api/notes/${encodeURIComponent(e)}/media/${encodeURIComponent(t)}`}var I1=new Map,L1=``;function R1(e,t,n){return`${n}:${e}:${t}`}function z1(){let e=F.getState().token??``;if(e!==L1){for(let e of I1.values())e.objectUrl&&URL.revokeObjectURL(e.objectUrl);I1.clear(),L1=e}}async function B1(e,t){z1();let n=R1(e,t,F.getState().token??``),r=I1.get(n);return r||(r={blob:(async()=>{let n=await L(z(F1(e,t)));if(n.status===401&&F.getState().onUnauthorized(),!n.ok)throw Error(`HTTP ${n.status}`);return n.blob()})(),objectUrl:null,refCount:0},I1.set(n,r)),r.blob}async function V1(e,t){z1();let n=R1(e,t,F.getState().token??``),r=I1.get(n);if(r||(r={blob:B1(e,t),objectUrl:null,refCount:0},I1.set(n,r)),!r.objectUrl){let e=await r.blob;r.objectUrl=URL.createObjectURL(e)}return r.refCount+=1,r.objectUrl}function H1(e,t){z1();let n=R1(e,t,F.getState().token??``),r=I1.get(n);r&&(r.refCount=Math.max(0,r.refCount-1),r.refCount===0&&r.objectUrl&&(URL.revokeObjectURL(r.objectUrl),r.objectUrl=null,I1.delete(n)))}var U1={noteId:null,attachmentId:null,playing:!1,currentTime:0,duration:0,loading:!1},W1=null,G1=null,K1=null,q1=null;function J1(){return W1||(W1=new Audio,W1.addEventListener(`timeupdate`,()=>{X1.setState({currentTime:W1.currentTime})}),W1.addEventListener(`loadedmetadata`,()=>{let e=W1.duration;Number.isFinite(e)&&X1.setState({duration:e})}),W1.addEventListener(`ended`,()=>{X1.setState({playing:!1,currentTime:0}),W1.currentTime=0}),W1.addEventListener(`pause`,()=>{X1.setState({playing:!1})}),W1.addEventListener(`play`,()=>{X1.setState({playing:!0})})),W1}function Y1(){K1&&q1&&H1(K1,q1),G1=null,K1=null,q1=null}var X1=R()((e,t)=>({...U1,play:async(n,r,i)=>{let a=J1(),o=t();if(o.noteId===n&&o.attachmentId===r&&G1){a.play();return}a.pause(),Y1(),e({noteId:n,attachmentId:r,playing:!1,currentTime:0,duration:i??0,loading:!0});try{let t=await V1(n,r);G1=t,K1=n,q1=r,a.src=t,await a.play(),window.dispatchEvent(new CustomEvent(`xopc-voice-playback-start`,{detail:{id:`note:${n}:${r}`}})),e({loading:!1})}catch{e({loading:!1,playing:!1}),Y1()}},pause:()=>{J1().pause()},toggle:(e,n,r)=>{let i=t();i.noteId===e&&i.attachmentId===n&&i.playing?t().pause():t().play(e,n,r)},seek:t=>{let n=J1();n.currentTime=t,e({currentTime:t})},reset:()=>{J1().pause(),J1().src=``,Y1(),e(U1)}})),Z1=/```[\s\S]*?```|~~~[\s\S]*?~~~/g,Q1=/[^。!?!?\.\n]+[。!?!?\.]?|\n+/g;function $1(e){return e.replace(Z1,`
|
|
127
|
-
`).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`).replace(/^#{1,6}\s+/gm,``).replace(/^\s*[-*+]\s+/gm,``).replace(/^\s*\d+[.)]\s+/gm,``).replace(/[|`*_~>]/g,` `).replace(/<[^>]+>/g,` `)}function e0(e){if(!e.trim())return``;let t=e.replace(Z1,`
|
|
128
|
-
`),n;if(typeof DOMParser>`u`)n=$1(t);else{let e=lU.parse(t,{gfm:!0,breaks:!1}),r=new DOMParser().parseFromString(`<main>${e}</main>`,`text/html`);r.querySelectorAll(`pre, script, style`).forEach(e=>e.remove()),r.querySelectorAll(`img`).forEach(e=>e.replaceWith(e.alt||``)),r.querySelectorAll(`br, p, h1, h2, h3, h4, h5, h6, li, tr`).forEach(e=>{e.append(r.createTextNode(`
|
|
129
|
-
`))}),n=r.body.textContent??``}return n.replace(/https?:\/\/\S+/gi,``).replace(/[\t ]+/g,` `).replace(/ *\n */g,`
|
|
130
|
-
`).replace(/\n{3,}/g,`
|
|
131
|
-
|
|
132
|
-
`).trim()}function t0(e,t=420){let n=e.trim();if(!n)return[];let r=Math.max(20,t),i=n.match(Q1)??[n],a=[],o=``,s=()=>{let e=o.trim();e&&a.push(e),o=``};for(let e of i){let t=e.trim();if(t){if(t.length>r){s();for(let e=0;e<t.length;e+=r)a.push(t.slice(e,e+r).trim());continue}o&&o.length+t.length>r&&s(),o+=t}}return s(),a}function n0(e,t){let n=(e.match(/[\u3400-\u9fff]/g)??[]).length,r=(e.match(/[A-Za-z]/g)??[]).length;return n===0&&r===0?t===`zh`?`zh-CN`:`en-US`:n*2>=r?`zh-CN`:`en-US`}var r0=`xopc:read-aloud-online-consent:v1`,i0=`read-aloud`,a0={source:null,status:`idle`,currentChunkIndex:0,chunkCount:0,currentTime:0,duration:0,rate:1,error:null,consentRequired:!1},o0=null,s0=null,c0=null,l0=[],u0=[],d0=[],f0=new Map,p0=null,m0=0,h0=!1;function g0(){if(h0)return!0;try{return localStorage.getItem(r0)===`accepted`}catch{return!1}}function _0(){for(let e of u0)e&&URL.revokeObjectURL(e);u0=[],d0=[],f0.clear()}function v0(e){return d0.slice(0,e).reduce((e,t)=>e+(t||0),0)}async function y0(e){let t=await e.json().catch(()=>({}));return typeof t.error==`string`?t.error:t.error?.message||`Speech request failed (${e.status})`}async function b0(e,t){let n=u0[e];if(n)return n;let r=f0.get(e);if(r)return r;let i=s0;if(!i||!l0[e])throw Error(`Speech chunk is unavailable`);let a=(async()=>{let n=await L(z(`/api/voice/speech`),{method:`POST`,signal:p0?.signal,body:JSON.stringify({text:l0[e],language:i.language})});if(!n.ok)throw Error(await y0(n));let r=await n.blob();if(!r.size)throw Error(`Speech service returned empty audio`);if(t!==m0)throw new DOMException(`Stale speech request`,`AbortError`);let a=URL.createObjectURL(r);return u0[e]=a,a})();f0.set(e,a);try{return await a}finally{f0.delete(e)}}async function x0(e,t){let n=S0();T0.setState({status:`preparing`,currentChunkIndex:e,error:null});try{let r=await b0(e,t);if(t!==m0||(n.src=r,n.playbackRate=T0.getState().rate,await n.play(),t!==m0))return;T0.setState({status:`playing`}),window.dispatchEvent(new CustomEvent(`xopc-voice-playback-start`,{detail:{id:i0}})),e+1<l0.length&&b0(e+1,t).catch(()=>void 0)}catch(e){if(t!==m0||e instanceof DOMException&&e.name===`AbortError`)return;let n=e instanceof Error?e.message:String(e);T0.setState({status:`error`,error:n})}}function S0(){return o0||(o0=new Audio,o0.preload=`metadata`,o0.addEventListener(`loadedmetadata`,()=>{if(!o0)return;let e=T0.getState().currentChunkIndex;Number.isFinite(o0.duration)&&(d0[e]=o0.duration),T0.setState({duration:d0.reduce((e,t)=>e+(t||0),0)})}),o0.addEventListener(`timeupdate`,()=>{if(!o0)return;let e=T0.getState().currentChunkIndex;T0.setState({currentTime:v0(e)+o0.currentTime})}),o0.addEventListener(`pause`,()=>{T0.getState().status===`playing`&&T0.setState({status:`paused`})}),o0.addEventListener(`ended`,()=>{let e=T0.getState().currentChunkIndex+1;e<l0.length?x0(e,m0):(T0.setState({status:`paused`,currentTime:0,currentChunkIndex:0}),o0&&(o0.currentTime=0))}),o0.addEventListener(`error`,()=>{T0.getState().status!==`idle`&&T0.setState({status:`error`,error:`Audio playback failed`})}),window.addEventListener(`xopc-voice-recording-start`,()=>T0.getState().pause()),window.addEventListener(`xopc-voice-playback-start`,e=>{let t=e.detail?.id;t&&t!==i0&&T0.getState().pause()}),o0)}function C0(){m0+=1,p0?.abort(),p0=null,o0&&(o0.pause(),o0.removeAttribute(`src`),o0.load()),_0(),l0=[],s0=null,T0.setState({...a0,rate:T0.getState().rate})}function w0(e){C0();let t=t0(e.text);if(!t.length){T0.setState({status:`error`,error:`There is no readable text`});return}s0=e,l0=t,u0=Array.from({length:l0.length},()=>null),d0=Array.from({length:l0.length},()=>0),p0=new AbortController;let n=m0;X1.getState().pause(),T0.setState({source:e.source,status:`preparing`,currentChunkIndex:0,chunkCount:l0.length,currentTime:0,duration:0,error:null,consentRequired:!1}),x0(0,n)}var T0=R()((e,t)=>({...a0,requestStart:n=>{let r=t(),i=r.source?.type===n.source.type&&r.source.id===n.source.id;if(i&&r.status===`playing`&&s0?.text===n.text){t().pause();return}if(i&&r.status===`paused`&&s0?.text===n.text){t().resume();return}if(!g0()){c0=n,e({consentRequired:!0});return}w0(n)},acceptConsent:()=>{h0=!0;try{localStorage.setItem(r0,`accepted`)}catch{}let t=c0;c0=null,e({consentRequired:!1}),t&&w0(t)},declineConsent:()=>{c0=null,e({consentRequired:!1})},pause:()=>{if(t().status===`preparing`){C0();return}o0&&!o0.paused&&o0.pause()},resume:()=>{let n=t();if(!(!n.source||!s0)){if(o0?.src&&o0.currentTime>0){o0.playbackRate=n.rate,o0.play().then(()=>e({status:`playing`})).catch(t=>{e({status:`error`,error:t instanceof Error?t.message:String(t)})});return}p0=new AbortController,x0(n.currentChunkIndex,m0)}},stop:C0,setRate:t=>{let n=[.75,1,1.25,1.5,2].includes(t)?t:1;o0&&(o0.playbackRate=n),e({rate:n})}}));function E0(e){let t=(0,Q.c)(25),{input:n,labels:r,className:i,showLabel:a,disabled:o}=e,s=a===void 0?!1:a,c=o===void 0?!1:o,l;t[0]===n?l=t[1]:(l=typeof n==`function`?n():n,t[0]=n,t[1]=l);let u=l,d=T0(k0),f=T0(O0),p=T0(D0),m=d?.type===u.source.type&&d.id===u.source.id,h=m?f:`idle`,g=h===`preparing`?r.preparing:h===`playing`?r.pause:h===`paused`?r.resume:h===`error`?r.retry:r.read,_;t[2]!==n||t[3]!==p?(_=()=>p(typeof n==`function`?n():n),t[2]=n,t[3]=p,t[4]=_):_=t[4];let v;t[5]!==c||t[6]!==u.text?(v=c||!u.text.trim(),t[5]=c,t[6]=u.text,t[7]=v):v=t[7];let y=m&&(h===`playing`||h===`paused`),b=s?`h-8 gap-1.5 px-2.5 text-xs font-medium`:`size-9`,x=m&&`bg-surface-active text-accent`,S;t[8]!==i||t[9]!==b||t[10]!==x?(S=C(`inline-flex shrink-0 items-center justify-center rounded-lg text-fg-muted transition-colors transition-transform duration-150 ease-out`,`hover:bg-surface-hover hover:text-fg active:scale-95 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,b,x,i),t[8]=i,t[9]=b,t[10]=x,t[11]=S):S=t[11];let w;t[12]===h?w=t[13]:(w=h===`preparing`?(0,$.jsx)(Zg,{className:`size-4 animate-spin`,"aria-hidden":!0}):h===`playing`?(0,$.jsx)(fy,{className:`size-4`,"aria-hidden":!0}):h===`paused`?(0,$.jsx)(yy,{className:`size-4`,"aria-hidden":!0}):h===`error`?(0,$.jsx)(jy,{className:`size-4`,"aria-hidden":!0}):(0,$.jsx)(BC,{className:`size-4`,"aria-hidden":!0}),t[12]=h,t[13]=w);let T;t[14]!==g||t[15]!==s?(T=s?(0,$.jsx)(`span`,{children:g}):null,t[14]=g,t[15]=s,t[16]=T):T=t[16];let E;return t[17]!==g||t[18]!==w||t[19]!==T||t[20]!==_||t[21]!==v||t[22]!==y||t[23]!==S?(E=(0,$.jsxs)(`button`,{type:`button`,onClick:_,disabled:v,title:g,"aria-label":g,"aria-pressed":y,className:S,children:[w,T]}),t[17]=g,t[18]=w,t[19]=T,t[20]=_,t[21]=v,t[22]=y,t[23]=S,t[24]=E):E=t[24],E}function D0(e){return e.requestStart}function O0(e){return e.status}function k0(e){return e.source}function A0(e){let t=e.filter(e=>e.type===`tool_use`),n=t.map(e=>e.startedAt).filter(e=>Number.isFinite(e)),r=t.map(e=>e.completedAt).filter(e=>Number.isFinite(e)),i=n.length>0?Math.min(...n):void 0,a=r.length>0?Math.max(...r):void 0;return{startedAt:i,completedAt:a,durationMs:i!=null&&a!=null?Math.max(0,a-i):void 0}}function j0(e){return e.filter(e=>e.type===`thinking`||e.type===`tool_use`)}function M0(e){return e.some(e=>e.type===`text`&&e.presentation!==`pending`&&e.presentation!==`narration`&&!!e.text?.trim())}function N0(e){let t=WM(e,`running`);return t.category===`web`&&t.action===`search`}function P0(e){let t=[];for(let n of e)if(!(!N0(n.name)||n.result==null))try{let e=typeof n.result==`string`?JSON.parse(n.result):n.result,r=Array.isArray(e)?e:e?.results??[];for(let e of r)e.url&&t.push({url:e.url,title:e.title??e.url,snippet:e.snippet})}catch{}return t}function F0({message:e,isStreaming:t,reasoningLevel:n}){let r=n===`off`?(e.content??[]).filter(e=>e.type!==`thinking`):e.content??[],i=r.filter(e=>e.type!==`image`),a=yY(j0(e.content??[])),o=n===`off`?a.filter(e=>e.type===`tool_use`):a,s=M0(i),c=a.filter(e=>e.type===`tool_use`),l=[...c].reverse().find(e=>e.status===`running`||e.activity?.status===`running`),u=c.filter(e=>e.status===`error`||e.activity?.status===`failed`).length,d=A0(a),f=t&&a.some(e=>e.type===`thinking`&&!!e.streaming||e.type===`tool_use`&&(e.status===`running`||e.activity?.status===`running`)),p=(e.content??[]).filter(e=>e.type===`image`&&!!e.source?.data),m=zJ(e.content),h;return h=t?l?`using_tool`:a.some(e=>e.type===`thinking`&&!!e.streaming)?`reasoning`:s?`answering`:`starting`:u>0?`partial`:`completed`,{displayContent:r,flowContent:i,activity:{blocks:o,active:f,failedCount:u,hasTool:c.length>0,expandedByDefault:n===`stream`&&t&&!s,...d},answer:{started:s,showStreamingCursor:t&&(o.length===0||h===`answering`)},lifecycle:{state:h,activeTool:h===`using_tool`?l:void 0},deliverables:{workspacePaths:m,mediaAttachments:[...VJ(p),...DJ(e.content)],attachments:IJ(e.attachments,m)},sources:P0(c)}}function I0(e){let t=(0,Q.c)(10),{blocks:n,sources:r,className:i}=e,a=n===void 0?[]:n,o=i===void 0?`mt-6`:i,s=j(I(z0)),c=a.filter(R0),l=r??P0(c);if(l.length===0)return null;let u=s.chat.searchSourcesHeading.replace(`{{count}}`,String(l.length)),d;t[0]===u?d=t[1]:(d=(0,$.jsx)(`p`,{className:`mb-3 text-xs font-medium text-fg-muted`,children:u}),t[0]=u,t[1]=d);let f;t[2]===l?f=t[3]:(f=l.map(L0),t[2]=l,t[3]=f);let p;t[4]===f?p=t[5]:(p=(0,$.jsx)(`ol`,{className:`space-y-3`,children:f}),t[4]=f,t[5]=p);let m;return t[6]!==o||t[7]!==d||t[8]!==p?(m=(0,$.jsxs)(`div`,{className:o,children:[d,p]}),t[6]=o,t[7]=d,t[8]=p,t[9]=m):m=t[9],m}function L0(e,t){let n=(()=>{try{return new URL(e.url).hostname}catch{return``}})(),r=n?`https://www.google.com/s2/favicons?domain=${n}&sz=16`:void 0;return(0,$.jsxs)(`li`,{className:`flex min-w-0 gap-2.5`,children:[(0,$.jsxs)(`span`,{className:`mt-0.5 shrink-0 text-xs text-fg-disabled`,children:[t+1,`.`]}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-start gap-1.5`,children:[r?(0,$.jsx)(`img`,{src:r,alt:``,className:`mt-0.5 size-3.5 shrink-0 rounded-sm`,"aria-hidden":!0}):null,(0,$.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`min-w-0 flex-1 break-words text-xs font-medium text-accent-fg [overflow-wrap:anywhere] hover:underline`,children:e.title})]}),e.snippet?(0,$.jsx)(`p`,{className:`mt-0.5 line-clamp-4 text-xs break-words text-fg-muted [overflow-wrap:anywhere]`,children:e.snippet}):null]})]},e.url)}function R0(e){return e.type===`tool_use`}function z0(e){return e.language}function B0({workspaceRel:e,sessionKey:t,projectId:n,onOpen:r,className:i}){let[a,o]=(0,Z.useState)(null);return(0,Z.useEffect)(()=>{let r=null,i=!1;return(async()=>{try{let a=await Hz(e,n?.trim()?{projectId:n.trim()}:{sessionKey:t?.trim()||void 0});if(i)return;let s=URL.createObjectURL(a);r=s,o(s)}catch{i||o(null)}})(),()=>{i=!0,r&&URL.revokeObjectURL(r)}},[e,t,n]),a?(0,$.jsxs)(`button`,{type:`button`,onClick:r,className:C(`group relative size-20 overflow-hidden rounded-lg border border-edge-subtle text-left`,aT.press,aT.focusRingPanel,`hover:border-accent`,i),title:e,"aria-label":e,children:[(0,$.jsx)(`img`,{src:a,className:`size-full object-cover`,alt:``}),(0,$.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center bg-black/0 transition-colors group-hover:bg-black/25`,children:(0,$.jsx)(Bu,{className:`size-4 text-white opacity-0 transition-opacity group-hover:opacity-100`,strokeWidth:1.75})})]}):null}function V0(e){let t=(0,Q.c)(10),{icon:n,label:r,copiedLabel:i,onClick:a,copied:o}=e,s=i??r,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=C(`inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,aT.focusRingPanel,aT.press),t[0]=c):c=t[0];let l;t[1]!==o||t[2]!==n?(l=o?(0,$.jsx)(S,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}):n,t[1]=o,t[2]=n,t[3]=l):l=t[3];let u=o?s:r,d;t[4]===u?d=t[5]:(d=(0,$.jsx)(`span`,{children:u}),t[4]=u,t[5]=d);let f;return t[6]!==a||t[7]!==l||t[8]!==d?(f=(0,$.jsxs)(`button`,{type:`button`,onClick:a,className:c,children:[l,d]}),t[6]=a,t[7]=l,t[8]=d,t[9]=f):f=t[9],f}function H0(e){return e===`external`||e===`agent-profile`||e===`session-artifact`}function U0(e,t){return e?t.locationKind[e]??t.externalBadge:t.externalBadge}function W0(e){let t=(0,Q.c)(71),{path:n,refInfo:r,sessionKey:i,onImported:a}=e,o=m(),s=j(I(G0)).chat,c=s.fileReference,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=$E()&&!!window.electronAPI?.shell,t[0]=l):l=t[0];let u=l,d=r.absolutePath??n.absolutePath,[f,p]=(0,Z.useState)(!1),h;t[1]!==u||t[2]!==r.fileRefId||t[3]!==i?(h=async e=>{if(!r.fileRefId||!u)return;let t=await Vz(r.fileRefId,e,{sessionKey:i?.trim()||void 0});t&&(e===`openExternal`?await window.electronAPI?.shell?.openPath(t.absolutePath):await window.electronAPI?.shell?.showItemInFolder(t.absolutePath))},t[1]=u,t[2]=r.fileRefId,t[3]=i,t[4]=h):h=t[4];let g=h,_;t[5]===d?_=t[6]:(_=()=>{k(d).then(e=>{e&&(p(!0),window.setTimeout(()=>p(!1),2e3))})},t[5]=d,t[6]=_);let v=_,[y,b]=(0,Z.useState)(!1),x;t[7]!==r.capabilities||t[8]!==r.fileRefId?(x=r.capabilities.includes(`importToWorkspace`)&&!!r.fileRefId,t[7]=r.capabilities,t[8]=r.fileRefId,t[9]=x):x=t[9];let S=x,w=`imports/${n.fileName||r.displayName}`,T=r.scope===`missing`,E=r.scope===`invalid`,D=H0(r.scope)&&r.exists,O=T?c.missingDescription:E?c.invalidDescription:D?u?c.offWorkspaceBaseDescription:c.browserOffWorkspaceDescription:u?c.externalDescription:c.browserExternalDescription,A=D||r.scope===`external`||r.scope===`agent-profile`?U0(r.locationKind,c):null,M=T||E?`border-warning/30 bg-warning/5 text-fg-muted`:`border-edge-subtle bg-surface-panel text-fg`,N;t[10]===M?N=t[11]:(N=C(`flex max-w-xl min-w-0 flex-col gap-1 rounded-lg border px-2.5 py-2 text-xs`,M),t[10]=M,t[11]=N);let P;t[12]!==E||t[13]!==T?(P=T||E?(0,$.jsx)(Ao,{className:`size-3.5 shrink-0 text-warning`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Kd,{className:`size-3.5 shrink-0 text-accent`,strokeWidth:1.75,"aria-hidden":!0}),t[12]=E,t[13]=T,t[14]=P):P=t[14];let F=n.fileName||r.displayName,L;t[15]===F?L=t[16]:(L=(0,$.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:F}),t[15]=F,t[16]=L);let R;t[17]===A?R=t[18]:(R=A?(0,$.jsx)(`span`,{className:`shrink-0 rounded bg-surface-muted px-1.5 py-0.5 text-[10px] text-fg-muted`,children:A}):null,t[17]=A,t[18]=R);let z;t[19]!==R||t[20]!==P||t[21]!==L?(z=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[P,L,R]}),t[19]=R,t[20]=P,t[21]=L,t[22]=z):z=t[22];let B;t[23]===O?B=t[24]:(B=(0,$.jsx)(`p`,{className:`line-clamp-2 text-[11px] leading-snug text-fg-muted`,children:O}),t[23]=O,t[24]=B);let V;t[25]!==c||t[26]!==o||t[27]!==r.manageRoute?(V=r.manageRoute?(0,$.jsx)(V0,{icon:(0,$.jsx)(zy,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),label:c.openInSettings,onClick:()=>o(r.manageRoute)}):null,t[25]=c,t[26]=o,t[27]=r.manageRoute,t[28]=V):V=t[28];let H;t[29]!==u||t[30]!==c||t[31]!==g||t[32]!==r.capabilities?(H=u&&r.capabilities.includes(`openExternal`)?(0,$.jsx)(V0,{icon:(0,$.jsx)(Iu,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),label:c.openExternal,onClick:()=>void g(`openExternal`)}):null,t[29]=u,t[30]=c,t[31]=g,t[32]=r.capabilities,t[33]=H):H=t[33];let U;t[34]!==u||t[35]!==c||t[36]!==g||t[37]!==r.capabilities?(U=u&&r.capabilities.includes(`revealInFolder`)?(0,$.jsx)(V0,{icon:(0,$.jsx)(zf,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),label:c.revealInFolder,onClick:()=>void g(`revealInFolder`)}):null,t[34]=u,t[35]=c,t[36]=g,t[37]=r.capabilities,t[38]=U):U=t[38];let W;t[39]!==s||t[40]!==v||t[41]!==c||t[42]!==f||t[43]!==r.capabilities?(W=r.capabilities.includes(`copyPath`)?(0,$.jsx)(V0,{icon:(0,$.jsx)(tl,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),label:c.copyPath,copiedLabel:s.messageCopied,copied:f,onClick:v}):null,t[39]=s,t[40]=v,t[41]=c,t[42]=f,t[43]=r.capabilities,t[44]=W):W=t[44];let G;t[45]!==S||t[46]!==c||t[47]!==b?(G=S?(0,$.jsx)(V0,{icon:(0,$.jsx)(fn,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),label:c.importToWorkspace,onClick:()=>b(!0)}):null,t[45]=S,t[46]=c,t[47]=b,t[48]=G):G=t[48];let K;t[49]!==V||t[50]!==H||t[51]!==U||t[52]!==W||t[53]!==G?(K=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-1 pt-0.5`,children:[V,H,U,W,G]}),t[49]=V,t[50]=H,t[51]=U,t[52]=W,t[53]=G,t[54]=K):K=t[54];let ee;t[55]!==S||t[56]!==w||t[57]!==d||t[58]!==y||t[59]!==a||t[60]!==r.fileRefId||t[61]!==i||t[62]!==b?(ee=S&&y?(0,$.jsx)(K0,{open:!0,onOpenChange:b,fileRefId:r.fileRefId,sessionKey:i,sourceLabel:d,defaultDestination:w,onImported:e=>{b(!1),a(e)}},`${r.fileRefId}:${w}`):null,t[55]=S,t[56]=w,t[57]=d,t[58]=y,t[59]=a,t[60]=r.fileRefId,t[61]=i,t[62]=b,t[63]=ee):ee=t[63];let q;return t[64]!==d||t[65]!==z||t[66]!==B||t[67]!==K||t[68]!==ee||t[69]!==N?(q=(0,$.jsxs)(`div`,{className:N,title:d,children:[z,B,K,ee]}),t[64]=d,t[65]=z,t[66]=B,t[67]=K,t[68]=ee,t[69]=N,t[70]=q):q=t[70],q}function G0(e){return e.language}function K0(e){let t=(0,Q.c)(68),{open:n,onOpenChange:r,fileRefId:i,sessionKey:a,sourceLabel:o,defaultDestination:s,onImported:c}=e,l=I(J0),u;t[0]===l?u=t[1]:(u=j(l),t[0]=l,t[1]=u);let d=u.chat.fileReference,f=d.importErrors,[p,m]=(0,Z.useState)(s),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(null),y;t[2]!==p||t[3]!==f||t[4]!==i||t[5]!==c||t[6]!==a?(y=async()=>{g(!0),v(null);let e=await Uz(i,{sessionKey:a?.trim()||void 0,destination:p.trim()||void 0,onConflict:`rename`});if(e.ok){c(e.payload);return}g(!1);let t=f;v(t[e.error.code]??t.UNKNOWN??e.error.message)},t[2]=p,t[3]=f,t[4]=i,t[5]=c,t[6]=a,t[7]=y):y=t[7];let b=y,x;t[8]!==h||t[9]!==r?(x=e=>{h||r(e)},t[8]=h,t[9]=r,t[10]=x):x=t[10];let S;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(GD,{className:C(`xopc-dialog-overlay fixed inset-0 bg-scrim backdrop-blur-[1px]`,sE)}),t[11]=S):S=t[11];let w;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(w=C(`fixed left-1/2 top-1/2 w-[min(100%-2rem,28rem)] -translate-x-1/2 -translate-y-1/2`,cE,`rounded-2xl border border-edge bg-surface-panel p-6 shadow-popover outline-none dark:border-edge`),t[12]=w):w=t[12];let T;t[13]===d.importDialogTitle?T=t[14]:(T=(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:d.importDialogTitle}),t[13]=d.importDialogTitle,t[14]=T);let E;t[15]===d.importDialogSourceLabel?E=t[16]:(E=(0,$.jsx)(`div`,{className:`text-[11px] uppercase tracking-wide text-fg-disabled`,children:d.importDialogSourceLabel}),t[15]=d.importDialogSourceLabel,t[16]=E);let D;t[17]===o?D=t[18]:(D=(0,$.jsx)(`div`,{className:`mt-0.5 break-all font-mono text-xs text-fg-muted`,children:o}),t[17]=o,t[18]=D);let O;t[19]!==E||t[20]!==D?(O=(0,$.jsxs)(`div`,{children:[E,D]}),t[19]=E,t[20]=D,t[21]=O):O=t[21];let k;t[22]===d.importDialogDestinationLabel?k=t[23]:(k=(0,$.jsx)(`span`,{className:`text-[11px] uppercase tracking-wide text-fg-disabled`,children:d.importDialogDestinationLabel}),t[22]=d.importDialogDestinationLabel,t[23]=k);let A;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>m(e.target.value),t[24]=A):A=t[24];let M=d.importDialogDestinationLabel,N;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(N=C(`mt-1 w-full rounded-md border border-edge bg-surface px-2 py-1.5 font-mono text-xs text-fg outline-none`,`focus:border-accent focus:ring-1 focus:ring-accent disabled:opacity-60`),t[25]=N):N=t[25];let P;t[26]!==h||t[27]!==p||t[28]!==d.importDialogDestinationLabel?(P=(0,$.jsx)(`input`,{type:`text`,value:p,onChange:A,disabled:h,"aria-label":M,className:N,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`}),t[26]=h,t[27]=p,t[28]=d.importDialogDestinationLabel,t[29]=P):P=t[29];let F;t[30]!==k||t[31]!==P?(F=(0,$.jsxs)(`label`,{className:`block`,children:[k,P]}),t[30]=k,t[31]=P,t[32]=F):F=t[32];let L;t[33]===_?L=t[34]:(L=_?(0,$.jsx)(`div`,{className:`rounded-md border border-danger/30 bg-danger/5 px-2 py-1.5 text-xs text-danger`,children:_}):null,t[33]=_,t[34]=L);let R;t[35]!==F||t[36]!==L||t[37]!==O?(R=(0,$.jsxs)(`div`,{className:`mt-3 space-y-3 text-sm`,children:[O,F,L]}),t[35]=F,t[36]=L,t[37]=O,t[38]=R):R=t[38];let z;t[39]===r?z=t[40]:(z=()=>r(!1),t[39]=r,t[40]=z);let B;t[41]!==h||t[42]!==d.importDialogCancel||t[43]!==z?(B=(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,onClick:z,disabled:h,children:d.importDialogCancel}),t[41]=h,t[42]=d.importDialogCancel,t[43]=z,t[44]=B):B=t[44];let V;t[45]===b?V=t[46]:(V=()=>void b(),t[45]=b,t[46]=V);let H;t[47]!==h||t[48]!==p?(H=h||!p.trim(),t[47]=h,t[48]=p,t[49]=H):H=t[49];let U;t[50]===h?U=t[51]:(U=h?(0,$.jsx)(Zg,{className:`size-3.5 animate-spin`,"aria-hidden":!0}):null,t[50]=h,t[51]=U);let W=h?d.importInProgress:d.importDialogConfirm,G;t[52]!==V||t[53]!==H||t[54]!==U||t[55]!==W?(G=(0,$.jsxs)(Zw,{type:`button`,variant:`secondary`,onClick:V,disabled:H,className:`inline-flex items-center gap-1.5`,children:[U,W]}),t[52]=V,t[53]=H,t[54]=U,t[55]=W,t[56]=G):G=t[56];let K;t[57]!==B||t[58]!==G?(K=(0,$.jsxs)(`div`,{className:`mt-6 flex justify-end gap-2`,children:[B,G]}),t[57]=B,t[58]=G,t[59]=K):K=t[59];let ee;t[60]!==R||t[61]!==K||t[62]!==T?(ee=(0,$.jsxs)(UD,{children:[S,(0,$.jsxs)(YD,{className:w,onOpenAutoFocus:q0,children:[T,R,K]})]}),t[60]=R,t[61]=K,t[62]=T,t[63]=ee):ee=t[63];let q;return t[64]!==n||t[65]!==ee||t[66]!==x?(q=(0,$.jsx)(LD,{open:n,onOpenChange:x,children:ee}),t[64]=n,t[65]=ee,t[66]=x,t[67]=q):q=t[67],q}function q0(e){return e.preventDefault()}function J0(e){return e.language}function Y0(e){let t=(0,Q.c)(35),{paths:n,sessionKey:r,projectId:i}=e,a=pq(t2),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={},t[0]=o):o=t[0];let[s,c]=(0,Z.useState)(o),l;t[1]===n?l=t[2]:(l=n.map(e2).join(`
|
|
133
|
-
`),t[1]=n,t[2]=l);let u=l,d;t[3]===r?d=t[4]:(d=r?.trim()||void 0,t[3]=r,t[4]=d);let f=d,p;t[5]===i?p=t[6]:(p=i?.trim()||void 0,t[5]=i,t[6]=p);let m=p,h;t[7]!==m||t[8]!==f?(h=m?{projectId:m}:{sessionKey:f},t[7]=m,t[8]=f,t[9]=h):h=t[9];let g=h,_;t[10]!==n||t[11]!==g?(_=async()=>{let e={};return await Promise.all(n.map(async t=>{let n=oJ(t.absolutePath),r;if(t.workspaceRelativePath){if(r=await Bz(t.workspaceRelativePath,g),r&&(r.scope===`missing`||r.scope===`invalid`)&&n){let e=await Bz(t.absolutePath,g);e&&e.scope!==`missing`&&e.scope!==`invalid`&&(r=e)}}else r=await Bz(t.absolutePath,g);e[t.absolutePath]=r})),e},t[10]=n,t[11]=g,t[12]=_):_=t[12];let v;t[13]!==u||t[14]!==g?(v=[u,g],t[13]=u,t[14]=g,t[15]=v):v=t[15];let y=n.length>0,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(b={},t[16]=b):b=t[16];let x;t[17]===y?x=t[18]:(x={enabled:y,initial:null,errorData:b},t[17]=y,t[18]=x);let S=TA(_,v,x);if(n.length===0||S.data===null)return null;let w=S.data,T,E,D,O,k;if(t[19]!==n||t[20]!==i||t[21]!==s||t[22]!==S.data||t[23]!==r||t[24]!==a){k=Symbol.for(`react.early_return_sentinel`);bb0:{let e={...w,...s},t=n.flatMap(t=>{let n=e[t.absolutePath]??null;return!n||t.origin===`assistant-markdown`&&(n.scope===`missing`||n.scope===`invalid`)?[]:[{...t,refInfo:n}]});if(t.length===0){k=null;break bb0}let o=t.filter($0),l=o.filter(Q0),u=o.filter(Z0),d=t.filter(X0);T=`mt-1.5 min-w-0 space-y-1.5`,E=l.length>0?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:l.map(e=>{let t=e.refInfo.workspaceRelativePath;return(0,$.jsx)(B0,{workspaceRel:t,sessionKey:r,projectId:i,onOpen:()=>a(t,null,i)},e.absolutePath)})}):null,D=u.length>0?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:u.map(e=>{let t=e.refInfo.workspaceRelativePath;return(0,$.jsxs)(`button`,{type:`button`,onClick:()=>a(t,null,i),className:C(`inline-flex max-w-full items-center gap-1.5 rounded-md bg-accent-soft/40 px-2 py-1 text-left text-xs text-accent-fg`,`max-w-xs transition-colors hover:bg-accent-soft/60`,aT.focusRingPanel,aT.press),title:e.absolutePath,children:[(0,$.jsx)(Kd,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:e.fileName}),(0,$.jsx)(Bu,{className:`size-3 shrink-0 opacity-60`,strokeWidth:1.75,"aria-hidden":!0})]},e.absolutePath)})}):null,O=d.length>0?(0,$.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:d.map(t=>(0,$.jsx)(W0,{path:t,refInfo:t.refInfo,sessionKey:r,onImported:n=>{c(r=>({...r,[t.absolutePath]:{...e[t.absolutePath],fileRefId:n.newFileRefId,scope:`workspace`,locationKind:void 0,manageRoute:void 0,exists:!0,isDirectory:!1,absolutePath:n.absolutePath,workspaceRelativePath:n.workspaceRelativePath,capabilities:[`preview`,`edit`,`openExternal`,`revealInFolder`,`copyPath`],mtimeMs:n.mtimeMs,errorCode:void 0}})),a(n.workspaceRelativePath,null,i)}},t.absolutePath))}):null}t[19]=n,t[20]=i,t[21]=s,t[22]=S.data,t[23]=r,t[24]=a,t[25]=T,t[26]=E,t[27]=D,t[28]=O,t[29]=k}else T=t[25],E=t[26],D=t[27],O=t[28],k=t[29];if(k!==Symbol.for(`react.early_return_sentinel`))return k;let A;return t[30]!==T||t[31]!==E||t[32]!==D||t[33]!==O?(A=(0,$.jsxs)(`div`,{className:T,children:[E,D,O]}),t[30]=T,t[31]=E,t[32]=D,t[33]=O,t[34]=A):A=t[34],A}function X0(e){return e.refInfo.scope!==`workspace`}function Z0(e){return!aJ(e.mimeType)}function Q0(e){return aJ(e.mimeType)}function $0(e){return e.refInfo.scope===`workspace`&&!!e.refInfo.workspaceRelativePath}function e2(e){return`${e.absolutePath}\0${e.workspaceRelativePath??``}`}function t2(e){return e.setPath}function n2(e){let t=(0,Q.c)(18),{view:n,authToken:r,sessionKey:i,projectId:a,deliverablesLabel:o,sourcesLabel:s}=e,{workspacePaths:c,mediaAttachments:l}=n.deliverables,u;t[0]!==n.lifecycle.activeTool||t[1]!==n.lifecycle.state?(u=n.lifecycle.state===`using_tool`&&!!(n.lifecycle.activeTool&&(CJ.has(n.lifecycle.activeTool.name)||wJ.has(n.lifecycle.activeTool.name))),t[0]=n.lifecycle.activeTool,t[1]=n.lifecycle.state,t[2]=u):u=t[2];let d=u,f=d&&c.length===0&&l.length===0,p=d||c.length>0||l.length>0,m;t[3]!==r||t[4]!==o||t[5]!==l||t[6]!==a||t[7]!==i||t[8]!==f||t[9]!==p||t[10]!==c?(m=p?(0,$.jsxs)(`section`,{className:`rounded-lg border border-edge-subtle/60 bg-surface-elevated/20 px-3 py-2.5`,"aria-label":o,children:[(0,$.jsx)(`h3`,{className:`mb-1.5 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:o}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[f?(0,$.jsxs)(`div`,{className:`flex min-h-14 items-center gap-2`,"aria-hidden":!0,children:[(0,$.jsx)(BN,{className:`size-12 shrink-0 rounded-md`}),(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2`,children:[(0,$.jsx)(BN,{className:`h-3 w-2/3`}),(0,$.jsx)(BN,{className:`h-3 w-1/3`})]})]}):null,c.length>0?(0,$.jsx)(Y0,{paths:c,sessionKey:i,projectId:a}):null,l.length>0?(0,$.jsx)(Gq,{attachments:l,authToken:r,sessionKey:i,layout:`assistant`}):null]})]}):null,t[3]=r,t[4]=o,t[5]=l,t[6]=a,t[7]=i,t[8]=f,t[9]=p,t[10]=c,t[11]=m):m=t[11];let h;t[12]!==s||t[13]!==n.sources?(h=n.sources.length>0?(0,$.jsx)(`section`,{className:`rounded-lg border border-edge-subtle/60 bg-surface-elevated/10 px-3 py-2.5`,"aria-label":s,children:(0,$.jsx)(I0,{sources:n.sources,className:``})}):null,t[12]=s,t[13]=n.sources,t[14]=h):h=t[14];let g;return t[15]!==m||t[16]!==h?(g=(0,$.jsxs)($.Fragment,{children:[m,h]}),t[15]=m,t[16]=h,t[17]=g):g=t[17],g}function r2(e){let t=(0,Q.c)(4),{attachments:n,authToken:r,sessionKey:i}=e;if(!n?.length)return null;let a;return t[0]!==n||t[1]!==r||t[2]!==i?(a=(0,$.jsx)(Gq,{attachments:n,authToken:r,sessionKey:i,layout:`assistant`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):a=t[3],a}var i2=C(`inline-flex size-9 shrink-0 items-center justify-center rounded-lg`,`text-fg-muted transition-colors transition-transform duration-150 ease-out`,`hover:bg-surface-hover hover:text-fg active:scale-95`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,aT.disabled),a2=[`misunderstood_intent`,`incorrect`,`did_not_act`,`tone_mismatch`,`too_verbose`,`other`],o2=C(`inline-flex h-8 shrink-0 items-center justify-center gap-1 rounded-md px-2 text-xs text-fg-muted transition-colors`,`hover:bg-surface-hover hover:text-fg active:scale-[0.98]`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,aT.disabled),s2=(0,Z.memo)(function(e){let t=(0,Q.c)(309),{message:n,authToken:r,sessionKey:i,projectId:a,isStreaming:o,progress:s,reasoningLevel:c,messageIndex:l,onDeleteRound:u,onRetryUserMessageRound:d,userMessageCanRetry:f,deleteRoundDisabled:p,onSaveAssistantToSourceNote:m,onExtractAssistantTask:h,readonly:g,density:_,suppressAssistantActions:v,onEditUserMessage:y,responseFeedbackEnabled:b}=e,x=c===void 0?`on`:c,w=f===void 0?!1:f,T=p===void 0?!1:p,E=g===void 0?!1:g,D=_===void 0?`normal`:_,O=v===void 0?!1:v,A=b===void 0?!0:b,M=I(c2),N;t[0]===M?N=t[1]:(N=j(M),t[0]=M,t[1]=N);let P=N,F=n.role===`user`,L=n.role===`assistant`,R=F?P.chat.you:L?P.chat.assistant:P.chat.tool,V;t[2]!==P.chat.noOutput||t[3]!==P.chat.toolInput||t[4]!==P.chat.toolOutput?(V={input:P.chat.toolInput,output:P.chat.toolOutput,noOutput:P.chat.noOutput},t[2]=P.chat.noOutput,t[3]=P.chat.toolInput,t[4]=P.chat.toolOutput,t[5]=V):V=t[5];let H=V,U;t[6]!==P.chat.activityAnalysisComplete||t[7]!==P.chat.activityCompleted||t[8]!==P.chat.activityFailedCount||t[9]!==P.chat.activityPartial||t[10]!==P.chat.memoryActivity||t[11]!==P.chat.rawThinking||t[12]!==P.chat.stepDetails||t[13]!==P.chat.stepEditFile||t[14]!==P.chat.stepFetchUrl||t[15]!==P.chat.stepListDirectory||t[16]!==P.chat.stepOpenUrl||t[17]!==P.chat.stepReadFile||t[18]!==P.chat.stepRunCommand||t[19]!==P.chat.stepSearched||t[20]!==P.chat.stepSearchedCode||t[21]!==P.chat.stepSearchedMemory||t[22]!==P.chat.stepSearchedWeb||t[23]!==P.chat.stepUnknownTool||t[24]!==P.chat.stepWriteFile||t[25]!==P.chat.thoughts||t[26]!==P.chat.thoughtsStreaming||t[27]!==P.chat.toolError||t[28]!==P.chat.toolFailedImpact||t[29]!==P.chat.toolRunning||t[30]!==P.chat.viewSteps_one||t[31]!==P.chat.viewSteps_other?(U={thoughts:P.chat.thoughts,thoughtsStreaming:P.chat.thoughtsStreaming,viewSteps_one:P.chat.viewSteps_one,viewSteps_other:P.chat.viewSteps_other,searchedWeb:P.chat.stepSearchedWeb,searchedMemory:P.chat.stepSearchedMemory,searchedCode:P.chat.stepSearchedCode,searched:P.chat.stepSearched,readFile:P.chat.stepReadFile,stepDetails:P.chat.stepDetails,runCommand:P.chat.stepRunCommand,listDirectory:P.chat.stepListDirectory,writeFile:P.chat.stepWriteFile,editFile:P.chat.stepEditFile,openUrl:P.chat.stepOpenUrl,fetchUrl:P.chat.stepFetchUrl,unknownTool:P.chat.stepUnknownTool,activityCompleted:P.chat.activityCompleted,activityPartial:P.chat.activityPartial,activityFailedCount:P.chat.activityFailedCount,activityAnalysisComplete:P.chat.activityAnalysisComplete,toolFailedImpact:P.chat.toolFailedImpact,rawThinking:P.chat.rawThinking,toolRunning:P.chat.toolRunning,toolError:P.chat.toolError,memoryActivity:P.chat.memoryActivity},t[6]=P.chat.activityAnalysisComplete,t[7]=P.chat.activityCompleted,t[8]=P.chat.activityFailedCount,t[9]=P.chat.activityPartial,t[10]=P.chat.memoryActivity,t[11]=P.chat.rawThinking,t[12]=P.chat.stepDetails,t[13]=P.chat.stepEditFile,t[14]=P.chat.stepFetchUrl,t[15]=P.chat.stepListDirectory,t[16]=P.chat.stepOpenUrl,t[17]=P.chat.stepReadFile,t[18]=P.chat.stepRunCommand,t[19]=P.chat.stepSearched,t[20]=P.chat.stepSearchedCode,t[21]=P.chat.stepSearchedMemory,t[22]=P.chat.stepSearchedWeb,t[23]=P.chat.stepUnknownTool,t[24]=P.chat.stepWriteFile,t[25]=P.chat.thoughts,t[26]=P.chat.thoughtsStreaming,t[27]=P.chat.toolError,t[28]=P.chat.toolFailedImpact,t[29]=P.chat.toolRunning,t[30]=P.chat.viewSteps_one,t[31]=P.chat.viewSteps_other,t[32]=U):U=t[32];let W=U,G;t[33]!==P.chat.stepsClusterJoin||t[34]!==P.chat.stepsClusterJoinFinal||t[35]!==P.chat.stepsClusterMoreSuffix?(G={join:P.chat.stepsClusterJoin,joinFinal:P.chat.stepsClusterJoinFinal,moreSuffix:P.chat.stepsClusterMoreSuffix},t[33]=P.chat.stepsClusterJoin,t[34]=P.chat.stepsClusterJoinFinal,t[35]=P.chat.stepsClusterMoreSuffix,t[36]=G):G=t[36];let K;t[37]!==P.chat.stepsClusterDone||t[38]!==P.chat.stepsClusterIng||t[39]!==G?(K={done:P.chat.stepsClusterDone,ing:P.chat.stepsClusterIng,join:G},t[37]=P.chat.stepsClusterDone,t[38]=P.chat.stepsClusterIng,t[39]=G,t[40]=K):K=t[40];let ee=K,q=P.chat.toolCard,te=x===`off`,ne;t[41]!==L||t[42]!==o||t[43]!==n||t[44]!==x?(ne=L?F0({message:n,isStreaming:o,reasoningLevel:x}):null,t[41]=L,t[42]=o,t[43]=n,t[44]=x,t[45]=ne):ne=t[45];let re=ne,ie;t[46]!==re?.displayContent||t[47]!==n.content?(ie=re?.displayContent??n.content??[],t[46]=re?.displayContent,t[47]=n.content,t[48]=ie):ie=t[48];let ae=ie,oe;t[49]!==re?.flowContent||t[50]!==ae||t[51]!==F?(oe=re?.flowContent??(F?ae.filter(l2):ae),t[49]=re?.flowContent,t[50]=ae,t[51]=F,t[52]=oe):oe=t[52];let se=oe,J;bb0:{if(re){J=re.deliverables.attachments;break bb0}J=n.attachments}let ce=J,le=!!re?.activity.blocks.length,ue=te||L&&le?null:s,de;t[53]!==n.content||t[54]!==te?(de=te?!1:!!n.content?.some(u2),t[53]=n.content,t[54]=te,t[55]=de):de=t[55];let fe=de,pe=L?!!re?.answer.showStreamingCursor:o,me=!!n.timestamp||!!ue?.message||o&&!fe,he=L&&!E&&!o&&!O,ge;t[56]!==he||t[57]!==n.content?(ge=he?KJ(n.content??[]):``,t[56]=he,t[57]=n.content,t[58]=ge):ge=t[58];let _e=ge,ve;t[59]!==he||t[60]!==_e||t[61]!==n.content?(ve=he&&_e?JJ(n.content??[]):``,t[59]=he,t[60]=_e,t[61]=n.content,t[62]=ve):ve=t[62];let ye=ve,be;t[63]!==he||t[64]!==_e?(be=he&&_e?e0(_e):``,t[63]=he,t[64]=_e,t[65]=be):be=t[65];let xe=be,Se=`${i??`chat`}:${n.timestamp??l??_e.length}`,Ce;t[66]!==P.chat.messageReadAloudTitle||t[67]!==Se?(Ce={type:`chat-message`,id:Se,title:P.chat.messageReadAloudTitle},t[66]=P.chat.messageReadAloudTitle,t[67]=Se,t[68]=Ce):Ce=t[68];let we;t[69]!==M||t[70]!==xe?(we=n0(xe,M),t[69]=M,t[70]=xe,t[71]=we):we=t[71];let Te;t[72]!==xe||t[73]!==Ce||t[74]!==we?(Te={source:Ce,text:xe,language:we},t[72]=xe,t[73]=Ce,t[74]=we,t[75]=Te):Te=t[75];let Ee=Te,De;bb1:{if(!F){De=``;break bb1}let e;t[76]===n.content?e=t[77]:(e=aF(n.content),t[76]=n.content,t[77]=e),De=e}let Oe=De,[ke,Ae]=(0,Z.useState)(null),[je,Me]=(0,Z.useState)(null),[Ne,Pe]=(0,Z.useState)(null),[Y,Fe]=(0,Z.useState)(null),[Ie,Le]=(0,Z.useState)(!1),[Re,X]=(0,Z.useState)(!1),[ze,Be]=(0,Z.useState)(!1),[Ve,He]=(0,Z.useState)(!1),[Ue,We]=(0,Z.useState)(null),Ge;t[78]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=[],t[78]=Ge):Ge=t[78];let[Ke,qe]=(0,Z.useState)(Ge),[Je,Ye]=(0,Z.useState)(!1),[Xe,Ze]=(0,Z.useState)(!1),[Qe,$e]=(0,Z.useState)(null),[et,tt]=(0,Z.useState)(!1),[nt,rt]=(0,Z.useState)(!1),it=(0,Z.useRef)(null),at;t[79]===Symbol.for(`react.memo_cache_sentinel`)?(at=(e,t)=>{let n=BJ(e,t);n&&$e(n)},t[79]=at):at=t[79];let ot=at,st;t[80]!==n.renderKey||t[81]!==i?(st=()=>{!i||!n.renderKey||SL.getState().completeProgressiveRender(i,n.renderKey)},t[80]=n.renderKey,t[81]=i,t[82]=st):st=t[82];let ct=st,lt;t[83]===ye?lt=t[84]:(lt=()=>{ye&&k(ye).then(e=>{e&&(Ae(`plain`),window.setTimeout(()=>Ae(d2),2e3))})},t[83]=ye,t[84]=lt);let ut=lt,dt;t[85]===_e?dt=t[86]:(dt=()=>{_e&&k(_e).then(e=>{e&&(Ae(`markdown`),window.setTimeout(()=>Ae(Gse),2e3))})},t[85]=_e,t[86]=dt);let ft=dt,pt;t[87]!==Ne||t[88]!==_e||t[89]!==m?(pt=()=>{!_e||!m||Ne||(Pe(`save-note`),Promise.resolve(m(_e)).then(()=>{Me(`save-note`),window.setTimeout(()=>Me(Kse),2e3)}).catch(qse).finally(()=>Pe(null)))},t[87]=Ne,t[88]=_e,t[89]=m,t[90]=pt):pt=t[90];let mt=pt,ht;t[91]!==Ne||t[92]!==_e||t[93]!==ye||t[94]!==h?(ht=()=>{!ye&&!_e||!h||Ne||(Pe(`extract-task`),Promise.resolve(h(ye||_e)).then(()=>{Me(`extract-task`),window.setTimeout(()=>Me(Jse),2e3)}).catch(Yse).finally(()=>Pe(null)))},t[91]=Ne,t[92]=_e,t[93]=ye,t[94]=h,t[95]=ht):ht=t[95];let gt=ht,_t;t[96]===Oe?_t=t[97]:(_t=()=>{Oe&&k(Oe).then(e=>{e&&(Ae(`user`),window.setTimeout(()=>Ae(Xse),2e3))})},t[96]=Oe,t[97]=_t);let vt=_t,yt;t[98]!==n.turnId||t[99]!==Re?(yt=(e,t)=>{!n.turnId||Re||(X(!0),Le(!0),Be(!1),B(z(`/api/you/turns/${encodeURIComponent(n.turnId)}/feedback`),{method:`POST`,body:JSON.stringify({rating:e===`helpful`?`helpful`:`irrelevant`,reason:t})}).then(()=>{Fe(e),We(t??null),He(!1)}).catch(()=>Be(!0)).finally(()=>X(!1)))},t[98]=n.turnId,t[99]=Re,t[100]=yt):yt=t[100];let bt=yt,xt;t[101]!==P.chat.messageFeedbackRepairPrompts||t[102]!==Ue?(xt=()=>{Ue&&Yq(P.chat.messageFeedbackRepairPrompts[Ue])},t[101]=P.chat.messageFeedbackRepairPrompts,t[102]=Ue,t[103]=xt):xt=t[103];let St=xt,Ct;t[104]!==n.turnId||t[105]!==Re||t[106]!==Ie?(Ct=()=>{!n.turnId||Ie||Re||(X(!0),B(z(`/api/you/turns/${encodeURIComponent(n.turnId)}/personalization`)).then(e=>{qe(e.personalization.items.filter(Zse).map(Qse))}).catch($se).finally(()=>{Le(!0),X(!1)}))},t[104]=n.turnId,t[105]=Re,t[106]=Ie,t[107]=Ct):Ct=t[107];let wt=Ct,Tt;t[108]!==l||t[109]!==u?(Tt=()=>{l==null||!u||Ze(!0)},t[108]=l,t[109]=u,t[110]=Tt):Tt=t[110];let Et=Tt,Dt;t[111]!==l||t[112]!==u?(Dt=()=>{l==null||!u||(u(l),Ze(!1))},t[111]=l,t[112]=u,t[113]=Dt):Dt=t[113];let Ot=Dt,kt;t[114]===Symbol.for(`react.memo_cache_sentinel`)?(kt=()=>{Ze(!1)},t[114]=kt):kt=t[114];let At=kt,jt;t[115]===F?jt=t[116]:(jt=()=>{if(!F)return;let e=it.current;if(!e)return;let t=()=>{let t=window.getComputedStyle(e),n=Number.parseFloat(t.lineHeight),r=Number.parseFloat(t.fontSize)||14,i=Number.isFinite(n)?n:r*1.625;rt(e.scrollHeight>i*10+1)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},t[115]=F,t[116]=jt);let Mt;t[117]!==se||t[118]!==F||t[119]!==Oe?(Mt=[F,se,Oe],t[117]=se,t[118]=F,t[119]=Oe,t[120]=Mt):Mt=t[120],(0,Z.useLayoutEffect)(jt,Mt);let Nt;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=()=>{tt(!1)},t[121]=Nt):Nt=t[121];let Pt;t[122]!==F||t[123]!==Oe?(Pt=[F,Oe],t[122]=F,t[123]=Oe,t[124]=Pt):Pt=t[124],(0,Z.useLayoutEffect)(Nt,Pt);let Ft=T||!w,It=D===`compact`&&`text-sm`,Lt=F?`justify-end`:`justify-start`,Rt;t[125]!==It||t[126]!==Lt?(Rt=C(`group/msg flex w-full min-w-0`,It,Lt),t[125]=It,t[126]=Lt,t[127]=Rt):Rt=t[127];let zt=E&&`max-w-full`,Bt=F?`flex w-full flex-col items-end`:`w-full`,Vt;t[128]!==zt||t[129]!==Bt?(Vt=C(`min-w-0 max-w-[min(85%,var(--max-width-chat))]`,zt,Bt),t[128]=zt,t[129]=Bt,t[130]=Vt):Vt=t[130];let Ht;t[131]===R?Ht=t[132]:(Ht=(0,$.jsx)(`span`,{className:`sr-only`,children:R}),t[131]=R,t[132]=Ht);let Ut;t[133]!==o||t[134]!==F||t[135]!==P.chat.thinkingLabel||t[136]!==n.timestamp||t[137]!==ue||t[138]!==me||t[139]!==fe?(Ut=F&&me?(0,$.jsxs)(`div`,{className:`mb-2 flex w-full min-w-0 flex-wrap items-center justify-end gap-x-2 gap-y-0.5 text-xs`,children:[n.timestamp?(0,$.jsx)(`time`,{suppressHydrationWarning:!0,className:`shrink-0 tabular-nums text-fg-disabled`,dateTime:new Date(n.timestamp).toISOString(),children:C1(n.timestamp)}):null,ue?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,title:ue.detail??``,children:ue.message}):null,o&&!fe&&!ue?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,children:P.chat.thinkingLabel}):null]}):null,t[133]=o,t[134]=F,t[135]=P.chat.thinkingLabel,t[136]=n.timestamp,t[137]=ue,t[138]=me,t[139]=fe,t[140]=Ut):Ut=t[140];let Wt;t[141]!==o||t[142]!==F||t[143]!==P.chat.thinkingLabel||t[144]!==n.timestamp||t[145]!==ue||t[146]!==me||t[147]!==fe?(Wt=!F&&me?(0,$.jsxs)(`div`,{className:`mb-2 flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-xs text-fg-disabled`,children:[n.timestamp?(0,$.jsx)(`time`,{suppressHydrationWarning:!0,className:`tabular-nums`,dateTime:new Date(n.timestamp).toISOString(),children:C1(n.timestamp)}):null,ue?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,title:ue.detail??``,children:ue.message}):null,o&&!fe&&!ue?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,children:P.chat.thinkingLabel}):null]}):null,t[141]=o,t[142]=F,t[143]=P.chat.thinkingLabel,t[144]=n.timestamp,t[145]=ue,t[146]=me,t[147]=fe,t[148]=Wt):Wt=t[148];let Gt=F?`ltr`:void 0,Kt=F&&`w-fit max-w-full rounded-xl border border-edge-subtle/70 bg-surface-hover/90 px-4 py-3 text-left shadow-sm dark:border-edge-subtle dark:bg-surface-hover/50`,qt;t[149]===Kt?qt=t[150]:(qt=C(`min-w-0 text-sm leading-relaxed text-fg`,Kt),t[149]=Kt,t[150]=qt);let Jt;t[151]!==re?.activity||t[152]!==q||t[153]!==ee||t[154]!==ct||t[155]!==se||t[156]!==L||t[157]!==o||t[158]!==F||t[159]!==M||t[160]!==P.chat.attachmentPreviewImage||t[161]!==P.chat.userMessageCollapse||t[162]!==P.chat.userMessageExpand||t[163]!==n.progressiveRender||t[164]!==a||t[165]!==i||t[166]!==pe||t[167]!==W||t[168]!==H||t[169]!==nt||t[170]!==et?(Jt=(se?.length??0)>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{ref:F?it:void 0,className:C(`min-w-0`,F&&`flex flex-col gap-2`,F&&!et&&`overflow-hidden`),style:F&&!et?{maxHeight:`calc(10lh)`}:void 0,children:(0,$.jsx)(S1,{content:se,isUser:F,isAssistantMessageStreaming:L&&o,toolLabels:H,stepLabels:W,clusterLabels:ee,cardLabels:q,imagePreviewLabel:P.chat.attachmentPreviewImage,onImagePreview:ot,sessionKey:i,projectId:a,workflowOptions:{labels:w1(M)},assistantActivity:re?.activity,progressiveRender:!!n.progressiveRender,onProgressiveRenderComplete:ct})}),F&&nt?(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex w-fit items-center gap-1 rounded-md px-1.5 py-1 text-xs font-medium text-accent transition-colors hover:bg-accent/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,onClick:()=>tt(ece),"aria-expanded":et,children:[et?(0,$.jsx)(_o,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(fo,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:et?P.chat.userMessageCollapse:P.chat.userMessageExpand})]}):null,pe?(0,$.jsx)(`span`,{className:`inline-block h-3 w-0.5 animate-pulse bg-accent align-middle`}):null]}):pe?(0,$.jsx)(`span`,{className:`inline-block h-3 w-0.5 animate-pulse bg-accent`}):null,t[151]=re?.activity,t[152]=q,t[153]=ee,t[154]=ct,t[155]=se,t[156]=L,t[157]=o,t[158]=F,t[159]=M,t[160]=P.chat.attachmentPreviewImage,t[161]=P.chat.userMessageCollapse,t[162]=P.chat.userMessageExpand,t[163]=n.progressiveRender,t[164]=a,t[165]=i,t[166]=pe,t[167]=W,t[168]=H,t[169]=nt,t[170]=et,t[171]=Jt):Jt=t[171];let Yt;t[172]!==re||t[173]!==r||t[174]!==P.chat.messageArtifactsHeading||t[175]!==P.chat.searchSourcesHeading||t[176]!==a||t[177]!==i?(Yt=re?(0,$.jsx)(n2,{view:re,authToken:r,sessionKey:i,projectId:a,deliverablesLabel:P.chat.messageArtifactsHeading,sourcesLabel:P.chat.searchSourcesHeading.replace(`{{count}}`,String(re.sources.length))}):null,t[172]=re,t[173]=r,t[174]=P.chat.messageArtifactsHeading,t[175]=P.chat.searchSourcesHeading,t[176]=a,t[177]=i,t[178]=Yt):Yt=t[178];let Xt;t[179]!==ce||t[180]!==r||t[181]!==F||t[182]!==i||t[183]!==Oe?(Xt=ce?.length?F?(0,$.jsx)(Gq,{attachments:ce,authToken:r,sessionKey:i,layout:`user`,centerUserVoiceRow:Oe.length===0}):(0,$.jsx)(r2,{attachments:ce,authToken:r,sessionKey:i}):null,t[179]=ce,t[180]=r,t[181]=F,t[182]=i,t[183]=Oe,t[184]=Xt):Xt=t[184];let Zt;t[185]!==Jt||t[186]!==Yt||t[187]!==Xt?(Zt=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[Jt,Yt,Xt]}),t[185]=Jt,t[186]=Yt,t[187]=Xt,t[188]=Zt):Zt=t[188];let Qt;t[189]!==Gt||t[190]!==qt||t[191]!==Zt?(Qt=(0,$.jsx)(`div`,{dir:Gt,className:qt,children:Zt}),t[189]=Gt,t[190]=qt,t[191]=Zt,t[192]=Qt):Qt=t[192];let $t;t[193]!==ke||t[194]!==T||t[195]!==vt||t[196]!==o||t[197]!==F||t[198]!==P.chat.messageCopied||t[199]!==P.chat.userMessageActionsWait||t[200]!==P.chat.userMessageCopy||t[201]!==P.chat.userMessageDelete||t[202]!==P.chat.userMessageEdit||t[203]!==P.chat.userMessageRetry||t[204]!==P.chat.userMessageRetryDisabledHint||t[205]!==l||t[206]!==u||t[207]!==y||t[208]!==d||t[209]!==Et||t[210]!==E||t[211]!==Ft||t[212]!==Oe||t[213]!==w?($t=F&&!o&&!E?(0,$.jsx)(`div`,{className:`mt-1.5 flex h-8 w-full min-w-0 shrink-0 justify-end`,children:(0,$.jsxs)(`div`,{className:C(`flex h-full max-w-full items-center justify-end gap-0.5 sm:gap-2`,`pointer-events-none opacity-0 transition-opacity duration-150 ease-out`,`group-hover/msg:pointer-events-auto group-hover/msg:opacity-100`,`group-focus-within/msg:pointer-events-auto group-focus-within/msg:opacity-100`,`[@media(hover:none)_and_(pointer:coarse)]:pointer-events-auto [@media(hover:none)_and_(pointer:coarse)]:opacity-100`),children:[d&&l!=null?(0,$.jsxs)(`button`,{type:`button`,className:C(o2,Ft&&`opacity-40`),onClick:()=>d(l),disabled:Ft,title:T?P.chat.userMessageActionsWait:w?P.chat.userMessageRetry:P.chat.userMessageRetryDisabledHint,"aria-label":P.chat.userMessageRetry,children:[(0,$.jsx)(ky,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`max-w-[4.5rem] truncate sm:max-w-none`,children:P.chat.userMessageRetry})]}):null,(0,$.jsx)(`button`,{type:`button`,className:C(o2,`size-8 px-0`),onClick:()=>(y??Yq)(Oe),disabled:!Oe,title:P.chat.userMessageEdit,"aria-label":P.chat.userMessageEdit,children:(0,$.jsx)(hy,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,className:C(o2,`size-8 px-0`),onClick:vt,disabled:!Oe,title:ke===`user`?P.chat.messageCopied:P.chat.userMessageCopy,"aria-label":ke===`user`?P.chat.messageCopied:P.chat.userMessageCopy,children:ke===`user`?(0,$.jsx)(S,{className:`size-3.5 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(tl,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}),u&&l!=null&&!T?(0,$.jsx)(`button`,{type:`button`,className:C(o2,`size-8 px-0 hover:text-red-500 dark:hover:text-red-400`),onClick:Et,title:P.chat.userMessageDelete,"aria-label":P.chat.userMessageDelete,children:(0,$.jsx)(pS,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}):null]})}):null,t[193]=ke,t[194]=T,t[195]=vt,t[196]=o,t[197]=F,t[198]=P.chat.messageCopied,t[199]=P.chat.userMessageActionsWait,t[200]=P.chat.userMessageCopy,t[201]=P.chat.userMessageDelete,t[202]=P.chat.userMessageEdit,t[203]=P.chat.userMessageRetry,t[204]=P.chat.userMessageRetryDisabledHint,t[205]=l,t[206]=u,t[207]=y,t[208]=d,t[209]=Et,t[210]=E,t[211]=Ft,t[212]=Oe,t[213]=w,t[214]=$t):$t=t[214];let en;t[215]!==Ne||t[216]!==je||t[217]!==he||t[218]!==ke||t[219]!==_e||t[220]!==ye||t[221]!==ft||t[222]!==ut||t[223]!==gt||t[224]!==bt||t[225]!==mt||t[226]!==wt||t[227]!==P.chat.messageCopied||t[228]!==P.chat.messageCopyMarkdown||t[229]!==P.chat.messageCopyPlainText||t[230]!==P.chat.messageExtractTask||t[231]!==P.chat.messageFeedbackUnavailable||t[232]!==P.chat.messageHelpful||t[233]!==P.chat.messageMoreActions||t[234]!==P.chat.messageNotHelpful||t[235]!==P.chat.messageReadAloud||t[236]!==P.chat.messageReadAloudPause||t[237]!==P.chat.messageReadAloudPreparing||t[238]!==P.chat.messageReadAloudResume||t[239]!==P.chat.messageReadAloudRetry||t[240]!==P.chat.messageSaveToNote||t[241]!==P.chat.messageSavedToNote||t[242]!==P.chat.messageTaskExtracted||t[243]!==P.chat.messageWhyThisAnswer||t[244]!==n.timestamp||t[245]!==h||t[246]!==m||t[247]!==Ee||t[248]!==Y||t[249]!==Re||t[250]!==A||t[251]!==ze||t[252]!==Ke||t[253]!==i?(en=he&&_e?(0,$.jsxs)(`div`,{className:`mt-2 flex shrink-0 flex-wrap items-center gap-2 overflow-visible`,onPointerEnter:wt,onFocusCapture:wt,children:[(0,$.jsx)(`button`,{type:`button`,className:i2,onClick:ut,disabled:!ye,title:ke===`plain`?P.chat.messageCopied:P.chat.messageCopyPlainText,"aria-label":ke===`plain`?P.chat.messageCopied:P.chat.messageCopyPlainText,children:ke===`plain`?(0,$.jsx)(S,{className:`size-4 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(tl,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsx)(E0,{input:Ee,labels:{read:P.chat.messageReadAloud,preparing:P.chat.messageReadAloudPreparing,pause:P.chat.messageReadAloudPause,resume:P.chat.messageReadAloudResume,retry:P.chat.messageReadAloudRetry}}),A&&i&&n.timestamp?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`button`,{type:`button`,className:C(i2,Y===`helpful`&&`bg-surface-active text-fg`),onClick:()=>bt(`helpful`),disabled:Re,title:P.chat.messageHelpful,"aria-label":P.chat.messageHelpful,"aria-pressed":Y===`helpful`,children:(0,$.jsx)(Px,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,className:C(i2,Y===`not_helpful`&&`bg-surface-active text-fg`),onClick:()=>He(tce),disabled:Re,title:P.chat.messageNotHelpful,"aria-label":P.chat.messageNotHelpful,"aria-pressed":Y===`not_helpful`,children:(0,$.jsx)(Nx,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),ze?(0,$.jsx)(`span`,{className:`text-xs text-danger`,role:`status`,children:P.chat.messageFeedbackUnavailable}):null]}):null,(0,$.jsxs)(QT,{children:[(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:i2,title:P.chat.messageMoreActions,"aria-label":P.chat.messageMoreActions,children:(0,$.jsx)(Du,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})})}),(0,$.jsx)(tE,{children:(0,$.jsxs)(nE,{side:`bottom`,align:`start`,sideOffset:6,className:`z-[70] w-56 rounded-xl border border-edge bg-surface-panel p-1.5 shadow-popover outline-none`,children:[(0,$.jsx)(rE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-xs text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:ft,children:[ke===`markdown`?(0,$.jsx)(S,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(ad,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),ke===`markdown`?P.chat.messageCopied:P.chat.messageCopyMarkdown]})}),Ke.length>0?(0,$.jsx)(rE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-xs text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:()=>Ye(nce),children:[(0,$.jsx)(fs,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),P.chat.messageWhyThisAnswer]})}):null,m?(0,$.jsx)(rE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-xs text-fg-muted hover:bg-surface-hover hover:text-fg disabled:opacity-40`,onClick:mt,disabled:!_e||Ne!==null,children:[je===`save-note`?(0,$.jsx)(S,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Ld,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),je===`save-note`?P.chat.messageSavedToNote:P.chat.messageSaveToNote]})}):null,h?(0,$.jsx)(rE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-xs text-fg-muted hover:bg-surface-hover hover:text-fg disabled:opacity-40`,onClick:gt,disabled:!ye&&!_e||Ne!==null,children:[je===`extract-task`?(0,$.jsx)(S,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Kg,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),je===`extract-task`?P.chat.messageTaskExtracted:P.chat.messageExtractTask]})}):null]})})]})]}):null,t[215]=Ne,t[216]=je,t[217]=he,t[218]=ke,t[219]=_e,t[220]=ye,t[221]=ft,t[222]=ut,t[223]=gt,t[224]=bt,t[225]=mt,t[226]=wt,t[227]=P.chat.messageCopied,t[228]=P.chat.messageCopyMarkdown,t[229]=P.chat.messageCopyPlainText,t[230]=P.chat.messageExtractTask,t[231]=P.chat.messageFeedbackUnavailable,t[232]=P.chat.messageHelpful,t[233]=P.chat.messageMoreActions,t[234]=P.chat.messageNotHelpful,t[235]=P.chat.messageReadAloud,t[236]=P.chat.messageReadAloudPause,t[237]=P.chat.messageReadAloudPreparing,t[238]=P.chat.messageReadAloudResume,t[239]=P.chat.messageReadAloudRetry,t[240]=P.chat.messageSaveToNote,t[241]=P.chat.messageSavedToNote,t[242]=P.chat.messageTaskExtracted,t[243]=P.chat.messageWhyThisAnswer,t[244]=n.timestamp,t[245]=h,t[246]=m,t[247]=Ee,t[248]=Y,t[249]=Re,t[250]=A,t[251]=ze,t[252]=Ke,t[253]=i,t[254]=en):en=t[254];let tn;t[255]!==he||t[256]!==P.chat.messageContextOrigins||t[257]!==P.chat.messageWhyThisAnswer||t[258]!==P.chat.messageWhyThisAnswerHint||t[259]!==Je||t[260]!==Ke?(tn=he&&Je&&Ke.length>0?(0,$.jsxs)(`div`,{className:`mt-2 w-full max-w-xl rounded-xl border border-edge-subtle bg-surface-elevated p-3`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:P.chat.messageWhyThisAnswer}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:P.chat.messageWhyThisAnswerHint}),(0,$.jsx)(`div`,{className:`mt-2 space-y-2`,children:Ke.map(e=>(0,$.jsxs)(`div`,{className:`rounded-lg bg-surface-panel px-3 py-2`,children:[(0,$.jsx)(`p`,{className:`text-xs leading-5 text-fg`,children:e.statement}),(0,$.jsx)(`p`,{className:`mt-1 text-[11px] text-fg-subtle`,children:e.origin===`connected_source`?P.chat.messageContextOrigins.connected_source.replace(`{{source}}`,e.sourceName):P.chat.messageContextOrigins[e.origin]})]},e.id))})]}):null,t[255]=he,t[256]=P.chat.messageContextOrigins,t[257]=P.chat.messageWhyThisAnswer,t[258]=P.chat.messageWhyThisAnswerHint,t[259]=Je,t[260]=Ke,t[261]=tn):tn=t[261];let nn;t[262]!==he||t[263]!==bt||t[264]!==P.chat.messageFeedbackReasonHint||t[265]!==P.chat.messageFeedbackReasonTitle||t[266]!==P.chat.messageFeedbackReasons||t[267]!==Re||t[268]!==Ve?(nn=he&&Ve?(0,$.jsxs)(`div`,{className:`mt-2 w-full max-w-xl rounded-xl border border-edge-subtle bg-surface-elevated p-3`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:P.chat.messageFeedbackReasonTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:P.chat.messageFeedbackReasonHint}),(0,$.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:a2.map(e=>(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg border border-edge bg-surface-panel px-2.5 py-1.5 text-xs font-medium text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,disabled:Re,onClick:()=>bt(`not_helpful`,e),children:P.chat.messageFeedbackReasons[e]},e))})]}):null,t[262]=he,t[263]=bt,t[264]=P.chat.messageFeedbackReasonHint,t[265]=P.chat.messageFeedbackReasonTitle,t[266]=P.chat.messageFeedbackReasons,t[267]=Re,t[268]=Ve,t[269]=nn):nn=t[269];let rn;t[270]!==he||t[271]!==P.chat.messageFeedbackRepair||t[272]!==St||t[273]!==Y||t[274]!==Ue?(rn=he&&Y===`not_helpful`&&Ue?(0,$.jsxs)(`button`,{type:`button`,className:`mt-2 inline-flex w-fit items-center gap-1.5 rounded-lg bg-accent-soft px-3 py-1.5 text-xs font-medium text-accent-fg hover:bg-accent-soft/80`,onClick:St,children:[(0,$.jsx)(ky,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),P.chat.messageFeedbackRepair]}):null,t[270]=he,t[271]=P.chat.messageFeedbackRepair,t[272]=St,t[273]=Y,t[274]=Ue,t[275]=rn):rn=t[275];let an;t[276]!==Vt||t[277]!==Ht||t[278]!==Ut||t[279]!==Wt||t[280]!==Qt||t[281]!==$t||t[282]!==en||t[283]!==tn||t[284]!==nn||t[285]!==rn?(an=(0,$.jsxs)(`div`,{className:Vt,children:[Ht,Ut,Wt,Qt,$t,en,tn,nn,rn]}),t[276]=Vt,t[277]=Ht,t[278]=Ut,t[279]=Wt,t[280]=Qt,t[281]=$t,t[282]=en,t[283]=tn,t[284]=nn,t[285]=rn,t[286]=an):an=t[286];let on;t[287]!==Ot||t[288]!==Xe||t[289]!==F||t[290]!==P.chat.userMessageDeleteCancel||t[291]!==P.chat.userMessageDeleteConfirm||t[292]!==P.chat.userMessageDeleteConfirmTitle||t[293]!==P.chat.userMessageDeleteOk||t[294]!==l||t[295]!==u||t[296]!==E?(on=F&&u&&l!=null&&!E?(0,$.jsx)(k1,{open:Xe,title:P.chat.userMessageDeleteConfirmTitle,description:P.chat.userMessageDeleteConfirm,confirmLabel:P.chat.userMessageDeleteOk,cancelLabel:P.chat.userMessageDeleteCancel,destructive:!0,onConfirm:Ot,onCancel:At}):null,t[287]=Ot,t[288]=Xe,t[289]=F,t[290]=P.chat.userMessageDeleteCancel,t[291]=P.chat.userMessageDeleteConfirm,t[292]=P.chat.userMessageDeleteConfirmTitle,t[293]=P.chat.userMessageDeleteOk,t[294]=l,t[295]=u,t[296]=E,t[297]=on):on=t[297];let sn=Qe!==null,cn;t[298]===Symbol.for(`react.memo_cache_sentinel`)?(cn=()=>$e(null),t[298]=cn):cn=t[298];let ln;t[299]!==r||t[300]!==Qe||t[301]!==i||t[302]!==sn?(ln=(0,$.jsx)(Nq,{open:sn,attachment:Qe,authToken:r,sessionKey:i,onClose:cn}),t[299]=r,t[300]=Qe,t[301]=i,t[302]=sn,t[303]=ln):ln=t[303];let un;return t[304]!==Rt||t[305]!==an||t[306]!==on||t[307]!==ln?(un=(0,$.jsxs)(`article`,{className:Rt,children:[an,on,ln]}),t[304]=Rt,t[305]=an,t[306]=on,t[307]=ln,t[308]=un):un=t[308],un});function c2(e){return e.language}function l2(e){return e.type!==`image`}function u2(e){return e.type===`thinking`&&e.streaming}function d2(e){return e===`plain`?null:e}function Gse(e){return e===`markdown`?null:e}function Kse(e){return e===`save-note`?null:e}function qse(){}function Jse(e){return e===`extract-task`?null:e}function Yse(){}function Xse(e){return e===`user`?null:e}function Zse(e){return e.objectType===`understanding`&&e.decision===`selected`}function Qse(e){return{id:e.objectId,statement:e.content,origin:`inferred`,sourceName:e.sourceLabel}}function $se(){}function ece(e){return!e}function tce(e){return!e}function nce(e){return!e}function rce(e,t){return e.renderKey??`${e.timestamp??`n`}-${t}`}var f2=(0,Z.memo)(function(e){let t=(0,Q.c)(36),{messages:n,authToken:r,sessionKey:i,projectId:a,streaming:o,progress:s,reasoningLevel:c,registerListContentRef:l,onPickWelcomePrompt:u,welcomeSpotlight:d,onRetryWelcomeContext:f,onRefreshWelcomeExploration:p,onSelectWelcomeProject:m,welcomeOverlay:h,onDeleteRound:g,onRetryUserMessageRound:_,deleteRoundDisabled:v,onSaveAssistantToSourceNote:y,onExtractAssistantTask:b,onEditUserMessage:x,responseFeedbackEnabled:S}=e,C=I(ice),w;t[0]===C?w=t[1]:(w=j(C),t[0]=C,t[1]=w);let T=w;if(n.length===0&&!o){if(h){let e;return t[2]===h?e=t[3]:(e=(0,$.jsx)(`div`,{className:`pb-1.5`,children:h}),t[2]=h,t[3]=e),e}if(u&&d){let e;return t[4]!==u||t[5]!==p||t[6]!==f||t[7]!==m||t[8]!==d?(e=(0,$.jsx)(`div`,{className:`pb-1.5`,children:(0,$.jsx)(Tq,{spotlight:d,onPickPrompt:u,onRetryContext:f,onRefreshExploration:p,onSelectProject:m})}),t[4]=u,t[5]=p,t[6]=f,t[7]=m,t[8]=d,t[9]=e):e=t[9],e}let e;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`div`,{className:`text-4xl`,"aria-hidden":!0,children:`🤖`}),t[10]=e):e=t[10];let n;t[11]===T.chat.welcomeTitle?n=t[12]:(n=(0,$.jsx)(`div`,{className:`text-xl font-semibold tracking-tight text-fg`,children:T.chat.welcomeTitle}),t[11]=T.chat.welcomeTitle,t[12]=n);let r;t[13]===T.chat.welcomeDescription?r=t[14]:(r=(0,$.jsx)(`div`,{className:`max-w-sm text-sm leading-relaxed text-fg-muted`,children:T.chat.welcomeDescription}),t[13]=T.chat.welcomeDescription,t[14]=r);let i;return t[15]!==n||t[16]!==r?(i=(0,$.jsx)(`div`,{className:`flex flex-col gap-10 pb-8`,children:(0,$.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 py-20 text-center`,children:[e,n,r]})}),t[15]=n,t[16]=r,t[17]=i):i=t[17],i}let E;t[18]!==r||t[19]!==v||t[20]!==n||t[21]!==g||t[22]!==x||t[23]!==b||t[24]!==_||t[25]!==y||t[26]!==s||t[27]!==a||t[28]!==c||t[29]!==S||t[30]!==i||t[31]!==o?(E=n.map((e,t)=>{let l=t===n.length-1,u=!!(o&&l&&e.role===`assistant`),d=oF(n,t),f=rce(e,t);return(0,$.jsx)(`div`,{id:`chat-message-${t}`,className:`scroll-mt-4`,"data-chat-message-index":t,children:(0,$.jsx)(s2,{message:e,authToken:r,sessionKey:i,projectId:a,isStreaming:u,progress:u?s:null,reasoningLevel:c,messageIndex:t,onDeleteRound:g,onRetryUserMessageRound:_,userMessageCanRetry:!!_&&d,deleteRoundDisabled:!!(v&&d),onSaveAssistantToSourceNote:y,onExtractAssistantTask:b,suppressAssistantActions:u,onEditUserMessage:x,responseFeedbackEnabled:S})},f)}),t[18]=r,t[19]=v,t[20]=n,t[21]=g,t[22]=x,t[23]=b,t[24]=_,t[25]=y,t[26]=s,t[27]=a,t[28]=c,t[29]=S,t[30]=i,t[31]=o,t[32]=E):E=t[32];let D;return t[33]!==l||t[34]!==E?(D=(0,$.jsx)(`div`,{ref:l,className:`flex w-full min-w-0 flex-col gap-10 pb-8`,children:E}),t[33]=l,t[34]=E,t[35]=D):D=t[35],D});function ice(e){return e.language}var p2=(0,Z.memo)(function(e){let t=(0,Q.c)(11),{visible:n,onClick:r,contained:i}=e,a=i===void 0?!1:i,o=I(ace),s;t[0]===o?s=t[1]:(s=j(o),t[0]=o,t[1]=s);let c=s;if(!n)return null;let l=a?`absolute bottom-4 right-4 size-9`:`fixed bottom-[calc(11rem+env(safe-area-inset-bottom,0px))] right-6 size-11 md:right-10`,u;t[2]===l?u=t[3]:(u=C(`z-20 flex items-center justify-center rounded-full border border-edge bg-surface-panel text-fg-subtle shadow-float`,l,`hover:bg-surface-hover hover:text-fg dark:border-edge dark:shadow-none`,aT.transition,aT.press,aT.focusRingPanel),t[2]=l,t[3]=u);let d=a?`size-5`:`size-6`,f;t[4]===d?f=t[5]:(f=(0,$.jsx)(fo,{className:d,"aria-hidden":!0}),t[4]=d,t[5]=f);let p;return t[6]!==c.chat.scrollToBottom||t[7]!==r||t[8]!==u||t[9]!==f?(p=(0,$.jsx)(`button`,{type:`button`,className:u,onClick:r,title:c.chat.scrollToBottom,"aria-label":c.chat.scrollToBottom,children:f}),t[6]=c.chat.scrollToBottom,t[7]=r,t[8]=u,t[9]=f,t[10]=p):p=t[10],p});function ace(e){return e.language}function oce(e){return e.scrollHeight-e.scrollTop-e.clientHeight}function sce(e,t=48){return oce(e)<=t}function cce(e){e.scrollTop=e.scrollHeight}function lce(e){return e.webkitDirectionInvertedFromDevice===!0?e.deltaY>0:e.deltaY<0}function m2({hasToken:e,showSessionLoading:t,sessionKey:n,sending:r,chatMessages:i,hasMore:a,loadingMore:o,loadMoreMessages:s}){let c=(0,Z.useRef)(null),l=(0,Z.useRef)(null),u=(0,Z.useRef)(!0),d=(0,Z.useRef)(null),[f,p]=(0,Z.useState)(!0),m=(0,Z.useRef)(!0),h=(0,Z.useRef)(!1),g=(0,Z.useRef)(0),_=(0,Z.useRef)({first:void 0,len:0,scrollHeight:0}),v=(0,Z.useCallback)(e=>{u.current=e,p(t=>t===e?t:e)},[]),y=(0,Z.useCallback)(e=>{let t=c.current;if(t&&!(!e?.force&&!u.current)){if(e?.force&&v(!0),e?.smooth){t.scrollTo({top:t.scrollHeight,behavior:`smooth`});return}cce(t)}},[v]),b=(0,Z.useCallback)(()=>{v(!1)},[v]),x=(0,Z.useCallback)(e=>{if(l.current===e||(d.current?.disconnect(),d.current=null,l.current=e,!e))return;let t=new ResizeObserver(()=>{y()});t.observe(e),d.current=t},[y]);(0,Z.useEffect)(()=>()=>{d.current?.disconnect()},[]);let S=(0,Z.useCallback)(()=>{let e=c.current;if(!e)return;let t=sce(e);v(t),e.scrollTop<100&&!t&&a&&!o&&s()},[v,a,o,s]),C=(0,Z.useCallback)((e=!0)=>{y({force:!0,smooth:e})},[y]);(0,Z.useLayoutEffect)(()=>{if(e){if(t){m.current=!0;return}m.current===!0&&(m.current=!1,v(!0),y({force:!0}))}},[t,e,v,y]),(0,Z.useLayoutEffect)(()=>{!e||t||(_.current={first:void 0,len:0,scrollHeight:0},g.current=0,v(!0),y({force:!0}))},[n,e,t,v,y]);let w=e&&r&&!h.current&&!t;return(0,Z.useLayoutEffect)(()=>{h.current=r,w&&(v(!0),y({force:!0}))},[w,r,v,y]),(0,Z.useLayoutEffect)(()=>{if(t)return;let e=i.length,n=g.current;g.current=e,e>n&&u.current&&y()},[i.length,t,y]),(0,Z.useLayoutEffect)(()=>{let e=c.current;if(!e||t)return;let n=_.current,r=i[0],a=i.length,o=e.scrollHeight;a>n.len&&n.len>0&&r!==void 0&&r!==n.first&&n.scrollHeight>0&&(e.scrollTop+=o-n.scrollHeight),_.current={first:r,len:a,scrollHeight:o}},[i,t]),(0,Z.useLayoutEffect)(()=>{if(!e||t)return;let n=c.current;if(!n)return;let r=e=>{Math.abs(e.deltaY)<Math.abs(e.deltaX)||Math.abs(e.deltaY)<.25||lce(e)&&b()},i=0,a=e=>{e.touches.length===1&&(i=e.touches[0].clientY)},o=e=>{if(e.touches.length!==1)return;let t=e.touches[0].clientY,n=t-i;i=t,n>2&&b()},s=e=>{if(e.button!==0)return;let t=n.offsetWidth-n.clientWidth;if(t<=0)return;let r=n.getBoundingClientRect();e.clientX>=r.right-t&&b()};return n.addEventListener(`wheel`,r,{passive:!0}),n.addEventListener(`pointerdown`,s),n.addEventListener(`touchstart`,a,{passive:!0}),n.addEventListener(`touchmove`,o,{passive:!0}),()=>{n.removeEventListener(`wheel`,r),n.removeEventListener(`pointerdown`,s),n.removeEventListener(`touchstart`,a),n.removeEventListener(`touchmove`,o)}},[e,t,b]),{scrollRef:c,atBottom:f,registerListContentRef:x,scrollToBottom:C,onScroll:S}}var h2=`xopc:side-chat-panes:v2`;function g2(e){return Math.min(760,Math.max(360,Math.round(e)))}function uce(){return{panes:{},tabs:[],widthPx:520}}function dce(){try{let e=JSON.parse(sessionStorage.getItem(h2)||`{}`),t=Array.isArray(e.tabs)?e.tabs.filter(e=>!!(e?.id&&e.parentSessionKey)):[],n=e.panes&&typeof e.panes==`object`?e.panes:{},r=Object.fromEntries(Object.entries(n).map(([e,n])=>{let r=t.filter(t=>t.parentSessionKey===e),i=typeof n?.activeId==`string`&&r.some(e=>e.id===n.activeId)?n.activeId:r.at(-1)?.id??null;return[e,{open:n?.open===!0&&r.length>0,activeId:i}]}));for(let e of t)r[e.parentSessionKey]??={open:!1,activeId:e.id};return{panes:r,tabs:t,widthPx:g2(typeof e.widthPx==`number`?e.widthPx:520)}}catch{return uce()}}function fce(e){try{sessionStorage.setItem(h2,JSON.stringify(e))}catch{}}var pce=dce(),_2=R((e,t)=>{let n=n=>{e(n),queueMicrotask(()=>{let e=t();fce({panes:e.panes,tabs:e.tabs,widthPx:e.widthPx})})},r=(e,r)=>{let i=t().panes[e]??{open:!1,activeId:null};n({panes:{...t().panes,[e]:{...i,...r}}})};return{...pce,pendingCreate:null,requestCreate:(t,n=[])=>{e({pendingCreate:{requestId:crypto.randomUUID(),parentSessionKey:t,selections:n}}),r(t,{open:!0})},claimPendingCreate:(n,r)=>{let i=t().pendingCreate;return!i||i.parentSessionKey!==n||i.requestId!==r?null:(e({pendingCreate:null}),i)},addTab:e=>{let r=[...t().tabs.filter(t=>t.id!==e.id),e],i=t().panes[e.parentSessionKey]??{open:!1,activeId:null};n({tabs:r,panes:{...t().panes,[e.parentSessionKey]:{...i,activeId:e.id,open:!0}}})},removeTab:e=>{let r=t().tabs.find(t=>t.id===e);if(!r)return;let i=t().tabs.filter(t=>t.id!==e),a=i.filter(e=>e.parentSessionKey===r.parentSessionKey),o=t().panes[r.parentSessionKey]??{open:!1,activeId:null},s=o.activeId===e?a.at(-1)?.id??null:o.activeId;n({tabs:i,panes:{...t().panes,[r.parentSessionKey]:{open:a.length>0&&o.open,activeId:s}}})},setActive:e=>{let n=t().tabs.find(t=>t.id===e);n&&r(n.parentSessionKey,{activeId:e,open:!0})},setTabRunId:(e,r)=>n({tabs:t().tabs.map(t=>t.id===e?{...t,runId:r}:t)}),setOpen:(e,t)=>r(e,{open:t}),setWidthPx:e=>n({widthPx:g2(e)})}}),v2=`xopc:side-chat-client-id`;function y2(){let e=sessionStorage.getItem(v2);if(e)return e;let t=crypto.randomUUID();return sessionStorage.setItem(v2,t),t}function b2(){return{"x-xopc-client-instance-id":y2()}}async function mce(e,t){return(await B(z(`/api/sessions/${encodeURIComponent(e)}/side-chats`),{method:`POST`,headers:b2(),body:JSON.stringify({clientInstanceId:y2(),selections:t})})).sideChat}async function hce(e){return(await B(z(`/api/side-chats/${e}`),{headers:b2()})).sideChat}async function gce(e){return(await B(z(`/api/side-chats/${e}/messages`),{headers:b2()})).messages}async function _ce(e,t){return(await B(z(`/api/side-chats/${e}/inputs`),{method:`POST`,headers:b2(),body:JSON.stringify({content:t})})).payload.runId}async function x2(e,t){await B(z(`/api/side-chats/${e}/abort`),{method:`POST`,headers:b2(),body:JSON.stringify({runId:t})})}async function vce(e,t,n){await B(z(`/api/side-chats/${e}/clarify/${t}`),{method:`POST`,headers:b2(),body:JSON.stringify({answer:n})})}async function yce(e){await B(z(`/api/side-chats/${e}`),{method:`DELETE`,headers:b2()})}function bce(e){L(z(`/api/side-chats/${e}/heartbeat`),{method:`POST`,headers:b2()}).catch(()=>{})}function xce(){let e=y2();L(z(`/api/side-chats?clientInstanceId=${encodeURIComponent(e)}`),{method:`DELETE`,headers:b2(),keepalive:!0}).catch(()=>{})}var Sce=()=>{};function S2(e){return e.role===`user`?e.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
134
|
-
`).trim():``}function Cce(e,t){let n=[...e];for(let[e,r]of t){let i=S2(r),a=r.timestamp??0;if(n.some(e=>e.role===`user`&&S2(e)===i&&Math.abs((e.timestamp??a)-a)<6e4)){t.delete(e);continue}let o=n.findIndex(e=>(e.timestamp??1/0)>a);o<0?n.push(r):n.splice(o,0,r)}return n}function wce(e){let t=(0,Q.c)(67),{parentSessionKey:n}=e,r;t[0]===n?r=t[1]:(r=e=>e.panes[n]?.open===!0,t[0]=n,t[1]=r);let i=_2(r),a=_2(Lce),o;if(t[2]!==a||t[3]!==n){let e;t[5]===n?e=t[6]:(e=e=>e.parentSessionKey===n,t[5]=n,t[6]=e),o=a.filter(e),t[2]=a,t[3]=n,t[4]=o}else o=t[4];let s=o,c;t[7]===n?c=t[8]:(c=e=>e.panes[n]?.activeId??null,t[7]=n,t[8]=c);let l=_2(c),u=_2(Ice),d=_2(Fce),f=_2(Pce),p=_2(Nce),m=_2(Mce),h=_2(jce),g=_2(Ace),_=_2(kce),v=_2(Oce),y=_2(Dce),b=F(Ece),x;t[9]!==l||t[10]!==s?(x=s.find(e=>e.id===l)??null,t[9]=l,t[10]=s,t[11]=x):x=t[11];let S=x,[w,T]=(0,Z.useState)(!1),[E,D]=(0,Z.useState)(null),[O,k]=(0,Z.useState)(!1),A,j;t[12]!==p||t[13]!==f||t[14]!==n||t[15]!==u?(A=()=>{if(!u||u.parentSessionKey!==n)return;let e=f(n,u.requestId);e&&(T(!0),D(null),mce(e.parentSessionKey,e.selections).then(e=>{p({id:e.id,parentSessionKey:e.parentSessionKey,title:`Side chat`})}).catch(e=>{D(e instanceof Error?e.message:String(e))}).finally(()=>{T(!1)}))},j=[p,f,n,u],t[12]=p,t[13]=f,t[14]=n,t[15]=u,t[16]=A,t[17]=j):(A=t[16],j=t[17]),(0,Z.useEffect)(A,j);let M;t[18]===m?M=t[19]:(M=e=>{m(e),yce(e).catch(Tce)},t[18]=m,t[19]=M);let N=M,P;t[20]===v?P=t[21]:(P=e=>{e.preventDefault();let t=e.clientX,n=_2.getState().widthPx,r=e.pointerId;e.currentTarget.setPointerCapture(r),k(!0);let i=e=>{let r=Math.min(760,Math.max(360,n+t-e.clientX));document.getElementById(`app-side-chat-panel`)?.style.setProperty(`--side-chat-panel-px`,`${r}px`)},a=e=>{v(Math.min(760,Math.max(360,n+t-e.clientX))),k(!1),window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),window.removeEventListener(`pointercancel`,a)};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a),window.addEventListener(`pointercancel`,a)},t[20]=v,t[21]=P);let I=P;if(!i)return null;let L=O&&`side-chat-panel-resizing`,R;t[22]===L?R=t[23]:(R=C(`relative flex min-h-0 shrink-0 flex-col overflow-hidden border-l border-edge bg-surface-base`,`max-md:fixed max-md:inset-y-0 max-md:right-0 max-md:z-50 max-md:w-[min(92vw,34rem)] max-md:shadow-popover`,`app-side-chat-expanded-width`,L),t[22]=L,t[23]=R);let z=`${_}px`,B;t[24]===z?B=t[25]:(B={"--side-chat-panel-px":z},t[24]=z,t[25]=B);let V=B,H;t[26]===I?H=t[27]:(H=(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize side chat`,onPointerDown:I,className:`absolute left-0 top-0 z-20 hidden h-full w-2 cursor-col-resize touch-none md:block`}),t[26]=I,t[27]=H);let U;if(t[28]!==l||t[29]!==N||t[30]!==h||t[31]!==s){let e;t[33]!==l||t[34]!==N||t[35]!==h?(e=e=>(0,$.jsxs)(`div`,{className:C(`flex h-8 shrink-0 items-center rounded-lg pl-3 text-sm`,e.id===l?`bg-surface-hover text-fg`:`text-fg-muted`),children:[(0,$.jsx)(`button`,{type:`button`,className:`max-w-32 truncate`,onClick:()=>h(e.id),children:e.title}),(0,$.jsx)(`button`,{type:`button`,className:`flex size-8 items-center justify-center rounded-md hover:bg-surface-active`,"aria-label":`Close side chat`,onClick:()=>N(e.id),children:(0,$.jsx)(Aw,{className:`size-3.5`})})]},e.id),t[33]=l,t[34]=N,t[35]=h,t[36]=e):e=t[36],U=s.map(e),t[28]=l,t[29]=N,t[30]=h,t[31]=s,t[32]=U}else U=t[32];let W;t[37]!==n||t[38]!==d?(W=()=>d(n),t[37]=n,t[38]=d,t[39]=W):W=t[39];let G;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsx)(xy,{className:`size-4`}),t[40]=G):G=t[40];let K;t[41]!==w||t[42]!==W?(K=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`size-8 shrink-0 p-0`,"aria-label":`New side chat`,title:`New side chat`,disabled:w,onClick:W,children:G}),t[41]=w,t[42]=W,t[43]=K):K=t[43];let ee;t[44]!==n||t[45]!==g?(ee=()=>g(n,!1),t[44]=n,t[45]=g,t[46]=ee):ee=t[46];let q;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,$.jsx)(Aw,{className:`size-4`}),t[47]=q):q=t[47];let te;t[48]===ee?te=t[49]:(te=(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`ml-auto size-8 shrink-0 p-0`,"aria-label":`Close side chat pane`,onClick:ee,children:q}),t[48]=ee,t[49]=te);let ne;t[50]!==U||t[51]!==K||t[52]!==te?(ne=(0,$.jsxs)(`div`,{className:`flex h-11 shrink-0 items-center gap-1 overflow-x-auto border-b border-edge px-2`,children:[U,K,te]}),t[50]=U,t[51]=K,t[52]=te,t[53]=ne):ne=t[53];let re;t[54]!==S||t[55]!==E||t[56]!==w||t[57]!==m||t[58]!==y||t[59]!==b?(re=S?(0,$.jsx)(Rce,{sideChatId:S.id,token:b??void 0,initialRunId:S.runId,onRunIdChange:y,onMissing:m},S.id):(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center justify-center px-8 text-center`,children:[(0,$.jsx)(vv,{className:`mb-4 size-10 text-fg-muted`,strokeWidth:1.5}),(0,$.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:`Side chat`}),(0,$.jsx)(`p`,{className:`mt-2 max-w-sm text-sm leading-6 text-fg-muted`,children:`Side chats are temporary and disappear when you close the app.`}),w?(0,$.jsx)(`p`,{className:`mt-4 text-xs text-fg-muted`,children:`Creating…`}):null,E?(0,$.jsx)(`p`,{className:`mt-4 text-xs text-red-600 dark:text-red-400`,children:E}):null]}),t[54]=S,t[55]=E,t[56]=w,t[57]=m,t[58]=y,t[59]=b,t[60]=re):re=t[60];let ie;return t[61]!==R||t[62]!==V||t[63]!==H||t[64]!==ne||t[65]!==re?(ie=(0,$.jsxs)(`aside`,{id:`app-side-chat-panel`,"aria-label":`Side chat`,className:R,style:V,children:[H,ne,re]}),t[61]=R,t[62]=V,t[63]=H,t[64]=ne,t[65]=re,t[66]=ie):ie=t[66],ie}function Tce(){}function Ece(e){return e.token}function Dce(e){return e.setTabRunId}function Oce(e){return e.setWidthPx}function kce(e){return e.widthPx}function Ace(e){return e.setOpen}function jce(e){return e.setActive}function Mce(e){return e.removeTab}function Nce(e){return e.addTab}function Pce(e){return e.claimPendingCreate}function Fce(e){return e.requestCreate}function Ice(e){return e.pendingCreate}function Lce(e){return e.tabs}function Rce({sideChatId:e,token:t,initialRunId:n,onRunIdChange:r,onMissing:i}){let[a,o]=(0,Z.useState)(null),[s,c]=(0,Z.useState)([]),[l,u]=(0,Z.useState)(``),[d,f]=(0,Z.useState)(!!n),[p,m]=(0,Z.useState)(n),[h,g]=(0,Z.useState)(null),[_,v]=(0,Z.useState)(null),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)(null),C=(0,Z.useRef)(null),w=(0,Z.useRef)(0),T=(0,Z.useRef)(new Map),E=j(I(e=>e.language)),{scrollRef:D,atBottom:O,registerListContentRef:k,scrollToBottom:A,onScroll:M}=m2({hasToken:!0,showSessionLoading:!1,sessionKey:e,sending:d,chatMessages:s,hasMore:!1,loadingMore:!1,loadMoreMessages:Sce}),N=(0,Z.useCallback)(async()=>{let t=w.current,[r,i]=await Promise.all([hce(e),gce(e)]);o(r),w.current===t&&(f(r.status===`running`||!!n),c(Cce(FP(i),T.current)))},[n,e]);(0,Z.useEffect)(()=>{N().catch(t=>{t?.status===404?i(e):g(t instanceof Error?t.message:String(t))});let t=window.setInterval(()=>bce(e),6e4);return()=>window.clearInterval(t)},[i,N,e]);let P=!!_,F=(0,Z.useRef)(P);(0,Z.useLayoutEffect)(()=>{let e=F.current;if(F.current=P,e===P)return;A(!1);let t=requestAnimationFrame(()=>A(!1));return()=>cancelAnimationFrame(t)},[P,A]);let L=(0,Z.useCallback)(e=>{w.current+=1,c(t=>{let n=structuredClone(t),r=n.at(-1);return r?.role!==`assistant`&&(r={role:`assistant`,content:[],timestamp:Date.now()},n.push(r)),e(r),n})},[]);(0,Z.useEffect)(()=>{if(p)return _I(`run:${p}`,{onEvent:t=>{let n=t.data?.payload??{};t.event===`assistant_message_start`?L(()=>{}):t.event===`assistant_delta`?L(e=>ZI(e.content,String(n.delta??``),String(n.messageId??``))):t.event===`thinking_delta`?L(e=>qI(e.content,String(n.delta??``),!0)):t.event===`thinking_end`?L(e=>JI(e.content)):t.event===`tool_start`?L(e=>aL(e.content,String(n.toolName??`tool`),n.args,String(n.toolCallId??``),Date.now(),n.activity)):t.event===`tool_end`?L(e=>oL(e.content,String(n.toolName??`tool`),n.status===`error`,n.result,String(n.toolCallId??``),Date.now(),n.activity)):t.event===`clarify_request`?(v({requestId:String(n.requestId??``),question:String(n.question??``),choices:Array.isArray(n.choices)?n.choices.filter(e=>typeof e==`string`):void 0}),S(null)):t.event===`error`?g(String(n.message??`Side chat failed`)):t.event===`run_end`&&(f(!1),m(void 0),r(e,void 0),v(null),N())},onGap:()=>N()})},[L,r,N,p,e]);let R=()=>{let t=l.trim();if(!t||d)return;u(``),g(null),w.current+=1;let n=crypto.randomUUID(),i={role:`user`,content:[{type:`text`,text:t}],timestamp:Date.now(),renderKey:`side-chat-user:${n}`};T.current.set(n,i),c(e=>[...e,i]),f(!0),_ce(e,t).then(t=>{m(t),r(e,t)}).catch(e=>{T.current.delete(n),c(e=>e.filter(e=>e.renderKey!==i.renderKey)),f(!1),g(e instanceof Error?e.message:String(e))})},z=async t=>{if(_){b(!0),S(null);try{await vce(e,_.requestId,t),v(null)}catch(e){S(e instanceof Error?e.message:String(e))}finally{b(!1)}}},B=(0,Z.useCallback)(e=>{u(e),requestAnimationFrame(()=>{let t=C.current;t?.focus(),t?.setSelectionRange(e.length,e.length)})},[]);return(0,$.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{className:`relative min-h-0 flex-1`,children:[(0,$.jsx)(`div`,{ref:D,"data-side-chat-scroll-viewport":!0,onScroll:M,className:`chat-messages h-full overflow-y-auto overflow-x-hidden px-5 py-4 [overflow-anchor:none] [scrollbar-gutter:stable_both-edges]`,children:s.length?(0,$.jsx)(f2,{messages:s,authToken:t,sessionKey:e,streaming:d,progress:null,reasoningLevel:`on`,registerListContentRef:k,deleteRoundDisabled:d,onEditUserMessage:B,responseFeedbackEnabled:!1}):(0,$.jsxs)(`div`,{className:`flex min-h-64 flex-col items-center justify-center text-center`,children:[(0,$.jsx)(vv,{className:`mb-4 size-9 text-fg-muted`,strokeWidth:1.5}),(0,$.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:`Side chat`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:`Ask without interrupting the main task.`})]})}),(0,$.jsx)(p2,{visible:!O,onClick:()=>A(!0),contained:!0})]}),_?(0,$.jsx)(`div`,{className:`shrink-0 border-t border-edge px-3 pt-3`,children:(0,$.jsx)(vq,{prompt:_,submitting:y,submitError:x,labels:E.chat,onSubmit:z,onCancel:async()=>{await x2(e,p),v(null)}})}):null,h?(0,$.jsx)(`p`,{className:`border-t border-edge px-4 py-2 text-xs text-red-600 dark:text-red-400`,children:h}):null,(0,$.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),R()},className:`shrink-0 border-t border-edge p-3`,children:(0,$.jsxs)(`div`,{className:`rounded-2xl border border-edge bg-surface-panel p-3 focus-within:border-accent focus-within:ring-2 focus-within:ring-accent/15`,children:[a?.context.selections.length?(0,$.jsxs)(`div`,{className:`mb-2 inline-flex h-8 max-w-full items-center gap-1.5 rounded-lg border border-edge bg-surface-base px-2.5 text-xs font-medium text-fg-muted`,title:a.context.selections.map(e=>e.label||e.text).join(`
|
|
135
|
-
`),children:[(0,$.jsx)(Cv,{className:`size-3.5 shrink-0`}),(0,$.jsxs)(`span`,{className:`truncate`,children:[a.context.selections.length,` selection`,a.context.selections.length===1?``:`s`]})]}):null,(0,$.jsx)(`textarea`,{ref:C,value:l,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),R())},rows:3,placeholder:E.chat.typeMessage,className:`w-full resize-none bg-transparent text-sm text-fg outline-none placeholder:text-fg-subtle`}),(0,$.jsxs)(`div`,{className:`mt-2 flex items-center justify-between`,children:[(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5 truncate text-xs text-fg-muted`,title:`Inherits the parent task's tool and approval policy`,children:[(0,$.jsx)(Uy,{className:`size-3.5 shrink-0`}),(0,$.jsxs)(`span`,{className:`truncate`,children:[`Parent permissions · `,a?.config.modelRef??``]})]}),d?(0,$.jsx)(Zw,{type:`button`,className:`size-9 rounded-full p-0`,"aria-label":E.chat.abort,onClick:()=>void x2(e,p),children:(0,$.jsx)(rb,{className:`size-3.5 fill-current`})}):(0,$.jsx)(Zw,{type:`submit`,className:`size-9 rounded-full p-0`,disabled:!l.trim(),"aria-label":E.chat.sendMessage,children:(0,$.jsx)(Ly,{className:`size-4`})})]})]})})]})}var zce=32e3,C2=264,w2=10;function Bce(){let e=(0,Q.c)(38),{pathname:t}=u(),n;e[0]===t?n=e[1]:(n=t.startsWith(`/chat/`)?t.slice(6):``,e[0]=t,e[1]=n);let r=n,i=I(qce),a=_2(Kce),o=_2(Gce),s=fq(Wce),[c,l]=(0,Z.useState)(null),d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=[],e[2]=d):d=e[2],(0,Z.useEffect)(Hce,d);let f;e[3]!==o||e[4]!==r?(f=()=>{if(!r||r===`new`||o){l(null);return}let e=window.getSelection(),t=e?.toString().trim()??``;if(!e||e.rangeCount===0||!t||t.length>zce){l(null);return}let n=e.getRangeAt(0),i=T2(e.anchorNode),a=T2(e.focusNode),s=document.getElementById(`app-main-content`);if(!i||!a||!s?.contains(i)||!s.contains(a)||!i.closest(`[data-chat-message-index]`)||!a.closest(`[data-chat-message-index]`)||i.closest(`#app-side-chat-panel`)||a.closest(`#app-side-chat-panel`)){l(null);return}let c=n.getBoundingClientRect();if(c.width===0&&c.height===0){l(null);return}let u=Math.min(window.innerWidth-C2-w2,Math.max(w2,c.left+c.width/2-C2/2)),d=c.bottom+8;l({text:t,left:u,top:d+38<window.innerHeight?d:Math.max(w2,c.top-42)})},e[3]=o,e[4]=r,e[5]=f):f=e[5];let p=f,m,h;if(e[6]!==p||e[7]!==t?(m=()=>{if(!t.startsWith(`/chat/`)){l(null);return}let e=()=>window.requestAnimationFrame(p),n=()=>l(null);return document.addEventListener(`pointerup`,e),document.addEventListener(`keyup`,e),window.addEventListener(`scroll`,n,!0),window.addEventListener(`resize`,n),()=>{document.removeEventListener(`pointerup`,e),document.removeEventListener(`keyup`,e),window.removeEventListener(`scroll`,n,!0),window.removeEventListener(`resize`,n)}},h=[p,t],e[6]=p,e[7]=t,e[8]=m,e[9]=h):(m=e[8],h=e[9]),(0,Z.useEffect)(m,h),!c||!r||r===`new`)return null;let g=i===`zh`?`选中文本操作`:`Selected text actions`,_;e[10]!==c.left||e[11]!==c.top?(_={left:c.left,top:c.top,width:C2},e[10]=c.left,e[11]=c.top,e[12]=_):_=e[12];let v;e[13]===c.text?v=e[14]:(v=()=>{Jce(c.text),window.getSelection()?.removeAllRanges(),l(null)},e[13]=c.text,e[14]=v);let y;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(xy,{className:`size-3.5 shrink-0`}),e[15]=y):y=e[15];let b=i===`zh`?`添加到对话`:`Add to chat`,x;e[16]===b?x=e[17]:(x=(0,$.jsx)(`span`,{children:b}),e[16]=b,e[17]=x);let S;e[18]!==x||e[19]!==v?(S=(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex flex-1 items-center justify-center gap-1.5 px-3 transition-colors hover:bg-surface-hover focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,onClick:v,children:[y,x]}),e[18]=x,e[19]=v,e[20]=S):S=e[20];let C;e[21]!==i||e[22]!==c.text||e[23]!==a||e[24]!==r||e[25]!==s?(C=()=>{let e=decodeURIComponent(r);s(!1),a(e,[{id:crypto.randomUUID(),type:`text`,text:c.text,label:i===`zh`?`所选文本`:`Selected text`}]),window.getSelection()?.removeAllRanges(),l(null)},e[21]=i,e[22]=c.text,e[23]=a,e[24]=r,e[25]=s,e[26]=C):C=e[26];let w;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(vv,{className:`size-3.5 shrink-0`}),e[27]=w):w=e[27];let T=i===`zh`?`在侧边对话`:`Ask in side chat`,E;e[28]===T?E=e[29]:(E=(0,$.jsx)(`span`,{children:T}),e[28]=T,e[29]=E);let D;e[30]!==C||e[31]!==E?(D=(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex flex-1 items-center justify-center gap-1.5 border-l border-edge px-3 transition-colors hover:bg-surface-hover focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,onClick:C,children:[w,E]}),e[30]=C,e[31]=E,e[32]=D):D=e[32];let O;return e[33]!==S||e[34]!==D||e[35]!==g||e[36]!==_?(O=(0,$.jsxs)(`div`,{role:`group`,"aria-label":g,className:`fixed z-[70] flex h-9 overflow-hidden rounded-lg border border-edge bg-surface-panel text-xs font-medium text-fg shadow-popover`,style:_,onPointerDown:Vce,children:[S,D]}),e[33]=S,e[34]=D,e[35]=g,e[36]=_,e[37]=O):O=e[37],O}function Vce(e){return e.preventDefault()}function Hce(){let e=Uce;return window.addEventListener(`pagehide`,e),()=>window.removeEventListener(`pagehide`,e)}function Uce(){return xce()}function Wce(e){return e.setOpen}function Gce(e){return e.pendingCreate}function Kce(e){return e.requestCreate}function qce(e){return e.language}function Jce(e){Yq(e)}function T2(e){return e?e.nodeType===Node.ELEMENT_NODE?e:e.parentElement:null}function Yce(){let e=(0,Q.c)(28),t=(0,Z.useRef)(null),n=F(nle),r=F(tle),i=F(ele),a=F($ce),o=F(Qce),s=F(Zce),c=I(Xce),l;e[0]===c?l=e[1]:(l=j(c),e[0]=c,e[1]=l);let u=l.token,d=!!s&&!i,f;e[2]!==d||e[3]!==o?(f=e=>{!e&&!d||e||o()},e[2]=d,e[3]=o,e[4]=f):f=e[4];let p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(GD,{className:C(`fixed inset-0 bg-scrim backdrop-blur-[2px]`,sE)}),e[5]=p):p=e[5];let m,h;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=C(`fixed left-1/2 top-1/2 w-[min(100%-2rem,28rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover`,cE,`dark:border-edge`),h=e=>{e.preventDefault(),t.current?.focus()},e[6]=m,e[7]=h):(m=e[6],h=e[7]);let g;e[8]===u.title?g=e[9]:(g=(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:u.title}),e[8]=u.title,e[9]=g);let _;e[10]===u.description?_=e[11]:(_=(0,$.jsx)(nO,{className:`mt-1 text-sm text-fg-muted`,children:u.description}),e[10]=u.description,e[11]=_);let v;e[12]!==d||e[13]!==o||e[14]!==c?(v=d?(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,onClick:()=>o(),children:c===`zh`?`取消`:`Cancel`}):void 0,e[12]=d,e[13]=o,e[14]=c,e[15]=v):v=e[15];let y;e[16]!==r||e[17]!==a||e[18]!==v?(y=(0,$.jsx)(yT,{className:`mt-4`,baseUrl:r,tokenInputRef:t,onSubmit:a,footerLeft:v}),e[16]=r,e[17]=a,e[18]=v,e[19]=y):y=e[19];let b;e[20]!==g||e[21]!==_||e[22]!==y?(b=(0,$.jsxs)(UD,{children:[p,(0,$.jsxs)(YD,{className:m,onOpenAutoFocus:h,children:[g,_,y]})]}),e[20]=g,e[21]=_,e[22]=y,e[23]=b):b=e[23];let x;return e[24]!==n||e[25]!==f||e[26]!==b?(x=(0,$.jsx)(LD,{open:n,onOpenChange:f,children:b}),e[24]=n,e[25]=f,e[26]=b,e[27]=x):x=e[27],x}function Xce(e){return e.language}function Zce(e){return e.token}function Qce(e){return e.closeTokenDialog}function $ce(e){return e.setGatewayToken}function ele(e){return e.tokenExpired}function tle(e){return e.baseUrl}function nle(e){return e.tokenDialogOpen}function E2(e){let t=e+`CollectionProvider`,[n,r]=ae(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=Z.useRef(null),a=Z.useRef(new Map).current;return(0,$.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=T(s),l=Z.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,$.jsx)(c,{ref:w(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=T(u),p=Z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=Z.useRef(null),s=w(t,o),c=a(u,n);return Z.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,$.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return Z.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var rle=Z.createContext(void 0);function D2(e){let t=Z.useContext(rle);return e||t||`ltr`}var O2=!1;function ile(){let[e,t]=Z.useState(O2);return Z.useEffect(()=>{O2||(O2=!0,t(!0))},[]),e}var k2=Z.useSyncExternalStore;function ale(){return()=>{}}function ole(){return k2(ale,()=>!0,()=>!1)}var sle=typeof k2==`function`?ole:ile,A2=`rovingFocusGroup.onEntryFocus`,cle={bubbles:!1,cancelable:!0},j2=`RovingFocusGroup`,[M2,N2,lle]=E2(j2),[ule,P2]=ae(j2,[lle]),[dle,fle]=ule(j2),F2=Z.forwardRef((e,t)=>(0,$.jsx)(M2.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,$.jsx)(M2.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,$.jsx)(ple,{...e,ref:t})})}));F2.displayName=j2;var ple=Z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=Z.useRef(null),p=w(t,f),m=D2(a),[h,g]=de({prop:o,defaultProp:s??null,onChange:c,caller:j2}),[_,v]=Z.useState(!1),y=re(l),b=N2(n),x=Z.useRef(!1),[S,C]=Z.useState(0);return Z.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(A2,y),()=>e.removeEventListener(A2,y)},[y]),(0,$.jsx)(dle,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:Z.useCallback(e=>g(e),[g]),onItemShiftTab:Z.useCallback(()=>v(!0),[]),onFocusableItemAdd:Z.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:Z.useCallback(()=>C(e=>e-1),[]),children:(0,$.jsx)(ue.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:ie(e.onMouseDown,()=>{x.current=!0}),onFocus:ie(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(A2,cle);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);R2([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:ie(e.onBlur,()=>v(!1))})})}),I2=`RovingFocusGroupItem`,L2=Z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=le(),l=a||c,u=fle(I2,n),d=u.currentTabStopId===l,f=N2(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=sle();return fe(()=>{if(!(!g||!r))return p(),()=>m()},[g,r,p,m]),Z.useEffect(()=>{if(!(g||!r))return p(),()=>m()},[g,r,p,m]),(0,$.jsx)(M2.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,$.jsx)(ue.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ie(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:ie(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:ie(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=gle(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?_le(n,r+1):n.slice(r+1)}setTimeout(()=>R2(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});L2.displayName=I2;var mle={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function hle(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function gle(e,t,n){let r=hle(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return mle[r]}function R2(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function _le(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vle=F2,yle=L2,z2=[`Enter`,` `],ble=[`ArrowDown`,`PageUp`,`Home`],B2=[`ArrowUp`,`PageDown`,`End`],xle=[...ble,...B2],Sle={ltr:[...z2,`ArrowRight`],rtl:[...z2,`ArrowLeft`]},Cle={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},V2=`Menu`,[H2,wle,Tle]=E2(V2),[U2,W2]=ae(V2,[Tle,he,P2]),G2=he(),K2=P2(),[q2,J2]=U2(V2),[Ele,Y2]=U2(V2),X2=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=G2(t),[c,l]=Z.useState(null),u=Z.useRef(!1),d=re(a),f=D2(i);return Z.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),Z.useEffect(()=>{if(!n)return;let e=()=>d(!1);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,$.jsx)(ge,{...s,children:(0,$.jsx)(q2,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,$.jsx)(Ele,{scope:t,onClose:Z.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};X2.displayName=V2;var Dle=`MenuAnchor`,Z2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=G2(n);return(0,$.jsx)(ye,{...i,...r,ref:t})});Z2.displayName=Dle;var Q2=`MenuPortal`,[Ole,$2]=U2(Q2,{forceMount:void 0}),e4=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=J2(Q2,t);return(0,$.jsx)(Ole,{scope:t,forceMount:n,children:(0,$.jsx)(oe,{present:n||a.open,children:(0,$.jsx)(q,{asChild:!0,container:i,children:r})})})};e4.displayName=Q2;var t4=`MenuContent`,[kle,n4]=U2(t4),r4=Z.forwardRef((e,t)=>{let n=$2(t4,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=J2(t4,e.__scopeMenu),o=Y2(t4,e.__scopeMenu);return(0,$.jsx)(H2.Provider,{scope:e.__scopeMenu,children:(0,$.jsx)(oe,{present:r||a.open,children:(0,$.jsx)(H2.Slot,{scope:e.__scopeMenu,children:o.modal?(0,$.jsx)(Ale,{...i,ref:t}):(0,$.jsx)(jle,{...i,ref:t})})})})}),Ale=Z.forwardRef((e,t)=>{let n=J2(t4,e.__scopeMenu),r=Z.useRef(null),i=w(t,r);return Z.useEffect(()=>{let e=r.current;if(e)return ce(e)},[]),(0,$.jsx)(i4,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ie(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),jle=Z.forwardRef((e,t)=>{let n=J2(t4,e.__scopeMenu);return(0,$.jsx)(i4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Mle=T(`MenuContent.ScrollLock`),i4=Z.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=J2(t4,n),_=Y2(t4,n),v=G2(n),y=K2(n),b=wle(n),[x,S]=Z.useState(null),C=Z.useRef(null),T=w(t,C,g.onContentChange),E=Z.useRef(0),D=Z.useRef(``),O=Z.useRef(0),k=Z.useRef(null),A=Z.useRef(`right`),j=Z.useRef(0),M=m?pe:Z.Fragment,N=m?{as:Mle,allowPinchZoom:!0}:void 0,P=e=>{let t=D.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Gle(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};Z.useEffect(()=>()=>window.clearTimeout(E.current),[]),se();let F=Z.useCallback(e=>A.current===k.current?.side&&qle(e,k.current?.area),[]);return(0,$.jsx)(kle,{scope:n,searchRef:D,onItemEnter:Z.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:Z.useCallback(e=>{F(e)||(C.current?.focus(),S(null))},[F]),onTriggerLeave:Z.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:O,onPointerGraceIntentChange:Z.useCallback(e=>{k.current=e},[]),children:(0,$.jsx)(M,{...N,children:(0,$.jsx)(te,{asChild:!0,trapped:i,onMountAutoFocus:ie(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,$.jsx)(me,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,$.jsx)(vle,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:ie(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,$.jsx)(ve,{role:`menu`,"aria-orientation":`vertical`,"data-state":D4(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:T,style:{outline:`none`,...h.style},onKeyDown:ie(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&P(e.key));let i=C.current;if(e.target!==i||!xle.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);B2.includes(e.key)&&a.reverse(),Ule(a)}),onBlur:ie(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:ie(e.onPointerMove,A4(e=>{let t=e.target,n=j.current!==e.clientX;e.currentTarget.contains(t)&&n&&(A.current=e.clientX>j.current?`right`:`left`,j.current=e.clientX)}))})})})})})})});r4.displayName=t4;var Nle=`MenuGroup`,a4=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(ue.div,{role:`group`,...r,ref:t})});a4.displayName=Nle;var Ple=`MenuLabel`,o4=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(ue.div,{...r,ref:t})});o4.displayName=Ple;var s4=`MenuItem`,c4=`menu.itemSelect`,l4=Z.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=Z.useRef(null),o=Y2(s4,e.__scopeMenu),s=n4(s4,e.__scopeMenu),c=w(t,a),l=Z.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(c4,{bubbles:!0,cancelable:!0});e.addEventListener(c4,e=>r?.(e),{once:!0}),J(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,$.jsx)(u4,{...i,ref:c,disabled:n,onClick:ie(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:ie(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:ie(e.onKeyDown,e=>{n||e.target!==e.currentTarget||s.searchRef.current!==``&&e.key===` `||z2.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});l4.displayName=s4;var u4=Z.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=n4(s4,n),s=K2(n),c=Z.useRef(null),l=w(t,c),[u,d]=Z.useState(!1),[f,p]=Z.useState(``);return Z.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,$.jsx)(H2.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,$.jsx)(yle,{asChild:!0,...s,focusable:!r,children:(0,$.jsx)(ue.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:ie(e.onPointerMove,A4(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ie(e.onPointerLeave,A4(e=>o.onItemLeave(e))),onFocus:ie(e.onFocus,()=>d(!0)),onBlur:ie(e.onBlur,()=>d(!1))})})})}),Fle=`MenuCheckboxItem`,d4=Z.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,$.jsx)(_4,{scope:e.__scopeMenu,checked:n,children:(0,$.jsx)(l4,{role:`menuitemcheckbox`,"aria-checked":O4(n)?`mixed`:n,...i,ref:t,"data-state":k4(n),onSelect:ie(i.onSelect,()=>r?.(O4(n)?!0:!n),{checkForDefaultPrevented:!1})})})});d4.displayName=Fle;var f4=`MenuRadioGroup`,[Ile,Lle]=U2(f4,{value:void 0,onValueChange:()=>{}}),p4=Z.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=re(r);return(0,$.jsx)(Ile,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,$.jsx)(a4,{...i,ref:t})})});p4.displayName=f4;var m4=`MenuRadioItem`,h4=Z.forwardRef((e,t)=>{let{value:n,...r}=e,i=Lle(m4,e.__scopeMenu),a=n===i.value;return(0,$.jsx)(_4,{scope:e.__scopeMenu,checked:a,children:(0,$.jsx)(l4,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":k4(a),onSelect:ie(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});h4.displayName=m4;var g4=`MenuItemIndicator`,[_4,Rle]=U2(g4,{checked:!1}),v4=Z.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Rle(g4,n);return(0,$.jsx)(oe,{present:r||O4(a.checked)||a.checked===!0,children:(0,$.jsx)(ue.span,{...i,ref:t,"data-state":k4(a.checked)})})});v4.displayName=g4;var zle=`MenuSeparator`,y4=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(ue.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});y4.displayName=zle;var Ble=`MenuArrow`,b4=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=G2(n);return(0,$.jsx)(_e,{...i,...r,ref:t})});b4.displayName=Ble;var x4=`MenuSub`,[Vle,S4]=U2(x4),Hle=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=J2(x4,t),o=G2(t),[s,c]=Z.useState(null),[l,u]=Z.useState(null),d=re(i);return Z.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,$.jsx)(ge,{...o,children:(0,$.jsx)(q2,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,$.jsx)(Vle,{scope:t,contentId:le(),triggerId:le(),trigger:s,onTriggerChange:c,children:n})})})};Hle.displayName=x4;var C4=`MenuSubTrigger`,w4=Z.forwardRef((e,t)=>{let n=J2(C4,e.__scopeMenu),r=Y2(C4,e.__scopeMenu),i=S4(C4,e.__scopeMenu),a=n4(C4,e.__scopeMenu),o=Z.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=Z.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);Z.useEffect(()=>u,[u]),Z.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=w(t,i.onTriggerChange);return(0,$.jsx)(Z2,{asChild:!0,...l,children:(0,$.jsx)(u4,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":D4(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ie(e.onPointerMove,A4(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:ie(e.onPointerLeave,A4(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ie(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||a.searchRef.current!==``&&t.key===` `||Sle[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});w4.displayName=C4;var T4=`MenuSubContent`,E4=Z.forwardRef((e,t)=>{let n=$2(t4,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=J2(t4,e.__scopeMenu),s=Y2(t4,e.__scopeMenu),c=S4(T4,e.__scopeMenu),l=Z.useRef(null),u=w(t,l);return(0,$.jsx)(H2.Provider,{scope:e.__scopeMenu,children:(0,$.jsx)(oe,{present:r||o.open,children:(0,$.jsx)(H2.Slot,{scope:e.__scopeMenu,children:(0,$.jsx)(i4,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:ie(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:ie(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:ie(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Cle[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});E4.displayName=T4;function D4(e){return e?`open`:`closed`}function O4(e){return e===`indeterminate`}function k4(e){return O4(e)?`indeterminate`:e?`checked`:`unchecked`}function Ule(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Wle(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Gle(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Wle(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Kle(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function qle(e,t){return t?Kle({x:e.clientX,y:e.clientY},t):!1}function A4(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Jle=X2,Yle=Z2,Xle=e4,Zle=r4,Qle=a4,$le=o4,eue=l4,tue=d4,nue=p4,rue=h4,iue=v4,aue=y4,oue=b4,sue=w4,cue=E4,j4=`DropdownMenu`,[lue,uue]=ae(j4,[W2]),M4=W2(),[due,N4]=lue(j4),P4=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=M4(t),l=Z.useRef(null),[u,d]=de({prop:i,defaultProp:a??!1,onChange:o,caller:j4});return(0,$.jsx)(due,{scope:t,triggerId:le(),triggerRef:l,contentId:le(),open:u,onOpenChange:d,onOpenToggle:Z.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,$.jsx)(Jle,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};P4.displayName=j4;var F4=`DropdownMenuTrigger`,I4=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=N4(F4,n),o=M4(n),s=w(t,a.triggerRef);return(0,$.jsx)(Yle,{asChild:!0,...o,children:(0,$.jsx)(ue.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:ie(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:ie(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});I4.displayName=F4;var fue=`DropdownMenuPortal`,L4=e=>{let{__scopeDropdownMenu:t,...n}=e,r=M4(t);return(0,$.jsx)(Xle,{...r,...n})};L4.displayName=fue;var R4=`DropdownMenuContent`,z4=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=N4(R4,n),a=M4(n),o=Z.useRef(!1);return(0,$.jsx)(Zle,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:ie(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:ie(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});z4.displayName=R4;var pue=`DropdownMenuGroup`,mue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(Qle,{...i,...r,ref:t})});mue.displayName=pue;var hue=`DropdownMenuLabel`,gue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)($le,{...i,...r,ref:t})});gue.displayName=hue;var _ue=`DropdownMenuItem`,B4=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(eue,{...i,...r,ref:t})});B4.displayName=_ue;var vue=`DropdownMenuCheckboxItem`,yue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(tue,{...i,...r,ref:t})});yue.displayName=vue;var bue=`DropdownMenuRadioGroup`,xue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(nue,{...i,...r,ref:t})});xue.displayName=bue;var Sue=`DropdownMenuRadioItem`,Cue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(rue,{...i,...r,ref:t})});Cue.displayName=Sue;var wue=`DropdownMenuItemIndicator`,Tue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(iue,{...i,...r,ref:t})});Tue.displayName=wue;var Eue=`DropdownMenuSeparator`,V4=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(aue,{...i,...r,ref:t})});V4.displayName=Eue;var Due=`DropdownMenuArrow`,Oue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(oue,{...i,...r,ref:t})});Oue.displayName=Due;var kue=`DropdownMenuSubTrigger`,Aue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(sue,{...i,...r,ref:t})});Aue.displayName=kue;var jue=`DropdownMenuSubContent`,Mue=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=M4(n);return(0,$.jsx)(cue,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Mue.displayName=jue;var H4=P4,U4=I4,W4=L4,G4=z4,K4=B4,q4=V4;function Nue(){return $E()&&window.electronAPI?.platform===`darwin`}function J4(){return $E()&&window.electronAPI?.platform===`win32`}function Pue(e){return e?e.replace(/CmdOrCtrl/g,`Ctrl`).replace(/Command/g,`Ctrl`).replace(/\+/g,` + `):null}function Fue(e){let t=(0,Q.c)(15),{item:n,onInvoke:r}=e;if(n.type===`separator`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(q4,{className:`my-1 h-px bg-edge-subtle`}),t[0]=e):e=t[0],e}let i;t[1]===n.accelerator?i=t[2]:(i=Pue(n.accelerator),t[1]=n.accelerator,t[2]=i);let a=i,o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=C(`flex min-h-7 cursor-default select-none items-center gap-6 rounded-md px-2 py-1.5 text-xs text-fg outline-none`,`data-[highlighted]:bg-surface-hover data-[highlighted]:text-fg`),t[3]=o):o=t[3];let s;t[4]!==n.id||t[5]!==r?(s=()=>r(n.id),t[4]=n.id,t[5]=r,t[6]=s):s=t[6];let c;t[7]===n.label?c=t[8]:(c=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n.label}),t[7]=n.label,t[8]=c);let l;t[9]===a?l=t[10]:(l=a?(0,$.jsx)(`span`,{className:`shrink-0 whitespace-nowrap font-mono text-[11px] text-fg-subtle`,children:a}):null,t[9]=a,t[10]=l);let u;return t[11]!==s||t[12]!==c||t[13]!==l?(u=(0,$.jsxs)(K4,{className:o,onSelect:s,children:[c,l]}),t[11]=s,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function Iue(e){let t=(0,Q.c)(6),{groups:n}=e,r=Lue,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=C(`windows-titlebar-interactive flex min-w-0 items-center gap-1`,Je),t[0]=i):i=t[0];let a;if(t[1]!==n){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(0,$.jsxs)(H4,{modal:!1,children:[(0,$.jsx)(U4,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex h-8 shrink-0 items-center rounded-md px-3 text-sm font-normal text-fg-muted`,`outline-none transition-colors hover:bg-surface-hover hover:text-fg`,`focus-visible:ring-2 focus-visible:ring-accent/60 data-[state=open]:bg-surface-hover data-[state=open]:text-fg`,Je),role:`menuitem`,children:e.label})}),(0,$.jsx)(W4,{children:(0,$.jsx)(G4,{align:`start`,sideOffset:4,className:C(`windows-titlebar-interactive z-[90] min-w-52 rounded-lg border border-edge bg-surface-panel p-1 shadow-popover outline-none`,Je),children:e.items.map((t,n)=>(0,$.jsx)(Fue,{item:t,onInvoke:r},t.type===`item`?t.id:`${e.id}-separator-${n}`))})})]},e.id),t[3]=e):e=t[3],a=n.map(e),t[1]=n,t[2]=a}else a=t[2];let o;return t[4]===a?o=t[5]:(o=(0,$.jsx)(`div`,{className:i,role:`menubar`,children:a}),t[4]=a,t[5]=o),o}function Lue(e){window.electronAPI?.menu?.invoke(e)}var Y4=(0,Z.memo)(function(){let e=(0,Q.c)(11),t=I(Rue),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[],e[0]=n):n=e[0];let[r,i]=(0,Z.useState)(n),a;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{if(!J4())return;let e=!1;return window.electronAPI?.menu?.getModel().then(t=>{e||i(t)}).catch(()=>{e||i([])}),()=>{e=!0}},e[1]=a):a=e[1];let o;if(e[2]===t?o=e[3]:(o=[t],e[2]=t,e[3]=o),(0,Z.useEffect)(a,o),!J4())return null;let s,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=C(`windows-titlebar flex h-9 min-w-0 shrink-0 items-center gap-2 border-b border-edge-subtle`),c=(0,$.jsx)(`div`,{className:C(`windows-titlebar-interactive flex shrink-0 items-center gap-0.5`,Je),children:(0,$.jsx)(TD,{sidebarToggleVariant:`main`})}),e[4]=s,e[5]=c):(s=e[4],c=e[5]);let l;e[6]===r?l=e[7]:(l=(0,$.jsx)(Iue,{groups:r}),e[6]=r,e[7]=l);let u;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(`div`,{className:C(`min-w-8 flex-1 self-stretch`,qe),"aria-hidden":!0}),e[8]=u):u=e[8];let d;return e[9]===l?d=e[10]:(d=(0,$.jsxs)(`header`,{className:s,children:[c,l,u]}),e[9]=l,e[10]=d),d});function Rue(e){return e.language}function zue(){let e=(0,Q.c)(16),t=I(Bue),n;e[0]===t?n=e[1]:(n=j(t),e[0]=t,e[1]=n);let r=n.electron,[i,a]=(0,Z.useState)(null),o,s;if(e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{if(!$E())return;let e=window.electronAPI?.gateway;if(e?.onExited)return e.onExited(e=>a(e))},s=[],e[2]=o,e[3]=s):(o=e[2],s=e[3]),(0,Z.useEffect)(o,s),!i)return null;let c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=C(`shrink-0 border-b border-danger/35 bg-danger/10 px-4 py-3 text-sm text-fg shadow-surface`),e[4]=c):c=e[4];let l;e[5]===r.gatewayExitTitle?l=e[6]:(l=(0,$.jsx)(`p`,{className:`font-semibold`,children:r.gatewayExitTitle}),e[5]=r.gatewayExitTitle,e[6]=l);let u;e[7]===r.gatewayExitBody?u=e[8]:(u=(0,$.jsx)(`p`,{className:`mt-1 text-fg-muted`,children:r.gatewayExitBody}),e[7]=r.gatewayExitBody,e[8]=u);let d=i.code??`—`,f=i.signal??`—`,p;e[9]!==d||e[10]!==f?(p=(0,$.jsxs)(`p`,{className:`mt-2 font-mono text-xs text-fg-muted`,children:[`exit `,d,` · signal `,f]}),e[9]=d,e[10]=f,e[11]=p):p=e[11];let m;return e[12]!==l||e[13]!==u||e[14]!==p?(m=(0,$.jsxs)(`div`,{className:c,role:`alert`,children:[l,u,p]}),e[12]=l,e[13]=u,e[14]=p,e[15]=m):m=e[15],m}function Bue(e){return e.language}var Vue=[{name:`desktop.file.pick`,title:`Choose a local file`,description:`Ask the user to choose one local file and make it available to the agent.`,inputSchema:{type:`object`,additionalProperties:!1,properties:{}},effect:`read`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`file-read`],timeoutMs:12e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`file`]},{name:`desktop.file.save`,title:`Save a text file`,description:`Ask the user where to save UTF-8 text generated by the agent.`,inputSchema:{type:`object`,additionalProperties:!1,required:[`suggestedName`,`content`],properties:{suggestedName:{type:`string`,minLength:1,maxLength:255},content:{type:`string`,maxLength:2e5}}},effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`file-write`],timeoutMs:12e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]},{name:`desktop.notification.show`,title:`Show a notification`,description:`Show a bounded native desktop notification after user confirmation.`,inputSchema:{type:`object`,additionalProperties:!1,required:[`title`,`body`],properties:{title:{type:`string`,minLength:1,maxLength:120},body:{type:`string`,minLength:1,maxLength:500}}},effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`notifications`],timeoutMs:1e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]},{name:`desktop.clipboard.read`,title:`Read the clipboard`,description:`Read plain text from the desktop clipboard.`,inputSchema:{type:`object`,additionalProperties:!1,properties:{}},effect:`read`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`clipboard-read`],timeoutMs:1e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!0,resultKinds:[`text`]},{name:`desktop.clipboard.write`,title:`Write to the clipboard`,description:`Replace the desktop clipboard with plain text.`,inputSchema:{type:`object`,additionalProperties:!1,required:[`text`],properties:{text:{type:`string`,minLength:1,maxLength:1e5}}},effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`clipboard-write`],timeoutMs:1e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!0,resultKinds:[`text`]},{name:`desktop.app.open_external`,title:`Open an external URL`,description:`Open an HTTP or HTTPS URL in the default desktop application.`,inputSchema:{type:`object`,additionalProperties:!1,required:[`url`],properties:{url:{type:`string`,minLength:1,maxLength:2048}}},effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`open-external-url`],timeoutMs:15e3,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]}];function X4(e,t,n){if(Object.keys(e).length!==1||typeof e[t]!=`string`)throw TypeError(`Expected exactly one string argument: ${t}`);let r=e[t];if(!r||r.length>n)throw TypeError(`Invalid ${t}`);return r}function Z4(e){return{content:[{type:`text`,text:e}]}}function Hue(e){let t=globalThis.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return n}async function Uue(e,t,n){let r=window.electronAPI;if(!r)throw Error(`Desktop bridge is unavailable`);if(e===`desktop.file.pick`){if(Object.keys(t).length!==0)throw TypeError(`Expected no arguments`);let e=await r.file.pickEndpointFile();if(!e)throw new DOMException(`File selection cancelled`,`AbortError`);let i=Hue(e.dataBase64);if(i.byteLength!==e.size||i.byteLength>26214400)throw Error(`Selected file payload is invalid`);return{content:[await n.uploadFile({name:e.name,mimeType:e.mimeType,bytes:i})]}}if(e===`desktop.file.save`){let e=t.suggestedName,n=t.content;if(Object.keys(t).length!==2||typeof e!=`string`||!e||e.length>255||typeof n!=`string`||n.length>2e5||new TextEncoder().encode(n).byteLength>200*1024)throw TypeError(`Invalid file save arguments`);let i=await r.file.saveEndpointText({suggestedName:e,content:n});if(!i.saved)throw new DOMException(`File save cancelled`,`AbortError`);return Z4(`Saved ${i.name}`)}if(e===`desktop.notification.show`){let e=t.title,n=t.body;if(Object.keys(t).length!==2||typeof e!=`string`||!e.trim()||e.length>120||typeof n!=`string`||!n.trim()||n.length>500)throw TypeError(`Invalid notification arguments`);if(!r.system)throw Error(`Desktop notifications are unavailable`);let i=await r.system.showEndpointNotification({title:e,body:n});if(!i.ok)throw i.error===`PERMISSION_DENIED`||i.error===`NOTIFICATIONS_DISABLED`?new DOMException(`Desktop notification permission is not granted`,`NotAllowedError`):Error(`Desktop notification failed: ${i.error}`);return Z4(`Notification shown.`)}if(e===`desktop.clipboard.read`){if(Object.keys(t).length!==0)throw TypeError(`Expected no arguments`);if(!r.clipboard?.readText)throw Error(`Clipboard read is unavailable`);return Z4(await r.clipboard.readText())}if(e===`desktop.clipboard.write`){let e=X4(t,`text`,1e5);if(!r.clipboard?.writeText||!await r.clipboard.writeText(e))throw Error(`Clipboard write failed`);return Z4(`Clipboard updated.`)}if(e===`desktop.app.open_external`){let e=X4(t,`url`,2048),n=new URL(e);if(n.protocol!==`http:`&&n.protocol!==`https:`)throw TypeError(`Only HTTP and HTTPS URLs are allowed`);if(!r.shell?.openExternalUrl)throw Error(`External URL opening is unavailable`);let i=await r.shell.openExternalUrl(n.href);if(!i.ok)throw Error(i.error);return Z4(`Opened ${n.href}`)}throw TypeError(`Unknown desktop tool: ${e}`)}var Q4=600,$4=[],e3=new Set;function t3(){for(let e of e3)e()}function n3(){return $4[0]}function Wue(e){return e3.add(e),()=>e3.delete(e)}function Gue(e){let t=JSON.stringify(e,null,2);return t.length<=Q4?t:`${t.slice(0,Q4)}\n…`}function Kue(e){return e.deadlineAt<=Date.now()?Promise.resolve(!1):new Promise(t=>{let n=window.setTimeout(()=>r3(e.invocationId,!1),e.deadlineAt-Date.now());$4.push({invocationId:e.invocationId,title:e.title,argumentsPreview:Gue(e.args),resolve:t,timeout:n}),t3()})}function r3(e,t){let n=$4.findIndex(t=>t.invocationId===e);if(n<0)return;let[r]=$4.splice(n,1);window.clearTimeout(r.timeout),r.resolve(t),t3()}function i3(){let e=$4;$4=[];for(let t of e)window.clearTimeout(t.timeout),t.resolve(!1);t3()}function que(){return(0,Z.useSyncExternalStore)(Wue,n3,n3)}function Jue(){let e=(0,Q.c)(38),t=que(),n=I(Yue)===`zh`,r=!!t,i;e[0]===t?i=e[1]:(i=e=>{!e&&t&&r3(t.invocationId,!1)},e[0]=t,e[1]=i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(GD,{className:`fixed inset-0 z-[140] bg-scrim backdrop-blur-[2px]`}),e[2]=a):a=e[2];let o=n?`允许端侧工具执行?`:`Allow endpoint tool?`,s;e[3]===o?s=e[4]:(s=(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:o}),e[3]=o,e[4]=s);let c=t?.title??``,l;e[5]===c?l=e[6]:(l=(0,$.jsx)(nO,{className:`mt-1 text-sm text-fg-muted`,children:c}),e[5]=c,e[6]=l);let u;e[7]!==s||e[8]!==l?(u=(0,$.jsxs)(`div`,{className:`border-b border-edge-subtle px-5 py-4`,children:[s,l]}),e[7]=s,e[8]=l,e[9]=u):u=e[9];let d=n?`实际参数`:`Arguments`,f;e[10]===d?f=e[11]:(f=(0,$.jsx)(`div`,{className:`mb-2 text-xs font-medium uppercase tracking-wide text-fg-subtle`,children:d}),e[10]=d,e[11]=f);let p=t?.argumentsPreview??`{}`,m;e[12]===p?m=e[13]:(m=(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words rounded-lg border border-edge bg-surface-base p-3 font-mono text-xs leading-5 text-fg`,children:p}),e[12]=p,e[13]=m);let h;e[14]!==m||e[15]!==f?(h=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-4`,children:[f,m]}),e[14]=m,e[15]=f,e[16]=h):h=e[16];let g;e[17]===t?g=e[18]:(g=()=>t&&r3(t.invocationId,!1),e[17]=t,e[18]=g);let _=n?`拒绝`:`Deny`,v;e[19]!==g||e[20]!==_?(v=(0,$.jsx)(Zw,{onClick:g,children:_}),e[19]=g,e[20]=_,e[21]=v):v=e[21];let y;e[22]===t?y=e[23]:(y=()=>t&&r3(t.invocationId,!0),e[22]=t,e[23]=y);let b=n?`允许`:`Allow`,x;e[24]!==y||e[25]!==b?(x=(0,$.jsx)(Zw,{variant:`primary`,onClick:y,children:b}),e[24]=y,e[25]=b,e[26]=x):x=e[26];let S;e[27]!==v||e[28]!==x?(S=(0,$.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge-subtle px-5 py-4`,children:[v,x]}),e[27]=v,e[28]=x,e[29]=S):S=e[29];let C;e[30]!==h||e[31]!==S||e[32]!==u?(C=(0,$.jsxs)(UD,{children:[a,(0,$.jsxs)(YD,{className:`fixed left-1/2 top-1/2 z-[150] flex h-[min(26rem,calc(100vh-2rem))] w-[min(32rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-float focus:outline-none`,children:[u,h,S]})]}),e[30]=h,e[31]=S,e[32]=u,e[33]=C):C=e[33];let w;return e[34]!==r||e[35]!==i||e[36]!==C?(w=(0,$.jsx)(LD,{open:r,onOpenChange:i,children:C}),e[34]=r,e[35]=i,e[36]=C,e[37]=w):w=e[37],w}function Yue(e){return e.language}var Xue=`xopc-endpoint-tools`,a3=`identity`,o3=`xopc.endpoint-tools.endpoint-id`,s3;function Zue(e){if(s3?.startsWith(`${e}:`))return s3;let t=sessionStorage.getItem(o3);return t?.startsWith(`${e}:`)?(s3=t,t):(s3=`${e}:${crypto.randomUUID()}`,sessionStorage.setItem(o3,s3),s3)}function c3(e){let t=String.fromCharCode(...new Uint8Array(e));return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/u,``)}function l3(){return new Promise((e,t)=>{let n=indexedDB.open(Xue,1);n.onupgradeneeded=()=>n.result.createObjectStore(a3),n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error??Error(`Endpoint identity database failed`))})}async function Que(e){let t=await l3();try{return await new Promise((n,r)=>{let i=t.transaction(a3).objectStore(a3).get(e);i.onsuccess=()=>n(i.result),i.onerror=()=>r(i.error??Error(`Endpoint identity read failed`))})}finally{t.close()}}async function $ue(e,t){let n=await l3();try{await new Promise((r,i)=>{let a=n.transaction(a3,`readwrite`);a.objectStore(a3).put(t,e),a.oncomplete=()=>r(),a.onerror=()=>i(a.error??Error(`Endpoint identity write failed`))})}finally{n.close()}}async function ede(e){let t=await l3();try{await new Promise((n,r)=>{let i=t.transaction(a3,`readwrite`);i.objectStore(a3).delete(e),i.oncomplete=()=>n(),i.onerror=()=>r(i.error??Error(`Endpoint identity deletion failed`))})}finally{t.close()}}async function u3(e){let t=await Que(e);if(t)return t;let n=await crypto.subtle.generateKey({name:`ECDSA`,namedCurve:`P-256`},!0,[`sign`,`verify`]),r=c3(await crypto.subtle.exportKey(`spki`,n.publicKey)),i=await crypto.subtle.importKey(`pkcs8`,await crypto.subtle.exportKey(`pkcs8`,n.privateKey),{name:`ECDSA`,namedCurve:`P-256`},!1,[`sign`]),a={principalId:crypto.randomUUID(),publicKey:r,privateKey:i};return await $ue(e,a),a}async function tde(e){return await ede(e),s3=void 0,sessionStorage.removeItem(o3),u3(e)}async function nde(e,t){return c3(await crypto.subtle.sign({name:`ECDSA`,hash:`SHA-256`},e,new TextEncoder().encode(t)))}var rde=2e3;function d3(){return document.visibilityState===`visible`&&document.hasFocus()?`foreground`:`background`}async function ide(e){let t=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(LF(e)));return[...new Uint8Array(t)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var ade=class{config;channel;reconnectTimer;connectPromise;detachRealtime;stopped=!1;registrationBlocked=!1;endpointId;turnToken;cancelled=new Set;revisionByTool=new Map;constructor(e){this.config=e}async start(){this.stopped=!1,this.registrationBlocked=!1;for(let e of this.config.tools)this.revisionByTool.set(e.name,await ide(e));document.addEventListener(`visibilitychange`,this.onVisibilityChange),window.addEventListener(`token-saved`,this.onTokenSaved),await this.connect()}stop(){this.stopped=!0,document.removeEventListener(`visibilitychange`,this.onVisibilityChange),window.removeEventListener(`token-saved`,this.onTokenSaved),window.clearTimeout(this.reconnectTimer),this.detachRealtime?.(),this.detachRealtime=void 0,this.channel=void 0,XM(this.turnToken),this.turnToken=void 0,this.endpointId=void 0,i3()}onTokenSaved=()=>{this.registrationBlocked=!1,this.connect()};onVisibilityChange=()=>{this.send(`endpoint.availability_changed`,{availability:d3()})};connect(e=!0){if(this.connectPromise)return this.connectPromise;let t=this.connectOnce(e).finally(()=>{this.connectPromise===t&&(this.connectPromise=void 0)});return this.connectPromise=t,t}async connectOnce(e){if(!(this.stopped||this.registrationBlocked)){window.clearTimeout(this.reconnectTimer);try{let t=await u3(this.config.kind);if(this.stopped)return;let n=await L(z(`/api/endpoint-tools/principals`),{method:`POST`,body:JSON.stringify({principalId:t.principalId,displayName:this.config.displayName,kind:this.config.kind,platform:this.config.platform,publicKey:t.publicKey})});if(!n.ok){if((await n.json().catch(()=>null))?.error?.code===`PRINCIPAL_REVOKED`){if(!e){this.registrationBlocked=!0;return}let t=await this.config.confirmReenrollment();if(this.stopped)return;if(!t){this.registrationBlocked=!0;return}await tde(this.config.kind),this.stopped||await this.connectOnce(!1);return}if(n.status>=400&&n.status<500){this.registrationBlocked=!0;return}throw Error(`Endpoint registration failed: ${n.status}`)}if(this.stopped)return;let r={createHello:()=>this.createHello(t),onReady:({endpointId:e,turnToken:t})=>{this.endpointId=e,this.turnToken=t,YM(e,t),this.channel={readyState:1,send:e=>{let t=JSON.parse(e);this.realtimeSend(t)}}},onMessage:e=>{let t=this.channel;t&&this.handleMessage(e,t)},onDisconnected:()=>{this.channel=void 0,XM(this.turnToken),this.turnToken=void 0,i3()}};this.detachRealtime?.(),this.detachRealtime=mI(r)}catch{this.scheduleReconnect()}}}scheduleReconnect(){this.stopped||this.reconnectTimer!==void 0||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=void 0,this.connect()},rde))}async createHello(e){let t=Zue(e.principalId);this.endpointId=t;let n={principalId:e.principalId,endpointId:t,connectionInstanceId:crypto.randomUUID(),displayName:this.config.displayName,kind:this.config.kind,platform:this.config.platform,appVersion:this.config.appVersion,availability:d3(),nonce:crypto.randomUUID(),signedAt:Date.now(),signature:`pending`,tools:[...this.config.tools]},r=await nde(e.privateKey,RF(n));return{...n,signature:r}}async handleMessage(e,t){if(this.channel===t){if(e.type===`tool.cancel`){this.cancelled.add(e.payload.invocationId),r3(e.payload.invocationId,!1);return}await this.invoke(e,t)}}async invoke(e,t){let{invocationId:n,toolName:r,arguments:i,descriptorRevision:a,confirmationRequired:o,deadlineAt:s,uploadGrant:c}=e.payload;this.sendOn(t,`tool.received`,{invocationId:n});let l=this.config.tools.find(e=>e.name===r);if(!l){this.sendError(t,n,`TOOL_NOT_FOUND`,`Endpoint tool is not registered`);return}if(this.revisionByTool.get(r)!==a){this.sendError(t,n,`TOOL_REVISION_MISMATCH`,`Endpoint tool contract changed`);return}let u=l.confirmation===`always`||l.effect!==`read`;if(o!==u){this.sendError(t,n,`PROTOCOL_ERROR`,`Endpoint confirmation policy mismatch`);return}try{if(!this.ensureExecutable(t,n,l,s))return;if(u){let e=await Kue({invocationId:n,title:l.title,args:i,deadlineAt:s});if(!this.ensureExecutable(t,n,l,s))return;if(!e){this.sendError(t,n,`USER_DENIED`,`User denied the endpoint tool call`);return}}let e=await this.config.execute(r,i,{uploadFile:e=>this.uploadFile(c,e)});if(!this.ensureExecutable(t,n,l,s))return;this.sendOn(t,`tool.result`,{invocationId:n,content:e.content}),e.afterSend&&window.setTimeout(()=>{this.channel===t&&t.readyState===1&&Date.now()<s&&(!l.requiresForeground||d3()===`foreground`)&&e.afterSend?.()},50)}catch(e){let r=e instanceof TypeError,i=e instanceof DOMException&&e.name===`AbortError`,a=e instanceof DOMException&&e.name===`NotAllowedError`;this.sendError(t,n,r?`INVALID_ARGUMENTS`:i?`USER_DENIED`:a?`PERMISSION_DENIED`:`PROTOCOL_ERROR`,e instanceof Error?e.message:String(e))}finally{this.cancelled.delete(n)}}async uploadFile(e,t){if(!e||!this.endpointId)throw Error(`Endpoint file upload grant is unavailable`);if(!t.name||t.name.length>255||!t.mimeType||t.mimeType.length>255||t.bytes.byteLength>e.maxBytes||e.expiresAt<=Date.now())throw TypeError(`Endpoint file is invalid`);let n=new URL(z(e.path),window.location.href);n.searchParams.set(`name`,t.name);let r=t.bytes.buffer.slice(t.bytes.byteOffset,t.bytes.byteOffset+t.bytes.byteLength),i=await L(n,{method:`POST`,headers:{"Content-Type":t.mimeType,"x-endpoint-id":this.endpointId,"x-endpoint-upload-token":e.token},body:r}),a=await i.json().catch(()=>null);if(!i.ok)throw Error(a?.error?.message??`Endpoint file upload failed: ${i.status}`);let o=MF.safeParse(a?.payload);if(!o.success||o.data.type!==`file`)throw Error(`Endpoint file upload returned an invalid response`);return o.data}ensureExecutable(e,t,n,r){return this.channel!==e||e.readyState!==1?!1:this.cancelled.delete(t)?(this.sendOn(e,`tool.cancelled`,{invocationId:t}),!1):Date.now()>=r?(this.sendError(e,t,`TOOL_TIMEOUT`,`Endpoint tool deadline expired`),!1):n.requiresForeground&&d3()!==`foreground`?(this.sendError(e,t,`ENDPOINT_NOT_FOREGROUND`,`Endpoint is not foreground`),!1):!0}sendError(e,t,n,r){this.sendOn(e,`tool.error`,{invocationId:t,code:n,message:r})}send(e,t){!this.channel||this.channel.readyState!==1||this.channel.send(JSON.stringify({protocolVersion:1,messageId:crypto.randomUUID(),type:e,sentAt:Date.now(),payload:t}))}sendOn(e,t,n){e.readyState===1&&e.send(JSON.stringify({protocolVersion:1,messageId:crypto.randomUUID(),type:t,sentAt:Date.now(),payload:n}))}realtimeSend(e){this.channel&&hI(e)}},f3,p3=new Set;function m3(){for(let e of p3)e()}function ode(e){return p3.add(e),()=>p3.delete(e)}function h3(){return!!f3}function g3(){return f3?Promise.resolve(!1):new Promise(e=>{f3={resolve:e},m3()})}function _3(e){let t=f3;t&&(f3=void 0,t.resolve(e),m3())}function sde(){return(0,Z.useSyncExternalStore)(ode,h3,h3)}function cde(){let e=(0,Q.c)(21),t=sde(),n=I(fde)===`zh`,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(GD,{className:`fixed inset-0 z-[140] bg-scrim backdrop-blur-[2px]`}),e[0]=r):r=e[0];let i=n?`重新注册此端?`:`Re-enroll this endpoint?`,a;e[1]===i?a=e[2]:(a=(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:i}),e[1]=i,e[2]=a);let o=n?`此端身份已被撤销。继续会删除旧密钥并生成一个新的端身份,然后重新连接 Gateway。`:`This endpoint identity was revoked. Continuing deletes the old key, creates a new endpoint identity, and reconnects to the Gateway.`,s;e[3]===o?s=e[4]:(s=(0,$.jsx)(nO,{className:`mt-3 text-sm leading-6 text-fg-muted`,children:o}),e[3]=o,e[4]=s);let c;e[5]!==a||e[6]!==s?(c=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-5`,children:[a,s]}),e[5]=a,e[6]=s,e[7]=c):c=e[7];let l=n?`取消`:`Cancel`,u;e[8]===l?u=e[9]:(u=(0,$.jsx)(Zw,{onClick:ude,children:l}),e[8]=l,e[9]=u);let d=n?`生成新身份`:`Create new identity`,f;e[10]===d?f=e[11]:(f=(0,$.jsx)(Zw,{variant:`primary`,onClick:lde,children:d}),e[10]=d,e[11]=f);let p;e[12]!==u||e[13]!==f?(p=(0,$.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge-subtle px-5 py-4`,children:[u,f]}),e[12]=u,e[13]=f,e[14]=p):p=e[14];let m;e[15]!==p||e[16]!==c?(m=(0,$.jsxs)(UD,{children:[r,(0,$.jsxs)(YD,{className:`fixed left-1/2 top-1/2 z-[150] flex h-[min(22rem,calc(100vh-2rem))] w-[min(30rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-float focus:outline-none`,children:[c,p]})]}),e[15]=p,e[16]=c,e[17]=m):m=e[17];let h;return e[18]!==t||e[19]!==m?(h=(0,$.jsx)(LD,{open:t,onOpenChange:dde,children:m}),e[18]=t,e[19]=m,e[20]=h):h=e[20],h}function lde(){return _3(!0)}function ude(){return _3(!1)}function dde(e){return!e&&_3(!1)}function fde(e){return e.language}var pde=[{name:`web.file.pick`,title:`Choose a local file`,description:`Ask the user to choose one browser-accessible file and make it available to the agent.`,inputSchema:{type:`object`,properties:{},additionalProperties:!1},effect:`read`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`file-read`],timeoutMs:12e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`file`]},{name:`web.file.download`,title:`Download a text file`,description:`Download bounded UTF-8 text generated by the agent through this browser.`,inputSchema:{type:`object`,properties:{suggestedName:{type:`string`,minLength:1,maxLength:255},content:{type:`string`,maxLength:2e5}},required:[`suggestedName`,`content`],additionalProperties:!1},effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`file-download`],timeoutMs:3e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]},{name:`web.page.get_selection`,title:`Read selected text`,description:`Read the text currently selected in this browser tab.`,inputSchema:{type:`object`,properties:{},additionalProperties:!1},effect:`read`,confirmation:`never`,requiresForeground:!0,requiredPermissions:[],timeoutMs:1e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!0,resultKinds:[`text`]},{name:`web.clipboard.write`,title:`Write clipboard`,description:`Write text to the clipboard from this browser tab.`,inputSchema:{type:`object`,properties:{text:{type:`string`,maxLength:1e5}},required:[`text`],additionalProperties:!1},effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`clipboard-write`],timeoutMs:3e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!0,resultKinds:[`text`]},{name:`web.page.navigate`,title:`Navigate page`,description:`Navigate this browser tab to an HTTP or HTTPS URL.`,inputSchema:{type:`object`,properties:{url:{type:`string`,maxLength:4096}},required:[`url`],additionalProperties:!1},effect:`destructive`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`navigation`],timeoutMs:3e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]}];function v3(e){return{content:[{type:`text`,text:e}]}}function y3(){if(!navigator.userActivation?.isActive)throw new DOMException(`A current user gesture is required`,`NotAllowedError`)}function b3(e){return new DOMException(e,`AbortError`)}function mde(e){let t=e.suggestedName,n=e.content;if(Object.keys(e).length!==2||typeof t!=`string`||!t||t===`.`||t===`..`||t.length>255||t.includes(`/`)||t.includes(`\\`)||typeof n!=`string`||n.length>2e5||new TextEncoder().encode(n).byteLength>200*1024)throw TypeError(`Invalid file download arguments`);return{suggestedName:t,content:n}}function hde(){return y3(),new Promise((e,t)=>{let n=document.createElement(`input`);n.type=`file`,n.multiple=!1,n.onchange=()=>{let r=n.files?.[0];r?e(r):t(b3(`File selection cancelled`))},n.oncancel=()=>t(b3(`File selection cancelled`)),n.click()})}function x3(e,t){let n=e[t];if(typeof n!=`string`||n.length===0)throw TypeError(`${t} must be a non-empty string`);return n}function S3(e,t){let n=Object.keys(e).toSorted(),r=t.toSorted();if(n.length!==r.length||n.some((e,t)=>e!==r[t]))throw TypeError(`arguments must contain exactly: ${r.join(`, `)||`no fields`}`)}async function gde(e,t,n){if(e===`web.file.pick`){S3(t,[]);let e=await hde();if(e.size>26214400)throw TypeError(`Selected file exceeds ${gF} bytes`);let r=new Uint8Array(await e.arrayBuffer());if(r.byteLength!==e.size||r.byteLength>26214400)throw Error(`Selected file payload is invalid`);return{content:[await n.uploadFile({name:e.name,mimeType:e.type||`application/octet-stream`,bytes:r})]}}if(e===`web.file.download`){let{suggestedName:e,content:n}=mde(t);y3();let r=URL.createObjectURL(new Blob([n],{type:`text/plain;charset=utf-8`}));try{let t=document.createElement(`a`);t.href=r,t.download=e,t.click()}finally{URL.revokeObjectURL(r)}return v3(`Download started: ${e}`)}if(e===`web.page.get_selection`)return S3(t,[]),v3(window.getSelection()?.toString()??``);if(e===`web.clipboard.write`){if(S3(t,[`text`]),!navigator.clipboard||!document.hasFocus())throw new DOMException(`Clipboard access requires a focused browser tab`,`NotAllowedError`);let e=x3(t,`text`);if(e.length>1e5)throw TypeError(`text exceeds 100000 characters`);return await navigator.clipboard.writeText(e),v3(`Clipboard updated.`)}if(e===`web.page.navigate`){S3(t,[`url`]);let e=x3(t,`url`);if(e.length>4096)throw TypeError(`url exceeds 4096 characters`);let n=new URL(e,window.location.href);if(n.protocol!==`http:`&&n.protocol!==`https:`)throw TypeError(`url must use HTTP or HTTPS`);return{content:[{type:`text`,text:`Navigating to ${n.href}`}],afterSend:()=>window.location.assign(n.href)}}throw Error(`Unknown web endpoint tool: ${e}`)}function C3(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,Z.useEffect)(_de,t);let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Jue,{}),(0,$.jsx)(cde,{})]}),e[1]=n):n=e[1],n}function _de(){let e=new ade($E()?{kind:`desktop`,platform:window.electronAPI?.platform??`desktop`,displayName:`xopc Desktop`,appVersion:`1`,tools:Vue,execute:Uue,confirmReenrollment:g3}:{kind:`web`,platform:`web`,displayName:`Web browser`,appVersion:`1`,tools:pde,execute:gde,confirmReenrollment:g3});return e.start(),()=>{_3(!1),e.stop()}}function w3(){let e=(0,Q.c)(3),t=m(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{if(!$E())return;let e=window.electronAPI;if(!e?.menu)return;let n=e.menu.onNavigate(e=>{t(e)}),r=e.menu.onTogglePalette(bde),i=e.menu.onQuickCapture(yde),a=e.menu.onToggleSidebar(vde),o=e.menu.onHistoryNavigate(e=>{t(e)});return()=>{n(),r(),i(),a(),o()}},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function vde(){bD.getState().toggleCollapsed()}function yde(){gN()}function bde(){window.dispatchEvent(new CustomEvent(`toggle-command-palette`))}var xde=1500,Sde=9e4;function Cde(){let e=(0,Q.c)(16),t=I(Ede),n;e[0]===t?n=e[1]:(n=j(t),e[0]=t,e[1]=n);let r=n.updatePanel,[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(!1),c=(0,Z.useRef)(0),l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=c.current+=1;a(!0),s(!1),(async()=>{await new Promise(Tde);let t=Date.now()+Sde;for(;e===c.current&&Date.now()<t;){try{if((await fetch(z(`/api/health`),{signal:AbortSignal.timeout(3e3)})).ok){window.location.reload();return}}catch{}await new Promise(wde)}e===c.current&&s(!0)})()},e[2]=l):l=e[2];let u=l,d,f;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>{let e=()=>u();return window.addEventListener(`gateway-restart-initiated`,e),()=>{c.current+=1,window.removeEventListener(`gateway-restart-initiated`,e)}},f=[u],e[3]=d,e[4]=f):(d=e[3],f=e[4]),(0,Z.useEffect)(d,f);let p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{u()},e[5]=p):p=e[5];let m=p;if(!i)return null;let h=o?`border-red-500/20 bg-red-500/10 text-red-800 dark:text-red-200`:`border-amber-500/25 bg-amber-500/10 text-amber-900 dark:text-amber-100`,g;e[6]===h?g=e[7]:(g=C(`flex min-h-10 w-full items-center justify-center gap-2 border-b px-4 py-2 text-sm`,h),e[6]=h,e[7]=g);let _;e[8]!==r.restartPollRetry||e[9]!==r.restartPollTimeout||e[10]!==r.restartPolling||e[11]!==o?(_=o?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{children:r.restartPollTimeout}),(0,$.jsx)(`button`,{type:`button`,onClick:m,className:`ml-2 rounded bg-accent px-2 py-0.5 text-xs font-medium text-white hover:bg-accent/90`,children:r.restartPollRetry})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Zg,{className:`size-4 animate-spin`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:r.restartPolling})]}),e[8]=r.restartPollRetry,e[9]=r.restartPollTimeout,e[10]=r.restartPolling,e[11]=o,e[12]=_):_=e[12];let v;return e[13]!==g||e[14]!==_?(v=(0,$.jsx)(`div`,{className:g,children:_}),e[13]=g,e[14]=_,e[15]=v):v=e[15],v}function wde(e){return setTimeout(e,xde)}function Tde(e){return setTimeout(e,2e3)}function Ede(e){return e.language}async function T3(){return B(z(`/api/tunnel/pair/context`))}async function Dde(){return B(z(`/api/tunnel/pair/enable-lan`),{method:`POST`,body:JSON.stringify({})})}async function Ode(){return B(z(`/api/tunnel/status`))}async function kde(){await B(z(`/api/tunnel/consent`),{method:`POST`,body:JSON.stringify({})})}async function Ade(){return B(z(`/api/tunnel/start`),{method:`POST`,body:JSON.stringify({})})}async function jde(e){return B(z(`/api/tunnel/stop`),{method:`POST`,body:JSON.stringify({release:e?.release===!0})})}async function Mde(){return B(z(`/api/tunnel/qr`))}async function Nde(){return B(z(`/api/tunnel/pair`),{method:`POST`,body:JSON.stringify({})})}async function Pde(){let e=(await B(z(`/api/tunnel/reveal-registration-secret`),{method:`POST`,body:JSON.stringify({})})).payload;if(!e)throw Error(`Missing reveal payload`);return{registrationSecret:e.registrationSecret??null,source:e.source===`config`?`config`:`none`}}async function Fde(e){await B(z(`/api/config`),{method:`PATCH`,body:JSON.stringify({tunnel:e})})}async function E3(){if($E()&&window.electronAPI?.gateway?.restart){let e=await window.electronAPI.gateway.restart();return e.ok&&e.token&&F.getState().setGatewayToken(e.token),e}let e=await B(z(`/api/gateway/restart`),{method:`POST`,body:JSON.stringify({})});return e.ok===!1?{ok:!1,message:e.message??e.error??`Gateway restart failed`}:{ok:!0}}async function Ide(e,t={}){let n=t.timeoutMs??9e4,r=t.intervalMs??500,i=Date.now()+n,a=async()=>{if(Date.now()>=i)return!1;try{if((await fetch(z(`/api/tunnel/pair/context`),{headers:{Authorization:`Bearer ${e}`}})).ok)return!0}catch{}return await new Promise(e=>setTimeout(e,r)),a()};return a()}async function Lde(e={}){let t=e.timeoutMs??9e4,n=e.intervalMs??500,r=Date.now()+t,i=async()=>{if(Date.now()>=r)return null;try{let e=await T3();if(e.pairingReady)return e}catch{}return await new Promise(e=>setTimeout(e,n)),i()};return i()}function Rde({reminder:e,compact:t}){let n=I(e=>e.language),r=j(n).updatePanel,{show:i,dismiss:a,electronQuitAndInstall:o,runNpmUpdate:s,npmUpdateRunning:c}=e,[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(null),p=(0,Z.useCallback)(async()=>{u(!0),f(null);try{let e=await E3();if(e.ok){window.dispatchEvent(new Event(`gateway-restart-initiated`));return}f(e.message??`Gateway restart failed`)}catch(e){f(e instanceof Error?e.message:String(e))}finally{u(!1)}},[]),m=(0,Z.useCallback)(async()=>{let e=j(n).updatePanel;f(null);let t=await s();if(t.ok){De({tone:`success`,title:e.updateSuccess,message:sA(t.result)?e.updateSuccessAutoRestartDetail:e.updateSuccessDetail,source:n===`zh`?`系统更新`:`System update`,dedupeKey:`system-update`});return}f(`${t.error===`git-checkout`?e.updateErrorGit:t.error===`busy`?e.updateErrorBusy:e.updateErrorFailed}: ${t.message}`)},[s,n]);if(i.kind===`none`)return null;let h=C(`absolute right-2 top-1/2 z-[1] flex -translate-y-1/2 items-center gap-1 sm:right-3`,Je);return i.kind===`electron-ready`?(0,$.jsxs)(`div`,{className:C(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-accent/20 bg-accent/10 px-10 py-2 text-sm sm:px-12`,qe,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`flex max-w-[min(100%,48rem)] items-center justify-center gap-2 text-center`,children:[(0,$.jsx)(ou,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0`,children:r.reminderElectronReady.replace(`{{version}}`,i.version)})]}),(0,$.jsxs)(`div`,{className:h,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:o,className:`rounded bg-accent px-2.5 py-1 text-xs font-medium text-white hover:bg-accent/90`,children:[(0,$.jsx)(ky,{className:`mr-1 inline size-3`}),r.restartToUpdate]}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:`rounded p-1 text-fg-muted hover:text-fg`,"aria-label":r.dismissAria,title:r.dismissHint,children:(0,$.jsx)(Aw,{className:`size-4`})})]})]}):i.kind===`electron-error`?(0,$.jsxs)(`div`,{className:C(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-red-500/20 bg-red-500/10 px-10 py-2 text-sm text-fg sm:px-12`,qe,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`flex max-w-[min(100%,52rem)] items-center justify-center gap-2 text-center`,children:[(0,$.jsx)(Ao,{className:`size-4 shrink-0 text-red-500 dark:text-red-400`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 break-words`,children:r.reminderElectronUpdateError.replace(`{{detail}}`,i.message)})]}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:h,"aria-label":r.dismissAria,title:r.dismissHint,children:(0,$.jsx)(Aw,{className:`size-4`})})]}):i.kind===`electron-downloading`?(0,$.jsxs)(`div`,{className:C(`relative flex min-h-10 w-full min-w-0 flex-col items-center justify-center gap-2 border-b border-edge bg-surface-secondary px-10 py-2 text-sm text-fg-muted sm:flex-row sm:gap-4 sm:px-12`,qe,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`flex max-w-full items-center justify-center gap-2 text-center`,children:[(0,$.jsx)(ou,{className:`size-4 shrink-0 animate-pulse`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:r.reminderDownloading.replace(`{{percent}}`,String(i.percent))})]}),(0,$.jsx)(`div`,{className:`h-1.5 w-full max-w-xs rounded-full bg-surface-tertiary sm:max-w-[12rem]`,children:(0,$.jsx)(`div`,{className:`h-full rounded-full bg-accent transition-all`,style:{width:`${i.percent}%`}})}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:C(h,`sm:right-2`),"aria-label":r.dismissAria,children:(0,$.jsx)(Aw,{className:`size-4`})})]}):i.kind===`npm-restart-required`?(0,$.jsxs)(`div`,{className:C(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-amber-500/25 bg-amber-500/10 py-2 text-sm`,qe,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-[min(100%,52rem)] flex-wrap items-center justify-center gap-x-2 gap-y-1 px-10 pr-14 text-center sm:px-12 sm:pr-16`,children:[(0,$.jsx)(`span`,{children:r.restartRequired.replace(`{{version}}`,i.version)}),(0,$.jsxs)(`button`,{type:`button`,onClick:p,disabled:l,className:C(`inline-flex shrink-0 items-center gap-1 rounded bg-accent px-2.5 py-1 text-xs font-medium text-white hover:bg-accent/90 disabled:cursor-not-allowed disabled:opacity-60`,Je),children:[l?(0,$.jsx)(Zg,{className:`size-3 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(ky,{className:`size-3 shrink-0`,"aria-hidden":!0}),r.restartGateway]}),d?(0,$.jsx)(`span`,{className:`w-full text-xs text-danger`,role:`alert`,children:d}):null]}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:h,"aria-label":r.dismissAria,title:r.dismissHint,children:(0,$.jsx)(Aw,{className:`size-4`})})]}):i.kind===`npm-restarting`?(0,$.jsx)(`div`,{className:C(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-accent/20 bg-accent/10 py-2 text-sm`,qe,t&&`text-xs`),children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-[min(100%,52rem)] items-center justify-center gap-2 px-10 pr-14 text-center sm:px-12 sm:pr-16`,children:[(0,$.jsx)(Zg,{className:`size-4 shrink-0 animate-spin text-accent`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:r.restartingAutomatically.replace(`{{version}}`,i.version)})]})}):i.kind===`npm`?(0,$.jsxs)(`div`,{className:C(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-accent/20 bg-accent/10 py-2 text-sm`,qe,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:C(`mx-auto flex max-w-[min(100%,52rem)] flex-wrap items-center justify-center gap-x-2 gap-y-1 px-10 pr-14 text-center sm:px-12 sm:pr-16`),children:[(0,$.jsxs)(`span`,{children:[r.reminderNpm.replace(`{{version}}`,i.version),i.channel&&i.channel!==`latest`?` (${i.channel})`:``]}),(0,$.jsxs)(`button`,{type:`button`,onClick:m,disabled:c,className:C(`inline-flex shrink-0 items-center gap-1 rounded bg-accent px-2.5 py-1 text-xs font-medium text-white hover:bg-accent/90 disabled:cursor-not-allowed disabled:opacity-60`,Je),children:[c?(0,$.jsx)(Zg,{className:`size-3 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(ky,{className:`size-3 shrink-0`,"aria-hidden":!0}),c?r.updateRunning:r.updateNow]}),d?(0,$.jsx)(`span`,{className:`w-full text-xs text-danger`,role:`alert`,children:d}):null]}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:h,"aria-label":r.dismissAria,title:r.dismissHint,children:(0,$.jsx)(Aw,{className:`size-4`})})]}):null}function zde(e,t,n){let r=j(e),i=r.commandPalette.actions,a=r.commandPalette.groups.actions;return[{kind:`action`,id:`action:local-app:create`,title:i.createLocalApp,subtitle:i.createLocalAppSubtitle,groupLabel:a,keywords:[`app`,`local app`,`create app`,`tool`,`workshop`,`coder`,`应用`,`创建应用`,`工具`,`工坊`],run:()=>{n(),t(`/local-apps/new`)}},{kind:`action`,id:`action:automation:create`,title:`Create automation`,subtitle:`Open automations to create a trigger and action`,groupLabel:a,keywords:[`automation`,`schedule`,`trigger`,`action`,`timer`],run:()=>{n(),t(`/automations?action=create`)}},{kind:`action`,id:`action:automation:manage`,title:`Manage automations`,subtitle:`View automations and run history`,groupLabel:a,keywords:[`automation`,`schedule`,`tasks`,`runs`],run:()=>{n(),t(`/automations`)}},{kind:`action`,id:`action:skills:manage`,title:i.manageSkills,subtitle:i.manageSkillsSubtitle,groupLabel:a,keywords:[`skills`,`skill`,`catalog`],run:()=>{n(),t(`/skills`)}},{kind:`action`,id:`action:skills:reload`,title:i.reloadSkills,subtitle:i.reloadSkillsSubtitle,groupLabel:a,keywords:[`skills`,`reload`,`refresh`],run:()=>{n(),c(async()=>{let{reloadSkills:e}=await import(`./skill-reload-api-QAGpwzIM.js`).then(e=>e.n);return{reloadSkills:e}},__vite__mapDeps([34,1,6,2,7])).then(({reloadSkills:e})=>e())}}]}function Bde(e){if(e)return e.replace(/CmdOrCtrl/g,`Ctrl`).replace(/Command/g,`Ctrl`).replace(/\+/g,` + `)}async function Vde(e,t){let n=window.electronAPI?.menu;if(!n)return[];try{let r=await n.getModel(),i=j(e).commandPalette.groups.actions;return r.flatMap(e=>e.items.flatMap(r=>{if(r.type!==`item`||r.id.startsWith(`role.`))return[];let a=Bde(r.accelerator);return[{kind:`action`,id:`desktop-menu:${r.id}`,title:r.label,subtitle:[e.label,a].filter(Boolean).join(` · `)||void 0,groupLabel:i,keywords:[r.id,e.id,e.label,r.accelerator??``],run:()=>{t(),n.invoke(r.id)}}]}))}catch{return[]}}function D3(e){return j(e).commandPalette.groups}function Hde(e){let t=D3(e);return{[t.navigate]:0,[t.projects]:1,[t.quickSettings]:2,[t.extensions]:3,[t.sessions]:4,[t.files]:5,[t.commands]:6,[t.skills]:7,[t.actions]:8}}function Ude(e){let t=D3(e);return{[t.navigate]:12,[t.projects]:8,[t.quickSettings]:12,[t.actions]:8,[t.extensions]:8,[t.sessions]:8,[t.files]:10,[t.commands]:6,[t.skills]:6}}function O3(e,t){return Hde(e)[t]??10}function k3(e){return e.trim().toLowerCase()}function Wde(e,t){let n=k3(e),r=k3(t);if(!r)return 0;if(!n)return null;if(n===r)return 0;if(n.startsWith(r))return 1;let i=n.indexOf(r);return i>=0?2+Math.min(i,50)/100:null}function Gde(e,t){let n=t.trim();if(!n)return 0;let r=[{text:e.title,weight:1},{text:e.subtitle??``,weight:1.75}];for(let t of e.keywords??[])r.push({text:t,weight:1.25});let i=null;for(let e of r){let t=Wde(e.text,n);if(t===null)continue;let r=t*e.weight;i=i===null?r:Math.min(i,r)}if(i===null)return null;let a=e.kind===`route`?-.15:e.kind===`project`?-.12:e.kind===`file`?-.1:e.kind===`session`?-.05:e.kind===`setting`||e.kind===`action`?-.02:0;return Math.max(0,i+a)}function Kde(e){return e.toSorted((e,t)=>e.rank===t.rank?e.groupLabel===t.groupLabel?e.title.localeCompare(t.title):e.groupLabel.localeCompare(t.groupLabel):e.rank-t.rank)}var qde=new Set([`settingsTunnel`,`settingsShares`,`settingsHeartbeat`,`logs`]),Jde=[`/settings/remote-access`,`/settings/tunnel`,`/settings/shares`,`/settings/heartbeat`,`/settings/logs`,`/settings/extensions/debug`,`/settings/ext/`];function A3(e,t){return t===`advanced`?!0:!qde.has(e)}function j3(e,t){return t===`advanced`?!0:!Jde.some(t=>e===t||e.startsWith(t))}var M3=`/channels`;function N3(e){return`${M3}/${encodeURIComponent(e.trim().toLowerCase())}`}function Yde(e){return e?.trim().toLowerCase()||null}var P3=R(U(e=>({mode:`simple`,setMode:t=>e({mode:t}),setShowAdvanced:t=>e({mode:t?`advanced`:`simple`})}),{name:`xopc-web-settings-mode`}));function Xde(){return P3(Zde)}function Zde(e){return e.mode===`advanced`}var Qde=[`settingsAgentBrowser`],$de={settingsAgentBrowser:[`browser`,`playwright`,`automation`]};function efe(e,t){let n=j(e).commandPalette.routes.agentsSubtitle;return Qde.filter(e=>A3(e,t)).map(t=>({id:`route:settings:agent:${t}`,title:A(e,t),subtitle:n,path:GE(t),keywords:[`agent`,`manifest`,`preset`,`config`,...$de[t]??[]]}))}function tfe(e,t){return e.filter(e=>j3(e.path.split(`?`)[0]??e.path,t))}function nfe(e){let t=j(e),n=t.commandPalette.routes,r=t.capabilitiesSettings,i=t.channelsSettings,a=P3.getState().mode;return tfe([{id:`route:chat`,title:t.nav.chat,subtitle:n.chatSubtitle,path:`/chat`,keywords:[`chat`,`new`,`compose`,`assistant`]},{id:`route:agents`,title:t.nav.agents,subtitle:n.agentsSubtitle,path:`/agents`,keywords:[`agent`,`persona`,`switch`]},{id:`route:extensions`,title:t.nav.extensions,subtitle:n.extensionsSubtitle,path:`/extensions`,keywords:[`extension`,`plugin`,`addon`]},{id:`route:local-apps`,title:t.nav.localApps,subtitle:n.localAppsSubtitle,path:`/local-apps`,keywords:[`app`,`apps`,`local app`,`tool`,`workshop`,`coder`,`应用`,`本地应用`,`工具`,`工坊`]},{id:`route:sessions`,title:t.nav.sessions,subtitle:n.sessionsSubtitle,path:`/settings/sessions`,keywords:[`history`,`archive`,`pin`]},{id:`route:logs`,title:t.nav.logs,subtitle:n.logsSubtitle,path:`/settings/logs`,keywords:[`debug`,`errors`]},{id:`route:skills`,title:t.nav.skills,subtitle:n.skillsSubtitle,path:`/skills`,keywords:[`tools`,`catalog`]},{id:`route:connectors`,title:t.nav.connectors,subtitle:n.connectorsSubtitle,path:`/connectors`,keywords:[`connector`,`mcp`,`registry`,`integration`,`tools`]},{id:`route:channels`,title:t.nav.channels,subtitle:n.channelsSubtitle,path:`/channels`,keywords:[`telegram`,`weixin`,`feishu`,`channel`]},{id:`route:channels:telegram`,title:`Telegram`,subtitle:n.channelsSubtitle,path:N3(`telegram`),keywords:[`telegram`,`bot`,`channel`,`pairing`]},{id:`route:channels:weixin`,title:`Weixin`,subtitle:n.channelsSubtitle,path:N3(`weixin`),keywords:[`weixin`,`wechat`,`channel`,`qr`]},{id:`route:channels:feishu`,title:`Feishu/Lark`,subtitle:n.channelsSubtitle,path:N3(`feishu`),keywords:[`feishu`,`lark`,`channel`]},{id:`route:channels:telegram:pairing`,title:`Telegram — ${i.hubPairingButton}`,subtitle:n.channelsSubtitle,path:N3(`telegram`),keywords:[`telegram`,`pairing`,`approve`,`dm`]},{id:`route:automations`,title:`Automations`,subtitle:`Triggers, actions, and run history`,path:`/automations`,keywords:[`automation`,`automations`,`schedule`,`tasks`,`history`,`scheduler`]},{id:`route:settings`,title:t.nav.settings,subtitle:n.settingsSubtitle,path:`/settings/overview`,keywords:[`config`,`status`,`providers`,`models`,`agents`,`search`,`preferences`]},{id:`route:settings:capabilities`,title:t.nav.settingsCapabilities,subtitle:n.capabilitiesSubtitle,path:qE(`models`),keywords:[`api`,`key`,`credentials`,`oauth`,`token`,`models`,`providers`,`image`,`voice`,`search`,`模型与服务`,`模型与能力`,`密钥`,`服务商`,`图片`,`语音`,`网络搜索`]},{id:`route:settings:capabilities:models`,title:r.tabs.models,subtitle:n.modelsSubtitle,path:qE(`models`),keywords:[`api`,`key`,`provider`,`openai`,`anthropic`,`google`,`gpt`,`claude`,`gemini`,`llm`,`模型`,`模型服务`,`服务商`,`密钥`]},{id:`route:settings:capabilities:image`,title:r.tabs.image,subtitle:n.imageModelsSubtitle,path:qE(`image`),keywords:[`image`,`vision`,`generate`,`picture`,`图片`,`图像`,`视觉`,`生成图片`]},{id:`route:settings:capabilities:voice`,title:r.tabs.voice,subtitle:n.voiceSubtitle,path:qE(`voice`),keywords:[`tts`,`stt`,`speech`,`microphone`,`语音`,`语音识别`,`语音合成`]},{id:`route:settings:capabilities:search`,title:r.tabs.search,subtitle:n.searchSubtitle,path:qE(`search`),keywords:[`search`,`web`,`tavily`,`serper`,`brave`,`搜索`,`网络搜索`,`联网搜索`]},{id:`route:settings:gateway`,title:t.nav.settingsGateway,subtitle:n.gatewaySubtitle,path:`/settings/gateway`,keywords:[`server`,`port`,`auth`,`token`]},...efe(e,a)],a)}async function rfe(e,t={}){let n=new URLSearchParams;return n.set(`q`,e.trim()),t.types?.length&&n.set(`types`,t.types.join(`,`)),t.limit&&n.set(`limit`,String(t.limit)),(await B(z(`/api/search?${n.toString()}`))).hits}function F3(e){W.getState().setPreference(e)}function I3(e){I.getState().setLanguage(e)}function ife(e,t){let n=j(e),r=n.commandPalette.quickSettings,i=n.commandPalette.groups.quickSettings;return[{kind:`setting`,id:`setting:model`,title:r.switchModel,subtitle:r.switchModelSubtitle,groupLabel:i,keywords:[`model`,`default model`,`默认模型`,`gpt`,`claude`,`gemini`,`llm`,`模型`],run:()=>t.openModelPalette()},{kind:`setting`,id:`setting:agent`,title:r.switchAgent,subtitle:r.switchAgentSubtitle,groupLabel:i,keywords:[`agent`,`persona`,`bot`],run:()=>t.openAgentPalette()},{kind:`setting`,id:`setting:theme:light`,title:r.themeLight,subtitle:r.appearanceSubtitle,groupLabel:i,keywords:[`theme`,`light`,`appearance`],run:()=>{F3(`light`),t.closePalette()}},{kind:`setting`,id:`setting:theme:dark`,title:r.themeDark,subtitle:r.appearanceSubtitle,groupLabel:i,keywords:[`theme`,`dark`,`night`],run:()=>{F3(`dark`),t.closePalette()}},{kind:`setting`,id:`setting:theme:system`,title:r.themeSystem,subtitle:r.appearanceSubtitle,groupLabel:i,keywords:[`theme`,`system`,`auto`],run:()=>{F3(`system`),t.closePalette()}},{kind:`setting`,id:`setting:lang:en`,title:r.languageEn,subtitle:r.languageSubtitle,groupLabel:i,keywords:[`english`,`language`,`locale`],run:()=>{I3(`en`),t.closePalette()}},{kind:`setting`,id:`setting:lang:zh`,title:r.languageZh,subtitle:r.languageSubtitle,groupLabel:i,keywords:[`chinese`,`中文`,`language`],run:()=>{I3(`zh`),t.closePalette()}}]}function afe(e){let t=e===`zh`;return[{id:`field:gateway:port`,title:t?`网关端口`:`Gateway Port`,subtitle:t?`设置 HTTP 网关监听端口`:`HTTP gateway listen port`,path:`/settings/gateway`,keywords:[`port`,`listen`,`http`,`server`,`端口`]},{id:`field:gateway:host`,title:t?`网关绑定地址`:`Gateway Host`,subtitle:t?`设置绑定的网络接口`:`Network interface to bind`,path:`/settings/gateway`,keywords:[`host`,`bind`,`interface`,`localhost`,`地址`]},{id:`field:gateway:auth`,title:t?`网关认证令牌`:`Gateway Auth Token`,subtitle:t?`访问网关所需的 Bearer token`:`Bearer token for gateway access`,path:`/settings/gateway`,keywords:[`auth`,`token`,`bearer`,`password`,`security`,`认证`,`令牌`]},{id:`field:agent:model`,title:t?`Agent 模型配置`:`Agent model configuration`,subtitle:t?`配置智能体的模型角色与回退模型`:`Configure agent model roles and fallbacks`,path:`/agents`,keywords:[`agent model`,`model roles`,`llm`,`gpt`,`claude`,`gemini`,`智能体模型`,`模型角色`]},{id:`field:agent:temperature`,title:t?`温度 (Temperature)`:`Temperature`,subtitle:t?`控制回复的随机性`:`Controls response randomness`,path:`/agents`,keywords:[`temperature`,`sampling`,`randomness`,`creative`,`温度`,`随机`]},{id:`field:agent:maxTokens`,title:t?`最大输出 Tokens`:`Max Output Tokens`,subtitle:t?`单次回复的最大 token 数`:`Maximum tokens per response`,path:`/agents`,keywords:[`max`,`tokens`,`output`,`length`,`limit`,`最大`]},{id:`field:agent:workspace`,title:t?`工作目录`:`Workspace Directory`,subtitle:t?`代理的默认工作目录`:`Default working directory for the agent`,path:`/agents`,keywords:[`workspace`,`directory`,`folder`,`path`,`cwd`,`工作目录`]},{id:`field:agent:browser`,title:t?`浏览器自动化`:`Browser automation`,subtitle:t?`启用 browser_use 工具`:`Enable browser_use tools`,path:`/agents`,keywords:[`browser`,`browser_use`,`automation`,`浏览器`]},{id:`field:agent:browser-extension`,title:t?`Chrome 扩展连接`:`Chrome extension bridge`,subtitle:t?`安装扩展并启动 WebSocket 桥接`:`Install extension and start the bridge`,path:`/agents`,keywords:[`extension`,`chrome`,`bridge`,`websocket`,`扩展`,`桥接`]},{id:`field:agent:browser-playwright`,title:t?`安装 Playwright Chromium`:`Install Playwright Chromium`,subtitle:t?`本地 Playwright 后端就绪检查`:`Local Playwright backend setup`,path:`/agents`,keywords:[`playwright`,`chromium`,`install`,`local`,`安装`]},{id:`field:agent:browser-cloak`,title:t?`CloakBrowser 配置`:`CloakBrowser settings`,subtitle:t?`反指纹浏览器下载与高级选项`:`Stealth browser download and fingerprint options`,path:`/agents`,keywords:[`cloak`,`cloakbrowser`,`fingerprint`,`stealth`,`反指纹`]},{id:`field:agent:browser-headless`,title:t?`浏览器无头模式`:`Browser headless mode`,subtitle:t?`隐藏浏览器窗口`:`Run without a visible window`,path:`/agents`,keywords:[`headless`,`window`,`visible`,`无头`]},{id:`field:agent:browser-private-urls`,title:t?`允许内网 URL`:`Allow private URLs`,subtitle:t?`浏览器导航安全限制`:`Browser navigation security policy`,path:`/agents`,keywords:[`private`,`internal`,`localhost`,`security`,`内网`,`安全`]},{id:`field:agent:turnLimit`,title:t?`轮次限制`:`Turn Limit`,subtitle:t?`单次会话最大对话轮次`:`Maximum turns per session run`,path:`/agents`,keywords:[`turn`,`limit`,`iterations`,`max`,`轮次`,`限制`]},{id:`field:agent:timeout`,title:t?`超时时间`:`Timeout`,subtitle:t?`单次工具调用的超时`:`Tool execution timeout`,path:`/agents`,keywords:[`timeout`,`duration`,`seconds`,`超时`]},{id:`field:agent:compaction`,title:t?`上下文压缩`:`Context Compaction`,subtitle:t?`长对话自动压缩策略`:`Auto-compact strategy for long conversations`,path:`/agents`,keywords:[`compaction`,`context`,`pruning`,`tokens`,`window`,`压缩`,`上下文`]},{id:`field:agent:memory`,title:t?`记忆设置`:`Memory Settings`,subtitle:t?`会话记忆与回顾配置`:`Session memory and review configuration`,path:`/agents`,keywords:[`memory`,`review`,`session`,`recall`,`记忆`]},{id:`field:agent:systemPrompt`,title:t?`系统提示词`:`System Prompt`,subtitle:t?`自定义系统指令`:`Custom system instructions`,path:`/agents`,keywords:[`system`,`prompt`,`instructions`,`persona`,`系统提示词`,`指令`]},{id:`field:voice:sttProvider`,title:t?`STT 语音识别提供商`:`STT Provider`,subtitle:t?`语音转文字服务商`:`Speech-to-text service provider`,path:`/settings/capabilities/voice`,keywords:[`stt`,`speech`,`recognition`,`whisper`,`deepgram`,`语音识别`]},{id:`field:voice:ttsProvider`,title:t?`TTS 语音合成提供商`:`TTS Provider`,subtitle:t?`文字转语音服务商`:`Text-to-speech service provider`,path:`/settings/capabilities/voice`,keywords:[`tts`,`speech`,`synthesis`,`voice`,`elevenlabs`,`语音合成`]},{id:`field:search:engine`,title:t?`搜索引擎`:`Web Search Engine`,subtitle:t?`联网搜索使用的引擎`:`Engine for web search tool`,path:`/settings/capabilities/search`,keywords:[`search`,`engine`,`tavily`,`serper`,`brave`,`bing`,`搜索引擎`]},{id:`field:automations:enabled`,title:t?`自动化`:`Automations`,subtitle:t?`创建和管理自动化`:`Create and manage automations`,path:`/automations`,keywords:[`automation`,`automations`,`scheduler`,`timer`,`自动化`,`调度`]},{id:`field:automations:runs`,title:t?`自动化运行记录`:`Automation Runs`,subtitle:t?`查看自动化执行历史`:`Review automation run history`,path:`/automations`,keywords:[`automation`,`runs`,`history`,`自动化`,`历史`]},{id:`field:channels:telegram`,title:`Telegram Bot Token`,subtitle:t?`配置 Telegram 频道连接`:`Configure Telegram channel connection`,path:`/channels`,keywords:[`telegram`,`bot`,`token`,`channel`,`频道`]},{id:`field:channels:dmPolicy`,title:t?`私聊接入策略`:`DM Access Policy`,subtitle:t?`Telegram 私聊白名单/配对策略`:`Telegram DM allowlist/pairing policy`,path:`/channels`,keywords:[`dm`,`policy`,`pairing`,`allowlist`,`access`,`私聊`,`策略`]},{id:`field:mcp:servers`,title:t?`MCP 服务器配置`:`MCP Servers`,subtitle:t?`外部 MCP 工具服务器列表`:`External MCP tool server registry`,path:`/connectors`,keywords:[`mcp`,`server`,`tools`,`external`,`stdio`,`服务器`,`connector`]},{id:`field:heartbeat:interval`,title:t?`心跳间隔`:`Heartbeat Interval`,subtitle:t?`网关存活检测频率`:`Gateway keep-alive check frequency`,path:`/settings/heartbeat`,keywords:[`heartbeat`,`interval`,`keepalive`,`alive`,`心跳`]},{id:`field:tunnel:enabled`,title:t?`公网隧道`:`Public Tunnel`,subtitle:t?`FRP 远程访问隧道开关`:`FRP remote access tunnel toggle`,path:`/settings/remote-access`,keywords:[`tunnel`,`frp`,`remote`,`public`,`ngrok`,`隧道`,`远程`]}]}function ofe(e,t,n,r){return afe(e).map(e=>({kind:`setting`,id:e.id,title:e.title,subtitle:e.subtitle,groupLabel:r,keywords:e.keywords,run:()=>{n(),t(e.path)}}))}async function L3(e){let t=await e.json().catch(()=>({}));if(typeof t.error==`string`)return t.error;if(t.error&&typeof t.error==`object`&&`message`in t.error){let e=t.error.message;if(typeof e==`string`)return e}return`HTTP ${e.status}`}async function R3(){let e=await L(z(`/api/skills`),{cache:`no-store`});if(!e.ok)throw Error(await L3(e));let t=await e.json();if(!t.payload)throw Error(`Invalid response`);return t.payload}async function z3(e){let t=await e.json().catch(()=>({}));if(typeof t.error==`string`)return t.error;if(t.error&&typeof t.error==`object`&&`message`in t.error){let e=t.error.message;if(typeof e==`string`)return e}return`HTTP ${e.status}`}async function sfe(){let e=await L(z(`/api/commands`));if(!e.ok)throw Error(await z3(e));return(await e.json()).payload?.commands??[]}var B3=6e4,V3=null,H3=0,U3=null,W3=null,G3=0,K3=null,q3=0,J3=new Map,Y3=new Map,X3=0;async function Z3(e=!1){return!e&&V3&&Date.now()<H3?(p$(V3),V3):U3||(U3=sfe().then(e=>(V3=e,H3=Date.now()+B3,p$(e),e)).catch(e=>{throw p$([]),e}).finally(()=>{U3=null}),U3)}async function Q3(e,t=!1){let n=e?.trim()||`main`,r=Date.now(),i=J3.get(n);if(!t&&i&&r<i.expiry)return i.payload;let a=Y3.get(n);if(a)return a;let o=X3,s=L(z(`/api/chat/skills?agentId=${encodeURIComponent(n)}`)).then(async e=>{if(!e.ok)throw Error(await z3(e));let t=await e.json();if(!t.payload||!Array.isArray(t.payload.skills))throw Error(`Invalid /api/chat/skills response`);return o===X3&&J3.set(n,{payload:t.payload,expiry:Date.now()+B3}),t.payload}).finally(()=>{Y3.delete(n)});return Y3.set(n,s),s}async function cfe(e,t){let n=e?.trim()||`main`,r=await Q3(n,!0),i=new Set(r.effectiveAllowlist??r.agentAllowlist??[]);i.add(t);let a=await L(z(`/api/agents/${encodeURIComponent(n)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({skills:[...i].sort((e,t)=>e.localeCompare(t))})});if(!a.ok)throw Error(await z3(a));$3(n)}function $3(e){if(X3+=1,e){J3.delete(e),Y3.delete(e);return}J3.clear(),Y3.clear()}function lfe(e){$3(e),e||(q3+=1,W3=null,G3=0,K3=null)}async function ufe(e=!1){if(!e&&W3&&Date.now()<G3)return W3;if(K3)return K3;let t=q3;return K3=R3().then(e=>(t===q3&&(W3=e,G3=Date.now()+B3),e)).finally(()=>{K3=null}),K3}function e6(e){return e.acceptsArgs?`/${e.name} `:`/${e.name}`}var dfe=3e4,t6=null;function n6(e){return e.trim()}function ffe(e){return e.map(e=>({name:e.name,relativePath:e.path,isDirectory:e.isDirectory}))}async function r6(e,t){let n=t.sessionKey?.trim(),r=t.agentId?.trim(),i=t.limit??15,a=e.trim(),o=new URLSearchParams;if(o.set(`q`,a),o.set(`limit`,String(i)),n?o.set(`sessionKey`,n):r&&o.set(`agentId`,r),n&&a.length===0){let e=n6(n),t=Date.now();if(t6&&t6.key===e&&t-t6.at<dfe)return t6.items}let s=ffe((await B(z(`/api/workspace/editor/files/search?${o.toString()}`))).payload.entries??[]);return n&&a.length===0&&(t6={key:n6(n),at:Date.now(),items:s}),s}async function pfe(e,t){return Lz(e,{sessionKey:t.sessionKey,agentId:t.agentId})}function i6(e){let t=typeof e.profileDir==`string`?e.profileDir.trim():``,n=e.typedModels?.preset??[],r=e.typedModels?.entry,i=e.typedModels?.effective??n;return{...e,profileDir:t,...typeof e.avatar==`string`&&e.avatar.trim()?{avatar:e.avatar.trim()}:{},skills:e.skills?{...e.skills,preset:e.skills.preset??[]}:{preset:[]},tools:e.tools?{...e.tools,presetDenied:e.tools.presetDenied??[]}:{presetDenied:[],entryDisable:[],effectiveDisable:[]},typedModels:{defaultRole:e.typedModels.defaultRole,preset:n,...r===void 0?{}:{entry:r},effective:i},extends:Array.isArray(e.extends)?e.extends:[]}}async function a6(){let e=(await B(z(`/api/agents`))).payload;if(!e?.defaultId||!Array.isArray(e.agents))throw Error(`Invalid /api/agents response`);let t=Array.isArray(e.builtinToolIds)?e.builtinToolIds:[];return{defaultId:e.defaultId,agents:e.agents.map(i6),builtinToolIds:t}}async function mfe(e){let t=await B(z(`/api/agents/${encodeURIComponent(e)}/effective-manifest`));if(!t.payload?.manifest||typeof t.payload.sources!=`object`||t.payload.sources===null)throw Error(`Invalid /api/agents/:id/effective-manifest response`);return t.payload}async function hfe(e){let t=await B(z(`/api/agents`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)}),n=typeof t.payload?.agentId==`string`?t.payload.agentId.trim():``,r=t.payload?.agents;if(!n||!r?.defaultId||!Array.isArray(r.agents))throw Error(`Invalid create agent response`);return{createdAgentId:n,defaultId:r.defaultId,agents:r.agents.map(i6),builtinToolIds:Array.isArray(r.builtinToolIds)?r.builtinToolIds:[]}}async function gfe(e,t){let n=(await B(z(`/api/agents/${encodeURIComponent(e)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).payload;if(!n?.defaultId||!Array.isArray(n.agents))throw Error(`Invalid update agent response`);return{defaultId:n.defaultId,agents:n.agents.map(i6),builtinToolIds:Array.isArray(n.builtinToolIds)?n.builtinToolIds:[]}}async function _fe(e,t){let n=(await B(z(`/api/agents/${encodeURIComponent(e)}${t?`?purge=true`:``}`),{method:`DELETE`})).payload?.agents;if(!n?.defaultId||!Array.isArray(n.agents))throw Error(`Invalid delete agent response`);return{defaultId:n.defaultId,agents:n.agents.map(i6),builtinToolIds:Array.isArray(n.builtinToolIds)?n.builtinToolIds:[]}}async function vfe(e){await B(z(`/api/config`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({tui:{defaultAgent:e}})}),nk()}function yfe(e){if(!e||typeof e!=`object`||!(`bindings`in e))return[];let t=e.bindings;return Array.isArray(t)?t:[]}async function bfe(e){await B(z(`/api/config`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({bindings:e})}),nk()}async function xfe(){let e=(await B(z(`/api/skills`))).payload?.catalog;return Array.isArray(e)?e:[]}async function Sfe(e){let t=(await B(z(`/api/agents/${encodeURIComponent(e)}/files`))).payload,n=typeof t?.profileDir==`string`?t.profileDir.trim():``;if(!t?.files||!n)throw Error(`Invalid files list response`);return{agentId:t.agentId,profileDir:n,files:t.files}}async function Cfe(e,t){let n=(await B(z(`/api/agents/${encodeURIComponent(e)}/files/${encodeURIComponent(t)}`))).payload?.content;if(typeof n!=`string`)throw Error(`Invalid file content response`);return n}async function wfe(e,t,n){await B(z(`/api/agents/${encodeURIComponent(e)}/files/${encodeURIComponent(t)}`),{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({content:n})})}function Tfe(e){let t=e.type.toLowerCase();return t===`image/png`||t===`image/jpeg`||t===`image/jpg`||t===`image/webp`?t===`image/jpg`?`image/jpeg`:t:null}function Efe(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=String(r.result??``),n=e.indexOf(`,`);t(n>=0?e.slice(n+1):``)},r.onerror=()=>n(r.error??Error(`read failed`)),r.readAsDataURL(e)})}async function Dfe(e,t){let n=Tfe(t);if(!n)throw Error(`unsupported_image_type`);if(t.size===0||t.size>512*1024)throw Error(`avatar_too_large`);let r=await Efe(t);if(!r)throw Error(`empty_file`);await B(z(`/api/agents/${encodeURIComponent(e)}/avatar`),{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({base64:r,mimeType:n})})}async function Ofe(e){await B(z(`/api/agents/${encodeURIComponent(e)}/avatar`),{method:`DELETE`})}var kfe={main:{key:`assistant`,defaultNames:[`main`,`Main`,`Smart Assistant`],defaultDescriptions:[`General assistant`,`General-purpose personal assistant.`,`Your personal intelligent assistant for answering questions, handling everyday tasks, and chatting with you anytime.`]},coder:{key:`coding`,defaultNames:[`coder`,`Coder`,`Coding Expert`],defaultDescriptions:[`Software development, debugging, refactoring, and tests.`,`Software engineering agent for repository understanding, implementation, debugging, refactoring, tests, and review.`]},writer:{key:`writing`,defaultNames:[`writer`,`Writer`,`Writing Assistant`],defaultDescriptions:[`Drafting, editing, rewriting, and audience-aware content.`]},researcher:{key:`research`,defaultNames:[`researcher`,`Researcher`,`Research Assistant`],defaultDescriptions:[`Deep research, source comparison, and fact synthesis.`]},"data-analyst":{key:`data`,defaultNames:[`data-analyst`,`Data Analyst`],defaultDescriptions:[`Data cleaning, analysis, visualization, and reproducible reports.`]},creative:{key:`creative`,defaultNames:[`creative`,`Creative`,`Creative Assistant`],defaultDescriptions:[`Visual direction, image prompts, design critique, and creative options.`]}};function o6(e){return e?.trim().toLowerCase()??``}function s6(e,t){let n=o6(e);return!!n&&t.some(e=>o6(e)===n)}function c6(e){return kfe[o6(e)]}function l6(e,t){let n=e.name?.trim(),r=c6(e.id);return r&&(!n||s6(n,r.defaultNames))?t.builtInAgents[r.key].name:n||e.id}function u6(e,t){let n=e.description?.trim(),r=c6(e.id);return r&&(!n||s6(n,r.defaultDescriptions))?t.builtInAgents[r.key].description:n||``}function Afe(){let{pathname:e}=u(),{sessionKey:t}=d();if(!e.startsWith(`/chat`)||!t)return;let n=decodeURIComponent(t);return n&&n!==`new`?n:void 0}function d6(e){return{models:{defaultRole:`deep`,roles:{deep:{model:e}}}}}function f6(e,t,n,r){let i=e.trim().toLowerCase();if(i){try{globalThis.localStorage?.setItem(II,i)}catch{}t.startsWith(`/chat`)?window.dispatchEvent(new CustomEvent(`xopc-set-chat-agent`,{detail:{agentId:i}})):n(`/chat/new`,{state:{agentId:i}}),r()}}function jfe(e){switch(e.kind){case`extension`:return(0,$.jsx)(wy,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`route`:return(0,$.jsx)(zf,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`project`:return(0,$.jsx)(Ff,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`session`:return(0,$.jsx)(zf,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`file`:return(0,$.jsx)(Kd,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`command`:return(0,$.jsx)(hx,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`skill`:return(0,$.jsx)(Yy,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0});case`setting`:return(0,$.jsx)(By,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`action`:return(0,$.jsx)(Mw,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0});default:return null}}function p6(e,t,n,r){if(r(),t.startsWith(`/chat`)){Yq(e);return}let i=e.match(/^\/skill:(\S+)\s*$/),a=e.match(/^\/(\S+)\s*$/);i?n(`/chat/new?skill=${encodeURIComponent(i[1])}`):a?n(`/chat/new?slash=${encodeURIComponent(a[1])}`):(n(`/chat/new`),requestAnimationFrame(()=>{requestAnimationFrame(()=>{Yq(e)})}))}function Mfe(e){let t=[];for(let n of e.uiExtensions){let r=n.ui?.contributions?.commands;if(Array.isArray(r))for(let i of r)!i||typeof i.id!=`string`||typeof i.title!=`string`||t.push({kind:`extension`,id:`ext:${n.id}:${i.id}`,title:i.title,subtitle:n.name,groupLabel:e.extensionsGroupLabel,keywords:[n.id,n.name,i.id],run:()=>{e.close(),i.opensPanel!==void 0&&i.opensPanel!==``?e.navigate(`/extensions/${encodeURIComponent(n.id)}`):window.dispatchEvent(new CustomEvent(`extension-command`,{detail:{extensionId:n.id,commandId:i.id}}))}})}return t}function Nfe(e,t){switch(t.type){case`setQuery`:return{...e,query:t.value};case`setSelectedIndex`:{let n=typeof t.value==`function`?t.value(e.selectedIndex):t.value;return{...e,selectedIndex:n}}case`setLayer`:return{...e,paletteLayer:t.layer,query:``,selectedIndex:0};case`resetMain`:return{query:``,selectedIndex:0,paletteLayer:`main`}}}var Pfe={query:``,selectedIndex:0,paletteLayer:`main`};async function Ffe(){let e=await B(z(`/api/registry`)),t=[];for(let n of e.payload?.providers??[])for(let e of n.models??[])e.available!==!1&&t.push({id:e.ref,title:e.name||e.ref,subtitle:e.ref});return t.sort((e,t)=>e.title.localeCompare(t.title)),t}async function Ife(e){let t=await a6(),n=j(e).agentsSettings;return t.agents.map(e=>({id:e.id,title:l6(e,n),subtitle:e.id}))}function Lfe({onClose:e}){let t=(0,Z.useRef)(null),n=(0,Z.useRef)(null),r=m(),{pathname:i}=u(),a=I(e=>e.language),o=pN(),s=Afe(),c=iq(e=>e.agentId),l=pq(e=>e.setPath),[d,f]=(0,Z.useReducer)(Nfe,Pfe),[p,h]=(0,Z.useState)(0),{query:g,selectedIndex:_,paletteLayer:v}=d,y=(0,Z.useMemo)(()=>nfe(a),[a]),[b]=MG(g,120);(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;t&&typeof t==`object`&&`section`in t&&t.section===`skills`&&h(e=>e+1)};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},[]);let x=(0,Z.useCallback)(()=>{f({type:`setLayer`,layer:`models`})},[]),S=(0,Z.useCallback)(()=>{f({type:`setLayer`,layer:`agents`})},[]),C=TA(async()=>v===`models`?Ffe():v===`agents`?Ife(a):[],[v,a],{enabled:v===`models`||v===`agents`,initial:[],errorData:[]}),w=TA(async()=>{let t=b.trim(),n=e,u=j(a).commandPalette.groups,d=y.map(e=>({kind:`route`,id:e.id,title:e.title,subtitle:e.subtitle,groupLabel:u.navigate,keywords:[...e.keywords??[],e.path],run:()=>{n(),r(e.path)}})),f=ife(a,{closePalette:n,openModelPalette:x,openAgentPalette:S}),p=zde(a,r,n),m=Mfe({query:t,close:n,navigate:r,uiExtensions:o,extensionsGroupLabel:u.extensions}),[h,g,_,v,C,w]=await Promise.all([Z3(),ufe(),t?rfe(t,{types:[`project`],limit:8}).catch(()=>[]):[],bR({search:t||void 0,limit:8,offset:0}).catch(()=>({items:[]})),(async()=>{let e=s?.trim(),n=c.trim();return!e&&!n?[]:await r6(t,{sessionKey:e||void 0,agentId:e?void 0:n||void 0,limit:10}).catch(()=>[])})(),Vde(a,n)]),T=_.map(e=>({kind:`project`,id:e.id,title:e.title,subtitle:e.subtitle,groupLabel:u.projects,keywords:[e.payload.project.slug,e.payload.project.workspaceRoot??``,e.payload.project.defaultAgentId??``,e.payload.project.brief??``],run:()=>{n(),r(e.href)}})),E=h.map(e=>({kind:`command`,id:`cmd:${e.id}`,title:`/${e.name}`,subtitle:e.description,groupLabel:u.commands,keywords:[e.id,...e.aliases??[],e.category??``],run:()=>{p6(e6(e),i,r,n)}})),D=g.catalog.flatMap(e=>!e.enabled||e.disableModelInvocation?[]:[{kind:`skill`,id:`skill:${e.name}`,title:`/skill:${e.name}`,subtitle:e.description,groupLabel:u.skills,keywords:[e.source??``,`skill`],run:()=>{p6(`/skill:${e.name} `,i,r,n)}}]),O=(v.items??[]).map(e=>({kind:`session`,id:`session:${e.key}`,title:e.name?.trim()||e.key,subtitle:e.key,groupLabel:u.sessions,keywords:[e.key,...e.tags??[],e.sourceChannel??``],run:()=>{n(),r(`/chat/${encodeURIComponent(e.key)}`)}})),k=C.flatMap(e=>e.isDirectory?[]:[{kind:`file`,id:`file:${e.relativePath}`,title:e.name,subtitle:e.relativePath,groupLabel:u.files,keywords:[e.relativePath],run:()=>{n();let t=e.relativePath.replace(/\\/g,`/`).replace(/^\/+/,``),a=()=>l(t);if(i.startsWith(`/chat`)){a();return}r(`/chat`),window.setTimeout(()=>a(),0)}}]),A=ofe(a,r,n,u.navigate),M=[...d,...f,...p,...w,...m,...A,...T,...O,...k,...E,...D],N=[];for(let e of M){let n=Gde(e,t);n!==null&&N.push({...e,rank:n})}let P=Ude(a),F=Kde(N),I=[],L={};for(let e of F){let t=(L[e.groupLabel]??0)+1;if(!(t>(P[e.groupLabel]??6))&&(L[e.groupLabel]=t,I.push(e),I.length>=36))break}return I.sort((e,t)=>O3(a,e.groupLabel)-O3(a,t.groupLabel)||e.rank-t.rank||e.title.localeCompare(t.title)),I},[b,y,o,r,s,c,i,l,a,x,S,e,p],{enabled:v===`main`,initial:[],errorData:[]}),T=w.data,E=w.loading,D=w.error,O=(0,Z.useMemo)(()=>{let e=g.trim().toLowerCase(),t=C.data;return e?t.filter(t=>t.title.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||(t.subtitle?.toLowerCase().includes(e)??!1)):t},[C.data,g]),k=`${v}|${g}|${String(O.length)}|${String(T.length)}`,A=(0,Z.useRef)(k);if(A.current!==k){A.current=k;let e=v===`main`?Math.max(0,T.length-1):Math.max(0,O.length);_>e&&f({type:`setSelectedIndex`,value:e})}(0,Z.useEffect)(()=>{let e=window.setTimeout(()=>t.current?.focus(),50);return()=>window.clearTimeout(e)},[]);let M=(0,Z.useEffectEvent)(t=>{if(t.key===`Escape`){if(t.preventDefault(),v!==`main`){f({type:`resetMain`});return}e();return}let n=v===`main`?Math.max(0,T.length-1):Math.max(0,O.length);if(t.key===`ArrowDown`){t.preventDefault(),f({type:`setSelectedIndex`,value:e=>Math.min(e+1,n)});return}if(t.key===`ArrowUp`){t.preventDefault(),f({type:`setSelectedIndex`,value:e=>Math.max(0,e-1)});return}if(t.key===`Enter`){if(t.preventDefault(),v===`models`){if(_===0){f({type:`resetMain`});return}let t=O[_-1];if(!t)return;(async()=>{await B(z(`/api/global-defaults`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(d6(t.id))}),nk(),rI(),e(),f({type:`resetMain`})})();return}if(v===`agents`){if(_===0){f({type:`resetMain`});return}let t=O[_-1];if(!t)return;f6(t.id,i,r,e),f({type:`resetMain`});return}let n=T[_];n&&n.run()}});(0,Z.useEffect)(()=>{let e=e=>{M(e)};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[]),(0,Z.useLayoutEffect)(()=>{let e=n.current;e&&e.querySelector(`[data-global-palette-index="${String(_)}"]`)?.scrollIntoView({block:`nearest`,inline:`nearest`})},[_,T,v,O.length]);let N=a===`zh`?`返回`:`Back`;if(v===`models`||v===`agents`){let o=O,s=C.loading;return(0,$.jsx)(`div`,{className:`fixed inset-0 z-[120] flex items-start justify-center bg-black/40 p-4 pt-[min(18vh,7rem)]`,role:`dialog`,"aria-modal":`true`,"aria-label":a===`zh`?`选择模型或智能体`:`Model or agent picker`,onMouseDown:t=>{t.target===t.currentTarget&&e()},children:(0,$.jsxs)(`div`,{className:`flex w-full max-w-2xl flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-elevated`,children:[(0,$.jsx)(`input`,{ref:t,type:`search`,value:g,onChange:e=>f({type:`setQuery`,value:e.target.value}),placeholder:v===`models`?a===`zh`?`搜索模型…`:`Search models…`:a===`zh`?`搜索智能体…`:`Search agents…`,className:`border-b border-edge bg-transparent px-4 py-3 text-sm text-fg outline-none placeholder:text-fg-muted`,autoComplete:`off`,autoCorrect:`off`}),(0,$.jsxs)(`ul`,{ref:n,className:`max-h-[min(60vh,26rem)] overflow-y-auto p-2 text-sm [scrollbar-gutter:stable]`,role:`listbox`,children:[(0,$.jsx)(`li`,{children:(0,$.jsxs)(`button`,{type:`button`,"data-global-palette-index":0,className:[`flex w-full items-start gap-2 rounded-lg px-3 py-2 text-left text-fg-muted`,_===0?`bg-surface-hover`:`hover:bg-surface-muted`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:0}),onClick:()=>f({type:`resetMain`}),children:[`← `,N]})}),s?(0,$.jsx)(`li`,{className:`rounded-lg px-3 py-6 text-center text-fg-muted`,children:a===`zh`?`加载中…`:`Loading…`}):o.length===0?(0,$.jsx)(`li`,{className:`rounded-lg px-3 py-6 text-center text-fg-muted`,children:a===`zh`?`无结果`:`No results`}):o.map((t,n)=>{let a=n+1;return(0,$.jsx)(`li`,{children:(0,$.jsx)(`button`,{type:`button`,"data-global-palette-index":a,className:[`flex w-full items-start gap-2 rounded-lg px-3 py-2 text-left`,_===a?`bg-surface-hover text-fg`:`text-fg hover:bg-surface-muted`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:a}),onClick:()=>{v===`models`?(async()=>{await B(z(`/api/global-defaults`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(d6(t.id))}),nk(),rI(),e(),f({type:`resetMain`})})():(f6(t.id,i,r,e),f({type:`resetMain`}))},children:(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`min-w-0 truncate font-medium`,children:t.title}),t.subtitle?(0,$.jsx)(`div`,{className:`mt-0.5 line-clamp-2 text-xs text-fg-muted`,children:t.subtitle}):null]})})},t.id)})]})]})})}let P=``;return(0,$.jsx)(`div`,{className:`fixed inset-0 z-[120] flex items-start justify-center bg-black/40 p-4 pt-[min(18vh,7rem)]`,role:`dialog`,"aria-modal":`true`,"aria-label":`Global search`,onMouseDown:t=>{t.target===t.currentTarget&&e()},children:(0,$.jsxs)(`div`,{className:`flex w-full max-w-2xl flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-elevated`,children:[(0,$.jsx)(`input`,{ref:t,type:`search`,value:g,onChange:e=>f({type:`setQuery`,value:e.target.value}),placeholder:a===`zh`?`搜索…(会话 / 文件 / 设置 / 命令)`:`Search… (sessions, files, settings, commands)`,className:`border-b border-edge bg-transparent px-4 py-3 text-sm text-fg outline-none placeholder:text-fg-muted`,autoComplete:`off`,autoCorrect:`off`}),(0,$.jsx)(`ul`,{ref:n,className:`max-h-[min(60vh,26rem)] overflow-y-auto p-2 text-sm [scrollbar-gutter:stable]`,role:`listbox`,"aria-activedescendant":T[_]?`global-hit-${T[_].id}`:void 0,children:T.length===0?(0,$.jsx)(`li`,{className:`rounded-lg px-3 py-6 text-center text-fg-muted`,children:E?a===`zh`?`搜索中…`:`Searching…`:D?D instanceof Error?D.message:String(D):a===`zh`?`无结果`:`No results`}):T.map((e,t)=>{let n=e.groupLabel===P?``:e.groupLabel;return P=e.groupLabel,(0,$.jsxs)(`li`,{children:[n?(0,$.jsx)(`div`,{className:`px-3 pb-1 pt-2 text-[10px] font-semibold uppercase tracking-wide text-fg-muted`,children:n}):null,(0,$.jsxs)(`button`,{id:`global-hit-${e.id}`,"data-global-palette-index":t,type:`button`,className:[`flex w-full items-start gap-2 rounded-lg px-3 py-2 text-left`,t===_?`bg-surface-hover text-fg`:`text-fg hover:bg-surface-muted`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:t}),onClick:()=>e.run(),children:[(0,$.jsx)(`span`,{className:`mt-0.5`,children:jfe(e)}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`min-w-0 truncate font-medium`,children:e.title}),e.subtitle?(0,$.jsx)(`div`,{className:`mt-0.5 line-clamp-2 text-xs text-fg-muted`,children:e.subtitle}):null]})]})]},e.id)})})]})})}function Rfe(){let e=(0,Q.c)(7),[t,n]=(0,Z.useState)(!1),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`k`&&(e.preventDefault(),n(Bfe))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,Z.useEffect)(r,i);let a,o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{let e=()=>n(!0);return window.addEventListener(`open-command-palette`,e),()=>window.removeEventListener(`open-command-palette`,e)},o=[],e[2]=a,e[3]=o):(a=e[2],o=e[3]),(0,Z.useEffect)(a,o);let s,c;if(e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>n(zfe);return window.addEventListener(`toggle-command-palette`,e),()=>window.removeEventListener(`toggle-command-palette`,e)},c=[],e[4]=s,e[5]=c):(s=e[4],c=e[5]),(0,Z.useEffect)(s,c),!t)return null;let l;return e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(Lfe,{onClose:()=>n(!1)}),e[6]=l):l=e[6],l}function zfe(e){return!e}function Bfe(e){return!e}function m6(e,t){let n=t.trim();if(!n)return e;let r=e.trim();return r?`${r} ${n}`:n}var h6=C(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,aT.transition,aT.press,aT.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`);function g6(e){return typeof e!=`number`||!Number.isFinite(e)||e<=0?null:`${(e/1024/1024).toFixed(e>=100*1024*1024?0:1)} MB`}var _6=(0,Z.memo)(function(e){let t=(0,Q.c)(42),{phase:n,elapsedLabel:r,audioLevel:i,readiness:a,hasRetainedRecording:o,disabled:s,chat:c,onCancel:l,onConfirm:u,onRetry:d}=e,f=n===`transcribing`,p=n===`preparing`,m=n===`requesting`,h=n===`error`,g;t[0]===a.progress?g=t[1]:(g=typeof a.progress==`number`?Math.round(Math.max(0,Math.min(1,a.progress))*100):null,t[0]=a.progress,t[1]=g);let _=g,v;t[2]===a.downloadedBytes?v=t[3]:(v=g6(a.downloadedBytes),t[2]=a.downloadedBytes,t[3]=v);let y=v,b;t[4]===a.totalBytes?b=t[5]:(b=g6(a.totalBytes),t[4]=a.totalBytes,t[5]=b);let x=b,w;t[6]!==y||t[7]!==c.voicePreparing||t[8]!==c.voicePreparingProgress||t[9]!==_||t[10]!==x?(w=_===null?c.voicePreparing:`${c.voicePreparingProgress.replace(`{progress}`,String(_))}${y&&x?` · ${y} / ${x}`:``}`,t[6]=y,t[7]=c.voicePreparing,t[8]=c.voicePreparingProgress,t[9]=_,t[10]=x,t[11]=w):w=t[11];let T=h?o?c.voiceRetryAvailable:c.voicePreparationFailed:p?w:m?c.voiceRequestingMicrophone:f?c.voiceTranscribing:c.voiceRecordingStatus,E;t[12]!==i||t[13]!==h||t[14]!==n?(E=n===`recording`?(0,$.jsx)(`div`,{className:`flex h-5 shrink-0 items-center gap-0.5`,"aria-hidden":!0,children:Array.from({length:9},(e,t)=>{let n=.35+(t%4+1)*.16;return(0,$.jsx)(`span`,{className:`w-0.5 rounded-full bg-red-500 transition-[height] duration-75`,style:{height:Math.max(3,Math.round(18*Math.min(1,i*n+.08)))}},t)})}):(0,$.jsx)(Zg,{className:C(`size-4 shrink-0`,!h&&`animate-spin`,h&&`text-red-500`),"aria-hidden":!0}),t[12]=i,t[13]=h,t[14]=n,t[15]=E):E=t[15];let D;t[16]===T?D=t[17]:(D=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg-muted`,children:T}),t[16]=T,t[17]=D);let O=n===`recording`?r:``,k;t[18]===O?k=t[19]:(k=(0,$.jsx)(`span`,{className:`shrink-0 tabular-nums text-sm text-fg-subtle`,"aria-live":`polite`,children:O}),t[18]=O,t[19]=k);let A=s||f,j;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(Aw,{className:`size-4`}),t[20]=j):j=t[20];let M;t[21]!==c.voiceInputCancel||t[22]!==l||t[23]!==A?(M=(0,$.jsx)(`button`,{type:`button`,className:h6,disabled:A,title:c.voiceInputCancel,"aria-label":c.voiceInputCancel,onClick:l,children:j}),t[21]=c.voiceInputCancel,t[22]=l,t[23]=A,t[24]=M):M=t[24];let N;t[25]!==s||t[26]!==h||t[27]!==c.voiceInputConfirm||t[28]!==c.voiceRetry||t[29]!==u||t[30]!==d||t[31]!==n?(N=h?(0,$.jsx)(`button`,{type:`button`,className:C(h6,`text-fg`),disabled:s,title:c.voiceRetry,"aria-label":c.voiceRetry,onClick:d,children:(0,$.jsx)(jy,{className:`size-4`})}):n===`recording`?(0,$.jsx)(`button`,{type:`button`,className:C(h6,`text-fg`),disabled:s,title:c.voiceInputConfirm,"aria-label":c.voiceInputConfirm,onClick:u,children:(0,$.jsx)(S,{className:`size-4`})}):null,t[25]=s,t[26]=h,t[27]=c.voiceInputConfirm,t[28]=c.voiceRetry,t[29]=u,t[30]=d,t[31]=n,t[32]=N):N=t[32];let P;t[33]!==M||t[34]!==N?(P=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[M,N]}),t[33]=M,t[34]=N,t[35]=P):P=t[35];let F;return t[36]!==c.voiceInput||t[37]!==P||t[38]!==E||t[39]!==D||t[40]!==k?(F=(0,$.jsxs)(`div`,{className:`flex min-h-10 w-full items-center gap-2 py-2`,role:`region`,"aria-label":c.voiceInput,children:[E,D,k,P]}),t[36]=c.voiceInput,t[37]=P,t[38]=E,t[39]=D,t[40]=k,t[41]=F):F=t[41],F});function Vfe(e){return e.includes(`ogg`)?`ogg`:e.includes(`mp4`)||e.includes(`m4a`)?`m4a`:e.includes(`mpeg`)||e.includes(`mp3`)?`mp3`:e.includes(`wav`)?`wav`:`webm`}async function Hfe(e,t){let n=e.type||t||`audio/webm`,r=e.type?e:new Blob([e],{type:n}),i=new FormData;i.append(`audio`,r,`recording.${Vfe(n)}`);let a=await B(z(`/api/voice/transcriptions`),{method:`POST`,body:i});if(!a.payload)throw Error(`Missing transcription payload`);return a.payload}function v6(){}async function y6(){try{let e=(await B(z(`/api/status`))).voice;if(e?.sttEnabled===!1)return{state:`disabled`};let t=e?.sttProvider??void 0;if(e?.sttAvailable===!0)return{state:`ready`,provider:t};if(t!==`xopc-local`)return{state:`unavailable`,provider:t};let n=await B(z(`/api/voice/local/status`)),r=e?.localModelId??`sensevoice-small`,i=n.payload?.models?.find(e=>e.id===r);return i?i.state===`ready`?{state:`ready`,provider:t,modelId:r}:i.state===`not_installed`?{state:`needs_download`,provider:t,modelId:r}:{state:i.state===`downloading`?`preparing`:`error`,provider:t,modelId:r,progress:i.progress,downloadedBytes:i.downloadedBytes,totalBytes:i.totalBytes,error:i.error}:{state:`error`,provider:t,modelId:r,error:`Local voice model status is unavailable`}}catch(e){return{state:`error`,error:e instanceof Error?e.message:String(e)}}}async function Ufe(e=`sensevoice-small`){await B(z(`/api/voice/local/models/${encodeURIComponent(e)}/install`),{method:`POST`,body:`{}`})}typeof window<`u`&&(window.addEventListener(`voice-config-changed`,v6),window.addEventListener(`config-reload`,v6));var b6=16e3;function Wfe(e){if(e.length===0)return 0;let t=0;for(let n=0;n<e.length;n+=1)t+=e[n]*e[n];return Math.min(1,Math.sqrt(t/e.length))}function Gfe(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Float32Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function x6(e,t,n=b6){if(t===n)return e;let r=Math.max(1,Math.round(e.length*n/t)),i=new Float32Array(r),a=t/n;for(let t=0;t<r;t+=1){let n=t*a,r=Math.min(e.length-1,Math.floor(n)),o=Math.min(e.length-1,r+1),s=n-r;i[t]=e[r]*(1-s)+e[o]*s}return i}function S6(e,t=b6){let n=new ArrayBuffer(44+e.length*2),r=new DataView(n),i=(e,t)=>{for(let n=0;n<t.length;n+=1)r.setUint8(e+n,t.charCodeAt(n))};i(0,`RIFF`),r.setUint32(4,36+e.length*2,!0),i(8,`WAVE`),i(12,`fmt `),r.setUint32(16,16,!0),r.setUint16(20,1,!0),r.setUint16(22,1,!0),r.setUint32(24,t,!0),r.setUint32(28,t*2,!0),r.setUint16(32,2,!0),r.setUint16(34,16,!0),i(36,`data`),r.setUint32(40,e.length*2,!0);for(let t=0;t<e.length;t+=1){let n=Math.max(-1,Math.min(1,e[t]));r.setInt16(44+t*2,n<0?n*32768:n*32767,!0)}return n}var Kfe=class e{chunks=[];context;source;processor;mutedOutput;stopped=!1;constructor(e,t={}){this.context=new AudioContext,this.source=this.context.createMediaStreamSource(e),this.processor=this.context.createScriptProcessor(4096,1,1),this.mutedOutput=this.context.createGain(),this.mutedOutput.gain.value=0,this.processor.onaudioprocess=e=>{if(this.stopped)return;let n=new Float32Array(e.inputBuffer.getChannelData(0));if(this.chunks.push(n),t.onAudioLevel){let e=Wfe(n);t.onAudioLevel({level:e,speaking:e>=(t.speechThreshold??.015)})}},this.source.connect(this.processor),this.processor.connect(this.mutedOutput),this.mutedOutput.connect(this.context.destination)}static async start(t,n={}){let r=new e(t,n);return await r.context.resume(),r}async stop(){if(this.stopped)return new Blob([],{type:`audio/wav`});this.stopped=!0;let e=this.context.sampleRate;this.disconnect(),await this.context.close();let t=x6(Gfe(this.chunks),e);return new Blob([S6(t)],{type:`audio/wav`})}cancel(){this.stopped||(this.stopped=!0,this.disconnect(),this.context.close(),this.chunks.length=0)}disconnect(){this.processor.onaudioprocess=null,this.source.disconnect(),this.processor.disconnect(),this.mutedOutput.disconnect()}},qfe=12e4,Jfe=1e3;function Yfe(e){if(!Number.isFinite(e)||e<0)return`0:00`;let t=Math.floor(e%60);return`${Math.floor(e/60)}:${t.toString().padStart(2,`0`)}`}function C6(e){let{disabled:t,chat:n,onTranscript:r}=e,[i,a]=(0,Z.useState)(`idle`),[o,s]=(0,Z.useState)(0),[c,l]=(0,Z.useState)(0),[u,d]=(0,Z.useState)({state:`unavailable`}),[f,p]=(0,Z.useState)(!1),m=(0,Z.useRef)(`idle`),h=(0,Z.useRef)(null),g=(0,Z.useRef)(null),_=(0,Z.useRef)(null),v=(0,Z.useRef)(!1),y=(0,Z.useRef)(null),b=(0,Z.useRef)(null),x=(0,Z.useRef)(()=>{}),S=(0,Z.useRef)(r);S.current=r;let C=(0,Z.useCallback)(e=>{m.current=e,a(e)},[]),w=(0,Z.useCallback)(()=>{b.current!=null&&(clearInterval(b.current),b.current=null)},[]),T=(0,Z.useCallback)(()=>{g.current?.getTracks().forEach(e=>e.stop()),g.current=null},[]),E=(0,Z.useCallback)(()=>{w(),T(),h.current=null,y.current=null,s(0),l(0)},[w,T]),D=(0,Z.useCallback)(()=>{E(),v.current=!1,_.current=null,p(!1),C(`idle`)},[E,C]),O=(0,Z.useCallback)(()=>{h.current?.cancel(),D()},[D]),k=(0,Z.useCallback)(async e=>{if(_.current=e,p(!0),C(`transcribing`),e.size<32){IR(`warning`,n.voiceTranscribeEmpty),D();return}try{let t=await Hfe(e,`audio/wav`),r=(t.refined??t.raw).trim();if(!r){IR(`warning`,n.voiceTranscribeEmpty),D();return}S.current(r),D()}catch(e){E();let t=e instanceof Error?e.message:String(e);t.includes(`STT is not configured`)||t.includes(`503`)?IR(`error`,n.voiceSttNotConfigured,void 0,{href:`/settings/voice`}):IR(`error`,n.voiceTranscribeFailed),C(`error`)}},[D,n.voiceSttNotConfigured,n.voiceTranscribeEmpty,n.voiceTranscribeFailed,E,C]),A=(0,Z.useCallback)(()=>{if(m.current!==`recording`)return;C(`transcribing`),w(),T();let e=h.current;if(h.current=null,!e){D();return}e.stop().then(k).catch(()=>{E(),IR(`error`,n.voiceTranscribeFailed),C(`error`)})},[D,n.voiceTranscribeFailed,k,E,w,T,C]);x.current=A;let j=(0,Z.useCallback)(()=>{w(),b.current=setInterval(()=>{let e=y.current;if(typeof e!=`number`)return;let t=performance.now()-e;s(Math.max(0,t/1e3)),t>=qfe&&x.current()},200)},[w]),M=(0,Z.useCallback)(async()=>{if(!t){C(`requesting`);try{window.dispatchEvent(new Event(`xopc-voice-recording-start`));let e=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});if(m.current!==`requesting`){e.getTracks().forEach(e=>e.stop());return}g.current=e,y.current=performance.now(),h.current=await Kfe.start(e,{onAudioLevel:({level:e})=>{l(Math.min(1,e*8))}}),_.current=null,p(!1),v.current=!1,s(0),C(`recording`),j()}catch{E(),C(`idle`),IR(`error`,n.voiceMicDenied)}}},[t,n.voiceMicDenied,E,j,C]),N=(0,Z.useCallback)(async e=>{if(v.current=!0,C(`preparing`),e.state===`needs_download`||e.state===`error`)try{await Ufe(e.modelId??`sensevoice-small`)}catch(t){d({...e,state:`error`,error:t instanceof Error?t.message:String(t)}),C(`error`)}},[C]),P=(0,Z.useCallback)(async()=>{if(t||m.current!==`idle`)return;let e=await y6();if(d(e),e.state===`ready`){await M();return}if(e.provider===`xopc-local`&&[`preparing`,`needs_download`,`error`].includes(e.state)){await N(e);return}IR(`error`,n.voiceSttNotConfigured,void 0,{href:`/settings/voice`})},[M,t,n.voiceSttNotConfigured,N]),F=(0,Z.useCallback)(()=>{let e=_.current;if(e){k(e);return}N(u)},[N,k,u]);return(0,Z.useEffect)(()=>{let e=!1,t=async()=>{let t=await y6();e||(d(t),v.current&&t.state===`ready`?await M():v.current&&t.state===`error`&&C(`error`))};t();let n=i===`preparing`?setInterval(()=>void t(),Jfe):null;return()=>{e=!0,n&&clearInterval(n)}},[M,i,C]),(0,Z.useEffect)(()=>()=>{h.current?.cancel(),T(),w()},[w,T]),{phase:i,voiceActive:i!==`idle`,elapsedLabel:Yfe(o),audioLevel:c,readiness:u,hasRetainedRecording:f,startVoiceInput:P,cancelVoiceInput:O,confirmVoiceInput:A,retryVoiceInput:F}}var w6=`xopc-voice-input-toggle`,T6=`xopc-voice-input-cancel`,E6=`app-shortcut-recording`,D6=!1;function O6(e,t){let n=new CustomEvent(e,{cancelable:!0,detail:{target:t}});return window.dispatchEvent(n),n.defaultPrevented}function k6(){D6=!0}function Xfe(){D6=!1}function Zfe(){return D6?(D6=!1,!0):!1}function A6(){return typeof navigator>`u`?!1:navigator.platform?.includes(`Mac`)??navigator.userAgent.includes(`Mac`)}function j6(e,t=A6()){return N6(e).split(`+`).map(e=>e===`control`?`Ctrl`:e===`meta`?t?`⌘`:`Win`:e===`alt`?t?`Option`:`Alt`:e===`shift`?`Shift`:e===`space`?`Space`:e.length===1?e.toUpperCase():e)}function M6(e=A6()){return e?`meta+.`:`control+.`}function N6(e){return e.split(`+`).map(F6).filter(Boolean).join(`+`)}function Qfe(e){if(e.key===`Escape`||[`Meta`,`Control`,`Alt`,`Shift`].includes(e.key))return null;let t=e.key===` `?`space`:F6(e.key);return t?[...[e.metaKey?`meta`:``,e.ctrlKey?`control`:``,e.altKey?`alt`:``,e.shiftKey?`shift`:``].filter(Boolean),t].join(`+`):null}var P6=R(U(e=>({shortcut:M6(),setShortcut:t=>e({shortcut:N6(t)||M6()})}),{name:`xopc-quick-capture-shortcut`,version:2,migrate:e=>{let t=e;return!A6()&&t.shortcut===`meta+.`?{...t,shortcut:M6(!1)}:{...t,shortcut:N6(t.shortcut??``)||M6()}}})),$fe={cmd:`meta`,command:`meta`,ctrl:`control`,ctl:`control`,opt:`alt`,option:`alt`};function F6(e){let t=e.toLowerCase().trim();return $fe[t]??t}function I6(e,t){let n=N6(t).split(`+`),r=new Set(n.filter(e=>[`meta`,`control`,`alt`,`shift`].includes(e))),i=n.find(e=>!r.has(e));return!i||r.has(`meta`)!==e.metaKey||r.has(`control`)!==e.ctrlKey||r.has(`alt`)!==e.altKey||r.has(`shift`)!==e.shiftKey?!1:e.key.toLowerCase()===i||e.code.toLowerCase()===i}function L6(e=A6()){return e?`meta+shift+m`:`control+shift+m`}var R6=R(U(e=>({shortcut:L6(),setShortcut:t=>e({shortcut:N6(t)||L6()})}),{name:`xopc-voice-input-shortcut`,version:1}));function z6(e,t){return N1(e,t)}function epe(e){if(e<60)return`Voice · ${e}s`;let t=Math.floor(e/60),n=e%60;return`Voice · ${t}:${String(n).padStart(2,`0`)}`}async function tpe(e){let t=await e.json().catch(()=>({}));return typeof t.error==`string`?t.error:`HTTP ${e.status}`}async function B6(e,t){let n=F.getState().token,r=new Headers;n&&r.set(`Authorization`,`Bearer ${n}`);let i=await fetch(e,{method:`POST`,headers:r,body:t});if(i.status===401&&F.getState().onUnauthorized(),!i.ok)throw Error(await tpe(i));return i.json()}function npe(e){let t=(0,Q.c)(39),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({src:s,expectedNoteId:r,alt:c,className:n,onClick:i,onLoadFailed:a,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?``:c,u;t[8]!==r||t[9]!==s?(u=P1(s,r),t[8]=r,t[9]=s,t[10]=u):u=t[10];let d=u,[f,p]=(0,Z.useState)(d?null:s),[m,h]=(0,Z.useState)(!1),g,_;if(t[11]!==a||t[12]!==d||t[13]!==s?(g=()=>{if(h(!1),!d){p(s);return}let e=!1;return p(null),V1(d.noteId,d.attachmentId).then(t=>{e||p(t)}).catch(()=>{e||(h(!0),a?.())}),()=>{e=!0,H1(d.noteId,d.attachmentId)}},_=[s,d,a],t[11]=a,t[12]=d,t[13]=s,t[14]=g,t[15]=_):(g=t[14],_=t[15]),(0,Z.useEffect)(g,_),m){let e;t[16]===n?e=t[17]:(e=C(`flex items-center justify-center bg-surface-hover text-fg-muted`,n),t[16]=n,t[17]=e);let r=!l,i;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(hh,{className:`size-5`}),t[18]=i):i=t[18];let a;return t[19]!==e||t[20]!==r?(a=(0,$.jsx)(`div`,{className:e,"aria-hidden":r,children:i}),t[19]=e,t[20]=r,t[21]=a):a=t[21],a}if(!f){let e;t[22]===n?e=t[23]:(e=C(`animate-pulse bg-surface-hover`,n),t[22]=n,t[23]=e);let r=!l,i;return t[24]!==e||t[25]!==r?(i=(0,$.jsx)(`div`,{className:e,"aria-hidden":r}),t[24]=e,t[25]=r,t[26]=i):i=t[26],i}let v;t[27]!==f||t[28]!==i?(v=i?()=>i(f):void 0,t[27]=f,t[28]=i,t[29]=v):v=t[29];let y;t[30]===a?y=t[31]:(y=()=>{h(!0),a?.()},t[30]=a,t[31]=y);let b;return t[32]!==l||t[33]!==n||t[34]!==f||t[35]!==o||t[36]!==v||t[37]!==y?(b=(0,$.jsx)(`img`,{...o,src:f,alt:l,className:n,onClick:v,onError:y}),t[32]=l,t[33]=n,t[34]=f,t[35]=o,t[36]=v,t[37]=y,t[38]=b):b=t[38],b}function rpe(e){return e.replace(/xopc-attachment:\/\/notes\/([^/]+)\/([^)\s]+)/gi,`/api/notes/$1/media/$2`)}function ipe(e,t){let n=[];return e.querySelectorAll(`.markdown-body img`).forEach(e=>{let r=P1(e.getAttribute(`src`)??``,t);if(!r)return;let i=!1;V1(r.noteId,r.attachmentId).then(t=>{i||(e.src=t)}).catch(()=>{e.classList.add(`note-media-load-failed`)}),n.push(()=>{i=!0,H1(r.noteId,r.attachmentId)})}),e.querySelectorAll(`.markdown-body a`).forEach(e=>{let r=P1(e.getAttribute(`href`)??``,t);if(!r)return;let i=document.createElement(`audio`);i.controls=!0,i.className=`note-media-audio mt-2 w-full max-w-md`,e.replaceWith(i);let a=!1;V1(r.noteId,r.attachmentId).then(e=>{a||(i.src=e)}).catch(()=>{i.remove()}),n.push(()=>{a=!0,H1(r.noteId,r.attachmentId)})}),()=>{for(let e of n)e()}}function ape(e){let t=(0,Q.c)(17),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({content:n,noteId:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=(0,Z.useRef)(null),o;t[4]===r?o=t[5]:(o=()=>{let e=a.current;if(e)return ipe(e,r)},t[4]=r,t[5]=o);let s;t[6]!==n||t[7]!==r?(s=[n,r],t[6]=n,t[7]=r,t[8]=s):s=t[8],(0,Z.useLayoutEffect)(o,s);let c;t[9]===n?c=t[10]:(c=rpe(n),t[9]=n,t[10]=c);let l;t[11]===i.className?l=t[12]:(l=[`markdown-note`,i.className].filter(Boolean),t[11]=i.className,t[12]=l);let u=l.join(` `),d;return t[13]!==i||t[14]!==c||t[15]!==u?(d=(0,$.jsx)(`div`,{ref:a,children:(0,$.jsx)(QW,{content:c,...i,className:u})}),t[13]=i,t[14]=c,t[15]=u,t[16]=d):d=t[16],d}async function ope(e={}){let t=new URLSearchParams;e.status&&t.set(`status`,e.status),e.kind&&t.set(`kind`,e.kind),e.tag&&t.set(`tag`,e.tag),e.projectId&&t.set(`projectId`,e.projectId),e.pinned!==void 0&&t.set(`pinned`,String(e.pinned)),e.search&&t.set(`search`,e.search),e.limit&&t.set(`limit`,String(e.limit)),e.offset&&t.set(`offset`,String(e.offset)),e.sortBy&&t.set(`sortBy`,e.sortBy),e.sortOrder&&t.set(`sortOrder`,e.sortOrder);let n=t.toString();return B(z(`/api/notes${n?`?${n}`:``}`))}async function V6(e,t=`web`){return(await B(z(`/api/notes/quick-capture`),{method:`POST`,body:JSON.stringify({text:e,channel:t})})).note}async function spe(e){return(await B(z(`/api/notes`),{method:`POST`,body:JSON.stringify({markdown:e.markdown,title:e.title,kind:e.kind,tags:e.tags,projectId:e.projectId,pinned:e.pinned,channel:e.channel??`web`})})).note}async function H6(e){let t=await L(z(`/api/notes/${encodeURIComponent(e)}`));if(t.status===404)return null;let n=await t.json();if(!t.ok)throw Error(n.error||`HTTP ${t.status}`);return n.note??null}async function U6(e,t){return(await B(z(`/api/notes/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)})).note}async function cpe(e){await B(z(`/api/notes/${encodeURIComponent(e)}`),{method:`DELETE`})}async function lpe(e){return B(z(`/api/notes/${encodeURIComponent(e)}/catalyze`),{method:`POST`})}async function upe(e,t){return(await B(z(`/api/notes/${encodeURIComponent(e)}/catalysis-feedback`),{method:`POST`,body:JSON.stringify({feedback:t})})).note}async function dpe(e,t={}){return B(z(`/api/notes/${encodeURIComponent(e)}/chat`),{method:`POST`,body:JSON.stringify(t.forceNew?{forceNew:!0}:{})})}async function fpe(e){return(await B(z(`/api/notes/${encodeURIComponent(e)}/threads`))).items}async function ppe(e){return B(z(`/api/notes/${encodeURIComponent(e)}/context-status`))}async function mpe(e){return B(z(`/api/notes/${encodeURIComponent(e)}/context-rebuild`),{method:`POST`})}async function hpe(e,t,n){return(await B(z(`/api/notes/${encodeURIComponent(e)}/append`),{method:`POST`,body:JSON.stringify({content:t,heading:n})})).note}async function gpe(e,t={}){return(await B(z(`/api/notes/task`),{method:`POST`,body:JSON.stringify({title:e,channel:`web`,priority:t.priority,sourceSessionKey:t.sourceSessionKey||void 0,sourceNoteId:t.sourceNoteId||void 0})})).note}async function _pe(e,t){let n=new FormData;return n.append(`file`,t),(await B6(z(`/api/notes/${encodeURIComponent(e)}/media`),n)).attachment}async function W6(e,t){let n=new FormData;return n.append(`file`,e),t?.markdown&&n.append(`markdown`,t.markdown),n.append(`channel`,t?.channel??`web`),t?.kind&&n.append(`kind`,t.kind),t?.duration!==void 0&&n.append(`duration`,String(t.duration)),(await B6(z(`/api/notes`),n)).note}async function vpe(e,t=`web`){let n=await W6(e,{channel:t}),r=n.attachments?.find(e=>e.type===`image`)??n.attachments?.[0];if(!r)return n;let i=`})`;return n.markdown!==i&&(n=await U6(n.id,{markdown:i})),n}async function ype(e,t,n=`web`){let r=await W6(e,{channel:n,kind:`voice`,duration:t}),i=r.attachments?.find(e=>e.type===`audio`)??r.attachments?.[0];if(!i)return r;let a=`[${epe(t)}](${z6(r.id,i.id)})`;return r.markdown!==a&&(r=await U6(r.id,{markdown:a,kind:`voice`})),r}async function bpe(e){return(await B(z(`/api/notes/${encodeURIComponent(e)}/history`))).entries}async function xpe(e,t){return(await B(z(`/api/notes/${encodeURIComponent(e)}/history/${t}`))).snapshot}async function Spe(e,t){return(await B(z(`/api/notes/${encodeURIComponent(e)}/history/restore`),{method:`POST`,body:JSON.stringify({timestamp:t})})).note}function Cpe(e){let t=(0,Q.c)(98),{onClose:n}=e,r=m(),i=I(Tpe),a;t[0]===i?a=t[1]:(a=j(i),t[0]=i,t[1]=a);let o=a.notes,s;t[2]===i?s=t[3]:(s=j(i),t[2]=i,t[3]=s);let c=s.chat,l=R6(wpe),[u,d]=(0,Z.useState)(``),[f,p]=(0,Z.useState)(!1),h=(0,Z.useRef)(null),g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>m6(t,e)),window.setTimeout(()=>h.current?.focus(),0)},t[4]=g):g=t[4];let _;t[5]!==c||t[6]!==f?(_={disabled:f,chat:c,onTranscript:g},t[5]=c,t[6]=f,t[7]=_):_=t[7];let v=C6(_),{phase:y,voiceActive:b,startVoiceInput:x,cancelVoiceInput:S,confirmVoiceInput:C}=v,w,T;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{let e=window.setTimeout(()=>h.current?.focus(),50);return()=>window.clearTimeout(e)},T=[],t[8]=w,t[9]=T):(w=t[8],T=t[9]),(0,Z.useEffect)(w,T);let E,D;t[10]!==S||t[11]!==C||t[12]!==f||t[13]!==x||t[14]!==b||t[15]!==y?(E=()=>{let e=e=>{e.detail?.target===`note`&&(e.preventDefault(),!f&&(y===`recording`?C():(y===`idle`||y===`error`)&&x()))},t=e=>{e.detail?.target!==`note`||!b||(e.preventDefault(),S(),h.current?.focus())};return window.addEventListener(w6,e),window.addEventListener(T6,t),()=>{window.removeEventListener(w6,e),window.removeEventListener(T6,t)}},D=[S,C,f,x,b,y],t[10]=S,t[11]=C,t[12]=f,t[13]=x,t[14]=b,t[15]=y,t[16]=E,t[17]=D):(E=t[16],D=t[17]),(0,Z.useEffect)(E,D);let O;t[18]!==r||t[19]!==n||t[20]!==f||t[21]!==u?(O=async e=>{let t=u.trim();if(!(!t||f)){p(!0);try{let i=await V6(t,`web`);n(),e&&r(`/notes/${i.id}`)}catch{p(!1)}}},t[18]=r,t[19]=n,t[20]=f,t[21]=u,t[22]=O):O=t[22];let k=O,A;t[23]!==k||t[24]!==n?(A=e=>{if(e.key===`Escape`){e.preventDefault(),n();return}if(e.key===`Enter`&&!e.shiftKey){e.preventDefault(),k(!0);return}e.key===`Enter`&&e.shiftKey&&(e.preventDefault(),k(!1))},t[23]=k,t[24]=n,t[25]=A):A=t[25];let M=A,N=o.quickCapturePlaceholder,P;t[26]===n?P=t[27]:(P=e=>{e.target===e.currentTarget&&n()},t[26]=n,t[27]=P);let F;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(Cb,{className:`size-4 text-accent`}),t[28]=F):F=t[28];let L;t[29]===o.quickCapturePlaceholder?L=t[30]:(L=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-edge px-4 py-3`,children:[F,(0,$.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:o.quickCapturePlaceholder})]}),t[29]=o.quickCapturePlaceholder,t[30]=L);let R;t[31]!==c||t[32]!==M||t[33]!==o.quickCapturePlaceholder||t[34]!==f||t[35]!==u||t[36]!==v.audioLevel||t[37]!==v.cancelVoiceInput||t[38]!==v.confirmVoiceInput||t[39]!==v.elapsedLabel||t[40]!==v.hasRetainedRecording||t[41]!==v.phase||t[42]!==v.readiness||t[43]!==v.retryVoiceInput||t[44]!==v.voiceActive?(R=v.voiceActive?(0,$.jsx)(`div`,{className:`px-4 py-3`,children:(0,$.jsx)(_6,{phase:v.phase,elapsedLabel:v.elapsedLabel,audioLevel:v.audioLevel,readiness:v.readiness,hasRetainedRecording:v.hasRetainedRecording,disabled:f,chat:c,onCancel:v.cancelVoiceInput,onConfirm:v.confirmVoiceInput,onRetry:v.retryVoiceInput})}):(0,$.jsx)(`textarea`,{ref:h,value:u,onChange:e=>d(e.target.value),onKeyDown:M,placeholder:o.quickCapturePlaceholder,disabled:f,rows:4,className:`resize-none border-none bg-transparent px-4 py-3 text-sm leading-relaxed text-fg placeholder:text-fg-muted focus:outline-none disabled:opacity-60`,style:{fieldSizing:`content`,minHeight:`6rem`,maxHeight:`40vh`}}),t[31]=c,t[32]=M,t[33]=o.quickCapturePlaceholder,t[34]=f,t[35]=u,t[36]=v.audioLevel,t[37]=v.cancelVoiceInput,t[38]=v.confirmVoiceInput,t[39]=v.elapsedLabel,t[40]=v.hasRetainedRecording,t[41]=v.phase,t[42]=v.readiness,t[43]=v.retryVoiceInput,t[44]=v.voiceActive,t[45]=R):R=t[45];let z=f||v.voiceActive,B;t[46]===n?B=t[47]:(B=()=>{n(),gN()},t[46]=n,t[47]=B);let V;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(Ln,{className:`size-3.5`,"aria-hidden":!0}),t[48]=V):V=t[48];let H;t[49]===o.discussionCapture.title?H=t[50]:(H=(0,$.jsx)(`span`,{children:o.discussionCapture.title}),t[49]=o.discussionCapture.title,t[50]=H);let U;t[51]!==z||t[52]!==B||t[53]!==H?(U=(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1.5 rounded-md px-1.5 py-1 text-fg-muted hover:bg-surface-hover hover:text-fg disabled:opacity-50`,disabled:z,onClick:B,children:[V,H]}),t[51]=z,t[52]=B,t[53]=H,t[54]=U):U=t[54];let W=f||v.voiceActive,G=c.voiceInput,K;t[55]===l?K=t[56]:(K=j6(l).join(`+`),t[55]=l,t[56]=K);let ee=`${G} (${K})`,q=c.voiceInput,te;t[57]===l?te=t[58]:(te=j6(l).join(`+`),t[57]=l,t[58]=te);let ne=`${q} (${te})`,re;t[59]===v?re=t[60]:(re=()=>void v.startVoiceInput(),t[59]=v,t[60]=re);let ie;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,$.jsx)(jv,{className:`size-3.5`,"aria-hidden":!0}),t[61]=ie):ie=t[61];let ae;t[62]===c.voiceInput?ae=t[63]:(ae=(0,$.jsx)(`span`,{children:c.voiceInput}),t[62]=c.voiceInput,t[63]=ae);let oe;t[64]!==W||t[65]!==ee||t[66]!==ne||t[67]!==re||t[68]!==ae?(oe=(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1.5 rounded-md px-1.5 py-1 text-fg-muted hover:bg-surface-hover hover:text-fg disabled:opacity-50`,disabled:W,title:ee,"aria-label":ne,onClick:re,children:[ie,ae]}),t[64]=W,t[65]=ee,t[66]=ne,t[67]=re,t[68]=ae,t[69]=oe):oe=t[69];let se;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(se=(0,$.jsx)(`kbd`,{className:`rounded bg-surface-hover px-1 py-0.5 font-mono text-[10px]`,children:`Enter`}),t[70]=se):se=t[70];let J;t[71]===o.quickCaptureHintEnter?J=t[72]:(J=(0,$.jsxs)(`span`,{children:[se,` `,o.quickCaptureHintEnter]}),t[71]=o.quickCaptureHintEnter,t[72]=J);let ce;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,$.jsx)(`kbd`,{className:`rounded bg-surface-hover px-1 py-0.5 font-mono text-[10px]`,children:`Shift+Enter`}),t[73]=ce):ce=t[73];let le;t[74]===o.quickCaptureHintShift?le=t[75]:(le=(0,$.jsxs)(`span`,{children:[ce,` `,o.quickCaptureHintShift]}),t[74]=o.quickCaptureHintShift,t[75]=le);let ue;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,$.jsx)(`kbd`,{className:`rounded bg-surface-hover px-1 py-0.5 font-mono text-[10px]`,children:`Esc`}),t[76]=ue):ue=t[76];let de;t[77]===o.quickCaptureHintEsc?de=t[78]:(de=(0,$.jsxs)(`span`,{children:[ue,` `,o.quickCaptureHintEsc]}),t[77]=o.quickCaptureHintEsc,t[78]=de);let fe;t[79]!==U||t[80]!==oe||t[81]!==J||t[82]!==le||t[83]!==de?(fe=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-[11px] text-fg-muted`,children:[U,oe,J,le,de]}),t[79]=U,t[80]=oe,t[81]=J,t[82]=le,t[83]=de,t[84]=fe):fe=t[84];let pe;t[85]===f?pe=t[86]:(pe=f&&(0,$.jsx)(`div`,{className:`size-4 animate-spin rounded-full border-2 border-accent border-t-transparent`}),t[85]=f,t[86]=pe);let me;t[87]!==fe||t[88]!==pe?(me=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-t border-edge-subtle px-4 py-2`,children:[fe,pe]}),t[87]=fe,t[88]=pe,t[89]=me):me=t[89];let he;t[90]!==L||t[91]!==R||t[92]!==me?(he=(0,$.jsxs)(`div`,{className:`flex w-full max-w-lg flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-elevated`,children:[L,R,me]}),t[90]=L,t[91]=R,t[92]=me,t[93]=he):he=t[93];let ge;return t[94]!==o.quickCapturePlaceholder||t[95]!==P||t[96]!==he?(ge=(0,$.jsx)(`div`,{className:`fixed inset-0 z-[120] flex items-start justify-center bg-black/40 p-4 pt-[min(18vh,7rem)]`,role:`dialog`,"aria-modal":`true`,"data-voice-input-scope":`note`,"aria-label":N,onMouseDown:P,children:he}),t[94]=o.quickCapturePlaceholder,t[95]=P,t[96]=he,t[97]=ge):ge=t[97],ge}function wpe(e){return e.shortcut}function Tpe(e){return e.language}function Epe(){let e=(0,Q.c)(11),[t,n]=(0,Z.useState)(!1),[r,i]=(0,Z.useState)(!1),a=F(kpe),o=P6(Ope),s,c;e[0]!==r||e[1]!==o||e[2]!==a?(s=()=>{let e=e=>{r||I6(e,o)&&(e.preventDefault(),a&&n(Dpe))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},c=[r,o,a],e[0]=r,e[1]=o,e[2]=a,e[3]=s,e[4]=c):(s=e[3],c=e[4]),(0,Z.useEffect)(s,c);let l,u;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=e=>{i(!!e.detail?.active)};return window.addEventListener(`quick-capture-shortcut-recording`,e),window.addEventListener(E6,e),()=>{window.removeEventListener(`quick-capture-shortcut-recording`,e),window.removeEventListener(E6,e)}},u=[],e[5]=l,e[6]=u):(l=e[5],u=e[6]),(0,Z.useEffect)(l,u);let d,f;if(e[7]===a?(d=e[8],f=e[9]):(d=()=>{let e=()=>{a&&n(!0)};return window.addEventListener(`open-quick-capture`,e),()=>window.removeEventListener(`open-quick-capture`,e)},f=[a],e[7]=a,e[8]=d,e[9]=f),(0,Z.useEffect)(d,f),!t)return null;let p;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(Cpe,{onClose:()=>n(!1)}),e[10]=p):p=e[10],p}function Dpe(e){return!e}function Ope(e){return e.shortcut}function kpe(e){return e.token}function G6(){return B(z(`/api/discussion-capture/settings`))}function Ape(e){return B(z(`/api/discussion-capture/settings`),{method:`PUT`,body:JSON.stringify({consentPolicyVersion:e})})}async function K6(e){return B(z(`/api/discussions`),{method:`POST`,body:JSON.stringify(e)})}function q6(e){return B(z(`/api/discussions/${encodeURIComponent(e)}`))}async function jpe(e){try{return await B(z(`/api/discussions/by-note/${encodeURIComponent(e)}`))}catch(e){if(e.status===404)return null;throw e}}function Mpe(e){return B(z(`/api/discussions/${encodeURIComponent(e)}/transcript`))}function J6(e,t,n){let r=new FormData;return r.set(`file`,n.blob,`segment-${t}.wav`),r.set(`startedAtMs`,String(n.startedAtMs)),r.set(`endedAtMs`,String(n.endedAtMs)),r.set(`sha256`,n.sha256),B(z(`/api/discussions/${encodeURIComponent(e)}/segments/${t}`),{method:`PUT`,body:r})}function Y6(e,t,n){return B(z(`/api/discussions/${encodeURIComponent(e)}/stop`),{method:`POST`,body:JSON.stringify({lastSequence:t,durationMs:n})})}function Npe(e){return B(z(`/api/discussions/${encodeURIComponent(e)}/cancel`),{method:`POST`})}function Ppe(e){return B(z(`/api/discussions/${encodeURIComponent(e)}/project`),{method:`DELETE`})}function X6(e,t,n,r){return new Promise((i,a)=>{let o=new XMLHttpRequest;o.open(`PUT`,z(`/api/discussions/${encodeURIComponent(e)}/recording`));let s=F.getState().token;s&&o.setRequestHeader(`Authorization`,`Bearer ${s}`),o.responseType=`json`,o.upload.onprogress=e=>{e.lengthComputable&&e.total>0&&r(Math.min(100,Math.round(e.loaded/e.total*100)))},o.onerror=()=>a(Error(`Network error while uploading discussion audio`)),o.onload=()=>{if(o.status===401&&F.getState().onUnauthorized(),o.status>=200&&o.status<300){r(100),i(o.response);return}let e=o.response;a(Error(N(o.status,o.statusText,e?.error)))};let c=new FormData;c.set(`file`,t),c.set(`durationMs`,String(Math.round(n))),o.send(c)})}var Fpe=`xopc-discussion-drafts`,Z6=2,Q6=`drafts`,$6=`chunks`,e8=`segments`;function t8(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error??Error(`IndexedDB request failed`))})}function n8(e){return new Promise((t,n)=>{e.oncomplete=()=>t(),e.onabort=()=>n(e.error??Error(`IndexedDB transaction aborted`)),e.onerror=()=>n(e.error??Error(`IndexedDB transaction failed`))})}function r8(){return typeof indexedDB>`u`?Promise.reject(Error(`Local recording storage is unavailable`)):new Promise((e,t)=>{let n=indexedDB.open(Fpe,Z6);n.onupgradeneeded=e=>{let t=n.result;t.objectStoreNames.contains(Q6)||t.createObjectStore(Q6,{keyPath:`id`}),t.objectStoreNames.contains($6)||t.createObjectStore($6,{keyPath:[`draftId`,`index`]}).createIndex(`draftId`,`draftId`),t.objectStoreNames.contains(e8)||t.createObjectStore(e8,{keyPath:[`draftId`,`sequence`]}).createIndex(`draftId`,`draftId`),e.oldVersion>0&&e.oldVersion<Z6&&(n.transaction?.objectStore(Q6).clear(),n.transaction?.objectStore($6).clear())},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error??Error(`Could not open local recording storage`))})}async function i8(e){let t=await r8();try{let n=t.transaction(Q6,`readwrite`);n.objectStore(Q6).put(e),await n8(n)}finally{t.close()}}async function Ipe(e){let t=await r8();try{let n=t.transaction($6,`readwrite`);n.objectStore($6).put(e),await n8(n)}finally{t.close()}}async function Lpe(){let e=await r8();try{let t=e.transaction(Q6,`readonly`),n=n8(t),r=await t8(t.objectStore(Q6).getAll());return await n,r.sort((e,t)=>t.updatedAt-e.updatedAt)}finally{e.close()}}async function Rpe(e){let t=await r8();try{let n=t.transaction($6,`readonly`),r=n8(n),i=await t8(n.objectStore($6).index(`draftId`).getAll(e));return await r,i.sort((e,t)=>e.index-t.index)}finally{t.close()}}async function zpe(e){let t=await r8();try{let n=t.transaction(e8,`readwrite`);n.objectStore(e8).put(e),await n8(n)}finally{t.close()}}async function a8(e){let t=await r8();try{let n=t.transaction(e8,`readonly`),r=n8(n),i=await t8(n.objectStore(e8).index(`draftId`).getAll(e));return await r,i.sort((e,t)=>e.sequence-t.sequence)}finally{t.close()}}async function o8(e,t){let n=await r8();try{let r=n.transaction(e8,`readwrite`);r.objectStore(e8).delete([e,t]),await n8(r)}finally{n.close()}}async function Bpe(e){let t=await r8();try{let n=t.transaction([Q6,$6,e8],`readwrite`);n.objectStore(Q6).delete(e);let r=n.objectStore($6),i=r.index(`draftId`).openKeyCursor(IDBKeyRange.only(e));i.onsuccess=()=>{let e=i.result;e&&(r.delete(e.primaryKey),e.continue())};let a=n.objectStore(e8),o=a.index(`draftId`).openKeyCursor(IDBKeyRange.only(e));o.onsuccess=()=>{let e=o.result;e&&(a.delete(e.primaryKey),e.continue())},await n8(n)}finally{t.close()}}var s8=8,c8=.75;function Vpe(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Float32Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}async function Hpe(e){let t=await crypto.subtle.digest(`SHA-256`,await e.arrayBuffer());return[...new Uint8Array(t)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Upe=class e{context;source;node;mutedOutput;onSegment;chunks=[];bufferedSamples=0;sequence=0;lastEndMs=0;paused=!1;stopped=!1;pendingEmits=new Set;emitError;constructor(e,t,n,r,i){this.context=e,this.source=t,this.node=n,this.mutedOutput=r,this.onSegment=i,this.node.port.onmessage=e=>{if(this.paused||this.stopped)return;let t=new Float32Array(e.data);this.chunks.push(t),this.bufferedSamples+=t.length,this.flushCompleteSegments()}}static async start(t,n){if(!window.AudioWorkletNode)throw Error(`Live transcription is not supported in this browser`);let r=new AudioContext,i=URL.createObjectURL(new Blob([`
|
|
136
|
-
class XopcDiscussionPcmProcessor extends AudioWorkletProcessor {
|
|
137
|
-
process(inputs) {
|
|
138
|
-
const channel = inputs[0] && inputs[0][0];
|
|
139
|
-
if (channel && channel.length) {
|
|
140
|
-
const copy = new Float32Array(channel);
|
|
141
|
-
this.port.postMessage(copy.buffer, [copy.buffer]);
|
|
142
|
-
}
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
registerProcessor('xopc-discussion-pcm', XopcDiscussionPcmProcessor);
|
|
147
|
-
`],{type:`text/javascript`}));try{await r.audioWorklet.addModule(i)}finally{URL.revokeObjectURL(i)}let a=r.createMediaStreamSource(t),o=new AudioWorkletNode(r,`xopc-discussion-pcm`),s=r.createGain();return s.gain.value=0,a.connect(o),o.connect(s),s.connect(r.destination),await r.resume(),new e(r,a,o,s,n)}pause(){this.paused=!0}resume(){this.paused=!1}async stop(){if(this.stopped)return this.sequence-1;if(this.stopped=!0,this.disconnect(),await this.context.close(),this.bufferedSamples>=this.context.sampleRate/2&&this.emitBuffered(!0),await Promise.all(this.pendingEmits),this.emitError)throw this.emitError;return this.sequence-1}cancel(){this.stopped||(this.stopped=!0,this.disconnect(),this.context.close(),this.chunks.length=0,this.bufferedSamples=0)}flushCompleteSegments(){let e=this.context.sampleRate*s8;for(;this.bufferedSamples>=e;)this.emitBuffered(!1)}emitBuffered(e){let t=this.context.sampleRate,n=t*s8,r=t*c8,i=Vpe(this.chunks),a=e?i.length:n,o=i.slice(0,a),s=e?i.length:Math.max(0,a-r),c=i.slice(s);this.chunks.length=0,c.length>0&&this.chunks.push(c),this.bufferedSamples=c.length;let l=Math.round(o.length/t*1e3),u=this.sequence===0?0:Math.max(0,this.lastEndMs-c8*1e3),d=u+l;this.lastEndMs=d;let f=this.sequence++,p=x6(o,t),m=new Blob([S6(p)],{type:`audio/wav`}),h=(async()=>{await this.onSegment({sequence:f,blob:m,startedAtMs:u,endedAtMs:d,sha256:await Hpe(m)})})().catch(e=>{this.emitError??=e});this.pendingEmits.add(h),h.then(()=>this.pendingEmits.delete(h))}disconnect(){this.node.port.onmessage=null,this.source.disconnect(),this.node.disconnect(),this.mutedOutput.disconnect()}},l8=1800*1e3,Wpe=30*1024*1024;function Gpe(){if(!(typeof MediaRecorder>`u`))return[`audio/webm;codecs=opus`,`audio/mp4`,`audio/ogg;codecs=opus`,`audio/webm`].find(e=>MediaRecorder.isTypeSupported(e))}function Kpe(e){return e.includes(`mp4`)?`m4a`:e.includes(`ogg`)?`ogg`:`webm`}function qpe(){let[e,t]=(0,Z.useState)(`idle`),[n,r]=(0,Z.useState)(null),[i,a]=(0,Z.useState)([]),[o,s]=(0,Z.useState)(0),[c,l]=(0,Z.useState)(null),[u,d]=(0,Z.useState)(!0),f=(0,Z.useRef)(null),p=(0,Z.useRef)(null),m=(0,Z.useRef)(null),h=(0,Z.useRef)(null),g=(0,Z.useRef)(0),_=(0,Z.useRef)(0),v=(0,Z.useRef)(0),y=(0,Z.useRef)(Promise.resolve()),b=(0,Z.useRef)(null),x=(0,Z.useRef)(null),S=(0,Z.useCallback)(async()=>{try{a(await Lpe())}catch{a([])}},[]);(0,Z.useEffect)(()=>{S()},[S]);let C=(0,Z.useCallback)(()=>{b.current!=null&&window.clearInterval(b.current),x.current!=null&&window.clearTimeout(x.current),b.current=null,x.current=null,m.current?.getTracks().forEach(e=>e.stop()),m.current=null,f.current=null},[]);(0,Z.useEffect)(()=>()=>{p.current?.cancel(),C()},[C]);let w=(0,Z.useCallback)(e=>{let t=h.current;if(!t||e.size===0)return;let n=g.current++;y.current=y.current.then(async()=>{await Ipe({draftId:t.id,index:n,blob:e,createdAt:Date.now()});let i=h.current;if(!i||i.id!==t.id)return;let a={...i,chunkCount:Math.max(i.chunkCount,n+1),durationMs:Math.max(i.durationMs,_.current+(v.current?Date.now()-v.current:0)),updatedAt:Date.now()};h.current=a,r(a),await i8(a)})},[]),T=(0,Z.useCallback)(async()=>{let e=f.current;if(!e||e.state===`inactive`)return h.current;t(`stopping`),e.state===`recording`&&v.current&&(_.current+=Date.now()-v.current,v.current=0);let n=p.current?await p.current.stop().catch(()=>-1):-1;p.current=null,await new Promise(t=>{e.addEventListener(`stop`,()=>t(),{once:!0}),e.stop()}),await y.current;let i=h.current;if(!i)return C(),t(`error`),l(`The recording draft could not be recovered.`),null;let a={...i,state:`stopped`,lastSequence:n,durationMs:Math.min(l8,Math.max(1e3,_.current)),updatedAt:Date.now()};return await i8(a),h.current=a,r(a),s(a.durationMs),C(),t(`stopped`),await S(),a},[S,C]),E=(0,Z.useCallback)(async e=>{if(!navigator.mediaDevices?.getUserMedia||typeof MediaRecorder>`u`)return l(`Audio recording is not supported in this environment.`),t(`error`),null;l(null),t(`requesting_permission`);try{let n=await navigator.storage?.estimate?.();if(n?.quota!=null&&n.usage!=null&&n.quota-n.usage<Wpe)throw Error(`Not enough local storage for a discussion recording.`);let i=await navigator.mediaDevices.getUserMedia({audio:!0});m.current=i;let a=Gpe(),o=a?new MediaRecorder(i,{mimeType:a,audioBitsPerSecond:64e3}):new MediaRecorder(i,{audioBitsPerSecond:64e3}),c=Date.now(),u={id:crypto.randomUUID(),...e.projectId?{projectId:e.projectId}:{},mimeType:o.mimeType||a||`audio/webm`,startedAt:c,updatedAt:c,durationMs:0,chunkCount:0,lastSequence:-1,state:`recording`};await i8(u),f.current=o,h.current=u,g.current=0,_.current=0,v.current=c,y.current=Promise.resolve(),o.ondataavailable=e=>w(e.data),o.onerror=()=>l(`The microphone stopped unexpectedly. Finish to save the recording.`),o.start(5e3);try{p.current=await Upe.start(i,t=>e.onLiveSegment(u.id,t)),d(!0)}catch{p.current=null,d(!1)}return r(u),s(0),t(`recording`),b.current=window.setInterval(()=>{s(_.current+(v.current?Date.now()-v.current:0))},1e3),x.current=window.setTimeout(()=>void T(),l8),u}catch(e){return p.current?.cancel(),p.current=null,C(),l(e instanceof Error?e.message:`Microphone permission was denied.`),t(`error`),null}},[w,T,C]),D=(0,Z.useCallback)(()=>{f.current?.state===`recording`&&(v.current&&(_.current+=Date.now()-v.current,v.current=0,s(_.current)),f.current.pause(),p.current?.pause(),t(`paused`))},[]),O=(0,Z.useCallback)(()=>{f.current?.state===`paused`&&(v.current=Date.now(),f.current.resume(),p.current?.resume(),t(`recording`))},[]),k=(0,Z.useCallback)(async e=>{let t=h.current;if(!t)return;let n={...t,serverDiscussionId:e,updatedAt:Date.now()};h.current=n,r(n),await i8(n)},[]);return{phase:e,draft:n,recoverableDrafts:i,elapsedMs:o,error:c,liveTranscriptionAvailable:u,start:E,pause:D,resume:O,stop:T,restore:(0,Z.useCallback)(async e=>{let n={...e,state:`stopped`,updatedAt:Date.now()};await i8(n),h.current=n,_.current=n.durationMs,v.current=0,r(n),s(n.durationMs),l(null),t(`stopped`)},[]),discard:(0,Z.useCallback)(async e=>{await Bpe(e),h.current?.id===e&&(h.current=null,r(null),s(0),t(`idle`)),await S()},[S]),buildFile:(0,Z.useCallback)(async()=>{let e=h.current;if(!e)return null;let t=await Rpe(e.id);if(t.length===0)return null;let n=new Blob(t.map(e=>e.blob),{type:e.mimeType});return new File([n],`discussion-${e.startedAt}.${Kpe(e.mimeType)}`,{type:e.mimeType})},[]),markUploadFailed:(0,Z.useCallback)(async()=>{let e=h.current;if(!e)return;let t={...e,state:`upload_failed`,updatedAt:Date.now()};await i8(t),h.current=t,r(t),await S()},[S]),reset:(0,Z.useCallback)(()=>{h.current=null,_.current=0,v.current=0,r(null),s(0),l(null),t(`idle`)},[]),setServerDiscussionId:k,refreshRecoverableDrafts:S}}function Jpe(e){let t=Math.max(0,Math.floor(e/1e3));return`${String(Math.floor(t/60)).padStart(2,`0`)}:${String(t%60).padStart(2,`0`)}`}function Ype(){let e=m(),t=F(e=>e.token),n=j(I(e=>e.language)).notes.discussionCapture,r=qpe(),[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(null),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)(0),[C,w]=(0,Z.useState)(null),T=(0,Z.useRef)(null),E=(0,Z.useRef)(new Set),D=(0,Z.useRef)(0),O=(0,Z.useRef)([]),k=(0,Z.useCallback)(async()=>{if(D.current<2){D.current+=1;return}await new Promise(e=>O.current.push(e))},[]),A=(0,Z.useCallback)(()=>{let e=O.current.shift();e?e():--D.current},[]),M=(0,Z.useCallback)(async(e,t)=>{await zpe({draftId:e,...t,createdAt:Date.now()});let n=(async()=>{await k();try{let n=await T.current;if(!n)throw Error(`Discussion session is unavailable`);let r=await J6(n.discussion.id,t.sequence,t);await o8(e,t.sequence),p(r)}finally{A()}})().catch(()=>void 0).finally(()=>E.current.delete(n));E.current.add(n)},[k,A]),N=(0,Z.useCallback)(async(e,t)=>{let n=await a8(e);for(let r of n)try{let n=await J6(t,r.sequence,r);await o8(e,r.sequence),p(n)}catch{return}},[]),P=(0,Z.useCallback)(async(e,t)=>{s(null),l(void 0),a(!0),w(null),p(null),d(null),S(0);let i=await r.start({...e?{projectId:e}:{},onLiveSegment:M});if(!i)return;let o=K6({clientRequestId:i.id,...e?{contextProjectId:e}:{},consentPolicyVersion:t,source:$E()?`electron`:`web`});T.current=o;try{let e=await o;d(e),await r.setServerDiscussionId(e.discussion.id),await N(i.id,e.discussion.id)}catch(e){w(e instanceof Error?e.message:n.saveFailed)}},[n.saveFailed,r,N,M]),L=(0,Z.useCallback)(async e=>{if(!(!t||r.phase===`recording`||r.phase===`paused`||h)){a(!0),w(null);try{let t=await G6();if(t.consentAcknowledgedAt==null){l(e),s(t.consentPolicyVersion);return}await P(e,t.consentPolicyVersion)}catch(e){w(e instanceof Error?e.message:n.saveFailed)}}},[P,n.saveFailed,h,r.phase,t]);(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail?.projectId;L(t)};return window.addEventListener(hN,e),()=>window.removeEventListener(hN,e)},[L]);let R=(0,Z.useCallback)(async()=>{let e=u?.discussion.id;if(!e)return;let[t,n]=await Promise.all([q6(e),Mpe(e)]);d(t),p(n)},[u?.discussion.id]);(0,Z.useEffect)(()=>{let e=()=>void R();return window.addEventListener(`discussion-segment-updated`,e),window.addEventListener(`discussion-updated`,e),()=>{window.removeEventListener(`discussion-segment-updated`,e),window.removeEventListener(`discussion-updated`,e)}},[R]);let z=async()=>{if(o!=null)try{await Ape(o),await P(c,o)}catch(e){w(e instanceof Error?e.message:n.saveFailed)}},B=async()=>{if(!h){g(!0),w(null);try{let e=await r.stop();if(!e)throw Error(n.emptyRecording);let t=await T.current;if(!t)throw Error(n.saveFailed);d(await Y6(t.discussion.id,e.lastSequence,e.durationMs)),v(!0),a(!1),(async()=>{try{await Promise.all(E.current);let i=await r.buildFile();if(!i||i.size===0)throw Error(n.emptyRecording);await X6(t.discussion.id,i,e.durationMs,S),await r.discard(e.id),v(!1)}catch(e){await r.markUploadFailed(),v(!1),w(e instanceof Error?e.message:n.saveFailed),a(!0)}})()}catch(e){await r.markUploadFailed(),w(e instanceof Error?e.message:n.saveFailed)}finally{g(!1)}}},V=()=>{u&&e(`/notes/${encodeURIComponent(u.note.id)}`)},H=async()=>{if(u)try{d(await Ppe(u.discussion.id))}catch(e){w(e instanceof Error?e.message:n.saveFailed)}},U=async()=>{let e=r.recoverableDrafts[0];if(!(!e||y)){b(!0),a(!0),w(null),S(0);try{await r.restore(e);let t=await G6();if(t.consentAcknowledgedAt==null)throw Error(n.consent);let i=e.serverDiscussionId?await q6(e.serverDiscussionId).catch(()=>null):null;if(i||=await K6({clientRequestId:e.id,...e.projectId?{contextProjectId:e.projectId}:{},consentPolicyVersion:t.consentPolicyVersion,source:$E()?`electron`:`web`}),T.current=Promise.resolve(i),d(i),await r.setServerDiscussionId(i.discussion.id),[`stopping`,`sealing`,`organizing`,`completed`].includes(i.discussion.status)){if(i.discussion.status===`stopping`&&!i.discussion.audioAttachmentId){let t=await r.buildFile();if(!t||t.size===0)throw Error(n.emptyRecording);await N(e.id,i.discussion.id),await X6(i.discussion.id,t,e.durationMs,S)}await r.discard(e.id);return}if(i.discussion.status!==`recording`)throw Error(i.discussion.failureMessage??n.saveFailed);let a=(await a8(e.id)).reduce((e,t)=>Math.max(e,t.sequence),e.lastSequence),o=Math.max(1e3,e.durationMs);d(await Y6(i.discussion.id,a,o)),await N(e.id,i.discussion.id);let s=await r.buildFile();if(!s||s.size===0)throw Error(n.emptyRecording);await X6(i.discussion.id,s,o,S),await r.discard(e.id)}catch(e){await r.markUploadFailed(),w(e instanceof Error?e.message:n.saveFailed)}finally{b(!1)}}},W=async()=>{let e=r.recoverableDrafts[0];e&&(e.serverDiscussionId&&await Npe(e.serverDiscussionId).catch(()=>void 0),await r.discard(e.id))};if(!i)return _||!r.recoverableDrafts[0]?null:(0,$.jsxs)(`aside`,{className:`fixed bottom-5 right-5 z-[125] w-[min(24rem,calc(100vw-2rem))] rounded-xl border border-edge bg-surface-panel p-4 shadow-elevated`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:n.recoveredTitle}),(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:n.recoveredDescription}),(0,$.jsxs)(`div`,{className:`mt-3 flex justify-end gap-2`,children:[(0,$.jsx)(Zw,{variant:`ghost`,disabled:y,onClick:()=>void W(),children:n.discard}),(0,$.jsx)(Zw,{variant:`primary`,disabled:y,onClick:()=>void U(),children:y?n.recovering:n.recover})]})]});if(o!=null)return(0,$.jsx)(`div`,{className:`fixed inset-0 z-[130] flex items-center justify-center bg-black/45 p-4`,role:`dialog`,"aria-modal":`true`,children:(0,$.jsxs)(`div`,{className:`w-[min(28rem,calc(100vw-2rem))] rounded-xl border border-edge bg-surface-panel p-5 shadow-elevated`,children:[(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h2`,{className:`text-base font-semibold text-fg`,children:n.consentTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:n.consent})]}),(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg p-2 text-fg-muted hover:bg-surface-hover`,onClick:()=>a(!1),children:(0,$.jsx)(Aw,{className:`size-4`,"aria-hidden":!0})})]}),C?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-danger`,children:C}):null,(0,$.jsxs)(Zw,{variant:`primary`,className:`mt-5 w-full`,onClick:()=>void z(),children:[(0,$.jsx)(jv,{className:`size-4`,"aria-hidden":!0}),n.consentAction]})]})});let G=r.phase===`recording`||r.phase===`paused`||r.phase===`requesting_permission`,K=u?.discussion.projectId&&u.discussion.projectInferenceSource!==`context`;return(0,$.jsxs)(`aside`,{className:`fixed bottom-5 right-5 z-[125] flex w-[min(26rem,calc(100vw-2rem))] flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-elevated`,"aria-label":n.title,children:[(0,$.jsxs)(`header`,{className:`flex items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`size-2 shrink-0 rounded-full ${G?`animate-pulse bg-danger`:`bg-accent`}`}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,children:u?.note.title??n.title}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:h?n.finalizing:r.phase===`paused`?n.paused:r.phase===`requesting_permission`?n.requesting:n.recording})]})]}),!G&&!h?(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg p-2 text-fg-muted hover:bg-surface-hover`,"aria-label":n.close,onClick:()=>a(!1),children:(0,$.jsx)(Aw,{className:`size-4`,"aria-hidden":!0})}):null]}),(0,$.jsxs)(`div`,{className:`grid gap-3 px-4 py-4`,children:[(0,$.jsx)(`p`,{className:`font-mono text-3xl tabular-nums text-fg`,children:Jpe(r.elapsedMs)}),(0,$.jsxs)(`section`,{className:`max-h-40 overflow-y-auto rounded-lg border border-edge bg-surface-subtle p-3`,children:[(0,$.jsx)(`p`,{className:`mb-2 text-xs font-medium text-fg-muted`,children:n.liveTranscript}),(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-6 text-fg`,children:f?.text||(r.liveTranscriptionAvailable?n.waitingTranscript:n.liveUnavailable)})]}),K?(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg bg-accent-soft px-3 py-2 text-xs text-accent-fg`,children:[(0,$.jsx)(`span`,{children:n.projectLinked}),(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1 font-medium`,onClick:()=>void H(),children:[(0,$.jsx)(JS,{className:`size-3`,"aria-hidden":!0}),` `,n.undo]})]}):null,h&&x>0?(0,$.jsx)(`div`,{className:`h-1.5 overflow-hidden rounded-full bg-surface-hover`,children:(0,$.jsx)(`div`,{className:`h-full bg-accent transition-[width]`,style:{width:`${x}%`}})}):null,C||r.error?(0,$.jsx)(`p`,{className:`text-sm text-danger`,children:C??r.error}):null]}),(0,$.jsxs)(`footer`,{className:`flex items-center justify-between gap-2 border-t border-edge px-4 py-3`,children:[(0,$.jsx)(`span`,{className:`text-xs text-fg-muted`,children:n.maxDuration}),(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[u?(0,$.jsxs)(Zw,{variant:`ghost`,onClick:V,children:[(0,$.jsx)(Ld,{className:`size-4`,"aria-hidden":!0}),n.openNote]}):null,r.phase===`recording`?(0,$.jsxs)(Zw,{onClick:r.pause,children:[(0,$.jsx)(fy,{className:`size-4`,"aria-hidden":!0}),n.pause]}):null,r.phase===`paused`?(0,$.jsxs)(Zw,{onClick:r.resume,children:[(0,$.jsx)(yy,{className:`size-4`,"aria-hidden":!0}),n.resume]}):null,r.phase===`recording`||r.phase===`paused`?(0,$.jsxs)(Zw,{variant:`primary`,disabled:h,onClick:()=>void B(),children:[(0,$.jsx)(rb,{className:`size-4`,"aria-hidden":!0}),n.stop]}):null]})]})]})}function Xpe(){let e=(0,Q.c)(4),t=F(eme),n,r;e[0]===t?(n=e[1],r=e[2]):(n=()=>pI(t),r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r);let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=[],e[3]=i):i=e[3],(0,Z.useEffect)(Zpe,i)}function Zpe(){let e=$pe,t=Qpe;return window.addEventListener(`online`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`online`,e),document.removeEventListener(`visibilitychange`,t)}}function Qpe(){document.visibilityState===`visible`&&gI()}function $pe(){return gI()}function eme(e){return e.token}function u8(){let e=(0,Q.c)(3);Xpe();let{mutate:t}=be(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=nme,n=e=>{let n=e.detail?.topic;(n===`gateway`||n===`sessions`)&&t(tme)};return window.addEventListener(`config-reload`,e),window.addEventListener(`realtime-gap`,n),()=>{window.removeEventListener(`config-reload`,e),window.removeEventListener(`realtime-gap`,n)}},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function tme(){return!0}function nme(e){let t=Ee(e.detail);t===`skills`?lfe():t===`agents`&&$3()}function rme(e){if(!e||typeof e!=`object`)return null;let t=e;return t.schemaVersion!==1||typeof t.runId!=`string`||!t.runId||typeof t.sessionKey!=`string`||!t.sessionKey||t.status!==`success`&&t.status!==`error`&&t.status!==`cancelled`||typeof t.completedAtMs!=`number`||!Number.isFinite(t.completedAtMs)||typeof t.route!=`string`||!t.route.startsWith(`/chat/`)||t.source!==`webchat`?null:t}function ime(e,t){if(e.status===`cancelled`)return null;let n=j(t).chat,r=e.sessionTitle?.trim();return{id:`agent-run:${e.runId}`,title:e.status===`success`?n.backgroundRunCompletedTitle:n.backgroundRunFailedTitle,body:r||n.backgroundRunCompletedDescription,route:e.route,status:e.status}}var d8=`xopc.browser-notifications.v1`,f8={enabled:!1,completed:!0,failed:!0};function p8(){try{let e=JSON.parse(localStorage.getItem(d8)??`{}`);return{enabled:typeof e.enabled==`boolean`?e.enabled:f8.enabled,completed:typeof e.completed==`boolean`?e.completed:f8.completed,failed:typeof e.failed==`boolean`?e.failed:f8.failed}}catch{return{...f8}}}function ame(e){let t={...p8(),...e};try{localStorage.setItem(d8,JSON.stringify(t))}catch{}return t}var m8=`xopc.notification-delivery.v1`,ome=200;function h8(){try{let e=JSON.parse(localStorage.getItem(m8)??`[]`);return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}catch{return[]}}function g8(e){return h8().includes(e)}function _8(e){try{let t=[e,...h8().filter(t=>t!==e)].slice(0,ome);localStorage.setItem(m8,JSON.stringify(t))}catch{}}function v8(e){return e.preferences.enabled?e.notification.status===`success`&&!e.preferences.completed||e.notification.status===`error`&&!e.preferences.failed?{notify:!1,reason:`status-disabled`}:e.permissionGranted?e.appFocused?{notify:!1,reason:`focused`}:e.alreadyDelivered?{notify:!1,reason:`duplicate`}:{notify:!0}:{notify:!1,reason:`permission`}:{notify:!1,reason:`disabled`}}function y8(){return!$E()&&typeof Notification<`u`&&`serviceWorker`in navigator&&window.isSecureContext}async function b8(){let e=await navigator.serviceWorker.register(`/notification-sw.js`);return await navigator.serviceWorker.ready,e}async function sme(e){if(!y8()||!v8({notification:e,preferences:p8(),permissionGranted:Notification.permission===`granted`,appFocused:document.visibilityState===`visible`&&document.hasFocus(),alreadyDelivered:g8(e.id)}).notify)return!1;try{return await(await b8()).showNotification(e.title,{body:e.body,tag:e.id,icon:`/pwa-192x192.png`,data:{route:e.route}}),_8(e.id),!0}catch{return!1}}async function cme(){if(!y8())return`unsupported`;let e=Notification.permission==="default"?await Notification.requestPermission():Notification.permission;return e===`granted`&&await b8(),e}async function lme(e,t){if(!y8()||Notification.permission!==`granted`)return!1;try{return await(await b8()).showNotification(e,{body:t,tag:`xopc-notification-test`,icon:`/pwa-192x192.png`,data:{route:`/chat/new`}}),!0}catch{return!1}}async function ume(e){let t=window.electronAPI?.system;if(!$E()||!t?.showAgentRunNotification)return!1;let n=await t.getBehavior().catch(()=>null);if(!n||!v8({notification:e,preferences:{enabled:n.notifyEnabled,completed:!0,failed:!0},permissionGranted:!0,appFocused:!1,alreadyDelivered:g8(e.id)}).notify)return!1;let r=await t.showAgentRunNotification({id:e.id,title:e.title,body:e.body,route:e.route}).catch(()=>null);return r?.ok&&r.outcome===`shown`?(_8(e.id),!0):!1}function x8(){let e=(0,Q.c)(3),t=I(fme),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=e=>{let n=rme(e.detail);if(!n)return;let r=ime(n,t);r&&(De({tone:r.status===`success`?`success`:`error`,title:r.title,message:r.body,source:`chat`,href:r.route,dedupeKey:r.id}),ume(r),sme(r))};window.addEventListener(`agent-run-ended`,e);let n=dme;return navigator.serviceWorker?.addEventListener(`message`,n),()=>{window.removeEventListener(`agent-run-ended`,e),navigator.serviceWorker?.removeEventListener(`message`,n)}},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function dme(e){let t=e.data;t?.type!==`xopc:notification-click`||typeof t.route!=`string`||t.route.startsWith(`/chat/`)&&(window.location.hash=t.route)}function fme(e){return e.language}var pme=120*1e3,S8=new Map;function mme(){return typeof globalThis.crypto?.randomUUID==`function`?globalThis.crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function hme(e){for(let[t,n]of S8)n.expiresAt<=e&&S8.delete(t)}function gme(e,t=Date.now()){hme(t);let n=mme();return S8.set(n,{file:e,expiresAt:t+pme}),n}function _me(e,t=Date.now()){let n=S8.get(e);return S8.delete(e),!n||n.expiresAt<=t?null:n.file}var vme=new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`,timeStyle:`short`}),yme=new Intl.DateTimeFormat(`en`,{dateStyle:`medium`,timeStyle:`short`});function bme(e,t){return(t===`zh`?vme:yme).format(new Date(e))}function C8(e){let t=(0,Q.c)(9),{icon:n,label:r,disabled:i,onClick:a}=e,o;t[0]===n?o=t[1]:(o=(0,$.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center text-fg-muted`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==i||t[5]!==a||t[6]!==o||t[7]!==s?(c=(0,$.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`flex h-9 w-full min-w-0 items-center gap-2.5 rounded-md px-2.5 text-left text-sm text-fg hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:cursor-not-allowed disabled:opacity-40`,disabled:i,onClick:a,children:[o,s]}),t[4]=i,t[5]=a,t[6]=o,t[7]=s,t[8]=c):c=t[8],c}function w8({filePath:e,onClose:t,targetLine:n,projectId:r,sessionKey:i,agentId:a}){let o=I(e=>e.language),s=j(o),c=m(),l=W(e=>e.resolved),u=LG({filePath:e,projectId:r,sessionKey:i,agentId:a}),d=bG(u.descriptor),{dialogOpen:f,loading:p,result:h,error:g,pendingParams:_,createShareLink:v,confirmShareLink:y,handleOpenChange:b}=$K(),[x,w]=(0,Z.useState)(!1),[T,E]=(0,Z.useState)(!1),[D,O]=(0,Z.useState)(!1),[A,M]=(0,Z.useState)(!1),[N,P]=(0,Z.useState)(!1),F=e?nB(e):``,L=e?rB(e):``,R=F===`.md`,z=F===`.html`||F===`.htm`,B=$E(),V=d.plugin.capabilities.some(e=>[`zoom`,`search`,`rotate`,`pageNavigation`].includes(e));(0,Z.useEffect)(()=>{if(!A)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),M(!1))};return window.addEventListener(`keydown`,t,!0),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t,!0)}},[A]),(0,Z.useEffect)(()=>{if(!T)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),E(!1))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[T]);let H=(0,Z.useCallback)(async()=>{if(e){if(await k(B&&u.hostAbsolutePath?u.hostAbsolutePath:e)){w(!0),IR(`success`,s.workspace.pathCopied,void 0,{duration:2500}),window.setTimeout(()=>w(!1),2e3);return}IR(`warning`,s.clipboard.copyFailed,void 0,{duration:4e3})}},[B,e,s.clipboard.copyFailed,s.workspace.pathCopied,u.hostAbsolutePath]),U=(0,Z.useCallback)(()=>{!e||r||v({path:e,...i==null?a?.trim()?{agentId:a.trim()}:{}:{sessionKey:i}})},[a,v,e,r,i]),G=(0,Z.useCallback)(()=>{M(!1),t()},[t]),K=(0,Z.useCallback)(async()=>{if(!(!e||N)){P(!0);try{let[e,t]=await Promise.all([u.createAttachmentFile(),i?CR(i).catch(()=>null):Promise.resolve(null)]);if(e.size>33554432){IR(`warning`,s.chat.attachmentFileTooLarge,{name:e.name,maxSize:mP(hF)});return}let n=gme(e),o=new URLSearchParams({attachmentHandoff:n}),l=r?.trim()||t?.projectId?.trim(),d=a?.trim()||t?.routing?.agentId?.trim();l&&o.set(`projectId`,l),c({pathname:`/chat/new`,search:`?${o.toString()}`},{state:{forceNewChat:!0,agentId:d||void 0}}),G()}catch{IR(`error`,s.workspace.editInNewChatFailed)}finally{P(!1)}}},[a,N,e,G,s.chat.attachmentFileTooLarge,s.workspace.editInNewChatFailed,c,r,i,u]),ee=!!(e&&!u.loading&&!u.loadError),q={onDownload:()=>void u.onDownload(),canDownload:u.canDownload,onOpenWithSystemApp:()=>void u.onOpenWithSystemApp(),canOpenWithSystemApp:u.canOpenWithSystemApp,onChooseOpenWithApp:()=>void u.onChooseOpenWithApp(),canChooseOpenWithApp:u.canChooseOpenWithApp};if(!e)return null;let te=(0,$.jsxs)(`div`,{className:C(`flex h-full min-h-0 flex-col bg-surface-panel`,A&&`fixed inset-0 z-[65] h-[100dvh] w-screen`),children:[(0,$.jsxs)(`div`,{className:C(`shrink-0 border-b border-edge px-3 py-2 dark:border-edge sm:px-4`,Je),children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 py-0.5`,children:[(0,$.jsx)(`h2`,{className:`truncate text-base font-semibold leading-tight tracking-tight text-fg`,title:L,children:L}),(0,$.jsxs)(`div`,{className:`mt-0.5 flex min-w-0 items-center gap-2 text-xs leading-tight text-fg-muted`,children:[!u.loading&&u.mtimeMs!=null?(0,$.jsxs)(`p`,{suppressHydrationWarning:!0,className:`min-w-0 truncate`,title:new Date(u.mtimeMs).toISOString(),children:[s.workspace.lastModified,`: `,bme(u.mtimeMs,o),n?` · Line ${n}`:``]}):null,u.loading?(0,$.jsx)(Zg,{className:`size-3.5 shrink-0 animate-spin`,"aria-hidden":!0}):null,(R||z&&u.htmlCodeMode)&&u.saveStatus!==`idle`?(0,$.jsx)(`span`,{className:C(`shrink-0`,u.saveStatus===`error`&&`text-red-600 dark:text-red-400`),children:u.saveStatus===`saving`?s.workspace.saving:u.saveStatus===`error`?s.workspace.saveFailed:s.workspace.saved}):null]})]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[R?(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,u.markdownEditMode&&`bg-surface-active text-fg`,aT.focusRingPanel),title:u.markdownEditMode?s.workspace.preview:s.workspace.edit,"aria-label":u.markdownEditMode?s.workspace.preview:s.workspace.edit,"aria-pressed":u.markdownEditMode,onClick:()=>u.setMarkdownEditMode(e=>!e),children:u.markdownEditMode?(0,$.jsx)(Bu,{className:`size-4`}):(0,$.jsx)(hy,{className:`size-4`})}):z?(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,u.htmlCodeMode&&`bg-surface-active text-fg`,aT.focusRingPanel),title:u.htmlCodeMode?s.workspace.preview:s.workspace.edit,"aria-label":u.htmlCodeMode?s.workspace.preview:s.workspace.edit,"aria-pressed":u.htmlCodeMode,onClick:()=>u.setHtmlCodeMode(e=>!e),children:u.htmlCodeMode?(0,$.jsx)(Bu,{className:`size-4`}):(0,$.jsx)(hy,{className:`size-4`})}):null,R&&u.markdownEditMode?(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,D&&`bg-surface-hover text-fg`,aT.focusRingPanel),title:`${s.workspace.wordWrap} (Option+Z)`,"aria-label":s.workspace.wordWrap,"aria-pressed":D,onClick:()=>O(e=>!e),children:(0,$.jsx)(Ox,{className:`size-4`})}):null,ee?(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,A&&`bg-surface-active text-fg`,aT.focusRingPanel),title:A?s.workspace.collapsePreview:s.workspace.expandPreview,"aria-label":A?s.workspace.collapsePreview:s.workspace.expandPreview,"aria-pressed":A,onClick:()=>M(e=>!e),children:A?(0,$.jsx)(Rv,{className:`size-4`,strokeWidth:1.75}):(0,$.jsx)(W_,{className:`size-4`,strokeWidth:1.75})}):null,(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,aT.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-40`),title:s.workspace.editInNewChat,"aria-label":s.workspace.editInNewChat,disabled:u.loading||!!u.loadError||u.saveStatus===`saving`||N,onClick:()=>void K(),children:N?(0,$.jsx)(Zg,{className:`size-4 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(vv,{className:`size-4`,"aria-hidden":!0})}),r?null:(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,aT.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-40`),title:s.workspace.shareLink,"aria-label":s.workspace.shareLink,onClick:U,disabled:p,children:p?(0,$.jsx)(Zg,{className:`size-4 animate-spin`}):(0,$.jsx)(Og,{className:`size-4`})}),(0,$.jsxs)(`div`,{className:`relative shrink-0`,children:[T?(0,$.jsx)(`button`,{type:`button`,className:`fixed inset-0 z-40 cursor-default bg-transparent`,"aria-hidden":!0,tabIndex:-1,onPointerDown:e=>{e.preventDefault(),E(!1)}}):null,(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,aT.focusRingPanel),title:s.workspace.moreActions,"aria-label":s.workspace.moreActions,"aria-haspopup":`menu`,"aria-expanded":T,onClick:()=>E(e=>!e),children:(0,$.jsx)(Du,{className:`size-4`})}),T?(0,$.jsxs)(`div`,{role:`menu`,className:`absolute right-0 top-full z-50 mt-1 w-60 rounded-lg border border-edge bg-surface-panel p-1 shadow-popover`,children:[u.canOpenWithSystemApp?(0,$.jsx)(C8,{icon:(0,$.jsx)(Iu,{className:`size-4`}),label:s.workspace.openSystemApp,onClick:()=>{E(!1),u.onOpenWithSystemApp()}}):null,u.canChooseOpenWithApp?(0,$.jsx)(C8,{icon:(0,$.jsx)(Du,{className:`size-4`}),label:s.workspace.chooseApp,onClick:()=>{E(!1),u.onChooseOpenWithApp()}}):null,u.recommendedOpenWithApps.length>0?(0,$.jsxs)(`div`,{className:`mt-1 border-t border-edge-subtle pt-1 dark:border-edge`,children:[(0,$.jsx)(`p`,{className:`px-3 pb-1 pt-0.5 text-[11px] font-medium uppercase tracking-normal text-fg-subtle`,children:s.workspace.recommendedApps}),u.recommendedOpenWithApps.map(e=>(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:`flex h-9 w-full min-w-0 items-center rounded-md px-2.5 text-left text-sm text-fg hover:bg-surface-hover`,title:e.path,onClick:()=>{E(!1),u.onOpenWithRecentApp(e.path)},children:(0,$.jsx)(`span`,{className:`block truncate`,children:e.name})},e.path))]}):null,u.recentOpenWithApps.length>0?(0,$.jsxs)(`div`,{className:`mt-1 border-t border-edge-subtle pt-1 dark:border-edge`,children:[(0,$.jsx)(`p`,{className:`px-3 pb-1 pt-0.5 text-[11px] font-medium uppercase tracking-normal text-fg-subtle`,children:s.workspace.recentApps}),u.recentOpenWithApps.map(e=>(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:`flex h-9 w-full min-w-0 items-center rounded-md px-2.5 text-left text-sm text-fg hover:bg-surface-hover`,title:e.path,onClick:()=>{E(!1),u.onOpenWithRecentApp(e.path)},children:(0,$.jsx)(`span`,{className:`block truncate`,children:e.name})},e.path))]}):null,u.canRevealInFolder?(0,$.jsx)(C8,{icon:(0,$.jsx)(zf,{className:`size-4`}),label:s.workspace.revealInFolder,onClick:()=>{E(!1),u.onRevealInFolder()}}):null,(0,$.jsx)(`div`,{className:`my-1 border-t border-edge-subtle dark:border-edge`}),(0,$.jsx)(C8,{icon:(0,$.jsx)(ou,{className:`size-4`}),label:B?s.workspace.saveCopy:s.workspace.download,disabled:!u.canDownload,onClick:()=>{E(!1),u.onDownload()}}),(0,$.jsx)(C8,{icon:x?(0,$.jsx)(S,{className:`size-4 text-emerald-500`}):(0,$.jsx)(tl,{className:`size-4`}),label:x?s.workspace.pathCopied:B?s.workspace.copyFilePath:s.workspace.copyWorkspacePath,onClick:()=>{E(!1),H()}})]}):null]}),(0,$.jsx)(`div`,{className:`mx-0.5 h-5 w-px bg-edge-subtle`,"aria-hidden":!0}),(0,$.jsx)(`button`,{type:`button`,className:`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,title:s.workspace.close,"aria-label":s.workspace.close,onClick:G,children:(0,$.jsx)(Aw,{className:`size-4`,strokeWidth:1.75})})]})]}),V?(0,$.jsx)(`div`,{className:`mt-2 overflow-x-auto pb-0.5`,children:(0,$.jsx)(wG,{controller:d,actions:q,showDownload:!1})}):null]}),(0,$.jsx)(TG,{language:o,resolvedTheme:l,descriptor:u.descriptor,loading:u.loading,loadError:u.loadError,textContent:u.textContent,binaryBuffer:u.binaryBuffer,hostAbsolutePath:u.hostAbsolutePath,mtimeMs:u.mtimeMs,targetLine:n,extractedText:u.extractedText,extractedTextTruncated:u.extractedTextTruncated,workspaceEditing:{markdownEditMode:u.markdownEditMode,onSaveMarkdown:u.onSaveMarkdown,markdownWordWrap:D,onToggleMarkdownWordWrap:()=>O(e=>!e),htmlCodeMode:u.htmlCodeMode,onHtmlChange:u.onHtmlChange,isDark:l===`dark`},actions:q,controller:d,renderToolbar:()=>null})]});return(0,$.jsxs)($.Fragment,{children:[A?(0,We.createPortal)(te,document.body):te,(0,$.jsx)(KK,{open:f,onOpenChange:b,loading:p,error:g,result:h,pendingParams:_,onConfirm:e=>void y(e)})]})}var xme=(0,Z.memo)(function(){let e=(0,Q.c)(22),{pathname:t}=u(),{sessionKey:n}=d(),r;e[0]!==t||e[1]!==n?(r=t.startsWith(`/chat`)&&n?decodeURIComponent(n):void 0,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i=r,a=pq(Sme),o=pq(Cme),s=pq(wme),c=pq(Tme),l=iq(Eme),f,p;e[3]!==t||e[4]!==c?(f=()=>{t.startsWith(`/chat`)||c(null)},p=[t,c],e[3]=t,e[4]=c,e[5]=f,e[6]=p):(f=e[5],p=e[6]),(0,Z.useEffect)(f,p);let m,h;if(e[7]!==a||e[8]!==c?(m=()=>{if(!a)return;let e=e=>{e.key===`Escape`&&(c(null),e.stopPropagation())};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},h=[a,c],e[7]=a,e[8]=c,e[9]=m,e[10]=h):(m=e[9],h=e[10]),(0,Z.useEffect)(m,h),!a)return null;let g=s??void 0,_;e[11]===l?_=e[12]:(_=l.trim()||void 0,e[11]=l,e[12]=_);let v;e[13]===c?v=e[14]:(v=()=>c(null),e[13]=c,e[14]=v);let y;return e[15]!==i||e[16]!==o||e[17]!==a||e[18]!==g||e[19]!==_||e[20]!==v?(y=(0,$.jsx)(`div`,{role:`region`,"aria-label":`File preview`,className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden border border-edge bg-surface-panel dark:border-edge`,children:(0,$.jsx)(w8,{filePath:a,targetLine:o,projectId:g,sessionKey:i,agentId:_,onClose:v})}),e[15]=i,e[16]=o,e[17]=a,e[18]=g,e[19]=_,e[20]=v,e[21]=y):y=e[21],y});function Sme(e){return e.path}function Cme(e){return e.line}function wme(e){return e.projectId}function Tme(e){return e.setPath}function Eme(e){return e.agentId}function Dme(e,t,n,r=12){let i=Math.max(r,n.width-t.width-r),a=Math.max(r,n.height-t.height-r);return{x:Math.min(i,Math.max(r,e.x)),y:Math.min(a,Math.max(r,e.y))}}function T8(e){return!Number.isFinite(e)||e<0?`0:00`:`${Math.floor(e/60)}:${String(Math.floor(e%60)).padStart(2,`0`)}`}function Ome(){let e=(0,Q.c)(26),t=I(Ame),n=T0(),r=t===`zh`,i=n.source&&n.status!==`idle`,a=n.duration>0?Math.min(100,n.currentTime/n.duration*100):0,o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[.75,1,1.25,1.5,2],e[0]=o):o=e[0];let s=o,c=s[(s.indexOf(n.rate)+1)%s.length]??1,l=(0,Z.useRef)(null),u=(0,Z.useRef)(null),[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(!1),h=kme,g;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{if(e.button!==0||!(e.target instanceof Element)||e.target.closest(`button, a, input, select, textarea, [role="button"]`))return;let t=l.current;if(!t)return;let n=t.getBoundingClientRect();u.current={pointerId:e.pointerId,offsetX:e.clientX-n.left,offsetY:e.clientY-n.top,width:n.width,height:n.height},f(h({x:n.left,y:n.top},n.width,n.height)),m(!0),t.setPointerCapture(e.pointerId),e.preventDefault()},e[1]=g):g=e[1];let _=g,v;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(v=e=>{let t=u.current;!t||t.pointerId!==e.pointerId||f(h({x:e.clientX-t.offsetX,y:e.clientY-t.offsetY},t.width,t.height))},e[2]=v):v=e[2];let y=v,b;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(b=e=>{let t=u.current;!t||t.pointerId!==e.pointerId||(u.current=null,m(!1),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},e[3]=b):b=e[3];let x=b,S,w;e[4]===i?(S=e[5],w=e[6]):(S=()=>{if(!i)return;let e=()=>{let e=l.current?.getBoundingClientRect();e&&f(t=>t&&h(t,e.width,e.height))};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},w=[h,i],e[4]=i,e[5]=S,e[6]=w),(0,Z.useEffect)(S,w);let T;e[7]!==p||e[8]!==c||e[9]!==d||e[10]!==a||e[11]!==n||e[12]!==i||e[13]!==r?(T=i?(0,$.jsx)(`div`,{className:`pointer-events-none fixed inset-0 z-50`,children:(0,$.jsxs)(`div`,{ref:l,className:C(`pointer-events-auto isolate absolute flex w-[min(20rem,calc(100%-1.5rem))] touch-none items-center gap-2 rounded-xl border border-edge-strong bg-surface-panel p-2.5 shadow-popover`,!d&&`bottom-3 left-1/2 -translate-x-1/2 sm:bottom-5`,p?`cursor-grabbing select-none`:`cursor-grab`),style:d?{left:d.x,top:d.y}:void 0,onPointerDown:_,onPointerMove:y,onPointerUp:x,onPointerCancel:x,children:[(0,$.jsx)(`div`,{className:`flex shrink-0 items-center self-stretch text-fg-subtle`,title:r?`拖动可移动播放器`:`Drag to move the player`,children:(0,$.jsx)(om,{className:`size-4`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,onClick:n.status===`playing`?n.pause:n.resume,disabled:n.status===`preparing`,className:`inline-flex size-9 shrink-0 items-center justify-center rounded-full bg-accent text-white transition-transform active:scale-95 disabled:opacity-70`,"aria-label":n.status===`playing`?r?`暂停朗读`:`Pause reading`:r?`继续朗读`:`Resume reading`,children:n.status===`preparing`?(0,$.jsx)(Zg,{className:`size-4 animate-spin`,"aria-hidden":!0}):n.status===`playing`?(0,$.jsx)(fy,{className:`size-4`,"aria-hidden":!0}):(0,$.jsx)(yy,{className:`ml-0.5 size-4`,"aria-hidden":!0})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(BC,{className:`size-3.5 shrink-0 text-accent`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate text-xs font-medium text-fg`,children:n.source?.title}),(0,$.jsxs)(`span`,{className:`shrink-0 text-[10px] text-fg-subtle`,children:[n.currentChunkIndex+1,`/`,n.chunkCount]})]}),(0,$.jsx)(`div`,{className:`mt-1.5 h-1 overflow-hidden rounded-full bg-surface-active`,children:(0,$.jsx)(`div`,{className:C(`h-full rounded-full bg-accent transition-[width] duration-200`,n.status===`preparing`&&`animate-pulse`),style:{width:`${a}%`}})}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between text-[10px] tabular-nums text-fg-subtle`,children:[(0,$.jsx)(`span`,{children:n.error??`${T8(n.currentTime)} / ${n.duration?T8(n.duration):`—`}`}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>n.setRate(c),className:`rounded px-1 py-0.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":r?`切换播放速度`:`Change playback speed`,children:[n.rate,`×`]})]})]}),(0,$.jsx)(`button`,{type:`button`,onClick:n.stop,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":r?`停止朗读`:`Stop reading`,children:(0,$.jsx)(Aw,{className:`size-4`,"aria-hidden":!0})})]})}):null,e[7]=p,e[8]=c,e[9]=d,e[10]=a,e[11]=n,e[12]=i,e[13]=r,e[14]=T):T=e[14];let E=r?`使用在线朗读`:`Use online read aloud`,D=r?`朗读默认使用 Microsoft Edge 在线语音服务,待朗读文本会发送至 Microsoft 进行语音合成。`:`Read aloud uses Microsoft Edge online speech by default. The text will be sent to Microsoft for speech synthesis.`,O=r?`同意并朗读`:`Agree and read`,k=r?`取消`:`Cancel`,A;e[15]!==n.acceptConsent||e[16]!==n.consentRequired||e[17]!==n.declineConsent||e[18]!==k||e[19]!==E||e[20]!==D||e[21]!==O?(A=(0,$.jsx)(k1,{open:n.consentRequired,title:E,description:D,confirmLabel:O,cancelLabel:k,onConfirm:n.acceptConsent,onCancel:n.declineConsent}),e[15]=n.acceptConsent,e[16]=n.consentRequired,e[17]=n.declineConsent,e[18]=k,e[19]=E,e[20]=D,e[21]=O,e[22]=A):A=e[22];let j;return e[23]!==A||e[24]!==T?(j=(0,$.jsxs)($.Fragment,{children:[T,A]}),e[23]=A,e[24]=T,e[25]=j):j=e[25],j}function kme(e,t,n){return Dme(e,{width:t,height:n},{width:window.innerWidth,height:window.innerHeight})}function Ame(e){return e.language}function jme(){let e=(0,Q.c)(11),t=m(),n=F(Nme),r=R6(Mme),i=(0,Z.useRef)(!1),a=(0,Z.useRef)(!1),o,s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{let e=e=>{i.current=!!e.detail?.active};return window.addEventListener(E6,e),()=>window.removeEventListener(E6,e)},s=[],e[0]=o,e[1]=s):(o=e[0],s=e[1]),(0,Z.useEffect)(o,s);let c,l;e[2]!==t||e[3]!==n?(c=()=>{let e=window.electronAPI?.voiceInputHotkey;if(typeof e?.onEvent!=`function`)return;let r=e.onEvent(e=>{if(e===`press`){if(i.current||!n)return;a.current=!0}else{if(!a.current)return;a.current=!1}O6(`xopc-voice-input-toggle`,document.querySelector(`[data-voice-input-scope="note"]`)?`note`:`chat`)||(e===`press`?(k6(),t(`/chat`)):Xfe())});return()=>{a.current=!1,r()}},l=[t,n],e[2]=t,e[3]=n,e[4]=c,e[5]=l):(c=e[4],l=e[5]),(0,Z.useEffect)(c,l);let u,d;return e[6]!==t||e[7]!==r||e[8]!==n?(u=()=>{let e=e=>{if(i.current||e.repeat||e.isComposing)return;let a=document.querySelector(`[data-voice-input-scope="note"]`)?`note`:`chat`;if(e.key===`Escape`){O6(`xopc-voice-input-cancel`,a)&&(e.preventDefault(),e.stopPropagation());return}I6(e,r)&&(e.preventDefault(),e.stopPropagation(),n&&(O6(`xopc-voice-input-toggle`,a)||(k6(),t(`/chat`))))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},d=[t,r,n],e[6]=t,e[7]=r,e[8]=n,e[9]=u,e[10]=d):(u=e[9],d=e[10]),(0,Z.useEffect)(u,d),null}function Mme(e){return e.shortcut}function Nme(e){return e.token}var E8=`task`;function D8(e,t){let[n,r=``]=e.split(`?`),i=new URLSearchParams(r);return i.set(E8,t),`${n}?${i.toString()}`}function Pme(e,t){let n=/^\/tasks\/([^/?#]+)/.exec(t);if(!n)return t;try{return D8(e,decodeURIComponent(n[1]))}catch{return D8(e,n[1])}}function Fme(e,t){let n=new URLSearchParams(t);n.delete(E8);let r=n.toString();return r?`${e}?${r}`:e}async function O8(){let e=await Ue(z(`/api/models`));if(!e.ok)throw Error(`Models: HTTP ${e.status}`);return(await e.json()).payload?.models??[]}var k8=null,A8=0,j8=null,M8=6e4,N8=`gateway-configured-models`;async function P8(){k8=null,A8=0;let{mutate:e}=await c(async()=>{let{mutate:e}=await import(`./vendor-swr-BIWyz7Rc.js`).then(e=>e.r);return{mutate:e}},__vite__mapDeps([5,1,2]));await e(N8)}async function F8(e=!1){if(!e&&k8&&Date.now()<A8)return k8;if(e){let e=await O8();return k8=e,A8=Date.now()+M8,e}return j8||(j8=O8().then(e=>(k8=e,A8=Date.now()+M8,e)).finally(()=>{j8=null}),j8)}var I8=`inline-flex items-center gap-px rounded-pill border border-edge bg-surface-hover p-1 dark:border-edge`,L8=`inline-flex shrink-0 items-center justify-center rounded-pill text-xs font-medium leading-none transition-[color,background-color,box-shadow] duration-150 ease-out text-fg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel active:scale-100`,R8=`bg-surface-panel shadow-sm dark:bg-surface-panel dark:shadow-sm dark:ring-1 dark:ring-edge-strong/40`,Ime=[{value:`en`,label:`EN`},{value:`zh`,label:`中文`}];function Lme(e){let t=(0,Q.c)(5),{value:n,onChange:r}=e,i;t[0]!==r||t[1]!==n?(i=Ime.map(e=>{let t=e.value===n;return(0,$.jsx)(`button`,{type:`button`,"aria-pressed":t,className:C(L8,`h-9 min-w-11 px-2`,t?C(R8,`text-fg`):`text-fg-subtle hover:text-fg`),onClick:()=>r(e.value),children:e.label},e.value)}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let a;return t[3]===i?a=t[4]:(a=(0,$.jsx)(`div`,{className:I8,role:`group`,"aria-label":`Language / 语言`,children:i}),t[3]=i,t[4]=a),a}var Rme=new Set([`anthropic`,`deepseek`,`google`,`kimi-coding`,`minimax`,`openai`,`xopc-cloud`]);function zme(e){return Rme.has(e)}function z8(e){let t=(0,Q.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=C(`shrink-0`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,$.jsx)(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function Bme(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`#5786FE`,d:`M23.748 4.651c-.254-.124-.364.113-.512.233-.051.04-.094.09-.137.137-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.155-.708-.311-.955-.65-.172-.24-.219-.509-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.094.172.187.129.323-.082.28-.18.553-.266.833-.055.179-.137.218-.328.14a5.5 5.5 0 0 1-1.737-1.179c-.857-.828-1.631-1.743-2.597-2.46a12 12 0 0 0-.689-.47c-.985-.957.13-1.743.387-1.836.27-.098.094-.433-.778-.428-.872.003-1.67.295-2.687.685a3 3 0 0 1-.465.136 9.6 9.6 0 0 0-2.883-.101c-1.885.21-3.39 1.1-4.497 2.622C.082 8.776-.231 10.854.152 13.02c.403 2.284 1.568 4.175 3.36 5.653 1.857 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.132-.284 4.994-1.86.47.234.962.328 1.78.398.629.058 1.235-.031 1.705-.129.735-.155.684-.836.418-.961-2.155-1.004-1.682-.595-2.112-.926 1.095-1.295 2.768-3.598 3.284-6.733.05-.346.115-.834.108-1.114-.004-.171.035-.238.23-.257a4.2 4.2 0 0 0 1.545-.475c1.397-.763 1.96-2.016 2.093-3.517.02-.23-.004-.467-.247-.588M11.58 18.168c-2.088-1.642-3.101-2.183-3.52-2.16-.39.024-.32.472-.234.763.09.288.207.487.371.74.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.168-1.361-.801-2.5-1.86-3.301-3.306-.775-1.393-1.225-2.888-1.299-4.482-.02-.385.094-.522.477-.592a4.7 4.7 0 0 1 1.53-.038c2.131.311 3.946 1.264 5.467 2.774.868.86 1.525 1.887 2.202 2.89.72 1.066 1.494 2.082 2.48 2.915.348.291.626.513.892.677-.802.09-2.14.109-3.055-.615zm1.001-6.44a.306.306 0 0 1 .415-.287.3.3 0 0 1 .113.074.3.3 0 0 1 .086.214c0 .17-.136.307-.308.307a.303.303 0 0 1-.306-.307m3.11 1.596c-.2.081-.4.151-.591.16a1.25 1.25 0 0 1-.798-.254c-.274-.23-.47-.358-.551-.758a1.7 1.7 0 0 1 .015-.588c.07-.327-.007-.537-.238-.727-.188-.156-.426-.199-.689-.199a.6.6 0 0 1-.254-.078.253.253 0 0 1-.114-.358 1 1 0 0 1 .192-.21c.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.392.451.462.576.685.915.176.264.336.536.446.848.066.194-.02.353-.25.45`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)(z8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function Vme(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`#E73562`,d:`M11.43 3.92a.86.86 0 1 0-1.718 0v14.236a1.999 1.999 0 0 1-3.997 0V9.022a.86.86 0 1 0-1.718 0v3.87a1.999 1.999 0 0 1-3.997 0V11.49a.57.57 0 0 1 1.139 0v1.404a.86.86 0 0 0 1.719 0V9.022a1.999 1.999 0 0 1 3.997 0v9.134a.86.86 0 0 0 1.719 0V3.92a1.998 1.998 0 1 1 3.996 0v11.788a.57.57 0 1 1-1.139 0zm10.572 3.105a2 2 0 0 0-1.999 1.997v7.63a.86.86 0 0 1-1.718 0V3.923a1.999 1.999 0 0 0-3.997 0v16.16a.86.86 0 0 1-1.719 0V18.08a.57.57 0 1 0-1.138 0v2a1.998 1.998 0 0 0 3.996 0V3.92a.86.86 0 0 1 1.719 0v12.73a1.999 1.999 0 0 0 3.996 0V9.023a.86.86 0 1 1 1.72 0v6.686a.57.57 0 0 0 1.138 0V9.022a2 2 0 0 0-1.998-1.997`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)(z8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function B8(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`currentColor`,d:`m1.053 16.91 9.538 2.55a21 20.981 0 0 0 .06 2.031l5.956 1.592a12 11.99 0 0 1-15.554-6.172m-1.02-5.79 11.352 3.035a21 20.981 0 0 0-.469 2.01l10.817 2.89a12 11.99 0 0 1-1.845 2.004L.658 15.918a12 11.99 0 0 1-.625-4.796m1.593-5.146L13.573 9.17a21 20.981 0 0 0-1.01 1.874l11.297 3.02a21 20.981 0 0 1-.67 2.362l-11.55-3.087L.125 10.26a12 11.99 0 0 1 1.499-4.285ZM6.067 1.58l11.285 3.016a21 20.981 0 0 0-1.688 1.719l7.824 2.091a21 20.981 0 0 1 .513 2.664L2.107 5.218a12 11.99 0 0 1 3.96-3.638M21.68 4.866 7.222 1.003A12 11.99 0 0 1 21.68 4.866`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)(z8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function Hme(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`currentColor`,d:`M22.28 9.82a5.98 5.98 0 0 0-.516-4.91 6.04 6.04 0 0 0-6.51-2.9A6.06 6.06 0 0 0 4.98 4.18a5.98 5.98 0 0 0-3.99 2.9 6.04 6.04 0 0 0 .743 7.09 5.98 5.98 0 0 0 .511 4.91 6.05 6.05 0 0 0 6.51 2.9A5.98 5.98 0 0 0 13.26 24a6.05 6.05 0 0 0 5.77-4.20 5.98 5.98 0 0 0 3.99-2.9 6.05 6.05 0 0 0-.748-7.07zm-9.02 12.60a4.47 4.47 0 0 1-2.87-1.04l.142-.08 4.77-2.75a.795.79 0 0 0 .393-.681v-6.73l2.02 1.16a.071.07 0 0 1 .038.05v5.58a4.50 4.50 0 0 1-4.49 4.49zm-9.66-4.12a4.47 4.47 0 0 1-.535-3.01l.142.08 4.78 2.75a.771.77 0 0 0 .781 0l5.84-3.36v2.33a.08.08 0 0 1-.033.06L9.74 19.95a4.49 4.49 0 0 1-6.14-1.64zM2.34 7.89a4.48 4.48 0 0 1 2.36-1.97V11.6a.766.76 0 0 0 .388.67l5.81 3.35-2.02 1.16a.076.07 0 0 1-.071 0l-4.83-2.78A4.50 4.50 0 0 1 2.34 7.87zm16.59 3.85L13.10 8.36 15.11 7.2a.076.07 0 0 1 .071 0l4.83 2.79a4.49 4.49 0 0 1-.677 8.10v-5.67a.79.79 0 0 0-.407-.667zm2.01-3.02-.142-.085-4.77-2.78a.776.77 0 0 0-.785 0L9.40 9.23V6.89a.066.06 0 0 1 .028-.062l4.83-2.78a4.49 4.49 0 0 1 6.68 4.66zM8.30 12.86l-2.02-1.16a.08.08 0 0 1-.038-.057V6.07a4.49 4.49 0 0 1 7.37-3.45l-.142.08L8.70 5.45a.795.79 0 0 0-.393.68zm1.09-2.36 2.60-1.5 2.60 1.5v2.99l-2.59 1.5-2.60-1.5Z`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)(z8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function Ume(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`#D4A27F`,d:`M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)(z8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function Wme(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i,a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`defs`,{children:(0,$.jsxs)(`linearGradient`,{id:`gemini-grad`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,$.jsx)(`stop`,{offset:`0%`,stopColor:`#4285F4`}),(0,$.jsx)(`stop`,{offset:`50%`,stopColor:`#9B72CB`}),(0,$.jsx)(`stop`,{offset:`100%`,stopColor:`#D96570`})]})}),a=(0,$.jsx)(`path`,{fill:`url(#gemini-grad)`,d:`M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81`}),t[3]=i,t[4]=a):(i=t[3],a=t[4]);let o;return t[5]!==n||t[6]!==r?(o=(0,$.jsxs)(z8,{className:n,...r,children:[i,a]}),t[5]=n,t[6]=r,t[7]=o):o=t[7],o}function Gme(e){let t=(0,Q.c)(22),{providerId:n,className:r}=e,i;t[0]===r?i=t[1]:(i={className:r,"aria-hidden":!0},t[0]=r,t[1]=i);let a=i;switch(n){case`xopc-cloud`:{let e;return t[2]===r?e=t[3]:(e=(0,$.jsx)(Yw,{className:r,"aria-hidden":!0}),t[2]=r,t[3]=e),e}case`deepseek`:{let e;return t[4]===a?e=t[5]:(e=(0,$.jsx)(Bme,{...a}),t[4]=a,t[5]=e),e}case`minimax`:{let e;return t[6]===a?e=t[7]:(e=(0,$.jsx)(Vme,{...a}),t[6]=a,t[7]=e),e}case`kimi-coding`:{let e;return t[8]===a?e=t[9]:(e=(0,$.jsx)(B8,{...a}),t[8]=a,t[9]=e),e}case`moonshotai`:case`moonshotai-cn`:{let e;return t[10]===a?e=t[11]:(e=(0,$.jsx)(B8,{...a}),t[10]=a,t[11]=e),e}case`openai`:{let e;return t[12]===a?e=t[13]:(e=(0,$.jsx)(Hme,{...a}),t[12]=a,t[13]=e),e}case`anthropic`:{let e;return t[14]===a?e=t[15]:(e=(0,$.jsx)(Ume,{...a}),t[14]=a,t[15]=e),e}case`google`:{let e;return t[16]===a?e=t[17]:(e=(0,$.jsx)(Wme,{...a}),t[16]=a,t[17]=e),e}default:{let e;t[18]===r?e=t[19]:(e=C(`flex items-center justify-center text-2xl`,r),t[18]=r,t[19]=e);let n;return t[20]===e?n=t[21]:(n=(0,$.jsx)(`span`,{className:e,children:`🤖`}),t[20]=e,t[21]=n),n}}}var V8=`models-json-config`,H8=`model-catalog`;async function U8(){await Promise.all([nk(),Ce(z(`/api/providers/meta`)),Ce(V8),Ce(H8),P8()])}function Kme(e){return sT(e)}async function W8(){return(await B(z(`/api/providers/meta`))).payload?.providers??[]}function qme(e){if(!e||typeof e!=`object`||!(`providers`in e))return{};let t=e.providers;if(!t||typeof t!=`object`||Array.isArray(t))return{};let n={};for(let[e,r]of Object.entries(t))typeof r==`string`&&(n[e]=r);return n}function Jme(e,t,n){let r=new Set(n.map(e=>e.provider));return e.map(e=>({...e,configured:e.configured||r.has(e.id),apiKey:t[e.id]??(e.activeKeySource===`extension`?``:e.configured||r.has(e.id)?`••••••••••••`:``)}))}async function G8(e){await B(z(`/api/config`),{method:`PATCH`,body:JSON.stringify({providers:e})}),await U8()}async function Yme(e){await B(z(`/api/providers/${encodeURIComponent(e)}/key`),{method:`DELETE`}),await U8()}async function Xme(e){let t=await B(z(`/api/providers/${encodeURIComponent(e)}/reveal-api-key`),{method:`POST`,headers:{"Content-Type":`application/json`},body:`{}`});if(!t.ok||!t.payload)throw Error(t.error?.message??`Reveal failed`);return t.payload}var K8={id:`xopc-cloud`,name:`XOPC Cloud`,category:`common`,supportsOAuth:!0,supportsApiKey:!1,configured:!1,onboardingFeatured:!0,hint:`Connect your XOPC account. No API key required.`},q8=[{id:`deepseek`,name:`DeepSeek`,category:`common`,supportsOAuth:!1,supportsApiKey:!0,configured:!1,onboardingFeatured:!0},{id:`openai`,name:`OpenAI`,category:`common`,supportsOAuth:!1,supportsApiKey:!0,configured:!1,onboardingFeatured:!0},{id:`anthropic`,name:`Anthropic`,category:`common`,supportsOAuth:!0,supportsApiKey:!0,configured:!1,onboardingFeatured:!0},{id:`google`,name:`Google AI`,category:`common`,supportsOAuth:!1,supportsApiKey:!0,configured:!1,onboardingFeatured:!0}],J8=new Map([K8,...q8].map((e,t)=>[e.id,t]));function Zme(e,t){let n=e?.filter(e=>e.onboardingFeatured&&zme(e.id)),r=n?.length?n:q8;return(t?[e?.find(e=>e.id===`xopc-cloud`)??K8,...r.filter(e=>e.id!==`google`&&e.id!==`xopc-cloud`)]:r).slice().sort((e,t)=>(J8.get(e.id)??999)-(J8.get(t.id)??999)).slice(0,5)}function Qme(e){let t=e.recommendedModels?.map(e=>e.name||e.id).filter(Boolean).slice(0,2);return t?.length?t.join(`, `):e.hint}function $me(e){let t=(0,Q.c)(14),{onSelect:n}=e,r=I(ehe),i;t[0]===r?i=t[1]:(i=j(r),t[0]=r,t[1]=i);let a=i.onboarding.providerRecommended,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o={revalidateOnFocus:!1},t[2]=o):o=t[2];let{data:s}=xe(`onboarding-provider-meta`,W8,o),c,l;if(t[3]!==s||t[4]!==n||t[5]!==a){let e=Zme(s,$E());c=`grid grid-cols-3 gap-2 sm:grid-cols-5`;let r;t[8]!==n||t[9]!==a?(r=(e,t)=>{let r=Qme(e),i=t===0;return(0,$.jsxs)(`button`,{type:`button`,onClick:()=>n(e.id),className:C(`relative flex min-h-24 flex-col items-center justify-center gap-1.5 rounded-xl border border-edge p-3 text-center transition-colors`,`hover:border-accent hover:bg-accent-soft`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,i&&`border-accent/50 bg-accent-soft/30`),children:[i&&(0,$.jsx)(`span`,{className:`absolute -top-2 right-2 rounded-full bg-accent px-2 py-0.5 text-[10px] font-semibold text-white`,children:a}),(0,$.jsx)(Gme,{providerId:e.id,className:`size-8`}),(0,$.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:e.name}),r?(0,$.jsx)(`span`,{className:`line-clamp-2 text-xs text-fg-muted`,children:r}):null]},e.id)},t[8]=n,t[9]=a,t[10]=r):r=t[10],l=e.map(r),t[3]=s,t[4]=n,t[5]=a,t[6]=c,t[7]=l}else c=t[6],l=t[7];let u;return t[11]!==c||t[12]!==l?(u=(0,$.jsx)(`div`,{className:c,children:l}),t[11]=c,t[12]=l,t[13]=u):u=t[13],u}function ehe(e){return e.language}async function Y8(e){let t=await L(z(`/api/auth/oauth-async/start`),{method:`POST`,body:JSON.stringify({provider:e})});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||`OAuth start failed: ${t.status}`)}return(await t.json()).payload}async function X8(e){let t=await L(z(`/api/auth/oauth-async/${encodeURIComponent(e)}/status`));if(!t.ok)throw Error(`OAuth status: ${t.status}`);return(await t.json()).payload}async function the(e,t){let n=await L(z(`/api/auth/oauth-async/${encodeURIComponent(e)}/code`),{method:`POST`,body:JSON.stringify({code:t})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error||`Submit code failed: ${n.status}`)}}async function nhe(e){let t=await L(z(`/api/auth/oauth-async/${encodeURIComponent(e)}/cancel`),{method:`POST`});if(!t.ok)throw Error(`Cancel OAuth failed: ${t.status}`)}async function Z8(e){let t=await L(z(`/api/auth/oauth-async/${encodeURIComponent(e)}`),{method:`DELETE`});if(!t.ok)throw Error(`Cleanup session failed: ${t.status}`)}async function rhe(e){let t=await L(z(`/api/auth/oauth/${encodeURIComponent(e)}`),{method:`DELETE`});if(!t.ok)throw Error(`Revoke OAuth failed: ${t.status}`)}function ihe({providerId:e,displayName:t,connected:n,onConnected:r}){let i=I(e=>e.language)===`zh`,[a,o]=(0,Z.useState)(`idle`),[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)(null),d=(0,Z.useRef)(!1),f=(0,Z.useRef)(null);(0,Z.useEffect)(()=>()=>{d.current=!0,f.current?.close(),f.current=null},[]);let p=async()=>{d.current=!1,c(null),u(null),o(`waiting`);let t=$E();t||(f.current?.close(),f.current=window.open(`about:blank`,`xopc-oauth`),f.current&&(f.current.opener=null));let n=null,a=null;try{for(n=(await Y8(e)).sessionId;!d.current;){if(await new Promise(e=>window.setTimeout(e,1e3)),d.current)return;let e=await X8(n);if(e.authUrl&&e.authUrl!==a)if(a=e.authUrl,u(e.authUrl),t){let t=await window.electronAPI?.shell?.openExternalUrl(e.authUrl);if(!t?.ok)throw Error(t?.error??`Could not open the system browser.`)}else f.current&&!f.current.closed&&f.current.location.replace(e.authUrl);if(e.status===`failed`||e.status===`cancelled`)throw Error(e.error??e.message??`OAuth authorization failed`);if(e.status===`completed`){await U8(),f.current?.close(),f.current=null,o(`connected`),r?.();return}}}catch(e){f.current?.close(),f.current=null,d.current||(o(`idle`),c(e instanceof Error?e.message:i?`连接失败`:`Connection failed`))}finally{n&&Z8(n).catch(()=>{})}},m=n||a===`connected`;return(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-2xl border border-accent/25 bg-accent/5 p-4 sm:flex-row sm:items-center sm:justify-between`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,$.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-xl bg-accent/15 text-accent`,children:(0,$.jsx)(Sc,{className:`size-5`,"aria-hidden":!0})}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:t}),m?(0,$.jsx)(Bo,{className:`size-4 text-emerald-500`,"aria-label":i?`已连接`:`Connected`}):null]}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:a===`waiting`?i?`请在浏览器中完成 OAuth 授权。`:`Complete OAuth authorization in your browser.`:m?i?`已通过 OAuth 连接。`:`Connected with OAuth.`:i?`使用 OAuth 连接,无需 API Key。`:`Connect with OAuth. No API key is required.`}),a===`waiting`&&l?(0,$.jsx)(`a`,{className:`mt-1 inline-flex text-sm text-accent hover:underline`,href:l,target:`_blank`,rel:`noreferrer`,children:i?`打开授权页面`:`Open authorization page`}):null,s?(0,$.jsx)(`p`,{className:`mt-1 text-sm text-danger`,children:s}):null]})]}),(0,$.jsxs)(Zw,{type:`button`,variant:m?`secondary`:`primary`,disabled:a===`waiting`,onClick:()=>void p(),children:[a===`waiting`?(0,$.jsx)(Zg,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,a===`waiting`?i?`等待授权…`:`Waiting…`:m?i?`重新授权`:`Reauthorize`:i?`授权`:`Authorize`]})]})}var Q8={ollama:{label:`Ollama`,providerId:`ollama`,config:{baseUrl:`http://localhost:11434/v1`,api:`openai-completions`,apiKey:`ollama`}},lmstudio:{label:`LM Studio`,providerId:`lmstudio`,config:{baseUrl:`http://localhost:1234/v1`,api:`openai-completions`,apiKey:`lmstudio`}},openrouter:{label:`OpenRouter`,providerId:`openrouter`,config:{baseUrl:`https://openrouter.ai/api/v1`,api:`openai-completions`,apiKey:``}},zhipuCn:{label:`Zhipu GLM China`,providerId:`zhipu-cn`,config:{baseUrl:`https://open.bigmodel.cn/api/paas/v4`,api:`openai-completions`,apiKey:`ZHIPU_API_KEY`,models:[{id:`glm-5.2`,name:`GLM 5.2`,contextWindow:1e6,maxTokens:65536,reasoning:!0,input:[`text`]}]}},zaiGeneral:{label:`Zhipu GLM International`,providerId:`zai`,config:{baseUrl:`https://api.z.ai/api/paas/v4`,api:`openai-completions`,apiKey:`ZAI_API_KEY`,models:[{id:`glm-5.2`,name:`GLM 5.2`,contextWindow:1e6,maxTokens:65536,reasoning:!0,input:[`text`]}]}},dashscopeCn:{label:`Alibaba Bailian / DashScope China`,providerId:`dashscope-cn`,description:`China OpenAI-compatible Qwen endpoint`,config:{baseUrl:`https://dashscope.aliyuncs.com/compatible-mode/v1`,api:`openai-completions`,apiKey:`DASHSCOPE_API_KEY`,models:[{id:`qwen3.7-max`,name:`Qwen3.7 Max`,contextWindow:1e6,input:[`text`,`image`]},{id:`qwen3.7-plus`,name:`Qwen3.7 Plus`,contextWindow:1e6,input:[`text`,`image`]},{id:`qwen3.6-flash`,name:`Qwen3.6 Flash`,contextWindow:1e6,input:[`text`]}]}},dashscopeIntl:{label:`Alibaba Bailian / DashScope International`,providerId:`dashscope-intl`,description:`International OpenAI-compatible Qwen endpoint`,config:{baseUrl:`https://dashscope-intl.aliyuncs.com/compatible-mode/v1`,api:`openai-completions`,apiKey:`DASHSCOPE_API_KEY`,models:[{id:`qwen3.7-max`,name:`Qwen3.7 Max`,contextWindow:1e6,input:[`text`,`image`]},{id:`qwen3.7-plus`,name:`Qwen3.7 Plus`,contextWindow:1e6,input:[`text`,`image`]},{id:`qwen3.6-flash`,name:`Qwen3.6 Flash`,contextWindow:1e6,input:[`text`]}]}},volcengineArk:{label:`Volcengine Ark`,providerId:`volcengine-ark`,description:`Use your Ark endpoint id as the model id`,config:{baseUrl:`https://ark.cn-beijing.volces.com/api/v3`,api:`openai-completions`,apiKey:`ARK_API_KEY`,models:[{id:`ep-your-endpoint-id`,name:`Ark endpoint ID`,contextWindow:128e3,input:[`text`]}]}},volcenginePlan:{label:`Volcengine Doubao Coding Plan`,providerId:`volcengine-plan`,description:`Doubao coding-plan endpoint on Volcengine Ark`,config:{baseUrl:`https://ark.cn-beijing.volces.com/api/coding/v3`,api:`openai-completions`,apiKey:`ARK_API_KEY`,models:[{id:`ark-code-latest`,name:`Ark Coding Plan`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-code`,name:`Doubao Seed 2.0 Code`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-pro`,name:`Doubao Seed 2.0 Pro`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-lite`,name:`Doubao Seed 2.0 Lite`,contextWindow:256e3,maxTokens:4096,input:[`text`]}]}},byteplusPlan:{label:`BytePlus Doubao Coding Plan`,providerId:`byteplus-plan`,description:`Doubao coding-plan endpoint on BytePlus`,config:{baseUrl:`https://ark.ap-southeast.bytepluses.com/api/coding/v3`,api:`openai-completions`,apiKey:`BYTEPLUS_API_KEY`,models:[{id:`ark-code-latest`,name:`Ark Coding Plan`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-code`,name:`Doubao Seed 2.0 Code`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-pro`,name:`Doubao Seed 2.0 Pro`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-lite`,name:`Doubao Seed 2.0 Lite`,contextWindow:256e3,maxTokens:4096,input:[`text`]}]}},deepseek:{label:`DeepSeek`,providerId:`deepseek`,config:{baseUrl:`https://api.deepseek.com`,api:`openai-completions`,apiKey:`DEEPSEEK_API_KEY`,models:[{id:`deepseek-v4-pro`,name:`DeepSeek V4 Pro`,contextWindow:1e6,maxTokens:393216,reasoning:!0,input:[`text`]},{id:`deepseek-v4-flash`,name:`DeepSeek V4 Flash`,contextWindow:1e6,maxTokens:393216,reasoning:!0,input:[`text`]}]}},moonshotCn:{label:`Kimi / Moonshot China`,providerId:`moonshotai-cn`,config:{baseUrl:`https://api.moonshot.cn/v1`,api:`openai-completions`,apiKey:`MOONSHOT_API_KEY`,models:[{id:`kimi-k2.7-code`,name:`Kimi K2.7 Code`,contextWindow:262144,maxTokens:32768,reasoning:!0,input:[`text`,`image`]},{id:`kimi-k2.6`,name:`Kimi K2.6`,contextWindow:128e3,input:[`text`]}]}},moonshotIntl:{label:`Kimi / Moonshot International`,providerId:`moonshotai`,config:{baseUrl:`https://api.moonshot.ai/v1`,api:`openai-completions`,apiKey:`MOONSHOT_API_KEY`,models:[{id:`kimi-k2.7-code`,name:`Kimi K2.7 Code`,contextWindow:262144,maxTokens:32768,reasoning:!0,input:[`text`,`image`]},{id:`kimi-k2.6`,name:`Kimi K2.6`,contextWindow:128e3,input:[`text`]}]}},kimiCoding:{label:`Kimi Coding`,providerId:`kimi-coding`,description:`Dedicated Kimi coding endpoint`,config:{baseUrl:`https://api.kimi.com/coding`,api:`anthropic-messages`,apiKey:`KIMI_API_KEY`,headers:{"User-Agent":`KimiCLI/1.5`},models:[{id:`k2p7`,name:`Kimi K2.7 Code`,contextWindow:262144,maxTokens:32768,reasoning:!0,input:[`text`,`image`]},{id:`kimi-for-coding`,name:`Kimi For Coding`,contextWindow:262144,maxTokens:32768,reasoning:!0,input:[`text`,`image`]}]}},stepfunIntl:{label:`StepFun International`,providerId:`stepfun-intl`,config:{baseUrl:`https://api.stepfun.ai/v1`,api:`openai-completions`,apiKey:`STEPFUN_API_KEY`,models:[{id:`step-3.7-flash`,name:`Step 3.7 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash-2603`,name:`Step 3.5 Flash 2603`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash`,name:`Step 3.5 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`]}]}},stepfunCn:{label:`StepFun China`,providerId:`stepfun-cn`,config:{baseUrl:`https://api.stepfun.com/v1`,api:`openai-completions`,apiKey:`STEPFUN_API_KEY`,models:[{id:`step-3.7-flash`,name:`Step 3.7 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash-2603`,name:`Step 3.5 Flash 2603`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash`,name:`Step 3.5 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`]}]}},stepfunPlanIntl:{label:`StepFun Step Plan International`,providerId:`stepfun-plan-intl`,config:{baseUrl:`https://api.stepfun.ai/step_plan/v1`,api:`openai-completions`,apiKey:`STEPFUN_API_KEY`,models:[{id:`step-3.7-flash`,name:`Step 3.7 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash-2603`,name:`Step 3.5 Flash 2603`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash`,name:`Step 3.5 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`]}]}},stepfunPlanCn:{label:`StepFun Step Plan China`,providerId:`stepfun-plan-cn`,config:{baseUrl:`https://api.stepfun.com/step_plan/v1`,api:`openai-completions`,apiKey:`STEPFUN_API_KEY`,models:[{id:`step-3.7-flash`,name:`Step 3.7 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash-2603`,name:`Step 3.5 Flash 2603`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash`,name:`Step 3.5 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`]}]}},xiaomi:{label:`Xiaomi MiMo`,providerId:`xiaomi`,config:{baseUrl:`https://api.xiaomimimo.com/v1`,api:`openai-completions`,apiKey:`XIAOMI_API_KEY`,models:[{id:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5-pro-ultraspeed`,name:`MiMo V2.5 Pro UltraSpeed`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5`,name:`MiMo V2.5`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]}]}},xiaomiTokenPlanCn:{label:`Xiaomi MiMo Token Plan China`,providerId:`xiaomi-token-plan-cn`,config:{baseUrl:`https://token-plan-cn.xiaomimimo.com/v1`,api:`openai-completions`,apiKey:`XIAOMI_TOKEN_PLAN_CN_API_KEY`,models:[{id:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5-pro-ultraspeed`,name:`MiMo V2.5 Pro UltraSpeed`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5`,name:`MiMo V2.5`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]}]}},xiaomiTokenPlanAms:{label:`Xiaomi MiMo Token Plan Amsterdam`,providerId:`xiaomi-token-plan-ams`,config:{baseUrl:`https://token-plan-ams.xiaomimimo.com/v1`,api:`openai-completions`,apiKey:`XIAOMI_TOKEN_PLAN_AMS_API_KEY`,models:[{id:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5-pro-ultraspeed`,name:`MiMo V2.5 Pro UltraSpeed`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5`,name:`MiMo V2.5`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]}]}},xiaomiTokenPlanSgp:{label:`Xiaomi MiMo Token Plan Singapore`,providerId:`xiaomi-token-plan-sgp`,config:{baseUrl:`https://token-plan-sgp.xiaomimimo.com/v1`,api:`openai-completions`,apiKey:`XIAOMI_TOKEN_PLAN_SGP_API_KEY`,models:[{id:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5-pro-ultraspeed`,name:`MiMo V2.5 Pro UltraSpeed`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5`,name:`MiMo V2.5`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]}]}},minimax:{label:`MiniMax`,providerId:`minimax`,description:`Anthropic-compatible endpoint preferred for agent workflows`,config:{baseUrl:`https://api.minimax.io/anthropic`,api:`anthropic-messages`,apiKey:`MINIMAX_API_KEY`,authHeader:!0,models:[{id:`MiniMax-M3`,name:`MiniMax M3`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`MiniMax-M2.7-highspeed`,name:`MiniMax M2.7 Highspeed`,contextWindow:204800,input:[`text`]},{id:`MiniMax-M2.7`,name:`MiniMax M2.7`,contextWindow:204800,input:[`text`]}]}},zhipuCodingCn:{label:`Zhipu GLM Coding Plan China`,providerId:`zhipu-coding-cn`,config:{baseUrl:`https://open.bigmodel.cn/api/coding/paas/v4`,api:`openai-completions`,apiKey:`ZHIPU_API_KEY`,models:[{id:`glm-5.2`,name:`GLM 5.2`,contextWindow:1e6,maxTokens:65536,reasoning:!0,input:[`text`]}]}},zaiCodingGlobal:{label:`Zhipu GLM Coding Plan International`,providerId:`zai-coding-global`,config:{baseUrl:`https://api.z.ai/api/coding/paas/v4`,api:`openai-completions`,apiKey:`ZAI_API_KEY`,models:[{id:`glm-5.2`,name:`GLM 5.2`,contextWindow:1e6,maxTokens:65536,reasoning:!0,input:[`text`]}]}},minimaxCn:{label:`MiniMax China`,providerId:`minimax-cn`,config:{baseUrl:`https://api.minimaxi.com/anthropic`,api:`anthropic-messages`,apiKey:`MINIMAX_CN_API_KEY`,authHeader:!0,models:[{id:`MiniMax-M3`,name:`MiniMax M3`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`MiniMax-M2.7-highspeed`,name:`MiniMax M2.7 Highspeed`,contextWindow:204800,input:[`text`]},{id:`MiniMax-M2.7`,name:`MiniMax M2.7`,contextWindow:204800,input:[`text`]}]}}},$8=Object.entries(Q8).map(([e,t])=>({key:e,...t}));function ahe(e){return Q8[e]?.providerId??e}function ohe(e){return $8.find(t=>t.providerId===e)?.key}var she=new Set([`dashscope-cn`,`dashscope-intl`,`volcengine-ark`,`volcengine-plan`,`byteplus-plan`,`stepfun-cn`,`stepfun-intl`,`stepfun-plan-cn`,`stepfun-plan-intl`,`zhipu-cn`,`zai-coding-global`,`zhipu-coding-cn`]);function e5(e){if(she.has(e))return ohe(e)}function che(e,t){let n=e5(e);if(!n)return;let r=Q8[n];if(r)return{providerId:r.providerId,config:{...r.config,apiKey:t?.trim()||r.config.apiKey,models:r.config.models?.map(e=>({...e}))}}}var lhe=[{value:`text`,labelKey:`inputTextOnly`},{value:`text,image`,labelKey:`inputTextVision`}];function uhe(){return C(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg`,`placeholder:text-fg-subtle`,nT,`dark:border-edge`)}function dhe(){return C($w,Qw)}function fhe(e){return(e.input||[`text`]).includes(`image`)?`text,image`:`text`}function phe(e){return e===`text,image`?[`text`,`image`]:[`text`]}var mhe=[{value:`openai-completions`,label:`OpenAI Completions`},{value:`openai-responses`,label:`OpenAI Responses`},{value:`anthropic-messages`,label:`Anthropic Messages`},{value:`google-generative-ai`,label:`Google Generative AI`},{value:`azure-openai-responses`,label:`Azure OpenAI`},{value:`bedrock-converse-stream`,label:`AWS Bedrock`},{value:`openai-codex-responses`,label:`OpenAI Codex`},{value:`google-gemini-cli`,label:`Google Gemini CLI`},{value:`google-vertex`,label:`Google Vertex AI`}];function t5(e){if(!e||typeof e!=`object`)return;let t=e;if(typeof t.error==`string`)return t.error;if(t.error&&typeof t.error==`object`&&`message`in t.error){let e=t.error.message;return typeof e==`string`?e:void 0}}function n5(e){if(!e||typeof e!=`object`)return{providers:{}};let t=e,n=t.providers;return n&&typeof n==`object`&&!Array.isArray(n)?e:{...t,providers:{}}}async function r5(){let e=await L(z(`/api/models-json`)),t=await e.json().catch(()=>({}));if(!e.ok||!t.ok||!t.payload)throw Error(t5(t)||`HTTP ${e.status}`);return{...t.payload,config:n5(t.payload.config)}}async function i5(e){let t=await L(z(`/api/models-json`),{method:`PATCH`,body:JSON.stringify({config:e})}),n=await t.json().catch(()=>({}));if(!t.ok||!n.ok||!n.payload)throw Error(t5(n)||`HTTP ${t.status}`);return await U8(),n.payload}async function hhe(e){let t=await L(z(`/api/models-json/discover-models`),{method:`POST`,body:JSON.stringify(e)}),n=await t.json().catch(()=>({}));if(!t.ok||!n.ok||!n.payload)throw Error(t5(n)||`HTTP ${t.status}`);return n.payload.models}function ghe(e,t,n){return{id:e,name:t||e,input:[`text`],contextWindow:128e3,maxTokens:16384,cost:{input:0,output:0,cacheRead:0,cacheWrite:0},...n}}async function a5(){let e=await B(z(`/api/global-defaults`));if(!e.payload||typeof e.payload.presetId!=`string`)throw Error(`Invalid global defaults response`);return e.payload}async function _he(e){let t=await B(z(`/api/global-defaults`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({models:e})});if(!t.payload||typeof t.payload.presetId!=`string`)throw Error(`Invalid global defaults response`);return t.payload}async function o5(){let e=await B(z(`/api/image-generation/catalog`));if(!Array.isArray(e.payload?.providers))throw Error(`Invalid image provider catalog`);return e.payload.providers}async function vhe(){let e=await B(z(`/api/image-generation/custom-providers`));if(!Array.isArray(e.payload?.providers))throw Error(`Invalid custom image provider list`);return e.payload.providers}async function yhe(e,t){await B(z(`/api/image-generation/custom-providers/${encodeURIComponent(e)}`),{method:`PUT`,body:JSON.stringify(t)})}async function bhe(e){await B(z(`/api/image-generation/custom-providers/${encodeURIComponent(e)}`),{method:`DELETE`})}async function xhe(e,t){await B(z(`/api/image-generation/providers/${encodeURIComponent(e)}/credential`),{method:`PUT`,body:JSON.stringify({apiKey:t})})}async function She(e,t){let n=await B(z(`/api/image-generation/providers/${encodeURIComponent(e)}/test`),{method:`POST`,body:JSON.stringify({modelId:t})});if(!Array.isArray(n.payload?.images))throw Error(`Invalid image generation test response`);return{images:n.payload.images}}function Che(e,t){return e===`single`?t.getApiKey:e===`intl`?t.getApiKeyIntl:t.getApiKeyCn}var s5={openai:{apiKeyUrl:`https://platform.openai.com/api-keys`,pricingUrl:`https://openai.com/pricing`,docsUrl:`https://platform.openai.com/docs`,description:`The most widely used LLM provider. Powers ChatGPT.`,descriptionZh:`最广泛使用的 LLM 服务商,ChatGPT 背后的技术。`,bestFor:[`general`,`coding`,`vision`],freeTier:!1,freeTierNote:`Pay-as-you-go; new accounts may receive trial credits.`,aliases:[`chatgpt`,`gpt`,`gpt-4`,`gpt4`,`gpt-4o`,`gpt4o`],envVars:[`OPENAI_API_KEY`]},anthropic:{apiKeyUrl:`https://console.anthropic.com/settings/keys`,pricingUrl:`https://www.anthropic.com/pricing`,docsUrl:`https://docs.anthropic.com`,description:`Anthropic model access. Available models are loaded from the gateway catalog.`,descriptionZh:`Anthropic 模型服务。可用模型由网关目录动态加载。`,bestFor:[`long context`,`coding`,`reasoning`],freeTier:!1,aliases:[`claude`,`claude 3`,`claude sonnet`,`claude opus`,`claude haiku`],envVars:[`ANTHROPIC_OAUTH_TOKEN`,`ANTHROPIC_API_KEY`]},google:{apiKeyUrl:`https://aistudio.google.com/app/apikey`,pricingUrl:`https://ai.google.dev/pricing`,docsUrl:`https://ai.google.dev/docs`,description:`Google AI model access. Available models are loaded from the gateway catalog.`,descriptionZh:`Google AI 模型服务。可用模型由网关目录动态加载。`,bestFor:[`multimodal`,`long context`,`general`],freeTier:!0,freeTierNote:`Free tier available via Google AI Studio.`,aliases:[`gemini`,`google gemini`,`bard`,`google ai`],envVars:[`GEMINI_API_KEY`,`GOOGLE_API_KEY`]},"google-vertex":{apiKeyUrl:`https://console.cloud.google.com/apis/credentials`,pricingUrl:`https://cloud.google.com/vertex-ai/pricing`,docsUrl:`https://cloud.google.com/vertex-ai/docs`,description:`Google Vertex AI — enterprise-grade model hosting on GCP.`,descriptionZh:`Google Vertex AI,企业级 GCP 托管模型服务。`,bestFor:[`enterprise`,`multimodal`,`compliance`],freeTier:!1,aliases:[`vertex`,`vertex ai`,`gcp`,`google cloud`],envVars:[`GOOGLE_CLOUD_API_KEY`,`GOOGLE_CLOUD_PROJECT`,`GOOGLE_CLOUD_LOCATION`]},"google-gemini-cli":{apiKeyUrl:`https://aistudio.google.com/app/apikey`,pricingUrl:`https://ai.google.dev/pricing`,docsUrl:`https://ai.google.dev/docs`,description:`Gemini via CLI token — for users authenticated with the Gemini CLI tool.`,descriptionZh:`通过 Gemini CLI 令牌访问 Gemini,适合已安装 CLI 工具的用户。`,bestFor:[`general`,`multimodal`],freeTier:!0,freeTierNote:`Uses your existing Gemini CLI authentication.`,aliases:[`gemini cli`,`gemini-cli`],envVars:[`GEMINI_CLI_TOKEN`,`GOOGLE_TOKEN`]},"google-antigravity":{apiKeyUrl:`https://console.cloud.google.com/apis/credentials`,pricingUrl:`https://cloud.google.com/pricing`,docsUrl:`https://cloud.google.com/docs`,description:`Google Antigravity — internal/experimental Google AI endpoint.`,descriptionZh:`Google Antigravity,Google 内部/实验性 AI 端点。`,bestFor:[`experimental`],freeTier:!1,aliases:[`antigravity`,`google antigravity`],envVars:[`ANTIGRAVITY_API_KEY`]},groq:{apiKeyUrl:`https://console.groq.com/keys`,pricingUrl:`https://groq.com/pricing/`,docsUrl:`https://console.groq.com/docs`,description:`Extremely fast inference — ideal for latency-sensitive applications.`,descriptionZh:`推理速度极快,适合对延迟敏感的场景。`,bestFor:[`speed`,`cheap`],freeTier:!0,freeTierNote:`Generous free tier with rate limits.`,aliases:[`groq`,`llama on groq`,`mixtral on groq`],envVars:[`GROQ_API_KEY`]},deepseek:{apiKeyUrl:`https://platform.deepseek.com/api_keys`,pricingUrl:`https://api-docs.deepseek.com/quick_start/pricing/`,docsUrl:`https://platform.deepseek.com/api-docs/`,description:`DeepSeek model access through an OpenAI-compatible API.`,descriptionZh:`通过 OpenAI 兼容 API 访问 DeepSeek 模型。`,bestFor:[`reasoning`,`cheap`,`coding`],freeTier:!0,freeTierNote:`Free credits may be available for new accounts.`,aliases:[`deepseek`,`deep seek`,`deepseek v4`,`deepseek-v4`,`r1`],envVars:[`DEEPSEEK_API_KEY`]},"volcengine-ark":{apiKeyUrl:`https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey`,pricingUrl:`https://www.volcengine.com/docs/82379/1099320`,docsUrl:`https://www.volcengine.com/docs/82379/1302008`,description:`Volcengine Ark — OpenAI-compatible access to Doubao and custom Ark endpoints.`,descriptionZh:`火山方舟,通过 OpenAI 兼容接口访问豆包与自定义方舟 endpoint。`,bestFor:[`chinese`,`general`,`enterprise`],aliases:[`volcengine`,`ark`,`doubao`,`volces`,`火山方舟`,`豆包`],envVars:[`ARK_API_KEY`,`VOLCENGINE_API_KEY`]},"volcengine-plan":{apiKeyUrl:`https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey`,pricingUrl:`https://www.volcengine.com/docs/82379/1099320`,docsUrl:`https://www.volcengine.com/docs/82379/1302008`,description:`Volcengine Doubao Coding Plan — Ark coding endpoint.`,descriptionZh:`火山方舟豆包 Coding Plan,使用 Ark coding endpoint。`,bestFor:[`coding`,`chinese`],aliases:[`volcengine plan`,`ark coding`,`doubao coding`,`火山方舟 coding`],envVars:[`ARK_API_KEY`,`VOLCENGINE_API_KEY`]},"byteplus-plan":{apiKeyUrl:`https://console.byteplus.com/ark/region:ark+ap-southeast-1/apiKey`,pricingUrl:`https://docs.byteplus.com/en/docs/ModelArk`,docsUrl:`https://docs.byteplus.com/en/docs/ModelArk/OpenAI`,description:`BytePlus Doubao Coding Plan — international Ark coding endpoint.`,descriptionZh:`BytePlus 豆包 Coding Plan,国际区 Ark coding endpoint。`,bestFor:[`coding`,`chinese`],aliases:[`byteplus`,`byteplus plan`,`doubao coding international`],envVars:[`BYTEPLUS_API_KEY`,`ARK_API_KEY`]},xai:{apiKeyUrl:`https://console.x.ai/`,pricingUrl:`https://x.ai/api`,docsUrl:`https://docs.x.ai/`,description:`xAI model access. Available models are loaded from the gateway catalog.`,descriptionZh:`xAI 模型服务。可用模型由网关目录动态加载。`,bestFor:[`reasoning`,`real-time`],freeTier:!1,aliases:[`grok`,`xai`,`x.ai`],envVars:[`XAI_API_KEY`]},cerebras:{apiKeyUrl:`https://cloud.cerebras.ai/platform/`,pricingUrl:`https://cloud.cerebras.ai/platform/`,docsUrl:`https://inference-docs.cerebras.ai/`,description:`Ultra-fast inference on custom AI chips. Fastest Llama inference available.`,descriptionZh:`基于专用 AI 芯片的超快推理,Llama 推理速度业界最快。`,bestFor:[`speed`],freeTier:!0,freeTierNote:`Free tier available.`,aliases:[`cerebras`],envVars:[`CEREBRAS_API_KEY`]},mistral:{apiKeyUrl:`https://console.mistral.ai/api-keys/`,pricingUrl:`https://mistral.ai/technology/#pricing`,docsUrl:`https://docs.mistral.ai/`,description:`European open-weight models. Good balance of quality and cost.`,descriptionZh:`欧洲开源模型,质量与成本平衡好。`,bestFor:[`general`,`cheap`,`coding`],freeTier:!1,aliases:[`mistral`,`mixtral`,`codestral`],envVars:[`MISTRAL_API_KEY`]},openrouter:{apiKeyUrl:`https://openrouter.ai/keys`,pricingUrl:`https://openrouter.ai/models`,docsUrl:`https://openrouter.ai/docs`,description:`API gateway to 100+ models from many providers with a single key.`,descriptionZh:`统一 API 网关,一个 Key 访问 100+ 模型。`,bestFor:[`general`,`flexibility`],freeTier:!0,freeTierNote:`Some models are free; pay-per-use for others.`,aliases:[`openrouter`,`open router`],envVars:[`OPENROUTER_API_KEY`]},"azure-openai-responses":{apiKeyUrl:`https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/OpenAI`,pricingUrl:`https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/`,docsUrl:`https://learn.microsoft.com/en-us/azure/ai-services/openai/`,description:`OpenAI models hosted on Azure. Enterprise SLA and data residency.`,descriptionZh:`Azure 托管的 OpenAI 模型,企业级 SLA 和数据合规。`,bestFor:[`enterprise`,`compliance`,`coding`],freeTier:!1,aliases:[`azure`,`azure openai`,`aoai`],envVars:[`AZURE_OPENAI_API_KEY`,`AZURE_OPENAI_BASE_URL`]},"amazon-bedrock":{apiKeyUrl:`https://console.aws.amazon.com/iam/home#/security_credentials`,pricingUrl:`https://aws.amazon.com/bedrock/pricing/`,docsUrl:`https://docs.aws.amazon.com/bedrock/`,description:`AWS Bedrock hosted model access with enterprise controls.`,descriptionZh:`AWS Bedrock 托管模型服务,提供企业级控制能力。`,bestFor:[`enterprise`,`compliance`],freeTier:!1,aliases:[`bedrock`,`aws`,`amazon`],envVars:[`AWS_ACCESS_KEY_ID`,`AWS_SECRET_ACCESS_KEY`,`AWS_REGION`]},minimax:{apiKeyUrl:`https://platform.minimax.io/user-center/basic-information/interface-key`,pricingUrl:`https://platform.minimax.io/docs/guides/models-intro`,docsUrl:`https://platform.minimax.io/docs/guides/quickstart-preparation`,description:`MiniMax — Chinese multimodal model with strong text and audio capabilities.`,descriptionZh:`MiniMax,国产多模态模型,文本和音频能力强。`,bestFor:[`multimodal`,`chinese`],freeTier:!0,freeTierNote:`注册赠送免费额度。`,aliases:[`minimax`,`mini max`,`abab`],envVars:[`MINIMAX_API_KEY`]},"minimax-cn":{apiKeyUrl:`https://platform.minimaxi.com/user-center/basic-information/interface-key`,pricingUrl:`https://platform.minimaxi.com/document/Price`,docsUrl:`https://platform.minimaxi.com/document/Announcement`,description:`MiniMax (China endpoint) — domestic access for Chinese users.`,descriptionZh:`MiniMax 国内端点,国内用户直连访问。`,bestFor:[`multimodal`,`chinese`],freeTier:!0,freeTierNote:`注册赠送免费额度。`,aliases:[`minimax cn`,`minimax china`,`abab`],envVars:[`MINIMAX_CN_API_KEY`,`MINIMAX_API_KEY`]},stepfun:{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun OpenAI-compatible endpoint.`,descriptionZh:`阶跃星辰 StepFun OpenAI 兼容端点。`,bestFor:[`chinese`,`reasoning`,`general`],aliases:[`stepfun`,`step`,`阶跃星辰`],envVars:[`STEPFUN_API_KEY`]},"stepfun-cn":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun China — OpenAI-compatible chat endpoint.`,descriptionZh:`阶跃星辰 StepFun 中国区 OpenAI 兼容对话端点。`,bestFor:[`chinese`,`reasoning`,`general`],aliases:[`stepfun cn`,`step cn`,`阶跃星辰`],envVars:[`STEPFUN_API_KEY`]},"stepfun-intl":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun International — OpenAI-compatible chat endpoint.`,descriptionZh:`阶跃星辰 StepFun 国际区 OpenAI 兼容对话端点。`,bestFor:[`chinese`,`reasoning`,`general`],aliases:[`stepfun intl`,`step international`],envVars:[`STEPFUN_API_KEY`]},"stepfun-plan":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun Step Plan coding/planning endpoint.`,descriptionZh:`阶跃星辰 Step Plan coding/planning 专用端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`stepfun plan`,`step plan`,`阶跃 plan`],envVars:[`STEPFUN_API_KEY`]},"stepfun-plan-cn":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun Step Plan China — coding/planning endpoint.`,descriptionZh:`阶跃星辰 Step Plan 中国区 coding/planning 专用端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`stepfun plan cn`,`step plan cn`,`阶跃 plan`],envVars:[`STEPFUN_API_KEY`]},"stepfun-plan-intl":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun Step Plan International — coding/planning endpoint.`,descriptionZh:`阶跃星辰 Step Plan 国际区 coding/planning 专用端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`stepfun plan intl`,`step plan international`],envVars:[`STEPFUN_API_KEY`]},"kimi-coding":{apiKeyUrl:`https://platform.kimi.com/console/api-keys`,pricingUrl:`https://platform.kimi.com/docs/pricing/chat`,docsUrl:`https://platform.kimi.com/docs`,description:`Kimi Coding — dedicated Anthropic-compatible coding endpoint.`,descriptionZh:`Kimi Coding,Anthropic 兼容的专用 coding 端点。`,bestFor:[`coding`,`chinese`,`vision`],freeTier:!0,freeTierNote:`注册赠送免费额度。`,aliases:[`kimi coding`,`moonshot coding`,`kimi code`],envVars:[`KIMI_API_KEY`,`MOONSHOT_API_KEY`]},moonshotai:{apiKeyUrl:`https://platform.moonshot.ai/console/api-keys`,pricingUrl:`https://platform.moonshot.ai/docs/pricing`,docsUrl:`https://platform.moonshot.ai/docs`,description:`Moonshot Kimi — international API (api.moonshot.ai).`,descriptionZh:`月之暗面 Kimi 国际版 API(api.moonshot.ai)。`,bestFor:[`coding`,`chinese`,`long context`],freeTier:!0,aliases:[`moonshot`,`kimi`,`moonshot ai`],envVars:[`MOONSHOT_API_KEY`]},"moonshotai-cn":{apiKeyUrl:`https://platform.moonshot.cn/console/api-keys`,pricingUrl:`https://platform.moonshot.cn/docs/pricing/chat`,docsUrl:`https://platform.moonshot.cn/docs`,description:`Moonshot Kimi — China region endpoint.`,descriptionZh:`月之暗面 Kimi 中国区域端点。`,bestFor:[`coding`,`chinese`,`long context`],freeTier:!0,aliases:[`moonshot cn`,`kimi cn`],envVars:[`MOONSHOT_API_KEY`]},fal:{apiKeyUrl:`https://fal.ai/dashboard/keys`,pricingUrl:`https://fal.ai/pricing`,docsUrl:`https://fal.ai/docs`,description:`fal — serverless image and media generation APIs.`,descriptionZh:`fal:无服务器图像与媒体生成 API。`,bestFor:[`image`,`video`],freeTier:!0,aliases:[`fal ai`,`fal.ai`],envVars:[`FAL_KEY`,`FAL_API_KEY`]},fireworks:{apiKeyUrl:`https://fireworks.ai/account/api-keys`,pricingUrl:`https://fireworks.ai/pricing`,docsUrl:`https://docs.fireworks.ai`,description:`Fireworks AI — fast inference for open and proprietary models.`,descriptionZh:`Fireworks AI,多种开源与商业模型的高速推理服务。`,bestFor:[`speed`,`coding`,`open weights`],freeTier:!0,aliases:[`fireworks ai`,`fireworks`],envVars:[`FIREWORKS_API_KEY`]},together:{apiKeyUrl:`https://api.together.xyz/settings/api-keys`,pricingUrl:`https://www.together.ai/pricing`,docsUrl:`https://docs.together.ai`,description:`Together AI — hosted Llama, Qwen, DeepSeek, and more.`,descriptionZh:`Together AI,托管 Llama、Qwen、DeepSeek 等模型。`,bestFor:[`open source`,`flexibility`],freeTier:!0,aliases:[`together ai`,`together.xyz`],envVars:[`TOGETHER_API_KEY`]},"cloudflare-workers-ai":{apiKeyUrl:`https://dash.cloudflare.com/?to=/:account/ai/workers-ai`,pricingUrl:`https://developers.cloudflare.com/workers-ai/platform/pricing/`,docsUrl:`https://developers.cloudflare.com/workers-ai/`,description:`Cloudflare Workers AI — models at the edge via Cloudflare API.`,descriptionZh:`Cloudflare Workers AI,通过 Cloudflare API 在边缘运行模型。`,bestFor:[`edge`,`latency`],freeTier:!0,aliases:[`workers ai`,`cf workers ai`],envVars:[`CLOUDFLARE_API_KEY`]},"cloudflare-ai-gateway":{apiKeyUrl:`https://dash.cloudflare.com/?to=/:account/ai/ai-gateway`,pricingUrl:`https://developers.cloudflare.com/ai-gateway/pricing/`,docsUrl:`https://developers.cloudflare.com/ai-gateway/`,description:`Cloudflare AI Gateway — unified OpenAI/Anthropic-compatible routing.`,descriptionZh:`Cloudflare AI Gateway,统一 OpenAI/Anthropic 兼容路由。`,bestFor:[`routing`,`observability`,`enterprise`],freeTier:!0,aliases:[`cf ai gateway`,`cloudflare gateway`],envVars:[`CLOUDFLARE_API_KEY`]},xiaomi:{apiKeyUrl:`https://platform.xiaomimimo.com/#/console/api-keys`,pricingUrl:`https://mimo.mi.com/`,docsUrl:`https://platform.xiaomimimo.com/`,description:`Xiaomi MiMo — API billing through the MiMo open platform; endpoint api.xiaomimimo.com.`,descriptionZh:`小米 MiMo 按量计费线路,在开放平台创建密钥;接口域名为 api.xiaomimimo.com。`,bestFor:[`general`,`coding`],freeTier:!1,aliases:[`xiaomi`,`mimo`,`小米`,`xiaomimimo`],envVars:[`XIAOMI_API_KEY`]},"xiaomi-token-plan-cn":{apiKeyUrl:`https://platform.xiaomimimo.com/#/console/api-keys`,pricingUrl:`https://mimo.mi.com/`,docsUrl:`https://platform.xiaomimimo.com/`,description:`Xiaomi MiMo Token Plan — China region (token-plan-cn.xiaomimimo.com).`,descriptionZh:`小米 MiMo Token 套餐 · 中国区(token-plan-cn.xiaomimimo.com)。`,bestFor:[`general`,`coding`],freeTier:!1,aliases:[`xiaomi token cn`,`mimo token cn`],envVars:[`XIAOMI_TOKEN_PLAN_CN_API_KEY`,`XIAOMI_TOKEN_PLAN_API_KEY`]},"xiaomi-token-plan-ams":{apiKeyUrl:`https://platform.xiaomimimo.com/#/console/api-keys`,pricingUrl:`https://mimo.mi.com/`,docsUrl:`https://platform.xiaomimimo.com/`,description:`Xiaomi MiMo Token Plan — Amsterdam region (token-plan-ams.xiaomimimo.com).`,descriptionZh:`小米 MiMo Token 套餐 · 阿姆斯特丹(token-plan-ams.xiaomimimo.com)。`,bestFor:[`general`,`coding`],freeTier:!1,aliases:[`xiaomi token ams`,`mimo token ams`],envVars:[`XIAOMI_TOKEN_PLAN_AMS_API_KEY`,`XIAOMI_TOKEN_PLAN_API_KEY`]},"xiaomi-token-plan-sgp":{apiKeyUrl:`https://platform.xiaomimimo.com/#/console/api-keys`,pricingUrl:`https://mimo.mi.com/`,docsUrl:`https://platform.xiaomimimo.com/`,description:`Xiaomi MiMo Token Plan — Singapore region (token-plan-sgp.xiaomimimo.com).`,descriptionZh:`小米 MiMo Token 套餐 · 新加坡(token-plan-sgp.xiaomimimo.com)。`,bestFor:[`general`,`coding`],freeTier:!1,aliases:[`xiaomi token sgp`,`mimo token sgp`],envVars:[`XIAOMI_TOKEN_PLAN_SGP_API_KEY`,`XIAOMI_TOKEN_PLAN_API_KEY`]},"ant-ling":{apiKeyUrl:`https://ling.tbox.cn/`,docsUrl:`https://ling.tbox.cn/`,description:`Ant Ling — domestic OpenAI-compatible access to Ling and Ring models.`,descriptionZh:`蚂蚁 Ling,国内 OpenAI 兼容服务,提供 Ling 与 Ring 系列模型。`,bestFor:[`chinese`,`reasoning`,`coding`],aliases:[`ant ling`,`ling`,`ring`,`蚂蚁 ling`,`蚂蚁灵`],envVars:[`ANT_LING_API_KEY`,`LING_API_KEY`]},"zai-coding-global":{apiKeyUrl:`https://z.ai/manage-apikey/apikey-list`,pricingUrl:`https://z.ai/manage-apikey/billing`,docsUrl:`https://docs.z.ai/guides/overview/quick-start`,description:`Zhipu GLM Coding Plan — international z.ai endpoint.`,descriptionZh:`智谱 GLM Coding Plan 国际区 z.ai 端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`zai coding`,`zhipu coding global`,`glm coding global`],envVars:[`ZAI_API_KEY`,`Z_AI_API_KEY`]},"zai-coding-cn":{apiKeyUrl:`https://bigmodel.cn/usercenter/proj-mgmt/apikeys`,pricingUrl:`https://bigmodel.cn/pricing`,docsUrl:`https://docs.bigmodel.cn/cn/guide/start/model-overview`,description:`Zhipu GLM Coding Plan — China endpoint from the pi-ai provider catalog.`,descriptionZh:`智谱 GLM Coding Plan 中国区,来自 pi-ai 内置 provider 目录。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`zai coding cn`,`zhipu coding cn`,`glm coding cn`,`智谱 coding`],envVars:[`ZHIPU_API_KEY`,`BIGMODEL_API_KEY`,`ZAI_API_KEY`]},"zhipu-coding-cn":{apiKeyUrl:`https://bigmodel.cn/usercenter/proj-mgmt/apikeys`,pricingUrl:`https://bigmodel.cn/pricing`,docsUrl:`https://docs.bigmodel.cn/cn/guide/start/model-overview`,description:`Zhipu GLM Coding Plan — China BigModel endpoint.`,descriptionZh:`智谱 GLM Coding Plan 中国区 BigModel 端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`zhipu coding`,`glm coding cn`,`智谱 coding`],envVars:[`ZHIPU_API_KEY`,`BIGMODEL_API_KEY`,`ZAI_API_KEY`]},"zhipu-cn":{apiKeyUrl:`https://bigmodel.cn/usercenter/proj-mgmt/apikeys`,pricingUrl:`https://bigmodel.cn/pricing`,docsUrl:`https://docs.bigmodel.cn/cn/guide/start/model-overview`,description:`Zhipu GLM China — BigModel OpenAI-compatible endpoint.`,descriptionZh:`智谱 GLM 中国区,通过 BigModel OpenAI 兼容接口访问。`,bestFor:[`chinese`,`reasoning`,`general`],freeTier:!0,aliases:[`zhipu`,`glm`,`bigmodel`,`智谱`,`z.ai cn`],envVars:[`ZHIPU_API_KEY`,`BIGMODEL_API_KEY`]},huggingface:{apiKeyUrl:`https://huggingface.co/settings/tokens`,pricingUrl:`https://huggingface.co/pricing`,docsUrl:`https://huggingface.co/docs/api-inference/`,description:`Access thousands of open-source models via Hugging Face Inference API.`,descriptionZh:`通过 Hugging Face 访问数千个开源模型。`,bestFor:[`open source`,`flexibility`],freeTier:!0,freeTierNote:`Free tier with rate limits.`,aliases:[`huggingface`,`hugging face`,`hf`],envVars:[`HF_TOKEN`,`HUGGINGFACE_TOKEN`]},opencode:{apiKeyUrl:`https://opencode.ai/auth`,pricingUrl:`https://opencode.ai/docs`,docsUrl:`https://opencode.ai/docs/providers/`,description:`OpenCode — AI coding assistant provider.`,descriptionZh:`OpenCode,AI 代码助手服务商。`,bestFor:[`coding`],freeTier:!1,aliases:[`opencode`,`open code`],envVars:[`OPENCODE_API_KEY`]},"opencode-go":{apiKeyUrl:`https://opencode.ai/auth`,pricingUrl:`https://opencode.ai/docs`,docsUrl:`https://opencode.ai/docs/providers/`,description:`OpenCode Go — AI coding assistant provider (Go variant).`,descriptionZh:`OpenCode Go,AI 代码助手服务商(Go 版本)。`,bestFor:[`coding`],freeTier:!1,aliases:[`opencode go`,`opencode-go`],envVars:[`OPENCODE_API_KEY`]},zai:{apiKeyUrl:`https://z.ai/manage-apikey/apikey-list`,pricingUrl:`https://z.ai/manage-apikey/billing`,docsUrl:`https://docs.z.ai/guides/overview/quick-start`,description:`Zhipu GLM International — z.ai OpenAI-compatible endpoint.`,descriptionZh:`智谱 GLM 国际区,通过 z.ai OpenAI 兼容接口访问。`,bestFor:[`general`,`reasoning`,`chinese`],freeTier:!1,aliases:[`zai`,`z.ai`,`zhipu global`,`glm global`,`智谱`],envVars:[`ZAI_API_KEY`,`Z_AI_API_KEY`]},dashscope:{apiKeyUrl:`https://dashscope.console.aliyun.com/apiKey`,pricingUrl:`https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-thousand-questions-metering-and-billing`,docsUrl:`https://help.aliyun.com/zh/model-studio/developer-reference/compatibility-of-openai-with-dashscope`,description:`Alibaba Bailian / DashScope service provider.`,descriptionZh:`阿里百炼 / DashScope 服务 provider。`,bestFor:[`chinese`,`coding`,`image`,`speech`],freeTier:!0,aliases:[`dash scope`,`alibaba dashscope`,`qwen`,`tongyi`,`阿里百炼`,`通义千问`],envVars:[`DASHSCOPE_API_KEY`,`QWEN_API_KEY`]},"dashscope-cn":{apiKeyUrl:`https://dashscope.console.aliyun.com/apiKey`,pricingUrl:`https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-thousand-questions-metering-and-billing`,docsUrl:`https://help.aliyun.com/zh/model-studio/developer-reference/compatibility-of-openai-with-dashscope`,description:`Alibaba Bailian / DashScope China — Qwen LLMs through the China endpoint.`,descriptionZh:`阿里百炼 / DashScope 中国区:通过国内端点访问通义千问 LLM。`,bestFor:[`chinese`,`coding`,`image`],freeTier:!0,aliases:[`dash scope cn`,`alibaba dashscope cn`,`qwen cn`,`tongyi cn`,`阿里百炼`,`通义千问`],envVars:[`DASHSCOPE_API_KEY`,`QWEN_API_KEY`]},"dashscope-intl":{apiKeyUrl:`https://modelstudio.console.alibabacloud.com/`,pricingUrl:`https://www.alibabacloud.com/help/en/model-studio/billing-for-tongyi-qianwen`,docsUrl:`https://www.alibabacloud.com/help/en/model-studio/compatibility-of-openai-with-dashscope`,description:`Alibaba Bailian / DashScope International — Qwen LLMs through the international endpoint.`,descriptionZh:`阿里百炼 / DashScope 国际区:通过国际端点访问通义千问 LLM。`,bestFor:[`chinese`,`coding`,`image`],freeTier:!0,aliases:[`dash scope intl`,`alibaba cloud dashscope`,`qwen intl`,`tongyi intl`],envVars:[`DASHSCOPE_API_KEY`,`QWEN_API_KEY`]},"vercel-ai-gateway":{apiKeyUrl:`https://vercel.com/account/tokens`,pricingUrl:`https://vercel.com/pricing`,docsUrl:`https://vercel.com/docs/ai/ai-gateway`,description:`Vercel AI Gateway — route requests to multiple LLM providers via Vercel.`,descriptionZh:`Vercel AI Gateway,通过 Vercel 路由请求到多个 LLM 服务商。`,bestFor:[`flexibility`,`enterprise`],freeTier:!1,aliases:[`vercel gateway`,`vercel ai gateway`],envVars:[`AI_GATEWAY_API_KEY`,`VERCEL_AI_GATEWAY_API_KEY`]},"github-copilot":{apiKeyUrl:`https://github.com/settings/tokens`,pricingUrl:`https://github.com/features/copilot#pricing`,docsUrl:`https://docs.github.com/en/copilot`,description:`GitHub Copilot — use your GitHub token to access Copilot models.`,descriptionZh:`使用 GitHub 令牌访问 Copilot 模型。`,bestFor:[`coding`],freeTier:!0,freeTierNote:`Free for verified students and open-source maintainers.`,aliases:[`github copilot`,`copilot`,`github`],envVars:[`COPILOT_GITHUB_TOKEN`,`GH_TOKEN`,`GITHUB_TOKEN`,`GITHUB_COPILOT_TOKEN`]}};function whe(e,t){let n=s5[e];return n&&n.apiKeyUrl?[{href:n.apiKeyUrl,kind:`single`}]:[]}function The(e,t){let n=e.find(e=>e.provider===`xopc-cloud`&&e.vision===!0),r=t.find(e=>e.id===`xopc-cloud`&&e.configured&&e.models.length>0),i=r?.models.includes(r.defaultModel)?r.defaultModel:r?.models[0];return{...n?{imageModel:{primary:n.id}}:{},...i?{imageGenerationModel:{primary:`xopc-cloud/${i}`}}:{}}}var Ehe={step:`callName`,selectedProvider:null,apiKey:``,busy:!1,error:null,callName:``,role:``,primaryGoal:``,executionMode:`act`,outputMode:`balanced`,profileLoading:!0};function Dhe(e,t){switch(t.type){case`patch`:return{...e,...t.patch};case`prefillCallName`:return e.callName.trim()?e:{...e,callName:t.value}}}var c5=[`callName`,`collaboration`,`provider`,`apiKey`],l5=e=>c5.indexOf(e)+1;function u5(e){let t=(0,Q.c)(21),{label:n,value:r,options:i,onChange:a}=e,o;t[0]!==i||t[1]!==r?(o=i.find(e=>e.value===r)?.hint,t[0]=i,t[1]=r,t[2]=o):o=t[2];let s=o,c;t[3]===n?c=t[4]:(c=(0,$.jsx)(`legend`,{className:`mb-2 text-xs font-semibold uppercase tracking-[0.12em] text-fg-muted`,children:n}),t[3]=n,t[4]=c);let l;if(t[5]!==a||t[6]!==i||t[7]!==r){let e;t[9]!==a||t[10]!==r?(e=e=>{let t=e.value===r,n=e.icon;return(0,$.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":t,className:C(`group relative flex min-h-18 items-center gap-2.5 rounded-xl border p-3 text-left transition-[transform,border-color,background-color,box-shadow] duration-300 ease-[cubic-bezier(.2,.8,.2,1)]`,`hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent motion-reduce:transform-none motion-reduce:transition-none`,t?`border-accent/60 bg-accent-soft/75 shadow-surface`:`border-edge bg-surface-base/60 hover:border-edge-strong hover:bg-surface-panel`),onClick:()=>a(e.value),children:[(0,$.jsx)(`span`,{className:C(`flex size-8 shrink-0 items-center justify-center rounded-lg transition-colors`,t?`bg-accent text-white`:`bg-surface-muted text-fg-muted group-hover:text-fg`),children:(0,$.jsx)(n,{className:`size-4`,"aria-hidden":!0})}),(0,$.jsx)(`span`,{className:`block pr-5 text-sm font-semibold text-fg`,children:e.title}),(0,$.jsx)(`span`,{className:C(`absolute right-2.5 top-2.5 flex size-5 items-center justify-center rounded-full border transition-all`,t?`scale-100 border-accent bg-accent text-white`:`scale-90 border-edge-strong bg-transparent text-transparent`),children:(0,$.jsx)(S,{className:`size-3`,strokeWidth:2.5,"aria-hidden":!0})})]},e.value)},t[9]=a,t[10]=r,t[11]=e):e=t[11],l=i.map(e),t[5]=a,t[6]=i,t[7]=r,t[8]=l}else l=t[8];let u;t[12]!==n||t[13]!==l?(u=(0,$.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,role:`radiogroup`,"aria-label":n,children:l}),t[12]=n,t[13]=l,t[14]=u):u=t[14];let d;t[15]===s?d=t[16]:(d=(0,$.jsx)(`p`,{className:`mt-2 min-h-5 text-xs leading-5 text-fg-muted`,children:s}),t[15]=s,t[16]=d);let f;return t[17]!==c||t[18]!==u||t[19]!==d?(f=(0,$.jsxs)(`fieldset`,{children:[c,u,d]}),t[17]=c,t[18]=u,t[19]=d,t[20]=f):f=t[20],f}function Ohe({onComplete:e,onDismiss:t,canDismiss:n=!0}){let r=I(e=>e.language),i=I(e=>e.setLanguage),a=j(r).onboarding,[o,s]=(0,Z.useReducer)(Dhe,Ehe),{step:c,selectedProvider:l,apiKey:u,busy:d,error:f,callName:p,role:m,primaryGoal:h,executionMode:g,outputMode:_,profileLoading:v}=o,b=(0,Z.useMemo)(()=>a.stepOf.replace(`{{current}}`,String(l5(c))).replace(`{{total}}`,String(c5.length)),[a.stepOf,c]),x=(0,Z.useCallback)(async e=>{s({type:`patch`,patch:{error:null}});try{return(await F8(!0)).filter(t=>t.provider===e).sort((e,t)=>e.recommended===t.recommended?(e.name||e.id).localeCompare(t.name||t.id,void 0,{sensitivity:`base`}):e.recommended?-1:1)[0]??null}catch(e){return s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}}),null}},[]);(0,Z.useEffect)(()=>{let e=!1;return(async()=>{try{let t=(await a5()).recommendations[0];if(!t||e)return;s({type:`patch`,patch:{selectedProvider:t.provider}})}catch{}})(),()=>{e=!0}},[]),(0,Z.useEffect)(()=>{let e=!1,t;return(async()=>{for(let n=0;n<3;n+=1)try{let{profile:t,suggestedCallName:n}=await sk();if(e)return;let r=t.callName.trim()||n?.trim();r&&s({type:`prefillCallName`,value:r}),s({type:`patch`,patch:{role:t.role,primaryGoal:t.primaryGoal}}),s({type:`patch`,patch:{profileLoading:!1}});return}catch{n<2&&await new Promise(e=>{t=setTimeout(e,250*(n+1))})}e||s({type:`patch`,patch:{profileLoading:!1}})})(),()=>{e=!0,t!==void 0&&clearTimeout(t)}},[]);let S=async()=>{let e=p.trim();s({type:`patch`,patch:{busy:!0,error:null}});try{await ck({callName:e,role:m.trim(),primaryGoal:h.trim(),timezone:rk()}),s({type:`patch`,patch:{step:`collaboration`}})}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}},w=async()=>{let e=r===`zh`?{execution:g===`act`?`任务明确时直接推进并汇报结果;外部、不可逆或高风险操作前再确认。`:g===`plan`?`任务明确时先给出简洁方案,再开始执行。`:`执行重要动作前先向我确认。`,output:_===`concise`?`默认先给结论,只保留完成当前任务所需的必要信息。`:_===`balanced`?`默认给出结论、核心理由和有用的下一步信息。`:`默认提供完整背景、关键权衡和验证过程。`}:{execution:g===`act`?`When the task is clear, move it forward and report the result; pause before external, irreversible, or high-risk actions.`:g===`plan`?`When the task is clear, show a concise approach before taking action.`:`Ask me before taking meaningful action.`,output:_===`concise`?`Lead with the outcome and include only the details needed for the current task.`:_===`balanced`?`Default to the outcome, core reasoning, and the next useful detail.`:`Default to complete context, key tradeoffs, and verification.`};s({type:`patch`,patch:{busy:!0,error:null}});try{let t=await ik(),n=async(e,n,r)=>{let i=t.rules.find(t=>t.conditions.onboardingKey===e);if(i){await pk(i.id,{statement:n,status:`active`});return}await fk({statement:n,category:r,priority:20,conditions:{onboardingKey:e}})};await Promise.all([n(`execution_mode`,e.execution,`execution`),n(`output_mode`,e.output,`communication`)]),s({type:`patch`,patch:{step:`provider`}})}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}},T=(0,Z.useCallback)(async(t,n)=>{let r=await a5(),i=n===`xopc-cloud`?The(await F8(!0),await o5()):{};await _he({...r.models,defaultRole:`deep`,roles:{...r.models.roles,deep:{model:t}},...!r.models.imageModel&&i.imageModel?{imageModel:i.imageModel}:{},...!r.models.imageGenerationModel&&i.imageGenerationModel?{imageGenerationModel:i.imageGenerationModel}:{}}),nk(),P8(),rI(),await ck({...p.trim()?{callName:p.trim()}:{},role:m.trim(),primaryGoal:h.trim(),timezone:rk()}),await e()},[p,e,h,m]),E=async()=>{if(!(!l||!u.trim())){s({type:`patch`,patch:{busy:!0,error:null}});try{let e=che(l,u.trim());if(e){let t=await r5(),n=t.config.providers[e.providerId]??{};await i5({...t.config,providers:{...t.config.providers,[e.providerId]:{...n,...e.config}}})}else await G8({[l]:u.trim()});let t=await x(l);if(!t)throw Error(r===`zh`?`没有找到可用模型,请检查密钥或前往“模型与服务”进行高级配置。`:`No available model was found. Check the key or open Models & services for advanced setup.`);await T(t.id,l)}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}}},D=async()=>{s({type:`patch`,patch:{busy:!0,error:null}});try{let e=await x(`xopc-cloud`);if(!e)throw Error(r===`zh`?`XOPC Cloud 已连接,但没有找到可用模型,请稍后重试。`:`XOPC Cloud connected, but no available model was found. Try again shortly.`);await T(e.id,`xopc-cloud`)}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}};return(0,$.jsxs)(`div`,{className:`xopc-onboarding-card relative flex h-full w-full flex-col overflow-hidden rounded-[1.75rem] border border-white/60 bg-surface-panel/95 p-5 shadow-float backdrop-blur-2xl dark:border-white/10`,children:[(0,$.jsx)(`div`,{className:`xopc-onboarding-aurora pointer-events-none absolute inset-x-0 -top-48 h-80`,"aria-hidden":!0}),(0,$.jsxs)(`header`,{className:`relative z-10 grid min-h-13 grid-cols-[1fr_auto_1fr] items-center gap-3 border-b border-edge-subtle pb-3`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,$.jsx)(`div`,{className:`xopc-onboarding-logo flex size-10 shrink-0 items-center justify-center rounded-xl border border-white/70 bg-white/80 shadow-surface dark:border-white/10 dark:bg-white/5`,children:(0,$.jsx)(Yw,{className:`size-7`})}),(0,$.jsx)(`h2`,{className:`hidden truncate text-sm font-semibold tracking-[-0.015em] text-fg sm:block`,children:a.title})]}),(0,$.jsxs)(`div`,{className:`w-28 sm:w-56`,"aria-label":b,children:[(0,$.jsx)(`div`,{className:`flex items-center gap-1.5`,children:c5.map((e,t)=>(0,$.jsx)(`span`,{className:C(`h-1.5 flex-1 rounded-full transition-[background-color,transform] duration-500 motion-reduce:transition-none`,t<l5(c)?`scale-y-110 bg-accent`:`bg-edge-strong/70`),"aria-hidden":!0},e))}),(0,$.jsx)(`p`,{className:`mt-1.5 text-center text-[10px] font-medium uppercase tracking-[0.12em] text-fg-subtle`,children:b})]}),(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-1`,children:[(0,$.jsx)(Lme,{value:r,onChange:e=>{s({type:`patch`,patch:{error:null}}),i(e)}}),n?(0,$.jsx)(`button`,{type:`button`,"aria-label":a.skipSetup,className:`inline-flex size-10 items-center justify-center rounded-xl text-fg-muted transition hover:bg-surface-muted hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,onClick:t,children:(0,$.jsx)(Aw,{className:`size-4`,"aria-hidden":!0})}):null]})]}),(0,$.jsxs)(`div`,{className:`xopc-onboarding-content relative z-10 min-h-0 flex-1 overflow-hidden pt-4`,children:[c===`callName`?(0,$.jsxs)(`div`,{className:`xopc-onboarding-stage mx-auto flex h-full max-w-2xl flex-col gap-4`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h3`,{className:`text-lg font-semibold tracking-tight text-fg`,children:a.step0Title}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:a.step0Subtitle})]}),(0,$.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,$.jsxs)(`label`,{className:`block text-sm font-medium text-fg`,children:[a.profileCallNameLabel,v?(0,$.jsx)(BN,{className:`mt-1 h-10 w-full rounded-xl`}):(0,$.jsx)(`input`,{autoFocus:!0,value:p,onChange:e=>s({type:`patch`,patch:{callName:e.target.value}}),placeholder:a.profileCallNamePlaceholder,className:`mt-1 w-full rounded-xl border border-edge bg-surface-base px-3 py-2.5 text-sm text-fg outline-none transition focus:border-accent focus:ring-2 focus:ring-accent/30`})]}),(0,$.jsxs)(`label`,{className:`block text-sm font-medium text-fg`,children:[a.profileRoleLabel,(0,$.jsx)(`input`,{value:m,onChange:e=>s({type:`patch`,patch:{role:e.target.value}}),placeholder:a.profileRolePlaceholder,maxLength:300,className:`mt-1 w-full rounded-xl border border-edge bg-surface-base px-3 py-2.5 text-sm text-fg outline-none transition focus:border-accent focus:ring-2 focus:ring-accent/30`})]})]}),(0,$.jsxs)(`label`,{className:`block text-sm font-medium text-fg`,children:[a.profileGoalLabel,(0,$.jsx)(`textarea`,{value:h,onChange:e=>s({type:`patch`,patch:{primaryGoal:e.target.value}}),placeholder:a.profileGoalPlaceholder,maxLength:500,rows:2,className:`mt-1 w-full resize-none rounded-xl border border-edge bg-surface-base px-3 py-2.5 text-sm text-fg outline-none transition focus:border-accent focus:ring-2 focus:ring-accent/30`})]}),(0,$.jsx)(`div`,{className:`min-h-5`,children:f?(0,$.jsx)(`p`,{className:`text-sm text-red-600 dark:text-red-400`,children:f}):null}),(0,$.jsxs)(`div`,{className:`mt-auto flex flex-wrap justify-between gap-2 border-t border-edge-subtle pt-4`,children:[(0,$.jsx)(`button`,{type:`button`,className:`text-xs font-medium text-fg-muted hover:text-fg hover:underline`,disabled:d||v,onClick:()=>void S(),children:a.skipCallName}),(0,$.jsx)(Zw,{type:`button`,className:`bg-accent text-white hover:bg-accent/90`,disabled:d||v,onClick:()=>void S(),children:d?a.savingProfile:a.continue})]})]}):null,c===`collaboration`?(0,$.jsxs)(`div`,{className:`xopc-onboarding-stage mx-auto flex h-full max-w-3xl flex-col gap-3`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h3`,{className:`text-lg font-semibold tracking-tight text-fg`,children:a.collaborationTitle}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:a.collaborationSubtitle})]}),(0,$.jsx)(u5,{label:a.executionLabel,value:g,onChange:e=>s({type:`patch`,patch:{executionMode:e}}),options:[{value:`act`,title:a.executionAct,hint:a.executionActHint,icon:Ay},{value:`plan`,title:a.executionPlan,hint:a.executionPlanHint,icon:Ag},{value:`confirm`,title:a.executionConfirm,hint:a.executionConfirmHint,icon:Uy}]}),(0,$.jsx)(u5,{label:a.outputLabel,value:_,onChange:e=>s({type:`patch`,patch:{outputMode:e}}),options:[{value:`concise`,title:a.outputConcise,hint:a.outputConciseHint,icon:Cv},{value:`balanced`,title:a.outputBalanced,hint:a.outputBalancedHint,icon:Yy},{value:`detailed`,title:a.outputDetailed,hint:a.outputDetailedHint,icon:Ag}]}),(0,$.jsx)(`div`,{className:`min-h-5`,children:f?(0,$.jsx)(`p`,{role:`alert`,className:`text-sm text-red-600 dark:text-red-400`,children:f}):null}),(0,$.jsxs)(`div`,{className:`mt-auto flex items-center justify-between gap-3 border-t border-edge-subtle pt-4`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,disabled:d,onClick:()=>s({type:`patch`,patch:{step:`callName`,error:null}}),children:a.back}),(0,$.jsx)(Zw,{type:`button`,className:`min-w-32 bg-accent text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-accent-hover motion-reduce:transform-none`,disabled:d,onClick:()=>void w(),children:d?a.savingCollaboration:(0,$.jsxs)($.Fragment,{children:[a.continue,(0,$.jsx)(go,{className:`ml-1 size-4`,"aria-hidden":!0})]})})]})]}):null,c===`provider`?(0,$.jsxs)(`div`,{className:`xopc-onboarding-stage mx-auto flex h-full max-w-4xl flex-col gap-4`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h3`,{className:`text-lg font-semibold tracking-tight text-fg`,children:a.step1Title}),p.trim()?(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:r===`zh`?`好的 ${p},${a.step1Subtitle}`:`Great, ${p}! ${a.step1Subtitle}`}):(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:a.step1Subtitle})]}),(0,$.jsx)($me,{onSelect:e=>{s({type:`patch`,patch:{selectedProvider:e,step:`apiKey`,apiKey:``,error:null}})}}),(0,$.jsxs)(`div`,{className:`mt-auto flex flex-wrap items-center justify-between gap-3 border-t border-edge-subtle pt-4`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,onClick:()=>s({type:`patch`,patch:{step:`collaboration`,error:null}}),children:a.back}),(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-4`,children:[(0,$.jsx)(y,{to:`/settings/capabilities/models`,className:`text-xs font-medium text-accent-fg hover:underline`,children:r===`zh`?`配置其他模型…`:`Configure other models…`}),n?(0,$.jsx)(`button`,{type:`button`,className:`text-xs font-medium text-fg-muted hover:text-fg hover:underline`,onClick:t,children:a.skipSetup}):null]})]})]}):null,c===`apiKey`?(0,$.jsxs)(`div`,{className:`xopc-onboarding-stage mx-auto flex h-full max-w-2xl flex-col gap-4`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h3`,{className:`text-lg font-semibold tracking-tight text-fg`,children:l===`xopc-cloud`?r===`zh`?`连接 XOPC Cloud`:`Connect XOPC Cloud`:`${a.step2Title}${l?` (${l})`:``}`}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:l===`xopc-cloud`?r===`zh`?`登录 XOPC Console 并授权,模型会自动同步,无需填写 API Key。`:`Sign in to XOPC Console to sync your models. No API key is required.`:a.step2Subtitle})]}),l===`xopc-cloud`?(0,$.jsx)(ihe,{providerId:`xopc-cloud`,displayName:`XOPC Model Service`,connected:!1,onConnected:()=>void D()}):(0,$.jsxs)($.Fragment,{children:[l&&(()=>{let e=s5[l]?.apiKeyUrl;return e?(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 rounded-xl border border-edge-subtle bg-surface-base px-3.5 py-2.5`,children:[(0,$.jsx)(`span`,{className:`text-xs text-fg-muted`,children:r===`zh`?`获取 API Key:`:`Get your API Key:`}),(0,$.jsxs)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-1 text-xs font-medium text-accent-fg hover:underline`,children:[r===`zh`?`前往获取`:`Get API Key`,(0,$.jsx)(Iu,{className:`size-3`})]})]}):null})(),(0,$.jsxs)(`label`,{className:`block text-sm font-medium text-fg`,children:[(0,$.jsx)(`span`,{className:`sr-only`,children:a.step2Placeholder}),(0,$.jsx)(pT,{className:`mt-1`,value:u,onChange:e=>s({type:`patch`,patch:{apiKey:e}}),placeholder:a.step2Placeholder,labels:hT(j(r).providersSettings),inputClassName:`rounded-xl py-2.5 ring-accent focus:border-accent focus:ring-2 focus:ring-accent/30`})]}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:a.step2SecurityNote})]}),d&&l===`xopc-cloud`?(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:r===`zh`?`正在应用推荐模型…`:`Applying the recommended model…`}):null,(0,$.jsx)(`div`,{className:`min-h-5`,children:f?(0,$.jsx)(`p`,{className:`text-sm text-red-600 dark:text-red-400`,children:f}):null}),(0,$.jsxs)(`div`,{className:`mt-auto flex flex-wrap justify-between gap-2 border-t border-edge-subtle pt-4`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,disabled:d,onClick:()=>s({type:`patch`,patch:{step:`provider`,error:null}}),children:a.back}),l===`xopc-cloud`?null:(0,$.jsx)(Zw,{type:`button`,className:`bg-accent text-white hover:bg-accent/90`,disabled:d||!u.trim(),onClick:()=>void E(),children:d?a.continue:a.startChatting})]})]}):null]})]})}function d5(e){if(!e||typeof e!=`object`||Array.isArray(e))return;let t=e,n=t.roles;if(!n||typeof n!=`object`||Array.isArray(n))return;let r=typeof t.defaultRole==`string`&&t.defaultRole.trim()?t.defaultRole.trim():Object.keys(n)[0];if(!r)return;let i=n[r];if(!i||typeof i!=`object`||Array.isArray(i))return;let a=i.model;return typeof a==`string`&&a.trim()?a.trim():void 0}function khe(e){if(!e||typeof e!=`object`)return!0;let t=e.agents,n=``;if(t&&typeof t==`object`&&!Array.isArray(t)){let e=t,r=typeof e.defaultPreset==`string`&&e.defaultPreset.trim()?e.defaultPreset.trim():`default`,i=e.capabilityPresets,a=i&&typeof i==`object`&&!Array.isArray(i)?i:{},o=e=>{let t=a[e];if(!t||typeof t!=`object`||Array.isArray(t))return;let r=d5(t.models);r&&(n=r)};o(r);let s=Array.isArray(e.list)?e.list:[],c=typeof e.default==`string`?e.default.trim():``,l=s.find(e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return t.enabled!==!1&&t.default===!0}),u=s.find(e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return t.enabled!==!1&&c&&t.id===c})??l??s.find(e=>!e||typeof e!=`object`||Array.isArray(e)?!1:e.enabled!==!1);if(u&&typeof u==`object`&&!Array.isArray(u)){let e=u,t=Array.isArray(e.extends)?e.extends:[];for(let e of t)typeof e==`string`&&e!==r&&o(e);let i=d5(e.models);i&&(n=i)}}return!(n.trim().length>0)}function Ahe(e){let{enabled:t,ready:n,configError:r,modelsError:i,config:a,modelsData:o}=e;if(!t||!n||r||i)return!1;let s=khe(a),c=!Array.isArray(o)||o.length===0;return s||c}var jhe=`xopc-onboarding-model-setup-dismissed`;function Mhe(e){let t=(0,Q.c)(21),[n,r]=(0,Z.useState)(Nhe),{data:i,error:a,isLoading:o,mutate:s}=tk(e),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={revalidateOnFocus:!1},t[0]=c):c=t[0];let{data:l,isLoading:u,error:d,mutate:f}=xe(e?N8:null,F8,c),p=!e||!o&&!u,m=i?.payload?.config,h;t[1]!==a||t[2]!==e||t[3]!==l||t[4]!==d||t[5]!==p||t[6]!==m?(h=Ahe({enabled:e,ready:p,configError:a,modelsError:d,config:m,modelsData:l}),t[1]=a,t[2]=e,t[3]=l,t[4]=d,t[5]=p,t[6]=m,t[7]=h):h=t[7];let g=h,_;t[8]!==s||t[9]!==f?(_=async()=>{await Promise.all([s(),f()])},t[8]=s,t[9]=f,t[10]=_):_=t[10];let v=_,y,b;t[11]!==e||t[12]!==f?(y=()=>{if(!e)return;let t=()=>{f()};return window.addEventListener(`config-reload`,t),()=>window.removeEventListener(`config-reload`,t)},b=[e,f],t[11]=e,t[12]=f,t[13]=y,t[14]=b):(y=t[13],b=t[14]),(0,Z.useEffect)(y,b);let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>{try{localStorage.setItem(jhe,`1`)}catch{}r(!0)},t[15]=x):x=t[15];let S=x,C;return t[16]!==n||t[17]!==g||t[18]!==p||t[19]!==v?(C={needsSetup:g,ready:p,refresh:v,guideDismissed:n,dismissPermanently:S},t[16]=n,t[17]=g,t[18]=p,t[19]=v,t[20]=C):C=t[20],C}function Nhe(){return typeof localStorage<`u`&&localStorage.getItem(`xopc-onboarding-model-setup-dismissed`)===`1`}function Phe(){let e=(0,Q.c)(26),t=F(zhe),n=I(Rhe),r;e[0]===n?r=e[1]:(r=j(n),e[0]=n,e[1]=r);let i=r,{pathname:a}=u(),o=m(),s=Mhe(!!t),c;e[2]===a?c=e[3]:(c=a.startsWith(`/settings`),e[2]=a,e[3]=c);let l=!!t&&!c&&s.ready&&s.needsSetup&&!s.guideDismissed,d;e[4]===s?d=e[5]:(d=e=>{e||s.dismissPermanently()},e[4]=s,e[5]=d);let f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[55] bg-scrim backdrop-blur-md`}),e[6]=f):f=e[6];let p;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=C(`xopc-dialog-content fixed left-1/2 top-1/2 z-[56] h-[min(35rem,calc(100dvh-1rem))] w-[min(100%-1rem,48rem)] -translate-x-1/2 -translate-y-1/2 overflow-hidden`,`rounded-[2rem] p-1 outline-none`),e[7]=p):p=e[7];let h;e[8]===i.onboarding.title?h=e[9]:(h=(0,$.jsx)(eO,{className:`sr-only`,children:i.onboarding.title}),e[8]=i.onboarding.title,e[9]=h);let g;e[10]===i.onboarding.subtitle?g=e[11]:(g=(0,$.jsx)(nO,{className:`sr-only`,children:i.onboarding.subtitle}),e[10]=i.onboarding.subtitle,e[11]=g);let _;e[12]!==s||e[13]!==o?(_=async()=>{await s.refresh(),o((await xk().catch(Fhe))?.enabled?`/onboarding/workspace`:`/chat`)},e[12]=s,e[13]=o,e[14]=_):_=e[14];let v;e[15]!==s.dismissPermanently||e[16]!==_?(v=(0,$.jsx)(Ohe,{onComplete:_,onDismiss:s.dismissPermanently,canDismiss:!0}),e[15]=s.dismissPermanently,e[16]=_,e[17]=v):v=e[17];let y;e[18]!==h||e[19]!==g||e[20]!==v?(y=(0,$.jsxs)(UD,{children:[f,(0,$.jsxs)(YD,{className:p,onPointerDownOutside:Lhe,onOpenAutoFocus:Ihe,children:[h,g,v]})]}),e[18]=h,e[19]=g,e[20]=v,e[21]=y):y=e[21];let b;return e[22]!==l||e[23]!==d||e[24]!==y?(b=(0,$.jsx)(LD,{open:l,onOpenChange:d,children:y}),e[22]=l,e[23]=d,e[24]=y,e[25]=b):b=e[25],b}function Fhe(){return null}function Ihe(e){return e.preventDefault()}function Lhe(e){return e.preventDefault()}function Rhe(e){return e.language}function zhe(e){return e.token}function Bhe(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,$.jsx)(`div`,{className:`shrink-0`,children:n}),t[0]=n,t[1]=r),r}var Vhe=(0,Z.lazy)(()=>MO().then(e=>({default:e.WorkDiscoveryOverlay}))),Hhe=(0,Z.lazy)(()=>uO().then(e=>({default:e.TaskDetailModal})));function Uhe(){let e=(0,Q.c)(3),t=m(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=e=>{let n=e.detail;n?.sessionKey&&t(`/chat/${encodeURIComponent(n.sessionKey)}`)};return window.addEventListener(`navigate-to-chat`,e),()=>window.removeEventListener(`navigate-to-chat`,e)},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function Whe(){let e=(0,Q.c)(3),t=m(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=e=>{let n=e.detail,r=typeof n?.path==`string`?n.path.trim():``;r&&t(r.startsWith(`/`)?r:`/${r}`)};return window.addEventListener(`extension-navigate`,e),()=>window.removeEventListener(`extension-navigate`,e)},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function Ghe(){let e=(0,Q.c)(102),t=F(Yhe),{pathname:n,search:r}=u(),i=m(),a;e[0]===n?a=e[1]:(a=n.startsWith(`/settings`),e[0]=n,e[1]=a);let o=a,s=n===`/onboarding/workspace`,c=I(Jhe),l=SA(),d=pq(qhe),f;e[2]===n?f=e[3]:(f=n.startsWith(`/chat/`)?n.slice(6):``,e[2]=n,e[3]=f);let h=f,g=h&&h!==`new`?decodeURIComponent(h):null,_;e[4]===g?_=e[5]:(_=e=>g?e.panes[g]?.open===!0:!1,e[4]=g,e[5]=_);let v=_2(_),y;e[6]!==n||e[7]!==r?(y=n===`/you`&&Vk(r),e[6]=n,e[7]=r,e[8]=y):y=e[8];let b=y,x;e[9]!==n||e[10]!==r?(x=n.startsWith(`/tasks/`)?null:new URLSearchParams(r).get(E8),e[9]=n,e[10]=r,e[11]=x):x=e[11];let S=x,w;e[12]!==n||e[13]!==r?(w=Fme(n,r),e[12]=n,e[13]=r,e[14]=w):w=e[14];let T=w,[E,D]=(0,Z.useState)(b),O,k;e[15]===b?(O=e[16],k=e[17]):(O=()=>{b&&D(!0)},k=[b],e[15]=b,e[16]=O,e[17]=k),(0,Z.useEffect)(O,k);let A;e[18]!==i||e[19]!==n||e[20]!==r?(A=()=>{i({pathname:n,search:Uk(r)},{replace:!0})},e[18]=i,e[19]=n,e[20]=r,e[21]=A):A=e[21];let j=A,M;e[22]!==j||e[23]!==b?(M=()=>{D(!1),b&&j(),window.requestAnimationFrame(Khe)},e[22]=j,e[23]=b,e[24]=M):M=e[24];let N=M,P;e[25]!==i||e[26]!==T?(P=()=>{i(T,{replace:!0})},e[25]=i,e[26]=T,e[27]=P):P=e[27];let L=P;if(!t){let t=c===`zh`?`跳到主要内容`:`Skip to main content`,n;e[28]===t?n=e[29]:(n=(0,$.jsx)(`a`,{href:`#app-main-content`,className:`sr-only z-[80] rounded-lg bg-surface-panel px-3 py-2 text-sm text-fg shadow-elevated focus:not-sr-only focus:absolute focus:left-4 focus:top-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:t}),e[28]=t,e[29]=n);let r,i;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(Y4,{}),i=(0,$.jsx)(w3,{}),e[30]=r,e[31]=i):(r=e[30],i=e[31]);let a;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,$.jsx)(JE,{})}),e[32]=a):a=e[32];let o;return e[33]===n?o=e[34]:(o=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 w-full flex-1 flex-col overflow-hidden bg-surface-base`,children:[n,r,i,a]}),e[33]=n,e[34]=o),o}let R;e[35]===n?R=e[36]:(R=n.split(`/`)[1]||`root`,e[35]=n,e[36]=R);let z=R,B=z===`chat`||z===`notes`;if(s){let t,n,r,i,a,o,s;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(C3,{}),n=(0,$.jsx)(u8,{}),r=(0,$.jsx)(x8,{}),i=(0,$.jsx)(w3,{}),a=(0,$.jsx)(Y4,{}),o=(0,$.jsx)(Wk,{floating:!0}),s=Nue()?(0,$.jsx)(`div`,{className:C(`w-full`,Ye,qe),"aria-hidden":`true`}):null,e[37]=t,e[38]=n,e[39]=r,e[40]=i,e[41]=a,e[42]=o,e[43]=s):(t=e[37],n=e[38],r=e[39],i=e[40],a=e[41],o=e[42],s=e[43]);let c;return e[44]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 w-full flex-1 flex-col overflow-hidden bg-surface-base`,children:[t,n,r,i,a,o,s,(0,$.jsx)(`main`,{id:`app-main-content`,className:`min-h-0 flex-1 overflow-y-auto overscroll-contain`,children:(0,$.jsx)(p,{})})]}),e[44]=c):c=e[44],c}let V;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(C3,{}),e[45]=V):V=e[45];let H=c===`zh`?`跳到主要内容`:`Skip to main content`,U;e[46]===H?U=e[47]:(U=(0,$.jsx)(`a`,{href:`#app-main-content`,className:`sr-only z-[80] rounded-lg bg-surface-panel px-3 py-2 text-sm text-fg shadow-elevated focus:not-sr-only focus:absolute focus:left-4 focus:top-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:H}),e[46]=H,e[47]=U);let W,G,K,ee,q,te,ne,re,ie,ae,oe,se,J;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(u8,{}),G=(0,$.jsx)(x8,{}),K=(0,$.jsx)(w3,{}),ee=(0,$.jsx)(Uhe,{}),q=(0,$.jsx)(Whe,{}),te=(0,$.jsx)(Rfe,{}),ne=(0,$.jsx)(Epe,{}),re=(0,$.jsx)(Ype,{}),ie=(0,$.jsx)(jme,{}),ae=(0,$.jsx)(Ome,{}),oe=(0,$.jsx)(Bce,{}),se=(0,$.jsx)(Yce,{}),J=(0,$.jsx)(Phe,{}),e[48]=W,e[49]=G,e[50]=K,e[51]=ee,e[52]=q,e[53]=te,e[54]=ne,e[55]=re,e[56]=ie,e[57]=ae,e[58]=oe,e[59]=se,e[60]=J):(W=e[48],G=e[49],K=e[50],ee=e[51],q=e[52],te=e[53],ne=e[54],re=e[55],ie=e[56],ae=e[57],oe=e[58],se=e[59],J=e[60]);let ce;e[61]!==L||e[62]!==T||e[63]!==S?(ce=S?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(Hhe,{taskId:S,backgroundPath:T,onClose:L})}):null,e[61]=L,e[62]=T,e[63]=S,e[64]=ce):ce=e[64];let le;e[65]!==N||e[66]!==b||e[67]!==E?(le=E?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(Vhe,{requestedOpen:b,onExited:N})}):null,e[65]=N,e[66]=b,e[67]=E,e[68]=le):le=e[68];let ue;e[69]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,$.jsx)(Y4,{}),e[69]=ue):ue=e[69];let de;e[70]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,$.jsx)(zue,{}),e[70]=de):de=e[70];let fe;e[71]===l?fe=e[72]:(fe=(0,$.jsx)(Rde,{reminder:l}),e[71]=l,e[72]=fe);let pe;e[73]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,$.jsx)(Cde,{}),e[73]=pe):pe=e[73];let me;e[74]===fe?me=e[75]:(me=(0,$.jsxs)(Bhe,{children:[de,fe,pe]}),e[74]=fe,e[75]=me);let he;e[76]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,$.jsx)(dz,{}),e[76]=he):he=e[76];let ge;e[77]!==o||e[78]!==d?(ge=!o&&!d?(0,$.jsx)(Zk,{}):null,e[77]=o,e[78]=d,e[79]=ge):ge=e[79];let _e;e[80]!==d||e[81]!==z||e[82]!==B?(_e=(0,$.jsx)(`main`,{id:`app-main-content`,className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:d==null?(0,$.jsx)(`div`,{className:C(`page-enter flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-surface-panel`,z===`settings`?`page-enter--gentle overflow-hidden`:B?`overflow-hidden`:`overflow-y-auto overscroll-contain [scrollbar-gutter:stable_both-edges]`),children:(0,$.jsx)(p,{})},z):(0,$.jsx)(xme,{})}),e[80]=d,e[81]=z,e[82]=B,e[83]=_e):_e=e[83];let ve;e[84]!==ge||e[85]!==_e?(ve=(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,children:[ge,_e]}),e[84]=ge,e[85]=_e,e[86]=ve):ve=e[86];let ye;e[87]!==o||e[88]!==g||e[89]!==v?(ye=o?null:v&&g?(0,$.jsx)(wce,{parentSessionKey:g}):(0,$.jsx)(mq,{}),e[87]=o,e[88]=g,e[89]=v,e[90]=ye):ye=e[90];let be;e[91]!==ve||e[92]!==ye?(be=(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-row overflow-hidden`,children:[he,(0,$.jsx)(`div`,{className:`app-main-surface relative flex min-h-0 min-w-0 flex-1 min-w-0 flex-col overflow-hidden bg-surface-panel`,children:(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-row overflow-hidden`,children:[ve,ye]})})]}),e[91]=ve,e[92]=ye,e[93]=be):be=e[93];let xe;e[94]!==me||e[95]!==be?(xe=(0,$.jsxs)(`div`,{className:`app-chrome-shell flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,children:[ue,me,be]}),e[94]=me,e[95]=be,e[96]=xe):xe=e[96];let Se;return e[97]!==U||e[98]!==ce||e[99]!==le||e[100]!==xe?(Se=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 w-full flex-1 flex-col overflow-hidden bg-surface-base`,children:[V,U,W,G,K,ee,q,te,ne,re,ie,ae,oe,se,J,ce,le,xe]}),e[97]=U,e[98]=ce,e[99]=le,e[100]=xe,e[101]=Se):Se=e[101],Se}function Khe(){document.querySelector(`[data-work-discovery-trigger]`)?.focus({preventScroll:!0})}function qhe(e){return e.path}function Jhe(e){return e.language}function Yhe(e){return e.token}var Xhe=(0,Z.memo)(function(e){let t=(0,Q.c)(19),{className:n}=e,r=I(Zhe),i;t[0]===r?i=t[1]:(i=j(r),t[0]=r,t[1]=i);let a=i.settingsMode,o=P3(Qhe),s=P3($he),c;t[2]===n?c=t[3]:(c=C(`shrink-0 border-t border-edge-subtle/80 px-4 py-3`,n),t[2]=n,t[3]=c);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(qy,{className:`mt-0.5 size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[4]=l):l=t[4];let u;t[5]===a.toggleLabel?u=t[6]:(u=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-sm font-medium text-fg`,children:a.toggleLabel}),t[5]=a.toggleLabel,t[6]=u);let d;t[7]===s?d=t[8]:(d=e=>s(e.target.checked),t[7]=s,t[8]=d);let f;t[9]!==a.toggleAria||t[10]!==o||t[11]!==d?(f=(0,$.jsx)(`input`,{type:`checkbox`,className:`ui-checkbox mt-0.5 shrink-0`,checked:o,onChange:d,"aria-label":a.toggleAria}),t[9]=a.toggleAria,t[10]=o,t[11]=d,t[12]=f):f=t[12];let p;t[13]!==u||t[14]!==f?(p=(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-start gap-3 rounded-xl bg-surface-hover/35 px-3 py-2.5 transition-colors hover:bg-surface-hover/55 dark:bg-surface-hover/20 dark:hover:bg-surface-hover/35`,children:[l,u,f]}),t[13]=u,t[14]=f,t[15]=p):p=t[15];let m;return t[16]!==c||t[17]!==p?(m=(0,$.jsx)(`div`,{className:c,children:p}),t[16]=c,t[17]=p,t[18]=m):m=t[18],m});function Zhe(e){return e.language}function Qhe(e){return e.mode===`advanced`}function $he(e){return e.setShowAdvanced}var ege={chat:Ev,sessions:zf,automations:Mw,skills:og,connectors:by,channels:by,agents:yC,logs:Ld,settingsOverview:et,settingsCapabilities:og,settingsAppearance:cy,settingsKeyboardShortcuts:Hh,settingsSystem:Ky,settingsDesktopPet:py,settingsDesktopApp:sy,settingsAgentBrowser:Kp,settingsCapabilityPresets:og,settingsChannels:by,settingsGateway:Kp,settingsRuntimes:$y,settingsDevices:Jy,settingsHeartbeat:Jm,settingsTunnel:Dy,settingsShares:Vy};function tge(e){let t=(0,Q.c)(3),{tab:n,className:r}=e,i=ege[n],a;return t[0]!==i||t[1]!==r?(a=(0,$.jsx)(i,{className:r,strokeWidth:1.75,"aria-hidden":!0}),t[0]=i,t[1]=r,t[2]=a):a=t[2],a}function nge(e){let t=(0,Q.c)(34),{navLinkClassName:n,showAdvanced:r}=e,i=r===void 0?!0:r,a=I(rge),o;t[0]===a?o=t[1]:(o=j(a),t[0]=a,t[1]=o);let s=o,c=pN(),l,u,d,f,p;if(t[2]!==s||t[3]!==n||t[4]!==i||t[5]!==c){p=Symbol.for(`react.early_return_sentinel`);bb0:{let e=ige(c);if(!i){p=null;break bb0}t[11]===s.settingsNavGroups.extensions?f=t[12]:(f=(0,$.jsx)(`p`,{className:`px-4 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wider text-fg-muted`,children:s.settingsNavGroups.extensions}),t[11]=s.settingsNavGroups.extensions,t[12]=f),l=`flex flex-col gap-0.5`;let r;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(Ai,{className:`size-5 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),t[13]=r):r=t[13];let a;t[14]===s.extensionDebug.nav?a=t[15]:(a=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:s.extensionDebug.nav}),t[14]=s.extensionDebug.nav,t[15]=a),t[16]!==n||t[17]!==a?(u=(0,$.jsxs)(h,{to:`/settings/extensions/debug`,className:n,children:[r,a]}),t[16]=n,t[17]=a,t[18]=u):u=t[18];let o;t[19]===n?o=t[20]:(o=e=>{let{extension:t,panel:r}=e;return(0,$.jsxs)(h,{to:`/settings/ext/${t.id}/${r.id}`,className:n,children:[(0,$.jsx)(wy,{className:`size-5 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:r.title})]},`${t.id}:${r.id}`)},t[19]=n,t[20]=o),d=e.map(o)}t[2]=s,t[3]=n,t[4]=i,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p}else l=t[6],u=t[7],d=t[8],f=t[9],p=t[10];if(p!==Symbol.for(`react.early_return_sentinel`))return p;let m;if(t[21]!==n||t[22]!==c){let e;t[24]===n?e=t[25]:(e=e=>(0,$.jsxs)(h,{to:`/settings/ext/${e.id}`,className:n,children:[(0,$.jsx)(wy,{className:`size-5 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name})]},`${e.id}:config`),t[24]=n,t[25]=e),m=age(c).map(e),t[21]=n,t[22]=c,t[23]=m}else m=t[23];let g;t[26]!==l||t[27]!==u||t[28]!==d||t[29]!==m?(g=(0,$.jsxs)(`div`,{className:l,children:[u,d,m]}),t[26]=l,t[27]=u,t[28]=d,t[29]=m,t[30]=g):g=t[30];let _;return t[31]!==f||t[32]!==g?(_=(0,$.jsxs)(`div`,{children:[f,g]}),t[31]=f,t[32]=g,t[33]=_):_=t[33],_}function rge(e){return e.language}function ige(e){let t=[];for(let n of e){let e=n.ui?.contributions?.settingsPanels;if(e)for(let r of e)t.push({extension:n,panel:r})}return t.sort((e,t)=>{let n=e.panel.order??999,r=t.panel.order??999;return n===r?e.panel.title.localeCompare(t.panel.title):n-r}),t}function age(e){return e.filter(e=>(!!e.hasConfigSchema||oN(e))&&!(Array.isArray(e.ui?.contributions?.settingsPanels)&&e.ui.contributions.settingsPanels.length>0))}function oge(e,t){let n=globalThis.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)}function sge(e){return globalThis.matchMedia(e).matches}function f5(e,t){let n=(0,Q.c)(5),r=t===void 0?!1:t,i,a;n[0]===e?(i=n[1],a=n[2]):(i=t=>oge(e,t),a=()=>sge(e),n[0]=e,n[1]=i,n[2]=a);let o;return n[3]===r?o=n[4]:(o=()=>r,n[3]=r,n[4]=o),(0,Z.useSyncExternalStore)(i,a,o)}var p5=`settingsBackPath`;function m5(e){if(!e||typeof e!=`object`)return`/chat`;let t=e[p5];if(typeof t!=`string`)return`/chat`;let n=t.trim();return!n.startsWith(`/`)||n.startsWith(`//`)?`/chat`:n}var h5=`xopc-web-settings-rail-width-px`;function g5(e){return Math.min(360,Math.max(192,Math.round(e)))}function cge(){try{let e=globalThis.localStorage?.getItem(h5);if(e==null)return g5(228);let t=Number.parseInt(e,10);return g5(Number.isFinite(t)?t:228)}catch{return g5(228)}}function lge(e){try{globalThis.localStorage?.setItem(h5,String(e))}catch{}}var _5=R((e,t)=>({widthPx:cge(),setWidthPx:n=>{let r=g5(n);t().widthPx!==r&&(e({widthPx:r}),queueMicrotask(()=>lge(r)))}}));function v5({isActive:e}){return C(`flex w-full shrink-0 items-center gap-2.5 rounded-xl px-4 py-2 text-sm font-medium leading-6 transition-colors duration-200 ease-out`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,e?`bg-accent-soft text-accent-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`)}var uge=C(`inline-flex max-w-full items-center gap-2 rounded-xl px-3 py-2 text-sm font-medium transition-colors duration-200 ease-out`,`text-fg-muted hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,`sm:px-4`),y5=C(`inline-flex size-10 shrink-0 items-center justify-center rounded-xl text-fg-muted transition-colors duration-200 ease-out`,`hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,Je);function b5(e,t){return e.tabs.filter(e=>A3(e,t)?!LE.has(e)||$E():!1)}function dge(e){let t=(0,Q.c)(26),{group:n,groupIndex:r,language:i,location:a,settingsMode:o}=e,s;t[0]===i?s=t[1]:(s=j(i),t[0]=i,t[1]=s);let c=s,l,u,d,f;if(t[2]!==n||t[3]!==r||t[4]!==i||t[5]!==a||t[6]!==c||t[7]!==o){f=Symbol.for(`react.early_return_sentinel`);bb0:{let e=b5(n,o);if(e.length===0){f=null;break bb0}let s=r===0&&`pt-0`,p;t[12]===s?p=t[13]:(p=C(`px-4 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wider text-fg-muted`,s),t[12]=s,t[13]=p);let m=c.settingsNavGroups[n.id];t[14]!==p||t[15]!==m?(d=(0,$.jsx)(`p`,{className:p,children:m}),t[14]=p,t[15]=m,t[16]=d):d=t[16],l=`flex flex-col gap-0.5`;let g;t[17]!==i||t[18]!==a?(g=e=>(0,$.jsxs)(h,{to:GE(e),state:a.state,onMouseEnter:()=>ZO(GE(e)),onFocus:()=>ZO(GE(e)),className:t=>{let{isActive:n}=t;return v5({isActive:n||e===`settingsCapabilities`&&a.pathname.startsWith(`/settings/capabilities/`)})},children:[(0,$.jsx)(tge,{tab:e,className:`size-5 shrink-0 opacity-90`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:A(i,e)})]},e),t[17]=i,t[18]=a,t[19]=g):g=t[19],u=e.map(g)}t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=c,t[7]=o,t[8]=l,t[9]=u,t[10]=d,t[11]=f}else l=t[8],u=t[9],d=t[10],f=t[11];if(f!==Symbol.for(`react.early_return_sentinel`))return f;let p;t[20]!==l||t[21]!==u?(p=(0,$.jsx)(`div`,{className:l,children:u}),t[20]=l,t[21]=u,t[22]=p):p=t[22];let m;return t[23]!==d||t[24]!==p?(m=(0,$.jsxs)(`div`,{children:[d,p]}),t[23]=d,t[24]=p,t[25]=m):m=t[25],m}var fge=(0,Z.memo)(function(){let e=(0,Q.c)(86),t=I(pge),n;e[0]===t?n=e[1]:(n=j(t),e[0]=t,e[1]=n);let r=n,i=u(),a=P3(mge),o=_5(hge),s=_5(gge),[c,l]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(!1),m=f5(aE),h=tD({runtime:eD(),sidebarCollapsed:!1,mobileNavOpen:d}),g=m?h.sidebarLeadingInsetClass:``,v;e[2]===s?v=e[3]:(v=e=>{e.preventDefault();let t=e.currentTarget,n=t.parentElement;t.setPointerCapture(e.pointerId),l(!0);let r=e.clientX,i=_5.getState().widthPx,a=e.pointerId,o=0,c=i,u=i,d=()=>{o=0,u=c,n?.style.setProperty(`--settings-rail-px`,`${u}px`)},f=e=>{c=g5(i+(e.clientX-r)),o===0&&(o=window.requestAnimationFrame(d))},p=()=>{o!==0&&(window.cancelAnimationFrame(o),d());try{t.releasePointerCapture(a)}catch{}l(!1),s(u),window.removeEventListener(`pointermove`,f),window.removeEventListener(`pointerup`,p),window.removeEventListener(`pointercancel`,p)};window.addEventListener(`pointermove`,f),window.addEventListener(`pointerup`,p),window.addEventListener(`pointercancel`,p)},e[2]=s,e[3]=v);let b=v,x;e[4]===i.state?x=e[5]:(x=m5(i.state),e[4]=i.state,e[5]=x);let S=x,w=r.sidebar.backToApp,T;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(T=C(uge,Je),e[6]=T):T=e[6];let E;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(yn,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),e[7]=E):E=e[7];let D;e[8]===w?D=e[9]:(D=(0,$.jsx)(`span`,{children:w}),e[8]=w,e[9]=D);let O;e[10]!==w||e[11]!==S||e[12]!==D?(O=(0,$.jsxs)(y,{to:S,replace:!1,className:T,title:w,children:[E,D]}),e[10]=w,e[11]=S,e[12]=D,e[13]=O):O=e[13];let k=O,M;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(M=[...zE,...$E()?[RE]:[]],e[14]=M):M=e[14];let N=M,P;e[15]!==i.pathname||e[16]!==a?(P=N.flatMap(e=>b5(e,a)).find(e=>i.pathname===GE(e)||e===`settingsCapabilities`&&i.pathname.startsWith(`/settings/capabilities/`)),e[15]=i.pathname,e[16]=a,e[17]=P):P=e[17];let F=P,L;e[18]!==i.pathname||e[19]!==a?(L=j3(i.pathname,a),e[18]=i.pathname,e[19]=a,e[20]=L):L=e[20];let R=!L,z;e[21]!==F||e[22]!==t||e[23]!==r.nav.settings?(z=F?A(t,F):r.nav.settings,e[21]=F,e[22]=t,e[23]=r.nav.settings,e[24]=z):z=e[24];let B=z,V;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(V=()=>{f(!1)},e[25]=V):V=e[25];let H;e[26]!==i.pathname||e[27]!==i.search?(H=[i.pathname,i.search],e[26]=i.pathname,e[27]=i.search,e[28]=H):H=e[28],(0,Z.useEffect)(V,H);let U=r.nav.settings,W;e[29]!==t||e[30]!==i||e[31]!==a?(W=N.map((e,n)=>(0,$.jsx)(dge,{group:e,groupIndex:n,language:t,location:i,settingsMode:a},e.id)),e[29]=t,e[30]=i,e[31]=a,e[32]=W):W=e[32];let G=a===`advanced`,K;e[33]===G?K=e[34]:(K=(0,$.jsx)(nge,{navLinkClassName:v5,showAdvanced:G}),e[33]=G,e[34]=K);let ee;e[35]!==W||e[36]!==K?(ee=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[W,K]}),e[35]=W,e[36]=K,e[37]=ee):ee=e[37];let q;e[38]!==r.nav.settings||e[39]!==ee?(q=(0,$.jsx)(`nav`,{className:`min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-4 pb-4 pt-2`,"aria-label":U,children:ee}),e[38]=r.nav.settings,e[39]=ee,e[40]=q):q=e[40];let te;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,$.jsx)(Xhe,{}),e[41]=te):te=e[41];let ne;e[42]===q?ne=e[43]:(ne=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[q,te]}),e[42]=q,e[43]=ne);let re=ne,ie;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,$.jsx)(yn,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),e[44]=ie):ie=e[44];let ae;e[45]!==w||e[46]!==S?(ae=(0,$.jsx)(y,{to:S,className:y5,title:w,"aria-label":w,children:ie}),e[45]=w,e[46]=S,e[47]=ae):ae=e[47];let oe;e[48]===r.nav.settings?oe=e[49]:(oe=(0,$.jsx)(`p`,{className:`text-[11px] font-medium uppercase tracking-wider text-fg-subtle`,children:r.nav.settings}),e[48]=r.nav.settings,e[49]=oe);let se;e[50]===B?se=e[51]:(se=(0,$.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:B}),e[50]=B,e[51]=se);let J;e[52]!==oe||e[53]!==se?(J=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[oe,se]}),e[52]=oe,e[53]=se,e[54]=J):J=e[54];let ce;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(ce=()=>f(!0),e[55]=ce):ce=e[55];let le;e[56]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,$.jsx)(Z_,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),e[56]=le):le=e[56];let ue;e[57]!==r.nav.settings||e[58]!==d?(ue=(0,$.jsx)(`button`,{type:`button`,className:y5,onClick:ce,"aria-label":r.nav.settings,"aria-expanded":d,children:le}),e[57]=r.nav.settings,e[58]=d,e[59]=ue):ue=e[59];let de;e[60]!==k||e[61]!==r.nav.settings||e[62]!==d||e[63]!==re?(de=d?(0,$.jsxs)(`div`,{className:`fixed inset-0 z-60 md:hidden`,role:`presentation`,children:[(0,$.jsx)(`button`,{type:`button`,className:`absolute inset-0 bg-scrim/45 backdrop-blur-[1px]`,onClick:()=>f(!1),"aria-label":r.nav.settings}),(0,$.jsxs)(`aside`,{className:`app-chrome-sidebar absolute inset-y-0 left-0 flex w-[min(20rem,calc(100vw-3rem))] flex-col bg-surface-rail shadow-float`,children:[(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 px-4 pb-2 pt-4`,children:[k,(0,$.jsx)(`button`,{type:`button`,className:y5,onClick:()=>f(!1),"aria-label":r.nav.settings,children:(0,$.jsx)(Aw,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0})})]}),re]})]}):null,e[60]=k,e[61]=r.nav.settings,e[62]=d,e[63]=re,e[64]=de):de=e[64];let fe=c&&`settings-page-rail-resizing`,pe;e[65]===fe?pe=e[66]:(pe=C(`app-chrome-sidebar relative hidden shrink-0 flex-col bg-surface-rail md:flex`,`md:h-full md:min-h-0 md:shrink-0 md:overflow-hidden`,`settings-page-rail`,fe),e[65]=fe,e[66]=pe);let me=`${o}px`,he;e[67]===me?he=e[68]:(he={"--settings-rail-px":me},e[67]=me,e[68]=he);let ge=he,_e=C(`flex shrink-0 items-center justify-between gap-2 pb-2 pt-4`,h.sidebarChromeDraggable&&`[-webkit-app-region:drag]`,g,m&&h.sidebarLeadingInsetClass?`pr-4`:`px-4`),ve;e[69]!==k||e[70]!==_e?(ve=(0,$.jsx)(`div`,{className:_e,children:k}),e[69]=k,e[70]=_e,e[71]=ve):ve=e[71];let ye=r.sidebar.resizeHandleAria,be=c&&`bg-surface-hover/30 before:bg-edge/80! dark:before:bg-edge/85!`,xe;e[72]===be?xe=e[73]:(xe=C(`pointer-events-auto absolute right-0 top-0 z-10 hidden h-full w-2 shrink-0 cursor-col-resize md:block`,`before:content-[''] before:pointer-events-none before:absolute before:left-1/2 before:top-0 before:z-0 before:h-full before:w-px before:-translate-x-1/2`,`before:bg-transparent before:transition-[background-color] before:duration-150`,`hover:bg-surface-hover/20 hover:before:bg-edge/65 dark:hover:before:bg-edge/75`,be,`transition-[background-color] duration-150`,`touch-none select-none`,Je),e[72]=be,e[73]=xe);let Se;e[74]!==r.sidebar.resizeHandleAria||e[75]!==b||e[76]!==xe?(Se=(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":ye,onPointerDown:b,className:xe}),e[74]=r.sidebar.resizeHandleAria,e[75]=b,e[76]=xe,e[77]=Se):Se=e[77];let Ce;e[78]!==re||e[79]!==pe||e[80]!==ge||e[81]!==ve||e[82]!==Se?(Ce=(0,$.jsxs)(`div`,{className:pe,style:ge,children:[ve,re,Se]}),e[78]=re,e[79]=pe,e[80]=ge,e[81]=ve,e[82]=Se,e[83]=Ce):Ce=e[83];let we;return e[84]===R?we=e[85]:(we=(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain bg-surface-panel scrollbar-gutter-both`,children:R?(0,$.jsx)(_,{to:`/settings/overview`,replace:!0}):(0,$.jsx)(p,{})}),e[84]=R,e[85]=we),(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden md:flex-row`,children:[(0,$.jsxs)(`div`,{className:C(`flex shrink-0 items-center gap-2 border-b border-edge-subtle bg-surface-panel px-3 py-2 md:hidden`,h.mainHeaderDraggable&&`[-webkit-app-region:drag]`),children:[ae,J,ue]}),de,Ce,we]})});function pge(e){return e.language}function mge(e){return e.mode}function hge(e){return e.widthPx}function gge(e){return e.setWidthPx}var _ge=(0,Z.memo)(function(e){let t=(0,Q.c)(26),{children:n}=e,r=m(),i=u(),a=I(vge),o;t[0]===a?o=t[1]:(o=j(a),t[0]=a,t[1]=o);let s=o,c;t[2]===i.state?c=t[3]:(c=m5(i.state),t[2]=i.state,t[3]=c);let l=c,d=f5(aE),f,p;t[4]!==l||t[5]!==r?(f=()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),r(l))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},p=[r,l],t[4]=l,t[5]=r,t[6]=f,t[7]=p):(f=t[6],p=t[7]),(0,Z.useEffect)(f,p);let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=[],t[8]=h):h=t[8],(0,Z.useEffect)(yge,h);let g;t[9]!==l||t[10]!==r?(g=(0,$.jsx)(`div`,{role:`presentation`,className:`absolute inset-0 z-40 bg-scrim/55 backdrop-blur-[2px] dark:bg-black/50`,onClick:()=>r(l)}),t[9]=l,t[10]=r,t[11]=g):g=t[11];let _=g,v;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(v=C(`relative z-50 flex min-h-0 flex-1 flex-col overflow-hidden bg-surface-panel`,`max-md:shadow-elevated`,`md:m-3 md:max-h-[calc(100dvh-1.5rem)] md:rounded-2xl md:border md:border-edge md:shadow-elevated`,`settings-sheet-enter`),t[12]=v):v=t[12];let y;t[13]===n?y=t[14]:(y=(0,$.jsx)(hE,{layer:`page`,children:n}),t[13]=n,t[14]=y);let b;t[15]!==s.nav.settings||t[16]!==y?(b=(0,$.jsx)(`div`,{className:v,role:`dialog`,"aria-modal":`true`,"aria-label":s.nav.settings,children:y}),t[15]=s.nav.settings,t[16]=y,t[17]=b):b=t[17];let x=b,S;t[18]!==x||t[19]!==_?(S=(0,$.jsxs)($.Fragment,{children:[_,x]}),t[18]=x,t[19]=_,t[20]=S):S=t[20];let w=S;if(d){let e;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(e=C(`fixed inset-0 flex min-h-0 flex-col bg-surface-base`,oE),t[21]=e):e=t[21];let n;return t[22]===w?n=t[23]:(n=(0,We.createPortal)((0,$.jsx)(`div`,{className:e,children:w}),document.body),t[22]=w,t[23]=n),n}let T;return t[24]===w?T=t[25]:(T=(0,$.jsx)(`div`,{className:`relative flex min-h-0 min-h-[100dvh] flex-1 flex-col md:min-h-0`,children:w}),t[24]=w,t[25]=T),T});function vge(e){return e.language}function yge(){let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}var x5=`image/*,application/pdf,.docx,.pptx,.xlsx,.xls,.txt,.md,.json,.xml,.html,.css,.js,.ts,.jsx,.tsx,.yml,.yaml,.zip`,bge=x5.split(`,`).flatMap(e=>{let t=e.trim();return t?[t]:[]});function xge(e){return`${e.name}\0${e.size}`}function Sge(e){let t=(e.type||``).toLowerCase(),n=e.name.toLowerCase();for(let e of bge){let r=e.toLowerCase();if(r.endsWith(`/*`)){let e=r.slice(0,-1);if(t.startsWith(e))return!0}else if(e.startsWith(`.`)){if(n.endsWith(e.toLowerCase()))return!0}else if(t===r)return!0}return!1}function Cge(e){if(!e)return[];let t=new Set,n=[],r=e=>{if(!e||e.size===0)return;let r=xge(e);t.has(r)||(t.add(r),n.push(e))},{files:i}=e;if(i?.length)for(let e=0;e<i.length;e++)r(i.item(e));for(let t of Array.from(e.items??[]))t.kind===`file`&&r(t.getAsFile());return n}var S5=``,C5=``,w5=RegExp(`^\\/skill:(${r$})`);function wge(e){return!!e.dataset.skill}function Tge(e){return!!e.dataset.file}function Ege(e){return e.dataset.slashCommand!=null&&e.dataset.slashCommand!==``}function Dge(e){let t=e.replace(/\/$/,``);return`@${t.split(`/`).pop()??t}`}function T5(e){let t=``;for(let n of e)if(n){if(t.length>0){let e=t[t.length-1],r=n[0];if(!/\s/.test(e)&&!/\s/.test(r)){let e=QQ(t)||/\/skill:\S+$/.test(t)||v$(t),r=n.startsWith(`@file:`)||n.startsWith(`/skill:`)||y$(n);(e||r)&&(t+=` `)}}t+=n}return t}function E5(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;let t=e.tagName;return t===`DIV`||t===`P`||t===`PRE`||t===`BLOCKQUOTE`}function Oge(e,t){if(e.nodeType===Node.TEXT_NODE)t.push((e.textContent??``).replaceAll(S5,``));else if(e.nodeType===Node.ELEMENT_NODE){let n=e;if(wge(n)){let e=n.dataset.skill??``;e&&t.push(`/skill:${e}`)}else if(Tge(n)){let e=n.dataset.file??``;e&&t.push(`@file:${e$(e)}`)}else if(Ege(n)){let e=n.dataset.slashCommand??``;e&&t.push(`/${e}`)}else n.tagName===`BR`?t.push(`
|
|
148
|
-
`):D5(n,t)}}function D5(e,t){let n=Array.from(e.childNodes);for(let e=0;e<n.length;e++){let r=n[e],i=n[e+1];Oge(r,t),i!=null&&(E5(r)||E5(i))&&t.push(`
|
|
149
|
-
`)}}function O5(e,t){D5(e,t)}function k5(e){let t=[];return O5(e,t),T5(t).replaceAll(C5,``)}function kge(e){let t=window.getSelection();if(!t)return;let n=document.createRange(),r=e.firstChild;r&&r.nodeType===Node.TEXT_NODE?(n.setStart(r,0),n.collapse(!0)):(n.setStart(e,0),n.collapse(!0)),t.removeAllRanges(),t.addRange(n)}function A5(e){let t=k5(e);return t.length>0||e.childNodes.length===0?t:(M5(e,``),kge(e),``)}function Age(e){let t=new Set,n=a$(),r;for(;(r=n.exec(e))!==null;){let e=r[1];e&&t.add(e)}return t}function j5(e){let t=window.getSelection();if(!t||t.rangeCount===0)return k5(e).length;let n=t.getRangeAt(0),r=document.createTextNode(C5);try{n.insertNode(r)}catch{return k5(e).length}let i=[];O5(e,i);let a=T5(i);r.parentNode?.removeChild(r);let o=a.indexOf(C5);return o>=0?o:a.replaceAll(C5,``).length}function jge(e,t){let n=document.createElement(`span`);n.contentEditable=`false`,n.dataset.skill=t,n.className=`chat-skill-pill`,n.textContent=`/${t}`,e.appendChild(n),e.appendChild(document.createTextNode(S5))}function Mge(e,t){let n=document.createElement(`span`);n.contentEditable=`false`,n.dataset.file=t,n.className=`chat-file-pill`,n.textContent=Dge(t),e.appendChild(n),e.appendChild(document.createTextNode(S5))}function Nge(e,t){let n=document.createElement(`span`);n.contentEditable=`false`,n.dataset.slashCommand=t,n.className=`chat-command-pill`,n.textContent=`/${t}`,e.appendChild(n),e.appendChild(document.createTextNode(S5))}function Pge(e){let t=[],n=n=>{let r,i=new RegExp(n.source,n.flags);for(;(r=i.exec(e))!==null;)t.push({start:r.index,end:r.index+r[0].length})};n(a$()),n(t$());for(let n of _$(e))t.push(n);return t.sort((e,t)=>e.start-t.start),t}function Fge(e,t){for(let{start:n,end:r}of Pge(e))if(t>n&&t<=r)return{wire:e.slice(0,n)+e.slice(r),caret:n};return null}function Ige(e,t){if(t<=0)return null;let n=e.slice(0,t),r=r=>{let i=n.match(r);if(i?.[1]){let r=i[1],a=n.length-r.length;return{wire:e.slice(0,a)+e.slice(t),caret:a}}return null},i=[o$,YQ];for(let e of i){let t=r(e);if(t)return t}let a=S$(n);if(a){let n=a.tokenStart;return{wire:e.slice(0,n)+e.slice(t),caret:n}}if(t===e.length){let r=[s$,XQ];for(let i of r){let r=n.match(i);if(r?.[1]){let i=r[0],a=n.length-i.length;return{wire:e.slice(0,a)+e.slice(t),caret:a}}}let i=C$(n);if(i){let n=i.tokenStart;return{wire:e.slice(0,n)+e.slice(t),caret:n}}}return null}function Lge(e){let t=window.getSelection();if(!t||t.rangeCount===0||!t.isCollapsed)return!1;let n=t.getRangeAt(0),r=k5(e),i=j5(e);i===0&&r.length>0&&n.startContainer===e&&n.startOffset===e.childNodes.length&&(i=r.length);let a=Fge(r,i);return a||=Ige(r,i),a?(M5(e,a.wire,a.caret),e.dispatchEvent(new InputEvent(`input`,{bubbles:!0})),!0):!1}function Rge(e,t){let n=e.slice(t);return w5.test(n)||n$.test(n)?!0:g$(e,t)!=null}function zge(e,t,n){let r=t.slice(n),i=[],a=r.match(w5);a?.[0]&&i.push({len:a[0].length,apply:()=>jge(e,a[1]??``)});let o=r.match(n$);o?.[0]&&i.push({len:o[0].length,apply:()=>Mge(e,$Q(o))});let s=g$(t,n);if(s&&i.push({len:s.len,apply:()=>Nge(e,s.matchedKey)}),i.length===0){let r=n+1;for(;r<t.length&&!Rge(t,r);)r+=1;let i=t.slice(n,r);return i&&e.appendChild(document.createTextNode(i)),r}return i.sort((e,t)=>t.len-e.len),i[0].apply(),n+i[0].len}function M5(e,t,n){e.replaceChildren();let r=t;if(n!==void 0){let e=Math.max(0,Math.min(n,t.length));r=t.slice(0,e)+C5+t.slice(e)}let i=0;for(;i<r.length;)i=zge(e,r,i);if(n===void 0)return;let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o;for(;o=a.nextNode();){let e=o.textContent??``,t=-1;for(let n=0;n<e.length;n++)if(e[n]===C5){t=n;break}if(t>=0){let n=o;n.textContent=e.slice(0,t)+e.slice(t+1);let r=window.getSelection(),i=document.createRange();i.setStart(n,t),i.collapse(!0),r?.removeAllRanges(),r?.addRange(i);return}}}function Bge(e,t){for(let n of e)if(n.isActive()&&n.handleKey(t))return!0;return!1}var Vge=8*1024,Hge=80,Uge=2*1024,Wge=20;function Gge(e){let t=e.trimStart().slice(0,8*1024);if(/^(?:<!doctype\s+html\b|<(?:html|head|body)\b)/i.test(t)||/^<(?:div|span|section|main|article|script|style)\b/i.test(t))return`html`;let n=e.trim();return(n.startsWith(`{`)&&n.endsWith(`}`)||n.startsWith(`[`)&&n.endsWith(`]`))&&/[\":,]/.test(t)?`json`:/(?:^|\n)\s*(?:(?:import|export|const|let|var|function|class|interface|type|def|SELECT|CREATE)\b|#!\/)/m.test(t)||/(?:=>|\{\s*$|;\s*$)/m.test(t)?`code`:`text`}function Kge(e){let t=new TextEncoder().encode(e).byteLength,n=e.split(/\r\n|\n|\r/).length,r=Gge(e);return t>=Vge||n>=Hge||r!==`text`&&(t>=Uge||n>=Wge)?{text:e,...r===`html`?{name:`pasted-text.html`,mimeType:`text/html`}:r===`json`?{name:`pasted-text.json`,mimeType:`application/json`}:r===`code`?{name:`pasted-code.txt`,mimeType:`text/plain`}:{name:`pasted-text.txt`,mimeType:`text/plain`},byteLength:t,lineCount:n}:null}function N5(e,t){e.classList.toggle(`composer-input-empty`,t.length===0)}function qge(e){let{disabled:t,autoFocusKey:n,welcomeDraftSeed:r,onExternalTextReplace:i,shouldSyncSelectionRef:a}=e,[o,s]=(0,Z.useState)(``),[c,l]=(0,Z.useState)(0),[u,d]=(0,Z.useState)(!1),f=(0,Z.useRef)(null),p=(0,Z.useRef)(o),m=(0,Z.useRef)(c),h=(0,Z.useRef)(0),g=(0,Z.useRef)(!0),_=(0,Z.useRef)(null);p.current=o,m.current=c;let v=(0,Z.useCallback)(()=>{let e=f.current;e&&(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,128)}px`)},[]),y=(0,Z.useCallback)(e=>{let t=e?.nextText??``,n=e?.caretOffset??t.length;s(t),p.current=t,l(n),requestAnimationFrame(()=>{let r=f.current;r&&(M5(r,t,n),N5(r,t),e?.focus&&r.focus({preventScroll:!0})),v()})},[v]);(0,Z.useEffect)(()=>{v()},[o,v]);let b=(0,Z.useRef)(r?.id??0);return r&&r.id!==b.current&&(b.current=r.id,h.current=r.id,i?.(),y({nextText:r.text,focus:!0})),(0,Z.useLayoutEffect)(()=>{if(t){g.current=!0;return}let e=n??null,r=g.current,i=e!=null&&e!==_.current;if(!r&&!i)return;g.current=!1,e!=null&&(_.current=e);let a=requestAnimationFrame(()=>{typeof globalThis.matchMedia==`function`&&globalThis.matchMedia(`(hover: hover) and (pointer: fine)`).matches&&f.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(a)},[t,n]),(0,Z.useEffect)(()=>{let e=f.current;if(!e)return;let t=!1,n=null,r=!1,i=-1,o=()=>{if(n=null,r=!1,document.activeElement!==e)return;let t=j5(e);m.current=t,t!==i&&(i=t,a.current&&l(t))},s=()=>{t&&(r||(r=!0,n=requestAnimationFrame(o)))},c=()=>{t||(t=!0,document.addEventListener(`selectionchange`,s),s())},u=()=>{t&&(t=!1,document.removeEventListener(`selectionchange`,s),n!=null&&cancelAnimationFrame(n),n=null,r=!1)},d=()=>c(),p=()=>u();return e.addEventListener(`focus`,d),e.addEventListener(`blur`,p),document.activeElement===e&&c(),()=>{e.removeEventListener(`focus`,d),e.removeEventListener(`blur`,p),u()}},[a]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;typeof t?.text!=`string`||t.text.length===0||(i?.(),y({nextText:t.text,focus:!0}))};return window.addEventListener(Jq,e),()=>window.removeEventListener(Jq,e)},[i,y]),{value:o,cursor:c,isComposing:u,setIsComposing:d,editorRef:f,valueRef:p,setValue:s,setCursor:l,adjustHeight:v,resetEditor:y,onWireInput:(0,Z.useCallback)((e,t)=>{p.current=e,s(e),l(t)},[])}}var Jge=(0,Z.memo)(function(e){let t=(0,Q.c)(28),{editorRef:n,disabled:r,placeholder:i,ariaLabel:a,onWireInput:o,adjustHeight:s,processFiles:c,processPastedText:l,setIsComposing:u,kbdRef:d,chatMessages:f}=e,p=(0,Z.useRef)(!1),m=a??i,h=!r,g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=C(`composer-input box-border m-0 max-h-32 min-h-16 w-full overflow-y-auto border-0 bg-transparent px-0 py-2 text-[0.9375rem] leading-6 text-fg focus:outline-none focus:ring-0 disabled:opacity-50`,`composer-input-empty`),t[0]=g):g=t[0];let _;t[1]!==s||t[2]!==o?(_=e=>{let t=e.currentTarget,n=p.current?k5(t):A5(t);N5(t,n),o(n,j5(t)),s()},t[1]=s,t[2]=o,t[3]=_):_=t[3];let v;t[4]===u?v=t[5]:(v=()=>{p.current=!0,u(!0)},t[4]=u,t[5]=v);let y;t[6]!==s||t[7]!==n||t[8]!==o||t[9]!==u?(y=()=>{p.current=!1,u(!1),queueMicrotask(()=>{let e=n.current;if(!e||p.current)return;let t=A5(e);N5(e,t),o(t,j5(e)),s()})},t[6]=s,t[7]=n,t[8]=o,t[9]=u,t[10]=y):y=t[10];let b;t[11]!==f||t[12]!==c||t[13]!==l?(b=async e=>{let t=e.clipboardData,n=Cge(t??null),r=n.filter(Sge);if(r.length>0){e.preventDefault(),await c(r);return}if(n.length>0){e.preventDefault(),IR(`warning`,f.clipboardFileTypeUnsupported);return}let i=t?.getData(`text/plain`);if(i){e.preventDefault();let t=Kge(i);if(t){await l(t);return}document.execCommand(`insertText`,!1,i)}},t[11]=f,t[12]=c,t[13]=l,t[14]=b):b=t[14];let x;t[15]!==n||t[16]!==d?(x=e=>{let t=d.current;if(e.key===`Backspace`&&!t.isComposing&&n.current&&Lge(n.current)){e.preventDefault();return}if(Bge(t.adapters,e))return;if(e.key===`Tab`&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!t.isComposing&&!t.valueRef.current.trim()&&t.acceptEmptySuggestion?.()){e.preventDefault();return}if(!t.isComposing&&(e.key===`ArrowUp`||e.key===`ArrowDown`)){let n=e.key===`ArrowUp`?`up`:`down`;if(t.tryInputHistoryArrow?.(n)){e.preventDefault(),t.adjustHeight();return}}if(e.key===`Escape`&&!t.isComposing&&t.editingFollowUpId){e.preventDefault(),t.onCancelEditFollowUp?.();return}if(e.key===`Enter`&&e.shiftKey&&!t.isComposing){e.preventDefault(),document.execCommand(`insertText`,!1,`
|
|
150
|
-
`);return}let r=typeof KeyboardEvent<`u`&&e.nativeEvent instanceof KeyboardEvent&&e.nativeEvent.isComposing;if(e.key===`Enter`&&!e.shiftKey&&!t.isComposing&&!r){e.preventDefault();let n=!!(t.valueRef.current.trim()||t.attachmentsLen>0);if(t.runBusy||t.pendingFollowUpsCount>0){if((e.metaKey||e.ctrlKey)&&n){t.interruptDraft?.();return}if(!e.metaKey&&!e.ctrlKey&&!e.altKey&&n){t.flushSteeringDraft?.();return}return}n&&t.send()}},t[15]=n,t[16]=d,t[17]=x):x=t[17];let S;return t[18]!==n||t[19]!==i||t[20]!==m||t[21]!==h||t[22]!==_||t[23]!==v||t[24]!==y||t[25]!==b||t[26]!==x?(S=(0,$.jsx)(`div`,{ref:n,role:`textbox`,"aria-multiline":`true`,"aria-label":m,contentEditable:h,suppressContentEditableWarning:!0,spellCheck:!0,className:g,"data-placeholder":i,onInput:_,onCompositionStart:v,onCompositionEnd:y,onPaste:b,onKeyDown:x}),t[18]=n,t[19]=i,t[20]=m,t[21]=h,t[22]=_,t[23]=v,t[24]=y,t[25]=b,t[26]=x,t[27]=S):S=t[27],S});function Yge(e){return e.flatMap(e=>{if(!e||typeof e!=`object`)return[];let t=e;return typeof t.id!=`string`||typeof t.clientMessageId!=`string`||typeof t.content!=`string`||typeof t.version!=`number`||t.effectiveDelivery!==`next`&&t.effectiveDelivery!==`steer`||t.status!==`queued`&&t.status!==`interrupted`?[]:[{id:t.id,clientMessageId:t.clientMessageId,text:t.content,attachments:Array.isArray(t.attachments)?t.attachments:void 0,thinkingLevel:typeof t.thinking==`string`?t.thinking:void 0,version:t.version,delivery:t.effectiveDelivery,status:t.status}]})}var Xge=(0,Z.memo)(function(e){let t=(0,Q.c)(38),{items:n,disabled:r,editingFollowUpId:i,onEditInComposer:a,onRemove:o,onMove:s,onReorder:c,onSteer:l,steeringBusyId:u}=e,d=I(Zge),f;t[0]===d?f=t[1]:(f=j(d),t[0]=d,t[1]=f);let p=f,m=Qge,h;t[2]===c?h=t[3]:(h=e=>t=>{t.preventDefault();let n=t.dataTransfer.getData(`text/plain`);if(!n.startsWith(`xopc-followup:`))return;let r=Number.parseInt(n.slice(14),10);Number.isNaN(r)||r===e||c(r,e)},t[2]=c,t[3]=h);let g=h;if(n.length===0)return null;let _=p.chat.followUpQueueAria,v;t[4]===p.chat.followUpQueueHeading?v=t[5]:(v=(0,$.jsx)(`span`,{className:`text-[0.65rem] font-medium uppercase tracking-wide text-fg-muted`,children:p.chat.followUpQueueHeading}),t[4]=p.chat.followUpQueueHeading,t[5]=v);let y;t[6]===n.length?y=t[7]:(y=(0,$.jsxs)(`span`,{className:`tabular-nums text-[0.65rem] text-fg-muted`,children:[n.length,`/`,10]}),t[6]=n.length,t[7]=y);let b;t[8]!==v||t[9]!==y?(b=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-1 pb-0.5`,children:[v,y]}),t[8]=v,t[9]=y,t[10]=b):b=t[10];let x;t[11]!==r||t[12]!==i||t[13]!==n||t[14]!==p.chat.followUpQueueAttachmentOnly||t[15]!==p.chat.followUpQueueClickToEdit||t[16]!==p.chat.followUpQueueDrag||t[17]!==p.chat.followUpQueueEmptyPreview||t[18]!==p.chat.followUpQueueMoveDown||t[19]!==p.chat.followUpQueueMoveUp||t[20]!==p.chat.followUpQueueRemove||t[21]!==p.chat.followUpQueueSteerNow||t[22]!==p.chat.followUpStatusInterrupted||t[23]!==g||t[24]!==a||t[25]!==s||t[26]!==o||t[27]!==l||t[28]!==u?(x=n.map((e,t)=>{let c=e.status===`queued`,d=c||e.status===`interrupted`,f=n.filter($ge),h=f.findIndex(t=>t.id===e.id),_=d&&!e.attachments?.length&&e.text.trim().length>0,v=u===e.id,y=e.status===`interrupted`?p.chat.followUpStatusInterrupted:null,b=e.text.trim();return!b&&e.attachments?.length&&(b=e.attachments[0]?.name?.trim()||p.chat.followUpQueueAttachmentOnly),b||=p.chat.followUpQueueEmptyPreview,(0,$.jsxs)(`div`,{role:`listitem`,onDragOver:m,onDrop:r||!c?void 0:g(t),className:C(`flex h-7 items-center gap-1 rounded border px-1`,i===e.id?`border-accent/50 bg-accent-soft/20 dark:border-accent/50 dark:bg-accent-soft/10`:`border-edge-subtle/80 bg-surface-hover/25 dark:border-edge-subtle/90 dark:bg-surface-hover/15`),children:[(0,$.jsx)(`div`,{draggable:!r&&c,onDragStart:e=>{e.dataTransfer.setData(`text/plain`,`xopc-followup:${t}`),e.dataTransfer.effectAllowed=`move`},className:C(`flex shrink-0 cursor-grab items-center active:cursor-grabbing`,(r||!c)&&`cursor-not-allowed opacity-40`),title:p.chat.followUpQueueDrag,children:(0,$.jsx)(om,{className:`size-3.5 text-fg-muted`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!c,title:p.chat.followUpQueueClickToEdit,"aria-label":p.chat.followUpQueueClickToEdit,className:C(`h-6 min-w-0 flex-1 truncate rounded px-1.5 text-left text-[0.75rem] leading-none text-fg hover:bg-surface-panel/60 dark:hover:bg-surface-panel/40`,aT.press,aT.focusRingPanel,`disabled:pointer-events-none disabled:opacity-50`),onClick:()=>a(e.id),children:e.attachments?.length?(0,$.jsxs)(`span`,{className:`inline-flex max-w-full items-center gap-1`,children:[(0,$.jsx)(Kd,{className:`size-3 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:b})]}):(0,$.jsx)(`span`,{className:`block truncate`,children:b})}),y?(0,$.jsx)(`span`,{className:`shrink-0 rounded bg-surface-panel px-1.5 py-0.5 text-[0.625rem] text-fg-muted`,children:y}):null,(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px`,children:[(0,$.jsx)(`button`,{type:`button`,disabled:r||!c||h===0,className:C(`inline-flex size-6 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,aT.press,aT.focusRingPanel,`disabled:pointer-events-none disabled:opacity-25`),title:p.chat.followUpQueueMoveUp,"aria-label":p.chat.followUpQueueMoveUp,onClick:t=>{t.stopPropagation(),s(e.id,`up`)},children:(0,$.jsx)(_o,{className:`size-3.5`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!c||h>=f.length-1,className:C(`inline-flex size-6 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,aT.press,aT.focusRingPanel,`disabled:pointer-events-none disabled:opacity-25`),title:p.chat.followUpQueueMoveDown,"aria-label":p.chat.followUpQueueMoveDown,onClick:t=>{t.stopPropagation(),s(e.id,`down`)},children:(0,$.jsx)(fo,{className:`size-3.5`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!_||v,className:C(`inline-flex size-6 items-center justify-center rounded text-accent-fg hover:bg-accent-soft/80`,aT.press,aT.focusRingPanel,`disabled:pointer-events-none disabled:opacity-35`),title:p.chat.followUpQueueSteerNow,"aria-label":p.chat.followUpQueueSteerNow,onClick:t=>{t.stopPropagation(),l(e.id)},children:(0,$.jsx)(Yy,{className:C(`size-3.5`,v&&`animate-pulse`),"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!d,className:C(`inline-flex size-6 items-center justify-center rounded text-fg-muted hover:bg-red-500/15 hover:text-red-600 dark:hover:text-red-400`,aT.press,aT.focusRingPanel),title:p.chat.followUpQueueRemove,"aria-label":p.chat.followUpQueueRemove,onClick:t=>{t.stopPropagation(),o(e.id)},children:(0,$.jsx)(Aw,{className:`size-3.5`,"aria-hidden":!0})})]})]},e.id)}),t[11]=r,t[12]=i,t[13]=n,t[14]=p.chat.followUpQueueAttachmentOnly,t[15]=p.chat.followUpQueueClickToEdit,t[16]=p.chat.followUpQueueDrag,t[17]=p.chat.followUpQueueEmptyPreview,t[18]=p.chat.followUpQueueMoveDown,t[19]=p.chat.followUpQueueMoveUp,t[20]=p.chat.followUpQueueRemove,t[21]=p.chat.followUpQueueSteerNow,t[22]=p.chat.followUpStatusInterrupted,t[23]=g,t[24]=a,t[25]=s,t[26]=o,t[27]=l,t[28]=u,t[29]=x):x=t[29];let S;t[30]!==n||t[31]!==p.chat.followUpQueueAttachmentsNote?(S=n.some(e_e)?(0,$.jsx)(`p`,{className:`px-1 pt-0.5 text-[0.65rem] leading-tight text-fg-muted`,children:p.chat.followUpQueueAttachmentsNote}):null,t[30]=n,t[31]=p.chat.followUpQueueAttachmentsNote,t[32]=S):S=t[32];let w;return t[33]!==p.chat.followUpQueueAria||t[34]!==b||t[35]!==x||t[36]!==S?(w=(0,$.jsxs)(`div`,{className:`space-y-0.5 px-2 py-1.5`,role:`list`,"aria-label":_,children:[b,x,S]}),t[33]=p.chat.followUpQueueAria,t[34]=b,t[35]=x,t[36]=S,t[37]=w):w=t[37],w});function Zge(e){return e.language}function Qge(e){e.preventDefault(),e.dataTransfer.dropEffect=`move`}function $ge(e){return e.status===`queued`}function e_e(e){return e.attachments?.length}function P5(e){let t=(0,Q.c)(14),{attachments:n,topPadded:r,onRemove:i}=e,a=I(t_e),o;t[0]===a?o=t[1]:(o=j(a),t[0]=a,t[1]=o);let s=o.chat;if(n.length===0)return null;let c=r?`pt-2`:`pt-3`,l;t[2]===c?l=t[3]:(l=C(`flex flex-wrap gap-2 border-b border-edge-subtle/90 bg-surface-hover/20 px-4 pb-2 dark:border-edge-subtle`,c),t[2]=c,t[3]=l);let u;if(t[4]!==n||t[5]!==s||t[6]!==i){let e;t[8]!==s||t[9]!==i?(e=(e,t)=>(0,$.jsxs)(`div`,{className:`flex max-w-[200px] items-center gap-1.5 rounded-lg bg-surface-hover px-2 py-1 text-xs dark:bg-surface-hover/80`,children:[e.mimeType?.startsWith(`image/`)&&e.content?(0,$.jsx)(`img`,{src:`data:${e.mimeType};base64,${e.content}`,alt:``,className:`size-6 rounded object-cover`}):e.type===`voice`||e.mimeType?.startsWith(`audio/`)?(0,$.jsx)(jv,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):e.type===`pasted_text`?(0,$.jsx)(ad,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):(0,$.jsx)(Kd,{className:`size-3.5 shrink-0 text-fg-muted`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.type===`pasted_text`?s.pastedText:e.name}),(0,$.jsx)(`span`,{className:`text-fg-disabled`,children:mP(e.size)}),(0,$.jsx)(`button`,{type:`button`,className:`text-fg-muted hover:text-fg`,onClick:()=>i(t),children:`×`})]},e.id??`${e.name}-${e.size}-${e.mimeType}-${e.content?.slice(0,16)??``}`),t[8]=s,t[9]=i,t[10]=e):e=t[10],u=n.map(e),t[4]=n,t[5]=s,t[6]=i,t[7]=u}else u=t[7];let d;return t[11]!==l||t[12]!==u?(d=(0,$.jsx)(`div`,{className:l,children:u}),t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function t_e(e){return e.language}var n_e=4;function F5(e){return!Number.isFinite(e)||e<=0?0:Math.ceil(e/n_e)}function r_e(e){return e.inputTokens!=null||e.outputTokens!=null?(e.inputTokens??0)+(e.outputTokens??0):e.totalTokens==null?null:e.totalTokens}function I5(e){let t=0;for(let n of e.content)n.type===`text`||n.type===`thinking`?t+=n.text.length:n.type===`tool_use`&&(t+=JSON.stringify(n.input??``).length,n.result!=null&&(t+=typeof n.result==`string`?n.result.length:JSON.stringify(n.result).length));if(e.attachments?.length)for(let n of e.attachments)t+=(n.extractedText?.length??0)+(n.name?.length??0);return F5(t)}function i_e(e,t=0){for(let n=e.length-1;n>=0;n--){let r=e[n];if(r.role!==`assistant`||!r.usage)continue;let i=r_e(r.usage);if(i==null||i<=0)continue;let a=0;for(let t=n+1;t<e.length;t++)a+=I5(e[t]);return i+a+F5(t)}let n=0;for(let t of e)n+=I5(t);return n+F5(t)}function L5(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}var R5=7,z5=2.25,B5=2*Math.PI*R5;function V5(e){if(!Number.isFinite(e)||e<0)return`0`;if(e>=1e6){let t=e/1e6;return`${t>=10?Math.round(t):t.toFixed(1)}M`.replace(/\.0M$/,`M`)}if(e>=1e4)return`${Math.round(e/1e3)}k`;if(e>=1e3){let t=e/1e3;return`${t>=10?Math.round(t):t.toFixed(1)}k`.replace(/\.0k$/,`k`)}return String(Math.round(e))}function a_e(e,t){if(!Number.isFinite(e)||!Number.isFinite(t)||t<=0)return`0`;let n=Math.min(100,Math.max(0,100*e/t));return n>=10||n===0?String(Math.round(n)):n.toFixed(1).replace(/\.0$/,``)}var o_e=(0,Z.memo)(function(e){let t=(0,Q.c)(35),{sessionModel:n,messages:r,draftChars:i,chat:a,disabled:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={revalidateOnFocus:!1},t[0]=s):s=t[0];let{data:c}=xe(N8,F8,s),l;t[1]===c?l=t[2]:(l=c===void 0?[]:c,t[1]=c,t[2]=l);let u=l,d;t[3]!==u||t[4]!==n?(d=u.find(e=>e.id===n)?.contextWindow,t[3]=u,t[4]=n,t[5]=d):d=t[5];let f=d,p=i_e(r,i),m=(f!=null&&f>0?Math.min(1,Math.max(0,p/f)):0)*B5,h;bb0:{if(f!=null&&f>0){let e;t[6]!==a.contextWindowAriaSummary||t[7]!==f||t[8]!==p?(e=L5(a.contextWindowAriaSummary,{used:V5(p),limit:V5(f)}),t[6]=a.contextWindowAriaSummary,t[7]=f,t[8]=p,t[9]=e):e=t[9],h=e;break bb0}let e;t[10]!==a.contextWindowAriaSummaryNoLimit||t[11]!==p?(e=L5(a.contextWindowAriaSummaryNoLimit,{used:V5(p)}),t[10]=a.contextWindowAriaSummaryNoLimit,t[11]=p,t[12]=e):e=t[12],h=e}let g=h,_;bb1:{if(f!=null&&f>0){let e;t[13]!==a.contextWindowHoverShort||t[14]!==f||t[15]!==p?(e=L5(a.contextWindowHoverShort,{percent:a_e(p,f)}),t[13]=a.contextWindowHoverShort,t[14]=f,t[15]=p,t[16]=e):e=t[16],_=e;break bb1}let e;t[17]!==a.contextWindowHoverNoLimit||t[18]!==p?(e=L5(a.contextWindowHoverNoLimit,{used:V5(p)}),t[17]=a.contextWindowHoverNoLimit,t[18]=p,t[19]=e):e=t[19],_=e}let v=_,y=o||void 0,b=o&&`cursor-default opacity-40`,x;t[20]===b?x=t[21]:(x=C(`inline-flex size-7 shrink-0 items-center justify-center rounded-md text-fg-subtle`,`hover:bg-surface-hover hover:text-fg-muted`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,b),t[20]=b,t[21]=x);let S;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(`circle`,{cx:`9`,cy:`9`,r:R5,fill:`none`,stroke:`currentColor`,className:`text-fg-subtle opacity-[0.35]`,strokeWidth:z5}),t[22]=S):S=t[22];let w=`${m} ${B5}`,T;t[23]===w?T=t[24]:(T=(0,$.jsxs)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 18 18`,className:`shrink-0`,"aria-hidden":!0,children:[S,(0,$.jsx)(`circle`,{cx:`9`,cy:`9`,r:R5,fill:`none`,stroke:`currentColor`,className:`text-fg-muted`,strokeWidth:z5,strokeLinecap:`round`,strokeDasharray:w,transform:`rotate(-90 9 9)`})]}),t[23]=w,t[24]=T);let E;t[25]!==g||t[26]!==T||t[27]!==y||t[28]!==x?(E=(0,$.jsx)(CK,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,"aria-disabled":y,"aria-label":g,className:x,children:T})}),t[25]=g,t[26]=T,t[27]=y,t[28]=x,t[29]=E):E=t[29];let D;t[30]===v?D=t[31]:(D=(0,$.jsx)(wK,{children:(0,$.jsx)(TK,{side:`top`,sideOffset:6,collisionPadding:12,className:`!z-[10000] whitespace-nowrap rounded-lg border border-edge bg-surface-panel px-2 py-1 text-xs font-medium text-fg shadow-md`,children:v})}),t[30]=v,t[31]=D);let O;return t[32]!==E||t[33]!==D?(O=(0,$.jsx)(xK,{delayDuration:280,children:(0,$.jsxs)(SK,{children:[E,D]})}),t[32]=E,t[33]=D,t[34]=O):O=t[34],O});function s_e(e){return`${e.id} ${e.name} ${e.provider}`.toLowerCase()}function c_e(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=n.split(/\s+/).filter(Boolean);return e.filter(e=>{let t=s_e(e);return r.every(e=>t.includes(e))})}function l_e(e,t,n){if(t!==`vision`)return e;let r=e.filter(e=>e.vision===!0);if(!n||r.some(e=>e.id===n))return r;let i=e.find(e=>e.id===n);if(i)return[i,...r];let a=n.indexOf(`/`),o=a>=0?n.slice(0,a):``;return[{id:n,name:(a>=0?n.slice(a+1):n)||n,provider:o||`—`,vision:!1},...r]}function H5(e){let t=(0,Q.c)(89),{value:n,disabled:r,placeholder:i,searchPlaceholder:a,noMatches:o,models:s,modelsLoading:c,modelsError:l,capabilitiesFilter:u,outOfFilterNote:d,registryEmptyHint:f,compact:p,showProviderInTrigger:h,contentSide:g,contentAlign:_,className:v,popoverContentClassName:y,showProviderSettingsFooter:b,settingsFooterLink:x,onChange:w}=e,T=h===void 0?!0:h,E=g===void 0?`bottom`:g,D=_===void 0?`end`:_,O=m(),k=I(d_e),A;t[0]===k?A=t[1]:(A=j(k),t[0]=k,t[1]=A);let M=A.chat,[N,P]=(0,Z.useState)(!1),[F,L]=(0,Z.useState)(``),R=gE(),z=_E(),B=fE(R,z!==null),V;t[2]!==M||t[3]!==x||t[4]!==b?(V=x??(b?{label:M.modelProviderSettingsLink,path:`/settings/capabilities/models`}:void 0),t[2]=M,t[3]=x,t[4]=b,t[5]=V):V=t[5];let H=V,U;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(U={revalidateOnFocus:!1},t[6]=U):U=t[6];let W=xe(s?null:N8,F8,U),G;t[7]!==W||t[8]!==s?(G=s??W.data??[],t[7]=W,t[8]=s,t[9]=G):G=t[9];let K=G,ee=s?!!c:W.isLoading,q=s?l:W.error,te;t[10]===n?te=t[11]:(te=n.trim(),t[10]=n,t[11]=te);let ne=te,re;t[12]!==u||t[13]!==K||t[14]!==ne?(re=l_e(K,u,ne),t[12]=u,t[13]=K,t[14]=ne,t[15]=re):re=t[15];let ie=re,ae;t[16]!==ie||t[17]!==F?(ae=c_e(ie,F),t[16]=ie,t[17]=F,t[18]=ae):ae=t[18];let oe=ae,se;t[19]!==K||t[20]!==ie||t[21]!==n?(se=K.find(e=>e.id===n)??ie.find(e=>e.id===n),t[19]=K,t[20]=ie,t[21]=n,t[22]=se):se=t[22];let J=se,ce=J?T?`${J.name} (${J.provider})`:J.name:n||i,le=!q&&u===`vision`&&ie.length===0,ue=TT,de=r||ee,fe=J?`${J.name} (${J.provider})`:i,pe=p&&`py-1.5 text-[13px]`,me;t[23]!==v||t[24]!==pe?(me=C(iT,`items-center gap-2 rounded-lg border border-edge-subtle bg-surface-panel px-3 py-2 text-left text-sm font-normal text-fg`,aT.transition,`hover:border-edge hover:bg-surface-hover/45`,eT,`disabled:cursor-not-allowed disabled:opacity-50`,`dark:border-edge-subtle dark:hover:bg-surface-hover/55`,pe,v),t[23]=v,t[24]=pe,t[25]=me):me=t[25];let he=ee?`…`:ce,ge;t[26]===he?ge=t[27]:(ge=(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:he}),t[26]=he,t[27]=ge);let _e;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,$.jsx)(To,{className:`size-4 shrink-0 text-fg-subtle opacity-70`,"aria-hidden":!0}),t[28]=_e):_e=t[28];let ve;t[29]!==de||t[30]!==fe||t[31]!==me||t[32]!==ge?(ve=(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,disabled:de,title:fe,className:me,children:[ge,_e]})}),t[29]=de,t[30]=fe,t[31]=me,t[32]=ge,t[33]=ve):ve=t[33];let ye=TT,be=z??void 0,Se=TT,Ce=C(B,`w-[min(22rem,calc(100vw-2rem))] rounded-xl border border-edge-subtle bg-surface-panel p-1 shadow-elevated dark:border-edge-subtle`,y),we;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(we=C(`mb-1 w-full rounded-lg border border-edge-subtle bg-surface-base px-2.5 py-1.5 text-sm text-fg placeholder:text-fg-disabled dark:bg-surface-hover/40`,tT),t[34]=we):we=t[34];let Te;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(Te=e=>L(e.target.value),t[35]=Te):Te=t[35];let Ee;t[36]!==F||t[37]!==a?(Ee=(0,$.jsx)(`input`,{type:`search`,className:we,placeholder:a,value:F,onChange:Te}),t[36]=F,t[37]=a,t[38]=Ee):Ee=t[38];let De;t[39]===q?De=t[40]:(De=q?(0,$.jsx)(`div`,{className:`p-2 text-xs text-red-600 dark:text-red-400`,children:q instanceof Error?q.message:`Failed to load models`}):null,t[39]=q,t[40]=De);let Oe;t[41]!==q||t[42]!==o||t[43]!==f||t[44]!==le?(Oe=!q&&le?(0,$.jsx)(`div`,{className:`px-2 py-3 text-center text-xs text-fg-muted`,children:f??o}):null,t[41]=q,t[42]=o,t[43]=f,t[44]=le,t[45]=Oe):Oe=t[45];let ke;t[46]!==q||t[47]!==oe.length||t[48]!==o||t[49]!==le?(ke=!q&&!le&&oe.length===0?(0,$.jsx)(`div`,{className:`px-2 py-3 text-center text-xs text-fg-muted`,children:o}):null,t[46]=q,t[47]=oe.length,t[48]=o,t[49]=le,t[50]=ke):ke=t[50];let Ae;if(t[51]!==u||t[52]!==oe||t[53]!==w||t[54]!==d||t[55]!==n||t[56]!==ne){let e;t[58]!==u||t[59]!==w||t[60]!==d||t[61]!==n||t[62]!==ne?(e=e=>{let t=!!d&&u===`vision`&&e.vision!==!0&&e.id===ne;return(0,$.jsxs)(`button`,{type:`button`,className:C(`flex w-full flex-col gap-0.5 rounded-md px-2 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,e.id===n&&`bg-surface-hover/90 font-medium dark:bg-surface-hover/70`),onClick:()=>{w(e.id),P(!1),L(``)},children:[(0,$.jsxs)(`span`,{className:`flex w-full min-w-0 items-center gap-2`,children:[(0,$.jsx)(S,{className:C(`size-4 shrink-0`,e.id!==n&&`invisible`),"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[(0,$.jsx)(`span`,{className:`font-medium`,children:e.name}),` `,(0,$.jsxs)(`span`,{className:`text-fg-muted`,children:[`(`,e.provider,`)`]})]})]}),t?(0,$.jsx)(`span`,{className:`pl-6 text-[11px] leading-snug text-amber-700 dark:text-amber-300`,children:d}):null]},e.id)},t[58]=u,t[59]=w,t[60]=d,t[61]=n,t[62]=ne,t[63]=e):e=t[63],Ae=oe.map(e),t[51]=u,t[52]=oe,t[53]=w,t[54]=d,t[55]=n,t[56]=ne,t[57]=Ae}else Ae=t[57];let je;t[64]!==De||t[65]!==Oe||t[66]!==ke||t[67]!==Ae?(je=(0,$.jsxs)(`div`,{className:`max-h-60 overflow-auto`,children:[De,Oe,ke,Ae]}),t[64]=De,t[65]=Oe,t[66]=ke,t[67]=Ae,t[68]=je):je=t[68];let Me;t[69]!==H||t[70]!==O?(Me=H?(0,$.jsx)(`div`,{className:`mt-1 border-t border-edge-subtle pt-1`,children:(0,$.jsxs)(`button`,{type:`button`,className:C(`flex w-full items-center gap-2 rounded-md p-2 text-left text-sm font-medium text-accent`,aT.transition,`hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`),onClick:()=>{O(H.path),P(!1),L(``)},children:[(0,$.jsx)(zy,{className:`size-4 shrink-0 opacity-90`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0`,children:H.label})]})}):null,t[69]=H,t[70]=O,t[71]=Me):Me=t[71];let Ne;t[72]!==D||t[73]!==E||t[74]!==Se.Content||t[75]!==Ce||t[76]!==Ee||t[77]!==je||t[78]!==Me?(Ne=(0,$.jsxs)(Se.Content,{className:Ce,side:E,sideOffset:4,align:D,onOpenAutoFocus:u_e,children:[Ee,je,Me]}),t[72]=D,t[73]=E,t[74]=Se.Content,t[75]=Ce,t[76]=Ee,t[77]=je,t[78]=Me,t[79]=Ne):Ne=t[79];let Pe;t[80]!==ye.Portal||t[81]!==be||t[82]!==Ne?(Pe=(0,$.jsx)(ye.Portal,{container:be,children:Ne}),t[80]=ye.Portal,t[81]=be,t[82]=Ne,t[83]=Pe):Pe=t[83];let Y;return t[84]!==N||t[85]!==ue.Root||t[86]!==ve||t[87]!==Pe?(Y=(0,$.jsxs)(ue.Root,{open:N,onOpenChange:P,children:[ve,Pe]}),t[84]=N,t[85]=ue.Root,t[86]=ve,t[87]=Pe,t[88]=Y):Y=t[88],Y}function u_e(e){return e.preventDefault()}function d_e(e){return e.language}async function U5(e){let t=String(e??``).trim();if(!t)return{active:!1};let n=await L(z(aM(t)));if(!n.ok)return{active:!1};try{return tM(await n.json())}catch{return{active:!1}}}async function f_e(e){let t=String(e??``).trim();if(!t)return null;try{let e=await U5(t);if(e.active&&e.runId)return TI(t,e.runId),e.runId}catch{}if(!wI(t))return null;try{let e=sessionStorage.getItem(CI(t));if(!e)return null;let n=JSON.parse(e);return(typeof n.runId==`string`?n.runId.trim():``)||null}catch{return null}}var p_e=3e4,W5=null;function m_e(e){W5={sessions:[...e],fetchedAt:Date.now()}}function h_e(e){let t=e.key.trim();if(!t)return;let n=new Date().toISOString();W5={sessions:[{...e,key:t,messageCount:e.messageCount??0,updatedAt:e.updatedAt??n},...(W5?.sessions??[]).filter(e=>e.key.trim()!==t)],fetchedAt:Date.now()}}function g_e(){return W5?Date.now()-W5.fetchedAt>p_e?(W5=null,null):W5.sessions:null}var __e=`webchat`;function v_e(e){if(!e||typeof e!=`object`)throw Error(`Invalid session agent config response`);let t=e;if(t.ok!==!0||!t.payload||typeof t.payload!=`object`)throw Error(`Invalid session agent config response`);let n=t.payload,r=n.workspaceSource,i=n.activityDetail,a=i&&typeof i==`object`?i:null,o=e=>e===`off`||e===`on`||e===`stream`;if(typeof n.thinkingLevel!=`string`||typeof n.model!=`string`||typeof n.reasoningLevel!=`string`||typeof n.effectiveWorkspacePath!=`string`||typeof n.workingDirectoryLocked!=`boolean`||r!==`project`&&r!==`session_override`&&r!==`agent_default_root`&&r!==`agent_workspace`)throw Error(`Invalid session agent config response`);return{thinkingLevel:n.thinkingLevel,model:n.model,reasoningLevel:n.reasoningLevel,activityDetail:a&&o(a.default)&&(a.override===null||o(a.override))&&o(a.effective)&&(a.source===`session`||a.source==="default")?{default:a.default,override:a.override,effective:a.effective,source:a.source}:{default:o(n.reasoningLevel)?n.reasoningLevel:`on`,override:o(n.reasoningLevel)?n.reasoningLevel:null,effective:o(n.reasoningLevel)?n.reasoningLevel:`on`,source:o(n.reasoningLevel)?`session`:`default`},effectiveWorkspacePath:n.effectiveWorkspacePath,workingDirectoryLocked:n.workingDirectoryLocked,workspaceSource:r}}var G5=new Map,K5=new Map,y_e=50,b_e=500,q5=new Map;function x_e(e){let t=e.trim().split(`:`);if(t.length<6)return null;let[n,r,i,a,o,...s]=t,c=s.join(`:`).trim();return n!==`agent`||!r?.trim()||i!==`webchat`||a!=="default"||o!==`direct`||!c?null:{agentId:r.trim().toLowerCase(),channel:i,chatId:c}}async function J5(e){let t=await e.json().catch(()=>({}));return typeof t.error==`string`?t.error:t.error?.message??`HTTP ${e.status}`}var S_e=class{async loadSessions(){let e=[],t=0;for(let n=0;n<100;n++){let n=await bR({channel:__e,limit:100,offset:t});for(let t of n.items)e.push({key:t.key,sessionId:t.sessionId,name:t.name,updatedAt:t.updatedAt,messageCount:t.messageCount,sourceChannel:t.sourceChannel,sourceChatId:t.sourceChatId,projectId:t.projectId,customData:t.customData,routing:t.routing});if(!n.hasMore)break;t+=100}let n=e.sort((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime());return m_e(n),n}async loadSessionAgentConfig(e){let t=G5.get(e);if(t)return t;let n=(async()=>{let t=await L(z(`/api/sessions/${encodeURIComponent(e)}/agent-config`));if(!t.ok)throw Error(`HTTP ${t.status}`);return v_e(await t.json())})().finally(()=>{G5.delete(e)});return G5.set(e,n),n}async patchSessionAgentConfig(e,t){let n=await L(z(`/api/sessions/${encodeURIComponent(e)}/agent-config`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}}fetchSessionActiveRun(e){return U5(e)}async loadSession(e,t=0,n){let r=`${e}\0${t}\0${n??``}`,i=K5.get(r);if(i)return i;let a=(async()=>{let r=async(t,n)=>{let r=await Ue(z(iM(e,{limit:y_e,before:n,offset:n?void 0:t})));if(!r.ok)throw Error(`HTTP ${r.status}: ${r.statusText}`);return Yj(await r.json())},i=await r(t,n),a=i.session.messages,o=WP(a),s=i.pagination.hasMore,c=i.pagination.nextBeforeCursor,l=typeof i.session.name==`string`&&i.session.name.trim()?i.session.name.trim():void 0;for(;t===0&&!n&&s&&c&&a.length<b_e&&o[0]?.role===`assistant`;){i=await r(0,c);let e=i.session.messages;if(e.length===0)break;a=[...e,...a],o=WP(a),s=i.pagination.hasMore,c=i.pagination.nextBeforeCursor}return{messages:o,hasMore:s,name:l,nextBeforeCursor:c}})().finally(()=>{K5.delete(r)});return K5.set(r,a),a}async loadTimeline(e){let t=q5.get(e);if(t)return t;let n=(async()=>{let t=await Ue(z(`/api/sessions/${encodeURIComponent(e)}/timeline`));if(!t.ok)throw Error(`HTTP ${t.status}: ${t.statusText}`);let n=await t.json();if(n.ok!==!0||!Array.isArray(n.items))throw Error(`Invalid session timeline response`);return n.items})().finally(()=>{q5.delete(e)});return q5.set(e,n),n}async createSession(e){let t={channel:`webchat`},n=e?.agentId?.trim();n&&(t.agentId=n.toLowerCase());let r=e?.projectId?.trim();r&&(t.projectId=r);let i=await L(z(`/api/sessions`),{method:`POST`,body:JSON.stringify(t)});if(!i.ok)throw Error(`HTTP ${i.status}`);return(await i.json()).session}async ensureSessionExists(e){let t=e.trim();if(!t)throw Error(`Session key is required`);let n=await L(z(`/api/sessions/resolve`),{method:`POST`,body:JSON.stringify({sessionKey:t})});if(n.ok)return;if(n.status!==404)throw Error(await J5(n));let r=x_e(t);if(!r)throw Error(`Session not found`);let i=await L(z(`/api/sessions`),{method:`POST`,body:JSON.stringify({channel:r.channel,agentId:r.agentId,chat_id:r.chatId})});if(!i.ok)throw Error(await J5(i))}async fetchSessionName(e){let t=await Ue(z(`/api/sessions/${encodeURIComponent(e)}?offset=0&limit=1`));if(!t.ok)return;let n=(await t.json()).session?.name;return typeof n==`string`&&n.trim()?n.trim():void 0}updateUrl(e){let t=`#/chat/${encodeURIComponent(e)}`;if(location.hash!==t){let e=window.history.state,n=e&&typeof e==`object`&&!Array.isArray(e)?{...e}:e;history.replaceState(n,``,t)}}parseSessionFromHash(){let e=location.hash.slice(1),t=e.match(/^\/chat\/(.+)$/)||e.match(/^chat\/(.+)$/),n=t?decodeURIComponent(t[1]):null;return n&&n!==`new`?n:null}async deleteMessages(e,t){let n=await L(z(`/api/sessions/${encodeURIComponent(e)}/messages`),{method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}}},Y5=`xopc.recentWorkspaceDirs.v1`,C_e=10;function w_e(){try{let e=localStorage.getItem(Y5);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>typeof e==`string`&&e.trim().length>0):[]}catch{return[]}}function T_e(e){let t=e.trim();if(t)try{let e=[t,...w_e().filter(e=>e!==t)].slice(0,C_e);localStorage.setItem(Y5,JSON.stringify(e))}catch{}}function X5(e){let t=e.trim().replace(/[/\\]+$/,``);if(!t)return e;let n=t.split(/[/\\]/);return n[n.length-1]||t}function Z5(e){let t=(0,Q.c)(27),{value:n,onPick:r,disabled:i,placeholder:a,title:o,className:s,maxWidthClass:c,compact:l,"aria-label":u}=e,d=c===void 0?`max-w-[min(12rem,40vw)]`:c,f=l===void 0?!1:l,p,m;t[0]!==a||t[1]!==n?(m=n.trim(),p=m?X5(m):a??``,t[0]=a,t[1]=n,t[2]=p,t[3]=m):(p=t[2],m=t[3]);let h=p,g=o??(m||void 0),_=u??o??h,v=f?`inline-flex size-9 shrink-0 items-center justify-center rounded-lg p-0`:`inline-flex min-h-8 min-w-0 shrink-0 items-center gap-1 rounded-lg px-2 py-1 text-xs`,y=!f&&d,b=i&&`cursor-not-allowed opacity-60`,x;t[4]!==s||t[5]!==v||t[6]!==y||t[7]!==b?(x=C(v,`border border-edge-subtle/80 bg-surface-hover/40 dark:border-edge-subtle`,aT.transition,aT.focusRingPanel,`cursor-pointer hover:bg-surface-hover/70 dark:hover:bg-surface-hover/50`,y,b,s),t[4]=s,t[5]=v,t[6]=y,t[7]=b,t[8]=x):x=t[8];let S;t[9]!==i||t[10]!==r?(S=e=>{e.stopPropagation(),i||r()},t[9]=i,t[10]=r,t[11]=S):S=t[11];let w=f?`size-4`:`size-3.5`,T;t[12]===w?T=t[13]:(T=C(`shrink-0 text-fg-muted`,w),t[12]=w,t[13]=T);let E;t[14]===T?E=t[15]:(E=(0,$.jsx)(Mf,{className:T,"aria-hidden":!0}),t[14]=T,t[15]=E);let D;t[16]!==f||t[17]!==h?(D=f?null:(0,$.jsx)(`span`,{className:`min-w-0 truncate text-left font-medium text-fg`,children:h}),t[16]=f,t[17]=h,t[18]=D):D=t[18];let O;return t[19]!==i||t[20]!==S||t[21]!==E||t[22]!==D||t[23]!==g||t[24]!==_||t[25]!==x?(O=(0,$.jsxs)(`button`,{type:`button`,disabled:i,title:g,"aria-label":_,className:x,onClick:S,children:[E,D]}),t[19]=i,t[20]=S,t[21]=E,t[22]=D,t[23]=g,t[24]=_,t[25]=x,t[26]=O):O=t[26],O}async function E_e(e){let t=typeof window<`u`?window.electronAPI?.file?.openDirectory:void 0;if(!t)return null;let n=e?.trim();return n?t({defaultPath:n}):t()}function Q5(e={}){let{initialPath:t,onPicked:n,trackRecent:r=!0}=e,[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(!1),c=typeof window<`u`&&!!window.electronAPI?.file?.openDirectory,l=(0,Z.useCallback)(async e=>{let t=e.trim();t&&(r&&T_e(t),await n?.(t))},[n,r]);return{hasNativePicker:c,modalOpen:i,setModalOpen:a,pick:(0,Z.useCallback)(()=>{if(c){(async()=>{s(!0);try{let e=await E_e(t);e&&await l(e)}finally{s(!1)}})();return}a(!0)},[l,c,t]),confirmPick:l,picking:o}}async function $5(e){let t=new URLSearchParams;e!=null&&e!==``&&t.set(`path`,e);let n=t.toString();return(await B(z(`/api/host/fs/list${n?`?${n}`:``}`))).payload}async function D_e(){return(await B(z(`/api/host/fs/meta`))).payload}function O_e(){return C(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 font-mono text-sm text-fg`,`placeholder:text-fg-subtle`,nT,`dark:border-edge`)}function e7(e){return/^[A-Za-z]:\\?$/.test(e.replace(/\\$/,`\\`))}function k_e(e){return!e||e.currentPath===``?!1:e.parentPath===null?e.currentPath===`/`?!1:!!e7(e.currentPath):!0}var A_e={metaHostname:null,listState:null,listLoading:!1,listError:null,manualPath:``};function t7({open:e,onOpenChange:t,initialAbsolutePath:n,onConfirm:r,wd:i}){let a=(0,Z.useId)(),[o,s]=(0,Z.useReducer)(lX,A_e),{metaHostname:c,listState:l,listLoading:u,listError:d,manualPath:f}=o,p=(0,Z.useCallback)(async e=>{s({type:`patch`,patch:{listLoading:!0,listError:null}});try{s({type:`patch`,patch:{listState:await $5(e)}})}catch(e){s({type:`patch`,patch:{listError:e instanceof Error?e.message:String(e),listState:null}})}finally{s({type:`patch`,patch:{listLoading:!1}})}},[]);(0,Z.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{try{let e=await D_e();t||s({type:`patch`,patch:{metaHostname:e.hostname}})}catch{t||s({type:`patch`,patch:{metaHostname:null}})}})(),()=>{t=!0}},[e]),(0,Z.useEffect)(()=>{if(!e)return;let t=n?.trim()??``;s({type:`patch`,patch:{manualPath:t}});let r=!1;return(async()=>{s({type:`patch`,patch:{listLoading:!0,listError:null}});try{if(t)try{let e=await $5(t);r||s({type:`patch`,patch:{listState:e}})}catch{let e=await $5();r||s({type:`patch`,patch:{listState:e}})}else{let e=await $5();r||s({type:`patch`,patch:{listState:e}})}}catch(e){let t=e instanceof Error?e.message:String(e);r||s({type:`patch`,patch:{listError:t,listState:null}})}finally{r||s({type:`patch`,patch:{listLoading:!1}})}})(),()=>{r=!0}},[e,n]);let m=e=>{e.isDirectory&&p(e.absolutePath)},h=()=>{if(!l)return;let{parentPath:e,currentPath:t}=l;if(e!==null){p(e);return}t===`/`||t===``||e7(t)&&p(void 0)},g=l?.currentPath===``?i.pickerDrives:l?.currentPath??``,_=!!l&&l.currentPath!==``&&!u&&!d,v=async()=>{if(!(!l||l.currentPath===``))try{await r(l.currentPath),t(!1)}catch{}},y=async()=>{let e=f.trim();if(e)try{await r(e),t(!1)}catch{}},b=u&&l;return(0,$.jsx)(LD,{open:e,onOpenChange:t,children:(0,$.jsxs)(UD,{children:[(0,$.jsx)(GD,{className:`fixed inset-0 z-[100] bg-scrim backdrop-blur-[2px]`}),(0,$.jsxs)(YD,{className:C(`fixed left-1/2 top-1/2 z-[101] flex max-h-[min(90vh,32rem)] w-[min(100%-2rem,28rem)] -translate-x-1/2 -translate-y-1/2 flex-col rounded-xl border border-edge bg-surface-panel p-4 shadow-popover`,`dark:border-edge`),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:i.pathModalTitle}),(0,$.jsx)(nO,{className:`mt-1 text-sm leading-relaxed text-fg-muted`,children:i.pathModalDescription}),c?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:i.pickerHostHint.replace(`{{hostname}}`,c)}):null,(0,$.jsxs)(`div`,{className:`mt-3 flex min-h-0 flex-1 flex-col gap-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(Zw,{type:`button`,variant:`secondary`,className:`shrink-0 gap-1 px-2 py-1.5 text-xs`,disabled:u||!k_e(l)||!!d,onClick:()=>h(),title:i.pickerUp,children:[(0,$.jsx)(_o,{className:`size-4`,"aria-hidden":!0}),i.pickerUp]}),(0,$.jsx)(`div`,{className:`min-w-0 flex-1 truncate rounded-md border border-edge-subtle/80 bg-surface-hover/30 px-2 py-1.5 font-mono text-xs text-fg`,title:g,children:u&&!l?i.pickerLoading:g||`—`})]}),(0,$.jsxs)(`div`,{className:C(`relative min-h-[12rem] overflow-y-auto rounded-lg border border-edge-subtle/80 bg-surface-hover/20 p-1 dark:border-edge-subtle`,aT.focusRingPanel),role:`listbox`,"aria-label":i.pathModalTitle,children:[b?(0,$.jsx)(`div`,{className:`absolute inset-0 z-[1] flex items-center justify-center rounded-lg bg-surface-panel/60`,"aria-hidden":!0,children:(0,$.jsx)(Zg,{className:`size-6 animate-spin text-fg-muted`})}):null,u&&!l?(0,$.jsxs)(`div`,{className:`flex items-center justify-center gap-2 py-12 text-sm text-fg-muted`,children:[(0,$.jsx)(Zg,{className:`size-4 animate-spin`,"aria-hidden":!0}),i.pickerLoading]}):null,d?(0,$.jsx)(`p`,{className:`px-2 py-8 text-center text-sm text-fg-muted`,children:i.pickerListError}):null,!u&&l&&!d&&l.entries.length===0?(0,$.jsx)(`p`,{className:`px-2 py-8 text-center text-sm text-fg-muted`,children:i.pickerEmptyFolder}):null,l?.entries.map(e=>(0,$.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":!1,disabled:!e.isDirectory,className:C(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm`,e.isDirectory?`cursor-pointer text-fg hover:bg-surface-hover`:`cursor-default text-fg-muted opacity-60`),onClick:()=>m(e),children:[(0,$.jsx)(Mf,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name})]},e.absolutePath))]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(`label`,{htmlFor:a,className:`text-xs text-fg-muted`,children:i.pickerManualPath}),(0,$.jsx)(`input`,{id:a,type:`text`,value:f,onChange:e=>s({type:`patch`,patch:{manualPath:e.target.value}}),placeholder:i.pathInputPlaceholder,className:O_e(),autoComplete:`off`,spellCheck:!1,onKeyDown:e=>{e.key===`Enter`&&f.trim()&&(e.preventDefault(),y())}})]})]}),(0,$.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center justify-end gap-2 border-t border-edge-subtle/60 pt-3`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,onClick:()=>t(!1),children:i.pathModalCancel}),(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,disabled:!f.trim(),onClick:()=>void y(),children:i.pickerApplyManual}),(0,$.jsx)(Zw,{type:`button`,disabled:!_,onClick:()=>void v(),children:i.pickerUseThisFolder})]})]})]})})}var j_e=(0,Z.memo)(function({sessionKey:e,disabled:t,canSelectWorkingDirectory:n,sessionMgr:r}){let i=j(I(e=>e.language)).chat.workingDirectory,a=fq(e=>e.toggleOpen),[o,s]=(0,Z.useState)(``),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(!1),[f,p]=(0,Z.useState)(null),m=(0,Z.useCallback)(async()=>{if(!e){s(``);return}l(!0);try{s((await r.loadSessionAgentConfig(e)).effectiveWorkspacePath)}catch{s(``)}finally{l(!1)}},[e,r]);(0,Z.useEffect)(()=>{m()},[m]);let h=Q5({initialPath:o,onPicked:(0,Z.useCallback)(async t=>{if(!(!e?.trim()||!t.trim()))try{await r.patchSessionAgentConfig(e,{workingDirectory:t.trim()}),await m()}catch(e){throw p(e instanceof Error?e.message:String(e)),d(!0),e}},[e,r,m])}),g=o.trim(),_=!!g,v=_?X5(g):i.notSet,y=C(`inline-flex min-h-8 max-w-[min(12rem,40vw)] min-w-0 shrink-0 items-center gap-1 rounded-lg px-2 py-1 text-xs`,`border border-edge-subtle/80 bg-surface-hover/40 dark:border-edge-subtle`,aT.transition,aT.focusRingPanel),b=e=>{let{hasPath:t,fullPath:n,canSelect:r}=e,a;return a=!r&&t?i.tooltipOpenProjectFiles:r?t?i.chooseFolder:i.selectWorkingDirectory:i.selectionOnlyAtNewChat,(0,$.jsxs)(`div`,{className:`max-w-[min(22rem,90vw)] space-y-1.5`,children:[(0,$.jsx)(`p`,{className:`font-semibold text-fg`,children:i.tooltipAgentWorkspace}),t?(0,$.jsx)(`p`,{className:`break-words font-mono text-[11px] leading-snug text-fg-muted`,children:n}):(0,$.jsx)(`p`,{className:`text-[11px] text-fg-muted`,children:i.notSet}),(0,$.jsx)(`p`,{className:`text-[11px] leading-snug text-fg-subtle`,children:a})]})},x=(e,t)=>(0,$.jsxs)(SK,{delayDuration:350,children:[(0,$.jsx)(CK,{asChild:!0,children:t}),(0,$.jsx)(wK,{children:(0,$.jsx)(TK,{side:`top`,sideOffset:6,collisionPadding:12,className:`!z-[10000] max-w-[min(22rem,90vw)] rounded-md border border-edge bg-surface-panel px-2.5 py-2 text-left text-xs leading-snug text-fg shadow-lg`,children:e})})]});if(!e)return(0,$.jsxs)(`div`,{"aria-hidden":`true`,className:C(y,`cursor-not-allowed text-fg-muted opacity-60`),children:[(0,$.jsx)(Mf,{className:`size-3.5 shrink-0 text-fg-muted`}),(0,$.jsx)(`span`,{className:`min-w-0 truncate text-left font-medium text-fg`,children:i.notSet})]});let S=()=>x(b({hasPath:!1,fullPath:``,canSelect:!1}),(0,$.jsxs)(`button`,{type:`button`,className:C(y,`cursor-pointer text-left text-fg-muted hover:bg-surface-hover/70 dark:hover:bg-surface-hover/50`),"aria-label":`${i.notSet}. ${i.selectionOnlyAtNewChat}`,"aria-disabled":`true`,onClick:e=>{e.stopPropagation()},children:[(0,$.jsx)(Mf,{className:`size-3.5 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate text-left font-medium text-fg`,children:v})]})),w=()=>x(b({hasPath:!0,fullPath:g,canSelect:!1}),(0,$.jsxs)(`button`,{type:`button`,disabled:t||c||!_,className:C(y,_&&`cursor-pointer hover:bg-surface-hover/70 dark:hover:bg-surface-hover/50`,(t||c||!_)&&`cursor-not-allowed opacity-60`),"aria-label":`${i.tooltipAgentWorkspace}: ${g}`,onClick:e=>{e.stopPropagation(),_&&!t&&!c&&a()},children:[(0,$.jsx)(Mf,{className:`size-3.5 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate text-left font-medium text-fg`,children:v})]}));if(!n)return _?(0,$.jsx)(xK,{delayDuration:350,children:(0,$.jsx)(`div`,{className:`inline-flex items-center`,children:w()})}):(0,$.jsx)(xK,{delayDuration:350,children:(0,$.jsx)(`div`,{className:`inline-flex items-center`,children:S()})});let T=_&&!t&&!c?`${i.tooltipAgentWorkspace}: ${g}. ${i.chooseFolder}`:_?`${i.tooltipAgentWorkspace}: ${g}`:i.selectWorkingDirectory;return(0,$.jsx)(xK,{delayDuration:350,children:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`inline-flex items-center`,children:x(b({hasPath:_,fullPath:g,canSelect:!0}),(0,$.jsx)(Z5,{value:g,onPick:h.pick,disabled:t||c||h.picking,placeholder:i.notSet,"aria-label":T,className:C((t||c||h.picking)&&`cursor-not-allowed opacity-60`)}))}),h.hasNativePicker?null:(0,$.jsx)(t7,{open:h.modalOpen,onOpenChange:h.setModalOpen,initialAbsolutePath:g||void 0,onConfirm:h.confirmPick,wd:i}),(0,$.jsx)(LD,{open:u,onOpenChange:e=>{d(e),e||p(null)},children:(0,$.jsxs)(UD,{children:[(0,$.jsx)(GD,{className:`fixed inset-0 z-[80] bg-scrim backdrop-blur-[2px]`}),(0,$.jsxs)(YD,{className:C(`fixed left-1/2 top-1/2 z-[81] w-[min(100%-2rem,26rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover`,`dark:border-edge`),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:i.applyErrorTitle}),f?(0,$.jsx)(nO,{className:`mt-2 whitespace-pre-wrap text-sm leading-relaxed text-fg-muted`,children:f}):null,(0,$.jsx)(`div`,{className:`mt-4 flex items-center justify-end border-t border-edge-subtle/60 pt-3`,children:(0,$.jsx)(Zw,{type:`button`,onClick:()=>d(!1),children:i.applyErrorClose})})]})]})})]})})});function M_e(e){return e===`off`?dr:Yy}var N_e=(0,Z.memo)(function(e){let t=(0,Q.c)(127),{sessionKey:n,sessionManager:r,disabled:i,sending:a,streaming:o,canSelectWorkingDirectory:s,runBusy:c,chat:l,hasDraft:u,showSteeringInterrupt:d,attachmentCount:f,maxAttachments:p,onPickFiles:m,thinkingLevel:h,modelSupportsThinking:g,onThinkingChange:_,reasoningLevel:v,activityDetailDefault:y,activityDetailOverride:b,onReasoningChange:x,voiceActive:S,voiceReadiness:w,onStartVoiceInput:T,onSend:E,onAbort:D,onInterrupt:O,sessionModel:k,showModelSelector:A,onModelChange:j,modelDisabled:M,contextUsageMessages:N,composerDraftChars:P}=e,F=R6(P_e),[I,L]=(0,Z.useState)(!1),R=h,z;t[0]===R?z=t[1]:(z=M_e(R),t[0]=R,t[1]=z);let B=z,V=f>=p,H;t[2]!==f||t[3]!==V||t[4]!==l.attachFile||t[5]!==l.maxAttachmentsReached||t[6]!==p?(H=V?L5(l.maxAttachmentsReached,{max:p}):`${l.attachFile} (${f}/${p})`,t[2]=f,t[3]=V,t[4]=l.attachFile,t[5]=l.maxAttachmentsReached,t[6]=p,t[7]=H):H=t[7];let U=H,W=w.state===`preparing`?l.voicePreparing:w.state===`error`||w.state===`needs_download`?l.voiceNeedsPreparation:l.voiceInput,G;t[8]===F?G=t[9]:(G=j6(F).join(`+`),t[8]=F,t[9]=G);let K=`${W} (${G})`,ee;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(ee=C(`flex flex-wrap items-center gap-2 border-t border-edge-subtle/90 px-4 py-2.5 dark:border-edge-subtle`),t[10]=ee):ee=t[10];let q=i||c,te;t[11]!==s||t[12]!==n||t[13]!==r||t[14]!==q?(te=(0,$.jsx)(j_e,{sessionKey:n,sessionMgr:r,canSelectWorkingDirectory:s,disabled:q}),t[11]=s,t[12]=n,t[13]=r,t[14]=q,t[15]=te):te=t[15];let ne;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(ne=C(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-hover/70 text-fg-subtle hover:bg-surface-hover hover:text-fg dark:bg-surface-hover/50`,aT.transition,aT.press,aT.focusRingPanel),t[16]=ne):ne=t[16];let re;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,$.jsx)(xy,{className:`size-4`}),t[17]=re):re=t[17];let ie;t[18]!==l.moreActions||t[19]!==I?(ie=(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:ne,title:l.moreActions,"aria-label":l.moreActions,"aria-expanded":I,children:re})}),t[18]=l.moreActions,t[19]=I,t[20]=ie):ie=t[20];let ae;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(ae=C(`z-50 min-w-[12rem] rounded-xl border border-edge bg-surface-panel p-1.5 shadow-popover dark:border-edge`),t[21]=ae):ae=t[21];let oe;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(oe=C(`flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left text-sm text-fg`,`hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,`disabled:cursor-not-allowed disabled:opacity-50`),t[22]=oe):oe=t[22];let se=V||i||c,J;t[23]===m?J=t[24]:(J=()=>{m(),L(!1)},t[23]=m,t[24]=J);let ce;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,$.jsx)(Kd,{className:`size-4 shrink-0 text-fg-subtle`,"aria-hidden":!0}),t[25]=ce):ce=t[25];let le;t[26]===l.attachFile?le=t[27]:(le=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:l.attachFile}),t[26]=l.attachFile,t[27]=le);let ue;t[28]!==f||t[29]!==p?(ue=(0,$.jsxs)(`span`,{className:`shrink-0 text-xs text-fg-subtle`,children:[f,`/`,p]}),t[28]=f,t[29]=p,t[30]=ue):ue=t[30];let de;t[31]!==U||t[32]!==se||t[33]!==J||t[34]!==le||t[35]!==ue?(de=(0,$.jsxs)(`button`,{type:`button`,className:oe,disabled:se,title:U,onClick:J,children:[ce,le,ue]}),t[31]=U,t[32]=se,t[33]=J,t[34]=le,t[35]=ue,t[36]=de):de=t[36];let fe;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(fe=C(`flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-sm text-fg`,`hover:bg-surface-hover`),t[37]=fe):fe=t[37];let pe=g?`${l.thinkingLevelLabel}: ${l.thinkingLevels[h]??h}`:l.thinkingUnsupported,me;t[38]===B?me=t[39]:(me=(0,$.jsx)(B,{className:`size-4 shrink-0 text-accent-fg`,"aria-hidden":!0}),t[38]=B,t[39]=me);let he;t[40]===l.thinkingLevelLabel?he=t[41]:(he=(0,$.jsx)(`span`,{className:`shrink-0 text-fg-muted`,children:l.thinkingLevelLabel}),t[40]=l.thinkingLevelLabel,t[41]=he);let ge;t[42]!==i||t[43]!==l.thinkingLevels||t[44]!==l.thinkingUnsupported||t[45]!==g||t[46]!==_||t[47]!==a||t[48]!==o||t[49]!==h?(ge=g?(0,$.jsx)(wE,{className:`min-w-0 flex-1 cursor-pointer appearance-none rounded-md bg-surface-hover/80 px-2 py-0.5 text-sm font-medium text-fg focus:outline-none focus-visible:ring-2 focus-visible:ring-accent`,value:h,disabled:i||a&&!o,onChange:e=>_(e.target.value),children:Object.keys(l.thinkingLevels).map(e=>(0,$.jsx)(xE,{value:e,children:l.thinkingLevels[e]},e))}):(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-right text-xs text-fg-disabled`,children:l.thinkingUnsupported}),t[42]=i,t[43]=l.thinkingLevels,t[44]=l.thinkingUnsupported,t[45]=g,t[46]=_,t[47]=a,t[48]=o,t[49]=h,t[50]=ge):ge=t[50];let _e;t[51]!==pe||t[52]!==me||t[53]!==he||t[54]!==ge?(_e=(0,$.jsxs)(`label`,{className:fe,title:pe,children:[me,he,ge]}),t[51]=pe,t[52]=me,t[53]=he,t[54]=ge,t[55]=_e):_e=t[55];let ve;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(ve=C(`flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-sm text-fg`,`hover:bg-surface-hover`),t[56]=ve):ve=t[56];let ye=`${l.activityDetailLabel}: ${l.activityDetailLevels[v]}`,be;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,$.jsx)(et,{className:`size-4 shrink-0 text-fg-subtle`,"aria-hidden":!0}),t[57]=be):be=t[57];let xe;t[58]===l.activityDetailLabel?xe=t[59]:(xe=(0,$.jsx)(`span`,{className:`shrink-0 text-fg-muted`,children:l.activityDetailLabel}),t[58]=l.activityDetailLabel,t[59]=xe);let Se=b??`default`,Ce;t[60]===x?Ce=t[61]:(Ce=e=>x(e.target.value==="default"?null:e.target.value),t[60]=x,t[61]=Ce);let we;t[62]!==y||t[63]!==l.activityDetailLevels||t[64]!==l.activityDetailUseDefault?(we=l.activityDetailUseDefault.replace(`{{level}}`,l.activityDetailLevels[y]),t[62]=y,t[63]=l.activityDetailLevels,t[64]=l.activityDetailUseDefault,t[65]=we):we=t[65];let Te;t[66]===we?Te=t[67]:(Te=(0,$.jsx)(xE,{value:`default`,children:we}),t[66]=we,t[67]=Te);let Ee;t[68]===l.activityDetailLevels?Ee=t[69]:(Ee=Object.keys(l.activityDetailLevels),t[68]=l.activityDetailLevels,t[69]=Ee);let De=Ee,Oe;t[70]!==l.activityDetailLevels||t[71]!==De?(Oe=De.map(e=>(0,$.jsx)(xE,{value:e,children:l.activityDetailLevels[e]},e)),t[70]=l.activityDetailLevels,t[71]=De,t[72]=Oe):Oe=t[72];let ke;t[73]!==i||t[74]!==Se||t[75]!==Ce||t[76]!==Te||t[77]!==Oe?(ke=(0,$.jsxs)(wE,{className:`min-w-0 flex-1 cursor-pointer appearance-none rounded-md bg-surface-hover/80 px-2 py-0.5 text-sm font-medium text-fg focus:outline-none focus-visible:ring-2 focus-visible:ring-accent`,value:Se,disabled:i,onChange:Ce,children:[Te,Oe]}),t[73]=i,t[74]=Se,t[75]=Ce,t[76]=Te,t[77]=Oe,t[78]=ke):ke=t[78];let Ae;t[79]!==ye||t[80]!==xe||t[81]!==ke?(Ae=(0,$.jsxs)(`label`,{className:ve,title:ye,children:[be,xe,ke]}),t[79]=ye,t[80]=xe,t[81]=ke,t[82]=Ae):Ae=t[82];let je;t[83]!==de||t[84]!==_e||t[85]!==Ae?(je=(0,$.jsx)(tE,{children:(0,$.jsx)(nE,{className:ae,side:`top`,align:`start`,sideOffset:8,collisionPadding:12,onOpenAutoFocus:F_e,children:(0,$.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[de,_e,Ae]})})}),t[83]=de,t[84]=_e,t[85]=Ae,t[86]=je):je=t[86];let Me;t[87]!==I||t[88]!==ie||t[89]!==je?(Me=(0,$.jsxs)(QT,{open:I,onOpenChange:L,children:[ie,je]}),t[87]=I,t[88]=ie,t[89]=je,t[90]=Me):Me=t[90];let Ne;t[91]!==P||t[92]!==N||t[93]!==l||t[94]!==M||t[95]!==j||t[96]!==k||t[97]!==A?(Ne=A?(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,$.jsx)(`div`,{className:`min-w-0 w-fit max-w-[min(20rem,calc(100vw-10rem))] shrink-0`,children:(0,$.jsx)(H5,{value:k,disabled:M,placeholder:l.modelPlaceholder,searchPlaceholder:l.modelSearchPlaceholder,noMatches:l.modelNoMatches,compact:!0,showProviderInTrigger:!1,contentSide:`top`,contentAlign:`end`,showProviderSettingsFooter:!0,onChange:j})}),(0,$.jsx)(o_e,{sessionModel:k,messages:N,draftChars:P,chat:l,disabled:M})]}):null,t[91]=P,t[92]=N,t[93]=l,t[94]=M,t[95]=j,t[96]=k,t[97]=A,t[98]=Ne):Ne=t[98];let Pe;t[99]!==i||t[100]!==T||t[101]!==S||t[102]!==w.state||t[103]!==K?(Pe=S?null:(0,$.jsxs)(`button`,{type:`button`,className:C(`relative inline-flex size-8 shrink-0 items-center justify-center rounded-lg border border-transparent text-fg-subtle hover:bg-surface-hover hover:text-fg`,aT.transition,aT.press,aT.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`),disabled:i,title:K,"aria-label":K,onClick:()=>void T(),children:[(0,$.jsx)(jv,{className:`size-4 stroke-[1.75]`}),w.state===`preparing`?(0,$.jsx)(`span`,{className:`absolute right-0.5 top-0.5 size-1.5 rounded-full bg-amber-500 motion-safe:animate-pulse`,"aria-hidden":!0}):w.state===`error`||w.state===`needs_download`?(0,$.jsx)(`span`,{className:`absolute right-0.5 top-0.5 size-1.5 rounded-full bg-red-500`,"aria-hidden":!0}):null]}),t[99]=i,t[100]=T,t[101]=S,t[102]=w.state,t[103]=K,t[104]=Pe):Pe=t[104];let Y;t[105]!==i||t[106]!==u||t[107]!==l.abort||t[108]!==l.sendMessage||t[109]!==l.steeringInterruptSend||t[110]!==D||t[111]!==O||t[112]!==E||t[113]!==c||t[114]!==d||t[115]!==S?(Y=c?(0,$.jsxs)($.Fragment,{children:[d&&O?(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg border border-transparent text-accent-fg hover:bg-accent-soft dark:hover:bg-accent-soft`,aT.transition,aT.press,aT.focusRingPanel),title:l.steeringInterruptSend,"aria-label":l.steeringInterruptSend,onClick:()=>void O(),children:(0,$.jsx)(Ly,{className:`size-4 stroke-[1.75]`})}):null,(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-hover/70 text-fg-muted hover:bg-surface-hover hover:text-fg dark:bg-surface-hover/50`,aT.transition,aT.press,aT.focusRingPanel),title:l.abort,"aria-label":l.abort,onClick:D,children:(0,$.jsx)(rb,{className:`size-4 stroke-[1.75]`})})]}):(0,$.jsx)(`button`,{type:`button`,className:C(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg border transition-colors duration-150 ease-out`,aT.press,aT.focusRingPanel,u?`border-transparent text-accent-fg hover:bg-accent-soft dark:text-accent-fg dark:hover:bg-accent-soft`:`border-transparent text-fg-disabled`),disabled:i||S||!u,title:l.sendMessage,"aria-label":l.sendMessage,onClick:E,children:(0,$.jsx)(Ly,{className:`size-4 stroke-[1.75]`})}),t[105]=i,t[106]=u,t[107]=l.abort,t[108]=l.sendMessage,t[109]=l.steeringInterruptSend,t[110]=D,t[111]=O,t[112]=E,t[113]=c,t[114]=d,t[115]=S,t[116]=Y):Y=t[116];let Fe;t[117]!==Pe||t[118]!==Y?(Fe=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[Pe,Y]}),t[117]=Pe,t[118]=Y,t[119]=Fe):Fe=t[119];let Ie;t[120]!==Ne||t[121]!==Fe?(Ie=(0,$.jsxs)(`div`,{className:`ml-auto flex min-w-0 items-center gap-2`,children:[Ne,Fe]}),t[120]=Ne,t[121]=Fe,t[122]=Ie):Ie=t[122];let Le;return t[123]!==Me||t[124]!==Ie||t[125]!==te?(Le=(0,$.jsxs)(`div`,{className:ee,children:[te,Me,Ie]}),t[123]=Me,t[124]=Ie,t[125]=te,t[126]=Le):Le=t[126],Le});function P_e(e){return e.shortcut}function F_e(e){return e.preventDefault()}function I_e(e){return e.map(e=>({type:e.type===`voice`?`voice`:(e.mimeType??``).startsWith(`image/`)?`image`:`document`,mimeType:e.mimeType??`application/octet-stream`,content:e.data??``,name:e.name??`file`,size:e.size??0,uri:e.uri,...typeof e.durationSeconds==`number`&&Number.isFinite(e.durationSeconds)&&e.durationSeconds>0?{durationSeconds:e.durationSeconds}:{}}))}var L_e=100,R_e=400,n7=900;function z_e(e,t){switch(t.type){case`reset`:return{box:null,hoverPreview:null};case`set-box`:return{...e,box:t.box};case`set-hover`:return{...e,hoverPreview:t.hoverPreview}}}function B_e(e,t){let n=t.trim().toLowerCase();if(!n)return[];let r=e.toLowerCase(),i=[],a=0;for(let e=0;e<r.length&&a<n.length;e++)r[e]===n[a]&&(i.push([e,e+1]),a++);return i}function V_e(e){let t=(0,Q.c)(8),{name:n,query:r}=e,i;t[0]!==n||t[1]!==r?(i=B_e(n,r),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i;if(a.length===0){let e;return t[3]===n?e=t[4]:(e=(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:n}),t[3]=n,t[4]=e),e}let o;if(t[5]!==n||t[6]!==a){let e=[],r=0;a.forEach(t=>{let[i,a]=t;i>r&&e.push((0,$.jsx)(`span`,{className:`font-medium text-fg`,children:n.slice(r,i)},`pre-${i}`)),e.push((0,$.jsx)(`span`,{className:`font-semibold text-accent-fg`,children:n.slice(i,a)},`hl-${i}-${a}`)),r=a}),r<n.length&&e.push((0,$.jsx)(`span`,{className:`font-medium text-fg`,children:n.slice(r)},`tail`)),o=(0,$.jsx)($.Fragment,{children:e}),t[5]=n,t[6]=a,t[7]=o}else o=t[7];return o}var H_e=(0,Z.memo)(function(e){let t=(0,Q.c)(44),{open:n,anchorRef:r,items:i,selectedIndex:a,loading:o,query:s,noResults:c,sessionKey:l,recentLabel:u,ariaLabel:d,onSelectItem:f,shiftHint:p}=e,m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={box:null,hoverPreview:null},t[0]=m):m=t[0];let[h,g]=(0,Z.useReducer)(z_e,m),_=h.box,v=h.hoverPreview,y=(0,Z.useRef)(null),b=(0,Z.useRef)(0),x=(0,Z.useRef)(null),S;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{y.current&&=(clearTimeout(y.current),null)},t[1]=S):S=t[1];let w=S,T;t[2]===l?T=t[3]:(T=(e,t,n)=>{w(),b.current+=1;let r=b.current,i=e.relativePath;if(!l?.trim()||e.isDirectory||e.isBrowseUp||!i){g({type:`set-hover`,hoverPreview:null});return}y.current=setTimeout(()=>{y.current=null,r===b.current&&zz(i,{sessionKey:l}).then(e=>{let{content:i}=e,a=i.length>n7?`${i.slice(0,n7)}…`:i;r===b.current&&g({type:`set-hover`,hoverPreview:{text:a,x:t,y:n}})}).catch(()=>{r===b.current&&g({type:`set-hover`,hoverPreview:null})})},420)},t[2]=l,t[3]=T);let E=T,D,O;t[4]!==r||t[5]!==n?(D=()=>{if(!n){g({type:`reset`}),w(),b.current+=1;return}let e=()=>{let e=r.current;if(!e)return;let t=e.getBoundingClientRect();g({type:`set-box`,box:{left:t.left,top:t.top,width:t.width}})};e();let t=r.current,i=t&&typeof ResizeObserver<`u`?new ResizeObserver(()=>{e()}):null;return t&&i&&i.observe(t),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{t&&i&&i.disconnect(),window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},O=[n,r],t[4]=r,t[5]=n,t[6]=D,t[7]=O):(D=t[6],O=t[7]),(0,Z.useLayoutEffect)(D,O);let k,A;if(t[8]!==i.length||t[9]!==n||t[10]!==a?(k=()=>{!n||a<0||a>=i.length||(x.current?.querySelector(`#at-mention-${a}`))?.scrollIntoView({block:`nearest`})},A=[n,a,i.length],t[8]=i.length,t[9]=n,t[10]=a,t[11]=k,t[12]=A):(k=t[11],A=t[12]),(0,Z.useLayoutEffect)(k,A),!n||typeof document>`u`||_===null)return null;let j=i.length,M=Math.min(_.width,R_e),N;t[13]!==_.left||t[14]!==_.top||t[15]!==M?(N={position:`fixed`,left:_.left,top:_.top,width:M,transform:`translateY(calc(-100% - 8px))`,zIndex:L_e},t[13]=_.left,t[14]=_.top,t[15]=M,t[16]=N):N=t[16];let P=a>=0&&a<j?`at-mention-${a}`:void 0,F;t[17]!==o||t[18]!==j?(F=o&&j===0?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2.5 text-sm text-fg-muted`,children:[(0,$.jsx)(Zg,{className:`size-4 shrink-0 animate-spin`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:`…`})]}):null,t[17]=o,t[18]=j,t[19]=F):F=t[19];let I;t[20]!==i||t[21]!==o||t[22]!==c||t[23]!==f||t[24]!==s||t[25]!==u||t[26]!==E||t[27]!==a||t[28]!==j?(I=!o&&j===0?(0,$.jsx)(`div`,{className:`px-3 py-2 text-sm text-fg-muted`,children:c}):(0,$.jsx)($.Fragment,{children:i.map((e,t)=>(0,$.jsxs)(`div`,{id:`at-mention-${t}`,role:`option`,"aria-selected":a===t,tabIndex:-1,className:C(`flex cursor-pointer items-start gap-2 px-3 py-2 text-left text-sm`,a===t?`bg-surface-hover text-fg`:`text-fg-subtle hover:bg-surface-hover/80`,e.isRecent&&`border-l-2 border-l-accent/60`),onPointerDown:t=>{t.pointerType===`mouse`&&t.button!==0||(t.preventDefault(),f(e,{shiftKey:t.shiftKey}))},onPointerEnter:t=>E(e,t.clientX,t.clientY),onPointerLeave:()=>{w(),b.current+=1,g({type:`set-hover`,hoverPreview:null})},children:[(0,$.jsx)(`span`,{className:`mt-0.5 shrink-0`,children:e.isBrowseUp?(0,$.jsx)(Xf,{className:`size-3.5 text-fg-muted`,"aria-hidden":!0}):e.isDirectory?(0,$.jsx)(Xf,{className:`size-3.5 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}):(0,$.jsx)(Ld,{className:C(`size-3.5`,Sz(e.name)),"aria-hidden":!0})}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 truncate`,children:[(0,$.jsx)(`span`,{className:`truncate`,children:(0,$.jsx)(V_e,{name:e.name,query:s})}),e.isRecent?(0,$.jsx)(`span`,{className:`shrink-0 rounded bg-accent-soft px-1 py-0 text-[0.65rem] text-accent-fg`,children:u}):null]}),(0,$.jsx)(`div`,{className:`mt-0.5 truncate text-xs text-fg-muted`,children:e.relativePath||`—`})]})]},`${e.relativePath}-${e.name}`))}),t[20]=i,t[21]=o,t[22]=c,t[23]=f,t[24]=s,t[25]=u,t[26]=E,t[27]=a,t[28]=j,t[29]=I):I=t[29];let L;t[30]!==d||t[31]!==F||t[32]!==I||t[33]!==P?(L=(0,$.jsxs)(`div`,{ref:x,className:`max-h-[min(26rem,54vh)] overflow-y-auto`,role:`listbox`,"aria-label":d,"aria-activedescendant":P,children:[F,I]}),t[30]=d,t[31]=F,t[32]=I,t[33]=P,t[34]=L):L=t[34];let R;t[35]===p?R=t[36]:(R=p?(0,$.jsx)(`div`,{className:`border-t border-edge-subtle px-3 py-1.5 text-[0.65rem] text-fg-muted`,children:p}):null,t[35]=p,t[36]=R);let z;t[37]===v?z=t[38]:(z=v?(0,$.jsx)(`div`,{className:`pointer-events-none fixed z-[200] max-h-48 max-w-sm overflow-auto rounded-md border border-edge bg-surface-panel p-2 font-mono text-[0.7rem] text-fg shadow-lg`,style:{left:Math.min(v.x+12,window.innerWidth-320),top:Math.min(v.y+12,window.innerHeight-200)},children:v.text}):null,t[37]=v,t[38]=z);let B;return t[39]!==L||t[40]!==R||t[41]!==z||t[42]!==N?(B=(0,We.createPortal)((0,$.jsxs)(`div`,{className:`pointer-events-auto max-h-[min(28rem,60vh)] min-h-[2.5rem] overflow-hidden rounded-lg border border-edge bg-surface-panel shadow-lg dark:bg-surface-panel/95`,style:N,role:`presentation`,children:[L,R,z]}),document.body),t[39]=L,t[40]=R,t[41]=z,t[42]=N,t[43]=B):B=t[43],B}),r7=new Set([`abort`,`stop`,`cancel`]);function U_e(e){if(e.kind!==`command`)return!1;if(r7.has(e.name.toLowerCase()))return!0;for(let t of e.aliases??[])if(r7.has(t.toLowerCase()))return!0;return!1}function i7(e,t,n,r){return e.slice(0,t)+r+e.slice(n)}var W_e={skill:(e,t)=>{let n=t.slashRange;if(!n)return;if(e.availability?.status&&e.availability.status!==`available`){t.callbacks.onUnavailableSkill?.(e);return}let r=`/skill:${e.name} `,i=i7(t.editor.valueRef.current,n.start,n.end,r),a=n.start+r.length;t.editor.resetEditor({nextText:i,caretOffset:a,focus:!0})},command:(e,t)=>{let n=t.slashRange;if(!n||n.start!==0)return;if(e.name.toLowerCase()===`review`&&t.callbacks.onReviewLauncher&&!t.runBusy&&t.pendingFollowUpsCount===0){let e=t.editor.valueRef.current,r=e.slice(0,n.start)+e.slice(n.end);t.editor.resetEditor({nextText:r,caretOffset:n.start,focus:!0}),t.callbacks.onReviewLauncher();return}if(e.acceptsArgs===!0){let r=`/${e.name} `,i=i7(t.editor.valueRef.current,n.start,n.end,r),a=n.start+r.length;t.editor.resetEditor({nextText:i,caretOffset:a,focus:!0});return}let r=`/${e.name}`;if(t.runBusy||t.pendingFollowUpsCount>0){if(U_e(e)){if(!t.callbacks.onAbort)return;t.callbacks.onAbort();let e=t.editor.valueRef.current,r=e.slice(0,n.start)+e.slice(n.end);t.editor.resetEditor({nextText:r,caretOffset:n.start});return}if(!t.callbacks.onAddPendingFollowUp||t.pendingFollowUpsCount>=t.maxPendingFollowUps)return;t.callbacks.onAddPendingFollowUp(r,void 0),t.callbacks.onUserTextCommitted?.(r),t.attachments.clearAttachments(),t.editor.resetEditor();return}t.callbacks.onSend(r,void 0,t.thinkingLevel),t.callbacks.onUserTextCommitted?.(r),t.attachments.clearAttachments(),t.editor.resetEditor()},agent:(e,t)=>{let n=t.slashRange;if(!n||n.start!==0||!t.callbacks.onChatAgentChange)return;let r=t.editor.valueRef.current,i=r.slice(0,n.start)+r.slice(n.end);t.editor.resetEditor({nextText:i,caretOffset:n.start}),t.attachments.clearAttachments(),t.callbacks.onChatAgentChange(e.name)}};function G_e(e,t){let n=W_e[e.kind];n&&n(e,t)}var a7={new:10,help:11,list:12,clear:13,switch:14,models:15,usage:16,skills:17,settings:18,start:19,think:20,reasoning:21,verbose:22,status:23,tts:24},K_e=new Set([`abort`,`archive`]);function o7(e){if(e.kind===`command`){let t=e.name.toLowerCase();if(a7[t]!==void 0)return 0;if(K_e.has(t))return 2}return 1}function s7(e,t){let n=o7(e),r=o7(t);if(n!==r)return n-r;if(n===0){let n=a7[e.name.toLowerCase()]??999,r=a7[t.name.toLowerCase()]??999;if(n!==r)return n-r}let i=e.name.localeCompare(t.name);return i===0?e.id.localeCompare(t.id):i}var q_e=RegExp(`^@file:${ZQ}`,`u`);function c7(e){if(e.kind!==`command`)return!1;if(r7.has(e.name.toLowerCase()))return!0;for(let t of e.aliases??[])if(r7.has(t.toLowerCase()))return!0;return!1}function l7(e,t){return e.kind!==`command`||e.acceptsArgs===!0||c7(e)||!(t.runBusy||t.pendingFollowUpsCount>0)?!1:t.pendingFollowUpsCount>=t.maxPendingFollowUps}function J_e(e,t){return e.kind!==`command`||e.acceptsArgs===!0||c7(e)||!(t.runBusy||t.pendingFollowUpsCount>0)?!1:t.pendingFollowUpsCount<t.maxPendingFollowUps}function Y_e(e,t){let n=0;for(;n<e.length;){let r=e.indexOf(`@file:`,n);if(r===-1)return null;let i=e.slice(r).match(q_e);if(!i){n=r+1;continue}let a=r+i[0].length;if(t>=r&&t<a)return{start:r,end:a};n=a}return null}var X_e=20,u7=3;function Z_e(e){return e.includes(`/`)||/^[A-Za-z]:/u.test(e)?!0:/^(Users|home|var|tmp|etc|opt|private|Volumes|System|Applications|Library|usr|dev|bin|sbin|proc|sys)(\/|$)/iu.test(e)}function Q_e(e,t){if(t===0)return!1;let n=e[t-1];if(n===void 0||n===`.`||n===`:`||n===`/`)return!0;let r=e.slice(0,t);return/[a-zA-Z0-9-]+\.[a-zA-Z0-9.-]+$/u.test(r)}function $_e(e,t){let n=e.length,r=Math.min(Math.max(t,0),n);if(r<1&&e===`/`&&(r=1),r<1)return null;let i=e.slice(0,r).match(/\/[^\s]*$/);if(!i||i.index===void 0||Y_e(e,i.index))return null;let a=i.index;if(Q_e(e,a))return null;let o=i[0],s=o.slice(1);return Z_e(s)||o.startsWith(`/skill:`)?null:{start:i.index,end:r,query:s}}function eve(e,t){let n=t.trim().toLowerCase();if(!n)return 0;let r=e.name.toLowerCase();if(r===n)return 0;for(let t of e.aliases??[])if(t.toLowerCase()===n)return 1;if(r.startsWith(n))return 2;for(let t of e.aliases??[])if(t.toLowerCase().startsWith(n))return 3;if(r.includes(n))return 4;for(let t of e.aliases??[])if(t.toLowerCase().includes(n))return 5;return(e.description??``).toLowerCase().includes(n)?100:(e.category??``).toLowerCase().includes(n)?101:e.kind===`skill`&&(e.source??``).toLowerCase().includes(n)?102:null}function tve(e,t){return t===0?0:Math.min(e,t-1)}function nve(e,t,n){let r=(0,Q.c)(58),[i,a]=(0,Z.useState)(0),[o,s]=(0,Z.useState)(0),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(!1),[f,p]=(0,Z.useState)(!1),m=I(gve);n?.isComposing;let h;r[0]!==t||r[1]!==n?.isComposing||r[2]!==e?(h=n?.isComposing?null:$_e(e,t),r[0]=t,r[1]=n?.isComposing,r[2]=e,r[3]=h):h=r[3];let g=h,_=!!(g&&!n?.suppress),v,y;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{let e=e=>{let t=e.detail;t&&typeof t==`object`&&`section`in t&&(t.section===`skills`||t.section===`agents`)&&s(hve)};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},y=[],r[4]=v,r[5]=y):(v=r[4],y=r[5]),(0,Z.useEffect)(v,y),!_&&(c||u||f)&&(l(!1),d(!1),p(!1));let b;r[6]!==m||r[7]!==n?.currentAgentId?(b=async()=>{let[e,t,r]=await Promise.all([Z3(),Q3(n?.currentAgentId),HN().catch(mve)]),i=e.map(pve),a=t.skills.map(fve),o=j(m).agentsSettings,s=r&&r.items.length>1?r.items.map(e=>({kind:`agent`,id:`agent:${e.id}`,name:l6(e,o),description:u6(e,o),category:`agent`,...e.avatar?{avatar:e.avatar}:{},aliases:[e.id,...e.name?[e.name]:[]]})):[];return[...a,...i,...s]},r[6]=m,r[7]=n?.currentAgentId,r[8]=b):b=r[8];let x=n?.currentAgentId,S;r[9]!==m||r[10]!==o||r[11]!==x?(S=[m,x,o],r[9]=m,r[10]=o,r[11]=x,r[12]=S):S=r[12];let C;r[13]===Symbol.for(`react.memo_cache_sentinel`)?(C=[],r[13]=C):C=r[13];let w;r[14]===Symbol.for(`react.memo_cache_sentinel`)?(w=[],r[14]=w):w=r[14];let T;r[15]===_?T=r[16]:(T={enabled:_,initial:C,errorData:w},r[15]=_,r[16]=T);let E=TA(b,S,T),D=E.data,O=E.error==null?null:E.error instanceof Error?E.error.message:String(E.error),k=g?.query??``,A=g!==null&&g.start===0,M=A,N;r[17]===k?N=r[18]:(N=k.trim(),r[17]=k,r[18]=N);let P=N===``,F=_&&P&&c,L=_&&P&&u,R=_&&P&&f,z;r[19]===Symbol.for(`react.memo_cache_sentinel`)?(z=()=>{l(!0)},r[19]=z):z=r[19];let B=z,V;r[20]===Symbol.for(`react.memo_cache_sentinel`)?(V=()=>{d(!0)},r[20]=V):V=r[20];let H=V,U;r[21]===Symbol.for(`react.memo_cache_sentinel`)?(U=()=>{p(!0)},r[21]=U):U=r[21];let W=U,G;if(r[22]!==M||r[23]!==D||r[24]!==A||r[25]!==R||r[26]!==L||r[27]!==F||r[28]!==P||r[29]!==k||r[30]!==e){bb0:{let t=Age(e),n=[];for(let e of D){if(e.kind===`command`&&!A||e.kind===`agent`&&!M||e.kind===`skill`&&t.has(e.name)||e.kind===`skill`&&P&&e.availability?.status!==`available`)continue;let r=eve(e,k);r!==null&&n.push({item:e,rank:r})}if(P){let e=dve,t=n.filter(uve).sort(e).map(lve),r=n.filter(cve).sort(e).map(sve),i=n.filter(ove).sort(e).map(ave),a=F?t:t.slice(0,u7),o=L?r:r.slice(0,u7),s=R?i:i.slice(0,u7),c=F?0:Math.max(0,t.length-u7),l=L?0:Math.max(0,r.length-u7),u=R?0:Math.max(0,i.length-u7);G={items:[...a,...o,...s],skillRowCount:a.length,commandRowCount:o.length,groupedHasSkills:t.length>0,groupedHasCommands:r.length>0,groupedHasAgents:i.length>0,groupedSkillsMoreCount:c,groupedCommandsMoreCount:l,groupedAgentsMoreCount:u};break bb0}n.sort(ive);let i;r[32]===n?i=r[33]:(i={items:n.slice(0,X_e).map(rve),skillRowCount:0,commandRowCount:0,groupedHasSkills:!1,groupedHasCommands:!1,groupedHasAgents:!1,groupedSkillsMoreCount:0,groupedCommandsMoreCount:0,groupedAgentsMoreCount:0},r[32]=n,r[33]=i),G=i}r[22]=M,r[23]=D,r[24]=A,r[25]=R,r[26]=L,r[27]=F,r[28]=P,r[29]=k,r[30]=e,r[31]=G}else G=r[31];let{items:K,skillRowCount:ee,commandRowCount:q,groupedHasSkills:te,groupedHasCommands:ne,groupedHasAgents:re,groupedSkillsMoreCount:ie,groupedCommandsMoreCount:ae,groupedAgentsMoreCount:oe}=G,se=g?k:``,J=(0,Z.useRef)(se);J.current!==se&&(J.current=se,i!==0&&a(0));let ce;r[34]!==K.length||r[35]!==i?(ce=tve(i,K.length),r[34]=K.length,r[35]=i,r[36]=ce):ce=r[36];let le=ce,ue;r[37]===K.length?ue=r[38]:(ue=e=>{K.length!==0&&a(t=>e===`down`?(t+1)%K.length:(t-1+K.length)%K.length)},r[37]=K.length,r[38]=ue);let de=ue,fe;return r[39]!==M||r[40]!==q||r[41]!==A||r[42]!==P||r[43]!==oe||r[44]!==ae||r[45]!==re||r[46]!==ne||r[47]!==te||r[48]!==ie||r[49]!==K||r[50]!==O||r[51]!==de||r[52]!==_||r[53]!==k||r[54]!==le||r[55]!==ee||r[56]!==g?(fe={open:_,slashRange:g,commandsAllowed:A,agentsAllowed:M,grouped:P,skillRowCount:ee,commandRowCount:q,groupedHasSkills:te,groupedHasCommands:ne,groupedHasAgents:re,groupedSkillsMoreCount:ie,groupedCommandsMoreCount:ae,groupedAgentsMoreCount:oe,items:K,selectedIndex:le,query:k,loadError:O,onNavigate:de,setSelectedIndex:a,expandGroupedSkills:B,expandGroupedCommands:H,expandGroupedAgents:W},r[39]=M,r[40]=q,r[41]=A,r[42]=P,r[43]=oe,r[44]=ae,r[45]=re,r[46]=ne,r[47]=te,r[48]=ie,r[49]=K,r[50]=O,r[51]=de,r[52]=_,r[53]=k,r[54]=le,r[55]=ee,r[56]=g,r[57]=fe):fe=r[57],fe}function rve(e){return e.item}function ive(e,t){let n=e.item.kind===`skill`&&e.item.availability?.status!==`available`;if(n!==(t.item.kind===`skill`&&t.item.availability?.status!==`available`))return n?1:-1;if(e.rank!==t.rank)return e.rank-t.rank;let r=s7(e.item,t.item);return r===0?0:r}function ave(e){return e.item}function ove(e){return e.item.kind===`agent`}function sve(e){return e.item}function cve(e){return e.item.kind===`command`}function lve(e){return e.item}function uve(e){return e.item.kind===`skill`}function dve(e,t){let n=s7(e.item,t.item);return n===0?e.item.id.localeCompare(t.item.id):n}function fve(e){return{kind:`skill`,id:`skill:${e.name}`,name:e.name,description:e.description,category:`skill`,source:e.source,availability:{status:e.availableForCurrentAgent?`available`:e.unavailableReason??`agent-denied`,reason:e.unavailableReason??void 0}}}function pve(e){return{kind:`command`,id:`cmd:${e.id}`,name:e.name,description:e.description,category:e.category,aliases:e.aliases,acceptsArgs:e.acceptsArgs}}function mve(){return null}function hve(e){return e+1}function gve(e){return e.language}var _ve=100,vve=280;function d7(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);if(r>=0)return(0,$.jsxs)($.Fragment,{children:[e.slice(0,r),(0,$.jsx)(`span`,{className:`text-accent-fg`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]});let i=[],a=0,o=0;for(let t of e){let e=n[a],r=`${String(o)}-${t}`;e!==void 0&&t.toLowerCase()===e?(i.push((0,$.jsx)(`span`,{className:`text-accent-fg`,children:t},r)),a+=1):i.push((0,$.jsx)(Z.Fragment,{children:t},r)),o+=1}return(0,$.jsx)($.Fragment,{children:i})}function yve(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);return r<0?e:(0,$.jsxs)($.Fragment,{children:[e.slice(0,r),(0,$.jsx)(`span`,{className:`text-accent-fg`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var f7=(0,Z.memo)(function(e){let t=(0,Q.c)(44),{item:n,index:r,selectedIndex:i,showHighlight:a,filterQuery:o,currentAgentId:s,currentBadgeLabel:c,runBusy:l,pendingFollowUpsCount:u,maxPendingFollowUps:d,queueBadgeLabel:f,queueFullBadgeLabel:p,queueFullTooltip:m,skillUnavailableLabel:h,skillAgentDeniedLabel:g,onSelectItem:_}=e,v=n.kind===`skill`,y=n.kind===`agent`,b;t[0]!==y||t[1]!==v||t[2]!==n.avatar||t[3]!==n.name?(b=y?(0,$.jsx)(gR,{agentId:n.name,avatar:n.avatar,size:18,className:`size-[18px] shrink-0`}):v?(0,$.jsx)(Yy,{className:`size-3 shrink-0 text-accent-fg`,"aria-hidden":!0}):(0,$.jsx)(Mw,{className:`size-3 shrink-0 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}),t[0]=y,t[1]=v,t[2]=n.avatar,t[3]=n.name,t[4]=b):b=t[4];let x=b,S;t[5]!==o||t[6]!==y||t[7]!==n.name||t[8]!==a?(S=y?a?(0,$.jsx)($.Fragment,{children:d7(n.name,o)}):(0,$.jsx)(`span`,{className:`text-fg`,children:n.name}):a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`text-fg`,children:`/`}),d7(n.name,o)]}):(0,$.jsxs)(`span`,{className:`text-fg`,children:[`/`,n.name]}),t[5]=o,t[6]=y,t[7]=n.name,t[8]=a,t[9]=S):S=t[9];let C=S,w=y&&s!=null&&s.length>0&&n.name===s,T=v&&n.availability?.status!==`available`,E,D;if(t[10]!==n||t[11]!==d||t[12]!==u||t[13]!==l){let e={runBusy:l,pendingFollowUpsCount:u,maxPendingFollowUps:d};D=J_e(n,e),E=l7(n,e),t[10]=n,t[11]=d,t[12]=u,t[13]=l,t[14]=E,t[15]=D}else E=t[14],D=t[15];let O=E,k=null;if(w){let e;t[16]===c?e=t[17]:(e=(0,$.jsx)(`span`,{className:`ml-1 shrink-0 rounded bg-accent-soft px-1 py-px text-[0.6rem] font-medium leading-none text-accent-fg`,"aria-label":c,children:c}),t[16]=c,t[17]=e),k=e}else if(T){let e=n.availability?.reason??`unavailable`,r=n.availability?.status===`agent-denied`?g:h,i;t[18]!==e||t[19]!==r?(i=(0,$.jsx)(`span`,{className:`ml-1 shrink-0 rounded bg-surface-hover px-1 py-px text-[0.6rem] font-medium leading-none text-fg-muted`,"aria-label":e,children:r}),t[18]=e,t[19]=r,t[20]=i):i=t[20],k=i}else if(O){let e;t[21]===p?e=t[22]:(e=(0,$.jsx)(`span`,{className:`ml-1 shrink-0 rounded bg-red-100 px-1 py-px text-[0.6rem] font-medium leading-none text-red-700 dark:bg-red-900/40 dark:text-red-300`,"aria-label":p,children:p}),t[21]=p,t[22]=e),k=e}else if(D){let e;t[23]===f?e=t[24]:(e=(0,$.jsx)(`span`,{className:`ml-1 shrink-0 rounded bg-surface-hover px-1 py-px text-[0.6rem] font-medium leading-none text-fg-muted`,"aria-label":f,children:f}),t[23]=f,t[24]=e),k=e}let A=i===r,j=`palette-${r}`,M;t[25]!==o||t[26]!==n.description||t[27]!==a?(M=n.description?a?yve(n.description,o):n.description:null,t[25]=o,t[26]=n.description,t[27]=a,t[28]=M):M=t[28];let N=O?m:void 0,P;t[29]!==n||t[30]!==_?(P=()=>_(n),t[29]=n,t[30]=_,t[31]=P):P=t[31];let F;return t[32]!==x||t[33]!==O||t[34]!==n||t[35]!==C||t[36]!==a||t[37]!==A||t[38]!==j||t[39]!==M||t[40]!==N||t[41]!==P||t[42]!==k?(F=(0,$.jsx)(xve,{item:n,icon:x,selected:A,id:j,nameLine:C,descriptionLine:M,dimCategoryBadge:a,trailingBadge:k,disabled:O,disabledTooltip:N,onSelect:P}),t[32]=x,t[33]=O,t[34]=n,t[35]=C,t[36]=a,t[37]=A,t[38]=j,t[39]=M,t[40]=N,t[41]=P,t[42]=k,t[43]=F):F=t[43],F}),bve=(0,Z.memo)(function(e){let t=(0,Q.c)(50),{open:n,anchorRef:r,items:i,selectedIndex:a,noResults:o,grouped:s,skillRowCount:c,commandRowCount:l,query:u,skillsLabel:d,commandsLabel:f,agentsLabel:p,groupedHasSkills:m,groupedHasCommands:h,groupedHasAgents:g,groupedSkillsShowMoreLabel:_,groupedCommandsShowMoreLabel:v,groupedAgentsShowMoreLabel:y,currentAgentId:b,currentBadgeLabel:x,runBusy:S,pendingFollowUpsCount:w,maxPendingFollowUps:T,queueBadgeLabel:E,queueFullBadgeLabel:D,queueFullTooltip:O,skillUnavailableLabel:k,skillAgentDeniedLabel:A,onExpandSkills:j,onExpandCommands:M,onExpandAgents:N,onSelectItem:P,panelRef:F}=e,[I,L]=(0,Z.useState)(null),R,z;if(t[0]!==r||t[1]!==n?(R=()=>{if(!n){L(null);return}let e=()=>{let e=r.current;if(!e)return;let t=e.getBoundingClientRect();L({left:t.left,top:t.top,width:t.width})};e();let t=r.current,i=t&&typeof ResizeObserver<`u`?new ResizeObserver(()=>{e()}):null;return t&&i&&i.observe(t),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{t&&i&&i.disconnect(),window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},z=[n,r],t[0]=r,t[1]=n,t[2]=R,t[3]=z):(R=t[2],z=t[3]),(0,Z.useLayoutEffect)(R,z),!n||typeof document>`u`||I===null)return null;let B=i.length,V=Math.min(I.width,vve),H;t[4]===u?H=t[5]:(H=u.trim(),t[4]=u,t[5]=H);let U=H,W=!s&&U.length>0,G;t[6]!==b||t[7]!==x||t[8]!==U||t[9]!==T||t[10]!==P||t[11]!==w||t[12]!==E||t[13]!==D||t[14]!==O||t[15]!==S||t[16]!==a||t[17]!==W||t[18]!==A||t[19]!==k?(G={selectedIndex:a,showHighlight:W,filterQuery:U,currentAgentId:b,currentBadgeLabel:x,runBusy:S,pendingFollowUpsCount:w,maxPendingFollowUps:T,queueBadgeLabel:E,queueFullBadgeLabel:D,queueFullTooltip:O,skillUnavailableLabel:k,skillAgentDeniedLabel:A,onSelectItem:P},t[6]=b,t[7]=x,t[8]=U,t[9]=T,t[10]=P,t[11]=w,t[12]=E,t[13]=D,t[14]=O,t[15]=S,t[16]=a,t[17]=W,t[18]=A,t[19]=k,t[20]=G):G=t[20];let K=G,ee;t[21]!==p||t[22]!==l||t[23]!==f||t[24]!==s||t[25]!==y||t[26]!==v||t[27]!==g||t[28]!==h||t[29]!==m||t[30]!==_||t[31]!==i||t[32]!==o||t[33]!==N||t[34]!==M||t[35]!==j||t[36]!==K||t[37]!==c||t[38]!==d||t[39]!==B?(ee=B===0?(0,$.jsx)(`div`,{className:`p-2.5 text-xs leading-normal text-fg-muted`,children:o}):s?(0,$.jsxs)($.Fragment,{children:[m?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`mb-1.5 px-2.5 pt-2.5 text-[0.6rem] font-medium uppercase leading-none tracking-wide text-fg-muted`,"aria-hidden":!0,children:d}),i.slice(0,c).map((e,t)=>(0,$.jsx)(f7,{item:e,index:t,...K},e.id)),_?(0,$.jsx)(`button`,{type:`button`,className:`w-full px-2.5 py-1 text-left text-[11px] leading-tight text-fg-muted transition hover:bg-surface-hover/80 hover:text-fg`,onClick:e=>{e.preventDefault(),j()},children:_}):null]}):null,h?(0,$.jsxs)(`div`,{className:C(m&&`mt-1 border-t border-edge-subtle`),children:[(0,$.jsx)(`div`,{className:`mb-1.5 px-2.5 pt-2.5 text-[0.6rem] font-medium uppercase leading-none tracking-wide text-fg-muted`,"aria-hidden":!0,children:f}),i.slice(c,c+l).map((e,t)=>(0,$.jsx)(f7,{item:e,index:c+t,...K},e.id)),v?(0,$.jsx)(`button`,{type:`button`,className:`w-full px-2.5 py-1 text-left text-[11px] leading-tight text-fg-muted transition hover:bg-surface-hover/80 hover:text-fg`,onClick:e=>{e.preventDefault(),M()},children:v}):null]}):null,g?(0,$.jsxs)(`div`,{className:C((m||h)&&`mt-1 border-t border-edge-subtle`),children:[(0,$.jsx)(`div`,{className:`mb-1.5 px-2.5 pt-2.5 text-[0.6rem] font-medium uppercase leading-none tracking-wide text-fg-muted`,"aria-hidden":!0,children:p}),i.slice(c+l).map((e,t)=>(0,$.jsx)(f7,{item:e,index:c+l+t,...K},e.id)),y?(0,$.jsx)(`button`,{type:`button`,className:`w-full px-2.5 py-1 text-left text-[11px] leading-tight text-fg-muted transition hover:bg-surface-hover/80 hover:text-fg`,onClick:e=>{e.preventDefault(),N()},children:y}):null]}):null]}):i.map((e,t)=>(0,$.jsx)(f7,{item:e,index:t,...K},e.id)),t[21]=p,t[22]=l,t[23]=f,t[24]=s,t[25]=y,t[26]=v,t[27]=g,t[28]=h,t[29]=m,t[30]=_,t[31]=i,t[32]=o,t[33]=N,t[34]=M,t[35]=j,t[36]=K,t[37]=c,t[38]=d,t[39]=B,t[40]=ee):ee=t[40];let q=ee,te;t[41]!==I.left||t[42]!==I.top||t[43]!==V?(te={position:`fixed`,left:I.left,top:I.top,width:V,transform:`translateY(calc(-100% - 8px))`,zIndex:_ve},t[41]=I.left,t[42]=I.top,t[43]=V,t[44]=te):te=t[44];let ne=a>=0&&a<B?`palette-${a}`:void 0,re;return t[45]!==q||t[46]!==F||t[47]!==te||t[48]!==ne?(re=(0,We.createPortal)((0,$.jsx)(xK,{delayDuration:0,skipDelayDuration:0,disableHoverableContent:!1,children:(0,$.jsx)(`div`,{ref:F,className:`pointer-events-auto max-h-[min(24rem,55vh)] min-h-8 overflow-y-auto rounded-md border border-edge bg-surface-panel text-xs leading-4 shadow-lg dark:bg-surface-panel/95`,style:te,role:`listbox`,"aria-label":`Commands`,"aria-activedescendant":ne,children:q})}),document.body),t[45]=q,t[46]=F,t[47]=te,t[48]=ne,t[49]=re):re=t[49],re}),xve=(0,Z.memo)(function(e){let t=(0,Q.c)(39),{item:n,icon:r,selected:i,id:a,nameLine:o,descriptionLine:s,dimCategoryBadge:c,trailingBadge:l,disabled:u,disabledTooltip:d,onSelect:f}=e,p=n.description??``,m;t[0]===p?m=t[1]:(m=p.trim(),t[0]=p,t[1]=m);let h=m,g=h.length>0&&s!=null,_=h.length>0,v=n.description??``,y=n.category&&n.kind!==`skill`&&!c&&!(n.kind===`agent`&&l),b;t[2]===o?b=t[3]:(b=(0,$.jsx)(`span`,{className:`min-w-0 max-w-[min(12rem,46%)] shrink-0 truncate font-semibold text-fg`,children:o}),t[2]=o,t[3]=b);let x;t[4]!==n.category||t[5]!==y?(x=y?(0,$.jsx)(`span`,{className:`shrink-0 rounded bg-surface-hover px-1 py-px text-[0.6rem] font-normal leading-none text-fg-muted`,children:n.category}):null,t[4]=n.category,t[5]=y,t[6]=x):x=t[6];let S;t[7]!==s||t[8]!==g?(S=g?(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[11px] font-normal leading-tight text-fg-muted`,children:s}):null,t[7]=s,t[8]=g,t[9]=S):S=t[9];let w;t[10]!==b||t[11]!==x||t[12]!==S?(w=(0,$.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1`,children:[b,x,S]}),t[10]=b,t[11]=x,t[12]=S,t[13]=w):w=t[13];let T=w,E=u?`cursor-not-allowed opacity-50 text-fg-muted`:i?`cursor-pointer bg-surface-hover text-fg`:`cursor-pointer text-fg-subtle hover:bg-surface-hover/80`,D;t[14]===E?D=t[15]:(D=C(`flex w-full min-w-0 items-center gap-1.5 px-2.5 py-1 text-left text-xs leading-4`,E),t[14]=E,t[15]=D);let O=D,k;t[16]!==u||t[17]!==f?(k=e=>{u||e.pointerType===`mouse`&&e.button!==0||(e.preventDefault(),f())},t[16]=u,t[17]=f,t[18]=k):k=t[18];let A=k,j;t[19]===r?j=t[20]:(j=(0,$.jsx)(`span`,{className:`shrink-0 [&_svg]:align-middle`,children:r}),t[19]=r,t[20]=j);let M;t[21]!==j||t[22]!==T||t[23]!==l?(M=(0,$.jsxs)($.Fragment,{children:[j,T,l]}),t[21]=j,t[22]=T,t[23]=l,t[24]=M):M=t[24];let N=M,P=u&&d?d:_?v:null,F=u||void 0,I;t[25]!==a||t[26]!==A||t[27]!==O||t[28]!==N||t[29]!==i||t[30]!==F?(I=(0,$.jsx)(`div`,{id:a,role:`option`,"aria-selected":i,"aria-disabled":F,tabIndex:-1,className:O,onPointerDown:A,children:N}),t[25]=a,t[26]=A,t[27]=O,t[28]=N,t[29]=i,t[30]=F,t[31]=I):I=t[31];let L=I;if(P!==null){let e;t[32]===L?e=t[33]:(e=(0,$.jsx)(CK,{asChild:!0,children:L}),t[32]=L,t[33]=e);let n;t[34]===P?n=t[35]:(n=(0,$.jsx)(wK,{children:(0,$.jsx)(TK,{side:`right`,align:`start`,sideOffset:8,collisionPadding:12,className:`!z-[10000] max-h-[min(12rem,40vh)] max-w-sm overflow-y-auto rounded-md border border-edge bg-surface-panel px-2 py-1.5 text-left text-[11px] leading-snug text-fg shadow-lg select-text [max-width:min(20rem,90vw)]`,"data-slash-palette-tooltip":``,children:(0,$.jsx)(`span`,{className:`whitespace-pre-wrap break-words`,children:P})})}),t[34]=P,t[35]=n);let r;return t[36]!==e||t[37]!==n?(r=(0,$.jsxs)(SK,{delayDuration:0,children:[e,n]}),t[36]=e,t[37]=n,t[38]=r):r=t[38],r}return L}),p7=[],m7=null,h7=!1,g7=Promise.resolve(),_7=0;function v7(e){if(p7[0]?.text===e.text){e.id>0&&(p7[0]=e);return}p7=[e,...p7].slice(0,100)}function y7(e){let t=p7.findIndex(t=>t.id===0&&t.text===e.text);if(t>=0){p7[t]=e;return}v7(e)}function Sve(){return p7.map(e=>e.text)}function b7(e=!1){if(h7&&!e)return Promise.resolve();if(m7)return m7;let t=_7,n=!1;return m7=B(`/api/composer-history`).then(e=>{_7===t?(p7=e.items.slice(0,100),h7=!0):n=!0}).catch(()=>{}).finally(()=>{m7=null,n&&g7.then(()=>b7(!0))}),m7}function Cve(e){let t=e.trim();t&&(_7+=1,v7({id:0,text:t,createdAt:Date.now()}),g7=g7.then(async()=>{y7((await B(`/api/composer-history`,{method:`POST`,body:JSON.stringify({text:t})})).item)}).catch(()=>{}))}function wve(e){if(!e||typeof e!=`object`)return;let t=e;typeof t.id!=`number`||typeof t.text!=`string`||typeof t.createdAt!=`number`||(_7+=1,y7({id:t.id,text:t.text,createdAt:t.createdAt}))}function Tve(){_7+=1,p7=[]}function Eve(e){let t=(0,Q.c)(16),{sessionKey:n,editorRef:r,valueRef:i,resetEditor:a,onWireInput:o}=e,s=(0,Z.useRef)(null),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{s.current=null},t[0]=c):c=t[0];let l=c,u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{l()},t[1]=u):u=t[1];let d;t[2]===n?d=t[3]:(d=[n,l],t[2]=n,t[3]=d),(0,Z.useEffect)(u,d);let f,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{b7();let e=e=>{wve(e.detail),l()},t=()=>{Tve(),l()},n=Dve;return window.addEventListener(`composer-history-appended`,e),window.addEventListener(`composer-history-cleared`,t),window.addEventListener(`gateway-realtime-connected`,n),()=>{window.removeEventListener(`composer-history-appended`,e),window.removeEventListener(`composer-history-cleared`,t),window.removeEventListener(`gateway-realtime-connected`,n)}},p=[l],t[4]=f,t[5]=p):(f=t[4],p=t[5]),(0,Z.useEffect)(f,p);let m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>{Cve(e),l()},t[6]=m):m=t[6];let h=m,g;t[7]===o?g=t[8]:(g=(e,t)=>{s.current=null,o(e,t)},t[7]=o,t[8]=g);let _=g,v;t[9]!==r||t[10]!==a||t[11]!==i?(v=e=>{let t=Sve();if(t.length===0)return!1;let n=s.current,o=r.current,c=o?j5(o):0,l=i.current;if(e===`up`){if(n==null){if(c!==0)return!1;s.current={index:0,stash:l};let e=t[0];return e?(a({nextText:e,caretOffset:e.length,focus:!0}),!0):!1}if(n.index>=t.length-1)return!0;n.index+=1;let e=t[n.index];return e?(a({nextText:e,caretOffset:e.length,focus:!0}),!0):!1}if(n==null)return!1;if(--n.index,n.index<0){let e=n.stash;return s.current=null,a({nextText:e,caretOffset:e.length,focus:!0}),!0}let u=t[n.index];return u?(a({nextText:u,caretOffset:u.length,focus:!0}),!0):!1},t[9]=r,t[10]=a,t[11]=i,t[12]=v):v=t[12];let y=v,b;return t[13]!==_||t[14]!==y?(b={onUserTextCommitted:h,onWireInputClearWalk:_,tryInputHistoryArrow:y},t[13]=_,t[14]=y,t[15]=b):b=t[15],b}function Dve(){b7(!0)}function x7(e){if(e.voiceActive)return e.cancelVoiceInput(),null;let t=e.getTextValue();return!t.trim()&&e.getAttachmentCount()===0?null:{text:t,attachments:e.wireAttachmentsPayload()}}function Ove(e){let{chat:t,runBusy:n,voiceActive:r,cancelVoiceInput:i,editingFollowUpId:a,getTextValue:o,getAttachmentCount:s,wireAttachmentsPayload:c,getThinkingLevel:l,onSend:u,onAddPendingFollowUp:d,onSteeringInterrupt:f,onCommitEditFollowUp:p,onPendingFollowUpRemove:m,pendingFollowUpsCount:h,resetEditor:g,clearAttachments:_,clearEditFollowUpRef:v,onUserTextCommitted:y}=e,b={getTextValue:o,getAttachmentCount:s,wireAttachmentsPayload:c},x=(0,Z.useRef)(!1);return{send:(0,Z.useCallback)(()=>{if(n)return;let e=x7({voiceActive:r,cancelVoiceInput:i,...b});e&&(u(e.text,e.attachments.length>0?e.attachments:void 0,l()),y?.(e.text),g(),_())},[n,r,i,u,l,y,g,_,o,s,c]),flushSteeringDraft:(0,Z.useCallback)(async()=>{if(!n&&h===0)return;let e=x7({voiceActive:r,cancelVoiceInput:i,...b});if(e){if(a){p(a,e.text,e.attachments.length>0?e.attachments:void 0,l()),y?.(e.text),v(),g(),_();return}if(d&&!x.current){if(h>=10){IR(`warning`,t.followUpQueueMaxReached,{max:10});return}x.current=!0;try{await d(e.text,e.attachments.length>0?e.attachments:void 0),y?.(e.text),g(),_()}catch(e){IR(`error`,t.followUpQueueSubmitFailed,{message:e instanceof Error?e.message:String(e)})}finally{x.current=!1}}}},[n,r,i,a,h,d,p,l,t.followUpQueueMaxReached,t.followUpQueueSubmitFailed,v,y,g,_,o,s,c]),interruptDraft:(0,Z.useCallback)(()=>{if(!n||!f)return;let e=x7({voiceActive:r,cancelVoiceInput:i,...b});e&&(f(e.text,e.attachments.length>0?e.attachments:void 0),y?.(e.text),a&&(v(),m(a)),g(),_())},[n,r,i,a,m,f,y,v,g,_,o,s,c])}}function S7(e){let{chat:t}=e,[n,r]=(0,Z.useState)([]),[i,a]=(0,Z.useState)(!1),o=(0,Z.useRef)(null),s=(0,Z.useRef)(n);s.current=n;let l=(0,Z.useCallback)(()=>{r([])},[]),u=(0,Z.useCallback)(e=>{r(t=>t.filter((t,n)=>n!==e))},[]),d=(0,Z.useCallback)(()=>s.current.map(e=>({type:e.type===`voice`?`voice`:e.type||`file`,mimeType:e.mimeType,data:e.content,name:e.name,size:e.size,...e.uri?{uri:e.uri}:{},...typeof e.durationSeconds==`number`&&Number.isFinite(e.durationSeconds)&&e.durationSeconds>0?{durationSeconds:e.durationSeconds}:{}})),[]),f=(0,Z.useCallback)(async(e,n)=>{if(e.length===0)return;let i=10-s.current.length;if(i<=0){IR(`warning`,t.maxAttachmentsReached,{max:10});return}let a=e.slice(0,i);e.length>a.length&&IR(`warning`,t.maxAttachmentsTruncated,{max:10,dropped:e.length-a.length});let{loadAttachment:o}=await c(async()=>{let{loadAttachment:e}=await import(`./attachment-load-CqSobpdi.js`);return{loadAttachment:e}},__vite__mapDeps([101,4])),l=(await Promise.all(a.map(async e=>{if(e.size>33554432)return IR(`warning`,t.attachmentFileTooLarge,{name:e.name,maxSize:mP(hF)}),null;try{return await o(e,e.name)}catch{return IR(`error`,t.attachmentLoadFailed,{name:e.name}),null}}))).filter(e=>e!==null).map(e=>n?{...e,type:n}:e);r(e=>[...e,...l])},[t.attachmentFileTooLarge,t.attachmentLoadFailed,t.maxAttachmentsReached,t.maxAttachmentsTruncated]);return{attachments:n,setAttachments:r,attachmentsRef:s,isDragging:i,setIsDragging:a,fileInputRef:o,processFiles:(0,Z.useCallback)(e=>f(e),[f]),processPastedText:(0,Z.useCallback)(e=>f([new File([e.text],e.name,{type:e.mimeType})],`pasted_text`),[f]),removeAttachment:u,clearAttachments:l,wireAttachmentsPayload:d}}function kve(e){let t=(0,Q.c)(6),{active:n,anchors:r,ignoreSelector:i,onDismiss:a}=e,o,s;t[0]!==n||t[1]!==r||t[2]!==i||t[3]!==a?(o=()=>{if(!n)return;let e=e=>{let t=e.target;if(t instanceof Node){for(let e of r){let n=e.current;if(n&&n.contains(t))return}i&&t instanceof Element&&t.closest(i)||a()}};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},s=[n,r,i,a],t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s):(o=t[4],s=t[5]),(0,Z.useEffect)(o,s)}var C7=20,Ave=`xopc.atMention.recent:`;function w7(e){return`${Ave}${e.trim()}`}function T7(e){let t=e?.trim();if(!t||typeof localStorage>`u`)return[];try{let e=localStorage.getItem(w7(t));if(!e)return[];let n=JSON.parse(e);return Array.isArray(n)?n.filter(e=>typeof e==`string`&&e.length>0).slice(0,C7):[]}catch{return[]}}function jve(e,t){let n=e?.trim(),r=t.trim();if(!(!n||!r||typeof localStorage>`u`))try{let e=[r,...T7(n).filter(e=>e!==r)].slice(0,C7);localStorage.setItem(w7(n),JSON.stringify(e))}catch{}}var Mve=150,Nve=15;function E7(e,t){let n=e.length,r=Math.min(Math.max(t,0),n);if(r<1)return null;let i=e.slice(0,r),a=i.match(/@([^\s]*)$/);if(!a||a.index===void 0)return null;let o=a.index;if(o>0&&/[a-zA-Z0-9_]/.test(e[o-1]))return null;let s=i.slice(o);return/^@(file|doc|url|symbol):/.test(s)?null:{start:o,end:r,query:a[1]??``}}function Pve(e){let t=e.trim();return t.length>0&&t.endsWith(`/`)&&!/^https?:\/\//i.test(t)}function D7(e){return e.replace(/\/+$/,``).trim()}function Fve(e){let t=e.replace(/\/+$/,``);if(!t)return``;let n=t.lastIndexOf(`/`);return n<=0?``:t.slice(0,n)}function Ive(e,t){return t===0?0:Math.min(e,t-1)}function Lve(e,t,n){let[r,i]=(0,Z.useState)(0),a=(0,Z.useMemo)(()=>n.precomputedAtRange===void 0?n.isComposing||n.slashPaletteOpen?null:E7(e,t):n.isComposing||n.slashPaletteOpen?null:n.precomputedAtRange,[e,t,n.slashPaletteOpen,n.isComposing,n.precomputedAtRange]),o=a!==null,[s]=MG(o?a?.query??``:``,Mve),c=o?s:``,l=n.sessionKey?.trim()??``,u=TA(async()=>{if(!l)return[];if(Pve(c)){let e=D7(c),t=(await pfe(e,{sessionKey:l})).map(e=>({name:e.name,relativePath:e.path,isDirectory:e.isDirectory}));return e?[{name:`..`,relativePath:``,isDirectory:!0,isBrowseUp:!0},...t]:t}let e=await r6(c,{sessionKey:l,limit:Nve}),t=T7(l),n=[],r=new Set(e.map(e=>e.relativePath));for(let e of t){if(r.has(e))continue;r.add(e);let t=e.replace(/\/$/,``).split(`/`).pop()??e;if(n.push({name:t,relativePath:e,isDirectory:e.endsWith(`/`),isRecent:!0}),n.length>=5)break}return[...n,...e]},[c,l],{enabled:o&&!!l,initial:[],errorData:[]}),d=o?u.data:[],f=o?u.loading:!1,p=o&&u.error!=null?u.error instanceof Error?u.error.message:String(u.error):null,m=a?.start,h=a?.end,g=`${m??``}:${h??``}:${c}`,_=(0,Z.useRef)(g);_.current!==g&&(_.current=g,r!==0&&i(0));let v=Ive(r,d.length),y=(0,Z.useCallback)(e=>{d.length!==0&&i(t=>e===`down`?(t+1)%d.length:(t-1+d.length)%d.length)},[d.length]);return{open:o,atRange:a,items:d,selectedIndex:v,query:a?.query??``,loading:f,error:p,onNavigate:y,setSelectedIndex:i}}function Rve(e){let{sessionKey:t,editorValue:n,editorCursor:r,isComposing:i,runBusy:a,thinkingLevel:o,editorRef:s,valueRef:c,resetEditor:l,clearAttachments:u,onSend:d,onUserTextCommitted:f,onChatAgentChange:p,currentAgentId:m,onUnavailableSkill:h,onReviewLauncher:g,onAddPendingFollowUp:_,onAbort:v,pendingFollowUpsCount:y,maxPendingFollowUps:b,commandPalettePanelRef:x}=e,S=(0,Z.useMemo)(()=>E7(n,r),[n,r]),C=nve(n,r,{suppress:S!=null,isComposing:i,currentAgentId:m}),w=Lve(n,r,{sessionKey:t,slashPaletteOpen:C.open,isComposing:i,precomputedAtRange:S}),T=C.open||w.open||S!=null,E=(0,Z.useCallback)(()=>({slashRange:C.slashRange,runBusy:a,pendingFollowUpsCount:y,maxPendingFollowUps:b,thinkingLevel:o,editor:{valueRef:c,resetEditor:l},attachments:{clearAttachments:u},callbacks:{onSend:d,onUserTextCommitted:f,onChatAgentChange:p,onAddPendingFollowUp:_,onAbort:v,onUnavailableSkill:h,onReviewLauncher:g}}),[C.slashRange,a,y,b,o,c,l,u,d,f,p,_,v,h,g]),D=(0,Z.useCallback)(e=>{G_e(e,E())},[E]),O=(0,Z.useCallback)((e,n)=>{let r=w.atRange;if(!r)return;if(e.isBrowseUp){let e=Fve(D7(r.query)),t=`@${e?`${e}/`:``}`;l({nextText:i7(c.current,r.start,r.end,t),caretOffset:r.start+t.length,focus:!0});return}let i=e.isDirectory&&!e.relativePath.endsWith(`/`)?`${e.relativePath}/`:e.relativePath,a=`@file:${e$(i)}`;t&&!e.isDirectory&&jve(t,i.replace(/\/$/,``));let o=a+(n?.stayOpen?` @`:` `);l({nextText:i7(c.current,r.start,r.end,o),caretOffset:r.start+o.length,focus:!0})},[w.atRange,t,c,l]),k=(0,Z.useRef)(C.slashRange);k.current=C.slashRange;let A=c,j=(0,Z.useCallback)(()=>{let e=k.current;if(!e)return;let t=A.current;l({nextText:t.slice(0,e.start)+t.slice(e.end),caretOffset:e.start})},[l,A]),M=(0,Z.useMemo)(()=>[s,x],[s,x]);kve({active:C.open,anchors:M,ignoreSelector:`[data-slash-palette-tooltip]`,onDismiss:j});let N=(0,Z.useRef)(w);N.current=w;let P=(0,Z.useRef)(C);P.current=C;let F=(0,Z.useRef)(i);F.current=i;let I=(0,Z.useRef)(D);I.current=D;let L=(0,Z.useRef)(O);L.current=O;let R=(0,Z.useRef)({runBusy:a,pendingFollowUpsCount:y,maxPendingFollowUps:b});R.current={runBusy:a,pendingFollowUpsCount:y,maxPendingFollowUps:b};let z=(0,Z.useMemo)(()=>({name:`at-mention`,isActive:()=>{let e=N.current;return e.open&&e.atRange!=null&&!F.current},handleKey:e=>{let t=N.current;if(!t.atRange)return!1;if(e.key===`Escape`){e.preventDefault();let n=t.atRange,r=A.current;return l({nextText:i7(r,n.start,n.end,``),caretOffset:n.start,focus:!0}),!0}if(t.items.length===0)return!1;if(e.key===`ArrowDown`)return e.preventDefault(),t.onNavigate(`down`),!0;if(e.key===`ArrowUp`)return e.preventDefault(),t.onNavigate(`up`),!0;if(e.key===`Enter`||e.key===`Tab`){e.preventDefault();let n=t.items[t.selectedIndex];return n&&L.current(n,{stayOpen:e.shiftKey}),!0}return!1}}),[l,A]),B=(0,Z.useMemo)(()=>({name:`slash-palette`,isActive:()=>P.current.open&&!F.current,handleKey:e=>{let t=P.current;if(t.items.length>0){if(e.key===`ArrowDown`)return e.preventDefault(),t.onNavigate(`down`),!0;if(e.key===`ArrowUp`)return e.preventDefault(),t.onNavigate(`up`),!0;if((e.key===`Enter`||e.key===`Tab`)&&!e.shiftKey){e.preventDefault();let n=t.items[t.selectedIndex];return!n||l7(n,R.current)||I.current(n),!0}}if(e.key===`Escape`){e.preventDefault();let n=t.slashRange;if(n){let e=A.current;l({nextText:i7(e,n.start,n.end,``),caretOffset:n.start,focus:!0})}return!0}return!1}}),[l,A]);return{palette:C,atPicker:w,shouldSyncSelection:T,adapters:(0,Z.useMemo)(()=>[z,B],[z,B]),applyPalette:D,applyAtMention:O}}function O7(e){return/^[A-Za-z0-9._/@:-]+$/.test(e)?e:JSON.stringify(e)}function k7(e,t){let n=t?.trim();return n?`${e} --instructions ${O7(n)}`:e}function zve(e){if(e.preset===`base`){if(!e.baseBranch?.trim())throw Error(`Missing base branch.`);return k7(`/review --base ${O7(e.baseBranch.trim())}`,e.instructions)}if(e.preset===`commit`){if(!e.commitSha?.trim())throw Error(`Missing commit SHA.`);return k7(`/review --commit ${O7(e.commitSha.trim())}`,e.instructions)}return e.preset,k7(`/review --uncommitted`,e.instructions)}async function Bve(e){let t=await L(z(`/api/review/context?${new URLSearchParams({sessionKey:e}).toString()}`)),n=await t.json().catch(()=>({}));if(!t.ok||!n.ok||!n.payload)throw Error(N(t.status,t.statusText,n.error?.message));return n.payload}function Vve(e,t){let n=e?.status;if(!n)return``;if(n.isClean)return t.statusClean;let r=[];return n.changedFiles>0&&r.push(t.statusChanged.replace(`{{count}}`,String(n.changedFiles))),n.untrackedFiles>0&&r.push(t.statusUntracked.replace(`{{count}}`,String(n.untrackedFiles))),r.join(`, `)}function Hve(e,t){let n=t.trim().toLowerCase(),r=[...(e?.branches??[]).filter(e=>!e.current)].sort((t,n)=>t.name===e?.defaultBaseBranch&&n.name!==e.defaultBaseBranch?-1:n.name===e?.defaultBaseBranch&&t.name!==e.defaultBaseBranch?1:t.name.localeCompare(n.name));return n?r.filter(e=>e.name.toLowerCase().includes(n)):r}function Uve(e,t){let n=t.trim().toLowerCase(),r=e?.commits??[];return n?r.filter(e=>`${e.sha} ${e.shortSha} ${e.subject}`.toLowerCase().includes(n)):r}function A7(e){let t=(0,Q.c)(15),{icon:n,title:r,description:i,disabled:a,onClick:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=C(`flex min-h-16 w-full items-center gap-3 rounded-lg border border-edge bg-surface-panel px-3 py-2.5 text-left`,`hover:border-accent/45 hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,`disabled:cursor-not-allowed disabled:opacity-50`,aT.transition),t[0]=s):s=t[0];let c;t[1]===n?c=t[2]:(c=(0,$.jsx)(`span`,{className:`inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-hover text-fg-muted`,children:n}),t[1]=n,t[2]=c);let l;t[3]===r?l=t[4]:(l=(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r}),t[3]=r,t[4]=l);let u;t[5]===i?u=t[6]:(u=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,children:i}),t[5]=i,t[6]=u);let d;t[7]!==l||t[8]!==u?(d=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[l,u]}),t[7]=l,t[8]=u,t[9]=d):d=t[9];let f;return t[10]!==a||t[11]!==o||t[12]!==c||t[13]!==d?(f=(0,$.jsxs)(`button`,{type:`button`,disabled:a,className:s,onClick:o,children:[c,d]}),t[10]=a,t[11]=o,t[12]=c,t[13]=d,t[14]=f):f=t[14],f}function Wve(e){let t=(0,Q.c)(89),{open:n,sessionKey:r,disabled:i,chat:a,onClose:o,onSendCommand:s}=e,c=a.reviewLauncher,[l,u]=(0,Z.useState)(null),[d,f]=(0,Z.useState)(!1),[p,m]=(0,Z.useState)(null),[h,g]=(0,Z.useState)(`presets`),[_,v]=(0,Z.useState)(``),[y,b]=(0,Z.useState)(``),x;t[0]!==c.noSession||t[1]!==r?(x=()=>{if(!r){u(null),m(c.noSession);return}f(!0),m(null),Bve(r).then(e=>u(e)).catch(e=>{u(null),m(e instanceof Error?e.message:String(e))}).finally(()=>f(!1))},t[0]=c.noSession,t[1]=r,t[2]=x):x=t[2];let S=x,C,w;t[3]!==S||t[4]!==n?(C=()=>{n&&(g(`presets`),v(``),b(``),S())},w=[S,n],t[3]=S,t[4]=n,t[5]=C,t[6]=w):(C=t[5],w=t[6]),(0,Z.useEffect)(C,w);let T;t[7]!==l||t[8]!==_?(T=Hve(l,_),t[7]=l,t[8]=_,t[9]=T):T=t[9];let E=T,D;t[10]!==l||t[11]!==_?(D=Uve(l,_),t[10]=l,t[11]=_,t[12]=D):D=t[12];let O=D,k;t[13]!==l||t[14]!==c?(k=Vve(l,c),t[13]=l,t[14]=c,t[15]=k):k=t[15];let A=k,j;t[16]!==y||t[17]!==o||t[18]!==s?(j=(e,t)=>{s(zve({preset:e,baseBranch:t?.branch,commitSha:t?.commit,instructions:y})),o()},t[16]=y,t[17]=o,t[18]=s,t[19]=j):j=t[19];let M=j,N=h===`base`?c.baseTitle:h===`commit`?c.commitTitle:h===`custom`?c.customTitle:c.title,P;t[20]===o?P=t[21]:(P=e=>!e&&o(),t[20]=o,t[21]=P);let F;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[120] bg-scrim backdrop-blur-[1px]`}),t[22]=F):F=t[22];let I;t[23]!==c.back||t[24]!==h?(I=h===`presets`?null:(0,$.jsx)(`button`,{type:`button`,className:`inline-flex size-8 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":c.back,onClick:()=>{g(`presets`),v(``)},children:(0,$.jsx)(yn,{className:`size-4`})}),t[23]=c.back,t[24]=h,t[25]=I):I=t[25];let L;t[26]===N?L=t[27]:(L=(0,$.jsx)(eO,{className:`truncate text-sm font-semibold text-fg`,children:N}),t[26]=N,t[27]=L);let R=l?.cwd??c.description,z;t[28]===R?z=t[29]:(z=(0,$.jsx)(nO,{className:`truncate text-xs text-fg-muted`,children:R}),t[28]=R,t[29]=z);let B;t[30]!==L||t[31]!==z?(B=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[L,z]}),t[30]=L,t[31]=z,t[32]=B):B=t[32];let V;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(Aw,{className:`size-4`}),t[33]=V):V=t[33];let H;t[34]!==c.close||t[35]!==o?(H=(0,$.jsx)(`button`,{type:`button`,className:`inline-flex size-8 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":c.close,onClick:o,children:V}),t[34]=c.close,t[35]=o,t[36]=H):H=t[36];let U;t[37]!==I||t[38]!==B||t[39]!==H?(U=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-edge px-4 py-3`,children:[I,B,H]}),t[37]=I,t[38]=B,t[39]=H,t[40]=U):U=t[40];let W;t[41]!==E||t[42]!==O||t[43]!==l||t[44]!==i||t[45]!==p||t[46]!==y||t[47]!==S||t[48]!==d||t[49]!==c.customDescription||t[50]!==c.customPlaceholder||t[51]!==c.defaultBadge||t[52]!==c.errorTitle||t[53]!==c.loading||t[54]!==c.localBadge||t[55]!==c.noBranches||t[56]!==c.noCommits||t[57]!==c.presetBase||t[58]!==c.presetBaseDescription||t[59]!==c.presetBaseDescriptionNoDefault||t[60]!==c.presetCommit||t[61]!==c.presetCommitDescription||t[62]!==c.presetCustom||t[63]!==c.presetCustomDescription||t[64]!==c.presetUncommitted||t[65]!==c.remoteBadge||t[66]!==c.retry||t[67]!==c.searchBranches||t[68]!==c.searchCommits||t[69]!==_||t[70]!==M||t[71]!==A||t[72]!==h?(W=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-4`,children:d?(0,$.jsxs)(`div`,{className:`flex h-full min-h-56 items-center justify-center text-sm text-fg-muted`,children:[(0,$.jsx)(ky,{className:`mr-2 size-4 animate-spin`}),c.loading]}):p?(0,$.jsxs)(`div`,{className:`rounded-lg border border-danger/30 bg-danger/5 p-4`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium text-fg`,children:c.errorTitle}),(0,$.jsx)(`div`,{className:`mt-1 text-sm text-fg-muted`,children:p}),(0,$.jsxs)(Zw,{type:`button`,className:`mt-4 h-9 rounded-lg`,variant:`secondary`,onClick:S,children:[(0,$.jsx)(ky,{className:`size-4`}),c.retry]})]}):h===`presets`?(0,$.jsxs)(`div`,{className:`grid gap-2`,children:[(0,$.jsx)(A7,{icon:(0,$.jsx)(Ep,{className:`size-4`}),title:c.presetBase,description:l?.defaultBaseBranch?c.presetBaseDescription.replace(`{{branch}}`,l.defaultBaseBranch):c.presetBaseDescriptionNoDefault,disabled:i,onClick:()=>g(`base`)}),(0,$.jsx)(A7,{icon:(0,$.jsx)(Ag,{className:`size-4`}),title:c.presetUncommitted,description:A,disabled:i,onClick:()=>M(`uncommitted`)}),(0,$.jsx)(A7,{icon:(0,$.jsx)(Dp,{className:`size-4`}),title:c.presetCommit,description:c.presetCommitDescription.replace(`{{count}}`,String(l?.commits.length??0)),disabled:i,onClick:()=>g(`commit`)}),(0,$.jsx)(A7,{icon:(0,$.jsx)(Ag,{className:`size-4`}),title:c.presetCustom,description:c.presetCustomDescription,disabled:i,onClick:()=>g(`custom`)})]}):h===`base`?(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(j7,{value:_,placeholder:c.searchBranches,onChange:v}),(0,$.jsx)(`div`,{className:`grid gap-1`,children:E.length===0?(0,$.jsx)(`div`,{className:`rounded-lg border border-edge-subtle px-3 py-6 text-center text-sm text-fg-muted`,children:c.noBranches}):E.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex items-center justify-between gap-3 rounded-lg px-3 py-2 text-left hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,disabled:i,onClick:()=>M(`base`,{branch:e.name}),children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm text-fg`,children:e.name}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:e.name===l?.defaultBaseBranch?c.defaultBadge:e.remote?c.remoteBadge:c.localBadge})]},e.name))})]}):h===`commit`?(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(j7,{value:_,placeholder:c.searchCommits,onChange:v}),(0,$.jsx)(`div`,{className:`grid gap-1`,children:O.length===0?(0,$.jsx)(`div`,{className:`rounded-lg border border-edge-subtle px-3 py-6 text-center text-sm text-fg-muted`,children:c.noCommits}):O.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex items-center gap-3 rounded-lg px-3 py-2 text-left hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,disabled:i,onClick:()=>M(`commit`,{commit:e.sha}),children:[(0,$.jsx)(`span`,{className:`font-mono text-xs text-fg-muted`,children:e.shortSha}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg`,children:e.subject}),e.date?(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:e.date.slice(0,10)}):null]},e.sha))})]}):(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(`textarea`,{className:`h-40 resize-none rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg outline-none placeholder:text-fg-disabled focus:border-accent focus:ring-2 focus:ring-accent/25`,value:y,placeholder:c.customPlaceholder,onChange:e=>b(e.target.value)}),(0,$.jsx)(`div`,{className:`text-xs text-fg-muted`,children:c.customDescription})]})}),t[41]=E,t[42]=O,t[43]=l,t[44]=i,t[45]=p,t[46]=y,t[47]=S,t[48]=d,t[49]=c.customDescription,t[50]=c.customPlaceholder,t[51]=c.defaultBadge,t[52]=c.errorTitle,t[53]=c.loading,t[54]=c.localBadge,t[55]=c.noBranches,t[56]=c.noCommits,t[57]=c.presetBase,t[58]=c.presetBaseDescription,t[59]=c.presetBaseDescriptionNoDefault,t[60]=c.presetCommit,t[61]=c.presetCommitDescription,t[62]=c.presetCustom,t[63]=c.presetCustomDescription,t[64]=c.presetUncommitted,t[65]=c.remoteBadge,t[66]=c.retry,t[67]=c.searchBranches,t[68]=c.searchCommits,t[69]=_,t[70]=M,t[71]=A,t[72]=h,t[73]=W):W=t[73];let G;t[74]!==i||t[75]!==c.cancel||t[76]!==c.runReview||t[77]!==o||t[78]!==M||t[79]!==h?(G=h===`custom`?(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge px-4 py-3`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,className:`h-9 rounded-lg`,onClick:o,children:c.cancel}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`h-9 rounded-lg`,disabled:i,onClick:()=>M(`custom`),children:c.runReview})]}):null,t[74]=i,t[75]=c.cancel,t[76]=c.runReview,t[77]=o,t[78]=M,t[79]=h,t[80]=G):G=t[80];let K;t[81]!==U||t[82]!==W||t[83]!==G?(K=(0,$.jsxs)(UD,{children:[F,(0,$.jsxs)(YD,{className:`fixed left-1/2 top-1/2 z-[121] flex h-[min(86vh,34rem)] w-[min(100vw-2rem,40rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`,children:[U,W,G]})]}),t[81]=U,t[82]=W,t[83]=G,t[84]=K):K=t[84];let ee;return t[85]!==n||t[86]!==K||t[87]!==P?(ee=(0,$.jsx)(LD,{open:n,onOpenChange:P,children:K}),t[85]=n,t[86]=K,t[87]=P,t[88]=ee):ee=t[88],ee}function j7(e){let t=(0,Q.c)(7),{value:n,placeholder:r,onChange:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(Iy,{className:`size-4 shrink-0 text-fg-muted`}),t[0]=a):a=t[0];let o;t[1]===i?o=t[2]:(o=e=>i(e.target.value),t[1]=i,t[2]=o);let s;return t[3]!==r||t[4]!==o||t[5]!==n?(s=(0,$.jsxs)(`label`,{className:`flex h-9 items-center gap-2 rounded-lg border border-edge bg-surface-base px-3 text-sm text-fg focus-within:border-accent focus-within:ring-2 focus-within:ring-accent/25`,children:[a,(0,$.jsx)(`input`,{className:`min-w-0 flex-1 bg-transparent outline-none placeholder:text-fg-disabled`,value:n,placeholder:r,onChange:o})]}),t[3]=r,t[4]=o,t[5]=n,t[6]=s):s=t[6],s}var Gve=(0,Z.memo)(function({disabled:e,sending:t,streaming:n,sessionKey:r,sessionManager:i,canSelectWorkingDirectory:a,thinkingLevel:o,modelSupportsThinking:s,onThinkingChange:c,reasoningLevel:l,activityDetailDefault:u,activityDetailOverride:d,onReasoningChange:p,onSend:m,onAbort:h,onAddPendingFollowUp:g,onSteeringInterrupt:_,pendingFollowUps:v,editingFollowUpId:y,onBeginEditFollowUp:b,onCancelEditFollowUp:x,onCommitEditFollowUp:S,onPendingFollowUpRemove:w,onPendingFollowUpMove:T,onPendingFollowUpReorder:E,onPendingFollowUpSteer:D,steeringFollowUpId:O,welcomeDraftSeed:k,welcomeSuggestion:A,onAcceptWelcomeSuggestion:M,sessionModel:N,showModelSelector:P,onModelChange:F,modelDisabled:L,contextUsageMessages:R,onChatAgentChange:z,currentAgentId:B}){let V=j(I(e=>e.language)),[H,U]=f();(0,Z.useEffect)(()=>{Z3()},[]);let W=(0,Z.useRef)(!1),G=(0,Z.useRef)(null),K=(0,Z.useRef)(null),ee=(0,Z.useRef)(null),q=(0,Z.useRef)(!1),[te,ne]=(0,Z.useState)(!1),re=(0,Z.useRef)(m),ie=(0,Z.useRef)(o);re.current=m,ie.current=o;let ae=S7({chat:V.chat}),oe=(0,Z.useCallback)(()=>{ae.clearAttachments()},[ae.clearAttachments]),se=(0,Z.useCallback)(e=>{let t=e.availability?.status===`agent-denied`?V.chat.commandPalette.skillAgentDeniedReason:V.chat.commandPalette.skillDisabledReason,n=L5(V.chat.commandPalette.skillUnavailableMessage,{name:e.name,agent:B||`main`,reason:t});if(e.availability?.status===`agent-denied`&&window.confirm(`${n}\n\n${V.chat.commandPalette.skillAddToAllowlistConfirm}`)){cfe(B,e.name).catch(e=>{window.alert(e instanceof Error?e.message:String(e))});return}window.alert(n)},[B,V.chat.commandPalette]),J=qge({disabled:e,autoFocusKey:r,welcomeDraftSeed:k,onExternalTextReplace:oe,shouldSyncSelectionRef:W}),ce=H.get(`attachmentHandoff`);(0,Z.useEffect)(()=>{if(!r||!ce)return;let e=_me(ce);U(e=>{let t=new URLSearchParams(e);return t.delete(`attachmentHandoff`),t},{replace:!0}),e&&ae.processFiles([e]).then(()=>J.editorRef.current?.focus())},[ce,ae.processFiles,J.editorRef,r,U]);let{onUserTextCommitted:le,onWireInputClearWalk:ue,tryInputHistoryArrow:de}=Eve({sessionKey:r,editorRef:J.editorRef,valueRef:J.valueRef,resetEditor:J.resetEditor,onWireInput:J.onWireInput}),fe=t||n;q.current=fe;let pe=(0,Z.useCallback)(()=>{q.current||ne(!0)},[]),me=(0,Z.useCallback)(e=>{re.current(e,void 0,ie.current),le?.(e)},[le]),he=Rve({sessionKey:r,editorValue:J.value,editorCursor:J.cursor,isComposing:J.isComposing,runBusy:fe,thinkingLevel:o,editorRef:J.editorRef,valueRef:J.valueRef,resetEditor:J.resetEditor,clearAttachments:ae.clearAttachments,onSend:m,onUserTextCommitted:le,onChatAgentChange:z,currentAgentId:B,onUnavailableSkill:se,onReviewLauncher:pe,onAddPendingFollowUp:g,onAbort:h,pendingFollowUpsCount:v.length,maxPendingFollowUps:10,commandPalettePanelRef:G});W.current=he.shouldSyncSelection;let ge=(0,Z.useMemo)(()=>J.value.length,[J.value]),_e=C6({disabled:e,chat:V.chat,onTranscript:e=>{let t=J.valueRef.current,n=m6(t,e);J.resetEditor({nextText:n,caretOffset:n.length,focus:!0})}}),{phase:ve,voiceActive:ye,startVoiceInput:be,cancelVoiceInput:xe,confirmVoiceInput:Se}=_e;(0,Z.useEffect)(()=>{let t=t=>{let n=t?.detail?.target;if(!(n&&n!==`chat`)&&(t?.preventDefault(),!e)){if(ve===`recording`){Se();return}(ve===`idle`||ve===`error`)&&(J.editorRef.current?.focus(),be())}},n=e=>{let t=e.detail?.target;t&&t!==`chat`||!ye||(e.preventDefault(),xe(),J.editorRef.current?.focus())};window.addEventListener(w6,t),window.addEventListener(T6,n);let r=window.setTimeout(()=>{if(Zfe()){if(e){k6();return}t()}},0);return()=>{window.clearTimeout(r),window.removeEventListener(w6,t),window.removeEventListener(T6,n)}},[xe,Se,e,J.editorRef,be,ye,ve]);let Ce=(0,Z.useCallback)(()=>{ee.current=null},[]),we=Ove({chat:V.chat,runBusy:fe,voiceActive:_e.voiceActive,cancelVoiceInput:_e.cancelVoiceInput,editingFollowUpId:y,getTextValue:()=>J.valueRef.current,getAttachmentCount:()=>ae.attachmentsRef.current.length,wireAttachmentsPayload:ae.wireAttachmentsPayload,getThinkingLevel:()=>ie.current,onSend:m,onAddPendingFollowUp:g,onSteeringInterrupt:_,onCommitEditFollowUp:S,onPendingFollowUpRemove:w,pendingFollowUpsCount:v.length,resetEditor:()=>{J.resetEditor()},clearAttachments:ae.clearAttachments,clearEditFollowUpRef:Ce,onUserTextCommitted:le});(0,Z.useLayoutEffect)(()=>{if(!y){ee.current&&=(ae.clearAttachments(),J.resetEditor(),null);return}if(y===ee.current)return;let e=v.find(e=>e.id===y);if(!e){x();return}ee.current=y,e.thinkingLevel!=null&&s&&c(e.thinkingLevel),ae.setAttachments(I_e(e.attachments??[])),J.resetEditor({nextText:e.text,focus:!0})},[ae.clearAttachments,ae.setAttachments,J.resetEditor,y,x,c,v,s]);let Te=(0,Z.useCallback)(e=>{b(e)},[b]),Ee=(0,Z.useRef)({});Ee.current={adapters:he.adapters,send:we.send,runBusy:fe,pendingFollowUpsCount:v.length,flushSteeringDraft:we.flushSteeringDraft,interruptDraft:we.interruptDraft,editingFollowUpId:y,onCancelEditFollowUp:x,attachmentsLen:ae.attachments.length,isComposing:J.isComposing,valueRef:J.valueRef,adjustHeight:J.adjustHeight,editorRef:J.editorRef,tryInputHistoryArrow:de,acceptEmptySuggestion:!fe&&A&&M?()=>(M(A),!0):void 0};let De=fe,Oe=!!J.value.trim()||ae.attachments.length>0,ke=Oe&&!!_,Ae=!De&&!y&&A?`${A.prompt} · ${V.chat.welcomeSpotlight.acceptSuggestionHint}`:null;return(0,$.jsxs)(`div`,{className:C(`relative flex min-h-0 w-full flex-col overflow-hidden rounded-xl bg-surface-panel shadow-surface ring-1 ring-inset ring-edge dark:bg-surface-panel/60 dark:shadow-none`,ae.isDragging&&`ring-2 ring-accent ring-inset`),onDragOver:e=>{e.dataTransfer?.types.includes(`Files`)&&(e.preventDefault(),ae.setIsDragging(!0))},onDragLeave:e=>{e.relatedTarget===null&&ae.setIsDragging(!1)},onDrop:async e=>{e.preventDefault(),ae.setIsDragging(!1);let t=e.dataTransfer?.files;t?.length&&await ae.processFiles(Array.from(t))},children:[ae.isDragging?(0,$.jsx)(`div`,{className:`pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-xl bg-accent-soft/80 text-sm font-medium text-accent-fg backdrop-blur-[1px]`,children:V.chat.dropFiles}):null,(0,$.jsx)(PR,{}),v.length>0?(0,$.jsx)(`div`,{className:`max-h-[min(30vh,11rem)] shrink-0 overflow-y-auto overflow-x-hidden border-b border-edge-subtle/80 [scrollbar-gutter:stable] dark:border-edge-subtle/70`,children:(0,$.jsx)(Xge,{items:v,disabled:e,editingFollowUpId:y,onEditInComposer:Te,onRemove:w,onMove:T,onReorder:E,onSteer:D,steeringBusyId:O})}):null,(0,$.jsx)(P5,{attachments:ae.attachments,topPadded:v.length>0,onRemove:ae.removeAttachment}),(0,$.jsxs)(`div`,{className:`flex min-h-0 shrink-0 flex-col`,children:[(0,$.jsx)(`input`,{ref:K,type:`file`,multiple:!0,accept:x5,className:`hidden`,onChange:async e=>{let t=e.target.files;t&&await ae.processFiles(Array.from(t)),e.target.value=``}}),(0,$.jsxs)(`div`,{className:C(`relative px-4 pb-0 pt-1`,ae.attachments.length>0&&`pt-2`),children:[(0,$.jsx)(H_e,{open:he.atPicker.open,anchorRef:J.editorRef,items:he.atPicker.items,selectedIndex:he.atPicker.selectedIndex,loading:he.atPicker.loading,query:he.atPicker.query,noResults:he.atPicker.error??V.chat.atMention.noResults,sessionKey:r,recentLabel:V.chat.atMention.recentBadge,ariaLabel:V.chat.atMention.placeholder,shiftHint:V.chat.atMention.shiftHint,onSelectItem:(e,t)=>he.applyAtMention(e,{stayOpen:t?.shiftKey===!0})}),(0,$.jsx)(bve,{open:he.palette.open,anchorRef:J.editorRef,panelRef:G,items:he.palette.loadError?[]:he.palette.items,selectedIndex:he.palette.selectedIndex,noResults:he.palette.loadError??V.chat.commandPalette.noResults,grouped:he.palette.loadError?!1:he.palette.grouped,skillRowCount:he.palette.loadError?0:he.palette.skillRowCount,commandRowCount:he.palette.loadError?0:he.palette.commandRowCount,query:he.palette.query,skillsLabel:V.chat.commandPalette.skillsSection,commandsLabel:V.chat.commandPalette.commandsSection,agentsLabel:V.chat.commandPalette.agentsSection,groupedHasSkills:he.palette.loadError?!1:he.palette.groupedHasSkills,groupedHasCommands:he.palette.loadError?!1:he.palette.groupedHasCommands,groupedHasAgents:he.palette.loadError?!1:he.palette.groupedHasAgents,groupedSkillsShowMoreLabel:he.palette.loadError||!he.palette.grouped?null:he.palette.groupedSkillsMoreCount>0?L5(V.chat.commandPalette.showGroupedMore,{count:he.palette.groupedSkillsMoreCount}):null,groupedCommandsShowMoreLabel:he.palette.loadError||!he.palette.grouped?null:he.palette.groupedCommandsMoreCount>0?L5(V.chat.commandPalette.showGroupedMore,{count:he.palette.groupedCommandsMoreCount}):null,groupedAgentsShowMoreLabel:he.palette.loadError||!he.palette.grouped?null:he.palette.groupedAgentsMoreCount>0?L5(V.chat.commandPalette.showGroupedMore,{count:he.palette.groupedAgentsMoreCount}):null,onExpandSkills:he.palette.expandGroupedSkills,onExpandCommands:he.palette.expandGroupedCommands,onExpandAgents:he.palette.expandGroupedAgents,currentAgentId:B,currentBadgeLabel:V.chat.commandPalette.currentBadge,runBusy:fe,pendingFollowUpsCount:v.length,maxPendingFollowUps:10,queueBadgeLabel:V.chat.commandPalette.queueBadge,queueFullBadgeLabel:V.chat.commandPalette.queueFullBadge,queueFullTooltip:V.chat.commandPalette.queueFullTooltip,skillUnavailableLabel:V.chat.commandPalette.skillUnavailableBadge,skillAgentDeniedLabel:V.chat.commandPalette.skillAgentDeniedBadge,onSelectItem:he.applyPalette}),_e.voiceActive?(0,$.jsx)(_6,{phase:_e.phase,elapsedLabel:_e.elapsedLabel,audioLevel:_e.audioLevel,readiness:_e.readiness,hasRetainedRecording:_e.hasRetainedRecording,disabled:e,chat:V.chat,onCancel:_e.cancelVoiceInput,onConfirm:_e.confirmVoiceInput,onRetry:_e.retryVoiceInput}):(0,$.jsx)(Jge,{editorRef:J.editorRef,disabled:e,ariaLabel:V.chat.inputPlaceholder,placeholder:Ae??(De?y?V.chat.inputPlaceholderSteeringEdit:V.chat.inputPlaceholderSteering:V.chat.inputPlaceholder),onWireInput:ue,adjustHeight:J.adjustHeight,processFiles:ae.processFiles,processPastedText:ae.processPastedText,setIsComposing:J.setIsComposing,kbdRef:Ee,chatMessages:V.chat})]}),(0,$.jsx)(N_e,{sessionKey:r,sessionManager:i,disabled:e,sending:t,streaming:n,canSelectWorkingDirectory:a,runBusy:De,chat:V.chat,hasDraft:Oe,showSteeringInterrupt:ke,attachmentCount:ae.attachments.length,maxAttachments:10,onPickFiles:()=>K.current?.click(),thinkingLevel:o,modelSupportsThinking:s,onThinkingChange:c,reasoningLevel:l,activityDetailDefault:u,activityDetailOverride:d,onReasoningChange:p,voiceActive:_e.voiceActive,voiceReadiness:_e.readiness,onStartVoiceInput:_e.startVoiceInput,onSend:we.send,onAbort:h,onInterrupt:we.interruptDraft,sessionModel:N,showModelSelector:P,onModelChange:F,modelDisabled:L,contextUsageMessages:R,composerDraftChars:ge})]}),(0,$.jsx)(Wve,{open:te,sessionKey:r,disabled:e||De,chat:V.chat,onClose:()=>ne(!1),onSendCommand:me})]})});function Kve(e){let t=(0,Q.c)(18),{project:n,workspace:r,projectLabel:i,workspaceLabel:a,returnTo:o}=e,s;t[0]!==n.effectiveWorkspaceRoot||t[1]!==n.workspaceRoot||t[2]!==r?(s=n.effectiveWorkspaceRoot||n.workspaceRoot||r?.trim(),t[0]=n.effectiveWorkspaceRoot,t[1]=n.workspaceRoot,t[2]=r,t[3]=s):s=t[3];let c=s,l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(Ff,{className:`size-3.5 shrink-0 text-accent-fg`,strokeWidth:1.75,"aria-hidden":!0}),t[4]=l):l=t[4];let u=`/projects/${encodeURIComponent(n.id)}`,d;t[5]!==o||t[6]!==u?(d=OV(u,o),t[5]=o,t[6]=u,t[7]=d):d=t[7];let f;t[8]!==n.name||t[9]!==i||t[10]!==d?(f=(0,$.jsxs)(y,{to:d,className:`min-w-0 truncate font-medium text-fg transition-colors hover:text-accent-fg`,children:[i,`: `,n.name]}),t[8]=n.name,t[9]=i,t[10]=d,t[11]=f):f=t[11];let p;t[12]!==c||t[13]!==a?(p=c?(0,$.jsxs)(`span`,{className:`min-w-0 truncate text-fg-subtle`,title:c,children:[`· `,a,`: `,c]}):null,t[12]=c,t[13]=a,t[14]=p):p=t[14];let m;return t[15]!==f||t[16]!==p?(m=(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge-subtle bg-surface-panel/80 px-3 py-1.5 sm:px-5 xl:px-6`,children:(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 text-xs text-fg-muted`,children:[l,f,p]})}),t[15]=f,t[16]=p,t[17]=m):m=t[17],m}function qve(e){let t=(0,Q.c)(3),[n,r]=(0,Z.useState)(null),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{let t=!1;return r(null),e&&CR(e).then(Jve).then(e=>{t||r(e)}).catch(()=>{t||r(null)}),()=>{t=!0}},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,Z.useEffect)(i,a),n}function Jve(e){return e.projectId?FL(e.projectId):null}function Yve(e,t){let n=l6(e,t),r=u6(e,t);return`${e.id} ${n} ${r}`.toLowerCase()}function Xve(e,t,n){let r=t.trim().toLowerCase();if(!r)return e;let i=r.split(/\s+/).filter(Boolean);return e.filter(e=>{let t=Yve(e,n);return i.every(e=>t.includes(e))})}function Zve(e){let t=(0,Q.c)(56),{items:n,value:r,disabled:i,placeholder:a,searchPlaceholder:o,noMatches:s,compact:c,contentSide:l,contentAlign:u,className:d,onChange:f}=e,p=l===void 0?`bottom`:l,m=u===void 0?`end`:u,h=I($ve),g;t[0]===h?g=t[1]:(g=j(h),t[0]=h,t[1]=g);let _=g.agentsSettings,[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(``),w;t[2]!==_||t[3]!==n||t[4]!==b?(w=Xve(n,b,_),t[2]=_,t[3]=n,t[4]=b,t[5]=w):w=t[5];let T=w,E,D,O;if(t[6]!==_||t[7]!==n||t[8]!==a||t[9]!==r){let e;t[13]===r?e=t[14]:(e=e=>e.id===r,t[13]=r,t[14]=e),D=n.find(e),E=D?l6(D,_):r||a,O=D?[l6(D,_),u6(D,_)].filter(Boolean).join(` — `):void 0,t[6]=_,t[7]=n,t[8]=a,t[9]=r,t[10]=E,t[11]=D,t[12]=O}else E=t[10],D=t[11],O=t[12];let k=O??a,A=c&&`min-w-0 max-w-[min(calc(15ch+3rem),calc(100vw-8rem))] py-1.5 text-[13px]`,M;t[15]!==d||t[16]!==A?(M=C(iT,`items-center gap-2 rounded-lg border border-edge-subtle bg-surface-panel px-2.5 py-2 text-left text-sm font-normal text-fg`,aT.transition,`hover:border-edge hover:bg-surface-hover/45`,tT,eT,`disabled:cursor-not-allowed disabled:opacity-50`,`dark:border-edge-subtle dark:hover:bg-surface-hover/55`,A,d),t[15]=d,t[16]=A,t[17]=M):M=t[17];let N;t[18]!==D?.avatar||t[19]!==r?(N=r?(0,$.jsx)(gR,{agentId:r,avatar:D?.avatar,size:28,className:`shrink-0`}):null,t[18]=D?.avatar,t[19]=r,t[20]=N):N=t[20];let P=c?`max-w-[15ch] shrink`:`flex-1`,F;t[21]===P?F=t[22]:(F=C(`min-w-0 truncate text-left`,P),t[21]=P,t[22]=F);let L;t[23]!==E||t[24]!==F?(L=(0,$.jsx)(`span`,{className:F,children:E}),t[23]=E,t[24]=F,t[25]=L):L=t[25];let R;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(To,{className:`size-4 shrink-0 text-fg-subtle opacity-70`,"aria-hidden":!0}),t[26]=R):R=t[26];let z;t[27]!==i||t[28]!==L||t[29]!==k||t[30]!==M||t[31]!==N?(z=(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,disabled:i,title:k,className:M,children:[N,L,R]})}),t[27]=i,t[28]=L,t[29]=k,t[30]=M,t[31]=N,t[32]=z):z=t[32];let B;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(B=C(`z-50 w-[var(--radix-popover-trigger-width)] min-w-[12rem] max-h-[min(20rem,calc(100vh-6rem))] overflow-hidden rounded-lg border border-edge bg-surface-panel shadow-md`,aT),t[33]=B):B=t[33];let V;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>x(e.target.value),t[34]=V):V=t[34];let H;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(H=C(`w-full rounded-md border border-edge bg-surface-elevated px-2.5 py-1.5 text-sm text-fg placeholder:text-fg-muted`,tT),t[35]=H):H=t[35];let U;t[36]!==b||t[37]!==o?(U=(0,$.jsx)(`div`,{className:`border-b border-edge p-2`,children:(0,$.jsx)(`input`,{type:`search`,value:b,onChange:V,placeholder:o,className:H,"aria-label":o})}),t[36]=b,t[37]=o,t[38]=U):U=t[38];let W;t[39]!==_||t[40]!==T||t[41]!==s||t[42]!==f||t[43]!==r?(W=T.length===0?(0,$.jsx)(`li`,{className:`p-2 text-sm text-fg-muted`,children:s}):T.map(e=>{let t=e.id===r,n=l6(e,_),i=u6(e,_),a=i.length>0?i:void 0;return(0,$.jsx)(`li`,{role:`option`,"aria-selected":t,children:(0,$.jsxs)(`button`,{type:`button`,className:C(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-fg`,t?`bg-surface-hover`:`hover:bg-surface-hover`),onClick:()=>{f(e.id),y(!1),x(``)},children:[(0,$.jsx)(S,{className:C(`size-4 shrink-0`,t?`opacity-100`:`opacity-0`),"aria-hidden":!0}),(0,$.jsx)(gR,{agentId:e.id,avatar:e.avatar,size:32,className:`shrink-0`}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate font-medium leading-tight`,title:n,children:n}),i?(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs leading-tight text-fg-muted`,title:a,children:i}):null]})]})},e.id)}),t[39]=_,t[40]=T,t[41]=s,t[42]=f,t[43]=r,t[44]=W):W=t[44];let G;t[45]===W?G=t[46]:(G=(0,$.jsx)(`ul`,{className:`max-h-[min(16rem,calc(100vh-10rem))] overflow-y-auto p-1`,role:`listbox`,children:W}),t[45]=W,t[46]=G);let K;t[47]!==m||t[48]!==p||t[49]!==U||t[50]!==G?(K=(0,$.jsx)(tE,{children:(0,$.jsxs)(nE,{side:p,align:m,sideOffset:4,collisionPadding:8,className:B,onOpenAutoFocus:Qve,children:[U,G]})}),t[47]=m,t[48]=p,t[49]=U,t[50]=G,t[51]=K):K=t[51];let ee;return t[52]!==v||t[53]!==z||t[54]!==K?(ee=(0,$.jsxs)(QT,{open:v,onOpenChange:y,children:[z,K]}),t[52]=v,t[53]=z,t[54]=K,t[55]=ee):ee=t[55],ee}function Qve(e){return e.preventDefault()}function $ve(e){return e.language}var eye=`(max-width: 767px)`,M7=(0,Z.memo)(function(e){let t=(0,Q.c)(27),{chatHeadline:n,chatAgents:r,showChatAgentSelector:i,chatAgentId:a,onChatAgentChange:o,chatAgentDisabled:s}=e,c=I(tye),{sessionKey:l}=d(),u=l&&l!==`new`?decodeURIComponent(l):null,f;t[0]===c?f=t[1]:(f=j(c),t[0]=c,t[1]=f);let p=f,m=bD(nye),h=fq(rye),g=fq(iye),_=_2(aye),v=OD(oye),b=Xk(sye),x=Xk(cye),S=f5(eye),w;t[2]!==v||t[3]!==m?(w=tD({runtime:eD(),sidebarCollapsed:m,mobileNavOpen:v}),t[2]=v,t[3]=m,t[4]=w):w=t[4];let T=S?!v:w.collapsedNewChatVisible,E,D;t[5]===x?(E=t[6],D=t[7]):(E=()=>()=>x(),D=[x],t[5]=x,t[6]=E,t[7]=D),(0,Z.useLayoutEffect)(E,D);let O,k;return t[8]!==s||t[9]!==a||t[10]!==r||t[11]!==n||t[12]!==p.chat.agentNoMatches||t[13]!==p.chat.agentPlaceholder||t[14]!==p.chat.agentSearchPlaceholder||t[15]!==p.sidebar.newTask||t[16]!==p.workspace.openFiles||t[17]!==o||t[18]!==u||t[19]!==b||t[20]!==_||t[21]!==i||t[22]!==T||t[23]!==g||t[24]!==h?(O=()=>{b({className:`bg-surface-panel`,startExtra:T?(0,$.jsx)(y,{to:`/chat/new`,state:{forceNewChat:!0},className:C(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-sm font-medium leading-none text-fg transition-colors hover:bg-surface-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,Je),title:p.sidebar.newTask,children:(0,$.jsx)(xy,{className:`size-4 shrink-0 text-accent-fg`,strokeWidth:2,"aria-hidden":!0})}):null,main:(0,$.jsx)(`div`,{className:`w-full min-w-0 max-w-(--max-width-chat) px-3 sm:px-5 xl:px-6`,children:(0,$.jsx)(`h1`,{className:C(`min-w-0 truncate text-base font-semibold tracking-tight text-fg`,T?`text-left md:text-center`:`text-left`),title:n,children:n})}),end:(0,$.jsxs)(`div`,{className:C(`flex min-w-0 max-w-[min(32rem,calc(100vw-8rem))] shrink-0 items-center justify-end gap-2`,Je),children:[i?(0,$.jsx)(`div`,{className:`min-w-0 w-fit shrink-0`,children:(0,$.jsx)(Zve,{items:r,value:a,disabled:s,placeholder:p.chat.agentPlaceholder,searchPlaceholder:p.chat.agentSearchPlaceholder,noMatches:p.chat.agentNoMatches,compact:!0,contentSide:`bottom`,contentAlign:`end`,onChange:o})}):null,(0,$.jsx)(`button`,{type:`button`,className:C(`rounded-md p-2 text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,h&&`bg-surface-hover text-fg`),title:p.workspace.openFiles,"aria-label":p.workspace.openFiles,"aria-pressed":h,onClick:()=>{!h&&u&&_(u,!1),g()},children:(0,$.jsx)(zf,{className:`size-4`})})]})})},k=[n,r,i,a,o,s,T,p.chat.agentPlaceholder,p.chat.agentSearchPlaceholder,p.chat.agentNoMatches,p.sidebar.newTask,p.workspace.openFiles,h,u,g,_,b],t[8]=s,t[9]=a,t[10]=r,t[11]=n,t[12]=p.chat.agentNoMatches,t[13]=p.chat.agentPlaceholder,t[14]=p.chat.agentSearchPlaceholder,t[15]=p.sidebar.newTask,t[16]=p.workspace.openFiles,t[17]=o,t[18]=u,t[19]=b,t[20]=_,t[21]=i,t[22]=T,t[23]=g,t[24]=h,t[25]=O,t[26]=k):(O=t[25],k=t[26]),(0,Z.useLayoutEffect)(O,k),null});function tye(e){return e.language}function nye(e){return e.collapsed}function rye(e){return e.open}function iye(e){return e.toggleOpen}function aye(e){return e.setOpen}function oye(e){return e.mobileNavOpen}function sye(e){return e.setPageHeader}function cye(e){return e.clearPageHeader}var N7=(0,Z.memo)(function(){let e=(0,Q.c)(13),t=I(lye),n;e[0]===t?n=e[1]:(n=j(t),e[0]=t,e[1]=n);let r=n,i=aI(uye),a=aI(dye);if(i===`idle`)return null;if(i===`error`&&a){let t;e[2]===a?t=e[3]:(t=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:a}),e[2]=a,e[3]=t);let n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=C(`shrink-0 rounded-xl border border-red-200 bg-white px-2.5 py-1 text-xs font-medium text-red-700`,`hover:bg-red-50 dark:border-red-800 dark:bg-red-950/40 dark:text-red-300 dark:hover:bg-red-950/70`,aT.transition,aT.press,aT.focusRingPanel),e[4]=n):n=e[4];let i;e[5]===r.connection.reconnect?i=e[6]:(i=(0,$.jsx)(`button`,{type:`button`,className:n,onClick:fye,children:r.connection.reconnect}),e[5]=r.connection.reconnect,e[6]=i);let o;return e[7]!==t||e[8]!==i?(o=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-red-100 bg-red-50 px-4 py-2 text-sm text-red-600 dark:border-red-900/40 dark:bg-red-950/50 dark:text-red-400`,children:[t,i]}),e[7]=t,e[8]=i,e[9]=o):o=e[9],o}if(i===`connecting`||i===`reconnecting`){let t;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(`span`,{className:`inline-block size-3 animate-spin rounded-full border-2 border-amber-500 border-t-transparent`,"aria-hidden":!0}),e[10]=t):t=e[10];let n=i===`reconnecting`?r.connection.reconnecting:r.connection.connecting,a;return e[11]===n?a=e[12]:(a=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-amber-100 bg-amber-50 px-4 py-2 text-sm text-amber-800 dark:border-amber-900/40 dark:bg-amber-950/50 dark:text-amber-200`,children:[t,(0,$.jsx)(`span`,{children:n})]}),e[11]=n,e[12]=a),a}return null});function lye(e){return e.language}function uye(e){return e.connectionState}function dye(e){return e.error}function fye(){return gI()}function P7(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{{${t}}}`,String(n)),e)}function pye(e){let t=(0,Q.c)(4),{status:n}=e;if(n===`completed`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`span`,{className:`mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-fg-muted text-surface-panel`,children:(0,$.jsx)(S,{className:`size-3`,strokeWidth:2.5,"aria-hidden":!0})}),t[0]=e):e=t[0],e}if(n===`in_progress`){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Yo,{className:`mt-0.5 size-4 shrink-0 text-accent`,strokeWidth:2,"aria-hidden":!0}),t[1]=e):e=t[1],e}if(n===`cancelled`){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(dr,{className:`mt-0.5 size-4 shrink-0 text-fg-disabled`,strokeWidth:1.75,"aria-hidden":!0}),t[2]=e):e=t[2],e}let r;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(xs,{className:`mt-0.5 size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}),t[3]=r):r=t[3],r}function mye(e,t){return e?`${P7(e.files.length===1?t.filesChangedOne:t.filesChangedOther,{count:e.files.length})} · +${e.added} -${e.removed}`:null}function hye(e){let t=(0,Q.c)(61),{plan:n,changeSummary:r,isStreaming:i,labels:a}=e,o=n.currentIndex==null?void 0:n.items[n.currentIndex-1],s;t[0]===n.items?s=t[1]:(s=n.items.every(vye),t[0]=n.items,t[1]=s);let c=s,l=n.items.every(_ye),u;t[2]!==a.completedProgress||t[3]!==n.completedCount||t[4]!==n.totalCount?(u=P7(a.completedProgress,{completed:n.completedCount,total:n.totalCount}),t[2]=a.completedProgress,t[3]=n.completedCount,t[4]=n.totalCount,t[5]=u):u=t[5];let d=u,f=a.ended;if(c)f=a.finished;else if(o){let e=n.currentIndex??1,r;t[6]!==a.stepProgress||t[7]!==n.totalCount||t[8]!==e?(r=P7(a.stepProgress,{current:e,total:n.totalCount}),t[6]=a.stepProgress,t[7]=n.totalCount,t[8]=e,t[9]=r):r=t[9],f=r}else !l&&i&&(f=a.planned);let p;t[10]!==r||t[11]!==a?(p=mye(r,a),t[10]=r,t[11]=a,t[12]=p):p=t[12];let m=p,h=o?.title,g;t[13]!==m||t[14]!==f||t[15]!==h?(g=[f,h,m].filter(Boolean),t[13]=m,t[14]=f,t[15]=h,t[16]=g):g=t[16];let _=g.join(` · `),v;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(v=C(`inline-flex min-h-9 max-w-full items-center gap-2 rounded-pill border border-edge-subtle bg-surface-panel px-3 py-1.5 text-sm text-fg shadow-surface`,aT.transition,`hover:border-edge hover:bg-surface-hover/60`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),t[17]=v):v=t[17];let y=`${a.heading}: ${_}`,b;t[18]!==o||t[19]!==c?(b=c?(0,$.jsx)(S,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:2,"aria-hidden":!0}):o?(0,$.jsx)(Yo,{className:`size-4 shrink-0 text-accent`,strokeWidth:2,"aria-hidden":!0}):(0,$.jsx)(Ag,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[18]=o,t[19]=c,t[20]=b):b=t[20];let x;t[21]===f?x=t[22]:(x=(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:f}),t[21]=f,t[22]=x);let w;t[23]===o?w=t[24]:(w=o?(0,$.jsxs)(`span`,{className:`min-w-0 truncate text-fg-muted`,children:[`· `,o.title]}):null,t[23]=o,t[24]=w);let T;t[25]===m?T=t[26]:(T=m?(0,$.jsxs)(`span`,{className:`hidden shrink-0 tabular-nums text-fg-subtle sm:inline`,children:[`· `,m]}):null,t[25]=m,t[26]=T);let E;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(fo,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),t[27]=E):E=t[27];let D;t[28]!==w||t[29]!==T||t[30]!==y||t[31]!==b||t[32]!==x?(D=(0,$.jsx)(eE,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:v,"aria-label":y,children:[b,x,w,T,E]})}),t[28]=w,t[29]=T,t[30]=y,t[31]=b,t[32]=x,t[33]=D):D=t[33];let O;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(Ag,{className:`size-4 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[34]=O):O=t[34];let k;t[35]===a.heading?k=t[36]:(k=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium text-fg`,children:[O,(0,$.jsx)(`span`,{children:a.heading})]}),t[35]=a.heading,t[36]=k);let A;t[37]===n.explanation?A=t[38]:(A=n.explanation?(0,$.jsx)(`p`,{className:`mt-1 line-clamp-2 text-xs leading-relaxed text-fg-muted`,children:n.explanation}):null,t[37]=n.explanation,t[38]=A);let j;t[39]!==k||t[40]!==A?(j=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[k,A]}),t[39]=k,t[40]=A,t[41]=j):j=t[41];let M;t[42]===d?M=t[43]:(M=(0,$.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-fg-subtle`,children:d}),t[42]=d,t[43]=M);let N;t[44]!==j||t[45]!==M?(N=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-edge-subtle px-4 py-3`,children:[j,M]}),t[44]=j,t[45]=M,t[46]=N):N=t[46];let P=a.heading,F;t[47]===n.items?F=t[48]:(F=n.items.map(gye),t[47]=n.items,t[48]=F);let I;t[49]!==a.heading||t[50]!==F?(I=(0,$.jsx)(`ol`,{className:`max-h-[min(22rem,55vh)] overflow-y-auto px-4 py-3`,"aria-label":P,children:F}),t[49]=a.heading,t[50]=F,t[51]=I):I=t[51];let L;t[52]===m?L=t[53]:(L=m?(0,$.jsx)(`div`,{className:`border-t border-edge-subtle px-4 py-2 text-right text-xs tabular-nums text-fg-subtle`,children:m}):null,t[52]=m,t[53]=L);let R;t[54]!==N||t[55]!==I||t[56]!==L?(R=(0,$.jsx)(tE,{children:(0,$.jsxs)(nE,{side:`top`,align:`center`,sideOffset:8,collisionPadding:16,className:`z-50 w-[min(28rem,calc(100vw-2rem))] overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`,children:[N,I,L]})}),t[54]=N,t[55]=I,t[56]=L,t[57]=R):R=t[57];let z;return t[58]!==D||t[59]!==R?(z=(0,$.jsx)(`div`,{className:`flex w-full justify-center pb-2 pt-1`,children:(0,$.jsxs)(QT,{children:[D,R]})}),t[58]=D,t[59]=R,t[60]=z):z=t[60],z}function gye(e){return(0,$.jsxs)(`li`,{className:C(`flex gap-3 py-2 text-sm leading-relaxed text-fg-muted`,e.status===`in_progress`&&`font-medium text-fg`,e.status===`cancelled`&&`text-fg-disabled`),children:[(0,$.jsx)(pye,{status:e.status}),(0,$.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:e.title})]},e.id)}function _ye(e){return e.status===`completed`||e.status===`cancelled`}function vye(e){return e.status===`completed`}async function yye(e){return Dj.parse(await B(z(`/api/tasks`),{method:`POST`,body:JSON.stringify(e)}))}async function F7(e){return Oj.parse(await B(z(`/api/tasks/${encodeURIComponent(e)}`)))}async function bye(e,t,n){return await B(z(`/api/tasks/${encodeURIComponent(e)}/commands`),{method:`POST`,body:JSON.stringify({idempotencyKey:crypto.randomUUID(),expectedVersion:n,command:t})}),F7(e)}async function xye(e,t,n){return await B(z(`/api/tasks/${encodeURIComponent(e)}/dependencies`),{method:`PUT`,body:JSON.stringify({dependsOnTaskIds:t,expectedVersion:n})}),F7(e)}async function Sye(e,t,n){await B(z(`/api/task-runs/${encodeURIComponent(e)}/feedback`),{method:`POST`,body:JSON.stringify({rating:t,reason:n?.trim()||void 0})})}function Cye(e){return B(z(`/api/home${e?`?locale=${encodeURIComponent(e)}`:``}`)).then(IM)}function wye(e,t){return B(z(`/api/home/decisions/respond`),{method:`POST`,body:JSON.stringify({...e,decision:t})})}function Tye(e){return B(z(`/api/home/attention/acknowledge`),{method:`POST`,body:JSON.stringify(e)})}function Eye(e,t){return B(z(`/api/inbox/judgments/${encodeURIComponent(e)}/decisions`),{method:`POST`,body:JSON.stringify({choice:t})})}function Dye(e,t){return B(z(`/api/inbox/judgments/${encodeURIComponent(e)}/transition`),{method:`POST`,body:JSON.stringify(t===`snoozed`?{status:t,snoozedUntil:new Date(Date.now()+1440*60*1e3).toISOString()}:t===`resolved`?{status:t,resolution:`dismissed`}:{status:t})})}function Oye(e,t){return B(z(`/api/inbox/judgments/${encodeURIComponent(e)}/instructions`),{method:`POST`,body:JSON.stringify({instruction:t})})}function kye(e){return B(z(`/api/home/attention/retry`),{method:`POST`,body:JSON.stringify(e)})}function I7(e){return e===`zh`?{newWork:`交给 xopc`,dialogTitle:`现在想完成什么?`,dialogDescription:`发送后会建立一个持续推进的结果。xopc 会理解目标、执行、验证,并在真正需要你时再提问。`,intentLabel:`告诉 xopc 你要做什么`,intentPlaceholder:`例如:整理这周的会议记录,提炼待办并给出下周优先级`,submit:`进入对话并开始`,starting:`正在开始…`,projectLabel:`归属项目`,monitoringLabel:`主动跟进`,monitoringModes:{observe:`仅观察`,ask_before_action:`行动前询问`,auto_low_risk:`自动执行低风险操作`},existingProject:`已有项目`,newProject:`新项目`,needsAttention:`需要你处理`,waitingStatus:`当前等待`,runAttention:`运行异常`,running:`xopc 正在处理`,continue:`继续推进`,recent:`最近对话`,recentTasks:`最近完成`,evidenceCount:`项证据`,remainingCount:`项待继续`,projects:`长期项目`,emptyRunning:`当前没有正在处理的对话`,emptyContinue:`还没有需要继续推进的事项`,openChat:`打开对话`,whyNow:`为什么现在`,impact:`影响`,workDone:`AI 已完成`,recommendation:`建议`,judgmentReasons:`判断依据`,rejectedAlternatives:`未选方案`,uncertainty:`不确定性`,snooze:`明天再看`,dismiss:`忽略`,feedbackPlaceholder:`告诉 AI:以后遇到这类情况应该怎样判断…`,applyFeedback:`调整后续判断`,taskStatuses:{pending:`待推进`,planning:`正在明确完成标准`,waiting_dependency:`等待前置任务`,running:`正在推进`,verifying:`正在验证`,needs_user:`需要你`,blocked:`已阻塞`,paused:`已暂停`,completed:`已完成`,cancelled:`已结束`},taskProgress:{title:`xopc 已接手`,open:`查看结果`,decide:`查看并决定`,evidence:`项已验证依据`,statuses:{pending:`待推进`,planning:`正在明确完成标准`,waiting_dependency:`等待前置任务`,running:`正在推进`,verifying:`正在验证`,needs_user:`需要你`,blocked:`已阻塞`,paused:`已暂停`,completed:`已完成`,cancelled:`已结束`}},detailStatuses:{captured:`尚未安排`,ready:`等待开始`,queued:`已进入队列`,running:`正在执行`,verifying:`正在验证`,waiting:`等待条件`,blocked:`被阻塞`,needsUser:`需要你处理`,review:`等待验收`,completed:`已完成`,ended:`已结束`,paused:`待继续`},detailStatusDescriptions:{captured:`任务已记录,但尚未进入执行队列。安排后,xopc 会开始推进。`,ready:`任务已经准备好,可以交给 xopc 开始执行。`,queued:`任务已进入执行队列,xopc 将在资源可用时开始。`,running:`xopc 正在推进这个任务。`,verifying:`xopc 正在根据完成标准核验结果。`,waiting:`任务正在等待外部条件满足。`,blocked:`当前存在阻塞条件,解除后才能继续。`,needsUser:`xopc 需要你的输入或批准后才能继续。`,review:`执行结果已经准备好,等待你验收。`,completed:`任务已经完成并关闭。`,ended:`任务已经结束,不会继续执行。`,paused:`任务目前没有运行,可以随时继续。`},statusSummary:`当前状态`,taskLabel:`任务`,priorityLabels:{low:`低优先级`,normal:`普通优先级`,high:`高优先级`,critical:`紧急`},unassigned:`未指定执行者`,noDueDate:`无截止时间`,updatedAt:`更新于 {{date}}`,successDefinition:`怎样才算完成`,taskDefinition:`任务定义`,criteriaProgress:`{{verified}}/{{total}} 已验证`,taskRelations:`任务关系`,dependencies:`前置任务`,dependents:`后续任务`,noDependencies:`没有前置任务`,noDependents:`没有后续任务`,editDependencies:`编辑前置任务`,saveDependencies:`保存关系`,cancelDependencyEdit:`取消`,dependenciesDescription:`所选任务全部完成后,xopc 才会开始推进当前任务。`,linkDependencies:`关联前置任务`,linkedDependencies:`已关联 {{count}} 个前置任务`,dependencySearchPlaceholder:`搜索任务名称`,noDependencyMatches:`没有匹配的任务`,noDependencyCandidates:`没有可选的其他任务`,removeDependency:`移除前置任务:{{task}}`,dependencyUpdateFailed:`前置任务更新失败,请刷新后重试。`,expectedOutputs:`预期输出`,constraints:`约束与边界`,approvalRequired:`需要你批准`,latestResult:`最新结果`,remainingWork:`还差什么`,nextAction:`下一步`,yourDecision:`只需你决定`,noRemainingWork:`已覆盖全部完成标准。`,noDecisionNeeded:`暂时不需要你做任何事,xopc 会继续推进。`,contextUsed:`本次使用的上下文`,contextSources:`信息来源`,contextAssumptions:`当前假设`,contextRisks:`风险`,contextRoleLabels:{input:`输入`,reference:`参考`,constraint:`约束`,deliverable:`交付物`,evidence:`证据`},contextKindLabels:{document:`文档`,file:`文件`,url:`链接`,session:`对话`,memory:`记忆`,task:`任务`,artifact:`产物`,source:`来源`},currentTask:`当前任务`,executionHistory:`历史执行记录({{count}})`,receiptStatuses:{succeeded:`执行成功`,failed:`执行失败`,cancelled:`已取消`},unresolvedCriteria:`待验证标准`,resultFeedback:`这件事做好了吗?`,doneWell:`做好了`,needsFix:`没做好`,correctionPlaceholder:`告诉 xopc 哪里不对、你真正想要的结果是什么`,submitCorrection:`修正并继续`,feedbackThanks:`收到,我会据此继续改进。`,correctionStarted:`收到,已重新打开并开始修正。`,noDefinition:`系统正在进一步明确完成标准。未明确前不会把事情误判为已完成。`,backToWork:`返回任务列表`,openTaskConversation:`进入对话`,taskNotFound:`没有找到这个任务`,runTask:`开始推进`,scheduleTask:`安排执行`,approveTask:`确认完成`,reopenTask:`重新打开`,moreActions:`更多操作`,pauseTask:`暂时暂停`,resumeTask:`继续推进`,cancelTask:`结束事项`,actionFailed:`操作失败,请重试。`,verificationStatuses:{passed:`已验证`,failed:`验证未通过`,unverified:`待验证`}}:{newWork:`Ask xopc`,dialogTitle:`What do you want to get done?`,dialogDescription:`This creates a durable task. xopc will understand it, execute, verify, and ask only when your input is truly needed.`,intentLabel:`Tell xopc what you need`,intentPlaceholder:`For example: summarize this week’s meeting notes and suggest next week’s priorities`,submit:`Open conversation and start`,starting:`Starting…`,projectLabel:`Project`,monitoringLabel:`Proactive follow-up`,monitoringModes:{observe:`Observe only`,ask_before_action:`Ask before acting`,auto_low_risk:`Auto-run low-risk actions`},existingProject:`Existing project`,newProject:`New project`,needsAttention:`Needs your attention`,waitingStatus:`Current status`,runAttention:`Run issues`,running:`xopc is working`,continue:`Continue`,recent:`Recent conversations`,recentTasks:`Recent tasks`,evidenceCount:`evidence items`,remainingCount:`remaining`,projects:`Long-term projects`,emptyRunning:`No conversations are running`,emptyContinue:`No ongoing items yet`,openChat:`Open conversation`,whyNow:`Why now`,impact:`Impact`,workDone:`AI checked`,recommendation:`Recommendation`,judgmentReasons:`Why this is recommended`,rejectedAlternatives:`Alternatives not chosen`,uncertainty:`Uncertainty`,snooze:`Tomorrow`,dismiss:`Dismiss`,feedbackPlaceholder:`Tell AI how to judge this kind of event next time…`,applyFeedback:`Update future judgments`,taskStatuses:{pending:`Pending`,planning:`Defining done`,waiting_dependency:`Waiting on dependencies`,running:`In progress`,verifying:`Verifying`,needs_user:`Needs you`,blocked:`Blocked`,paused:`Paused`,completed:`Completed`,cancelled:`Ended`},taskProgress:{title:`xopc owns this task`,open:`View task`,decide:`Review and decide`,evidence:`verified evidence`,statuses:{pending:`Pending`,planning:`Defining done`,waiting_dependency:`Waiting on dependencies`,running:`In progress`,verifying:`Verifying`,needs_user:`Needs you`,blocked:`Needs you`,paused:`Paused`,completed:`Completed`,cancelled:`Ended`}},detailStatuses:{captured:`Not scheduled`,ready:`Ready to start`,queued:`Queued`,running:`In progress`,verifying:`Verifying`,waiting:`Waiting`,blocked:`Blocked`,needsUser:`Needs your attention`,review:`Ready for review`,completed:`Completed`,ended:`Ended`,paused:`Ready to continue`},detailStatusDescriptions:{captured:`This task is captured but has not entered the work queue. Schedule it when you are ready.`,ready:`This task is ready for xopc to start.`,queued:`This task is queued and will start when resources are available.`,running:`xopc is currently working on this task.`,verifying:`xopc is checking the result against the completion criteria.`,waiting:`This task is waiting for an external condition.`,blocked:`A blocking condition must be resolved before work can continue.`,needsUser:`xopc needs your input or approval before continuing.`,review:`The result is ready for your review.`,completed:`This task is complete and closed.`,ended:`This task has ended and will not continue.`,paused:`This task is not running and can be continued at any time.`},statusSummary:`Current status`,taskLabel:`Task`,priorityLabels:{low:`Low priority`,normal:`Normal priority`,high:`High priority`,critical:`Critical`},unassigned:`No assignee`,noDueDate:`No due date`,updatedAt:`Updated {{date}}`,successDefinition:`Definition of done`,taskDefinition:`Task definition`,criteriaProgress:`{{verified}}/{{total}} verified`,taskRelations:`Task relationships`,dependencies:`Dependencies`,dependents:`Dependent tasks`,noDependencies:`No dependencies`,noDependents:`No dependent tasks`,editDependencies:`Edit dependencies`,saveDependencies:`Save relationships`,cancelDependencyEdit:`Cancel`,dependenciesDescription:`xopc starts this task after every selected task is complete.`,linkDependencies:`Link dependencies`,linkedDependencies:`Linked dependencies: {{count}}`,dependencySearchPlaceholder:`Search tasks`,noDependencyMatches:`No matching tasks`,noDependencyCandidates:`There are no other tasks to select`,removeDependency:`Remove dependency: {{task}}`,dependencyUpdateFailed:`Dependencies could not be updated. Refresh and try again.`,expectedOutputs:`Expected outputs`,constraints:`Constraints and boundaries`,approvalRequired:`Your approval is required`,latestResult:`Latest result`,remainingWork:`What remains`,nextAction:`Next action`,yourDecision:`Your one decision`,noRemainingWork:`All completion criteria are covered.`,noDecisionNeeded:`Nothing is needed from you. xopc will keep moving this forward.`,contextUsed:`Context used for this task`,contextSources:`Sources`,contextAssumptions:`Current assumptions`,contextRisks:`Risks`,contextRoleLabels:{input:`Input`,reference:`Reference`,constraint:`Constraint`,deliverable:`Deliverable`,evidence:`Evidence`},contextKindLabels:{document:`Document`,file:`File`,url:`Link`,session:`Conversation`,memory:`Memory`,task:`Task`,artifact:`Artifact`,source:`Source`},currentTask:`Current task`,executionHistory:`Execution history ({{count}})`,receiptStatuses:{succeeded:`Succeeded`,failed:`Failed`,cancelled:`Cancelled`},unresolvedCriteria:`Criteria still to verify`,resultFeedback:`Was this done well?`,doneWell:`Yes, done`,needsFix:`Needs fixing`,correctionPlaceholder:`Tell xopc what is wrong and what the right task should be`,submitCorrection:`Fix and continue`,feedbackThanks:`Got it. I will use this to improve future work.`,correctionStarted:`Got it. This was reopened and correction has started.`,noDefinition:`xopc is still clarifying the completion criteria. It will not mark this done before they are explicit.`,backToWork:`Back to tasks`,openTaskConversation:`Open conversation`,taskNotFound:`This task was not found`,runTask:`Start working`,scheduleTask:`Schedule work`,approveTask:`Mark complete`,reopenTask:`Reopen`,moreActions:`More actions`,pauseTask:`Pause`,resumeTask:`Continue`,cancelTask:`End task`,actionFailed:`The action failed. Please try again.`,verificationStatuses:{passed:`Verified`,failed:`Verification failed`,unverified:`Not verified`}}}function Aye(e,t){return e===`closed`?`border-success/35 text-success`:t===`waiting`||t===`blocked`?`border-warning/40 text-warning`:`border-accent/40 text-accent`}var jye=(0,Z.memo)(function(e){let t=(0,Q.c)(59),{taskId:n}=e,r=u(),i=I(L7),a=F(Mye),o;t[0]===i?o=t[1]:(o=I7(i),t[0]=i,t[1]=o);let s=o,c;t[2]!==n||t[3]!==a?(c=a?[`task-session-banner`,n,a]:null,t[2]=n,t[3]=a,t[4]=c):c=t[4];let l;t[5]===n?l=t[6]:(l=()=>F7(n),t[5]=n,t[6]=l);let d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d={revalidateOnFocus:!0,refreshInterval:Nye},t[7]=d):d=t[7];let{data:f,mutate:p}=xe(c,l,d),m,h;if(t[8]===p?(m=t[9],h=t[10]):(m=()=>{let e=()=>void p(),t=[`agent-run-started`,`agent-run-ended`,`session-transcript-updated`,`task-run-updated`];for(let n of t)window.addEventListener(n,e);return()=>{for(let n of t)window.removeEventListener(n,e)}},h=[p],t[8]=p,t[9]=m,t[10]=h),(0,Z.useEffect)(m,h),!f)return null;let{task:g,operationalState:_}=f,v=f.receipts[0],b=f.attention.length>0,x;t[11]!==_||t[12]!==g.phase?(x=g.phase!==`closed`&&[`queued`,`running`,`verifying`].includes(_),t[11]=_,t[12]=g.phase,t[13]=x):x=t[13];let S=x,w=b?f.attention[0]?.summary??v?.nextAction??v?.summary:g.phase===`closed`?v?.summary:v?.nextAction??v?.summary??s.noDecisionNeeded,T;t[14]===v?.evidence?T=t[15]:(T=v?.evidence.filter(Pye).length??0,t[14]=v?.evidence,t[15]=T);let E=T,D=s.taskProgress.title,O;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(dx,{className:`size-4`,"aria-hidden":!0}),t[16]=O):O=t[16];let k;t[17]===S?k=t[18]:(k=S?(0,$.jsx)(`span`,{className:`absolute -right-0.5 -top-0.5 size-2.5 rounded-full border-2 border-surface-panel bg-accent motion-safe:animate-pulse`}):null,t[17]=S,t[18]=k);let A;t[19]===k?A=t[20]:(A=(0,$.jsxs)(`span`,{className:`relative mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-accent-soft text-accent-fg`,children:[O,k]}),t[19]=k,t[20]=A);let j;t[21]===s.taskProgress.title?j=t[22]:(j=(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg-muted`,children:s.taskProgress.title}),t[21]=s.taskProgress.title,t[22]=j);let M;t[23]!==_||t[24]!==g.phase?(M=C(`rounded-full border px-1.5 py-0.5 text-[10px] font-medium`,Aye(g.phase,_)),t[23]=_,t[24]=g.phase,t[25]=M):M=t[25];let N;t[26]!==_||t[27]!==M||t[28]!==g.phase?(N=(0,$.jsxs)(`span`,{className:M,children:[g.phase,` · `,_]}),t[26]=_,t[27]=M,t[28]=g.phase,t[29]=N):N=t[29];let P;t[30]!==s.taskProgress.evidence||t[31]!==E?(P=E>0?(0,$.jsxs)(`span`,{className:`text-[11px] text-fg-muted`,children:[E,` `,s.taskProgress.evidence]}):null,t[30]=s.taskProgress.evidence,t[31]=E,t[32]=P):P=t[32];let L;t[33]!==j||t[34]!==N||t[35]!==P?(L=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[j,N,P]}),t[33]=j,t[34]=N,t[35]=P,t[36]=L):L=t[36];let R;t[37]===g.title?R=t[38]:(R=(0,$.jsx)(`p`,{className:`mt-1 text-sm font-medium leading-5 text-fg`,children:g.title}),t[37]=g.title,t[38]=R);let z;t[39]===w?z=t[40]:(z=w?(0,$.jsx)(`p`,{className:`mt-1 line-clamp-2 text-xs leading-5 text-fg-muted`,children:w}):null,t[39]=w,t[40]=z);let B;t[41]!==L||t[42]!==R||t[43]!==z?(B=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[L,R,z]}),t[41]=L,t[42]=R,t[43]=z,t[44]=B):B=t[44];let V=`${r.pathname}${r.search}`,H;t[45]!==V||t[46]!==g.id?(H=D8(V,g.id),t[45]=V,t[46]=g.id,t[47]=H):H=t[47];let U=b?s.taskProgress.decide:s.taskProgress.open,W;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(Iu,{className:`size-3.5`,"aria-hidden":!0}),t[48]=W):W=t[48];let G;t[49]!==H||t[50]!==U?(G=(0,$.jsxs)(y,{to:H,className:`inline-flex shrink-0 items-center gap-1 rounded-md px-2 py-1.5 text-xs font-medium text-accent hover:bg-accent-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[U,W]}),t[49]=H,t[50]=U,t[51]=G):G=t[51];let K;t[52]!==A||t[53]!==B||t[54]!==G?(K=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[A,B,G]}),t[52]=A,t[53]=B,t[54]=G,t[55]=K):K=t[55];let ee;return t[56]!==s.taskProgress.title||t[57]!==K?(ee=(0,$.jsx)(`section`,{className:`mb-6 rounded-xl border border-edge bg-surface-panel px-3 py-3 sm:px-4`,"aria-label":D,"aria-live":`polite`,children:K}),t[56]=s.taskProgress.title,t[57]=K,t[58]=ee):ee=t[58],ee});function L7(e){return e.language}function Mye(e){return e.token}function Nye(e){return e&&e.task.phase!==`closed`?2e3:0}function Pye(e){return e.strength===`verified`}function Fye(e){let t=H7(e.source,e.explanation,e.items.map(e=>({...e})));return t&&t.items.some(e=>e.status===`pending`||e.status===`in_progress`)?t:null}var Iye=new Set([`pending`,`in_progress`,`completed`,`cancelled`]);function R7(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function z7(e){return e.trim().toLowerCase().replace(/-/g,`_`).split(`__`).at(-1)??``}function B7(e){let t=R7(e.details);return t&&Object.keys(t).length>0?t:Qq(e.result).details}function V7(e){let t=typeof e==`string`?e.trim():``;return Iye.has(t)?t:null}function H7(e,t,n){if(n.length===0)return null;let r=n.findIndex(e=>e.status===`in_progress`);return{source:e,explanation:t,items:n,currentIndex:r>=0?r+1:void 0,completedCount:n.filter(e=>e.status===`completed`).length,totalCount:n.length}}function Lye(e){if(!Array.isArray(e.plan))return null;let t=e.plan.flatMap((e,t)=>{let n=R7(e),r=typeof n?.id==`string`&&n.id.trim()?n.id.trim():`update-plan-${t}`,i=typeof n?.step==`string`?n.step.trim():``,a=V7(n?.status);return i&&a?[{id:r,title:i,status:a}]:[]});return H7(`update_plan`,typeof e.explanation==`string`&&e.explanation.trim()?e.explanation.trim():void 0,t)}function Rye(e){return Array.isArray(e.items)?H7(`todo`,void 0,e.items.flatMap((e,t)=>{let n=R7(e),r=typeof n?.id==`string`&&n.id.trim()?n.id.trim():`todo-${t}`,i=typeof n?.content==`string`?n.content.trim():``,a=V7(n?.status);return i&&a?[{id:r,title:i,status:a}]:[]})):null}function zye(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n.type!==`tool_use`||n.status===`error`)continue;let r=z7(n.name),i=B7(n);if(i){if(r===`update_plan`)return{found:!0,plan:Lye(i)};if(r===`todo`)return{found:!0,plan:Rye(i)}}}return{found:!1,plan:null}}function U7(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function Bye(e){let t=new Set,n=0,r=0;for(let i of e){if(i.type!==`tool_use`||i.status===`error`||z7(i.name)!==`apply_patch`)continue;let e=B7(i);if(e){if(Array.isArray(e.files))for(let n of e.files)typeof n==`string`&&n.trim()&&t.add(n.trim());if(t.size===0&&Array.isArray(e.changes))for(let n of e.changes){let e=R7(n),r=typeof e?.moveTo==`string`?e.moveTo:typeof e?.path==`string`?e.path:``;r.trim()&&t.add(r.trim())}n+=U7(e.added),r+=U7(e.removed)}}return t.size>0||n>0||r>0?{files:[...t],added:n,removed:r}:null}function Vye(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n.role!==`assistant`)continue;let r=zye(n.content??[]);if(!r.found)continue;if(!r.plan||!r.plan.items.some(e=>e.status===`pending`||e.status===`in_progress`))return null;let i=e.slice(t).flatMap(e=>e.role===`assistant`?e.content??[]:[]);return{plan:r.plan,changeSummary:Bye(i)}}return null}function W7(e,t){if(!t)return null;let n=-1;for(let t=e.length-1;t>=0;--t)if(e[t]?.role===`user`){n=t;break}return Vye(e.slice(n+1))}function G7(e){let t=String(e??``).trim();return!t||t===`new`?null:t}function Hye(e){let t=String(e.streamSessionKey??``).trim(),n=G7(e.routeSessionKey);return!t||!n?!1:t===n}function Uye(e){let t=G7(e.routeSessionKey);return t?e.cacheSessionKey===t:!1}function Wye(e){let t=String(e.chatId??``).trim();if(!t)return!1;let n=G7(e.routeSessionKey);return n?n===t:!1}function Gye(e,t){return e?`new`:t??null}function Kye(e,t){if(!(e||!t))return decodeURIComponent(t)}function qye(e){return!e.viewSessionKey||e.sessionKey!==e.viewSessionKey?[]:e.streamingMsg?[...e.messages,e.streamingMsg]:e.messages}function Jye(e){e()}function K7(e){return e===`on`||e===`stream`||e===`off`?e:`on`}function Yye(e,t){let n=String(e??``).trim();if(!n)return;let r=K7(t.activityDetail?.default),i=t.activityDetail?.override==null?null:K7(t.activityDetail.override);SL.getState().patchSessionMeta(n,{model:t.model,thinkingLevel:t.thinkingLevel||`medium`,reasoningLevel:K7(t.activityDetail?.effective??t.reasoningLevel??void 0),activityDetailDefault:r,activityDetailOverride:i,effectiveWorkspacePath:t.effectiveWorkspacePath??``,workingDirectoryLocked:!!t.workingDirectoryLocked,workspaceSource:t.workspaceSource??`agent_default_root`})}function Xye(e){e.sendingRef.current=!1,e.streamingRef.current=!1}function Zye(e){return e.isNewRoute?`creating-session`:e.sessionRoutePending||e.showSessionLoading||e.sessionContentLoading?`loading-history`:e.messageCount===0?`ready-empty`:`ready-conversation`}var Qye=`xopc.chat.clarifyPrompt:v1:`;function q7(e){return`${Qye}${encodeURIComponent(e.trim())}`}function J7(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function $ye(e){if(!J7(e))return null;let t=e.requestId,n=e.question;if(typeof t!=`string`||!t.trim()||typeof n!=`string`||!n.trim())return null;let r=Array.isArray(e.choices)?e.choices.filter(e=>typeof e==`string`&&e.trim().length>0):void 0,i=typeof e.default==`string`&&e.default.trim()?e.default.trim():void 0;return{requestId:t.trim(),question:n.trim(),choices:r&&r.length>=2?r:void 0,default:i}}function ebe(e){let t=e?.trim();if(!t||typeof localStorage>`u`)return null;try{let e=localStorage.getItem(q7(t));if(!e)return null;let n=JSON.parse(e);return J7(n)?$ye(n.prompt??n):null}catch{return null}}function tbe(e,t){let n=e?.trim();if(!(!n||typeof localStorage>`u`))try{localStorage.setItem(q7(n),JSON.stringify({v:1,prompt:t}))}catch{}}function Y7(e){let t=e?.trim();if(!(!t||typeof localStorage>`u`))try{localStorage.removeItem(q7(t))}catch{}}function nbe(e){let{sessionKey:t,decodedKey:n,sessionKeyRef:r,sendingRef:i,streamingRef:a,modelSupportsThinking:o,thinkingLevel:s,shouldApplyStreamUpdate:c}=e,[l,u]=(0,Z.useState)(null),[d,f]=(0,Z.useState)(!1),[p,m]=(0,Z.useState)(null),h=(0,Z.useRef)(null),[g,_]=(0,Z.useState)([]),v=(0,Z.useRef)([]),[y,b]=(0,Z.useState)(null),[x,S]=(0,Z.useState)(null),C=(0,Z.useRef)(null),w=(0,Z.useRef)(-1);h.current=l,v.current=g,C.current=x;let T=(0,Z.useCallback)(e=>{if(!e||typeof e!=`object`)return;let t=e;if(t.sessionKey!==r.current||typeof t.revision!=`number`||!Array.isArray(t.inputs)||t.revision<w.current)return;let n=Yge(t.inputs);w.current=t.revision,v.current=n,_(n),C.current&&!n.some(e=>e.id===C.current)&&S(null)},[r]),E=(0,Z.useCallback)(async e=>{let t=await L(z(`/api/sessions/${encodeURIComponent(e)}/input-state`)).catch(()=>null);!t?.ok||r.current!==e||T((await t.json().catch(()=>null))?.payload)},[T,r]);(0,Z.useEffect)(()=>{w.current=-1,v.current=[],_([]),S(null),!(!t||t!==n)&&(u(ebe(t)),E(t))},[n,E,t]),(0,Z.useEffect)(()=>{let e=e=>T(e.detail),t=()=>{let e=r.current;e&&E(e)};return window.addEventListener(`session-input-state`,e),window.addEventListener(`gateway-realtime-connected`,t),()=>{window.removeEventListener(`session-input-state`,e),window.removeEventListener(`gateway-realtime-connected`,t)}},[T,E,r]);let D=(0,Z.useCallback)(()=>{m(null),u(null)},[]),O=(0,Z.useCallback)(e=>{let t=String(e??``).trim();t&&(Y7(t),r.current===t&&(m(null),u(null)))},[r]),k=(0,Z.useCallback)(()=>{let e=r.current;e&&Y7(e),m(null),u(null)},[r]),A=(0,Z.useCallback)(()=>{S(null)},[]),j=(0,Z.useCallback)(()=>{let e=r.current;e&&Y7(e),m(null),u(null),S(null)},[r]),M=(0,Z.useCallback)(e=>{O(e)},[O]),N=(0,Z.useCallback)(e=>t=>{tbe(e,t),c(e)&&(i.current=!1,a.current=!1,SL.getState().setSessionFlags(e,{sending:!1,streaming:!1}),SL.getState().setSessionProgress(e,null),m(null),u(t))},[c,i,a]),P=(0,Z.useCallback)(async(e,t)=>{let n=e.trim();if(!n&&!t?.length)return;if(v.current.length>=10)throw Error(`At most 10 pending messages are allowed`);let i=o?s:`off`,a=r.current;if(!a)throw Error(`No active session`);let c=await ZM(),l=await L(z(`/api/sessions/${encodeURIComponent(a)}/inputs`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({clientMessageId:crypto.randomUUID(),delivery:`next`,content:n||e,attachments:t?.length?t:void 0,thinking:i,origin:c})}),u=await l.json().catch(()=>null);if(!l.ok){let e=typeof u?.error==`string`?u.error:u?.error?.message;throw Error(e??`Message was not accepted`)}if(!u?.payload?.state)throw Error(`Gateway returned an invalid input state`);T(u.payload.state)},[T,o,r,s]),F=(0,Z.useCallback)(e=>{S(e)},[]),I=(0,Z.useCallback)(()=>{S(null)},[]),R=(0,Z.useCallback)((e,t,n,i)=>{let a=t.trim(),c=v.current,l=c.findIndex(t=>t.id===e);if(l<0){S(null);return}if(!a&&!n?.length){let t=r.current;t&&L(z(`/api/sessions/${encodeURIComponent(t)}/inputs/${encodeURIComponent(e)}?version=${c[l].version}`),{method:`DELETE`}).then(async e=>T((await e.json().catch(()=>null))?.payload)).catch(()=>{E(t)}),S(null);return}let u=o?i??s:`off`;S(null);let d=r.current;d&&L(z(`/api/sessions/${encodeURIComponent(d)}/inputs/${encodeURIComponent(e)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({version:c[l].version,content:a||t,attachments:n?.length?n:void 0,thinking:u})}).then(async e=>{T((await e.json().catch(()=>null))?.payload)}).catch(()=>{E(d)})},[T,o,E,r,s]),B=(0,Z.useCallback)(e=>{C.current===e&&S(null);let t=r.current,n=v.current.find(t=>t.id===e);!t||!n||L(z(`/api/sessions/${encodeURIComponent(t)}/inputs/${encodeURIComponent(e)}?version=${n.version}`),{method:`DELETE`}).then(async e=>{T((await e.json().catch(()=>null))?.payload)}).catch(()=>{E(t)})},[T,E,r]);return{clarifyPrompt:l,clarifySubmitting:d,clarifySubmitError:p,clarifyPromptRef:h,pendingFollowUps:g,pendingFollowUpsRef:v,steeringFollowUpId:y,editingFollowUpId:x,addPendingFollowUp:P,beginEditFollowUp:F,cancelEditFollowUp:I,commitEditFollowUp:R,removePendingFollowUp:B,movePendingFollowUp:(0,Z.useCallback)((e,t)=>{let n=v.current.filter(e=>e.status===`queued`),i=n.findIndex(t=>t.id===e);if(i<0)return;let a=t===`up`?i-1:i+1,o=r.current,s=n[i];!o||!s||a<0||a>=n.length||L(z(`/api/sessions/${encodeURIComponent(o)}/inputs/${encodeURIComponent(s.id)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({version:s.version,position:a})}).then(async e=>T((await e.json().catch(()=>null))?.payload)).catch(()=>{E(o)})},[T,E,r]),reorderPendingFollowUp:(0,Z.useCallback)((e,t)=>{let n=r.current,i=v.current[e],a=v.current[t],o=v.current.filter(e=>e.status===`queued`),s=a?o.findIndex(e=>e.id===a.id):-1;!n||i?.status!==`queued`||a?.status!==`queued`||s<0||L(z(`/api/sessions/${encodeURIComponent(n)}/inputs/${encodeURIComponent(i.id)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({version:i.version,position:s})}).then(async e=>{T((await e.json().catch(()=>null))?.payload)}).catch(()=>{E(n)})},[T,E,r]),steerPendingFollowUp:(0,Z.useCallback)(async e=>{let t=r.current;if(!t)return;let n=v.current.find(t=>t.id===e);if(!(!n?.text.trim()||n.attachments?.length)){b(e);try{let r=await L(z(`/api/sessions/${encodeURIComponent(t)}/inputs`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({clientMessageId:crypto.randomUUID(),delivery:`steer`,content:n.text.trim()})});r.ok&&(T((await r.json().catch(()=>null))?.payload?.state),B(e))}catch{}finally{b(null)}}},[T,B,r]),submitClarifyAnswer:(0,Z.useCallback)(async e=>{let t=h.current;if(t){f(!0),m(null);try{let n=await L(z(`/api/clarify/${encodeURIComponent(t.requestId)}`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({answer:e})});if(!n.ok){m((await n.json().catch(()=>({}))).error?.message??n.statusText??`Clarify failed`);return}let i=r.current;i&&Y7(i),u(null),m(null)}finally{f(!1)}}},[r]),cancelClarifyAnswer:(0,Z.useCallback)(async()=>{let e=h.current;if(e){f(!0),m(null);try{let t=await L(z(`/api/clarify/${encodeURIComponent(e.requestId)}`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({skip:!0})});if(!t.ok){m((await t.json().catch(()=>({}))).error?.message??t.statusText??`Clarify failed`);return}let n=r.current;n&&Y7(n),u(null),m(null)}finally{f(!1)}}},[r]),clearVisibleClarify:D,dismissClarify:k,dismissClarifyForSession:O,clearPendingFollowUps:A,dismissClarifyAndClearPending:j,onClarifyToolEnd:M,makeOnClarifyRequest:N}}function rbe(e){let{navigate:t,sessionKeyRef:n,sessionKey:r,isNewRoute:i,locationState:a}=e,o=F(e=>e.token),s=r?.trim()??``,{data:c,mutate:l}=xe(o?[`gateway-chat-agents`,o]:null,HN,{revalidateOnFocus:!1}),{data:u}=xe(o&&s?[`gateway-chat-session-agent`,o,s]:null,()=>CR(s),{revalidateOnFocus:!1}),d=u?.routing?.agentId?.trim().toLowerCase()??``;(0,Z.useEffect)(()=>{let e=e=>{Te(e.detail)||l()};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},[l]);let[f,p]=(0,Z.useState)(()=>LI()),m=(0,Z.useRef)(c??null),h=(0,Z.useRef)(LI());(0,Z.useEffect)(()=>{m.current=c??null},[c]),(0,Z.useEffect)(()=>{h.current=f},[f]),(0,Z.useEffect)(()=>{if(!c)return;let e=new Set(c.items.map(e=>e.id));p(t=>t==null||t===``||!e.has(t)?c.defaultId:t)},[c]);let g=(0,Z.useCallback)(()=>{if(n.current&&d)return d;let e=m.current,t=(h.current??``).trim().toLowerCase();if(!e)return t||void 0;let r=new Set(e.items.map(e=>e.id));return t&&r.has(t)?t:e.defaultId},[d,n]),_=(0,Z.useCallback)(e=>{let r=e.trim().toLowerCase();p(r);try{globalThis.localStorage?.setItem(II,r)}catch{}(n.current?d||h.current:null)!==r&&t(`/chat/new`,{replace:!1})},[d,t,n]);return(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail?.agentId;typeof t!=`string`||!t.trim()||_(t)};return window.addEventListener(`xopc-set-chat-agent`,e),()=>window.removeEventListener(`xopc-set-chat-agent`,e)},[_]),(0,Z.useLayoutEffect)(()=>{if(!r)return;let e=d;if(!(!e||h.current===e)){h.current=e,p(e);try{globalThis.localStorage?.setItem(II,e)}catch{}}},[d,r]),(0,Z.useLayoutEffect)(()=>{if(!i)return;let e=a,t=typeof e?.agentId==`string`?e.agentId.trim().toLowerCase():``;if(t){h.current=t,p(t);try{globalThis.localStorage?.setItem(II,t)}catch{}}},[i,a]),{token:o,chatAgentsData:c,resolveAgentIdForPost:g,onChatAgentChange:_,displayAgentId:(0,Z.useMemo)(()=>d||f||c?.defaultId||`main`,[d,f,c]),showChatAgentSelector:(c?.items.length??0)>1}}function X7(e,t){let n=e.trim(),r=t.trim();return n&&l$(n)?`/skill:${n}${r?` ${r}`:` `}`:r||null}function ibe(e){let t=e.startsWith(`?`)?e.slice(1):e;if(!t)return``;let n=new URLSearchParams(t),r=new URLSearchParams,i=n.get(`skill`),a=n.get(`slash`),o=n.get(`draft`),s=n.get(`autoSend`),c=n.get(`attachmentHandoff`);i&&r.set(`skill`,i),a&&r.set(`slash`,a),o&&r.set(`draft`,o),s===`1`&&r.set(`autoSend`,`1`),c&&r.set(`attachmentHandoff`,c);let l=r.toString();return l?`?${l}`:``}function abe(e){let t=e.startsWith(`?`)?e.slice(1):e;return new URLSearchParams(t).get(`projectId`)?.trim()||null}var Z7=`main`,obe=/^[a-z0-9][a-z0-9_-]{0,63}$/i,sbe=/[^a-z0-9_-]+/g,cbe=/^-+/,lbe=/-+$/,Q7=/^[a-z0-9][a-z0-9_-]{0,63}$/,$7=new Set([`con`,`prn`,`aux`,`nul`,`com1`,`com2`,`com3`,`com4`,`com5`,`com6`,`com7`,`com8`,`com9`,`lpt1`,`lpt2`,`lpt3`,`lpt4`,`lpt5`,`lpt6`,`lpt7`,`lpt8`,`lpt9`]);function e9(e){let t=(e??``).trim();if(!t)return Z7;let n=t.toLowerCase();return obe.test(t)?n:n.replace(sbe,`-`).replace(cbe,``).replace(lbe,``).slice(0,64)||Z7}function ube(e,t){let n=e?.trim();if(n){let e=n.toLowerCase();return Q7.test(e)?e===Z7?{ok:!1,error:`"${Z7}" is reserved`}:$7.has(e)?{ok:!1,error:`Agent id "${e}" is reserved (Windows device name).`}:{ok:!0,agentId:e}:{ok:!1,error:`Invalid agent id: use 1-64 characters; letters, digits, underscores, and hyphens only; start with a letter or digit.`}}let r=e9(t.trim());return r===Z7?{ok:!1,error:`Display name cannot produce a valid agent folder id. Set an explicit Agent id (letters, digits, underscores, hyphens only).`}:$7.has(r)?{ok:!1,error:`That display name resolves to "${r}", which is reserved. Use a different display name or set an explicit Agent id.`}:Q7.test(r)?{ok:!0,agentId:r}:{ok:!1,error:`Could not derive a folder-safe agent id from the display name. Set an explicit Agent id (letters, digits, underscores, hyphens only).`}}function dbe(e){let t=e.trim().split(`:`);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;if(n!==`agent`||!r||!i||a!=="default"||o!==`direct`)return null;let c=s.join(`:`).trim();return c?{agentId:r,sourceChannel:i,peerId:c}:null}function fbe(e){let t=e?.sourceBinding;return!!(t&&typeof t==`object`)}function pbe(e){return!!e?.trim().startsWith(`chat_`)}function t9(e){return e?.trim()||void 0}function n9(e,t){let n=e.key?.trim();if(!n)return!1;let r=dbe(n);if(!r||(e.sourceChannel?.trim().toLowerCase()??r?.sourceChannel.toLowerCase())!==`webchat`||e.customData?.genericNewChatShell===!1||fbe(e.customData)||!pbe(r.peerId)||(e.messageCount??0)!==0||(wL(n)?.messages.length??0)!==0)return!1;let i=(e.routing?.agentId??r?.agentId)?.trim().toLowerCase();if(!i||i!==e9(t.agentId))return!1;let a=t9(t.projectId),o=t9(e.projectId);return!((a?o!==a:o)||EL(n))}function mbe(e,t){let n={...t,agentId:e9(t.agentId)};return e.filter(e=>n9(e,n)).sort((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime())[0]??null}function hbe(e,t){let n=t.trim();return e.find(e=>e.key.trim()===n)}function gbe(e,t,n,r){if(!t?.length)return e;let i=new Map(e.map(e=>[e.key.trim(),e]));for(let e of t){let t=e.key.trim();!t||i.has(t)||n9(e,{agentId:n,projectId:r})&&i.set(t,e)}return[...i.values()].toSorted((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime())}async function _be(e,t,n){let r=g_e();try{return gbe(await e.loadSessions(),r,t,n)}catch{return r?.filter(e=>n9(e,{agentId:t,projectId:n}))??[]}}async function vbe(e){let t=e9(e.agentId),n=e.projectId?.trim()||void 0,r=e.currentSessionKey?.trim()||null;if(e.forceNew){let r=await e.sessionMgr.createSession({agentId:t,projectId:n});return{kind:`create`,sessionKey:r.key,session:r}}let i=await _be(e.sessionMgr,t,n);if(r){let e=hbe(i,r);if(e&&n9(e,{agentId:t,projectId:n}))return{kind:`noop`,sessionKey:r}}let a=mbe(i,{agentId:t,projectId:n});if(a&&a.key.trim()!==r)return{kind:`reuse`,sessionKey:a.key,session:a};let o=await e.sessionMgr.createSession({agentId:t,projectId:n});return{kind:`create`,sessionKey:o.key,session:o}}var r9=null;function i9(e){if(r9)return r9;let t=(async()=>{let t=e.agentId??void 0,n=await vbe({sessionMgr:e.sessionMgr,agentId:t?.trim()||`main`,projectId:e.projectId,currentSessionKey:e.currentSessionKey,forceNew:e.forceNew});if(n.kind===`noop`)return e.onOpened(n.sessionKey),(e.routeSessionKey?.trim()||null)!==n.sessionKey&&e.navigateToSession(n.sessionKey,e.replaceNavigate??!1,e.search),n.sessionKey;if(n.kind===`reuse`)return e.onOpened(n.sessionKey),e.navigateToSession(n.sessionKey,e.replaceNavigate??!1,e.search),n.sessionKey;let{sessionKey:r,session:i}=n;return h_e({key:r,sessionId:i.sessionId,name:i.name,messageCount:0,updatedAt:i.updatedAt||new Date().toISOString(),sourceChannel:i.sourceChannel,sourceChatId:i.sourceChatId,projectId:i.projectId,routing:i.routing}),e.onOpened(r),e.navigateToSession(r,e.replaceNavigate??!1,e.search),r})().finally(()=>{r9=null});return r9=t,t}var a9={current:null},o9={current:null};function ybe(e){return!!(e&&typeof e==`object`&&e.forceNewChat===!0)}function bbe(){let e=u(),{sessionKey:t}=d(),n=e.pathname.endsWith(`/new`),r=n&&ybe(e.state),i=Kye(n,t),a=Gye(n,i),o=G7(a),s=n?null:i??null,c=(0,Z.useRef)(a);return c.current=a,a9.current=s,!n&&i&&(o9.current=i),(0,Z.useLayoutEffect)(()=>{SL.getState().focusedSessionKey!==s&&SL.getState().setFocusedSessionKey(s)},[s]),{isNewRoute:n,forceNewChat:r,decodedKey:i,routedSessionKey:a,viewSessionKey:o,routedFocusedSessionKey:s,routeSessionKeyRef:c,locationKey:e.key,locationSearch:e.search,locationState:e.state}}var xbe={get current(){return o9.current}},s9={get current(){return a9.current},set current(e){a9.current=e,SL.getState().setFocusedSessionKey(e)}};function Sbe(e){let{token:t,isNewRoute:n,forceNewChat:r,decodedKey:i,locationKey:a,locationSearch:o,sessionMgrRef:s,resolveAgentIdForPost:c,navigateToSession:l,loadSessionById:u,tryResumeAgentRun:d,restoreLiveCacheIfNeeded:f,adoptEmptySession:p,applyAgentConfig:m,patchInitUi:h}=e,g=(0,Z.useRef)(0),_=n?o:``,v=n?`new:${a}`:i?`session:${i}`:`fallback:${a}`,y=(0,Z.useRef)({isNewRoute:n,forceNewChat:r,decodedKey:i,newRouteLocationSearch:_});y.current={isNewRoute:n,forceNewChat:r,decodedKey:i,newRouteLocationSearch:_};let b=(0,Z.useRef)({sessionMgrRef:s,resolveAgentIdForPost:c,navigateToSession:l,loadSessionById:u,tryResumeAgentRun:d,restoreLiveCacheIfNeeded:f,adoptEmptySession:p,applyAgentConfig:m,patchInitUi:h});b.current={sessionMgrRef:s,resolveAgentIdForPost:c,navigateToSession:l,loadSessionById:u,tryResumeAgentRun:d,restoreLiveCacheIfNeeded:f,adoptEmptySession:p,applyAgentConfig:m,patchInitUi:h},(0,Z.useEffect)(()=>{let e=y.current,n=b.current;if(!t){n.patchInitUi({loading:!1});return}let r=++g.current,i=!1,a=()=>!i&&r===g.current,o=e=>{a()&&n.sessionMgrRef.current.loadSessionAgentConfig(e).then(t=>{a()&&n.applyAgentConfig(e,t)}).catch(()=>{})},s=()=>{if(!a())return Promise.resolve();let t=n.resolveAgentIdForPost();return i9({sessionMgr:n.sessionMgrRef.current,agentId:t,currentSessionKey:xbe.current,routeSessionKey:null,forceNew:e.forceNewChat,projectId:abe(e.newRouteLocationSearch),navigateToSession:n.navigateToSession,replaceNavigate:!0,search:ibe(e.newRouteLocationSearch),onOpened:e=>{n.adoptEmptySession(e,null),o(e)}}).then(()=>void 0)},c=(e,t)=>{if(!a())return Promise.resolve();n.restoreLiveCacheIfNeeded(e);let r=wL(e)?.messages??t??TL(e);return n.tryResumeAgentRun(e,r)},l=e=>a()?wL(e)?.historyStatus===`ready`?(o(e),c(e,TL(e))):n.loadSessionById(e,0).then(t=>{if(a())return c(e,t??TL(e))}):Promise.resolve(),u=()=>a()?n.sessionMgrRef.current.loadSessions().then(e=>{if(!a())return;let t=e.filter(e=>(e.messageCount??0)>0)[0]??e[0];if(t)return a()?n.loadSessionById(t.key,0).then(e=>{if(!a())return;n.restoreLiveCacheIfNeeded(t.key);let r=wL(t.key)?.messages??e??TL(t.key);return n.sessionMgrRef.current.parseSessionFromHash()||n.navigateToSession(t.key,!0),n.tryResumeAgentRun(t.key,r)}):void 0;if(!a())return;let r=n.resolveAgentIdForPost();return i9({sessionMgr:n.sessionMgrRef.current,agentId:r,currentSessionKey:null,routeSessionKey:null,navigateToSession:n.navigateToSession,onOpened:e=>{n.adoptEmptySession(e,null),o(e)}}).then(()=>void 0)}):Promise.resolve();return(()=>{let t=e.decodedKey===void 0&&!e.isNewRoute;n.patchInitUi({loading:t,error:null}),(e.isNewRoute?s():e.decodedKey?l(e.decodedKey):u()).then(()=>{a()&&n.patchInitUi({loading:!1})}).catch(e=>{i?a()&&n.patchInitUi({loading:!1}):n.patchInitUi({error:e instanceof Error?e.message:`Chat init failed`,loading:!1})})})(),()=>{i=!0}},[t,v])}async function Cbe(e){let t=e.trim();if(!t)return!1;try{return!!(await F8()).find(e=>e.id===t)?.reasoning}catch{return!1}}function wbe(e){let{sessionMgrRef:t,routeSessionKeyRef:n,sendingRef:r,streamingRef:i,activeStreamSessionKeyRef:a,loadingSessionRef:o,messagesLenRef:s,thinkingSupportGenRef:c,navigateToSession:l,resolveAgentIdForPost:u,dismissClarifyOnSessionLoad:d,detachForNewConversation:f,sessionKey:p,hasMore:m}=e,h=()=>SL.getState(),g=(0,Z.useRef)(Promise.resolve(void 0)),_=(0,Z.useRef)(null),v=(0,Z.useRef)(0),y=(0,Z.useCallback)(e=>{let t=h().focusedSessionKey;if(!e.trim())return++c.current===c.current&&t&&h().patchSessionMeta(t,{modelSupportsThinking:!1}),Promise.resolve();let n=++c.current;return Cbe(e).then(e=>{if(n!==c.current)return;let t=h().focusedSessionKey;t&&h().patchSessionMeta(t,{modelSupportsThinking:e})})},[c]),b=(0,Z.useCallback)(async e=>{try{let n=await t.current.loadSessionAgentConfig(e);h().patchSessionMeta(e,{model:n.model,thinkingLevel:n.thinkingLevel,reasoningLevel:K7(n.reasoningLevel),activityDetailDefault:n.activityDetail.default,activityDetailOverride:n.activityDetail.override,effectiveWorkspacePath:n.effectiveWorkspacePath,workingDirectoryLocked:n.workingDirectoryLocked,workspaceSource:n.workspaceSource}),y(n.model)}catch{}},[t,y]),x=(0,Z.useCallback)(()=>{let e=h().focusedSessionKey;if(!e||(h().sessions[e]?.name)?.trim())return;let n=++v.current,r=[700,900,900,1e3,1e3],i=a=>{a>=5||n===v.current&&h().focusedSessionKey===e&&(h().sessions[e]?.name?.trim()||window.setTimeout(()=>{n===v.current&&h().focusedSessionKey===e&&(h().sessions[e]?.name?.trim()||t.current.fetchSessionName(e).then(t=>{if(n===v.current){if(t){h().patchSessionMeta(e,{name:t});return}i(a+1)}}).catch(()=>{i(a+1)}))},r[a]??900))};i(0)},[t]),S=(0,Z.useCallback)(e=>Wye({chatId:e,routeSessionKey:n.current}),[n]),C=(0,Z.useCallback)((e,t)=>{let n=h().getSessionSnapshot(e);n&&(n.streaming||n.sending||n.streamingMsg)?(h().mergeCommittedFromServer(e,t.messages,t.hasMore),t.name!==void 0&&h().patchSessionMeta(e,{name:t.name||null})):h().setCommittedSnapshot(e,{messages:t.messages,hasMore:t.hasMore,name:t.name}),S(e)&&(_.current=t.nextBeforeCursor??null)},[S]),w=(0,Z.useCallback)(async(e,r=0,i)=>{let a=async(e,r,i)=>{let s=r===0&&!i;s&&!wI(e)&&d(),o.current=!0;let c=s&&uL(h().sessions[e]?.historyStatus);c&&h().setSessionHistoryStatus(e,`loading`);try{let{messages:n,hasMore:a,name:o,nextBeforeCursor:c}=await t.current.loadSession(e,r,i);if(s){if(h().setCommittedSnapshot(e,{messages:n,hasMore:a,name:o??null}),!S(e))return n;_.current=c??null;let r=await t.current.loadSessionAgentConfig(e);return S(e)?(h().patchSessionMeta(e,{model:r.model,thinkingLevel:r.thinkingLevel,reasoningLevel:K7(r.reasoningLevel),activityDetailDefault:r.activityDetail.default,activityDetailOverride:r.activityDetail.override,effectiveWorkspacePath:r.effectiveWorkspacePath,workingDirectoryLocked:r.workingDirectoryLocked,workspaceSource:r.workspaceSource}),y(r.model),n):n}if(_.current=c??null,!S(e))return;h().prependHistoryMessages(e,n,a);return}catch(o){if(r===0&&!i){_.current=null;let r=o instanceof Error?o.message:`Failed to load session`;h().setShellError(/^HTTP 404\b/.test(r)?JSON.stringify(YN(r)):`Failed to load session`);let i=G7(n.current);if(i&&i===e)return;let s=await t.current.loadSessions().catch(()=>[]),c=s.filter(e=>(e.messageCount??0)>0)[0]??s[0];if(c)return l(c.key,!0),await a(c.key,0,null);{_.current=null;let e=u();i9({sessionMgr:t.current,agentId:e,currentSessionKey:null,routeSessionKey:null,navigateToSession:l,replaceNavigate:!0,onOpened:e=>{h().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:null}),b(e)}})}}return}finally{o.current=!1,c&&h().sessions[e]?.historyStatus===`loading`&&h().setSessionHistoryStatus(e,`ready`)}},s=g.current,c,f=new Promise(e=>{c=e});g.current=s.then(()=>f),await s;try{return await a(e,r,i)}finally{c()}},[n,S,r,i,a,o,d,l,y,u,t]);return{refreshModelThinkingSupport:y,pollSessionNameAfterTurn:x,applyLoadedSessionSnapshot:C,loadSessionById:w,loadMoreMessages:(0,Z.useCallback)(async()=>{let e=h().focusedSessionKey;if(!(!e||h().loadingMore||!m)){h().setLoadingMore(!0);try{await w(e,s.current,_.current)}finally{h().setLoadingMore(!1)}}},[m,w,s]),onSessionModelChange:(0,Z.useCallback)(async e=>{if(p)try{h().setShellError(null),await t.current.patchSessionAgentConfig(p,{model:e}),h().patchSessionMeta(p,{model:e}),y(e)}catch(e){h().setShellError(e instanceof Error?e.message:`Failed to switch model`)}},[p,t,y]),onSessionThinkingLevelChange:(0,Z.useCallback)(async e=>{if(p)try{h().setShellError(null),await t.current.patchSessionAgentConfig(p,{thinkingLevel:e}),h().patchSessionMeta(p,{thinkingLevel:e})}catch(e){h().setShellError(e instanceof Error?e.message:`Failed to update thinking level`)}},[p,t]),onSessionReasoningLevelChange:(0,Z.useCallback)(async e=>{if(!p)return;let n=h().sessions[p],r=e??n?.activityDetailDefault??`on`;try{h().setShellError(null),h().patchSessionMeta(p,{reasoningLevel:r,activityDetailOverride:e}),await t.current.patchSessionAgentConfig(p,{activityDetailLevel:e})}catch(e){n&&h().patchSessionMeta(p,{reasoningLevel:n.reasoningLevel,activityDetailOverride:n.activityDetailOverride}),h().setShellError(e instanceof Error?e.message:`Failed to update activity detail`)}},[p,t]),createNewSession:(0,Z.useCallback)(async e=>{d(),f(),_.current=null,h().setShellError(null);let n=u();await i9({sessionMgr:t.current,agentId:n,currentSessionKey:p,routeSessionKey:p,forceNew:e?.forceNew,projectId:e?.projectId,navigateToSession:l,onOpened:e=>{h().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:null}),b(e)}})},[d,f,l,u,p,t,b])}}function c9(e){let{chatId:t,shouldApplyStreamUpdate:n,beforeAssistantDelta:r,setStreamingOnStreamStart:i,clearResumeRunIdOnBackgroundTerminal:a,clearResumeRunIdOnVisibleError:o,setError:s,sessionMgrRef:c,applyLoadedSessionSnapshot:l,finalizeMessage:u,fq:d}=e,f=()=>SL.getState(),p=()=>c.current.loadSession(t,0).then(e=>l(t,e)).catch(()=>{}),m=new Map,h,g=()=>{if(h!==void 0&&(window.clearTimeout(h),h=void 0),m.size===0)return;let e=Array.from(m.entries());m.clear(),r(),f().mutateSessionStreaming(t,t=>{for(let[n,r]of e)rL(t.content,n,r)})},_=(e,t)=>{m.set(e,`${m.get(e)??``}${t}`),h===void 0&&(h=window.setTimeout(g,120))},v=()=>{f().clearStreamingState(t),RI.clearActiveStreamSessionKey(t),a&&(RI.activeResumeRunId=null),f().setSessionFlags(t,{sending:!1,streaming:!1}),f().setSessionProgress(t,null),d.dismissClarifyForSession(t),p()};return{onReplayGap:p,onUserMessage:e=>{n(t)&&f().appendUserMessageIfMissing(t,e)},onWorkflowRunStarted:()=>{window.dispatchEvent(new CustomEvent(`workflow-run-started-from-chat`,{detail:{sessionKey:t}}))},onStreamStart:e=>{AL(t),r(),f().mutateSessionStreaming(t,t=>{t.turnId=e}),f().setSessionFlags(t,{streaming:!0})},onToken:(e,i)=>{r(),f().mutateSessionStreaming(t,t=>{ZI(t.content,e,i)}),n(t)&&f().setSessionFlags(t,{streaming:!0})},onAssistantMessageEnd:(e,n,i)=>{r(),f().mutateSessionStreaming(t,t=>{QI(t.content,e,n),i&&(t.usage=i)})},onThinking:(e,n)=>{r(),f().mutateSessionStreaming(t,t=>{!n&&e===``?KI(t.content):qI(t.content,e,n)})},onThinkingEnd:()=>{r(),f().mutateSessionStreaming(t,e=>{JI(e.content)})},onToolStart:(e,n,i,a,o)=>{r(),f().mutateSessionStreaming(t,t=>{aL(t.content,e,n,i,a,o)}),f().setSessionFlags(t,{streaming:!0})},onToolEnd:(e,n,i,a,o,s)=>{e===`clarify`&&d.onClarifyToolEnd(t),r(),f().mutateSessionStreaming(t,t=>{oL(t.content,e,n,i,a,o,s)})},onToolUpdate:(e,n,i)=>{r(),f().mutateSessionStreaming(t,t=>{sL(t.content,e,n,i)})},onTaskPlanUpdated:e=>{f().setSessionTaskPlan(t,e)},onReview:({review:e})=>{r(),f().mutateSessionStreaming(t,t=>{eL(t.content,e)}),n(t)&&f().setSessionFlags(t,{streaming:!0})},onReviewStart:e=>{r(),f().mutateSessionStreaming(t,t=>{nL(t.content,e)}),n(t)&&f().setSessionFlags(t,{streaming:!0})},onReviewDelta:({reviewId:e,delta:t})=>{_(e,t)},onReviewEnd:({reviewId:e,status:n,message:i})=>{g(),r(),f().mutateSessionStreaming(t,t=>{iL(t.content,e,n,i)})},onProgress:e=>{f().setSessionProgress(t,e)},onTtsAudio:e=>{n(t)&&f().appendAttachmentToCurrentAssistant(t,{name:e.name,mimeType:e.mimeType,type:`voice`,uri:e.uri,size:0},{attachTo:e.attachTo,messageId:e.messageId})},onCompaction:e=>{if(!n(t))return;let r=j(I.getState().language).chat;if(e.status===`started`)f().setSessionProgress(t,{stage:`compaction`,message:r.compactingContext,timestamp:Date.now()});else if(e.status===`completed`){let n=e.tokensBefore&&e.tokensAfter?` (${r.contextTokensFreed.replace(`{{count}}`,String(Math.round((e.tokensBefore-e.tokensAfter)/1e3)))})`:``;f().setSessionProgress(t,{stage:`compaction`,message:`${r.contextCompacted}${n}`,timestamp:Date.now()})}else f().setSessionProgress(t,null)},onClarifyRequest:d.makeOnClarifyRequest(t),onResult:({status:e})=>{g();let r=n(t);if(RI.userAborted||e===`cancelled`){RI.userAborted=!1,NL(t),r?u():v();return}if(jL(t,!r),!r){v();return}u()},onError:e=>{g();let r=n(t);if(ML(t,!r),!r){v();return}f().clearStreamingState(t),o&&(RI.activeResumeRunId=null),f().setSessionFlags(t,{sending:!1,streaming:!1}),f().setSessionProgress(t,null),s(e),d.dismissClarifyForSession(t)}}}function Tbe(e){return wL(e)?.streamingMsg??null}var l9=80;function Ebe(e){let t=e.trim();(t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`))&&(t=t.slice(1,-1).trim());let n=t.indexOf(`
|
|
151
|
-
`);return n!==-1&&(t=t.slice(0,n).trim()),t.length>l9&&(t=t.slice(0,l9-1).trimEnd()+`…`),t}function Dbe(e){let t=e.trimStart();if(!/^##\s+Skill:\s*\S+/i.test(t))return e;let n=/(?:^|\r?\n)\*\*Arguments\*\*:\s*/gi,r=-1;for(;n.exec(t)!==null;)r=n.lastIndex;if(r!==-1){let e=t.slice(r).trim();if(e)return e}return(t.split(/\r?\n/)[0]?.trim()??``).replace(/^##\s+Skill:\s*/i,``).trim()}function Obe(e){let t=e.trimStart().match(/^\/skill:([^\s]+)(?:\s+([\s\S]*))?$/i);return t&&(t[2]?.trim()||t[1]?.trim())||e}function kbe(e){let t=Obe(Dbe(aF([{type:`text`,text:e}]))).split(/\n/)[0]?.trim();if(!t)return null;let n=Ebe(t);return n.length>0?n:null}function Abe(e,t){let n=e.trim(),r=t.trim();!n||!r||window.dispatchEvent(new CustomEvent(`session-updated`,{detail:{key:n,name:r},bubbles:!0}))}function jbe(e){let{sessionKey:t,thinkingLevel:n,modelSupportsThinking:r,sessionKeyRef:i,sendingRef:a,streamingRef:o,sessionMgrRef:s,sendMessageRef:c,shouldApplyStreamUpdate:l,fq:u,applyLoadedSessionSnapshot:d,loadSessionById:f,createNewSession:p,pollSessionNameAfterTurn:m}=e,h=()=>SL.getState(),g=e=>h().setShellError(e),_=()=>h().setShellError(null),v=(0,Z.useCallback)(()=>{let e=RI.activeStreamSessionKey??i.current;if(e&&!l(e))return;let t=e?Tbe(e):null,n=null;if(t){let e=HI(t,Date.now());JI(e.content),YI(e.content),tL(e.content),n=UI(e)}n&&VI(n)&&e?h().finalizeStreamingTurn(e,n):e&&h().clearStreamingState(e),a.current=!1,o.current=!1,RI.resetRunTracking(),u.dismissClarify(),m();let r=i.current;r&&window.setTimeout(()=>{i.current===r&&(a.current||o.current||f(r,0))},400)},[a,o,i,u.dismissClarify,u.pendingFollowUpsRef,m,f,l]),y=(0,Z.useCallback)(async(e,t)=>{if(!l(e)||RI.isStreamingFor(e)||RI.isSending)return;let n=await f_e(e);if(!n||RI.activeResumeRunId===n)return;let r=t??TL(e),i=wL(e)?.hasMore??!1;try{let t=await s.current.loadSession(e,0);h().mergeCommittedFromServer(e,t.messages,t.hasMore),r=t.messages,i=t.hasMore}catch{}RI.userAborted=!1,RI.activeResumeRunId=n,RI.activeStreamSessionKey=e,a.current=!0,o.current=!0,h().seedSessionIfEmpty(e,r,!0,!0,i),h().setSessionFlags(e,{sending:!0,streaming:!0}),h().setSessionProgress(e,null),AL(e);let c=!1,p=()=>{if(c||!l(e))return;c=!0;let t=TL(e);if(t.length===0)return;let n=t[t.length-1];if(n?.role!==`assistant`)return;let r=UI(n),i=t.slice(0,-1);h().applyHydratedTail(e,i,r)},m=()=>{if(h().clearStreamingState(e),RI.activeResumeRunId===n&&(RI.activeResumeRunId=null),!l(e)){RI.clearActiveStreamSessionKey(e);return}a.current=!1,o.current=!1,RI.clearActiveStreamSessionKey(e)};try{let t=c9({chatId:e,shouldApplyStreamUpdate:l,beforeAssistantDelta:p,setStreamingOnStreamStart:!1,clearResumeRunIdOnBackgroundTerminal:!0,clearResumeRunIdOnVisibleError:!0,setError:g,sessionMgrRef:s,applyLoadedSessionSnapshot:d,finalizeMessage:v,fq:u});await RI.sender.resume(n,e,t)||(NL(e),m(),await f(e,0).catch(()=>void 0))}catch(t){t.name!==`AbortError`&&console.error(`[chat] resume failed:`,t),NL(e),m()}},[a,o,l,s,d,v,f]),b=(0,Z.useCallback)(async(e,t,s)=>{if(!e.trim()&&!t?.length||!a.current&&!o.current&&!RI.isSending)return;if(e.trim()===`/new`&&!t?.length){await p({forceNew:!0});return}if(!i.current)return;u.dismissClarifyAndClearPending();let l=r?s??n:`off`;RI.userAborted=!0,RI.resetRunTracking(),RI.abort(),a.current=!1,o.current=!1,v(),queueMicrotask(()=>{c.current(e,t,l)})},[a,o,i,u.dismissClarifyAndClearPending,r,n,v,c,p]);return{finalizeMessage:v,tryResumeAgentRun:y,sendMessage:(0,Z.useCallback)(async(e,i,c)=>{if(!t||!l(t)||!e.trim()&&!i?.length||RI.activeStreamSessionKey===t&&(a.current||o.current))return;let f=e.trim();if(f===`/new`&&!i?.length){await p({forceNew:!0});return}let m=r?c??n:`off`,y=t;RI.userAborted=!1,RI.activeStreamSessionKey=y,a.current=!0,o.current=!1,_(),u.dismissClarify();let b=[...TL(y),{role:`user`,content:e?[{type:`text`,text:e}]:[],attachments:i,timestamp:Date.now()}],x=wL(y);if(h().initSessionSnapshot(y,{...x??{...FI(),historyStatus:`ready`,hasMore:!1,streamingMsg:null,progress:null,taskPlan:null,sending:!1,streaming:!1},messages:b,hasMore:x?.hasMore??!1,streamingMsg:null,progress:null,sending:!0,streaming:!1}),AL(y),!x?.name?.trim()&&f){let e=kbe(f);e&&(h().patchSessionMeta(y,{name:e}),Abe(y,e))}try{await s.current.ensureSessionExists(y);let t=c9({chatId:y,shouldApplyStreamUpdate:l,beforeAssistantDelta:()=>{},setStreamingOnStreamStart:!0,clearResumeRunIdOnBackgroundTerminal:!1,clearResumeRunIdOnVisibleError:!1,setError:g,sessionMgrRef:s,applyLoadedSessionSnapshot:d,finalizeMessage:v,fq:u});await RI.sender.send(e,y,i,m,t)}catch(e){e.name===`AbortError`?NL(y):(h().clearStreamingState(y),NL(y),g(JSON.stringify(JN())))}finally{a.current=!1,o.current=!1,h().setSessionFlags(y,{sending:!1}),RI.clearActiveStreamSessionKey(y)}},[t,n,r,a,o,l,s,d,v,u.dismissClarify,p]),interruptAndSend:b,abort:(0,Z.useCallback)(()=>{RI.userAborted=!0,RI.resetRunTracking(),u.dismissClarifyAndClearPending(),RI.abort();let e=i.current;e&&NL(e),a.current=!1,o.current=!1,v(),e&&window.setTimeout(()=>{f(e,0)},300)},[u.dismissClarifyAndClearPending,a,o,v,i,f]),deleteMessageRound:(0,Z.useCallback)(e=>{let t=i.current;if(!t||a.current||o.current)return;let n=TL(t),r=n[e];if(!r||!cF(r.role))return;let c=lF(n,e);if(c===null)return;let l=uF(n,e),u=[...n];u.splice(e,l),h().updateSessionMessages(t,()=>u),s.current.deleteMessages(t,{userRoundIndex:c}).catch(()=>{f(t,0)})},[i,a,o,s,f]),retryUserMessageRound:(0,Z.useCallback)(e=>{let t=i.current;if(!t||a.current||o.current)return;let n=TL(t),r=n[e];if(!r||!cF(r.role))return;for(let t=e+1;t<n.length;t++){let e=n[t];if(e&&cF(e.role))return}let l=aF(r.content),u=sF(r.attachments);if(!l.trim()&&!u?.length)return;let d=lF(n,e);if(d===null)return;let p=uF(n,e),m=[...n];m.splice(e,p),h().updateSessionMessages(t,()=>m),(async()=>{try{await s.current.deleteMessages(t,{userRoundIndex:d}),await c.current(l,u)}catch{f(t,0)}})()},[i,a,o,s,f,c])}}function Mbe(e){let t=(0,Q.c)(11),{sessionKey:n,sessionKeyRef:r,sessionMgrRef:i,loadSessionById:a,loadTimelineById:o,applyAgentConfig:s}=e,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=[],t[0]=c):c=t[0],(0,Z.useEffect)(Pbe,c);let l,u;t[1]!==a||t[2]!==o||t[3]!==n?(l=()=>{let e=e=>{let t=e.detail;!t?.key||t.key!==n||(a(n,0),o(n))};return window.addEventListener(`session-transcript-updated`,e),()=>window.removeEventListener(`session-transcript-updated`,e)},u=[n,a,o],t[1]=a,t[2]=o,t[3]=n,t[4]=l,t[5]=u):(l=t[4],u=t[5]),(0,Z.useEffect)(l,u);let d,f;t[6]!==s||t[7]!==r||t[8]!==i?(d=()=>{let e=e=>{if(Te(e.detail))return;let t=r.current;t&&i.current.loadSessionAgentConfig(t).then(e=>{s(t,e)}).catch(Nbe)};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},f=[r,i,s],t[6]=s,t[7]=r,t[8]=i,t[9]=d,t[10]=f):(d=t[9],f=t[10]),(0,Z.useEffect)(d,f)}function Nbe(){}function Pbe(){let e=Fbe;return window.addEventListener(`session-updated`,e),()=>window.removeEventListener(`session-updated`,e)}function Fbe(e){let t=e.detail;!t?.key||t.name===void 0||SL.getState().patchSessionMeta(t.key,{name:t.name||null})}function Ibe(){let e=m(),{isNewRoute:t,forceNewChat:n,decodedKey:r,viewSessionKey:i,routedFocusedSessionKey:a,routeSessionKeyRef:o,locationKey:s,locationSearch:c,locationState:l}=bbe(),u=(0,Z.useRef)(new S_e),d=(0,Z.useRef)(!1),f=(0,Z.useRef)(!1),p=(0,Z.useRef)(!1),h=(0,Z.useRef)(0),g=(0,Z.useRef)(!1),[_,v]=(0,Z.useState)([]),y=(0,Z.useRef)(async()=>{}),b=(0,Z.useRef)(0),x=a,S=SL(e=>e.initLoading),C=SL(e=>e.loadingMore),w=SL(e=>e.shellError),T=i,E=SL(e=>T?e.sessions[T]:void 0),D=T?CL(E):!1,O=D?E?.streaming??!1:!1,k=D?E?.sending??!1:!1,A=D?E?.progress??null:null,j=D?E?.taskPlan??null:null,M=E?.hasMore??!1,N=E?.name??null,P=E?.model??``,F=E?.thinkingLevel??`medium`,I=E?.reasoningLevel??`on`,L=E?.activityDetailDefault??`on`,R=E?.activityDetailOverride??null,z=E?.modelSupportsThinking??!1,B=E?.effectiveWorkspacePath??``,V=E?.workingDirectoryLocked??!1,H=E?.workspaceSource??`agent_default_root`;(0,Z.useEffect)(()=>{b.current=E?.messages.length??0},[E?.messages.length]),(0,Z.useEffect)(()=>{f.current=k,p.current=O},[k,O]);let{token:U,chatAgentsData:W,resolveAgentIdForPost:G,onChatAgentChange:K,displayAgentId:ee,showChatAgentSelector:q}=rbe({navigate:e,sessionKeyRef:s9,sessionKey:x,isNewRoute:t,locationState:l}),te=r!==void 0&&x!==r,ne=!!(r&&E?.historyStatus===`loading`&&!te),re=(0,Z.useMemo)(()=>S&&(x==null||r===void 0),[S,x,r]),ie=Zye({isNewRoute:t,sessionRoutePending:te,showSessionLoading:re,sessionContentLoading:ne,messageCount:E?.messages.length??0}),ae=(0,Z.useCallback)((t,n=!1,r)=>{let i=r??``;e({pathname:`/chat/${encodeURIComponent(t)}`,search:i},{replace:n})},[e]),oe=(0,Z.useCallback)(e=>Hye({streamSessionKey:e,routeSessionKey:o.current}),[o]),se=(0,Z.useCallback)(()=>{Xye({sendingRef:f,streamingRef:p})},[]),J=nbe({sessionKey:x,decodedKey:r,sessionKeyRef:s9,sendingRef:f,streamingRef:p,modelSupportsThinking:z,thinkingLevel:F,shouldApplyStreamUpdate:oe}),ce=(0,Z.useCallback)(()=>{J.clearVisibleClarify(),RI.activeResumeRunId=null,RI.userAborted=!1,Jye(se)},[J.clearVisibleClarify,se]),{refreshModelThinkingSupport:le,pollSessionNameAfterTurn:ue,applyLoadedSessionSnapshot:de,loadSessionById:fe,loadMoreMessages:pe,onSessionModelChange:me,onSessionThinkingLevelChange:he,onSessionReasoningLevelChange:ge,createNewSession:_e}=wbe({sessionMgrRef:u,routeSessionKeyRef:o,sendingRef:f,streamingRef:p,activeStreamSessionKeyRef:zI,loadingSessionRef:d,messagesLenRef:b,thinkingSupportGenRef:h,navigateToSession:ae,resolveAgentIdForPost:G,dismissClarifyOnSessionLoad:J.clearVisibleClarify,detachForNewConversation:ce,sessionKey:x,hasMore:M}),ve=(0,Z.useCallback)(e=>{if(!Uye({cacheSessionKey:e,routeSessionKey:o.current}))return!1;let t=wL(e);return!t||!CL(t)&&!wI(e)&&!RI.isStreamingFor(e)?!1:(RI.activeStreamSessionKey=e,f.current=t.sending,p.current=t.streaming,!0)},[o]),{tryResumeAgentRun:ye,sendMessage:be,interruptAndSend:xe,abort:Se,deleteMessageRound:Ce,retryUserMessageRound:we}=jbe({sessionKey:x,thinkingLevel:F,modelSupportsThinking:z,sessionKeyRef:s9,sendingRef:f,streamingRef:p,sessionMgrRef:u,sendMessageRef:y,shouldApplyStreamUpdate:oe,fq:J,applyLoadedSessionSnapshot:de,loadSessionById:fe,createNewSession:_e,pollSessionNameAfterTurn:ue});(0,Z.useEffect)(()=>{t&&ce()},[t,ce]);let Te=(0,Z.useMemo)(()=>qye({viewSessionKey:i,sessionKey:T,messages:E?.messages??[],streamingMsg:D?E?.streamingMsg??null:null}),[i,T,E?.messages,E?.streamingMsg,D]),Ee=(0,Z.useCallback)((e,t)=>{SL.getState().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:t}),se()},[se]),De=(0,Z.useCallback)((e,t)=>{Yye(e,t),le(t.model)},[le]),Oe=(0,Z.useCallback)(e=>{let t=SL.getState();e.loading!==void 0&&t.setInitLoading(e.loading),e.error!==void 0&&t.setShellError(e.error)},[]),ke=(0,Z.useCallback)(async e=>{try{let t=await u.current.loadTimeline(e);if(o.current!==e)return;v(t)}catch{o.current===e&&v([])}},[o]);return(0,Z.useEffect)(()=>{if(t||!x){v([]);return}ke(x)},[x,t,ke]),Mbe({sessionKey:x,sessionKeyRef:s9,sendingRef:f,streamingRef:p,sessionMgrRef:u,loadSessionById:fe,loadTimelineById:ke,applyAgentConfig:De}),Sbe({token:U,isNewRoute:t,forceNewChat:n,decodedKey:r,locationKey:s,locationSearch:c,sessionMgrRef:u,resolveAgentIdForPost:G,navigateToSession:ae,loadSessionById:fe,tryResumeAgentRun:ye,restoreLiveCacheIfNeeded:ve,adoptEmptySession:Ee,applyAgentConfig:De,patchInitUi:Oe}),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail,n=t?.sessionKey,r=t?.runId;!n||!r?.trim()||(TI(n,r),oe(n)&&(RI.isStreamingFor(n)||queueMicrotask(()=>{oe(n)&&(RI.isStreamingFor(n)||ye(n,TL(n)))})))};return window.addEventListener(`run-started`,e),()=>window.removeEventListener(`run-started`,e)},[ye,oe]),(0,Z.useEffect)(()=>{let e=O||k,t=g.current;if(g.current=e,!t||e)return;let n=s9.current;n&&queueMicrotask(()=>{!n||!oe(n)||RI.isStreamingFor(n)||wI(n)&&ye(n,TL(n))})},[O,k,ye,oe]),y.current=be,{auth:{hasToken:!!U},session:{sessionKey:x,sessionName:N,decodedKey:r,sessionRoutePending:te,sessionContentLoading:ne,showSessionLoading:re,conversationPhase:ie,loading:S,sessionModel:P,thinkingLevel:F,onSessionThinkingLevelChange:he,onSessionReasoningLevelChange:ge,reasoningLevel:I,activityDetailDefault:L,activityDetailOverride:R,modelSupportsThinking:z,effectiveWorkspacePath:B,workingDirectoryLocked:V,workspaceSource:H,hasMore:M,loadingMore:C,loadMoreMessages:pe,onSessionModelChange:me,createNewSession:_e,sessionManager:u.current},messages:{items:Te},timeline:{items:_,refresh:ke},stream:{error:w,streaming:O,sending:k,progress:A,taskPlan:j,sendMessage:be,abort:Se,interruptAndSend:xe,deleteMessageRound:Ce,retryUserMessageRound:we},followUp:{addPendingFollowUp:J.addPendingFollowUp,pendingFollowUps:J.pendingFollowUps,editingFollowUpId:J.editingFollowUpId,beginEditFollowUp:J.beginEditFollowUp,cancelEditFollowUp:J.cancelEditFollowUp,commitEditFollowUp:J.commitEditFollowUp,removePendingFollowUp:J.removePendingFollowUp,movePendingFollowUp:J.movePendingFollowUp,reorderPendingFollowUp:J.reorderPendingFollowUp,steerPendingFollowUp:J.steerPendingFollowUp,steeringFollowUpId:J.steeringFollowUpId},clarify:{clarifyPrompt:J.clarifyPrompt,clarifySubmitting:J.clarifySubmitting,clarifySubmitError:J.clarifySubmitError,submitClarifyAnswer:J.submitClarifyAnswer,cancelClarifyAnswer:J.cancelClarifyAnswer},agents:{chatAgents:W,displayAgentId:ee,showChatAgentSelector:q,onChatAgentChange:K}}}function Lbe(e){let t=(0,Q.c)(8),n=F(Rbe),r;t[0]===e?r=t[1]:(r=e?.trim()||null,t[0]=e,t[1]=r);let i=r,a;t[2]!==n||t[3]!==i?(a=n&&i?[`chat-session-meta`,i,n]:null,t[2]=n,t[3]=i,t[4]=a):a=t[4];let o;t[5]===i?o=t[6]:(o=async()=>{let e=await CR(i),t=e.customData?.workflowRunId,n=typeof t==`string`&&t.trim()?t.trim():null,r=e.customData?.taskId,a=typeof r==`string`&&r.trim()?r.trim():null,o=typeof e.sessionType==`string`&&e.sessionType.trim()?e.sessionType.trim():null,s=typeof e.routing?.agentId==`string`&&e.routing.agentId.trim()?e.routing.agentId.trim():null,c=e.customData?.sourceBinding,l=c&&typeof c==`object`?c:null;return{workflowRunId:n,taskId:a,ownerAgentId:s,sessionType:o,sourceNoteId:l?.kind===`note`&&typeof l.sourceId==`string`&&l.sourceId.trim()?l.sourceId.trim():null,sourceNoteTitle:null}},t[5]=i,t[6]=o);let s;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s={revalidateOnFocus:!1},t[7]=s):s=t[7],xe(a,o,s)}function Rbe(e){return e.token}function u9(e,t){if(!e)return``;let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,Math.max(0,t-3)).trimEnd()}...`}function zbe(e,t){return u9(iF(e??``),t)}function Bbe(e,t){return XJ(e,t)}function Vbe(e){return e===`context`||e===`branch`||e===`compaction`?e:null}function Hbe(e){return u9(e.preview||e.title,72)||e.kind}function d9(e,t){let n=[],r=null,i=0;for(let a of e){if(a.displayIndex!==void 0&&(i=a.displayIndex),a.kind===`turn`&&a.role===`user`){let e=a.turn||n.length+1;r={id:a.id,messageIndex:a.displayIndex??i,ordinal:e,title:t.turn.replace(`{{count}}`,String(e)),preview:zbe(a.preview||a.title,88)||t.messageFallback,...a.timestamp===void 0?{}:{timestamp:a.timestamp},tools:[],events:[]},n.push(r);continue}if(!r)continue;if(a.kind===`tool`||a.kind===`file`||a.kind===`command`){let e=a.meta?.toolName||a.title||a.kind,n=a.kind===`file`||a.kind===`command`?a.title:Bbe(e,t),i=`${a.id}:${e}`;r.tools.some(e=>e.key===i)||r.tools.push({key:i,label:n,running:a.status===`running`});continue}let e=Vbe(a.kind);if(!e)continue;let o=`${a.id}:${a.kind}`;r.events.some(e=>e.key===o)||r.events.push({key:o,label:Hbe(a),tone:e})}return n}function f9(e,t){return(e===1?t.toolCount_one:t.toolCount_other).replace(`{{count}}`,String(e))}function Ube(e,t){let n=e[0]?.id;for(let r of e)r.messageIndex<=t&&(n=r.id);return n}function Wbe(e){let t=(0,Q.c)(53),{turn:n,active:r,labels:i,currentLabel:a,onSelect:o}=e,s,c,l,u,d,f,p,m;if(t[0]!==r||t[1]!==a||t[2]!==i||t[3]!==o||t[4]!==n.events||t[5]!==n.preview||t[6]!==n.timestamp||t[7]!==n.title||t[8]!==n.tools){let e=n.tools.slice(0,2),h=n.events.slice(0,Math.max(0,3-e.length)),g=Math.max(0,n.tools.length-e.length)+Math.max(0,n.events.length-h.length);d=`button`;let _=r&&`bg-accent-soft/70`;t[17]===_?f=t[18]:(f=C(`flex w-full min-w-0 items-start gap-3 border-b border-edge-subtle px-4 py-3 text-left transition-colors`,`hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,_),t[17]=_,t[18]=f),p=o;let v=r&&`border-accent bg-accent`,y;t[19]===v?y=t[20]:(y=C(`mt-1 size-2.5 shrink-0 rounded-full border border-edge-strong bg-surface-panel`,v),t[19]=v,t[20]=y),t[21]===y?m=t[22]:(m=(0,$.jsx)(`span`,{className:y,"aria-hidden":!0}),t[21]=y,t[22]=m),s=`min-w-0 flex-1`;let b;t[23]===n.preview?b=t[24]:(b=(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium text-fg`,children:n.preview}),t[23]=n.preview,t[24]=b);let x;t[25]!==r||t[26]!==a?(x=r?(0,$.jsx)(`span`,{className:`shrink-0 rounded-full bg-accent px-1.5 py-0.5 text-[10px] font-medium text-white`,children:a}):null,t[25]=r,t[26]=a,t[27]=x):x=t[27],t[28]!==b||t[29]!==x?(c=(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[b,x]}),t[28]=b,t[29]=x,t[30]=c):c=t[30];let S;t[31]===n.title?S=t[32]:(S=(0,$.jsx)(`span`,{children:n.title}),t[31]=n.title,t[32]=S);let w;t[33]===n.timestamp?w=t[34]:(w=n.timestamp?(0,$.jsx)(`time`,{suppressHydrationWarning:!0,dateTime:new Date(n.timestamp).toISOString(),children:C1(n.timestamp)}):null,t[33]=n.timestamp,t[34]=w);let T;t[35]!==i||t[36]!==n.tools.length?(T=n.tools.length>0?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,$.jsx)(Ow,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),f9(n.tools.length,i)]}):null,t[35]=i,t[36]=n.tools.length,t[37]=T):T=t[37],t[38]!==S||t[39]!==w||t[40]!==T?(l=(0,$.jsxs)(`span`,{className:`mt-1 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-xs text-fg-muted`,children:[S,w,T]}),t[38]=S,t[39]=w,t[40]=T,t[41]=l):l=t[41],u=e.length>0||n.events.length>0?(0,$.jsxs)(`span`,{className:`mt-2 flex min-w-0 flex-wrap gap-1.5`,children:[e.map(Kbe),h.map(Gbe),g>0?(0,$.jsxs)(`span`,{className:`rounded-md bg-surface-hover px-1.5 py-0.5 text-[11px] text-fg-muted`,children:[`+`,g]}):null]}):null,t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=n.events,t[5]=n.preview,t[6]=n.timestamp,t[7]=n.title,t[8]=n.tools,t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d,t[14]=f,t[15]=p,t[16]=m}else s=t[9],c=t[10],l=t[11],u=t[12],d=t[13],f=t[14],p=t[15],m=t[16];let h;t[42]!==s||t[43]!==c||t[44]!==l||t[45]!==u?(h=(0,$.jsxs)(`span`,{className:s,children:[c,l,u]}),t[42]=s,t[43]=c,t[44]=l,t[45]=u,t[46]=h):h=t[46];let g;return t[47]!==d||t[48]!==f||t[49]!==p||t[50]!==m||t[51]!==h?(g=(0,$.jsx)(`li`,{children:(0,$.jsxs)(`button`,{type:d,className:f,onClick:p,children:[m,h]})}),t[47]=d,t[48]=f,t[49]=p,t[50]=m,t[51]=h,t[52]=g):g=t[52],g}function Gbe(e){return(0,$.jsxs)(`span`,{className:`inline-flex max-w-[10rem] items-center gap-1 rounded-md bg-surface-hover px-1.5 py-0.5 text-[11px] text-fg-muted`,children:[(0,$.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-current opacity-70`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function Kbe(e){return(0,$.jsxs)(`span`,{className:C(`inline-flex max-w-[9rem] items-center gap-1 rounded-md bg-surface-hover px-1.5 py-0.5 text-[11px] text-fg-muted`,e.running&&`text-accent-fg`),children:[(0,$.jsx)(Ow,{className:`size-3 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function qbe(e){let t=(0,Q.c)(39),{items:n,activeMessageIndex:r,labels:i,openLabel:a,closeLabel:o,currentLabel:s,onSelectMessage:c}=e,l;t[0]!==n||t[1]!==i?(l=d9(n,i),t[0]=n,t[1]=i,t[2]=l):l=t[2];let u=l,[d,f]=(0,Z.useState)(!1);if(u.length<4)return null;let p;t[3]!==r||t[4]!==u?(p=Ube(u,r),t[3]=r,t[4]=u,t[5]=p):p=t[5];let m=p,h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)($m,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),t[6]=h):h=t[6];let g;t[7]===a?g=t[8]:(g=(0,$.jsx)(zD,{asChild:!0,children:(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,className:`fixed bottom-[calc(env(safe-area-inset-bottom)+5.5rem)] right-4 z-40 size-11 rounded-full p-0 shadow-popover md:right-6 xl:hidden`,"aria-label":a,title:a,children:h})}),t[7]=a,t[8]=g);let _;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(GD,{className:`fixed inset-0 z-[80] bg-scrim/70 backdrop-blur-[1px] xl:hidden`}),t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=C(`fixed bottom-0 left-0 right-0 z-[90] flex h-[min(72dvh,34rem)] flex-col overflow-hidden`,`rounded-t-xl border border-edge bg-surface-panel shadow-popover outline-none`,`md:bottom-auto md:left-auto md:right-4 md:top-20 md:h-[min(calc(100dvh-7rem),40rem)] md:w-[22rem] md:rounded-xl`,`xl:hidden`),t[10]=v):v=t[10];let y;t[11]===i.title?y=t[12]:(y=(0,$.jsx)(eO,{className:`min-w-0 truncate text-base font-semibold text-fg`,children:i.title}),t[11]=i.title,t[12]=y);let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(Aw,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),t[13]=b):b=t[13];let x;t[14]===o?x=t[15]:(x=(0,$.jsx)(iO,{asChild:!0,children:(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`size-8 shrink-0 p-0`,"aria-label":o,children:b})}),t[14]=o,t[15]=x);let S;t[16]!==y||t[17]!==x?(S=(0,$.jsxs)(`div`,{className:`flex min-w-0 shrink-0 items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[y,x]}),t[16]=y,t[17]=x,t[18]=S):S=t[18];let w;if(t[19]!==m||t[20]!==s||t[21]!==i||t[22]!==c||t[23]!==u){let e;t[25]!==m||t[26]!==s||t[27]!==i||t[28]!==c?(e=e=>(0,$.jsx)(Wbe,{turn:e,active:e.id===m,labels:i,currentLabel:s,onSelect:()=>{c(e.messageIndex),f(!1)}},e.id),t[25]=m,t[26]=s,t[27]=i,t[28]=c,t[29]=e):e=t[29],w=u.map(e),t[19]=m,t[20]=s,t[21]=i,t[22]=c,t[23]=u,t[24]=w}else w=t[24];let T;t[30]===w?T=t[31]:(T=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,$.jsx)(`ol`,{className:`min-w-0`,children:w})}),t[30]=w,t[31]=T);let E;t[32]!==S||t[33]!==T?(E=(0,$.jsxs)(UD,{children:[_,(0,$.jsxs)(YD,{className:v,"aria-describedby":void 0,children:[S,T]})]}),t[32]=S,t[33]=T,t[34]=E):E=t[34];let D;return t[35]!==d||t[36]!==E||t[37]!==g?(D=(0,$.jsxs)(LD,{open:d,onOpenChange:f,children:[g,E]}),t[35]=d,t[36]=E,t[37]=g,t[38]=D):D=t[38],D}function Jbe(e){let{active:t,scrubbing:n,distance:r}=e;return n?r===0?`w-7 bg-fg`:r===1?`w-5 bg-fg-muted`:r===2?`w-4 bg-edge-strong/70`:t?`w-3.5 bg-fg-muted`:`w-2.5 bg-edge-strong/45`:t?`w-3.5 bg-fg-muted`:`w-2.5 bg-edge-strong/45`}function Ybe(e){let t=(0,Q.c)(40),{turn:n,labels:r}=e,i,a,o,s,c,l,u,d,f;if(t[0]!==r||t[1]!==n.events||t[2]!==n.preview||t[3]!==n.timestamp||t[4]!==n.title||t[5]!==n.tools){let e=n.tools.slice(0,3),p=Math.max(0,n.tools.length-e.length),m=n.events.slice(0,Math.max(0,3-e.length));i=p+Math.max(0,n.events.length-m.length);let h=n.tools.length>0||n.events.length>0?[...e.map($be),...m.map(Qbe),...i>0?[`+${i}`]:[]].join(` · `):n.title;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(l=C(`pointer-events-auto absolute right-12 top-1/2 z-[100] w-[min(25rem,calc(100vw-8rem))] -translate-y-1/2`,`rounded-2xl border border-edge bg-surface-panel/95 p-3 text-left shadow-popover backdrop-blur`),t[15]=l):l=t[15],t[16]===n.timestamp?u=t[17]:(u=n.timestamp?(0,$.jsx)(`div`,{className:`mb-1 flex min-w-0 justify-end text-xs`,children:(0,$.jsx)(`time`,{suppressHydrationWarning:!0,className:`shrink-0 tabular-nums text-fg-disabled`,dateTime:new Date(n.timestamp).toISOString(),children:C1(n.timestamp)})}):null,t[16]=n.timestamp,t[17]=u),t[18]===n.preview?d=t[19]:(d=(0,$.jsx)(`div`,{className:`min-w-0 text-sm font-semibold leading-5 text-fg`,children:(0,$.jsx)(`span`,{className:`line-clamp-1`,children:n.preview})}),t[18]=n.preview,t[19]=d),t[20]===h?f=t[21]:(f=(0,$.jsx)(`div`,{className:`mt-1 line-clamp-3 text-sm leading-6 text-fg-muted`,children:h}),t[20]=h,t[21]=f),a=`mt-3 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 text-sm text-fg-subtle`,t[22]!==r||t[23]!==n.title||t[24]!==n.tools.length?(o=n.tools.length>0?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,$.jsx)(Ow,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:f9(n.tools.length,r)})]}):(0,$.jsx)(`span`,{children:n.title}),t[22]=r,t[23]=n.title,t[24]=n.tools.length,t[25]=o):o=t[25],s=e.map(Zbe),c=m.map(Xbe),t[0]=r,t[1]=n.events,t[2]=n.preview,t[3]=n.timestamp,t[4]=n.title,t[5]=n.tools,t[6]=i,t[7]=a,t[8]=o,t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d,t[14]=f}else i=t[6],a=t[7],o=t[8],s=t[9],c=t[10],l=t[11],u=t[12],d=t[13],f=t[14];let p;t[26]===i?p=t[27]:(p=i>0?(0,$.jsxs)(`span`,{children:[`+`,i]}):null,t[26]=i,t[27]=p);let m;t[28]!==a||t[29]!==o||t[30]!==s||t[31]!==c||t[32]!==p?(m=(0,$.jsxs)(`div`,{className:a,children:[o,s,c,p]}),t[28]=a,t[29]=o,t[30]=s,t[31]=c,t[32]=p,t[33]=m):m=t[33];let h;return t[34]!==m||t[35]!==l||t[36]!==u||t[37]!==d||t[38]!==f?(h=(0,$.jsxs)(`div`,{className:l,children:[u,d,f,m]}),t[34]=m,t[35]=l,t[36]=u,t[37]=d,t[38]=f,t[39]=h):h=t[39],h}function Xbe(e){return(0,$.jsxs)(`span`,{className:C(`inline-flex min-w-0 max-w-[10rem] items-center gap-1.5`,e.tone===`branch`&&`text-accent`,e.tone===`compaction`&&`text-fg-muted`),children:[(0,$.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-current opacity-70`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function Zbe(e){return(0,$.jsxs)(`span`,{className:C(`inline-flex min-w-0 max-w-[9rem] items-center gap-1.5`,e.running&&`text-accent`),children:[(0,$.jsx)(Ow,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function Qbe(e){return e.label}function $be(e){return e.label}function exe(e){let t=(0,Q.c)(51),{items:n,activeMessageIndex:r,labels:i,onSelectMessage:a}=e,o;t[0]!==n||t[1]!==i?(o=d9(n,i),t[0]=n,t[1]=i,t[2]=o):o=t[2];let s=o,[c,l]=(0,Z.useState)(null),u=(0,Z.useRef)(null),d=(0,Z.useRef)(0),f,p;if(t[3]===c?(f=t[4],p=t[5]):(f=()=>{if(!c)return;let e=()=>{d.current=0,l(null)},t=t=>{let n=t.target;n instanceof Node&&(u.current?.contains(n)||e())},n=t=>{t.key===`Escape`&&e()};return document.addEventListener(`pointerdown`,t,!0),document.addEventListener(`keydown`,n),()=>{document.removeEventListener(`pointerdown`,t,!0),document.removeEventListener(`keydown`,n)}},p=[c],t[3]=c,t[4]=f,t[5]=p),(0,Z.useEffect)(f,p),s.length<4)return null;let m;if(t[6]!==r||t[7]!==s){m=s[0]?.id;for(let e of s)e.messageIndex<=r&&(m=e.id);t[6]=r,t[7]=s,t[8]=m}else m=t[8];let h=c??m,g;t[9]!==c||t[10]!==s?(g=c?s.find(e=>e.id===c):null,t[9]=c,t[10]=s,t[11]=g):g=t[11];let _=g,v=c!==null,y;if(t[12]!==h||t[13]!==s){let e;t[15]===h?e=t[16]:(e=e=>e.id===h,t[15]=h,t[16]=e),y=s.findIndex(e),t[12]=h,t[13]=s,t[14]=y}else y=t[14];let b=Math.max(0,y),x;t[17]!==a||t[18]!==s?(x=e=>{let t=s[Math.min(s.length-1,Math.max(0,e))];t&&(l(t.id),a(t.messageIndex))},t[17]=a,t[18]=s,t[19]=x):x=t[19];let S=x,w;t[20]!==S||t[21]!==b?(w=e=>{if(Math.abs(e.deltaY)<Math.abs(e.deltaX)||(e.preventDefault(),e.stopPropagation(),d.current+=e.deltaY,Math.abs(d.current)<48))return;let t=d.current>0?1:-1;d.current=0,S(b+t)},t[20]=S,t[21]=b,t[22]=w):w=t[22];let T=w,E=i.title,D,O;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(O=()=>{d.current=0,l(null)},D=e=>{let t=e.relatedTarget;(!(t instanceof Node)||!e.currentTarget.contains(t))&&(d.current=0,l(null))},t[23]=D,t[24]=O):(D=t[23],O=t[24]);let k;t[25]===m?k=t[26]:(k=()=>l(e=>e??m??null),t[25]=m,t[26]=k);let A;if(t[27]!==a||t[28]!==v||t[29]!==h||t[30]!==b||t[31]!==s){let e;t[33]!==a||t[34]!==v||t[35]!==h||t[36]!==b?(e=(e,t)=>{let n=e.id===h,r=Math.abs(t-b);return(0,$.jsx)(`li`,{className:`group relative flex h-3.5 w-full items-center justify-end`,onMouseEnter:()=>l(e.id),onFocus:()=>l(e.id),children:(0,$.jsx)(`button`,{type:`button`,className:C(`flex h-3.5 w-full items-center justify-end rounded-sm pr-1.5`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`),onClick:()=>a(e.messageIndex),"aria-label":`${e.title}: ${e.preview}`,children:(0,$.jsx)(`span`,{className:C(`block h-0.5 rounded-full transition-[width,background-color] duration-150 ease-out`,Jbe({active:n,scrubbing:v,distance:r}),`group-hover:bg-fg`),"aria-hidden":!0})})},e.id)},t[33]=a,t[34]=v,t[35]=h,t[36]=b,t[37]=e):e=t[37],A=s.map(e),t[27]=a,t[28]=v,t[29]=h,t[30]=b,t[31]=s,t[32]=A}else A=t[32];let j;t[38]!==T||t[39]!==k||t[40]!==A?(j=(0,$.jsx)(`div`,{className:`flex h-full min-h-0 w-full flex-col overflow-y-auto overflow-x-hidden`,children:(0,$.jsx)(`ol`,{className:`my-auto flex w-full flex-col items-end py-1`,onMouseEnter:k,onWheel:T,children:A})}),t[38]=T,t[39]=k,t[40]=A,t[41]=j):j=t[41];let M;t[42]!==i||t[43]!==_?(M=_?(0,$.jsx)(Ybe,{turn:_,labels:i}):null,t[42]=i,t[43]=_,t[44]=M):M=t[44];let N;t[45]!==j||t[46]!==M?(N=(0,$.jsxs)(`div`,{className:`relative z-[90] flex h-full min-h-0 justify-end overflow-visible`,children:[j,M]}),t[45]=j,t[46]=M,t[47]=N):N=t[47];let P;return t[48]!==i.title||t[49]!==N?(P=(0,$.jsx)(`aside`,{ref:u,className:`hidden h-full w-12 shrink-0 overflow-visible py-4 xl:block`,"aria-label":E,onMouseLeave:O,onBlur:D,children:N}),t[48]=i.title,t[49]=N,t[50]=P):P=t[50],P}function txe(e){return(e??[]).flatMap(e=>{let t=typeof e.id==`string`?e.id:``,n=typeof e.content==`string`?e.content.trim():``;return t&&n?[{id:t,content:n}]:[]})}function nxe(e){return(e??[]).flatMap(e=>{let t=typeof e.id==`string`?e.id:``,n=typeof e.recordId==`string`?e.recordId:``,r=typeof e.statement==`string`?e.statement.trim():``,i=typeof e.purpose==`string`?e.purpose.trim():``;return t&&n&&r?[{id:t,recordId:n,statement:r,purpose:i}]:[]})}function rxe({sessionKey:e,language:t}){let n=j(t).chat,[r,i]=(0,Z.useState)([]),[a,o]=(0,Z.useState)(!1),[s,c]=(0,Z.useState)(!1),l=r[0];(0,Z.useEffect)(()=>{let t=t=>{let n=t.detail;if(n?.sessionKey!==e)return;let r=nxe(n.requests);r.length&&(i(e=>[...new Map([...e,...r].map(e=>[e.id,e])).values()]),c(!1))};return window.addEventListener(`memory-consent-required`,t),()=>window.removeEventListener(`memory-consent-required`,t)},[e]),(0,Z.useEffect)(()=>{i([]),c(!1)},[e]);let u=(0,Z.useMemo)(()=>l?.purpose.slice(0,140),[l?.purpose]);if(!l)return null;let d=async e=>{o(!0),c(!1);try{await B(z(`/api/you/consents/${encodeURIComponent(l.id)}`),{method:`PATCH`,body:JSON.stringify({decision:e})}),i(e=>e.filter(e=>e.id!==l.id))}catch{c(!0)}finally{o(!1)}};return(0,$.jsx)(`section`,{"aria-label":n.memoryConsentAria,className:`mx-auto mb-2 w-full max-w-[var(--max-width-chat)] rounded-xl border border-accent/25 bg-accent-soft/45 px-3.5 py-3`,children:(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,$.jsx)(`span`,{className:`mt-0.5 grid size-7 shrink-0 place-items-center rounded-lg bg-surface-panel text-accent`,"aria-hidden":!0,children:(0,$.jsx)(Ei,{className:`size-4`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n.memoryConsentTitle}),r.length>1?(0,$.jsx)(`span`,{className:`text-xs text-fg-subtle`,children:r.length}):null]}),(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-5 text-fg`,children:l.statement}),u?(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:n.memoryConsentPurpose.replace(`{{purpose}}`,u)}):null,(0,$.jsxs)(`p`,{className:`mt-1 flex items-center gap-1 text-xs text-fg-subtle`,children:[(0,$.jsx)(Uy,{className:`size-3.5`,"aria-hidden":!0}),n.memoryConsentHint]}),s?(0,$.jsx)(`p`,{role:`alert`,className:`mt-2 text-xs text-danger`,children:n.memoryConsentError}):null,(0,$.jsxs)(`div`,{className:`mt-2.5 flex flex-wrap justify-end gap-1.5`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`h-8 px-2.5`,disabled:a,onClick:()=>void d(`deny`),children:n.memoryConsentDeny}),(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,className:`h-8 px-2.5`,disabled:a,onClick:()=>void d(`once`),children:n.memoryConsentOnce}),(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,className:`h-8 px-2.5`,disabled:a,onClick:()=>void d(`session`),children:n.memoryConsentSession}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`h-8 px-2.5`,disabled:a,onClick:()=>void d(`always`),children:n.memoryConsentAlways})]})]})]})})}function ixe({sessionKey:e,language:t}){let n=j(t).chat,[r,i]=(0,Z.useState)(null),[a,o]=(0,Z.useState)(!1);if((0,Z.useEffect)(()=>{let t=t=>{let n=t.detail;if(n?.sessionKey!==e)return;let r=n.records?.[0],a=typeof r?.id==`string`?r.id:``,o=typeof r?.content==`string`?r.content:``;a&&o&&i({id:a,content:o})};return window.addEventListener(`memory-captured`,t),()=>window.removeEventListener(`memory-captured`,t)},[e]),(0,Z.useEffect)(()=>{if(!r)return;let e=window.setTimeout(()=>i(null),1e4);return()=>window.clearTimeout(e)},[r]),(0,Z.useEffect)(()=>i(null),[e]),!r)return null;let s=async()=>{o(!0);try{await B(z(`/api/you/understandings/${encodeURIComponent(r.id)}`),{method:`DELETE`}),i(null)}finally{o(!1)}};return(0,$.jsxs)(`div`,{role:`status`,className:`mx-auto mb-2 flex w-full max-w-[var(--max-width-chat)] items-center gap-2.5 rounded-xl border border-edge bg-surface-panel px-3.5 py-2.5`,children:[(0,$.jsx)(`span`,{className:`grid size-6 shrink-0 place-items-center rounded-full bg-success-soft text-success`,"aria-hidden":!0,children:(0,$.jsx)(S,{className:`size-3.5`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`p`,{className:`text-xs font-medium text-fg`,children:n.memoryCaptured}),(0,$.jsxs)(`p`,{className:`truncate text-xs text-fg-muted`,children:[r.content,` · `,n.memoryCapturedHint]})]}),(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`h-8 shrink-0 px-2.5`,disabled:a,onClick:()=>void s(),children:n.memoryCapturedUndo})]})}function axe({sessionKey:e,language:t}){let n=j(t).chat,[r,i]=(0,Z.useState)([]),[a,o]=(0,Z.useState)(``),[s,c]=(0,Z.useState)(!1),[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(!1),p=r[0];if((0,Z.useEffect)(()=>{let t=t=>{let n=t.detail;if(n?.sessionKey!==e)return;let r=txe(n.records);r.length&&(i(e=>[...new Map([...e,...r].map(e=>[e.id,e])).values()]),f(!1))};return window.addEventListener(`memory-candidate`,t),()=>window.removeEventListener(`memory-candidate`,t)},[e]),(0,Z.useEffect)(()=>{o(p?.content??``),c(!1),f(!1)},[p?.id,p?.content]),(0,Z.useEffect)(()=>i([]),[e]),!p)return null;let m=()=>i(e=>e.filter(e=>e.id!==p.id)),h=async e=>{u(!0),f(!1);try{await B(z(`/api/you/understandings/${encodeURIComponent(p.id)}`),{method:`PATCH`,body:JSON.stringify({...e?{statement:e}:{},status:`active`})}),m()}catch{f(!0)}finally{u(!1)}},g=async()=>{u(!0),f(!1);try{await B(z(`/api/you/understandings/${encodeURIComponent(p.id)}`),{method:`DELETE`}),m()}catch{f(!0)}finally{u(!1)}};return(0,$.jsx)(`section`,{"aria-label":n.memoryCandidateAria,className:`xopc-memory-candidate mx-auto mb-2 w-full max-w-[var(--max-width-chat)] overflow-hidden rounded-2xl border border-accent/20 bg-surface-panel px-3.5 py-3 shadow-sm`,children:(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,$.jsx)(`span`,{className:`mt-0.5 grid size-8 shrink-0 place-items-center rounded-xl bg-accent-soft text-accent`,"aria-hidden":!0,children:(0,$.jsx)(Ei,{className:`size-4`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n.memoryCandidateTitle}),r.length>1?(0,$.jsx)(`span`,{className:`rounded-full bg-surface-muted px-1.5 text-[11px] text-fg-subtle`,children:r.length}):null]}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:n.memoryCandidateHint}),s?(0,$.jsx)(`textarea`,{autoFocus:!0,value:a,onChange:e=>o(e.target.value),className:`mt-2 min-h-20 w-full resize-none rounded-xl border border-edge bg-surface-muted px-3 py-2 text-sm leading-5 text-fg outline-none transition focus:border-accent/60 focus:ring-2 focus:ring-accent/10`,maxLength:600,"aria-label":n.memoryCandidateEditAria}):(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-5 text-fg`,children:p.content}),d?(0,$.jsx)(`p`,{role:`alert`,className:`mt-2 text-xs text-danger`,children:n.memoryCandidateError}):null,(0,$.jsxs)(`div`,{className:`mt-2.5 flex flex-wrap justify-end gap-1.5`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`h-8 px-2.5`,disabled:l,onClick:()=>void g(),children:n.memoryCandidateOnce}),s?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`h-8 px-2.5`,disabled:l,onClick:()=>c(!1),children:n.memoryCandidateCancel}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`h-8 px-3`,disabled:l||a.trim().length===0,onClick:()=>void h(a.trim()),children:n.memoryCandidateSaveEdit})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(Zw,{type:`button`,variant:`secondary`,className:`h-8 gap-1.5 px-2.5`,disabled:l,onClick:()=>c(!0),children:[(0,$.jsx)(my,{className:`size-3.5`,"aria-hidden":!0}),n.memoryCandidateEdit]}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,className:`h-8 px-3`,disabled:l,onClick:()=>void h(),children:n.memoryCandidateSave})]})]})]})]})})}function oxe(e,t){return e===`running`||e===`queued`?t.runLinkRunning:e===`succeeded`?t.runLinkCompleted:t.runLinkFinished}var sxe=(0,Z.memo)(function(e){let t=(0,Q.c)(29),{link:n,className:r}=e,i=j(I(cxe)).workflows,a=m(),o;t[0]!==n.definitionId||t[1]!==n.goal?(o=n.goal.trim()||n.definitionId,t[0]=n.definitionId,t[1]=n.goal,t[2]=o):o=t[2];let s=o,c;t[3]!==n.ownerAgentId||t[4]!==n.runId||t[5]!==a?(c=()=>a(EQ(n.runId,{ownerAgentId:n.ownerAgentId})),t[3]=n.ownerAgentId,t[4]=n.runId,t[5]=a,t[6]=c):c=t[6];let l;t[7]===r?l=t[8]:(l=C(`flex w-full items-start gap-3 rounded-2xl border border-edge bg-surface-panel px-4 py-3 text-left`,`transition-colors hover:bg-surface-hover/60`,aT.focusRingPanel,r),t[7]=r,t[8]=l);let u;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(`span`,{className:`mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg bg-accent-soft text-accent-fg`,children:(0,$.jsx)(Ep,{className:`size-4`,"aria-hidden":!0})}),t[9]=u):u=t[9];let d=oxe(n.status,i),f;t[10]===d?f=t[11]:(f=(0,$.jsx)(`span`,{className:`block text-xs font-medium uppercase tracking-wide text-fg-subtle`,children:d}),t[10]=d,t[11]=f);let p;t[12]===n.definitionId?p=t[13]:(p=(0,$.jsx)(`span`,{className:`mt-1 block text-sm font-semibold text-fg`,children:n.definitionId}),t[12]=n.definitionId,t[13]=p);let h;t[14]===s?h=t[15]:(h=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-sm text-fg-muted`,children:s}),t[14]=s,t[15]=h);let g;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(Dn,{className:`size-3.5`,"aria-hidden":!0}),t[16]=g):g=t[16];let _;t[17]===i.taskOpenDetails?_=t[18]:(_=(0,$.jsxs)(`span`,{className:`mt-2 inline-flex items-center gap-1 text-xs font-medium text-accent-fg`,children:[i.taskOpenDetails,g]}),t[17]=i.taskOpenDetails,t[18]=_);let v;t[19]!==p||t[20]!==h||t[21]!==_||t[22]!==f?(v=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[f,p,h,_]}),t[19]=p,t[20]=h,t[21]=_,t[22]=f,t[23]=v):v=t[23];let y;return t[24]!==v||t[25]!==c||t[26]!==l||t[27]!==u?(y=(0,$.jsxs)(`button`,{type:`button`,onClick:c,className:l,children:[u,v]}),t[24]=v,t[25]=c,t[26]=l,t[27]=u,t[28]=y):y=t[28],y});function cxe(e){return e.language}async function lxe(){return(await B(z(`/api/workflows/definitions`))).definitions??[]}async function uxe(e,t){return B(z(`/api/workflows/definitions/validate`),{method:`POST`,body:JSON.stringify({name:e,graph:t})})}async function dxe(e){return(await B(z(`/api/workflows/definitions/generate`),{method:`POST`,body:JSON.stringify(e)})).draft}async function fxe(e,t,n,r){let i=r===0;return(await B(z(i?`/api/workflows/definitions`:`/api/workflows/definitions/${encodeURIComponent(e)}`),{method:i?`POST`:`PUT`,body:JSON.stringify({name:e,graph:t,manifest:n,expectedRevision:r})})).definition}async function pxe(e){return(await B(z(`/api/workflows/definitions/${encodeURIComponent(e)}/revisions`))).revisions??[]}async function mxe(e,t,n){return(await B(z(`/api/workflows/definitions/${encodeURIComponent(e)}/revisions/${t}/restore`),{method:`POST`,body:JSON.stringify({expectedRevision:n})})).definition}async function hxe(e){return(await B(z(`/api/workflows/drafts`),{method:`POST`,body:JSON.stringify(e)})).draft}async function gxe(e){await B(z(`/api/workflows/drafts/${encodeURIComponent(e)}`),{method:`DELETE`})}function p9(e,t){let n=t?.ownerAgentId?.trim();n&&e.set(`agentId`,n)}async function _xe(e=50,t){let n=new URLSearchParams({limit:String(e)});p9(n,t);let r=t?.taskId?.trim();r&&n.set(`taskId`,r);let i=t?.projectId?.trim();return i&&n.set(`projectId`,i),(await B(z(`/api/workflows/runs?${n.toString()}`))).runs??[]}async function m9(e,t){let n=new URLSearchParams;p9(n,t);let r=n.size>0?`?${n.toString()}`:``;return(await B(z(`/api/workflows/runs/${encodeURIComponent(e)}${r}`))).view}async function vxe(e,t){let n=new URLSearchParams;p9(n,t);let r=n.size>0?`?${n.toString()}`:``;return(await B(z(`/api/workflows/runs/${encodeURIComponent(e)}/comparison${r}`))).comparison}async function yxe(e,t,n){let r=new URLSearchParams;p9(r,n);let i=r.size>0?`?${r.toString()}`:``,a=await L(z(`/api/workflows/runs/${encodeURIComponent(e)}/artifacts/${encodeURIComponent(t)}${i}`),{headers:{Accept:`*/*`}});if(!a.ok){let e=await a.json().catch(()=>({})),t=typeof e.error==`string`?e.error:e.error?.message;throw Error(N(a.status,a.statusText,t))}return a.blob()}async function bxe(e){return B(z(`/api/workflows/runs`),{method:`POST`,body:JSON.stringify(e)})}async function h9(e,t){let n=new URLSearchParams;p9(n,t);let r=n.size>0?`?${n.toString()}`:``;await B(z(`/api/workflows/runs/${encodeURIComponent(e)}/cancel${r}`),{method:`POST`})}async function xxe(e,t){let n=new URLSearchParams;p9(n,t);let r=n.size>0?`?${n.toString()}`:``,i=t?.projectId?.trim();return B(z(`/api/workflows/runs/${encodeURIComponent(e)}/retry${r}`),{method:`POST`,body:JSON.stringify(i?{projectId:i}:{})})}async function Sxe(e,t,n){let r=new URLSearchParams;p9(r,n);let i=r.size>0?`?${r.toString()}`:``;return B(z(`/api/workflows/runs/${encodeURIComponent(e)}/replay${i}`),{method:`POST`,body:JSON.stringify({scope:t})})}function Cxe(e,t){let n=Number.parseInt(e,10);return Number.isFinite(n)?n:t+1}function g9(e){let t=new Map(e.phases.map(e=>[e.id,e.title])),n=e.phases.find(e=>e.status===`running`),r=e.agents.map((e,n)=>({id:Cxe(e.id,n),label:e.label,phase:e.phaseId?t.get(e.phaseId):void 0,prompt:e.prompt??``,invocation:e.invocation,sessionKey:e.sessionKey,transcriptMessageCount:e.transcriptMessageCount,status:e.status,resultPreview:e.resultPreview,error:e.error,startedAtMs:e.startedAtMs,durationMs:e.startedAtMs!=null&&e.completedAtMs!=null?e.completedAtMs-e.startedAtMs:void 0,currentStep:e.currentStep,steps:e.steps?.map(e=>({id:e.id,kind:e.kind,toolName:e.toolName,label:e.label,detail:e.detail,status:e.status,resultPreview:e.resultPreview,error:e.error,startedAtMs:e.startedAtMs,durationMs:e.startedAtMs!=null&&e.completedAtMs!=null?e.completedAtMs-e.startedAtMs:void 0}))})),{metrics:i}=e.run;return{runId:e.run.id,name:e.run.definitionId,description:e.run.goal||e.run.title,phases:e.phases.map(e=>e.title),currentPhase:n?.title,logs:e.logs.map(e=>e.message),agents:r,agentCount:i.agentCount,runningCount:Math.max(0,i.agentCount-i.doneAgentCount-i.errorAgentCount-i.skippedAgentCount),doneCount:i.doneAgentCount,errorCount:i.errorAgentCount,skippedCount:i.skippedAgentCount,durationMs:i.durationMs,result:e.run.result}}function _9(e){return e===`succeeded`?`border-emerald-500/30 text-emerald-700 dark:text-emerald-300`:e===`failed`||e===`timeout`?`border-destructive/40 text-destructive`:e===`cancelled`?`border-warning/40 text-warning`:`border-accent/40 text-accent`}var wxe=(0,Z.memo)(function(e){let t=(0,Q.c)(241),{view:n,onAbortCurrentTurn:r}=e,i=w1(I(Txe)),a=i.live,o;t[0]===n?o=t[1]:(o=g9(n),t[0]=n,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c=XX(s),t[2]=s,t[3]=c);let l=c,u;t[4]===n.run.status?u=t[5]:(u=pQ.has(n.run.status),t[4]=n.run.status,t[5]=u);let d=u,[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(`overview`),[g,_]=(0,Z.useState)(null),[,v]=(0,Z.useState)(0),b;t[6]!==d||t[7]!==v?(b=()=>{if(!d)return;let e=window.setInterval(()=>v(Exe),1e3);return()=>window.clearInterval(e)},t[6]=d,t[7]=v,t[8]=b):b=t[8];let x;t[9]===d?x=t[10]:(x=[d],t[9]=d,t[10]=x),(0,Z.useEffect)(b,x);let S=d&&n.run.startedAtMs?Date.now()-n.run.startedAtMs:n.run.metrics.durationMs??s.durationMs??0,w;t[11]===S?w=t[12]:(w=S?QX(S):``,t[11]=S,t[12]=w);let T=w,E=a.progress(s.doneCount,s.agentCount),D=s.currentPhase||a.activeFallback,O;t[13]!==n.run.definitionId||t[14]!==n.run.goal||t[15]!==n.run.title?(O=n.run.goal.trim()||n.run.title||n.run.definitionId,t[13]=n.run.definitionId,t[14]=n.run.goal,t[15]=n.run.title,t[16]=O):O=t[16];let k=O,A=n.run.metadata?.agentId,j,M,N,P,F,L,R,z,B,V,H,U,W,G,K,ee;if(t[17]!==m||t[18]!==D||t[19]!==f||t[20]!==T||t[21]!==d||t[22]!==i||t[23]!==a.agents||t[24]!==a.close||t[25]!==a.currentState||t[26]!==a.details||t[27]!==a.elapsed||t[28]!==a.logs||t[29]!==a.openRun||t[30]!==a.overview||t[31]!==a.result||t[32]!==a.runId||t[33]!==a.status||t[34]!==a.stop||t[35]!==a.title||t[36]!==r||t[37]!==A||t[38]!==E||t[39]!==l||t[40]!==g||t[41]!==h||t[42]!==p||t[43]!==_||t[44]!==s||t[45]!==k||t[46]!==n.logs||t[47]!==n.run.error||t[48]!==n.run.id||t[49]!==n.run.status){let e=n.logs.map(Dxe).filter(Boolean),o;t[66]!==d||t[67]!==r||t[68]!==A||t[69]!==n.run.id?(o=()=>{d&&h9(n.run.id,{ownerAgentId:A}).catch(Oxe),r?.()},t[66]=d,t[67]=r,t[68]=A,t[69]=n.run.id,t[70]=o):o=t[70],P=o;let c;t[71]===a.overview?c=t[72]:(c={id:`overview`,label:a.overview},t[71]=a.overview,t[72]=c);let u;t[73]===a.agents?u=t[74]:(u={id:`agents`,label:a.agents},t[73]=a.agents,t[74]=u);let v;t[75]===a.logs?v=t[76]:(v={id:`logs`,label:a.logs},t[75]=a.logs,t[76]=v);let b;t[77]===a.result?b=t[78]:(b={id:`result`,label:a.result},t[77]=a.result,t[78]=b);let x;t[79]!==c||t[80]!==u||t[81]!==v||t[82]!==b?(x=[c,u,v,b],t[79]=c,t[80]=u,t[81]=v,t[82]=b,t[83]=x):x=t[83];let S=x;W=`mb-6`;let w;t[84]===p?w=t[85]:(w=()=>p(!0),t[84]=p,t[85]=w);let O;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(Ep,{className:`size-4`,"aria-hidden":!0}),t[86]=O):O=t[86];let I;t[87]===d?I=t[88]:(I=d?(0,$.jsx)(`span`,{className:`absolute -right-0.5 -top-0.5 size-2.5 rounded-full border-2 border-surface-panel bg-accent motion-safe:animate-pulse`}):null,t[87]=d,t[88]=I);let q;t[89]===I?q=t[90]:(q=(0,$.jsxs)(`span`,{className:`relative flex size-8 shrink-0 items-center justify-center rounded-full bg-accent-soft text-accent-fg`,children:[O,I]}),t[89]=I,t[90]=q);let te=a.status[n.run.status],ne;t[91]===te?ne=t[92]:(ne=(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:te}),t[91]=te,t[92]=ne);let re;t[93]===n.run.status?re=t[94]:(re=C(`rounded-full border px-1.5 py-0.5`,_9(n.run.status)),t[93]=n.run.status,t[94]=re);let ie;t[95]!==E||t[96]!==re?(ie=(0,$.jsx)(`span`,{className:re,children:E}),t[95]=E,t[96]=re,t[97]=ie):ie=t[97];let ae;t[98]===D?ae=t[99]:(ae=(0,$.jsx)(`span`,{className:`truncate`,children:D}),t[98]=D,t[99]=ae);let oe;t[100]!==T||t[101]!==a.elapsed?(oe=T?(0,$.jsxs)(`span`,{children:[a.elapsed,`: `,(0,$.jsx)(`span`,{className:`text-fg`,children:T})]}):null,t[100]=T,t[101]=a.elapsed,t[102]=oe):oe=t[102];let se;t[103]!==ne||t[104]!==ie||t[105]!==ae||t[106]!==oe?(se=(0,$.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-fg-muted`,children:[ne,ie,ae,oe]}),t[103]=ne,t[104]=ie,t[105]=ae,t[106]=oe,t[107]=se):se=t[107];let J;t[108]===k?J=t[109]:(J=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-sm font-medium leading-tight text-fg`,children:k}),t[108]=k,t[109]=J);let ce;t[110]!==se||t[111]!==J?(ce=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[se,J]}),t[110]=se,t[111]=J,t[112]=ce):ce=t[112];let le;t[113]!==w||t[114]!==q||t[115]!==ce?(le=(0,$.jsxs)(`button`,{type:`button`,className:`flex min-w-0 flex-1 items-center gap-2 rounded-lg text-left outline-none hover:bg-surface-hover/70 focus-visible:ring-2 focus-visible:ring-accent`,onClick:w,children:[q,ce]}),t[113]=w,t[114]=q,t[115]=ce,t[116]=le):le=t[116];let ue;t[117]!==P||t[118]!==d||t[119]!==a.stop?(ue=d?(0,$.jsxs)(Zw,{type:`button`,variant:`ghost`,className:`hidden h-8 px-2 text-xs sm:inline-flex`,onClick:P,children:[(0,$.jsx)(_s,{className:`size-3.5`,"aria-hidden":!0}),a.stop]}):null,t[117]=P,t[118]=d,t[119]=a.stop,t[120]=ue):ue=t[120];let de;t[121]===p?de=t[122]:(de=()=>p(!0),t[121]=p,t[122]=de);let fe;t[123]!==a.details||t[124]!==de?(fe=(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,className:`h-8 px-2.5 text-xs`,onClick:de,children:a.details}),t[123]=a.details,t[124]=de,t[125]=fe):fe=t[125];let pe;t[126]!==ue||t[127]!==fe?(pe=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[ue,fe]}),t[126]=ue,t[127]=fe,t[128]=pe):pe=t[128],t[129]!==le||t[130]!==pe?(G=(0,$.jsxs)(`div`,{className:`flex min-h-12 items-center gap-2 rounded-xl border border-edge bg-surface-panel px-2.5 py-2 shadow-surface sm:px-3`,children:[le,pe]}),t[129]=le,t[130]=pe,t[131]=G):G=t[131],N=LD,H=f,U=p,M=UD,t[132]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(GD,{className:`xopc-dialog-overlay fixed inset-0 z-[120] bg-scrim backdrop-blur-[1px]`}),t[132]=V):V=t[132],j=YD,R=`fixed left-1/2 top-1/2 z-[121] flex h-[min(84vh,44rem)] w-[min(100vw-2rem,54rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`;let me;t[133]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,$.jsx)(Ep,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),t[133]=me):me=t[133];let he;t[134]===a.title?he=t[135]:(he=(0,$.jsx)(eO,{className:`truncate text-sm font-semibold text-fg`,children:a.title}),t[134]=a.title,t[135]=he);let ge;t[136]===n.run.status?ge=t[137]:(ge=C(`rounded-full border px-1.5 py-0.5 text-[10px]`,_9(n.run.status)),t[136]=n.run.status,t[137]=ge);let _e=a.status[n.run.status],ve;t[138]!==ge||t[139]!==_e?(ve=(0,$.jsx)(`span`,{className:ge,children:_e}),t[138]=ge,t[139]=_e,t[140]=ve):ve=t[140];let ye;t[141]!==he||t[142]!==ve?(ye=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[me,he,ve]}),t[141]=he,t[142]=ve,t[143]=ye):ye=t[143];let be;t[144]===k?be=t[145]:(be=(0,$.jsx)(nO,{className:`mt-1 line-clamp-2 text-xs text-fg-muted`,children:k}),t[144]=k,t[145]=be);let xe;t[146]!==ye||t[147]!==be?(xe=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[ye,be]}),t[146]=ye,t[147]=be,t[148]=xe):xe=t[148];let Se;t[149]!==A||t[150]!==n.run.id?(Se=EQ(n.run.id,{ownerAgentId:A}),t[149]=A,t[150]=n.run.id,t[151]=Se):Se=t[151];let Ce;t[152]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,$.jsx)(Iu,{className:`size-3.5`,"aria-hidden":!0}),t[152]=Ce):Ce=t[152];let we;t[153]!==a.openRun||t[154]!==Se?(we=(0,$.jsx)(Zw,{asChild:!0,type:`button`,variant:`ghost`,className:`h-8 px-2 text-xs`,children:(0,$.jsxs)(y,{to:Se,children:[Ce,a.openRun]})}),t[153]=a.openRun,t[154]=Se,t[155]=we):we=t[155];let Te;t[156]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,$.jsx)(Aw,{className:`size-4`,"aria-hidden":!0}),t[156]=Te):Te=t[156];let Ee;t[157]===a.close?Ee=t[158]:(Ee=(0,$.jsx)(iO,{asChild:!0,children:(0,$.jsx)(Zw,{type:`button`,variant:`ghost`,className:`size-8 p-0`,"aria-label":a.close,children:Te})}),t[157]=a.close,t[158]=Ee);let De;t[159]!==we||t[160]!==Ee?(De=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[we,Ee]}),t[159]=we,t[160]=Ee,t[161]=De):De=t[161],t[162]!==xe||t[163]!==De?(z=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-3 border-b border-edge px-4 py-3`,children:[xe,De]}),t[162]=xe,t[163]=De,t[164]=z):z=t[164];let Oe=a.title,ke;t[165]!==m||t[166]!==h||t[167]!==S?(ke=S.map(e=>(0,$.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":m===e.id,className:C(`rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,m===e.id?`bg-surface-hover text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`),onClick:()=>h(e.id),children:e.label},e.id)),t[165]=m,t[166]=h,t[167]=S,t[168]=ke):ke=t[168],t[169]!==a.title||t[170]!==ke?(B=(0,$.jsx)(`div`,{className:`flex shrink-0 gap-1 border-b border-edge px-4 py-2`,role:`tablist`,"aria-label":Oe,children:ke}),t[169]=a.title,t[170]=ke,t[171]=B):B=t[171],K=`min-h-0 flex-1 overflow-y-auto px-4 py-3`,t[172]!==m||t[173]!==D||t[174]!==T||t[175]!==a.currentState||t[176]!==a.elapsed||t[177]!==a.runId||t[178]!==a.status||t[179]!==E||t[180]!==n.run.error||t[181]!==n.run.id||t[182]!==n.run.status?(ee=m===`overview`?(0,$.jsxs)(`div`,{className:`grid gap-3`,children:[(0,$.jsxs)(`section`,{className:`rounded-lg border border-edge bg-surface-base p-3`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-sm font-semibold text-fg`,children:[(0,$.jsx)(Ag,{className:`size-4 text-accent`,"aria-hidden":!0}),a.currentState]}),(0,$.jsxs)(`div`,{className:`grid gap-2 text-sm text-fg-muted sm:grid-cols-2`,children:[(0,$.jsxs)(`p`,{children:[(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:a.status[n.run.status]}),(0,$.jsx)(`span`,{className:`mx-1 text-fg-subtle`,children:`·`}),D]}),(0,$.jsx)(`p`,{children:E}),T?(0,$.jsxs)(`p`,{children:[a.elapsed,`: `,(0,$.jsx)(`span`,{className:`text-fg`,children:T})]}):null,(0,$.jsxs)(`p`,{className:`break-all`,children:[a.runId,`: `,(0,$.jsx)(`span`,{className:`font-mono text-xs`,children:n.run.id})]})]})]}),n.run.error?.message?(0,$.jsx)(`p`,{className:`rounded-lg border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive`,children:n.run.error.message}):null]}):null,t[172]=m,t[173]=D,t[174]=T,t[175]=a.currentState,t[176]=a.elapsed,t[177]=a.runId,t[178]=a.status,t[179]=E,t[180]=n.run.error,t[181]=n.run.id,t[182]=n.run.status,t[183]=ee):ee=t[183],t[184]!==m||t[185]!==i||t[186]!==l||t[187]!==g||t[188]!==_||t[189]!==s?(F=m===`agents`?(0,$.jsxs)(`div`,{className:`grid gap-3 lg:grid-cols-[minmax(0,1fr)_minmax(18rem,24rem)]`,children:[(0,$.jsx)(EZ,{rollup:l,currentPhase:s.currentPhase,labels:i.phase,recentLogs:[],recentLogsHeading:i.recentLogsHeading,showAllLogsLabel:i.showAllLogs,logsExpanded:!1,onToggleLogs:kxe,selectedAgentId:g?.id,onSelectAgent:_}),(0,$.jsx)(iZ,{agent:g,snapshot:s,labels:i.checkDetail,onClose:()=>_(null)})]}):null,t[184]=m,t[185]=i,t[186]=l,t[187]=g,t[188]=_,t[189]=s,t[190]=F):F=t[190],L=m===`logs`?(0,$.jsxs)(`section`,{className:`rounded-lg border border-edge bg-surface-base p-3`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-sm font-semibold text-fg`,children:[(0,$.jsx)(Py,{className:`size-4 text-accent`,"aria-hidden":!0}),a.logs]}),e.length?(0,$.jsx)(`div`,{className:`space-y-1`,children:e.map(Axe)}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:i.error.noExtraDetails})]}):null,t[17]=m,t[18]=D,t[19]=f,t[20]=T,t[21]=d,t[22]=i,t[23]=a.agents,t[24]=a.close,t[25]=a.currentState,t[26]=a.details,t[27]=a.elapsed,t[28]=a.logs,t[29]=a.openRun,t[30]=a.overview,t[31]=a.result,t[32]=a.runId,t[33]=a.status,t[34]=a.stop,t[35]=a.title,t[36]=r,t[37]=A,t[38]=E,t[39]=l,t[40]=g,t[41]=h,t[42]=p,t[43]=_,t[44]=s,t[45]=k,t[46]=n.logs,t[47]=n.run.error,t[48]=n.run.id,t[49]=n.run.status,t[50]=j,t[51]=M,t[52]=N,t[53]=P,t[54]=F,t[55]=L,t[56]=R,t[57]=z,t[58]=B,t[59]=V,t[60]=H,t[61]=U,t[62]=W,t[63]=G,t[64]=K,t[65]=ee}else j=t[50],M=t[51],N=t[52],P=t[53],F=t[54],L=t[55],R=t[56],z=t[57],B=t[58],V=t[59],H=t[60],U=t[61],W=t[62],G=t[63],K=t[64],ee=t[65];let q;t[191]!==m||t[192]!==i||t[193]!==a.noResult||t[194]!==n.run.result?(q=m===`result`?SQ(n.run.result)?(0,$.jsx)(kZ,{result:n.run.result,labels:i.result}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:a.noResult}):null,t[191]=m,t[192]=i,t[193]=a.noResult,t[194]=n.run.result,t[195]=q):q=t[195];let te;t[196]!==F||t[197]!==L||t[198]!==q||t[199]!==K||t[200]!==ee?(te=(0,$.jsxs)(`div`,{className:K,children:[ee,F,L,q]}),t[196]=F,t[197]=L,t[198]=q,t[199]=K,t[200]=ee,t[201]=te):te=t[201];let ne;t[202]===n.run.definitionId?ne=t[203]:(ne=(0,$.jsx)(`span`,{className:`text-xs text-fg-muted`,children:n.run.definitionId}),t[202]=n.run.definitionId,t[203]=ne);let re;t[204]!==P||t[205]!==d||t[206]!==a.stop?(re=d?(0,$.jsxs)(Zw,{type:`button`,variant:`secondary`,className:`h-8 text-xs`,onClick:P,children:[(0,$.jsx)(_s,{className:`size-3.5`,"aria-hidden":!0}),a.stop]}):null,t[204]=P,t[205]=d,t[206]=a.stop,t[207]=re):re=t[207];let ie;t[208]!==A||t[209]!==n.run.id?(ie=EQ(n.run.id,{ownerAgentId:A}),t[208]=A,t[209]=n.run.id,t[210]=ie):ie=t[210];let ae;t[211]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,$.jsx)(Iu,{className:`size-3.5`,"aria-hidden":!0}),t[211]=ae):ae=t[211];let oe;t[212]!==a.openRun||t[213]!==ie?(oe=(0,$.jsx)(Zw,{asChild:!0,type:`button`,variant:`primary`,className:`h-8 text-xs`,children:(0,$.jsxs)(y,{to:ie,children:[ae,a.openRun]})}),t[212]=a.openRun,t[213]=ie,t[214]=oe):oe=t[214];let se;t[215]!==re||t[216]!==oe?(se=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[re,oe]}),t[215]=re,t[216]=oe,t[217]=se):se=t[217];let J;t[218]!==ne||t[219]!==se?(J=(0,$.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center justify-between gap-2 border-t border-edge px-4 py-3`,children:[ne,se]}),t[218]=ne,t[219]=se,t[220]=J):J=t[220];let ce;t[221]!==j||t[222]!==R||t[223]!==z||t[224]!==B||t[225]!==te||t[226]!==J?(ce=(0,$.jsxs)(j,{className:R,children:[z,B,te,J]}),t[221]=j,t[222]=R,t[223]=z,t[224]=B,t[225]=te,t[226]=J,t[227]=ce):ce=t[227];let le;t[228]!==M||t[229]!==V||t[230]!==ce?(le=(0,$.jsxs)(M,{children:[V,ce]}),t[228]=M,t[229]=V,t[230]=ce,t[231]=le):le=t[231];let ue;t[232]!==N||t[233]!==H||t[234]!==U||t[235]!==le?(ue=(0,$.jsx)(N,{open:H,onOpenChange:U,children:le}),t[232]=N,t[233]=H,t[234]=U,t[235]=le,t[236]=ue):ue=t[236];let de;return t[237]!==W||t[238]!==G||t[239]!==ue?(de=(0,$.jsxs)(`div`,{className:W,children:[G,ue]}),t[237]=W,t[238]=G,t[239]=ue,t[240]=de):de=t[240],de});function Txe(e){return e.language}function Exe(e){return e+1}function Dxe(e){return e.message}function Oxe(){}function kxe(){}function Axe(e,t){return(0,$.jsx)(`p`,{className:`break-words font-mono text-xs leading-5 text-fg-muted`,children:e},`${t}:${e}`)}function jxe(e,t){return e.kind??e.projectKind??t??`general`}function Mxe(e){return e.effectiveWorkspaceRoot||e.workspaceRoot||void 0}async function v9(e){return(await zL({workspaceRoot:e})).inference.kind===`coding`?{kind:`codingWorkspace`,path:e}:{kind:`workingDirectory`,path:e}}function y9({attempt:e,enabled:t,sessionKey:n,sourceNoteId:r,sourceNoteTitle:i,sourceContextPending:a,sourceContextFailed:o,effectiveWorkspacePath:s,workingDirectoryLocked:c}){return t?a?`pending:${n??``}`:r?`note:${r}:${i?.trim()??``}`:c&&s?.trim()?`workspace:${n??``}:${s.trim()}`:n?`session:${n}:attempt:${e}:failed:${o?`1`:`0`}`:`empty`:`disabled`}function b9(e){let t=y9(e);if(!e.enabled)return{key:t,context:{kind:`empty`},status:`ready`};if(e.sourceContextPending)return{key:t,context:{kind:`empty`},status:`loading`};if(e.sourceNoteId)return{key:t,context:{kind:`note`,noteId:e.sourceNoteId,title:e.sourceNoteTitle?.trim()||`Untitled note`},status:`ready`};let n=e.effectiveWorkspacePath?.trim();return e.workingDirectoryLocked&&n?{key:t,context:{kind:`workingDirectory`,path:n},status:e.sourceContextFailed?`degraded`:`ready`}:e.sessionKey?{key:t,context:{kind:`empty`},status:`loading`}:{key:t,context:{kind:`empty`},status:`ready`}}function Nxe({enabled:e,sessionKey:t,sourceNoteId:n,sourceNoteTitle:r,sourceContextPending:i=!1,sourceContextFailed:a=!1,effectiveWorkspacePath:o,workingDirectoryLocked:s=!1,sessionManager:c}){let[l,u]=(0,Z.useState)(0),d={attempt:l,enabled:e,sessionKey:t,sourceNoteId:n,sourceNoteTitle:r,sourceContextPending:i,sourceContextFailed:a,effectiveWorkspacePath:o,workingDirectoryLocked:s,sessionManager:c},f=y9(d),[p,m]=(0,Z.useState)(()=>b9(d)),h=(0,Z.useCallback)(()=>u(e=>e+1),[]);(0,Z.useEffect)(()=>{let l=!1;if(!e){m({key:f,context:{kind:`empty`},status:`ready`});return}if(i){m({key:f,context:{kind:`empty`},status:`loading`});return}if(n){m({key:f,context:{kind:`note`,noteId:n,title:r?.trim()||`Untitled note`},status:`ready`});return}let u=s?o?.trim():void 0;if(u)return m({key:f,context:{kind:`workingDirectory`,path:u},status:a?`degraded`:`ready`}),(async()=>{try{let e=await v9(u);l||m({key:f,context:e,status:a?`degraded`:`ready`})}catch{l||m({key:f,context:{kind:`workingDirectory`,path:u},status:`degraded`})}})(),()=>{l=!0};if(!t){m({key:f,context:{kind:`empty`},status:`ready`});return}return m({key:f,context:{kind:`empty`},status:`loading`}),(async()=>{let e=a,n=null;try{n=(await CR(t)).projectId?.trim()||null}catch{e=!0}if(n)try{let t=await FL(n),r=t.kind??t.projectKind??null;if(!r)try{r=(await zL({name:t.name,description:t.description,workspaceRoot:t.effectiveWorkspaceRoot??t.workspaceRoot})).inference.kind}catch{e=!0,r=`general`}if(l)return;m({key:f,context:jxe(t,r)===`coding`?{kind:`codingProject`,projectId:n,projectName:t.name,workspaceRoot:Mxe(t)}:{kind:`generalProject`,projectId:n,projectName:t.name},status:e?`degraded`:`ready`});return}catch{e=!0}try{let n=await c.loadSessionAgentConfig(t),r=n.workingDirectoryLocked?n.effectiveWorkspacePath.trim():``;if(l)return;if(r){let t={kind:`workingDirectory`,path:r};try{t=await v9(r)}catch{e=!0}if(l)return;m({key:f,context:t,status:e?`degraded`:`ready`});return}}catch{e=!0}l||m({key:f,context:{kind:`empty`},status:e?`degraded`:`ready`})})(),()=>{l=!0}},[l,f,e,t,c,a,i,o,s,n,r]);let g=p.key===f?p:b9(d);return{context:g.context,status:g.status,retry:h}}var x9=`xopc:chat-welcome-suggestion-metrics:v1`,Pxe=`xopc:welcome-suggestion-metric`,Fxe=64;function S9(){try{let e=globalThis.localStorage?.getItem(x9);if(!e)return{};let t=JSON.parse(e);if(!t||typeof t!=`object`||Array.isArray(t))return{};let n={};for(let[e,r]of Object.entries(t)){if(!r||typeof r!=`object`||Array.isArray(r))continue;let t=r;n[e]={impressions:Number.isFinite(t.impressions)?Number(t.impressions):0,picks:Number.isFinite(t.picks)?Number(t.picks):0,sends:Number.isFinite(t.sends)?Number(t.sends):0,lastUsedAt:Number.isFinite(t.lastUsedAt)?Number(t.lastUsedAt):0}}return n}catch{return{}}}function Ixe(e){try{let t=Object.entries(e).sort(([,e],[,t])=>t.lastUsedAt-e.lastUsedAt).slice(0,Fxe);globalThis.localStorage?.setItem(x9,JSON.stringify(Object.fromEntries(t)))}catch{}}function C9(){let e=S9();return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Math.min(35,t.picks*4+t.sends*8)]))}function w9(e){let t=e.suggestionId.trim();if(!t)return;let n=S9(),r=n[t]??{impressions:0,picks:0,sends:0,lastUsedAt:0};n[t]={impressions:r.impressions+ +(e.type===`impression`),picks:r.picks+ +(e.type===`pick`),sends:r.sends+ +(e.type===`send`),lastUsedAt:Date.now()},Ixe(n),typeof window<`u`&&window.dispatchEvent(new CustomEvent(Pxe,{detail:e}))}var T9={list:e=>{let t=new URLSearchParams;e?.projectId&&t.set(`projectId`,e.projectId);let n=t.toString();return B(z(`/api/automations${n?`?${n}`:``}`))},metrics:()=>B(z(`/api/automations/metrics`)),draft:e=>B(z(`/api/automations/draft`),{method:`POST`,body:JSON.stringify(e)}),simulate:e=>B(z(`/api/automations/simulate`),{method:`POST`,body:JSON.stringify(e)}),create:e=>B(z(`/api/automations`),{method:`POST`,body:JSON.stringify(e)}),update:(e,t)=>B(z(`/api/automations/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)}),remove:e=>B(z(`/api/automations/${encodeURIComponent(e)}`),{method:`DELETE`}),runNow:e=>B(z(`/api/automations/${encodeURIComponent(e)}/run`),{method:`POST`}),pause:e=>B(z(`/api/automations/${encodeURIComponent(e)}/pause`),{method:`POST`}),resume:e=>B(z(`/api/automations/${encodeURIComponent(e)}/resume`),{method:`POST`}),runs:(e=50,t,n)=>{let r=new URLSearchParams({limit:String(e)});return t&&r.set(`automationId`,t),!t&&n?.projectId&&r.set(`projectId`,n.projectId),B(z(`/api/automation-runs?${r.toString()}`))},productEventRuns:e=>{let t=new URLSearchParams({eventType:e.eventType,limit:String(e.limit??5)});return e.source&&t.set(`source`,e.source),e.payloadKey&&t.set(`payloadKey`,e.payloadKey),e.payloadValue!==void 0&&t.set(`payloadValue`,e.payloadValue),B(z(`/api/automation-runs/product-events?${t.toString()}`))},runEvents:e=>B(z(`/api/automation-runs/${encodeURIComponent(e)}/events`)),rerun:e=>B(z(`/api/automation-runs/${encodeURIComponent(e)}/rerun`),{method:`POST`}),repairDraft:(e,t)=>B(z(`/api/automation-runs/${encodeURIComponent(e)}/repair-draft`),{method:`POST`,body:JSON.stringify(t)}),cancelRun:e=>B(z(`/api/automation-runs/${encodeURIComponent(e)}/cancel`),{method:`POST`})};function E9(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,String(n)),e)}function Lxe(e,t){if(!e.enabled||e.trigger.kind!==`event`||e.trigger.eventType!==t.eventType||e.trigger.source&&e.trigger.source!==t.source)return!1;let n=e.trigger.payloadMatch;if(!n)return!0;let r=t.eventPayload??{};return Object.entries(n).every(([e,t])=>Object.is(r[e],t))}function Rxe(e,t){let n=e.trigger,r=t.explain;return n.kind===`event`?[D9(n.eventType,n.source,t),O9(n.payloadMatch,t),A9(e.safety,t),k9(e.action,t)]:[r.triggerMatched,k9(e.action,t)]}function zxe(e,t,n){let r=e.triggerSnapshot,i=Vxe(t),a=n.explain;return r.kind===`event`?[i?D9(i.type,i.source,n):D9(r.eventType,r.source,n),O9(r.payloadMatch,n),A9(Bxe(t),n),k9(e.actionSnapshot,n)]:r.kind===`manual`?[a.manual,k9(e.actionSnapshot,n)]:r.kind===`webhook`?[a.webhook,k9(e.actionSnapshot,n)]:[a.schedule,k9(e.actionSnapshot,n)]}function D9(e,t,n){let r=n.explain;return t?E9(r.eventFrom,{eventType:e,source:t}):E9(r.event,{eventType:e})}function O9(e,t){if(!e||Object.keys(e).length===0)return t.explain.noPayloadFilter;let n=Object.entries(e).slice(0,3).map(([e,t])=>`${e}=${String(t)}`).join(`, `);return E9(t.explain.payloadMatched,{pairs:n})}function k9(e,t){return e.kind===`workflow`?E9(t.explain.actionWorkflow,{workflowId:e.workflowId}):e.kind===`browser_recipe`?`Runs browser automation ${e.recipeId}.`:t.explain.actionAgent}function A9(e,t){let n=e?.mode??`auto_apply`;return E9(t.explain.safetyMode,{mode:t.safety[n]})}function Bxe(e){if(!e.data||typeof e.data!=`object`||Array.isArray(e.data))return;let t=e.data.safety;if(!t||typeof t!=`object`||Array.isArray(t))return;let n=t.mode;return n===`suggest_only`||n===`ask_before_apply`||n===`auto_apply`?{mode:n}:void 0}function Vxe(e){if(!e.data||typeof e.data!=`object`||Array.isArray(e.data))return null;let t=e.data.event;if(!t||typeof t!=`object`||Array.isArray(t))return null;let n=t;return typeof n.type!=`string`||!n.type.trim()?null:{type:n.type,source:typeof n.source==`string`?n.source:void 0}}function Hxe(e){return e===`succeeded`?`border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:e===`failed`||e===`timeout`?`border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300`:e===`cancelled`?`border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300`:`border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300`}function Uxe(e,t){return new Date(e).toLocaleString(t,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}function Wxe(e){return e.some(e=>[`queued`,`running`,`cancelling`].includes(e.run.status))}function j9(e){return e===`failed`||e===`timeout`||e===`cancelled`}function Gxe(e){let t=new Map;for(let{run:n}of e){let e=t.get(n.automationId),r=!e||n.createdAtMs>e.latest.createdAtMs?n:e.latest;t.set(n.automationId,{latest:r,hadAttention:!!e?.hadAttention||j9(n.status)})}let n={total:t.size,succeeded:0,active:0,attention:0,recovered:0};for(let{latest:e,hadAttention:r}of t.values())e.status===`succeeded`&&(n.succeeded+=1),e.status===`succeeded`&&r&&(n.recovered+=1),(e.status===`queued`||e.status===`running`||e.status===`cancelling`)&&(n.active+=1),j9(e.status)&&(n.attention+=1,n.latestAttentionRun??=e);return n}function Kxe(e){let t=new Map;for(let{run:n}of e){let e=t.get(n.automationId);(!e||n.createdAtMs>e.createdAtMs)&&t.set(n.automationId,n)}return t}function M9(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,String(n)),e)}function qxe(e){let t=(0,Q.c)(47),{health:n,labels:r,primaryRepairBusy:i,onPrimaryRepair:a}=e,o=n.attention>0,s=n.active>0,c=n.recovered>0,l;t[0]!==s||t[1]!==c||t[2]!==n.active||t[3]!==n.attention||t[4]!==n.latestAttentionRun?.automationName||t[5]!==n.recovered||t[6]!==n.succeeded||t[7]!==n.total||t[8]!==r.feedback.summaryHealthy||t[9]!==r.feedback.summaryNeedsAttention||t[10]!==r.feedback.summaryRecovered||t[11]!==r.feedback.summaryRunning||t[12]!==r.feedback.thisAutomation||t[13]!==o?(l=o?M9(r.feedback.summaryNeedsAttention,{total:n.total,attention:n.attention,name:n.latestAttentionRun?.automationName??r.feedback.thisAutomation}):s?M9(r.feedback.summaryRunning,{total:n.total,active:n.active}):c?M9(r.feedback.summaryRecovered,{total:n.total,recovered:n.recovered,succeeded:n.succeeded}):M9(r.feedback.summaryHealthy,{total:n.total,succeeded:n.succeeded}),t[0]=s,t[1]=c,t[2]=n.active,t[3]=n.attention,t[4]=n.latestAttentionRun?.automationName,t[5]=n.recovered,t[6]=n.succeeded,t[7]=n.total,t[8]=r.feedback.summaryHealthy,t[9]=r.feedback.summaryNeedsAttention,t[10]=r.feedback.summaryRecovered,t[11]=r.feedback.summaryRunning,t[12]=r.feedback.thisAutomation,t[13]=o,t[14]=l):l=t[14];let u=l,d=o?`text-amber-800 dark:text-amber-200`:`text-fg-muted`,f;t[15]===d?f=t[16]:(f=C(`break-words text-xs leading-5`,d),t[15]=d,t[16]=f);let p;t[17]!==u||t[18]!==f?(p=(0,$.jsx)(`p`,{className:f,children:u}),t[17]=u,t[18]=f,t[19]=p):p=t[19];let m;t[20]!==n.succeeded||t[21]!==r.feedback.succeededCount?(m=n.succeeded?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-emerald-500/25 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-700 dark:text-emerald-300`,children:[(0,$.jsx)(Bo,{className:`size-3`,"aria-hidden":!0}),M9(r.feedback.succeededCount,{count:n.succeeded})]}):null,t[20]=n.succeeded,t[21]=r.feedback.succeededCount,t[22]=m):m=t[22];let h;t[23]!==n.active||t[24]!==r.feedback.activeCount?(h=n.active?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-blue-500/25 bg-blue-500/10 px-2 py-0.5 text-xs text-blue-700 dark:text-blue-300`,children:[(0,$.jsx)(Hs,{className:`size-3`,"aria-hidden":!0}),M9(r.feedback.activeCount,{count:n.active})]}):null,t[23]=n.active,t[24]=r.feedback.activeCount,t[25]=h):h=t[25];let g;t[26]!==n.attention||t[27]!==r.feedback.attentionCount?(g=n.attention?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-amber-500/25 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-700 dark:text-amber-300`,children:[(0,$.jsx)(SS,{className:`size-3`,"aria-hidden":!0}),M9(r.feedback.attentionCount,{count:n.attention})]}):null,t[26]=n.attention,t[27]=r.feedback.attentionCount,t[28]=g):g=t[28];let _;t[29]!==n.recovered||t[30]!==r.feedback.recoveredCount?(_=n.recovered?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-emerald-500/25 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-700 dark:text-emerald-300`,children:[(0,$.jsx)(Bo,{className:`size-3`,"aria-hidden":!0}),M9(r.feedback.recoveredCount,{count:n.recovered})]}):null,t[29]=n.recovered,t[30]=r.feedback.recoveredCount,t[31]=_):_=t[31];let v;t[32]!==m||t[33]!==h||t[34]!==g||t[35]!==_?(v=(0,$.jsxs)(`div`,{className:`mt-1.5 flex flex-wrap gap-1.5`,children:[m,h,g,_]}),t[32]=m,t[33]=h,t[34]=g,t[35]=_,t[36]=v):v=t[36];let y;t[37]!==r.feedback.primaryRepair||t[38]!==r.feedback.primaryRepairing||t[39]!==o||t[40]!==a||t[41]!==i?(y=o&&a?(0,$.jsx)(`div`,{className:`mt-2`,children:(0,$.jsxs)(Zw,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:i,onClick:a,children:[(0,$.jsx)(Yy,{className:`size-3.5`,"aria-hidden":!0}),i?r.feedback.primaryRepairing:r.feedback.primaryRepair]})}):null,t[37]=r.feedback.primaryRepair,t[38]=r.feedback.primaryRepairing,t[39]=o,t[40]=a,t[41]=i,t[42]=y):y=t[42];let b;return t[43]!==y||t[44]!==p||t[45]!==v?(b=(0,$.jsxs)(`div`,{className:`mb-3 border-l-2 border-accent/50 pl-3`,children:[p,v,y]}),t[43]=y,t[44]=p,t[45]=v,t[46]=b):b=t[46],b}function N9({eventType:e,source:t,payloadKey:n,payloadValue:r,limit:i=3,className:a,onSaveInsight:o,isInsightSaved:s}){let c=I(e=>e.language),l=j(c).automations,u=c===`zh`?`zh-CN`:`en-US`,d=[`product-automation-feedback`,e,t??``,n??``,r??``,i],[f,p]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(null),{data:g,mutate:_}=xe(e&&(!n||r!==void 0)?d:null,()=>T9.productEventRuns({eventType:e,source:t,payloadKey:n,payloadValue:r,limit:i}),{revalidateOnFocus:!1,refreshInterval:e=>e?.items&&Wxe(e.items)?3e3:15e3}),[v,b]=(0,Z.useState)({}),[x,S]=(0,Z.useState)({}),w=g?.items??[],T=Gxe(w),E=Kxe(w);if(!w.length)return null;let D=async(e,t)=>{p(e),h(null);try{await t(),await _()}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},O=async e=>{p(`${e.id}:repair`),h(null);try{let t=await T9.repairDraft(e.id,{language:c});b(n=>({...n,[e.id]:t.repair})),S(t=>({...t,[e.id]:!1}))}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},k=async(e,t,n=!1)=>{p(n?`${e.id}:applyAndRerun`:`${e.id}:applyRepair`),h(null);try{await T9.update(e.automationId,t.patch),n&&await T9.rerun(e.id),await _(),b(t=>{let n={...t};return delete n[e.id],n}),S(t=>{let n={...t};return delete n[e.id],n})}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},A=T.latestAttentionRun&&!v[T.latestAttentionRun.id]?T.latestAttentionRun:void 0,M=A?f===`${A.id}:repair`:!1;return(0,$.jsxs)(`section`,{className:C(`rounded-lg border border-edge bg-surface-panel p-3`,a),children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`h3`,{className:`flex min-w-0 items-center gap-2 text-sm font-semibold text-fg`,children:[(0,$.jsx)(Mw,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:l.feedback.title})]}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:w.length})]}),(0,$.jsx)(qxe,{health:T,labels:l,primaryRepairBusy:M,onPrimaryRepair:A?()=>void O(A):void 0}),m?(0,$.jsxs)(`p`,{className:`mb-2 rounded-md border border-danger/25 bg-danger-soft px-2.5 py-2 text-xs text-danger`,role:`alert`,children:[l.feedback.actionFailed,`: `,m]}):null,(0,$.jsx)(`ul`,{className:`grid gap-2`,children:w.map(({run:e,triggerEvent:t})=>{let n=E.get(e.automationId),r=n?.id===e.id,i=j9(e.status)&&!r,a=i&&n?.status===`succeeded`,c=v[e.id],d=x[e.id]??!1,p=f===`${e.id}:repair`,m=f===`${e.id}:applyRepair`,h=f===`${e.id}:applyAndRerun`,g=zxe(e,t,l),_=s?.(e)??!1,w=e.status===`succeeded`&&!!e.summary&&!!o&&!_,T=f===`${e.id}:saveInsight`;return(0,$.jsxs)(`li`,{className:`rounded-md border border-edge/70 bg-surface-muted/35 px-2.5 py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,$.jsx)(Ci,{className:`size-3.5 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,children:e.automationName})]}),(0,$.jsx)(`p`,{className:`mt-1 line-clamp-2 break-words text-xs text-fg-muted`,children:e.error||e.summary||t.message})]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 flex-col items-end gap-1`,children:[(0,$.jsx)(`span`,{className:C(`rounded-full border px-2 py-0.5 text-xs`,Hxe(e.status)),children:l.status[e.status]}),i?(0,$.jsx)(`span`,{className:`rounded-full border border-emerald-500/25 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-700 dark:text-emerald-300`,children:a?l.feedback.recovered:l.feedback.historical}):null]})]}),(0,$.jsx)(`div`,{className:`mt-2 flex items-center justify-between gap-2 text-xs text-fg-muted`,children:(0,$.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-1`,children:[(0,$.jsx)(et,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:Uxe(t.createdAtMs,u)})]})}),(0,$.jsxs)(`div`,{className:`mt-2 rounded-md border border-edge/60 bg-surface-base/45 px-2.5 py-2`,children:[(0,$.jsx)(`div`,{className:`text-xs font-medium text-fg`,children:l.explain.whyRan}),(0,$.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-1.5`,children:g.map(e=>(0,$.jsx)(`span`,{className:`rounded-full border border-edge/70 bg-surface-panel px-2 py-0.5 text-xs text-fg-muted`,children:e},e))})]}),c?(0,$.jsxs)(`div`,{className:`mt-2 rounded-md border border-amber-500/30 bg-amber-500/10 px-2.5 py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs font-semibold text-amber-800 dark:text-amber-200`,children:[(0,$.jsx)(Yy,{className:`size-3.5`,"aria-hidden":!0}),l.repair.title]}),(0,$.jsx)(`p`,{className:`mt-1 break-words text-xs text-fg`,children:c.explanation}),c.expectedEffect?(0,$.jsx)(`p`,{className:`mt-1 break-words text-xs text-fg-muted`,children:c.expectedEffect}):null,c.risks.length?(0,$.jsx)(`ul`,{className:`mt-2 list-disc space-y-1 pl-4 text-xs text-fg-muted`,children:c.risks.slice(0,3).map(e=>(0,$.jsx)(`li`,{children:e},e))}):null,c.requiresApproval?(0,$.jsxs)(`label`,{className:`mt-2 flex items-start gap-2 text-xs text-fg`,children:[(0,$.jsx)(`input`,{className:`mt-0.5`,type:`checkbox`,checked:d,onChange:t=>{S(n=>({...n,[e.id]:t.target.checked}))}}),(0,$.jsx)(`span`,{children:l.repair.approval})]}):null,(0,$.jsxs)(`div`,{className:`mt-2 flex flex-wrap justify-end gap-1.5`,children:[(0,$.jsx)(Zw,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,onClick:()=>{b(t=>{let n={...t};return delete n[e.id],n})},children:l.draft.discard}),(0,$.jsx)(Zw,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:c.requiresApproval&&!d||f!==null,onClick:()=>void k(e,c),children:m?l.feedback.working:l.repair.apply}),(0,$.jsxs)(Zw,{variant:`primary`,className:`h-7 rounded-md px-2 text-xs`,disabled:c.requiresApproval&&!d||f!==null,onClick:()=>void k(e,c,!0),children:[(0,$.jsx)(My,{className:`size-3.5`,"aria-hidden":!0}),h?l.feedback.working:l.feedback.applyAndRerun]})]})]}):null,(0,$.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-1.5`,children:[_?(0,$.jsxs)(`span`,{className:`inline-flex h-7 items-center gap-1 rounded-md border border-emerald-500/25 bg-emerald-500/10 px-2 text-xs text-emerald-700 dark:text-emerald-300`,children:[(0,$.jsx)(Bo,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.savedInsight]}):null,w?(0,$.jsxs)(Zw,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void D(`${e.id}:saveInsight`,()=>Promise.resolve(o(e))),children:[(0,$.jsx)(Bo,{className:`size-3.5`,"aria-hidden":!0}),T?l.feedback.savingInsight:l.feedback.saveInsight]}):null,e.sessionKey?(0,$.jsx)(Zw,{asChild:!0,variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,children:(0,$.jsxs)(y,{to:`/chat/${encodeURIComponent(e.sessionKey)}`,children:[(0,$.jsx)(Ev,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.chat]})}):null,e.workflowRunId?(0,$.jsx)(Zw,{asChild:!0,variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,children:(0,$.jsxs)(y,{to:`/workflows?run=${encodeURIComponent(e.workflowRunId)}`,children:[(0,$.jsx)(Ep,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.workflow]})}):null,r&&j9(e.status)&&!c?(0,$.jsxs)(Zw,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void O(e),children:[(0,$.jsx)(Yy,{className:`size-3.5`,"aria-hidden":!0}),p?l.repair.generating:l.repair.suggest]}):null,(0,$.jsxs)(Zw,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void D(`${e.id}:rerun`,()=>T9.rerun(e.id)),children:[(0,$.jsx)(My,{className:`size-3.5`,"aria-hidden":!0}),f===`${e.id}:rerun`?l.feedback.working:l.feedback.rerun]}),(0,$.jsxs)(Zw,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void D(`${e.id}:pause`,()=>T9.pause(e.automationId)),children:[(0,$.jsx)(as,{className:`size-3.5`,"aria-hidden":!0}),f===`${e.id}:pause`?l.feedback.working:l.feedback.pause]}),(0,$.jsx)(Zw,{asChild:!0,variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,children:(0,$.jsxs)(y,{to:`/automations?run=${encodeURIComponent(e.id)}`,children:[(0,$.jsx)(Iu,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.open]})})]})]},e.id)})})]})}function Jxe(e){if(!e||typeof e!=`object`)return null;let t=e;if(t.kind!==`context`)return null;let n=t.data&&typeof t.data==`object`&&!Array.isArray(t.data)?t.data:null;if(!n||n.kind!==`workflow-run-link`)return null;let r=typeof n.runId==`string`?n.runId.trim():``,i=typeof n.workflowSessionKey==`string`?n.workflowSessionKey.trim():``,a=typeof n.ownerAgentId==`string`?n.ownerAgentId.trim():``,o=typeof n.definitionId==`string`?n.definitionId.trim():``;if(!r||!i||!o)return null;let s=typeof n.goal==`string`?n.goal:``,c=typeof n.status==`string`?n.status:`running`,l=typeof t.id==`string`&&t.id.trim()?t.id.trim():`workflow-run-link:${r}`,u=typeof t.createdAt==`string`?Date.parse(t.createdAt):void 0;return{id:l,runId:r,ownerAgentId:a||void 0,workflowSessionKey:i,definitionId:o,goal:s,status:c,createdAtMs:Number.isFinite(u)?u:void 0}}function Yxe(e){if(!e?.length)return[];let t=new Map;for(let n of e){let e=Jxe(n);if(!e)continue;let r=t.get(e.runId);t.set(e.runId,{...r,...e,ownerAgentId:e.ownerAgentId??r?.ownerAgentId,workflowSessionKey:e.workflowSessionKey||r?.workflowSessionKey||``,definitionId:e.definitionId||r?.definitionId||``,goal:e.goal||r?.goal||``})}return[...t.values()].toSorted((e,t)=>(e.createdAtMs??0)-(t.createdAtMs??0))}function Xxe(e){let t=(0,Q.c)(8),n=F(Zxe),r;t[0]===e?r=t[1]:(r=e?.trim()||null,t[0]=e,t[1]=r);let i=r,a;t[2]!==n||t[3]!==i?(a=n&&i?[`session-workflow-run-links`,i,n]:null,t[2]=n,t[3]=i,t[4]=a):a=t[4];let o;t[5]===i?o=t[6]:(o=async()=>Yxe((await CR(i,{includeTranscriptRows:!0})).transcriptRows),t[5]=i,t[6]=o);let s;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s={revalidateOnFocus:!1},t[7]=s):s=t[7],xe(a,o,s)}function Zxe(e){return e.token}function P9(e,t){let n=(0,Q.c)(26),r=F($xe),i=!!r,a;n[0]===e?a=n[1]:(a=e?.trim()||null,n[0]=e,n[1]=a);let o=a,s;n[2]===t?.ownerAgentId?s=n[3]:(s=t?.ownerAgentId?.trim()||void 0,n[2]=t?.ownerAgentId,n[3]=s);let c=s,l;n[4]!==i||n[5]!==c||n[6]!==r||n[7]!==o?(l=i&&o?[`workflow-run-live`,o,c??``,r]:null,n[4]=i,n[5]=c,n[6]=r,n[7]=o,n[8]=l):l=n[8];let u;n[9]!==c||n[10]!==o?(u=()=>m9(o,{ownerAgentId:c}),n[9]=c,n[10]=o,n[11]=u):u=n[11];let d;n[12]===Symbol.for(`react.memo_cache_sentinel`)?(d={revalidateOnFocus:!1,refreshInterval:Qxe},n[12]=d):d=n[12];let f=xe(l,u,d),p;n[13]!==c||n[14]!==f||n[15]!==o?(p=()=>{if(!o)return;let e=e=>{let t=e.detail;if(t?.runId!==o)return;let n=t.view?.run.metadata?.agentId;if(!(c&&n&&n!==c)){if(t.view){f.mutate(t.view,{revalidate:!1});return}f.mutate()}};return window.addEventListener(`workflow-run-updated`,e),()=>window.removeEventListener(`workflow-run-updated`,e)},n[13]=c,n[14]=f,n[15]=o,n[16]=p):p=n[16];let m;n[17]!==c||n[18]!==f.mutate||n[19]!==o?(m=[c,f.mutate,o],n[17]=c,n[18]=f.mutate,n[19]=o,n[20]=m):m=n[20],(0,Z.useEffect)(p,m);let h;return n[21]!==f.data||n[22]!==f.error||n[23]!==f.isLoading||n[24]!==f.mutate?(h={view:f.data,loading:f.isLoading,error:f.error,mutate:f.mutate},n[21]=f.data,n[22]=f.error,n[23]=f.isLoading,n[24]=f.mutate,n[25]=h):h=n[25],h}function Qxe(e){return e&&pQ.has(e.run.status)?3e3:0}function $xe(e){return e.token}var F9=`/agents`;function I9(e){return`${F9}/${encodeURIComponent(e)}`}function eSe(e,t){let n=e.replace(/\s+/g,``).toLocaleLowerCase(),r=t.replace(/\s+/g,``).toLocaleLowerCase();if(!n||!r)return!1;if(n===r)return!0;let i=Math.min(18,Math.max(8,Math.floor(n.length*.16)));return r.includes(n.slice(0,i))}function tSe(e=new Date){return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`}function nSe(){let e=I(e=>e.language),t=j(e),n=F(e=>e.token),r=m(),i=u(),{pathname:a}=i,[o]=f(),s=(0,Z.useRef)(null),c=(0,Z.useRef)(0),l=(0,Z.useRef)(null),d=(0,Z.useRef)(``),p=(0,Z.useRef)(null),[h,g]=(0,Z.useState)(null),[_,v]=(0,Z.useState)(()=>C9()),[b,x]=(0,Z.useState)(0),[S,w]=(0,Z.useState)(null),[T,E]=(0,Z.useState)(null),[D,O]=(0,Z.useState)(!1),[k,A]=(0,Z.useState)(null),[M,N]=(0,Z.useState)(!1),{auth:P,session:L,messages:R,timeline:z,stream:B,followUp:V,clarify:H,agents:U}=Ibe(),W=o.get(`skill`)?.trim()??``,G=o.get(`slash`)?.trim()??``,K=o.get(`draft`)??``,ee=o.get(`autoSend`)===`1`,q=L.decodedKey??L.sessionKey,te=kL(e=>e.markViewed);(0,Z.useEffect)(()=>{q&&te(q)},[q,te]);let{data:ne}=Lbe(q),re=ne?.workflowRunId??null,ie=ne?.ownerAgentId??void 0,ae=ne?.taskId??null,{view:oe}=P9(re,{ownerAgentId:ie}),{data:se=[],mutate:J}=Xxe(q),ce=!!(re&&oe&&pQ.has(oe.run.status));(0,Z.useEffect)(()=>{if(!q)return;let e=e=>{let t=e.detail;(t?.key??t?.sessionKey)===q&&J()};return window.addEventListener(`session-transcript-updated`,e),window.addEventListener(`workflow-run-started-from-chat`,e),()=>{window.removeEventListener(`session-transcript-updated`,e),window.removeEventListener(`workflow-run-started-from-chat`,e)}},[q,J]),(0,Z.useEffect)(()=>{s.current=null},[L.sessionKey]),(0,Z.useEffect)(()=>{if(!P.hasToken||!W&&!G&&!K||ee||L.showSessionLoading||L.sessionRoutePending||!L.sessionKey)return;let e=()=>{let e=new URLSearchParams(o);e.delete(`skill`),e.delete(`slash`),e.delete(`draft`);let t=e.toString();r({pathname:a,search:t?`?${t}`:``},{replace:!0})},t=(t,n)=>{s.current!==n&&(s.current=n,queueMicrotask(()=>{c.current+=1,g({id:c.current,text:t}),e()}))},n=X7(W,K);if(n){t(n,`${L.sessionKey}:draft:${n}`);return}if(W){e();return}if(!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(G)){e();return}let i=`${L.sessionKey}:slash:${G}`;s.current!==i&&queueMicrotask(()=>{(async()=>{try{let e=await Z3(),t=G.toLowerCase(),n=e.find(e=>e.name.toLowerCase()===t||Array.isArray(e.aliases)&&e.aliases.some(e=>e.toLowerCase()===t));if(n){if(s.current===i)return;s.current=i,c.current+=1,g({id:c.current,text:e6(n)})}}finally{e()}})()})},[P.hasToken,W,G,K,ee,o,L.showSessionLoading,L.sessionRoutePending,L.sessionKey,r,a]);let{scrollRef:le,atBottom:ue,registerListContentRef:de,scrollToBottom:fe,onScroll:pe}=m2({hasToken:P.hasToken,showSessionLoading:L.showSessionLoading,sessionKey:L.sessionKey,sending:B.sending,chatMessages:R.items,hasMore:L.hasMore,loadingMore:L.loadingMore,loadMoreMessages:L.loadMoreMessages}),me=!!H.clarifyPrompt,he=(0,Z.useRef)(me);(0,Z.useLayoutEffect)(()=>{let e=he.current;if(he.current=me,e===me||L.showSessionLoading||L.sessionRoutePending)return;fe(!1);let t=requestAnimationFrame(()=>fe(!1));return()=>cancelAnimationFrame(t)},[me,fe,L.showSessionLoading,L.sessionRoutePending]);let[ge,_e]=(0,Z.useState)(0),ve=(0,Z.useRef)(null),ye=(0,Z.useRef)(null),be=(0,Z.useMemo)(()=>{let e=-1;for(let t of z.items)typeof t.displayIndex==`number`&&Number.isFinite(t.displayIndex)&&(e=Math.max(e,t.displayIndex));return e<0?0:Math.max(0,e+1-R.items.length)},[R.items.length,z.items]),xe=(0,Z.useCallback)(e=>{let t=le.current;if(!t)return!1;let n=t.querySelector(`[data-chat-message-index="${e}"]`);if(!n)return!1;_e(e);let r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=t.scrollTop+i.top-r.top-16;return t.scrollTo({top:Math.max(0,a),behavior:`smooth`}),!0},[le]),Se=(0,Z.useCallback)(()=>{let e=le.current;if(!e)return;let t=Array.from(e.querySelectorAll(`[data-chat-message-index]`));if(t.length===0){_e(0);return}let n=e.getBoundingClientRect(),r=n.top+Math.min(180,n.height*.35),i=t[0];for(let e of t){if(e.getBoundingClientRect().top<=r){i=e;continue}break}let a=i.dataset.chatMessageIndex,o=a?Number.parseInt(a,10):0;Number.isFinite(o)&&_e(e=>e===o?e:o)},[le]),Ce=(0,Z.useCallback)(()=>{ve.current!=null&&cancelAnimationFrame(ve.current),ve.current=requestAnimationFrame(()=>{ve.current=null,Se()})},[Se]),we=(0,Z.useCallback)(()=>{pe(),Ce()},[pe,Ce]),Te=(0,Z.useCallback)(e=>{let t=e-be;if(t<0||t>=R.items.length){t<0&&L.hasMore&&!L.loadingMore&&(ye.current=e,L.loadMoreMessages());return}ye.current=null,xe(t)},[R.items.length,xe,L.hasMore,L.loadMoreMessages,L.loadingMore,be]);(0,Z.useEffect)(()=>{let e=ye.current;if(e==null)return;let t=e-be;if(t>=0&&t<R.items.length){ye.current=null,requestAnimationFrame(()=>xe(t));return}if(t<0&&L.hasMore&&!L.loadingMore){L.loadMoreMessages();return}(t>=R.items.length||!L.hasMore)&&(ye.current=null)},[R.items.length,xe,L.hasMore,L.loadMoreMessages,L.loadingMore,be]),(0,Z.useEffect)(()=>{Ce()},[R.items.length,Ce,L.sessionKey,be]),(0,Z.useEffect)(()=>()=>{ve.current!=null&&cancelAnimationFrame(ve.current)},[]),(0,Z.useEffect)(()=>{g(null),l.current=null,d.current=``,v(C9())},[L.sessionKey]);let Ee=(0,Z.useCallback)(e=>{l.current=e,w9({type:`pick`,suggestionId:e.suggestionId,categoryId:e.categoryId,contextKind:e.contextKind}),c.current+=1,g({id:c.current,text:e.prompt})},[]),Oe=(0,Z.useCallback)(()=>{x(e=>e+1)},[]),ke=(0,Z.useCallback)(async e=>{await L.createNewSession({projectId:e})},[L.createNewSession]),Ae=(0,Z.useMemo)(()=>!!L.sessionKey&&!L.showSessionLoading&&!L.sessionRoutePending&&!L.workingDirectoryLocked&&R.items.length===0,[L.sessionKey,L.showSessionLoading,L.sessionRoutePending,L.workingDirectoryLocked,R.items.length]),je=iq(e=>e.setAgentId);(0,Z.useEffect)(()=>{if(P.hasToken)return je(U.displayAgentId),()=>je(``)},[P.hasToken,U.displayAgentId,je]);let Me=L.conversationPhase===`creating-session`,Ne=L.conversationPhase===`loading-history`,Pe=Me||Ne,Y=!Ne&&R.items.length===0&&!B.streaming,Fe=(0,Z.useMemo)(()=>{if(B.taskPlan){let e=Fye(B.taskPlan);return e?{plan:e,changeSummary:W7(R.items,B.streaming)?.changeSummary??null}:null}return W7(R.items,B.streaming)},[R.items,B.streaming,B.taskPlan]),Ie=(0,Z.useMemo)(()=>(L.sessionRoutePending&&L.decodedKey?L.decodedKey:L.sessionKey)?L.sessionName?.trim()||t.chat.newSession:t.nav.chat,[L.sessionKey,L.sessionName,L.sessionRoutePending,L.decodedKey,t.nav.chat,t.chat.newSession]),Le=ne?.sourceNoteId??null,Re=qve(q);(0,Z.useEffect)(()=>{let e=!1;if(w(null),Le)return H6(Le).then(t=>{e||w(t?.title?.trim()||null)}).catch(()=>{e||w(null)}),()=>{e=!0}},[Le]);let X=S||ne?.sourceNoteTitle||t.chat.sourceNoteFallbackTitle,ze=Nxe({enabled:P.hasToken&&!!q&&R.items.length===0&&!L.showSessionLoading&&!L.sessionRoutePending,sessionKey:q,sourceNoteId:Le,sourceNoteTitle:X,effectiveWorkspacePath:L.effectiveWorkspacePath,workingDirectoryLocked:L.workspaceSource===`session_override`||L.workspaceSource===`agent_workspace`,sessionManager:L.sessionManager}),Be=(0,Z.useMemo)(()=>U.chatAgents?.items.find(e=>e.id===U.displayAgentId)??{id:U.displayAgentId},[U.chatAgents?.items,U.displayAgentId]),Ve=(0,Z.useMemo)(()=>DM(ze.context,t.chat.welcomeSpotlight,Be,{affinity:_,contextStatus:ze.status,explorationSeed:tSe(),explorationOffset:b}),[t.chat.welcomeSpotlight,_,Be,ze.context,ze.status,b]),He=ze.status===`loading`,Ue=He?void 0:Ve;(0,Z.useEffect)(()=>{if(!He){N(!1);return}let e=window.setTimeout(()=>N(!0),180);return()=>window.clearTimeout(e)},[He]);let We=(0,Z.useMemo)(()=>Ue?{suggestionId:Ue.primaryRecommendation.id,categoryId:Ue.primaryRecommendation.categoryId,contextKind:Ue.contextKind,prompt:Ue.primaryRecommendation.prompt}:null,[Ue]);(0,Z.useEffect)(()=>{if(R.items.length>0||B.streaming||!Ue)return;let e=Ue.primaryRecommendation,t=`${q??`new`}:${Ue.contextStatus}:${e.id}`;d.current!==t&&(d.current=t,w9({type:`impression`,suggestionId:e.id,categoryId:e.categoryId,contextKind:Ue.contextKind}))},[Ue,q,R.items.length,B.streaming]);let Ge=(0,Z.useCallback)((...e)=>{let[t]=e,n=l.current;return n&&eSe(n.prompt,t)&&w9({type:`send`,suggestionId:n.suggestionId,categoryId:n.categoryId,contextKind:n.contextKind,edited:n.prompt.trim()!==t.trim(),characterDelta:t.length-n.prompt.length}),l.current=null,B.sendMessage(...e)},[B.sendMessage]);(0,Z.useEffect)(()=>{if(!ee||!K.trim()||!P.hasToken||L.showSessionLoading||L.sessionRoutePending||!L.sessionKey||B.sending||B.streaming||R.items.length>0)return;let e=X7(W,K);if(!e)return;let t=`${L.sessionKey}:auto-send:${e}`;if(s.current===t)return;s.current=t;let n=new URLSearchParams(o);n.delete(`skill`),n.delete(`slash`),n.delete(`draft`),n.delete(`autoSend`);let i=n.toString();r({pathname:a,search:i?`?${i}`:``},{replace:!0}),Ge(e)},[P.hasToken,ee,K,Ge,R.items.length,r,a,o,L.sessionKey,L.sessionRoutePending,L.showSessionLoading,W,B.sending,B.streaming]);let Ke=(0,Z.useCallback)(()=>{p.current?.reject(),p.current=null,E(null),O(!1)},[]);(0,Z.useEffect)(()=>{Ke()},[Ke,Le]);let Q=(0,Z.useMemo)(()=>({title:t.chat.timelineTitle,turn:t.chat.timelineTurn,messageFallback:t.chat.timelineMessageFallback,toolCount_one:t.chat.timelineToolCount_one,toolCount_other:t.chat.timelineToolCount_other,searchedWeb:t.chat.stepSearchedWeb,searchedMemory:t.chat.stepSearchedMemory,searchedCode:t.chat.stepSearchedCode,searched:t.chat.stepSearched,readFile:t.chat.stepReadFile,runCommand:t.chat.stepRunCommand,listDirectory:t.chat.stepListDirectory,writeFile:t.chat.stepWriteFile,editFile:t.chat.stepEditFile,openUrl:t.chat.stepOpenUrl,fetchUrl:t.chat.stepFetchUrl,unknownTool:t.chat.stepUnknownTool}),[t.chat.timelineTitle,t.chat.timelineTurn,t.chat.timelineMessageFallback,t.chat.timelineToolCount_one,t.chat.timelineToolCount_other,t.chat.stepSearchedWeb,t.chat.stepSearchedMemory,t.chat.stepSearchedCode,t.chat.stepSearched,t.chat.stepReadFile,t.chat.stepRunCommand,t.chat.stepListDirectory,t.chat.stepWriteFile,t.chat.stepEditFile,t.chat.stepOpenUrl,t.chat.stepFetchUrl,t.chat.stepUnknownTool]),qe=(0,Z.useCallback)(async n=>{if(!Le)return;p.current?.reject(),O(!1);let r=t.chat.sourceNoteAppendSourceLine.replace(`{{time}}`,new Date().toLocaleString(e));return E({heading:t.chat.sourceNoteAppendHeading,content:`${r}\n\n${n.trim()}`}),new Promise((e,t)=>{p.current={sourceNoteId:Le,resolve:e,reject:t}})},[e,t.chat.sourceNoteAppendHeading,t.chat.sourceNoteAppendSourceLine,Le]),Je=(0,Z.useCallback)(async()=>{let e=p.current;if(!e||!T)return;let n=T.heading.trim()||t.chat.sourceNoteAppendHeading,r=T.content.trim();if(r){O(!0),A(null);try{await hpe(e.sourceNoteId,r,n),window.dispatchEvent(new CustomEvent(`note-updated`,{detail:{noteId:e.sourceNoteId,source:`chat`,sessionKey:q}})),e.resolve(),p.current=null,E(null)}catch(e){A(e instanceof Error?e.message:t.chat.sourceNoteSaveFailed)}finally{O(!1)}}},[q,t.chat.sourceNoteAppendHeading,t.chat.sourceNoteSaveFailed,t.chat.sourceNoteSaveSuccess,T]),Ye=(0,Z.useCallback)(async e=>{if(!Le)return;let n=e.trim().split(/\n+/)[0]?.replace(/^[-#*>\s]+/,``).trim()||t.chat.sourceNoteTaskFallbackTitle;try{await gpe(n.slice(0,120),{sourceNoteId:Le,sourceSessionKey:q})}catch(e){throw IR(`error`,e instanceof Error?e.message:t.chat.sourceNoteTaskFailed),e}},[q,t.chat.sourceNoteTaskFailed,t.chat.sourceNoteTaskFallbackTitle,t.chat.sourceNoteTaskSuccess,Le]),Xe=(0,Z.useCallback)(()=>{if(!Le)return;let n=t.chat.sourceNoteDigestPrompt.replace(`{{title}}`,X);if(B.streaming||B.sending){V.addPendingFollowUp(n),De({tone:`info`,status:`done`,title:t.chat.sourceNoteDigestQueued,source:e===`zh`?`笔记整理`:`Note digest`,dedupeKey:Le?`note-digest:${Le}`:void 0});return}B.sendMessage(n)},[V,e,t.chat.sourceNoteDigestPrompt,t.chat.sourceNoteDigestQueued,Le,X,B]);return P.hasToken?(B.error?XN(B.error):null)?.code===`session_not_found`?(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-surface-panel`,children:[(0,$.jsx)(N7,{}),(0,$.jsx)(M7,{chatHeadline:t.chat.sessionNotFoundTitle,chatAgents:U.chatAgents?.items??[],showChatAgentSelector:!1,chatAgentId:U.displayAgentId,onChatAgentChange:U.onChatAgentChange,chatAgentDisabled:!0}),(0,$.jsx)(`main`,{className:`mx-auto flex w-full max-w-xl flex-1 items-center px-4 py-12 sm:px-6`,children:(0,$.jsx)(`div`,{className:`w-full`,children:(0,$.jsx)(I$,{errorText:B.error})})})]}):(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-surface-panel`,children:[(0,$.jsx)(N7,{}),(0,$.jsx)(M7,{chatHeadline:Ie,chatAgents:U.chatAgents?.items??[],showChatAgentSelector:U.showChatAgentSelector,chatAgentId:U.displayAgentId,onChatAgentChange:U.onChatAgentChange,chatAgentDisabled:Pe}),(0,$.jsxs)(`div`,{className:`relative mx-auto flex min-h-0 w-full max-w-[calc(var(--max-width-chat)+8rem)] flex-1 flex-col`,children:[Re?(0,$.jsx)(Kve,{project:Re,workspace:L.effectiveWorkspacePath,projectLabel:t.chat.scopeProject,workspaceLabel:t.chat.scopeWorkspace,returnTo:a}):null,i.state?.fromAgentEditor&&U.displayAgentId?(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge-subtle bg-surface-panel/80 px-3 py-1.5 sm:px-5 xl:px-6`,children:(0,$.jsxs)(y,{to:I9(U.displayAgentId),className:`inline-flex items-center gap-1 text-xs font-medium text-accent transition-colors hover:text-accent-fg`,children:[(0,$.jsx)(`span`,{"aria-hidden":!0,children:`←`}),t.agentsSettings.backToEditor]})}):null,Le?(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge-subtle bg-surface-panel/80 px-3 py-1.5 sm:px-5 xl:px-6`,children:(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center justify-between gap-2 text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:t.chat.sourceNoteBanner.replace(`{{title}}`,X)}),(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex h-7 items-center gap-1.5 rounded-md border border-edge-subtle px-2 font-medium text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,onClick:Xe,children:[(0,$.jsx)(Ld,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:t.chat.sourceNoteDigestAction})]}),(0,$.jsx)(y,{to:AV(`/notes/${encodeURIComponent(Le)}`,`${i.pathname}${i.search}`),className:`font-medium text-accent transition-colors hover:text-accent-fg`,children:t.chat.sourceNoteOpen})]})]})}):null,(0,$.jsxs)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 px-3 sm:px-5 xl:px-6`,children:[(0,$.jsx)(qbe,{items:z.items,activeMessageIndex:ge+be,labels:Q,openLabel:t.chat.timelineOpen,closeLabel:t.chat.timelineClose,currentLabel:t.chat.timelineCurrent,onSelectMessage:Te}),(0,$.jsx)(`div`,{className:`absolute inset-y-0 right-0 hidden xl:block`,children:(0,$.jsx)(exe,{items:z.items,activeMessageIndex:ge+be,labels:Q,onSelectMessage:Te})}),(0,$.jsxs)(`div`,{className:`mx-auto flex min-h-0 min-w-0 flex-1 flex-col xl:max-w-[58rem]`,children:[(0,$.jsx)(`div`,{ref:le,className:C(`chat-messages min-h-0 flex-1 overflow-y-auto overflow-x-hidden [overflow-anchor:none] [scrollbar-gutter:stable_both-edges]`,Y?`chat-messages--compact-welcome pt-5 pb-2`:`py-4`),onScroll:we,children:Ne?(0,$.jsxs)(`div`,{className:`flex min-h-[min(40vh,20rem)] w-full flex-col gap-10 py-8`,"aria-busy":`true`,children:[(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(BN,{className:`h-11 w-[min(70%,22rem)] rounded-2xl`})}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(BN,{className:`h-4 w-24`}),(0,$.jsx)(BN,{className:`h-4 w-[min(82%,36rem)]`}),(0,$.jsx)(BN,{className:`h-4 w-[min(74%,32rem)]`}),(0,$.jsx)(BN,{className:`h-4 w-[min(48%,22rem)]`})]}),(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(BN,{className:`h-11 w-[min(62%,18rem)] rounded-2xl`})})]}):(0,$.jsxs)($.Fragment,{children:[L.loadingMore?(0,$.jsx)(`div`,{className:`mb-3 text-center text-xs text-fg-muted`,children:t.chat.loadOlder}):null,B.error?(0,$.jsx)(`div`,{className:C(`sticky z-20 shrink-0 bg-transparent pe-2`,Y?`-top-5`:`-top-4`),children:(0,$.jsx)(I$,{errorText:B.error})}):null,ae?(0,$.jsx)(jye,{taskId:ae}):null,se.length>0?(0,$.jsx)(`div`,{className:`mb-6 flex flex-col gap-3`,children:se.map(e=>(0,$.jsx)(sxe,{link:e},e.id))}):null,ce&&oe?(0,$.jsx)(wxe,{view:oe,sessionKey:q,onAbortCurrentTurn:B.abort}):null,q?(0,$.jsx)(N9,{eventType:`session.transcript.updated`,source:`sessions`,payloadKey:`sessionKey`,payloadValue:q,className:`mb-6`}):null,(0,$.jsx)(f2,{messages:R.items,authToken:n??void 0,sessionKey:L.decodedKey??L.sessionKey,projectId:Re?.id,streaming:B.streaming,progress:B.progress,reasoningLevel:L.reasoningLevel,registerListContentRef:de,onPickWelcomePrompt:Ee,welcomeSpotlight:Ue,welcomeOverlay:He?(0,$.jsx)(Eq,{showSkeleton:M}):void 0,onRetryWelcomeContext:ze.retry,onRefreshWelcomeExploration:Oe,onSelectWelcomeProject:ke,onDeleteRound:B.deleteMessageRound,onRetryUserMessageRound:B.retryUserMessageRound,deleteRoundDisabled:B.streaming||B.sending,onSaveAssistantToSourceNote:Le?qe:void 0,onExtractAssistantTask:Le?Ye:void 0})]})}),(0,$.jsxs)(`div`,{className:C(`sticky bottom-0 z-10 shrink-0 bg-surface-panel`,Y?`py-2.5`:`py-4`),children:[q?(0,$.jsx)(ixe,{sessionKey:q,language:e}):null,q?(0,$.jsx)(axe,{sessionKey:q,language:e}):null,q?(0,$.jsx)(rxe,{sessionKey:q,language:e}):null,(0,$.jsx)(vq,{prompt:H.clarifyPrompt,submitting:H.clarifySubmitting,submitError:H.clarifySubmitError,labels:t.chat,onSubmit:H.submitClarifyAnswer,onCancel:H.cancelClarifyAnswer}),Fe?(0,$.jsx)(hye,{plan:Fe.plan,changeSummary:Fe.changeSummary,isStreaming:B.streaming,labels:{heading:t.chat.planHeading,stepProgress:t.chat.planStepProgress,completedProgress:t.chat.planCompletedProgress,finished:t.chat.planFinished,ended:t.chat.planEnded,planned:t.chat.planPlanned,filesChangedOne:t.chat.planFilesChanged_one,filesChangedOther:t.chat.planFilesChanged_other}}):null,(0,$.jsx)(Gve,{disabled:Pe||!!H.clarifyPrompt,sending:B.sending,streaming:B.streaming,sessionKey:L.sessionKey,sessionManager:L.sessionManager,welcomeDraftSeed:h,welcomeSuggestion:Y?We:null,onAcceptWelcomeSuggestion:Ee,canSelectWorkingDirectory:Ae,thinkingLevel:L.thinkingLevel,modelSupportsThinking:L.modelSupportsThinking,onThinkingChange:L.onSessionThinkingLevelChange,reasoningLevel:L.reasoningLevel,activityDetailDefault:L.activityDetailDefault,activityDetailOverride:L.activityDetailOverride,onReasoningChange:L.onSessionReasoningLevelChange,onSend:Ge,onAbort:B.abort,onAddPendingFollowUp:V.addPendingFollowUp,onSteeringInterrupt:(e,t)=>void B.interruptAndSend(e,t),pendingFollowUps:V.pendingFollowUps,editingFollowUpId:V.editingFollowUpId,onBeginEditFollowUp:V.beginEditFollowUp,onCancelEditFollowUp:V.cancelEditFollowUp,onCommitEditFollowUp:(e,t,n,r)=>void V.commitEditFollowUp(e,t,n,r),onPendingFollowUpRemove:V.removePendingFollowUp,onPendingFollowUpMove:V.movePendingFollowUp,onPendingFollowUpReorder:V.reorderPendingFollowUp,onPendingFollowUpSteer:e=>void V.steerPendingFollowUp(e),steeringFollowUpId:V.steeringFollowUpId,sessionModel:L.sessionModel,showModelSelector:!0,onModelChange:L.onSessionModelChange,modelDisabled:Pe||B.streaming,contextUsageMessages:R.items,onChatAgentChange:U.showChatAgentSelector?U.onChatAgentChange:void 0,currentAgentId:U.displayAgentId})]})]})]})]}),(0,$.jsx)(LD,{open:T!==null,onOpenChange:e=>{!e&&!D&&Ke()},children:(0,$.jsxs)(UD,{children:[(0,$.jsx)(GD,{className:`fixed inset-0 z-[80] bg-scrim backdrop-blur-[1px]`}),(0,$.jsxs)(YD,{className:`fixed left-1/2 top-1/2 z-[90] flex h-[min(82vh,42rem)] w-[min(100%-2rem,44rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`,children:[(0,$.jsxs)(`div`,{className:`shrink-0 border-b border-edge-subtle px-5 py-4`,children:[(0,$.jsx)(eO,{className:`text-base font-semibold text-fg`,children:t.chat.sourceNoteSaveDialogTitle}),(0,$.jsx)(nO,{className:`mt-1 text-sm text-fg-muted`,children:t.chat.sourceNoteSaveDialogDescription.replace(`{{title}}`,X)})]}),(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-5 py-4`,children:[k?(0,$.jsxs)(`p`,{className:`rounded-lg border border-danger/25 bg-danger-soft px-3 py-2 text-sm text-danger`,role:`alert`,children:[t.chat.sourceNoteSaveFailed,`: `,k]}):null,(0,$.jsxs)(`label`,{className:`flex flex-col gap-1.5 text-sm font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:t.chat.sourceNoteSaveDialogHeadingLabel}),(0,$.jsx)(`input`,{value:T?.heading??``,onChange:e=>E(t=>t&&{...t,heading:e.target.value}),className:`h-10 rounded-lg border border-edge bg-surface-base px-3 text-sm font-normal text-fg outline-none transition-colors focus:border-accent focus:ring-2 focus:ring-accent/20`,disabled:D})]}),(0,$.jsxs)(`label`,{className:`flex min-h-0 flex-1 flex-col gap-1.5 text-sm font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:t.chat.sourceNoteSaveDialogContentLabel}),(0,$.jsx)(`textarea`,{value:T?.content??``,onChange:e=>E(t=>t&&{...t,content:e.target.value}),className:`min-h-[18rem] flex-1 resize-none rounded-lg border border-edge bg-surface-base px-3 py-2 font-mono text-xs leading-relaxed text-fg outline-none transition-colors focus:border-accent focus:ring-2 focus:ring-accent/20`,disabled:D})]})]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge-subtle px-5 py-4`,children:[(0,$.jsx)(Zw,{type:`button`,variant:`secondary`,onClick:Ke,disabled:D,children:t.chat.sourceNoteSaveDialogCancel}),(0,$.jsx)(Zw,{type:`button`,variant:`primary`,onClick:()=>void Je(),disabled:D||!T?.content.trim(),children:D?t.chat.sourceNoteSaveDialogSaving:t.chat.sourceNoteSaveDialogConfirm})]})]})]})}),(0,$.jsx)(p2,{visible:!L.showSessionLoading&&!ue,onClick:()=>fe(!0)})]}):(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-[var(--max-width-chat)] px-3 py-16 text-center text-sm leading-relaxed text-fg-muted sm:px-5`,children:t.chat.needToken})}function rSe(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col overflow-hidden`,children:(0,$.jsx)(p,{})}),e[0]=t):t=e[0],t}var iSe=`:sessionKey?`;function L9(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>{let r=t[n];return r===void 0||r===``?``:String(r)}).replace(/\s+/g,` `).trim()}function aSe(e,t,n){return typeof t!=`number`||typeof n!=`number`?``:e.progressSuffix.replace(/\{\{completed\}\}/g,String(t)).replace(/\{\{total\}\}/g,String(n))}function R9(e){return e===`researching`||e===`browsing`?`research`:e===`reading`?`read`:e===`editing`?`create`:e===`planning`||e===`compacting`||e===`preparing`?`prepare`:e===`waiting`?`wait`:`execute`}function oSe(e,t,n,r,i){let a=XJ(t,e,i);return{action:L9(e.tipTool,{action:a,detail:r?L9(e.targetSuffix,{detail:r}):``}),animation:R9(n),priority:`normal`}}function sSe(e,t,n,r){return{action:L9(t===`running`?e.tipValidate:e.tipProgress,{progress:aSe(e,n,r)}),animation:R9(t),priority:`normal`}}function z9(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function B9(e,...t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.trim())return t.trim()}}function cSe(e){if(!e||e.includes(`
|
|
152
|
-
`)||e.includes(`\r`))return;let t=e.replace(/\\/g,`/`).split(`/`).filter(Boolean).at(-1);if(!(!t||t.length>80||/(?:token|api[_-]?key|password|secret)=/i.test(t)))return t}function lSe(e){if(e)try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`?t.host:void 0}catch{return}}function uSe(e,t){let n=t??WM(e??``,`running`);return n.category===`planning`?`planning`:n.category===`navigation`||n.category===`web`&&n.action===`read`?`browsing`:n.action===`search`?`researching`:n.category===`file`&&(n.action===`read`||n.action===`list`)?`reading`:n.category===`file`&&(n.action===`edit`||n.action===`write`)?`editing`:n.category===`command`?`running`:`preparing`}function dSe(e,t,n){let r=z9(t),i=n??WM(e??``,`running`),a={phase:uSe(e,i)};return a.phase===`reading`||a.phase===`editing`?a.detail=cSe(B9(r,`path`,`filePath`,`file`)):a.phase===`browsing`&&(a.detail=lSe(B9(r,`url`,`href`))),(i.category===`command`||i.action===`search`)&&delete a.detail,a}function fSe(e){let t=z9(e),n=B9(t,`stage`)?.toLowerCase(),r=n===`compaction`?`compacting`:n===`planning`?`planning`:n===`research`||n===`search`?`researching`:n===`verification`||n===`running`?`running`:n===`waiting`||n===`clarifying`?`waiting`:`preparing`,i=Number(t.completed),a=Number(t.total);return{phase:r,...Number.isFinite(i)&&i>=0?{completed:i}:{},...Number.isFinite(a)&&a>0?{total:a}:{}}}function V9(e){return e&&typeof e==`object`?e:{}}function H9(e){return typeof e==`string`&&e.trim()?e.trim():void 0}function U9(e){let t=H9(e)?.replace(/```[\s\S]*?```/g,``).replace(/[`*_#>\[\]]/g,``).replace(/https?:\/\/\S+/g,``).replace(/(?:token|authorization|api[_-]?key|password|secret)\s*[:=].*/gi,`[redacted]`).replace(/\s+/g,` `).trim();return t?t.slice(0,96):void 0}var pSe=new Set([`working`,`waiting`,`success`,`error`]),mSe=new Set([`making_progress`,`waiting_safely`,`completed`,`work_preserved`,`details_available`]),W9=new Set([`open_session`,`confirm`,`review_error`]);function hSe(e){let t=V9(e);if(t.version!==2||!pSe.has(String(t.taskState))||t.sensitivity!==`public`&&t.sensitivity!==`private`)return;let n=V9(t.nextAction),r=W9.has(String(n.type))&&W9.has(String(n.label))?{type:String(n.type),label:String(n.label)}:void 0,i=V9(t.progress),a=typeof i.completed==`number`&&typeof i.total==`number`&&i.total>0?{completed:i.completed,total:i.total}:void 0,o=mSe.has(String(t.reassurance))?t.reassurance:void 0,s=t.sensitivity===`public`?U9(t.publicSummary):void 0;return{version:2,taskState:String(t.taskState),sensitivity:t.sensitivity,...o?{reassurance:o}:{},...r?{nextAction:r}:{},...a?{progress:a}:{},...s?{publicSummary:s}:{}}}function gSe(e,t,n,r){if(!e.sessionKey)return null;let i=V9(e.event),a=V9(i.payload),o=H9(i.type);if(!o)return null;let s=H9(i.runId)??`active`,c={sessionKey:e.sessionKey,runId:s,sessionLabel:n,sequence:t,timestamp:Date.now()},l=hSe(a.petFeedback??i.petFeedback),u=l?l.publicSummary:U9(a.publicSummary??i.publicSummary);if(o===`run_start`)return{...c,state:`running`,phase:`preparing`,action:r.tipRunStart,animation:`prepare`,priority:`low`};if(o===`tool_start`||o===`tool_update`){let e=H9(i.toolName)??H9(a.toolName)??`tool`,t=V9(a.activity),n=typeof t.category==`string`&&typeof t.action==`string`?t:void 0,o=dSe(e,a.args,n),s=o.phase??`running`,l=oSe(r,e,s,o.detail,n);return{...c,state:`running`,phase:s,...l,detail:o.detail}}if(o===`progress`||o===`compaction`){let e=o===`compaction`?{phase:`compacting`}:fSe(a),t=e.phase??`preparing`,n=sSe(r,t,e.completed,e.total);return{...c,state:`running`,phase:t,...n,feedback:l,progress:l?.progress??(typeof e.completed==`number`&&typeof e.total==`number`?{completed:e.completed,total:e.total}:void 0)}}if(o===`clarify_request`)return{...c,state:`waiting`,phase:`waiting`,action:r.tipWaiting,animation:`wait`,priority:`high`,publicSummary:u,feedback:l};if(o===`assistant_delta`)return{...c,state:`running`,phase:`running`,action:r.tipAssistantDelta,animation:`create`,priority:`low`};if(o===`command_output_delta`)return{...c,state:`running`,phase:`running`,action:r.tipCommandDelta,animation:`execute`,priority:`low`};if(o===`assistant_message_end`)return{...c,state:`running`,phase:`running`,action:r.tipAssistantDone,animation:`create`,priority:`normal`,publicSummary:u};if(o===`run_end`){let e=l?.taskState===`error`?`error`:`success`;return{...c,state:e,phase:e===`error`?`waiting`:`running`,action:e===`error`?r.tipError:r.tipComplete,animation:e===`error`?`concern`:`success`,priority:`high`,publicSummary:u,feedback:l}}return o===`error`?{...c,state:`error`,phase:`waiting`,action:r.tipError,animation:`concern`,priority:`high`,publicSummary:u,feedback:l}:null}function _Se(e){return{searchedWeb:e.toolActionSearch,searchedMemory:e.toolActionSearchMemory,searchedCode:e.toolActionSearchCode,searched:e.toolActionSearchGeneric,readFile:e.toolActionReadFile,runCommand:e.toolActionRunCommand,updatePlan:e.toolActionUpdatePlan,listDirectory:e.toolActionListDirectory,writeFile:e.toolActionWriteFile,editFile:e.toolActionEditFile,openUrl:e.toolActionOpenUrl,fetchUrl:e.toolActionFetchUrl,unknownTool:e.toolActionUnknownNamed,tipRunStart:e.tipRunStart,tipTool:e.tipTool,tipProgress:e.tipProgress,tipValidate:e.tipValidate,tipWaiting:e.tipWaiting,tipAssistantDelta:e.tipAssistantDelta,tipCommandDelta:e.tipCommandDelta,tipAssistantDone:e.tipAssistantDone,tipComplete:e.tipComplete,tipError:e.tipError,targetSuffix:e.tipTargetSuffix,progressSuffix:e.tipProgressSuffix}}function vSe(){let e=(0,Q.c)(8),t=I(xSe),n;e[0]===t?n=e[1]:(n=j(t),e[0]=t,e[1]=n);let r=n.desktopPet,i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=new Map,e[2]=i):i=e[2];let a=(0,Z.useRef)(i),o;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=new Map,e[3]=o):o=e[3];let s=(0,Z.useRef)(o),c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=new Map,e[4]=c):c=e[4];let l=(0,Z.useRef)(c),u=(0,Z.useRef)(null),d,f;return e[5]===r?(d=e[6],f=e[7]):(d=()=>{let e=window.electronAPI?.pet;if(!$E()||!e)return;let t=()=>{u.current=null;for(let t of l.current.values())e.sendEvent(t);l.current.clear()},n=e=>{let t=s.current.get(e);if(t)return t;let n=L(z(`/api/sessions/${encodeURIComponent(e)}?offset=0&limit=1`)).then(bSe).catch(ySe);return n.then(t=>{t&&s.current.set(e,Promise.resolve(t))}),n},i=async e=>{let i=e.detail;if(!i.sessionKey)return;let o=await n(i.sessionKey)??r.fallbackSessionLabel,s=(a.current.get(i.sessionKey??``)??0)+1,c=gSe(i,s,o,_Se(r));c&&(a.current.set(c.sessionKey,s),l.current.set(c.sessionKey,c),c.state===`error`||c.state===`waiting`||c.state===`success`?t():u.current===null&&(u.current=window.setTimeout(t,500)))};return window.addEventListener(`agent-stream-event`,i),()=>{window.removeEventListener(`agent-stream-event`,i),u.current!==null&&window.clearTimeout(u.current)}},f=[r],e[5]=r,e[6]=d,e[7]=f),(0,Z.useEffect)(d,f),null}function ySe(){}async function bSe(e){return e.ok?(await e.json()).session?.name?.trim():void 0}function xSe(e){return e.language}async function SSe(e){let t=await L(e);if(!t.ok){let e=await t.json().catch(()=>({})),n=N(t.status,t.statusText,e.error?.message);throw Error(n)}return t.json()}function CSe(e){let t=(0,Q.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={fetcher:SSe,revalidateOnFocus:!1,dedupingInterval:2e3,shouldRetryOnError:!0,errorRetryCount:2},t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,$.jsx)(Se,{value:r,children:n}),t[1]=n,t[2]=i),i}var wSe=(0,Z.lazy)(()=>oO().then(e=>({default:e.SessionsPage}))),TSe=(0,Z.lazy)(()=>sO().then(e=>({default:e.AutomationsPage}))),ESe=(0,Z.lazy)(()=>cO().then(e=>({default:e.BrowserWorkflowsPage}))),DSe=(0,Z.lazy)(()=>lO().then(e=>({default:e.HomePage}))),OSe=(0,Z.lazy)(()=>uO().then(e=>({default:e.TaskDetailPage}))),kSe=(0,Z.lazy)(()=>dO().then(e=>({default:e.ProjectsPage}))),G9=(0,Z.lazy)(()=>fO().then(e=>({default:e.ProjectDetailPage}))),K9=(0,Z.lazy)(()=>pO().then(e=>({default:e.NotesPage}))),ASe=(0,Z.lazy)(()=>mO().then(e=>({default:e.WorkflowsPage}))),jSe=(0,Z.lazy)(()=>mO().then(e=>({default:e.WorkflowDetailPage}))),q9=(0,Z.lazy)(()=>mO().then(e=>({default:e.WorkflowEditorPage}))),MSe=(0,Z.lazy)(()=>mO().then(e=>({default:e.WorkflowRunPage}))),NSe=(0,Z.lazy)(()=>hO().then(e=>({default:e.SkillsPage}))),PSe=(0,Z.lazy)(()=>gO().then(e=>({default:e.UserContextPage}))),FSe=(0,Z.lazy)(()=>_O().then(e=>({default:e.ConnectorsPage}))),ISe=(0,Z.lazy)(()=>vO().then(e=>({default:e.LogsPage}))),LSe=(0,Z.lazy)(()=>yO().then(e=>({default:e.SettingsPage}))),RSe=(0,Z.lazy)(()=>zO().then(e=>({default:e.CapabilitiesSettingsPanel}))),J9=(0,Z.lazy)(()=>bO().then(e=>({default:e.AgentsSettingsPanel}))),zSe=(0,Z.lazy)(()=>xO().then(e=>({default:e.AgentBrowserSettingsPage}))),Y9=(0,Z.lazy)(()=>SO().then(e=>({default:e.ChannelsSettingsPanel}))),BSe=(0,Z.lazy)(()=>CO().then(e=>({default:e.ExtensionsPage}))),X9=(0,Z.lazy)(()=>wO().then(e=>({default:e.ExtensionPage}))),Z9=(0,Z.lazy)(()=>TO().then(e=>({default:e.ExtensionSettingsPage}))),VSe=(0,Z.lazy)(()=>EO().then(e=>({default:e.ExtensionDebugPage}))),HSe=(0,Z.lazy)(()=>DO().then(e=>({default:e.SharePreviewPage}))),USe=(0,Z.lazy)(()=>c(()=>import(`./desktop-pet-CsLR4pWB.js`).then(e=>({default:e.DesktopPetPage})),__vite__mapDeps([102,1,2,6,7,80,8]))),WSe=(0,Z.lazy)(()=>OO().then(e=>({default:e.LocalAppsPage}))),GSe=(0,Z.lazy)(()=>kO().then(e=>({default:e.LocalAppWorkbenchPage}))),KSe=(0,Z.lazy)(()=>AO().then(e=>({default:e.ProductOpenPage}))),qSe=(0,Z.lazy)(()=>jO().then(e=>({default:e.WorkDiscoveryPage})));function Q9(){let e=(0,Q.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(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)(BN,{className:`h-5 w-44`}),(0,$.jsx)(BN,{className:`h-3 w-64 max-w-full`})]}),(0,$.jsx)(BN,{className:`h-9 w-24 shrink-0 rounded-lg`})]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-4`,children:Array.from({length:4}).map(YSe)}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col bg-surface-panel`,"aria-busy":!0,children:(0,$.jsxs)(`div`,{className:`flex w-full flex-col gap-5 px-3 py-6 sm:px-5 xl:px-6`,children:[t,n,(0,$.jsx)(`div`,{className:`grid gap-3 lg:grid-cols-3`,children:Array.from({length:6}).map(JSe)})]})}),e[2]=r):r=e[2],r}function JSe(e,t){return(0,$.jsx)(BN,{className:`h-36 rounded-lg`},t)}function YSe(e,t){return(0,$.jsx)(BN,{className:`h-20 rounded-lg`},t)}function $9(){let e=(0,Q.c)(4),t,n,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(BN,{className:`h-8 w-48 max-w-full`}),n=(0,$.jsx)(BN,{className:`mt-6 h-36 rounded-xl`}),r=(0,$.jsx)(BN,{className:`mt-4 h-24 rounded-xl`}),e[0]=t,e[1]=n,e[2]=r):(t=e[0],n=e[1],r=e[2]);let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col`,"aria-busy":!0,children:(0,$.jsxs)(`div`,{className:`w-full flex-1 px-3 py-8 sm:px-5 xl:px-6`,children:[t,n,r,(0,$.jsxs)(`div`,{className:`mt-6 grid gap-3 sm:grid-cols-2`,children:[(0,$.jsx)(BN,{className:`h-20 rounded-xl`}),(0,$.jsx)(BN,{className:`h-20 rounded-xl`})]})]})}),e[3]=i):i=e[3],i}var XSe=v([{path:`/desktop-pet`,element:(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(USe,{})})},{path:`/share/:token`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(HSe,{})})},{path:`/`,element:(0,$.jsx)(Ghe,{}),children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(DSe,{})})},{path:`open`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(KSe,{})})},{path:`onboarding/workspace`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(qSe,{})})},{path:`chat`,element:(0,$.jsx)(rSe,{}),children:[{path:iSe,element:(0,$.jsx)(nSe,{})}]},{path:`automations`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(TSe,{})})},{path:`browser-workflows`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(ESe,{})})},{path:`you`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(PSe,{})})},{path:`tasks/:taskId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(OSe,{})})},{path:`projects`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(kSe,{})})},{path:`:projectId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(G9,{})})},{path:`:projectId/:tabId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(G9,{})})},{path:`:projectId/notes/:noteId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(G9,{})})}]},{path:`notes`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(K9,{})})},{path:`:noteId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(K9,{})})}]},{path:`workflows`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(ASe,{})})},{path:`new`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(q9,{})})},{path:`runs/:runId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(MSe,{})})},{path:`:definitionId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(jSe,{})})},{path:`:definitionId/edit`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(q9,{})})}]},{path:`skills`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(NSe,{})})},{path:`connectors`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(FSe,{})})},{path:`channels`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Y9,{})})},{path:`:channelId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Y9,{})})}]},{path:`agents`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(J9,{})})},{path:`agents/:agentId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(J9,{})})},{path:`extensions`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(BSe,{})})},{path:`local-apps`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(WSe,{})})},{path:`:appId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(GSe,{})})}]},{path:`extensions/:extensionId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(X9,{})})},{path:`extensions/:extensionId/:pageId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(X9,{})})},{path:`settings`,element:(0,$.jsx)(_ge,{children:(0,$.jsx)(fge,{})}),children:[{index:!0,element:(0,$.jsx)(_,{to:`overview`,replace:!0})},{path:`sessions`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(wSe,{})})},{path:`logs`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(ISe,{})})},{path:`agent-browser`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)($9,{}),children:(0,$.jsx)(zSe,{})})},{path:`capabilities/:capability`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)($9,{}),children:(0,$.jsx)(RSe,{})})},{path:`extensions/debug`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)($9,{}),children:(0,$.jsx)(VSe,{})})},{path:`ext/:extensionId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)($9,{}),children:(0,$.jsx)(Z9,{})})},{path:`ext/:extensionId/:panelId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)($9,{}),children:(0,$.jsx)(Z9,{})})},{path:`:section`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)($9,{}),children:(0,$.jsx)(LSe,{})})}]}]}]);function ZSe(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,Z.useEffect)(QSe,t),null}function QSe(){let e=W.persist.onFinishHydration(eCe),t=CT.persist.onFinishHydration($Se),n=V(),r=G();return()=>{e?.(),t?.(),n(),r()}}function $Se(){wT()}function eCe(){K()}function tCe(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(ZSe,{}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(CSe,{children:(0,$.jsx)(uN,{children:(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[t,(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col *:min-h-0 *:flex-1`,children:[(0,$.jsx)(vSe,{}),(0,$.jsx)(Ge,{router:XSe})]})]})})}),e[1]=n):n=e[1],n}P(H()),ee(),ST();async function nCe(){await M(),(0,Ke.createRoot)(document.getElementById(`root`)).render((0,$.jsx)(Z.StrictMode,{children:(0,$.jsx)(tCe,{})}))}nCe();export{vhe as $,Pk as $a,Ag as $c,gR as $i,Ds as $l,Ode as $n,hE as $o,wX as $r,Xy as $s,xpe as $t,Tye as A,hP as Aa,fy as Ac,aB as Ai,of as Al,mfe as An,UO as Ao,xQ as Ar,XC as As,qme as At,hn as Au,Dye as B,cN as Ba,jv as Bc,IR as Bi,bu as Bl,L3 as Bn,UD as Bo,uQ as Br,SS as Bs,Pme as Bt,hxe as C,GL as Ca,by as Cc,MG as Ci,vp as Cl,u6 as Cn,PO as Co,hQ as Cr,nT as Cs,Y8 as Ct,Gr as Cu,e9 as D,aI as Da,gy as Dc,OV as Di,Ff as Dl,_fe as Dn,BO as Do,OQ as Dr,Aw as Ds,Kme as Dt,Dn as Du,uxe as E,_I as Ea,_y as Ec,DV as Ei,zf as El,Ofe as En,KO as Eo,wQ as Er,Mw as Es,W8 as Et,jn as Eu,F7 as F,_N as Fa,ny as Fc,Gz as Fi,Ku as Fl,vfe as Fn,LD as Fo,cQ as Fr,pC as Fs,R8 as Ft,Je as Fu,Z5 as G,jk as Ga,s_ as Gc,SR as Gi,Zc as Gl,Yde as Gn,qE as Go,GZ as Gr,dx as Gs,p8 as Gt,S7 as H,TA as Ha,vv as Hc,TR as Hi,Dl as Hl,Xde as Hn,$E as Ho,tQ as Hr,Px as Hs,w8 as Ht,Oye as I,gN as Ia,ty as Ic,Hz as Ii,Bu as Il,wfe as In,iO as Io,aQ as Ir,aC as Is,L8 as It,p5 as J,xk as Ja,qg as Jc,wR as Ji,Ec as Jl,Lde as Jn,UE as Jo,kZ as Jr,Cb as Js,lpe as Jt,H5 as K,wk as Ka,Zg as Kc,bR as Ki,Nc as Kl,E3 as Kn,HE as Ko,YZ as Kr,Ab as Ks,ame as Kt,wye as L,fN as La,Xv as Lc,zz as Li,Iu as Ll,gfe as Ln,YD as Lo,lQ as Lr,XS as Ls,I8 as Lt,yye as M,HN as Ma,ly as Mc,iB as Mi,Ld as Ml,xfe as Mn,NO as Mo,iQ as Mr,yC as Ms,V8 as Mt,qt as Mu,Eye as N,BN as Na,sy as Nc,oB as Ni,ld as Nl,yfe as Nn,WO as No,fQ as Nr,vC as Ns,H8 as Nt,Gt as Nu,ube as O,rI as Oa,hy as Oc,Jz as Oi,Of as Ol,Cfe as On,HO as Oo,_Q as Or,Ow as Os,Jme as Ot,bn as Ou,Cye as P,zN as Pa,oy as Pc,Kz as Pi,ad as Pl,bfe as Pn,IO as Po,nQ as Pr,_C as Ps,U8 as Pt,et as Pu,bhe as Q,Mk as Qa,jg as Qc,_R as Qi,As as Ql,Mde as Qn,xE as Qo,XX as Qr,Zy as Qs,ppe as Qt,kye as R,mN as Ra,zv as Rc,Nz as Ri,Du as Rl,Dfe as Rn,nO as Ro,rQ as Rr,YS as Rs,N8 as Rt,xxe as S,ZL as Sa,xy as Sc,AG as Si,Ep as Sl,E6 as Sn,RO as So,gQ as Sr,$w as Ss,rhe as St,fi as Su,bxe as T,II as Ta,vy as Tc,QW as Ti,Uf as Tl,hfe as Tn,LO as To,CQ as Tr,Yw as Ts,Yme as Tt,Ln as Tu,t7 as U,Xk as Ua,dv as Uc,jR as Ui,dl as Ul,M3 as Un,KE as Uo,ZZ as Ur,Nx as Us,cme as Ut,xye as V,XA as Va,Ev as Vc,DR as Vi,ou as Vl,P3 as Vn,eO as Vo,sQ as Vr,pS as Vs,D8 as Vt,Q5 as W,zk as Wa,lv as Wc,CR as Wi,tl as Wl,N3 as Wn,WE as Wo,KZ as Wr,hx as Ws,lme as Wt,whe as X,Tk as Xa,Hg as Xc,AR as Xi,tc as Xl,Dde as Xn,vE as Xo,vZ as Xr,mb as Xs,cpe as Xt,s5 as Y,Ak as Ya,Kg as Yc,OR as Yi,Sc as Yl,Nde as Yn,OE as Yo,EZ as Yr,_b as Ys,spe as Yt,Che as Z,Ck as Za,Lg as Zc,vR as Zi,Hs as Zl,T3 as Zn,wE as Zo,eZ as Zr,rb as Zs,H6 as Zt,lxe as _,qL as _a,Ey as _c,TK as _i,Pm as _l,M6 as _n,ok as _o,k1 as _r,oT as _s,ahe as _t,Ti as _u,N9 as a,lR as aa,Uy as ac,rq as ai,sg as al,vpe as an,mk as ao,G4 as ar,lE as as,ghe as at,cs as au,Sxe as b,UL as ba,Cy as bc,SK as bi,Sm as bl,Qfe as bn,nk as bo,AQ as br,tT as bs,Z8 as bt,Si as bu,Lxe as c,HL as ca,zy as cc,YK as ci,kh as cl,upe as cn,rk as co,H4 as cr,tE as cs,n5 as ct,Bo as cu,h9 as d,QL as da,Iy as dc,XK as di,xh as dl,_pe as dn,ak as do,E0 as dr,TT as ds,Q8 as dt,go as du,cR as ea,Yy as ec,cX as ei,Og as el,bpe as en,Ok as eo,Fde as er,gE as es,o5 as et,xs as eu,dxe as f,KL as fa,Ny as fc,BK as fi,vh as fl,ape as fn,vk as fo,e0 as fr,mT as fs,$8 as ft,ho as fu,vxe as g,IL as ga,Oy as gc,EK as gi,Jm as gl,R6 as gn,uk as go,P1 as gr,sT as gs,fhe as gt,Ei as gu,m9 as h,XL as ha,ky as hc,AK as hi,$m as hl,L6 as hn,pk as ho,N1 as hr,pT as hs,e5 as ht,Li as hu,P9 as i,dR as ia,Gy as ic,iq as ii,cg as il,V6 as in,lk as io,jde as ir,sE as is,mhe as it,fs as iu,bye as j,gP as ja,dy as jc,rB as ji,Kd as jl,a6 as jn,VO as jo,pQ as jr,BC as js,Xme as jt,fn as ju,I7 as k,oP as ka,my as kc,qz as ki,vf as kl,Sfe as kn,FO as ko,TQ as kr,cw as ks,G8 as kt,yn as ku,T9 as l,RL as la,Ry as lc,QK as li,Dh as ll,Spe as ln,hk as lo,q4 as lr,QT as ls,i5 as lt,zo as lu,yxe as m,LL as ma,jy as mc,IK as mi,ih as ml,z6 as mn,gk as mo,X1 as mr,gT as ms,phe as mt,Ki as mu,F9 as n,aR as na,qy as nc,lX as ni,vg as nl,ope as nn,kk as no,Pde as nr,fE as ns,xhe as nt,vs as nu,Rxe as o,fR as oa,Hy as oc,nq as oi,og as ol,ype as on,dk as oo,K4 as or,rE as os,hhe as ot,as as ou,gxe as p,FL as pa,My as pc,KK as pi,hh as pl,npe as pn,_k as po,n0 as pr,hT as ps,uhe as pt,fo as pu,P5 as q,Sk as qa,Xg as qc,kR as qi,Dc as ql,Ide as qn,GE as qo,qZ as qr,Db as qs,jpe as qt,I9 as r,rR as ra,Ky as rc,eX as ri,ug as rl,dpe as rn,fk as ro,Ade as rr,cE as rs,She as rt,_s as ru,E9 as s,tR as sa,By as sc,ZK as si,Fh as sl,mpe as sn,bk as so,W4 as sr,nE as ss,r5 as st,Yo as su,R9 as t,sR as ta,Jy as tc,uX as ti,Cg as tl,fpe as tn,Nk as to,kde as tr,_E as ts,yhe as tt,bs as tu,g9 as u,YL as ua,Ly as uc,JK as ui,wh as ul,U6 as un,ik as uo,U4 as ur,eE as us,lhe as ut,Ao as uu,pxe as v,PL as va,Ty as vc,wK as vi,Mm as vl,A6 as vn,yk as vo,w1 as vr,aT as vs,dhe as vt,wi as vu,fxe as w,BL as wa,yy as wc,TG as wi,Xf as wl,l6 as wn,GO as wo,mQ as wr,Zw as ws,the as wt,dr as wu,mxe as x,JL as xa,Sy as xc,CK as xi,Kp as xl,P6 as xn,tk as xo,bQ as xr,Qw as xs,X8 as xt,xi as xu,_xe as y,WL as ya,wy as yc,xK as yi,jm as yl,j6 as yn,ck as yo,kQ as yr,rT as ys,nhe as yt,Ci as yu,Sye as z,oN as za,Rv as zc,xz as zi,Eu as zl,R3 as zn,GD as zo,oQ as zr,BS as zs,F8 as zt};
|