decocms 4.513.3 → 4.513.5
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/client/assets/{ActiveShapeUtils-CV2gQvF0.js → ActiveShapeUtils-ZRNWCZWq.js} +1 -1
- package/dist/client/assets/{AlertCircle-Czw3GOXM.js → AlertCircle-CcVhl96j.js} +1 -1
- package/dist/client/assets/{AreaChart-BhM70eeA.js → AreaChart-BlLvjs0A.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CBNZ6Kc8.js → ArrowLeft-Bph0OW09.js} +1 -1
- package/dist/client/assets/{ArrowUp-D1TV4x6T.js → ArrowUp-DHpvU3H5.js} +1 -1
- package/dist/client/assets/{BarChart-BV8WJLUg.js → BarChart-CLaD079J.js} +1 -1
- package/dist/client/assets/{Building02-BufOoi54.js → Building02-C1Q8doPE.js} +1 -1
- package/dist/client/assets/{CartesianChart-ButQNI6T.js → CartesianChart-B72NH8Np.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CU6wjw2Q.js → CategoricalChart-DG6BKu5a.js} +1 -1
- package/dist/client/assets/{CheckCircle-C6kHCEBQ.js → CheckCircle-CQsC-Pz6.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CREWgR2i.js → ChevronSelectorVertical-CaNDzI1v.js} +1 -1
- package/dist/client/assets/{ChevronUp-DZ6u-CDn.js → ChevronUp-BruZRzgU.js} +1 -1
- package/dist/client/assets/{Copy01-Br8MuAU9.js → Copy01-XsrxN5V9.js} +1 -1
- package/dist/client/assets/{CreditCard01-BLe5-9IQ.js → CreditCard01-DD6f0NE9.js} +1 -1
- package/dist/client/assets/{DotsVertical-DgdCLmlp.js → DotsVertical-DdEm5Yv0.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-D8FHRXZQ.js → ErrorBarContext-D6UYrmJv.js} +1 -1
- package/dist/client/assets/{Globe04-BkNwdwoM.js → Globe04-BHgzUZy8.js} +1 -1
- package/dist/client/assets/{Image01-DxuLkpjX.js → Image01-Ca0i2mzS.js} +1 -1
- package/dist/client/assets/{Key01-Qdm6kw39.js → Key01-Bv_pipnz.js} +1 -1
- package/dist/client/assets/{Link01-B4M7ojFg.js → Link01-vSc5x3Bn.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CJN7aOrV.js → LinkBroken01-C8p4Wo5b.js} +1 -1
- package/dist/client/assets/{Monitor01-CHS3e170.js → Monitor01--o8UwWGt.js} +1 -1
- package/dist/client/assets/{Play-Da27xlG_.js → Play-Cf-3VNEt.js} +1 -1
- package/dist/client/assets/{Plus-D0ucptrV.js → Plus-BPcCtngU.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CoS52beo.js → ReferenceLine-CZu5hBwf.js} +1 -1
- package/dist/client/assets/{SearchMd-0qnilUuy.js → SearchMd-DqEK_DOV.js} +1 -1
- package/dist/client/assets/{Sector-CKh2L0yG.js → Sector-DdZAGjV7.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DV74WoBV.js → ShoppingBag01-PFUS9e0t.js} +1 -1
- package/dist/client/assets/{Sun-D0O3J2yf.js → Sun-eU5CLU87.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Ba0pyLay.js → SwitchHorizontal01-BGjFR9KE.js} +1 -1
- package/dist/client/assets/{Tool01-C0454p2c.js → Tool01-Ug2p294_.js} +1 -1
- package/dist/client/assets/{Trash01-CyxedK0n.js → Trash01-Xpxk5zpI.js} +1 -1
- package/dist/client/assets/{Upload01-BWpYXx52.js → Upload01-D14Q1k_-.js} +1 -1
- package/dist/client/assets/{User01-Bb04dh7g.js → User01-tGRdCp2F.js} +1 -1
- package/dist/client/assets/{UserSquare-B_weldPC.js → UserSquare-C_0nfX2V.js} +1 -1
- package/dist/client/assets/{Users01-CNd-hMC8.js → Users01-DxA_yIKK.js} +1 -1
- package/dist/client/assets/{XClose-BeqwQ2Ei.js → XClose-CRuXcWlf.js} +1 -1
- package/dist/client/assets/{ZoomOut-DWT1qHXA.js → ZoomOut-BKkBz5Lz.js} +1 -1
- package/dist/client/assets/{access-gate-mycOF7cD.js → access-gate-DQGa34O6.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BkWp2fK0.js → add-connection-dialog-CrxqWLHC.js} +1 -1
- package/dist/client/assets/{agent-analytics-B5byH36W.js → agent-analytics-BsXr7E0h.js} +1 -1
- package/dist/client/assets/agent-app-CScNEVjT.js +1 -0
- package/dist/client/assets/{agent-assets-pGTlMleF.js → agent-assets-Nmgl0Bht.js} +1 -1
- package/dist/client/assets/{agent-automation-D5u89G2_.js → agent-automation-KIw24kwd.js} +1 -1
- package/dist/client/assets/{agent-automations-C4_XXiyv.js → agent-automations-DzZ1KR2l.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-C5p-0QMu.js → agent-connect-sources-CS1Fawlh.js} +1 -1
- package/dist/client/assets/agent-deck-DnVf6eXY.js +1 -0
- package/dist/client/assets/{agent-e2e-Ce5bkH9z.js → agent-e2e-jRzRvCKY.js} +1 -1
- package/dist/client/assets/{agent-experiments-D4NapCfE.js → agent-experiments-B-k5fGOU.js} +1 -1
- package/dist/client/assets/agent-file-alt93QCe.js +1 -0
- package/dist/client/assets/{agent-hosting-ftgEMkT0.js → agent-hosting-BPzlodMl.js} +1 -1
- package/dist/client/assets/{agent-icon-C0Cpk_fI.js → agent-icon-DeF-Pwnu.js} +1 -1
- package/dist/client/assets/agent-library-e6Q9kL87.js +1 -0
- package/dist/client/assets/agent-library-file-DuAVI14c.js +1 -0
- package/dist/client/assets/{agent-monitor-C-1u284m.js → agent-monitor-CIHPsQTo.js} +1 -1
- package/dist/client/assets/{agent-overview-B5DYE-Ji.js → agent-overview-yYINKyA5.js} +1 -1
- package/dist/client/assets/{agent-releases-aHzQJT8R.js → agent-releases-DsfoHksu.js} +1 -1
- package/dist/client/assets/agent-settings-CsjZAmMJ.js +1 -0
- package/dist/client/assets/agent-site-editor-code-CTL6nplL.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DyDxJPiY.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-sckNqSpj.js +1 -0
- package/dist/client/assets/{agent-site-editor-CPMVDSTZ.js → agent-site-editor-ucf0POve.js} +1 -1
- package/dist/client/assets/agent-view-CSLmaEfT.js +1 -0
- package/dist/client/assets/{agent-view-guard-DNE4CXyR.js → agent-view-guard-CalJ4-cy.js} +1 -1
- package/dist/client/assets/{agents-list-BeohBYvm.js → agents-list-DGfxOrSx.js} +1 -1
- package/dist/client/assets/{ai-providers-BYfFnvED.js → ai-providers-BNG3Pq5o.js} +1 -1
- package/dist/client/assets/{alert-fFwi0Rct.js → alert-Doqmk56v.js} +1 -1
- package/dist/client/assets/{alert-dialog-DBOmU5EL.js → alert-dialog-DlwY2mBI.js} +1 -1
- package/dist/client/assets/{analytics-sections-BSFzvx60.js → analytics-sections-Dd9YiSBR.js} +1 -1
- package/dist/client/assets/{api-keys-CjBRjWKE.js → api-keys-1ccIE6pI.js} +1 -1
- package/dist/client/assets/api-keys-B0NOOdkt.js +1 -0
- package/dist/client/assets/{app-editor-9oqlCdGz.js → app-editor-BIue3kOR.js} +1 -1
- package/dist/client/assets/{asset-utils-DRLxCAgr.js → asset-utils-2OOO4Yxi.js} +1 -1
- package/dist/client/assets/{auth-BPJq9uZN.js → auth-BdGh-8AS.js} +1 -1
- package/dist/client/assets/{auth-catchall-D2arJj-l.js → auth-catchall-eV8hRYix.js} +1 -1
- package/dist/client/assets/{auth-entry-BUYS1aRG.js → auth-entry-CWOOzYKd.js} +1 -1
- package/dist/client/assets/{auth-split-layout-B60d6um2.js → auth-split-layout-DU8QZJ8d.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CEKJsXYr.js → authenticate-and-persist-oauth-nsYJn_2g.js} +1 -1
- package/dist/client/assets/{automation-list-row-BKl9kQg2.js → automation-list-row-19GG3R6A.js} +1 -1
- package/dist/client/assets/{automation-runs-Bc4ZG8Cd.js → automation-runs-dSOAvyQz.js} +1 -1
- package/dist/client/assets/{automations-Byx2iIlC.js → automations-DNcjd_bB.js} +1 -1
- package/dist/client/assets/{autosend-BRrz2Y4f.js → autosend-BtiCWD94.js} +1 -1
- package/dist/client/assets/{avatar--bVWjvdf.js → avatar-DQNWmybT.js} +1 -1
- package/dist/client/assets/{badge-O9zNBxIS.js → badge-MCqrr8fM.js} +1 -1
- package/dist/client/assets/{block-document-EMb4OAJD.js → block-document-DQPZERUD.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CswMFv9v.js → blocks-preview-workspace-context-DVjcSoNC.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-CXGOEMTq.js → blocks-tab-states-DzpOdO2C.js} +3 -3
- package/dist/client/assets/{blog-schema-BBgfoIQP.js → blog-schema-aRJCR6HM.js} +1 -1
- package/dist/client/assets/{board-analytics-BnyzhqyI.js → board-analytics-BI7gAn9b.js} +1 -1
- package/dist/client/assets/{buckets-CScAlRwn.js → buckets-VKui74jg.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DZKU2eq8.js → build-improve-prompt-doc-B5xD6YpI.js} +1 -1
- package/dist/client/assets/{calendar-DsjGYQg2.js → calendar-NDXBts7_.js} +1 -1
- package/dist/client/assets/{capability-load-error-D5sZmG67.js → capability-load-error-BuYxZf-L.js} +1 -1
- package/dist/client/assets/{category-editor-TdrhQc2d.js → category-editor-DaVXWcjz.js} +1 -1
- package/dist/client/assets/{chart-CdJbyFrF.js → chart-BQCQoKhk.js} +1 -1
- package/dist/client/assets/{chat-context-Dnn7Mdeu.js → chat-context-CGgDKLoI.js} +1 -1
- package/dist/client/assets/{chat-draft-QF0rnEVx.js → chat-draft-BLQR50du.js} +1 -1
- package/dist/client/assets/{checkbox-_9cHZuVh.js → checkbox-Dkp4p5XQ.js} +1 -1
- package/dist/client/assets/{choose-editor-DjeEuPt0.js → choose-editor-Dl5YQ9PQ.js} +1 -1
- package/dist/client/assets/{cli-auth-success-s_E43D3X.js → cli-auth-success-yfNGYJu1.js} +1 -1
- package/dist/client/assets/{client-icons-CnZ15Laz.js → client-icons-B_zKBg36.js} +1 -1
- package/dist/client/assets/cms-settings-editor-BN72z7zx.js +1 -0
- package/dist/client/assets/{collapsible-CzHslCH_.js → collapsible-DC7y5Los.js} +1 -1
- package/dist/client/assets/{collection-detail-DRUItL6q.js → collection-detail-DlDT6vQ9.js} +1 -1
- package/dist/client/assets/{collection-display-button-BLKqGGaY.js → collection-display-button-CLVPueRo.js} +1 -1
- package/dist/client/assets/{collection-search-BiaY0GVT.js → collection-search-By8NjPfM.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-ymUDH0Iy.js → collection-table-wrapper-B4h8x2dc.js} +1 -1
- package/dist/client/assets/{collection-tabs-BLEBGgk-.js → collection-tabs-mcOoP5Dy.js} +1 -1
- package/dist/client/assets/{column-rules-B7xl4xQZ.js → column-rules-CsMTnhOl.js} +1 -1
- package/dist/client/assets/{combobox-CdVSN4C-.js → combobox-ub2_k_zt.js} +1 -1
- package/dist/client/assets/{coming-soon-page-DU1ARjbb.js → coming-soon-page-BYV_n6px.js} +1 -1
- package/dist/client/assets/{command-BwFTVPCg.js → command-D4hDkkTy.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-wyIo_eN7.js → companion-mcps-section-BSAJrsSk.js} +1 -1
- package/dist/client/assets/{config-D3pVqIKI.js → config-YgZ-3rie.js} +1 -1
- package/dist/client/assets/{connect-DBOmX-8C.js → connect-Ye3vTIux.js} +1 -1
- package/dist/client/assets/{connect-layout-BI0GOmFg.js → connect-layout-B_22_91k.js} +1 -1
- package/dist/client/assets/{connection-DdsAVMED.js → connection-L0IOnxQL.js} +1 -1
- package/dist/client/assets/{connection-card-DquRZmyq.js → connection-card-VTqJv3VR.js} +1 -1
- package/dist/client/assets/{connection-detail-C2_9jZRg.js → connection-detail-Cq27HXRr.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CppaGv96.js → connection-form-helpers-CGHpR5fJ.js} +1 -1
- package/dist/client/assets/{connections-CPYwbOBM.js → connections-7gS929_D.js} +1 -1
- package/dist/client/assets/{content-tab-BGK1XaKL.js → content-tab-aADEXlYN.js} +3 -3
- package/dist/client/assets/{context-D2VrQMS2.js → context-D0MYn7m7.js} +1 -1
- package/dist/client/assets/{context-menu-D1SjU6l-.js → context-menu-o9g6FS55.js} +1 -1
- package/dist/client/assets/{context-shell-CKI9uW2C.js → context-shell-CGEiLl4q.js} +3 -3
- package/dist/client/assets/{core.esm-DnTbXhD8.js → core.esm-BjDph18k.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BIJBsiHg.js → create-organization-dialog-DGSfBHq9.js} +1 -1
- package/dist/client/assets/{daily-pulse-Drk3CnaM.js → daily-pulse-B8CfUsCm.js} +1 -1
- package/dist/client/assets/{discover-BDubv_ZJ.js → discover-8XW9Qw09.js} +1 -1
- package/dist/client/assets/{domain-settings-CCe7QH7l.js → domain-settings-D0GFJxX4.js} +1 -1
- package/dist/client/assets/{drawer-CTSig7Vj.js → drawer-DlCF45Q0.js} +1 -1
- package/dist/client/assets/{editor-B8TTVjFi.js → editor-BdcTVQDa.js} +1 -1
- package/dist/client/assets/{editor-classes-BUSqIt7e.js → editor-classes-DZr3o3GG.js} +1 -1
- package/dist/client/assets/{empty-state-DIpCFPkI.js → empty-state-CGdhhxwn.js} +1 -1
- package/dist/client/assets/{empty-state-DweMe7pE.js → empty-state-gAZRZ0i8.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C2M3P64h.js → extract-connection-data-DXn9w9lL.js} +1 -1
- package/dist/client/assets/{feature-gate-hxH8uzOp.js → feature-gate-Bri_WNYh.js} +1 -1
- package/dist/client/assets/{feature-paywall-5JkjVbP-.js → feature-paywall-oJbClSRc.js} +1 -1
- package/dist/client/assets/{file-explorer-CsGruqCR.js → file-explorer-DU2mc2Lb.js} +1 -1
- package/dist/client/assets/{file-preview-ySEcJuT1.js → file-preview-D_biMFJs.js} +1 -1
- package/dist/client/assets/{file-share-button-BcJLFZEu.js → file-share-button-Ciq5jDCO.js} +1 -1
- package/dist/client/assets/{file-type-icon-CBmuqe9u.js → file-type-icon-YdZxxv_V.js} +1 -1
- package/dist/client/assets/flat-project-B6LNuW-w.js +1 -0
- package/dist/client/assets/{folder-icon-BbG7eONI.js → folder-icon-CM4478FY.js} +1 -1
- package/dist/client/assets/{form-CGiGUgzW.js → form-PY0dh9eA.js} +1 -1
- package/dist/client/assets/{general-40Wry3sr.js → general-BBEU5SQb.js} +1 -1
- package/dist/client/assets/{home-CuekDzCb.js → home-CRzzoJc4.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-Dj41Gksp.js → hosted-publish-feedback-B8yni-1P.js} +1 -1
- package/dist/client/assets/{icon-button-D0a6m1Sz.js → icon-button-bWdE1kh9.js} +1 -1
- package/dist/client/assets/{index-D_cOu6AK.js → index-2uTSdbBq.js} +1 -1
- package/dist/client/assets/{index-DMApSpFV.js → index-B95goRjI.js} +1 -1
- package/dist/client/assets/{index-fdN8eXM2.js → index-BRQYvW_2.js} +1 -1
- package/dist/client/assets/{index-CQodxdYF.js → index-BiYLgE9h.js} +1 -1
- package/dist/client/assets/{index-C5AhGK9V.js → index-C-FWiUeO.js} +3 -3
- package/dist/client/assets/{index-Ct79h6Jq.js → index-CHynF4t3.js} +1 -1
- package/dist/client/assets/{index-C1nhsm_w.js → index-CJni2i7d.js} +1 -1
- package/dist/client/assets/{index-FsB7lUoK.js → index-CV3tbWK4.js} +1 -1
- package/dist/client/assets/{index-DZWoZhT5.js → index-CoRXAeTB.js} +1 -1
- package/dist/client/assets/{index-BL53jR3y.js → index-D43cboe_.js} +1 -1
- package/dist/client/assets/{index-BgaKQ-Q-.js → index-DIHkisxi.js} +1 -1
- package/dist/client/assets/{index-eirpwNKj.js → index-DjAPw3FZ.js} +2 -2
- package/dist/client/assets/{index-DOjuGDiB.js → index-bCTed2tb.js} +1 -1
- package/dist/client/assets/{index-YSmMnHTP.js → index-d6hp7-E7.js} +1 -1
- package/dist/client/assets/{index-Cn8WHbCR.js → index-fwWRoUIR.js} +1 -1
- package/dist/client/assets/{index-redirect-Dk2uc0Gh.js → index-redirect-CDsFqeNY.js} +1 -1
- package/dist/client/assets/{index-CEYZyBqV.js → index-vepJw596.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-47K3Cxqe.js → infiniteQueryObserver-4ZDstsFa.js} +1 -1
- package/dist/client/assets/{infra-billing-CE_ELMRw.js → infra-billing-C2Fx7aIm.js} +1 -1
- package/dist/client/assets/{input-BH9IvcPC.js → input-CMWKaQuM.js} +1 -1
- package/dist/client/assets/{input-DdEOORL2.js → input-DiIRBTgb.js} +3 -3
- package/dist/client/assets/{integration-icon-CKknGZhR.js → integration-icon-7gJWUFS2.js} +1 -1
- package/dist/client/assets/{jira-icon-DreVKI44.js → jira-icon-m-27rEgi.js} +1 -1
- package/dist/client/assets/{label-BL4W2KPI.js → label-D4JBPN7q.js} +1 -1
- package/dist/client/assets/{layout-B6GTwWgR.js → layout-D-WO_5nK.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-h-k8kxkI.js → legacy-agents-deep-Byg7XYZi.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-D6Wq6vr4.js → legacy-main-redirect-C0KkBzuS.js} +1 -1
- package/dist/client/assets/library-Do1cxIgP.js +1 -0
- package/dist/client/assets/{library-tab-6tliBei-.js → library-tab-nnHKU6n2.js} +1 -1
- package/dist/client/assets/{login-2dWlgBxu.js → login-DsUB3uQj.js} +1 -1
- package/dist/client/assets/{markdown-BjPIZk-u.js → markdown-Bj3WyP0d.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-afmtzlAD.js → mcp-app-renderer-cIFgImrX.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DJh33UXx.js → mcp-oauth-DXt2H3qs.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DqMHjHip.js → mcp-oauth-ubL7A6O8.js} +1 -1
- package/dist/client/assets/{members-De3ITOSK.js → members-CvgFB3s-.js} +1 -1
- package/dist/client/assets/{memory-Bd-agrjz.js → memory-BF1uVIim.js} +1 -1
- package/dist/client/assets/{mini-report-page-qugNBWyG.js → mini-report-page-y5KfS4tn.js} +1 -1
- package/dist/client/assets/{mock-board-DsyG_BKd.js → mock-board-BKG-LWFe.js} +1 -1
- package/dist/client/assets/{monaco-editor-frZbpSC4.js → monaco-editor-CKrlIC9T.js} +1 -1
- package/dist/client/assets/monitoring-BPhxBDd5.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-CbmvtcQ8.js → monitoring-stats-row-HV07Y8PZ.js} +1 -1
- package/dist/client/assets/{multi-select-mMhkiaxx.js → multi-select-DD-AQA0o.js} +1 -1
- package/dist/client/assets/{mustache-BE_jNzrX.js → mustache-DEGJahrS.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BMxQGh6T.js → new-project-dialog-DRh9zuKa.js} +1 -1
- package/dist/client/assets/{oauth-callback-NxseMyYt.js → oauth-callback-DZJS_AT0.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-JHRZj7cm.js → oauth-callback-ai-provider-BJubcWsa.js} +1 -1
- package/dist/client/assets/{onboarding-BNSpsBHl.js → onboarding-Cd27VqU6.js} +1 -1
- package/dist/client/assets/{openai-conversation-B9wySkKU.js → openai-conversation-UxlPvOfF.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DqJuR4Ij.js → optimistic-project-sidebar-views-Dv80C_rk.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DTRXFSPm.js → order-monitor-day-EUZZaMp3.js} +1 -1
- package/dist/client/assets/{organization-choice-D_pQMc9T.js → organization-choice-BGM_rbWT.js} +1 -1
- package/dist/client/assets/{orgs-CsIZaTyi.js → orgs-BV_vEF7j.js} +1 -1
- package/dist/client/assets/{page-seo-form-DAN_oC73.js → page-seo-form-BH-BJ6qw.js} +1 -1
- package/dist/client/assets/{pair-BERDoCro.js → pair-DC812Nih.js} +1 -1
- package/dist/client/assets/plan-05_HVNuz.js +1 -0
- package/dist/client/assets/{plan-ladder-DL1JtpvS.js → plan-ladder-PV6fdtQs.js} +1 -1
- package/dist/client/assets/{popover-oZJ3oDMA.js → popover-fq0tjxPf.js} +1 -1
- package/dist/client/assets/{post-calendar-DfH5svUX.js → post-calendar-BRi-XhNu.js} +1 -1
- package/dist/client/assets/{post-editor-hWgegmwE.js → post-editor-HjQ5CpOo.js} +1 -1
- package/dist/client/assets/{preview-content-PTYjaSyC.js → preview-content-BIaRb_kp.js} +1 -1
- package/dist/client/assets/{preview-dialog-4ft9O22y.js → preview-dialog-DRTfEqCp.js} +1 -1
- package/dist/client/assets/{preview-panel-DM51Fpvo.js → preview-panel-Cic9CX2M.js} +1 -1
- package/dist/client/assets/{preview-tab-CNeiDQgU.js → preview-tab-C83Vx0Mi.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BDff_MLx.js → product-picker-dialog-Bals-alJ.js} +1 -1
- package/dist/client/assets/{profile-_0v0w_uk.js → profile-D5xJAT34.js} +1 -1
- package/dist/client/assets/{project-app-view-D_QJpB96.js → project-app-view-Cj07pABw.js} +1 -1
- package/dist/client/assets/{project-apps-BRjQ6ES3.js → project-apps-D71RwGSP.js} +1 -1
- package/dist/client/assets/{project-feed-CYGKnY4Q.js → project-feed-1ErfglDo.js} +1 -1
- package/dist/client/assets/{project-icon-D_aSXDOt.js → project-icon-CZlCW1ie.js} +1 -1
- package/dist/client/assets/project-reports-D49xSOrs.js +1 -0
- package/dist/client/assets/project-tasks-WMe77gba.js +1 -0
- package/dist/client/assets/{projects-empty-state-BdoV9-x8.js → projects-empty-state-ComKFNOr.js} +1 -1
- package/dist/client/assets/{projects-BmIdJmG4.js → projects-utpjVaXN.js} +1 -1
- package/dist/client/assets/{prompts-BSkHwl6y.js → prompts-D3kehQbi.js} +1 -1
- package/dist/client/assets/record-editor-DBsKbQap.js +1 -0
- package/dist/client/assets/{redirect-editor-CtFVIrY2.js → redirect-editor-CjT7iAl-.js} +1 -1
- package/dist/client/assets/{reports-CLhp1Pr5.js → reports-C4Lk2vHf.js} +1 -1
- package/dist/client/assets/reports-DWVNCveo.js +1 -0
- package/dist/client/assets/{reports-onboarding-C8PLHLPc.js → reports-onboarding-CZWTNr3A.js} +1 -1
- package/dist/client/assets/{reports-tab-DDrFZP3m.js → reports-tab-DSPAWkBb.js} +2 -2
- package/dist/client/assets/{repositories-DoNhvU-g.js → repositories-8h94CkIp.js} +1 -1
- package/dist/client/assets/repositories-BOZH7UzC.js +1 -0
- package/dist/client/assets/{repository-binding-BNbbDYQQ.js → repository-binding-Dd_B1wfM.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CMsE5EOk.js → repository-import-picker-BrYPIHbh.js} +1 -1
- package/dist/client/assets/{repository-picker-DOtWfpYo.js → repository-picker-1MzRX-H7.js} +1 -1
- package/dist/client/assets/{require-capability-CBG6rA7o.js → require-capability-yDcZ2JQa.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dz1OowhH.js → required-auth-layout-BxVO9mgl.js} +1 -1
- package/dist/client/assets/{reset-password-v_UkU5Xg.js → reset-password-C49JkdXA.js} +1 -1
- package/dist/client/assets/{resizable-CWaYgp8D.js → resizable-D_ipbPgS.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-B2EU-8BB.js → resolve-tab-icon-Byb93xhw.js} +1 -1
- package/dist/client/assets/{review-settings-BZhzjgRq.js → review-settings-C6E-Bw8y.js} +1 -1
- package/dist/client/assets/{roles-Y2HKVQnL.js → roles-CAwPb5fO.js} +1 -1
- package/dist/client/assets/route-BTQLh0S6.js +1 -0
- package/dist/client/assets/{route-7L_TW384.js → route-BmBKnc7t.js} +1 -1
- package/dist/client/assets/{route-DPCqrSJX.js → route-CBMvGMnA.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Pb8-9nPA.js → sandbox-lifecycle-context-BzWTxRjc.js} +1 -1
- package/dist/client/assets/{schema-C1o97tHt.js → schema-CEZ3_pMV.js} +1 -1
- package/dist/client/assets/{schema-CviV2OeO.js → schema-CTZ2buw6.js} +1 -1
- package/dist/client/assets/{scroll-area-D2V3l6oK.js → scroll-area-C7CRSfWv.js} +1 -1
- package/dist/client/assets/{search-input-Bq9urCGV.js → search-input-D_LVZNpa.js} +1 -1
- package/dist/client/assets/{search-toggle-DwZ6dTB5.js → search-toggle-BPTT4hLg.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-BkXDtxC6.js → secret-ciphertext-D4M9tY0M.js} +1 -1
- package/dist/client/assets/{secret-picker-BoK4uSMi.js → secret-picker-CvHiZDPS.js} +1 -1
- package/dist/client/assets/{secrets-C0qlLAI4.js → secrets-RdCGJOsH.js} +1 -1
- package/dist/client/assets/{sections-CR_pzMlx.js → sections-CWZ2z5m1.js} +1 -1
- package/dist/client/assets/{sections-editor-BK3_J9sX.js → sections-editor-BxvR-YOF.js} +1 -1
- package/dist/client/assets/{select-C5-hj9Ts.js → select-CowaxA54.js} +1 -1
- package/dist/client/assets/{select-model-CwXefPFG.js → select-model-9jlQrG56.js} +1 -1
- package/dist/client/assets/{seo-editor-CSy5-rpo.js → seo-editor-dhnPdQ71.js} +1 -1
- package/dist/client/assets/{separator-BD6ld_rn.js → separator-CXpOKLhH.js} +1 -1
- package/dist/client/assets/settings-tab-cH5EHrjn.js +1 -0
- package/dist/client/assets/{sheet-s29eirRf.js → sheet-DJxxN2qW.js} +1 -1
- package/dist/client/assets/{shell-layout-DS0Ye6S1.js → shell-layout-CCXDhne-.js} +1 -1
- package/dist/client/assets/site-editor-Dgv3Mgur.js +1 -0
- package/dist/client/assets/{site-editor-toast-C5e-1uEv.js → site-editor-toast-yWBrscDo.js} +1 -1
- package/dist/client/assets/{skills-pQpcosHp.js → skills-BlaOj1S-.js} +1 -1
- package/dist/client/assets/{slider-P84DbLvc.js → slider-BNL65434.js} +1 -1
- package/dist/client/assets/{sortable.esm-DMQ-WncJ.js → sortable.esm-CffOom9k.js} +1 -1
- package/dist/client/assets/{sso-BaZj_16B.js → sso-tXxuMVkw.js} +1 -1
- package/dist/client/assets/{suggestion-BtCYsnHk.js → suggestion-CuYIU5Nv.js} +1 -1
- package/dist/client/assets/{switch-COyvKYHV.js → switch-jFgl7iT_.js} +1 -1
- package/dist/client/assets/{symbol-DE4EJv1h.js → symbol-CLrIFhMo.js} +1 -1
- package/dist/client/assets/{synced-repos-BchTuYeZ.js → synced-repos-CpEKcy1N.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Bd77emAf.js → tab-icon-glyph-hHd2Az-Y.js} +1 -1
- package/dist/client/assets/{table-E7GbRtTD.js → table-piPFXrR-.js} +1 -1
- package/dist/client/assets/{tabs-DWtBgLg_.js → tabs-D3aHw45h.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-DTLURih6.js → task-assignee-avatar-BhSmfeHE.js} +1 -1
- package/dist/client/assets/{task-board-fU-Cl8m2.js → task-board-jGxaINzs.js} +1 -1
- package/dist/client/assets/{task-route-DuNmXwWp.js → task-route-C1NRExZ4.js} +1 -1
- package/dist/client/assets/{task-status-wpuxJDO5.js → task-status-Dgc_qXrK.js} +1 -1
- package/dist/client/assets/taskboard-analytics-Cc7xLiYJ.js +1 -0
- package/dist/client/assets/{tasks-B4X2VVxT.js → tasks-74e9M9v_.js} +1 -1
- package/dist/client/assets/tasks-q5I9pn3S.js +1 -0
- package/dist/client/assets/{textarea-BDL4MHBS.js → textarea-g4W4EEJV.js} +1 -1
- package/dist/client/assets/{thread-analytics-0ZqqwnzE.js → thread-analytics-BeecXXf9.js} +1 -1
- package/dist/client/assets/{thread-intent-DzC9Ji46.js → thread-intent-U667QxJn.js} +1 -1
- package/dist/client/assets/{thread-route-D0aLhRkR.js → thread-route-BXNLST2v.js} +1 -1
- package/dist/client/assets/{thread-route-DuRhXh4I.js → thread-route-_azg3sPx.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-VXXOBFly.js → thread-sheet-body-BLZwnPMr.js} +1 -1
- package/dist/client/assets/{time-range-picker-vYJ0Kk8S.js → time-range-picker-BpCt7APB.js} +1 -1
- package/dist/client/assets/{toggle-group-CRigS0R4.js → toggle-group-CUDFWI8h.js} +1 -1
- package/dist/client/assets/{tool-namespace-DPiptzHh.js → tool-namespace-WBa95YMk.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-uuYUYVtr.js → toolbar-icon-button-CTdoQK-j.js} +1 -1
- package/dist/client/assets/{tooltip-DX3EibzC.js → tooltip-Cn8xKOs3.js} +1 -1
- package/dist/client/assets/{tooltipContext-DiSBImQr.js → tooltipContext-DPfTt5uJ.js} +1 -1
- package/dist/client/assets/{track-D-YCF_rE.js → track-CKD_o69Z.js} +1 -1
- package/dist/client/assets/{types-BmDn-Bmr.js → types-C_3VJftQ.js} +1 -1
- package/dist/client/assets/{url-slug-BjYL2qGa.js → url-slug-CDSsr_-I.js} +1 -1
- package/dist/client/assets/{usage-stats-DViGt9Z5.js → usage-stats-Cgvbigdd.js} +1 -1
- package/dist/client/assets/{use-ai-providers-XvM2-sU7.js → use-ai-providers-CcMoAKt2.js} +1 -1
- package/dist/client/assets/{use-automations-BP7Qo80Q.js → use-automations-CyRwkMiw.js} +1 -1
- package/dist/client/assets/{use-autosave-DLpdlg6z.js → use-autosave-o1UGCuaC.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-BEn27bqi.js → use-chat-layout-state-CjcoHJNS.js} +1 -1
- package/dist/client/assets/{use-clock-tick--0G9fYV8.js → use-clock-tick-Ba-YyXfj.js} +1 -1
- package/dist/client/assets/{use-connect-companion-Byfe_uLr.js → use-connect-companion-Qyek3iaQ.js} +1 -1
- package/dist/client/assets/{use-connection-C4wyl2ru.js → use-connection-K7ZRp1go.js} +1 -1
- package/dist/client/assets/{use-content-sync-BdbVP04j.js → use-content-sync-C7GSdrCv.js} +1 -1
- package/dist/client/assets/{use-copy-BS5soA37.js → use-copy-B2CiMRws.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bgr2d-1k.js → use-create-virtual-mcp-Be-PSH8v.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D_SHRVT8.js → use-date-fns-locale-BtERR385.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CteI237O.js → use-debounced-autosave-C7gpczsa.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DGbphRsM.js → use-debounced-value-B8h9GHgw.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B7vnPi2P.js → use-deco-credits-BLtT_99v.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DTU6iW_4.js → use-decopilot-events-tAuPN_q4.js} +1 -1
- package/dist/client/assets/{use-delete-connection-v7vjwrBf.js → use-delete-connection-DdA2eUwf.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Cr49Ea_9.js → use-deployment-admin-B-AsTGAj.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-BiBJcIU0.js → use-ensure-project-folder-1zJV-ebL.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CUkbW62G.js → use-fast-preview-draft-url-CudEspao.js} +1 -1
- package/dist/client/assets/{use-file-configs-dTlYe09H.js → use-file-configs-C_QUQ8GN.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-d4Pg1vDp.js → use-inbox-feed-20OcgQCQ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DYPYtqG2.js → use-infinite-scroll-BP0LI3QU.js} +1 -1
- package/dist/client/assets/{use-join-requests-CgaNoIHU.js → use-join-requests-CKw0dC-f.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-bEgIKNUF.js → use-main-panel-tabs-BLDJnI0j.js} +1 -1
- package/dist/client/assets/{use-main-schema-v8-BpRBE2if.js → use-main-schema-v8-CyJzgrXz.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-XO9Yp1aB.js → use-mcp-auth-status-Dy1xU38X.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DA050uNw.js → use-mcp-client-CS_M4RkG.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C_C6tlAY.js → use-mcp-prompts-CPyQYK7C.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DDRwYO6T.js → use-mcp-tools-D9Ee_oS_.js} +1 -1
- package/dist/client/assets/{use-members-C4ay671C.js → use-members-BBgUoW6G.js} +1 -1
- package/dist/client/assets/{use-mobile-BsNhhNj1.js → use-mobile-BKCNcL5w.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-y0z5Ii2q.js → use-navigate-to-agent-BRsDJt0-.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-B2tbuRiV.js → use-open-billing-url-BT_PQxjy.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Cn5Gs8uE.js → use-org-auth-client-DboLlm0U.js} +1 -1
- package/dist/client/assets/{use-org-fs-QKl-Epzm.js → use-org-fs-CqBTb_bN.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DkE7BEdc.js → use-org-repo-syncs-CrHKManu.js} +1 -1
- package/dist/client/assets/{use-org-sso-fQ5NHD0A.js → use-org-sso-CPfWfgUD.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DDX-q-Qm.js → use-organization-roles-GM12gN8m.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BAyreMqm.js → use-organization-settings-KcG74cJs.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CYHQ9H_T.js → use-panel-navigate-BnKH_DED.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DG_OsicQ.js → use-project-native-view-presence-6zlafMD0.js} +1 -1
- package/dist/client/assets/{use-project-scope-DTa66aFc.js → use-project-scope-DLt89uaH.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BkiI05bl.js → use-recent-apps-Beh0P-eJ.js} +1 -1
- package/dist/client/assets/{use-releases-3QZUJcU8.js → use-releases-CLwewD1A.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CFGQSOke.js → use-reports-diagnostic-BWqDIpUl.js} +1 -1
- package/dist/client/assets/{use-secrets-CFDBcYIs.js → use-secrets-BWS1Znk9.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Bi0fZdk_.js → use-section-preview-base-8d2ycoZ0.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BDC4KJoA.js → use-sidebar-collapsed-DQVR9tzU.js} +1 -1
- package/dist/client/assets/{use-tags-Ck-mty1R.js → use-tags-DLPMXTJ_.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-K9XTOq2z.js → use-task-board-analytics-CtHDTWzg.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Jz6kbe9R.js → use-task-board-events-3Dkuwhd-.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BGCAD4bx.js → use-task-board-item-prs-C-xbnweQ.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CkrB-bRy.js → use-task-metadata-rKLv0cZj.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BNcqqwBS.js → use-thread-analytics-CoAOmWMe.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-LnnMQYmj.js → use-thread-outputs-BvzhiS4m.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DwZtx0VJ.js +1 -0
- package/dist/client/assets/{useQueries-DsTjk3mN.js → useQueries-7fETpNi-.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C9cYPm72.js +1 -0
- package/dist/client/assets/{users-CnjGVWpi.js → users-WRigaqVb.js} +1 -1
- package/dist/client/assets/{utils-CetO33tt.js → utils-Bv54OqIc.js} +1 -1
- package/dist/client/assets/{variant-calendar-BVQKG7Pz.js → variant-calendar-3vABqSwV.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-1XzXcLtg.js → variant-draft-pointer-BkoaUnwP.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BuqrnQGM.js → view-mode-toggle-B_PFkRZ8.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Ux8j-_02.js → virtual-mcp-I0mUiSD3.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-YHoQCS1I.js → watch-sse-pool-GA-vauaD.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +193 -193
- package/package.json +1 -1
- package/dist/client/assets/agent-app-C8Q8eJy6.js +0 -1
- package/dist/client/assets/agent-deck-XMMtyHjd.js +0 -1
- package/dist/client/assets/agent-file-BNo94gQC.js +0 -1
- package/dist/client/assets/agent-library-GkmC1ahU.js +0 -1
- package/dist/client/assets/agent-library-file-6MKr5gfE.js +0 -1
- package/dist/client/assets/agent-settings-5nByAqOM.js +0 -1
- package/dist/client/assets/agent-site-editor-code-0fxD14rb.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BN4VoKnm.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BXzeSsT8.js +0 -1
- package/dist/client/assets/agent-view-hlAx7Qgd.js +0 -1
- package/dist/client/assets/api-keys-Dvm1thDW.js +0 -1
- package/dist/client/assets/cms-settings-editor-DLURX7ZR.js +0 -1
- package/dist/client/assets/flat-project-CcO2Ar9k.js +0 -1
- package/dist/client/assets/library-0gJacikj.js +0 -1
- package/dist/client/assets/monitoring-D5Nohicc.js +0 -1
- package/dist/client/assets/plan-N5Xy4KXF.js +0 -1
- package/dist/client/assets/project-reports-s2VJkQN9.js +0 -1
- package/dist/client/assets/project-tasks-DqRp61Xr.js +0 -1
- package/dist/client/assets/record-editor-BakkGf1Y.js +0 -1
- package/dist/client/assets/reports-DzmhhR-x.js +0 -1
- package/dist/client/assets/repositories-6gZ6hUD8.js +0 -1
- package/dist/client/assets/route-DXMOqHVl.js +0 -1
- package/dist/client/assets/settings-tab-DHN7ZjAa.js +0 -1
- package/dist/client/assets/site-editor-BfEYXklV.js +0 -1
- package/dist/client/assets/taskboard-analytics-jASQU8UF.js +0 -1
- package/dist/client/assets/tasks-DLjtcYlA.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DhVIMVRh.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BVpu0vkd.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a2 as X,o as Be,r as k,j as n,K as W,b8 as ie,c as F,aL as Oe,l as H,H as Ae,b as Z,t as ce,h as ue,s as be,v as ye,q as ve,D as Se,d as je,y as de,aM as Ie,B as Ee}from"./index-
|
|
1
|
+
import{a2 as X,o as Be,r as k,j as n,K as W,b8 as ie,c as F,aL as Oe,l as H,H as Ae,b as Z,t as ce,h as ue,s as be,v as ye,q as ve,D as Se,d as je,y as de,aM as Ie,B as Ee}from"./index-DjAPw3FZ.js";import{u as we,d as $e,b as Ne,f as Fe,T as He,A as ze,i as Ke,c as qe,j as Ge,k as Ue,p as Qe,L as Ve}from"./chat-context-CGgDKLoI.js";import{b as Ye}from"./sandbox-url-D3mC8qhT.js";import{a as Je}from"./repository-binding-Dd_B1wfM.js";import{e as We}from"./backoff-CrEUbyZT.js";import{n as Xe}from"./ArrowUp-DHpvU3H5.js";import{s as Ze,g as Ce,d as et}from"./tool-namespace-WBa95YMk.js";import{b as se,T as tt,a as st,c as nt}from"./tooltip-Cn8xKOs3.js";import{d as rt,b as at,a as ot,D as lt}from"./drawer-DlCF45Q0.js";import{C as it}from"./collection-search-By8NjPfM.js";import{u as ct}from"./use-mobile-BKCNcL5w.js";import{u as ut}from"./use-mcp-client-CS_M4RkG.js";import{u as dt,g as ft}from"./use-mcp-prompts-CPyQYK7C.js";import{c as mt,P as pt}from"./usage-stats-Cgvbigdd.js";import{T as ht,d as gt,c as xt,e as bt,H as yt}from"./input-DiIRBTgb.js";import{u as vt,a as St,S as jt,M as fe}from"./pair-DC812Nih.js";import{a as Et}from"./use-panel-navigate-BnKH_DED.js";import{u as wt}from"./thread-intent-U667QxJn.js";import{N as Nt}from"./index-CV3tbWK4.js";import{i as Ct}from"./LinkBroken01-C8p4Wo5b.js";import{e as Te}from"./agent-icon-DeF-Pwnu.js";import{e as Tt}from"./use-decopilot-events-tAuPN_q4.js";import{u as kt}from"./use-deco-credits-BLtT_99v.js";import{F as Pt}from"./feature-paywall-oJbClSRc.js";import{i as Dt}from"./AlertCircle-CcVhl96j.js";function me(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const Rt={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},ke=k.createContext(Rt),pe=16384;class _t{data="";append(e){this.data+=e,this.data.length>pe&&(this.data=this.data.slice(this.data.length-pe))}get(){return this.data}clear(){this.data=""}}const Lt=1e3,Mt=3e4,Bt=3e3,he=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],ge="log";function Ot(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function At(t){return t===404}async function It(t){try{const e=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Bt)});return await e.body?.cancel().catch(()=>{}),At(e.status)}catch{return!1}}function Ds({virtualMcpId:t,branch:e,previewUrl:r=null,enabled:o=!0,children:s}){const{org:a}=X(),l=Be(),i=we()?.taskId??null,[c,u]=k.useState(null),[d,f]=k.useState({phase:"idle"}),[m,S]=k.useState({state:"running"}),[j,E]=k.useState({kind:"unknown"}),[x,b]=k.useState(!1),[C,y]=k.useState([]),[P,g]=k.useState([]),[,D]=k.useState(0),T=k.useRef(new Map),B=k.useRef(new Set),M=k.useRef(new Set),L=k.useRef(null),_=Ot(r),p=Je(t)?.metadata?.runtime?.selected==="deno",w=v=>{let N=T.current.get(v);return N||(N=new _t,T.current.set(v,N)),N};k.useEffect(()=>{if(u(null),f({phase:"idle"}),S({state:"running"}),E({kind:"unknown"}),L.current=null,b(!1),y([]),g([]),T.current.clear(),!t||!e||!o)return;const v=Ye({orgSlug:a.slug,virtualMcpId:t,branch:e,threadId:i??null},"events");let N=!1,$=0,Y=null,q=null,G=null,K=null,z=null,J=null;const Le=R=>{try{const O=JSON.parse(R.data);u(O),O.kind!=="failed"&&(b(!1),$=0),O.kind==="ready"&&oe()}catch(O){console.warn("[vm-events] bad phase payload",O)}},ne=()=>{b(!0),u(null),f({phase:"idle"}),S({state:"running"}),E({kind:"unknown"}),y([]),g([]),T.current.clear()},re=R=>{try{const O=JSON.parse(R.data);if(typeof O.data!="string")return;$=0;const I=O.data.replace(/\r?\n/g,`\r
|
|
2
2
|
`);w(O.source).append(I);for(const A of B.current)try{A(O.source,I)}catch{}D(A=>A+1)}catch{}},ae=R=>{const O=R.type;try{const I=JSON.parse(R.data);switch($=0,O){case"lifecycle":{const A=I;f(A.state);const U=`${a.slug}/${t}/${e}`;if(me(A.state.phase)&&!(J&&me(J))){ie(l,a.id);const V=W.decofile(U);l.getQueryData(V)===void 0&&l.invalidateQueries({queryKey:V})}A.state.phase==="running"&&J!=="running"&&(ie(l,a.id),l.invalidateQueries({queryKey:W.decofile(U)}),l.invalidateQueries({queryKey:W.liveMeta(a.slug,t,e)})),J=A.state.phase;const Q=A.state.phase==="running"?A.state.port:null,te=L.current;if(L.current=Q,te!==null&&Q!==null&&te!==Q)for(const V of M.current)try{V()}catch{}return}case"status":S(I);return;case"tasks":{const U=I.active.map(Q=>Q.logName??"").filter(Boolean);g(U);return}case"scripts":y(I.scripts);return;case"branch":{const A=I.meta;E(A);return}case"reload":for(const A of M.current)try{A()}catch{}return;case"file-changed":{const{path:A}=I,U=`${a.slug}/${t}/${e}`;if(A.startsWith(".deco/")||A.includes("/.deco/")){if(!(J==="running"))return;G&&clearTimeout(G),G=setTimeout(()=>{if(G=null,l.invalidateQueries({queryKey:W.decofile(U)}),p)for(const V of M.current)try{V()}catch{}},500)}else q&&clearTimeout(q),q=setTimeout(()=>{q=null,l.invalidateQueries({queryKey:W.liveMeta(a.slug,t,e)})},1e3);return}}}catch{}};function ee(){if(N)return;const R=new EventSource(v);K=R,R.onopen=()=>{},R.onerror=()=>{K===R&&R.readyState===EventSource.CLOSED&&le("studio")},R.addEventListener("phase",Le),R.addEventListener("gone",ne),R.addEventListener(ge,re);for(const O of he)R.addEventListener(O,ae)}function oe(){if(N||!_||z)return;const R=new EventSource(_);z=R;let O=!1;R.onopen=()=>{if(N||z!==R)return;O=!0,$=0;const I=K;K=null,I?.close()},R.onerror=()=>{z===R&&R.readyState===EventSource.CLOSED&&Me(R,O)},R.addEventListener(ge,re);for(const I of he)R.addEventListener(I,ae)}async function Me(R,O){const I=_?await It(_):!1;if(!(N||z!==R)){if(R.close(),z=null,I){ne(),K||ee();return}O&&le("direct")}}function le(R){if(N||Y)return;const O=We(Mt,Lt,$,2,0);$++,Y=setTimeout(()=>{if(Y=null,!N){if(R==="direct"){z?.close(),z=null,oe();return}K?.close(),K=null,ee()}},O)}return ee(),()=>{N=!0,K?.close(),z?.close(),Y&&clearTimeout(Y),q&&clearTimeout(q),G&&clearTimeout(G)}},[t,e,a.slug,a.id,o,i,_,l,p]);const h={phase:c,lifecycle:d,status:m,branch:j,notFound:x,scripts:C,activeProcesses:P,getBuffer:v=>T.current.get(v)?.get()??"",hasData:v=>(T.current.get(v)?.get().length??0)>0,subscribeChunks:v=>(B.current.add(v),()=>{B.current.delete(v)}),subscribeReload:v=>(M.current.add(v),()=>{M.current.delete(v)})};return n.jsx(ke,{value:h,children:s})}function Pe(){return k.use(ke)}function Rs(t){const{subscribeChunks:e}=Pe(),r=k.useRef(t);r.current=t,k.useEffect(()=>e((a,l)=>{r.current?.(a,l)}),[e])}function _s(t){const{subscribeReload:e}=Pe(),r=k.useRef(t);r.current=t,k.useEffect(()=>e(()=>{r.current?.()}),[e])}const xe=3,De="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-muted text-muted-foreground text-sm font-medium transition-colors cursor-pointer",$t="flex flex-col gap-1.5 p-4 rounded-xl bg-accent/40 text-sm leading-snug transition-colors cursor-pointer text-left";function Re(t){const e=F.c(46),{item:r,onSelect:o,isLoading:s,isDisabled:a,variant:l}=t,i=l===void 0?"pill":l,{prompt:c}=r;let u;if(e[0]!==c._meta||e[1]!==c.name||e[2]!==c.title){const T=Ce(c._meta);u=c.title??et(c.name,T),e[0]=c._meta,e[1]=c.name,e[2]=c.title,e[3]=u}else u=e[3];const d=u,f=c.description||null;if(i==="card"){let T;e[4]!==o||e[5]!==c?(T=()=>o(c),e[4]=o,e[5]=c,e[6]=T):T=e[6];const B=a||s,M=s&&"bg-accent/40",L=(a||s)&&"cursor-not-allowed opacity-50";let _;e[7]!==M||e[8]!==L?(_=H($t,"hover:bg-accent/60 text-foreground",M,L),e[7]=M,e[8]=L,e[9]=_):_=e[9];let p;e[10]!==d?(p=n.jsx("span",{className:"font-medium truncate capitalize",children:d}),e[10]=d,e[11]=p):p=e[11];let w;e[12]!==s?(w=s&&n.jsx(ue,{size:"xs"}),e[12]=s,e[13]=w):w=e[13];let h;e[14]!==p||e[15]!==w?(h=n.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p,w]}),e[14]=p,e[15]=w,e[16]=h):h=e[16];let v;e[17]!==f?(v=f&&n.jsx("span",{className:"text-xs text-muted-foreground line-clamp-2",children:f}),e[17]=f,e[18]=v):v=e[18];let N;return e[19]!==h||e[20]!==v||e[21]!==T||e[22]!==B||e[23]!==_?(N=n.jsxs("button",{type:"button",onClick:T,disabled:B,className:_,children:[h,v]}),e[19]=h,e[20]=v,e[21]=T,e[22]=B,e[23]=_,e[24]=N):N=e[24],N}let m;e[25]!==o||e[26]!==c?(m=()=>o(c),e[25]=o,e[26]=c,e[27]=m):m=e[27];const S=a||s,j=s&&"bg-muted/50",E=(a||s)&&"cursor-not-allowed opacity-50";let x;e[28]!==j||e[29]!==E?(x=H(De,"hover:bg-muted/70 hover:text-foreground",j,E),e[28]=j,e[29]=E,e[30]=x):x=e[30];let b;e[31]!==d?(b=n.jsx("span",{className:"capitalize",children:d}),e[31]=d,e[32]=b):b=e[32];let C;e[33]!==s?(C=s&&n.jsx(ue,{size:"xs"}),e[33]=s,e[34]=C):C=e[34];let y;e[35]!==m||e[36]!==S||e[37]!==x||e[38]!==b||e[39]!==C?(y=n.jsx(tt,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:m,disabled:S,className:x,children:[b,C]})}),e[35]=m,e[36]=S,e[37]=x,e[38]=b,e[39]=C,e[40]=y):y=e[40];const P=f??d;let g;e[41]!==P?(g=n.jsx(st,{side:"top",className:"max-w-xs",children:n.jsx("p",{className:"text-xs",children:P})}),e[41]=P,e[42]=g):g=e[42];let D;return e[43]!==y||e[44]!==g?(D=n.jsxs(nt,{delayDuration:400,children:[y,g]}),e[43]=y,e[44]=g,e[45]=D):D=e[45],D}function Ft(t){const e=F.c(61),{items:r,open:o,onOpenChange:s,onSelect:a,loadingPrompt:l}=t,i=Z(),[c,u]=k.useState(""),d=!!l;let f;e[0]!==r||e[1]!==c?(f=c.trim()?r.filter(p=>{const w=c.toLowerCase();return p.prompt.name.toLowerCase().includes(w)||(p.prompt.title??"").toLowerCase().includes(w)||(p.prompt.description??"").toLowerCase().includes(w)}):r,e[0]=r,e[1]=c,e[2]=f):f=e[2];const m=f,S=ct();let j;e[3]!==m.length||e[4]!==c||e[5]!==i?(j=m.length===0&&n.jsx("p",{className:"col-span-4 text-sm text-muted-foreground text-center py-8",children:i("chat.iceBreakers.noPromptsMatch",{search:c})}),e[3]=m.length,e[4]=c,e[5]=i,e[6]=j):j=e[6];let E;if(e[7]!==m||e[8]!==d||e[9]!==l?.name||e[10]!==s||e[11]!==a){let p;e[13]!==d||e[14]!==l?.name||e[15]!==s||e[16]!==a?(p=w=>n.jsx(Re,{item:w,variant:"card",onSelect:h=>{s(!1),a(h)},isLoading:l?.name===w.prompt.name,isDisabled:d&&l?.name!==w.prompt.name},w.prompt.name),e[13]=d,e[14]=l?.name,e[15]=s,e[16]=a,e[17]=p):p=e[17],E=m.map(p),e[7]=m,e[8]=d,e[9]=l?.name,e[10]=s,e[11]=a,e[12]=E}else E=e[12];let x;e[18]!==j||e[19]!==E?(x=n.jsx("div",{className:"flex-1 overflow-y-auto [scrollbar-gutter:stable]",children:n.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-5",children:[j,E]})}),e[18]=j,e[19]=E,e[20]=x):x=e[20];const b=x;let C;e[21]!==i?(C=i("chat.iceBreakers.searchPromptsPlaceholder"),e[21]=i,e[22]=C):C=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=p=>{p.key==="Escape"&&u("")},e[23]=y):y=e[23];let P;e[24]!==c||e[25]!==C?(P=n.jsx(it,{value:c,onChange:u,placeholder:C,onKeyDown:y}),e[24]=c,e[25]=C,e[26]=P):P=e[26];const g=P;if(S){let p;e[27]!==i?(p=i("chat.iceBreakers.allPromptsTitle"),e[27]=i,e[28]=p):p=e[28];let w;e[29]!==p?(w=n.jsx(rt,{className:"sr-only",children:n.jsx(at,{children:p})}),e[29]=p,e[30]=w):w=e[30];let h;e[31]!==i?(h=i("chat.iceBreakers.promptsLabel"),e[31]=i,e[32]=h):h=e[32];let v;e[33]!==h?(v=n.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:n.jsx("span",{className:"text-sm font-medium text-foreground",children:h})}),e[33]=h,e[34]=v):v=e[34];let N;e[35]!==b||e[36]!==g||e[37]!==v||e[38]!==w?(N=n.jsxs(ot,{className:"h-[85vh] flex flex-col p-0 gap-0",children:[w,v,g,b]}),e[35]=b,e[36]=g,e[37]=v,e[38]=w,e[39]=N):N=e[39];let $;return e[40]!==s||e[41]!==o||e[42]!==N?($=n.jsx(se,{delayDuration:400,children:n.jsx(lt,{open:o,onOpenChange:s,children:N})}),e[40]=s,e[41]=o,e[42]=N,e[43]=$):$=e[43],$}let D;e[44]!==i?(D=i("chat.iceBreakers.allPromptsTitle"),e[44]=i,e[45]=D):D=e[45];let T;e[46]!==D?(T=n.jsx(be,{className:"sr-only",children:n.jsx(ye,{children:D})}),e[46]=D,e[47]=T):T=e[47];let B;e[48]!==i?(B=i("chat.iceBreakers.promptsLabel"),e[48]=i,e[49]=B):B=e[49];let M;e[50]!==B?(M=n.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:n.jsx("span",{className:"text-sm font-medium text-foreground",children:B})}),e[50]=B,e[51]=M):M=e[51];let L;e[52]!==b||e[53]!==g||e[54]!==M||e[55]!==T?(L=n.jsxs(ve,{className:"sm:max-w-[1100px] h-[680px] p-0 gap-0 overflow-hidden flex flex-col",children:[T,M,g,b]}),e[52]=b,e[53]=g,e[54]=M,e[55]=T,e[56]=L):L=e[56];let _;return e[57]!==s||e[58]!==o||e[59]!==L?(_=n.jsx(se,{delayDuration:400,children:n.jsx(Se,{open:o,onOpenChange:s,children:L})}),e[57]=s,e[58]=o,e[59]=L,e[60]=_):_=e[60],_}function Ht(t){const e=F.c(30),{items:r,onSelect:o,loadingPrompt:s,className:a}=t,l=Z(),[i,c]=k.useState(!1);if(r.length===0)return null;let u,d,f,m,S;if(e[0]!==a||e[1]!==r||e[2]!==s||e[3]!==o||e[4]!==l){const b=r.slice(0,xe),C=r.slice(xe),y=!!s;let P;e[10]!==y||e[11]!==s?.name||e[12]!==o?(P=D=>n.jsx(Re,{item:D,onSelect:o,isLoading:s?.name===D.prompt.name,isDisabled:y&&s?.name!==D.prompt.name},D.prompt.name),e[10]=y,e[11]=s?.name,e[12]=o,e[13]=P):P=e[13];const g=b.map(P);u=se,S=400,e[14]!==a?(d=H("w-full flex flex-wrap gap-2 justify-center",a),e[14]=a,e[15]=d):d=e[15],f=g,m=C.length>0&&n.jsx("button",{type:"button",disabled:y,onClick:()=>c(!0),className:H(De,"hover:bg-muted/70 hover:text-foreground",y&&"opacity-50 cursor-not-allowed"),children:l("chat.iceBreakers.moreButton",{count:C.length})}),e[0]=a,e[1]=r,e[2]=s,e[3]=o,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=m,e[9]=S}else u=e[5],d=e[6],f=e[7],m=e[8],S=e[9];let j;e[16]!==d||e[17]!==f||e[18]!==m?(j=n.jsxs("div",{className:d,children:[f,m]}),e[16]=d,e[17]=f,e[18]=m,e[19]=j):j=e[19];let E;e[20]!==r||e[21]!==s||e[22]!==i||e[23]!==o?(E=n.jsx(Ft,{items:r,open:i,onOpenChange:c,onSelect:o,loadingPrompt:s}),e[20]=r,e[21]=s,e[22]=i,e[23]=o,e[24]=E):E=e[24];let x;return e[25]!==u||e[26]!==S||e[27]!==j||e[28]!==E?(x=n.jsxs(u,{delayDuration:S,children:[j,E]}),e[25]=u,e[26]=S,e[27]=j,e[28]=E,e[29]=x):x=e[29],x}function zt(){return null}function Kt(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function qt(t){const e=F.c(31),{connectionId:r}=t,o=Z(),{sendMessage:s}=Ne(),{org:a}=X();let l;e[0]!==r||e[1]!==a.id||e[2]!==a.slug?(l={connectionId:r,orgId:a.id,orgSlug:a.slug},e[0]=r,e[1]=a.id,e[2]=a.slug,e[3]=l):l=e[3];const i=ut(l);let c;e[4]!==i?(c={client:i,staleTime:6e4},e[4]=i,e[5]=c):c=e[5];const{data:u}=dt(c);let d;e[6]!==u?.prompts?(d=u?.prompts??[],e[6]=u?.prompts,e[7]=d):d=e[7];const f=d;let m;e[8]!==f?(m=f.map(Gt),e[8]=f,e[9]=m):m=e[9];const S=m;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j={stage:"idle"},e[10]=j):j=e[10];const[E,x]=k.useReducer(Kt,j),[b,C]=k.useState(null);let y;e[11]!==i||e[12]!==s||e[13]!==o?(y=async(h,v)=>{if(!i){ce.error(o("chat.iceBreakers.mcpClientNotAvailable")),x({type:"RESET"});return}try{const N=await ft(i,h.name,v);x({type:"RESET"});const $={type:"doc",content:[{type:"paragraph",content:[mt({id:h.name,name:Ze(h.name,Ce(h._meta)),metadata:N.messages,char:"/",kind:"prompt",args:v}),{type:"text",text:" "}]}]};await s($)}catch(N){console.error("[ice-breakers] Failed to fetch prompt:",N),ce.error(o("chat.iceBreakers.failedToLoadPrompt")),x({type:"RESET"})}},e[11]=i,e[12]=s,e[13]=o,e[14]=y):y=e[14];const P=y;let g;e[15]!==P?(g=async h=>{if(h.arguments&&h.arguments.length>0){x({type:"SELECT_PROMPT",prompt:h}),C(h);return}x({type:"START_LOADING",prompt:h}),await P(h)},e[15]=P,e[16]=g):g=e[16];const D=g;let T;e[17]!==b||e[18]!==P?(T=async h=>{b&&(x({type:"START_LOADING",prompt:b,arguments:h}),C(null),await P(b,h))},e[17]=b,e[18]=P,e[19]=T):T=e[19];const B=T;if(S.length===0)return null;const M=E.stage==="loading"?E.prompt:null;let L;e[20]!==D||e[21]!==S||e[22]!==M?(L=n.jsx(Ht,{items:S,onSelect:D,loadingPrompt:M}),e[20]=D,e[21]=S,e[22]=M,e[23]=L):L=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{C(null),x({type:"RESET"})},e[24]=_):_=e[24];let p;e[25]!==b||e[26]!==B?(p=n.jsx(pt,{prompt:b,setPrompt:_,onSubmit:B}),e[25]=b,e[26]=B,e[27]=p):p=e[27];let w;return e[28]!==L||e[29]!==p?(w=n.jsxs(n.Fragment,{children:[L,p]}),e[28]=L,e[29]=p,e[30]=w):w=e[30],w}function Gt(t){return{prompt:t}}function Ut(t){const e=F.c(13),{className:r}=t,{selectedVirtualMcp:o}=$e(),{org:s}=X();let a;e[0]!==s.id?(a=Oe(s.id),e[0]=s.id,e[1]=a):a=e[1];const l=a.id,i=o?.id??l;let c;e[2]!==r?(c=H("w-full @container",r),e[2]=r,e[3]=c):c=e[3];const u=i??"default";let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(zt,{}),e[4]=d):d=e[4];let f;e[5]!==i?(f=n.jsx(qt,{connectionId:i}),e[5]=i,e[6]=f):f=e[6];let m;e[7]!==u||e[8]!==f?(m=n.jsx(Ae,{fallback:null,children:n.jsx(k.Suspense,{fallback:d,children:f},u)}),e[7]=u,e[8]=f,e[9]=m):m=e[9];let S;return e[10]!==c||e[11]!==m?(S=n.jsx("div",{className:c,children:m}),e[10]=c,e[11]=m,e[12]=S):S=e[12],S}function Qt(t){let e=0;for(const r of t)for(const o of r.parts??[]){const s=o;s.type==="tool-load_repo"&&s.state==="output-available"&&s.output?.success===!0&&e++}return e}function Vt(){const t=F.c(8),{openPanel:e}=Et(),r=wt(),o=Fe()?.messages??[],s=we()?.taskId??null;let a;t[0]!==o?(a=Qt(o),t[0]=o,t[1]=a):a=t[1];const l=a,i=k.useRef(null),c=k.useRef(null);let u,d;t[2]!==l||t[3]!==r||t[4]!==e||t[5]!==s?(u=()=>{if(!l||!s)return;const f=`${s}:${l}`;c.current!==f&&(c.current=f,r?.refreshThreadMetadata(s)),i.current!==s&&(i.current=s,e("site-editor"))},d=[l,s,e,r],t[2]=l,t[3]=r,t[4]=e,t[5]=s,t[6]=u,t[7]=d):(u=t[6],d=t[7]),k.useEffect(u,d)}function _e(t){return`deco-credits-empty-dismissed:${t}`}function Ls(t){try{return localStorage.getItem(_e(t))==="1"}catch{return!1}}function Yt(){const t=F.c(56),e=Z(),{org:r}=X(),o=Tt("credits"),s=je(),{decoKeyId:a}=kt(),[l,i]=k.useState(!0);let c;t[0]!==r.id?(c=()=>{de("credits_empty_state_dismissed",{organization_id:r.id}),i(!1);try{localStorage.setItem(_e(r.id),"1")}catch{}},t[0]=r.id,t[1]=c):c=t[1];const u=c;let d,f;if(t[2]!==l||t[3]!==r.id?(d=()=>{l&&de("credits_empty_state_shown",{organization_id:r.id})},f=[l,r.id],t[2]=l,t[3]=r.id,t[4]=d,t[5]=f):(d=t[4],f=t[5]),k.useEffect(d,f),!l)return null;if(!o){let h;t[6]!==e?(h=e("chat.input.allowanceExhaustedTitle"),t[6]=e,t[7]=h):h=t[7];let v;t[8]!==h?(v={title:h},t[8]=h,t[9]=v):v=t[9];let N;return t[10]!==u||t[11]!==v?(N=n.jsx(Pt,{feature:"chat",copy:v,onDismiss:u}),t[10]=u,t[11]=v,t[12]=N):N=t[12],N}let m;t[13]!==u?(m=h=>!h&&u(),t[13]=u,t[14]=m):m=t[14];let S;t[15]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),t[15]=S):S=t[15];let j;t[16]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:n.jsx(Te,{size:20,className:"text-warning"})}),t[16]=j):j=t[16];let E;t[17]!==e?(E=e("chat.creditsEmptyState.title"),t[17]=e,t[18]=E):E=t[18];let x;t[19]!==E?(x=n.jsx(ye,{className:"text-lg font-semibold",children:E}),t[19]=E,t[20]=x):x=t[20];let b;t[21]!==e?(b=e("chat.creditsEmptyState.description"),t[21]=e,t[22]=b):b=t[22];let C;t[23]!==b?(C=n.jsx(Ie,{className:"mt-2 text-[13px] leading-relaxed max-w-[320px] mx-auto",children:b}),t[23]=b,t[24]=C):C=t[24];let y;t[25]!==x||t[26]!==C?(y=n.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[S,n.jsxs(be,{className:"relative gap-3",children:[j,n.jsxs("div",{className:"text-center",children:[x,C]})]})]}),t[25]=x,t[26]=C,t[27]=y):y=t[27];let P;t[28]!==a||t[29]!==u?(P=a&&n.jsx("div",{className:"px-6 pb-5",children:n.jsx(ht,{source:"empty_state",onDone:u})}),t[28]=a,t[29]=u,t[30]=P):P=t[30];let g;t[31]!==u||t[32]!==s||t[33]!==r.slug?(g=()=>{s({to:"/$org/settings/ai-providers",params:{org:r.slug}}),u()},t[31]=u,t[32]=s,t[33]=r.slug,t[34]=g):g=t[34];let D;t[35]!==e?(D=e("chat.creditsEmptyState.useYourOwnProvider"),t[35]=e,t[36]=D):D=t[36];let T;t[37]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(Ct,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),t[37]=T):T=t[37];let B;t[38]!==g||t[39]!==D?(B=n.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:g,children:[D,T]}),t[38]=g,t[39]=D,t[40]=B):B=t[40];let M;t[41]!==e?(M=e("chat.creditsEmptyState.skipForNow"),t[41]=e,t[42]=M):M=t[42];let L;t[43]!==u||t[44]!==M?(L=n.jsx(Ee,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:u,children:M}),t[43]=u,t[44]=M,t[45]=L):L=t[45];let _;t[46]!==B||t[47]!==L?(_=n.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[B,L]}),t[46]=B,t[47]=L,t[48]=_):_=t[48];let p;t[49]!==y||t[50]!==P||t[51]!==_?(p=n.jsxs(ve,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Jt,children:[y,P,_]}),t[49]=y,t[50]=P,t[51]=_,t[52]=p):p=t[52];let w;return t[53]!==p||t[54]!==m?(w=n.jsx(Se,{open:!0,onOpenChange:m,children:p}),t[53]=p,t[54]=m,t[55]=w):w=t[55],w}function Jt(t){return t.preventDefault()}function Wt(t){const e=F.c(6),{balanceDollars:r}=t;let o;e[0]!==r?(o=r.toFixed(2),e[0]=r,e[1]=o):o=e[1];const s=o;let a,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=H("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),l=n.jsx(Te,{size:13,className:"text-success"}),e[2]=a,e[3]=l):(a=e[2],l=e[3]);let i;return e[4]!==s?(i=n.jsxs("div",{className:a,children:[l,n.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",s," in credits to get started"]})]}),e[4]=s,e[5]=i):i=e[5],i}function Xt(){const t=F.c(8),{org:e}=X(),r=je();let o;t[0]!==r||t[1]!==e.slug?(o=()=>r({to:"/$org/settings/ai-providers",params:{org:e.slug}}),t[0]=r,t[1]=e.slug,t[2]=o):o=t[2];let s,a,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=H("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=n.jsx(Dt,{size:13,className:"text-warning"}),l=n.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),t[3]=s,t[4]=a,t[5]=l):(s=t[3],a=t[4],l=t[5]);let i;return t[6]!==o?(i=n.jsxs("button",{type:"button",onClick:o,className:s,children:[a,l]}),t[6]=o,t[7]=i):i=t[7],i}function Zt(t){const e=F.c(7),{scrollRef:r,sentinelRef:o,hasMoreOlder:s,isFetchingOlder:a,fetchOlderMessages:l}=t;let i,c;e[0]!==l||e[1]!==s||e[2]!==a||e[3]!==r||e[4]!==o?(i=()=>{const u=o.current,d=r.current;if(!u||!d||!s)return;const f=new IntersectionObserver(async m=>{if(!m[0]?.isIntersecting||a||!s)return;const j=d.scrollHeight,E=d.scrollTop;await l(),requestAnimationFrame(()=>{const x=d.scrollHeight;d.scrollTop=E+(x-j)})},{root:d,rootMargin:"200px 0px 0px 0px"});return f.observe(u),()=>f.disconnect()},c=[r,o,s,a,l],e[0]=l,e[1]=s,e[2]=a,e[3]=r,e[4]=o,e[5]=i,e[6]=c):(i=e[5],c=e[6]),k.useEffect(i,c)}function es(t){const e=F.c(5),{className:r,children:o}=t;let s;e[0]!==r?(s=H("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",r),e[0]=r,e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==s?(a=n.jsx("div",{className:s,children:o}),e[2]=o,e[3]=s,e[4]=a):a=e[4],a}function ts(t){const e=F.c(5),{children:r,className:o}=t;let s;e[0]!==o?(s=H("flex-1 min-h-0 overflow-y-auto isolate",o),e[0]=o,e[1]=s):s=e[1];let a;return e[2]!==r||e[3]!==s?(a=n.jsx("div",{className:s,children:r}),e[2]=r,e[3]=s,e[4]=a):a=e[4],a}function ss(t){const e=F.c(2),{children:r}=t;let o;return e[0]!==r?(o=n.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:r}),e[0]=r,e[1]=o):o=e[1],o}function ns(){const t=Z(),{messages:e,status:r,hasMoreOlder:o,isFetchingOlder:s,fetchOlderMessages:a,isRunInProgress:l}=Ne(),{taskId:i}=qe();Vt();const c=Ge(i??""),u=Ue(c),d=u.size===0?e:e.filter(g=>!u.has(g.id)),f=Qe(d,r==="submitted"||r==="streaming"||l),m=f.visible,S=vt(m),j=S.at(-1),x=bt()*yt+16,b=k.useRef(null),C=k.useRef(null);Zt({scrollRef:b,sentinelRef:C,hasMoreOlder:o,isFetchingOlder:s,fetchOlderMessages:a});const y=St({initial:!1}),P=g=>{b.current=g,y.scrollRef(g)};return n.jsx(Ve.Provider,{value:f,children:n.jsx(jt,{messages:e,children:n.jsxs("div",{className:"relative h-full w-full min-w-0",children:[n.jsx("div",{ref:P,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:x},children:n.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[n.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[n.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),s&&n.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:t("chat.chat.loadingOlderMessages")}),S.slice(0,-1).map((g,D)=>n.jsx(fe,{pair:g,isLastPair:!1,status:D===S.length-1?r:void 0},`pair-${g.user?.id??g.assistant?.id}`))]}),j&&n.jsx("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:n.jsx(fe,{pair:j,isLastPair:!0,status:r},`pair-${j.user?.id??j.assistant?.id}`)})]})}),!y.isAtBottom&&n.jsx(Ee,{type:"button",variant:"outline",size:"icon-sm","aria-label":t("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-md animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:x+8},onClick:()=>{y.scrollToBottom()},children:n.jsx(Xe,{size:14})})]})})})}function rs(t){const e=F.c(5),{children:r,className:o}=t;let s;e[0]!==o?(s=H("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",o),e[0]=o,e[1]=s):s=e[1];let a;return e[2]!==r||e[3]!==s?(a=n.jsx("div",{className:s,children:r}),e[2]=r,e[3]=s,e[4]=a):a=e[4],a}const Ms=Object.assign(es,{Main:ts,Messages:ns,EmptyState:ss,Footer:rs,Input:xt,Provider:Ke,ActiveTaskProvider:ze,ThreadlessProvider:He,IceBreakers:Ut,NoAiProviderEmptyState:Nt,CreditsEmptyState:Yt,CreditsEyebrow:Wt,NoCreditsEyebrow:Xt,CreditsExhaustedBanner:gt});export{Ms as C,Ds as S,Rs as a,_s as b,me as i,Pe as u,Ls as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as E,j as x,l as q,af as Tt,t as ue,aX as Xe,a2 as vt,m as At,K as Mt,b4 as St,h as Je}from"./index-eirpwNKj.js";import{a as Ct,n as Ye,E as ie,o as Rt,x as Et,y as P,z as $t,A as _t,B as et,C as N,G as Ee,H as Lt,I as It,J as $e,K as zt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as be,U as Pt,V as Ht,W as jt,X as Nt,Y as Ot,s as Bt,Z as Dt,u as Ft,b as qt}from"./usage-stats-DViGt9Z5.js";import{T as _,n as Wt,i as Ut,E as Gt}from"./editor-classes-BUSqIt7e.js";import{a as Zt,e as nt,s as Vt,S as Kt}from"./suggestion-BtCYsnHk.js";import{B as Qt,c as Xt,t as Jt,C as rt,f as Yt,g as _e,s as en,m as Le,a as Ie,b as tn,d as ze,e as nn,h as rn,i as sn,j as an,k as on,l as ln,n as cn}from"./index-BL53jR3y.js";import{ak as un,al as hn,an as dn,a1 as pn,bg as fn,aW as gn}from"./agent-icon-C0Cpk_fI.js";import{i as mn}from"./SwitchHorizontal01-Ba0pyLay.js";import{i as kn}from"./Link01-B4M7ojFg.js";import{s as bn}from"./Trash01-CyxedK0n.js";import{j as xn,b as wn}from"./use-org-fs-QKl-Epzm.js";import{E as Pe,i as st,c as yn,d as Tn,A as vn,e as An,m as Mn,f as Sn,g as Cn}from"./markdown-BjPIZk-u.js";import{A as Rn}from"./avatar--bVWjvdf.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-BwFTVPCg.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-Cn5Gs8uE.js";import{I as Hn}from"./icon-button-D0a6m1Sz.js";function jn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=d):d=e[4];const f=d;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=Wt(a);if(M===""){g();return}if(!Ut(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx(kn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=x.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let b;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(b=s&&x.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[x.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),x.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:x.jsx(Tt,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(bn,{size:14})})]}),e[18]=h,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=b):b=e[26];let v;return e[27]!==T||e[28]!==b?(v=x.jsxs("div",{className:"relative",children:[T,b]}),e[27]=T,e[28]=b,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=x.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=x.jsx("span",{className:"text-[11px] font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},it=[1,2,3],Nn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function On(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:Bn},e[0]=n,e[1]=a):a=e[1];const l=Ct(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&x.jsxs(Qt,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(un,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(hn,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(dn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(pn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(He,{children:`H${g}`})},g)),x.jsx(le,{}),x.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:x.jsx(mn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(He,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(fn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{editor:n})]}),e[12]=n,e[13]=d,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=x.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function Bn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:it.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Dn=10,Fn=25,qn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Wn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??qn[t.type]??""}function Un(){const t=$.c(4),e=j(),{upload:n}=xn(Pe),r=wn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Dn:Fn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?yn:Tn,c=`${crypto.randomUUID()}${Wn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Ye("uploadSlots"),Gn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Rt({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function he(t,e,n){return t.setMeta(ee,[e,n])}function Zn(t,e){return ee.getState(t)?.get(e)}function Vn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,b,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,b)=>{T===l&&(m=b+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=Et.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Kn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Qn(t=!0){const e=j(),{uploadFile:n}=Un(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Vn(h,Zn(h.state,p)??h.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Kn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,g,m))}}}function xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=xe();function at(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Xn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={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:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Jn=/^(?:[ \t]*(?:\n|$))+/,Yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,er=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ot=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lt=A(ot).replace(/bull/g,we).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(),nr=A(ot).replace(/bull/g,we).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(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="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",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ar=A("^ {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",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ct=A(ye).replace("hr",K).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",ae).getRegex(),or=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ct).getRegex(),Ae={blockquote:or,code:Yn,def:sr,fences:er,heading:tr,hr:K,html:ar,lheading:lt,list:ir,newline:Jn,paragraph:ct,table:O,text:rr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).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",ae).getRegex(),lr={...Ae,lheading:nr,table:je,paragraph:A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).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",ae).getRegex()},cr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).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:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{c as $,b as j,r as E,j as x,l as q,af as Tt,t as ue,aX as Xe,a2 as vt,m as At,K as Mt,b4 as St,h as Je}from"./index-DjAPw3FZ.js";import{a as Ct,n as Ye,E as ie,o as Rt,x as Et,y as P,z as $t,A as _t,B as et,C as N,G as Ee,H as Lt,I as It,J as $e,K as zt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as be,U as Pt,V as Ht,W as jt,X as Nt,Y as Ot,s as Bt,Z as Dt,u as Ft,b as qt}from"./usage-stats-Cgvbigdd.js";import{T as _,n as Wt,i as Ut,E as Gt}from"./editor-classes-DZr3o3GG.js";import{a as Zt,e as nt,s as Vt,S as Kt}from"./suggestion-CuYIU5Nv.js";import{B as Qt,c as Xt,t as Jt,C as rt,f as Yt,g as _e,s as en,m as Le,a as Ie,b as tn,d as ze,e as nn,h as rn,i as sn,j as an,k as on,l as ln,n as cn}from"./index-D43cboe_.js";import{ak as un,al as hn,an as dn,a1 as pn,bg as fn,aW as gn}from"./agent-icon-DeF-Pwnu.js";import{i as mn}from"./SwitchHorizontal01-BGjFR9KE.js";import{i as kn}from"./Link01-vSc5x3Bn.js";import{s as bn}from"./Trash01-Xpxk5zpI.js";import{j as xn,b as wn}from"./use-org-fs-CqBTb_bN.js";import{E as Pe,i as st,c as yn,d as Tn,A as vn,e as An,m as Mn,f as Sn,g as Cn}from"./markdown-Bj3WyP0d.js";import{A as Rn}from"./avatar-DQNWmybT.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-D4hDkkTy.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-DboLlm0U.js";import{I as Hn}from"./icon-button-bWdE1kh9.js";function jn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=d):d=e[4];const f=d;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=Wt(a);if(M===""){g();return}if(!Ut(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx(kn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=x.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let b;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(b=s&&x.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[x.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),x.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:x.jsx(Tt,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(bn,{size:14})})]}),e[18]=h,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=b):b=e[26];let v;return e[27]!==T||e[28]!==b?(v=x.jsxs("div",{className:"relative",children:[T,b]}),e[27]=T,e[28]=b,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=x.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=x.jsx("span",{className:"text-[11px] font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},it=[1,2,3],Nn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function On(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:Bn},e[0]=n,e[1]=a):a=e[1];const l=Ct(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&x.jsxs(Qt,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(un,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(hn,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(dn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(pn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(He,{children:`H${g}`})},g)),x.jsx(le,{}),x.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:x.jsx(mn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(He,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(fn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{editor:n})]}),e[12]=n,e[13]=d,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=x.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function Bn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:it.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Dn=10,Fn=25,qn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Wn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??qn[t.type]??""}function Un(){const t=$.c(4),e=j(),{upload:n}=xn(Pe),r=wn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Dn:Fn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?yn:Tn,c=`${crypto.randomUUID()}${Wn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Ye("uploadSlots"),Gn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Rt({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function he(t,e,n){return t.setMeta(ee,[e,n])}function Zn(t,e){return ee.getState(t)?.get(e)}function Vn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,b,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,b)=>{T===l&&(m=b+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=Et.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Kn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Qn(t=!0){const e=j(),{uploadFile:n}=Un(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Vn(h,Zn(h.state,p)??h.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Kn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,g,m))}}}function xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=xe();function at(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Xn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={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:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Jn=/^(?:[ \t]*(?:\n|$))+/,Yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,er=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ot=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lt=A(ot).replace(/bull/g,we).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(),nr=A(ot).replace(/bull/g,we).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(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="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",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ar=A("^ {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",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ct=A(ye).replace("hr",K).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",ae).getRegex(),or=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ct).getRegex(),Ae={blockquote:or,code:Yn,def:sr,fences:er,heading:tr,hr:K,html:ar,lheading:lt,list:ir,newline:Jn,paragraph:ct,table:O,text:rr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).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",ae).getRegex(),lr={...Ae,lheading:nr,table:je,paragraph:A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).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",ae).getRegex()},cr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).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:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",lt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ur=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ut=/^( {2,}|\\)\n(?!\s*$)/,dr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,W=/[\p{P}\p{S}]/u,oe=/[\s\p{P}\p{S}]/u,Me=/[^\s\p{P}\p{S}]/u,pr=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oe).getRegex(),ht=/(?!~)[\p{P}\p{S}]/u,fr=/(?!~)[\s\p{P}\p{S}]/u,gr=/(?:[^\s\p{P}\p{S}]|~)/u,mr=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),dt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kr=A(dt,"u").replace(/punct/g,W).getRegex(),br=A(dt,"u").replace(/punct/g,ht).getRegex(),pt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xr=A(pt,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),wr=A(pt,"gu").replace(/notPunctSpace/g,gr).replace(/punctSpace/g,fr).replace(/punct/g,ht).getRegex(),yr=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Tr=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,W).getRegex(),vr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ar=A(vr,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Mr=A(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),Sr=A(/^<(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(),Cr=A(ve).replace("(?:-->|$)","-->").getRegex(),Rr=A("^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",Cr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Er=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ft=A(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",Te).getRegex(),gt=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Te).getRegex(),$r=A("reflink|nolink(?!\\()","g").replace("reflink",ft).replace("nolink",gt).getRegex(),Ne=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Se={_backpedal:O,anyPunctuation:Mr,autolink:Sr,blockSkip:mr,br:ut,code:hr,del:O,delLDelim:O,delRDelim:O,emStrongLDelim:kr,emStrongRDelimAst:xr,emStrongRDelimUnd:yr,escape:ur,link:Er,nolink:gt,punctuation:pr,reflink:ft,reflinkSearch:$r,tag:Rr,text:dr,url:O},_r={...Se,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},de={...Se,emStrongRDelimAst:wr,emStrongLDelim:br,delLDelim:Tr,delRDelim:Ar,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ne).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:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ne).getRegex()},Lr={...de,br:A(ut).replace("{2,}","*").getRegex(),text:A(de.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Ae,gfm:lr,pedantic:cr},U={normal:Se,gfm:de,breaks:Lr,pedantic:_r},Ir={"&":"&","<":"<",">":">",'"':""","'":"'"},Oe=t=>Ir[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,Oe)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,Oe);return t}function Be(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function De(t,e){let n=t.replace(R.findPipe,(i,a,l)=>{let o=!1,u=a;for(;--u>=0&&l[u]==="\\";)o=!o;return o?"|":" |"}),r=n.split(R.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(R.slashPipe,"|");return r}function G(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function zr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function Pr(t,e=0){let n=e,r="";for(let s of t)if(s===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=s,n++;return r}function Fe(t,e,n,r,s){let i=e.href,a=e.title||null,l=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}function Hr(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
|
|
3
3
|
`).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=s.length?i.slice(s.length):i}).join(`
|
|
4
4
|
`)}var ne=class{options;rules;lexer;constructor(t){this.options=t||F}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:G(n,`
|