decocms 4.563.0 → 4.563.1
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/{AlertCircle-2LbzMVC9.js → AlertCircle-CzNhPAKr.js} +1 -1
- package/dist/client/assets/{AreaChart-qBz2MFzD.js → AreaChart-jXN8ob1W.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BeuQwyHa.js → ArrowLeft-BZrvcUxe.js} +1 -1
- package/dist/client/assets/{ArrowUp-DmxAfWhF.js → ArrowUp-BmvC0gDN.js} +1 -1
- package/dist/client/assets/{CartesianChart-BSwxZ1ZU.js → CartesianChart-Dr9bA6s0.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DVdTZlRq.js → CategoricalChart-Db8BeNXp.js} +1 -1
- package/dist/client/assets/{CheckCircle-BzNTGMCW.js → CheckCircle-BfgWRJx4.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-XdbRnSsi.js → ChevronSelectorVertical-Dk3Ic8_G.js} +1 -1
- package/dist/client/assets/{ChevronUp-aYmfXYet.js → ChevronUp-CslLufEI.js} +1 -1
- package/dist/client/assets/{CreditCard01-yFcUZGe-.js → CreditCard01-DKR27XQP.js} +1 -1
- package/dist/client/assets/{Globe04-RPMmcIuy.js → Globe04-DD-_PtpP.js} +1 -1
- package/dist/client/assets/{Key01-jvDltRrN.js → Key01-CNesFlbK.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Jybptj_M.js → LinkBroken01-K7vV_sRk.js} +1 -1
- package/dist/client/assets/{Minus-BqtyYKKc.js → Minus-DeqVl1Xe.js} +1 -1
- package/dist/client/assets/{Monitor01-As0zpJLy.js → Monitor01-Bx36gCte.js} +1 -1
- package/dist/client/assets/{Play-CdlorRHF.js → Play-CkRBFbju.js} +1 -1
- package/dist/client/assets/{Plus-CzoopYlU.js → Plus-DtM4w8bA.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CJng4Q0_.js → ReferenceLine-38pFjaQt.js} +1 -1
- package/dist/client/assets/{SearchMd-By2dNUiw.js → SearchMd-Bbg1gFfR.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DhegylE0.js → ShoppingBag01-DW9ACSlI.js} +1 -1
- package/dist/client/assets/{Sun-Hd0LHTxB.js → Sun-DUSHragw.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Czrqzt6f.js → SwitchHorizontal01-BCe-gFOc.js} +1 -1
- package/dist/client/assets/{Tool01-D38zOT0h.js → Tool01-snML4pPn.js} +1 -1
- package/dist/client/assets/{Tooltip-Dxjn-_yM.js → Tooltip-CNZGI5Tv.js} +1 -1
- package/dist/client/assets/{Trash01-BxSWir9J.js → Trash01-DPGVoVI0.js} +1 -1
- package/dist/client/assets/{Upload01-C8sapTWh.js → Upload01-B1K1jpRL.js} +1 -1
- package/dist/client/assets/{UserSquare-CEg-eLCw.js → UserSquare-DgIYcYhA.js} +1 -1
- package/dist/client/assets/{Users01-CMreTMtq.js → Users01-DeK6IcUy.js} +1 -1
- package/dist/client/assets/{XClose-DGifUqyQ.js → XClose-B40NOWtA.js} +1 -1
- package/dist/client/assets/{Zap-BLaVFWQx.js → Zap-PrQtyQ4u.js} +1 -1
- package/dist/client/assets/{access-gate-BJSZ7nU5.js → access-gate-Czwg28Aa.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Dpu5ecJP.js → add-connection-dialog-CvoK8CuD.js} +1 -1
- package/dist/client/assets/agent-app-CIdQoDEi.js +1 -0
- package/dist/client/assets/{agent-assets-7nArEuts.js → agent-assets-BJMuyqMN.js} +1 -1
- package/dist/client/assets/{agent-automation-Dq1UMpQM.js → agent-automation-CC8RZvdz.js} +1 -1
- package/dist/client/assets/{agent-automations-DF3vcb3-.js → agent-automations-Cv89ZDoQ.js} +1 -1
- package/dist/client/assets/{agent-calendar-CsvxRBRw.js → agent-calendar-DWLtrh5a.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CaXbVMop.js → agent-capabilities-DYSIvwwC.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-84FLUgzX.js → agent-connect-sources-dcz4ghlO.js} +1 -1
- package/dist/client/assets/agent-deck-79ukGlaD.js +1 -0
- package/dist/client/assets/{agent-e2e-CfTkWgUa.js → agent-e2e-BecV8iK7.js} +1 -1
- package/dist/client/assets/agent-experiments-0rDHUtoa.js +1 -0
- package/dist/client/assets/{agent-file-C7mhhKFK.js → agent-file-CcRMmQIR.js} +1 -1
- package/dist/client/assets/{agent-hosting-BmtgVBqV.js → agent-hosting-Bp7-sUtV.js} +1 -1
- package/dist/client/assets/{agent-icon-U2nlXoBG.js → agent-icon-_Y5eusMw.js} +1 -1
- package/dist/client/assets/agent-library-CGgf7yTT.js +1 -0
- package/dist/client/assets/agent-library-file-A_6ZSStB.js +1 -0
- package/dist/client/assets/agent-overview-CcczGeFG.js +1 -0
- package/dist/client/assets/{agent-releases-DOPovy0S.js → agent-releases-Kc5s36Dn.js} +2 -2
- package/dist/client/assets/agent-settings-BrQ-Mnfr.js +1 -0
- package/dist/client/assets/{agent-site-editor-Pg_WHlnv.js → agent-site-editor-DcjkqLR_.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-C9Vac5kP.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BK40eFw4.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BmrJe1z-.js +1 -0
- package/dist/client/assets/agent-view-CwNNidpp.js +1 -0
- package/dist/client/assets/{agent-view-guard-BFnkZyhp.js → agent-view-guard-coqrNjXy.js} +1 -1
- package/dist/client/assets/{ai-providers-tFJSU00y.js → ai-providers-D_h0GcaP.js} +1 -1
- package/dist/client/assets/{alert-B52lXsYB.js → alert-h8V4X8Ql.js} +1 -1
- package/dist/client/assets/{analytics-sections-DgZGw207.js → analytics-sections-BBSHBKo9.js} +1 -1
- package/dist/client/assets/{api-keys-Bc1E8umo.js → api-keys-BZ1sBCY5.js} +1 -1
- package/dist/client/assets/api-keys-Clz5-Ffr.js +1 -0
- package/dist/client/assets/{app-editor-a13s_yZZ.js → app-editor-CYkeSh8v.js} +1 -1
- package/dist/client/assets/{asset-utils-DxOK6Cj3.js → asset-utils-0I7CXwnB.js} +1 -1
- package/dist/client/assets/{auth-D991fBKg.js → auth-BFbUp7Gk.js} +1 -1
- package/dist/client/assets/{auth-catchall-CO4eQSBG.js → auth-catchall-Ciz3QLIw.js} +1 -1
- package/dist/client/assets/{auth-entry-IOobChfY.js → auth-entry-CIbESaRU.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Dn_4EroD.js → auth-split-layout-DXGPO57q.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CM3iiCDW.js → authenticate-and-persist-oauth-CDOOyhvF.js} +1 -1
- package/dist/client/assets/{automation-list-row-sEGCpgiC.js → automation-list-row-cqG8j4NI.js} +1 -1
- package/dist/client/assets/{automation-runs-DnhCJL7r.js → automation-runs-CJPBgcyt.js} +1 -1
- package/dist/client/assets/automations-CUnI1LGP.js +1 -0
- package/dist/client/assets/{autosend-D6GGYoeu.js → autosend-hIWj1gzu.js} +1 -1
- package/dist/client/assets/{badge-C9w1KAGQ.js → badge-DccxBHlR.js} +1 -1
- package/dist/client/assets/{block-document-ExA3sDvi.js → block-document-DQqooS8Z.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Gbv7_zq8.js → blocks-preview-workspace-context-DHaN_ngV.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-oXZbJa9b.js → blocks-tab-states-CXVOpcLP.js} +1 -1
- package/dist/client/assets/{blog-schema-4OEvCOpU.js → blog-schema-DZRuLzaf.js} +1 -1
- package/dist/client/assets/{buckets-DsGf5D8D.js → buckets-CF13tBzF.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BpZBupFA.js → build-improve-prompt-doc-Csewa1WB.js} +1 -1
- package/dist/client/assets/{calendar-ahGH-Iwe.js → calendar-CUq9MxZD.js} +1 -1
- package/dist/client/assets/{capability-load-error-BG7LprlO.js → capability-load-error-PMRTSYzm.js} +1 -1
- package/dist/client/assets/{category-editor-Ctbp0oQy.js → category-editor-f0PbIiVt.js} +1 -1
- package/dist/client/assets/chart-DHsiNcHK.js +13 -0
- package/dist/client/assets/{chat-context-CCj5lauv.js → chat-context-zQ-qHQlQ.js} +1 -1
- package/dist/client/assets/{chat-draft-BtMWyLm7.js → chat-draft-DnX_-WHk.js} +1 -1
- package/dist/client/assets/{checkbox-DB14k3TQ.js → checkbox-DNUaBZYX.js} +1 -1
- package/dist/client/assets/{choose-editor-D4zx1UJt.js → choose-editor-Bre429IU.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DeaH4VUx.js → cli-auth-success-xdbDz12_.js} +1 -1
- package/dist/client/assets/{client-icons-C4W9Kqhd.js → client-icons-DbvjRooY.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CcuLaEnU.js → cms-settings-editor-B3_YVdwE.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BumH78UY.js → cms-store-drafts-BL8-fLzg.js} +1 -1
- package/dist/client/assets/{collapsible-BPEhSNLz.js → collapsible-DEQoVVA9.js} +1 -1
- package/dist/client/assets/{collection-detail-ralZDDkv.js → collection-detail-Dl6n3nUb.js} +1 -1
- package/dist/client/assets/{collection-display-button-CigTGx80.js → collection-display-button-BgO5nlf5.js} +1 -1
- package/dist/client/assets/{collection-search-D_oD-yY0.js → collection-search-BKCnDfDh.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C2dK4p_4.js → collection-table-wrapper-BiwEx8lf.js} +1 -1
- package/dist/client/assets/{collection-tabs-SAUXvS4g.js → collection-tabs-CLJwpk3w.js} +1 -1
- package/dist/client/assets/{combobox-hVgdYGtQ.js → combobox-BLt_NngQ.js} +1 -1
- package/dist/client/assets/{command-DiccrIM8.js → command-CnM6TkoO.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BUEyDlWy.js → companion-mcps-section-DDgSYTAO.js} +1 -1
- package/dist/client/assets/{config-DgUlbPLE.js → config-CTbwXMPm.js} +1 -1
- package/dist/client/assets/{connect-DhpQ_i5Y.js → connect-BzaGqaBY.js} +3 -3
- package/dist/client/assets/{connect-layout-Dgb_j_Nn.js → connect-layout-BZ1xoFNF.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-Dga8Dh15.js → connect-source-dialog-BPQ5BKOR.js} +1 -1
- package/dist/client/assets/{connection-DF20RpK_.js → connection-BWV5QLFO.js} +1 -1
- package/dist/client/assets/{connection-card-DeCnJCAi.js → connection-card-xMr1YFzW.js} +1 -1
- package/dist/client/assets/{connection-detail-Dn5XmXHk.js → connection-detail-CGUXC9hw.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B4MG2Fy2.js → connection-form-helpers-CaRBbMf9.js} +1 -1
- package/dist/client/assets/{connection-slug-tS8GnOSc.js → connection-slug-Ygf3Xiz0.js} +1 -1
- package/dist/client/assets/{connections-DREB4U2P.js → connections-wIdj6C4c.js} +1 -1
- package/dist/client/assets/content-tab-D6UWTBDG.js +25 -0
- package/dist/client/assets/{context-Gpy7m9cw.js → context-B_HaMwVa.js} +1 -1
- package/dist/client/assets/{context-menu-vUs3I8Wh.js → context-menu-BOlWz_az.js} +1 -1
- package/dist/client/assets/{context-shell-vU2YMH1K.js → context-shell-Cdw9KYb9.js} +3 -3
- package/dist/client/assets/{core.esm-CWyzckxm.js → core.esm-BbSbwofB.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-qsB5dfrW.js → create-organization-dialog-Dzeh0MX0.js} +1 -1
- package/dist/client/assets/{device-hint-DMMaEP-p.js → device-hint-D3M6OFi8.js} +1 -1
- package/dist/client/assets/{discover-DN-I6i-O.js → discover-DCcWfC01.js} +1 -1
- package/dist/client/assets/{domain-settings-FZeIPnhT.js → domain-settings-Ce2bhWej.js} +1 -1
- package/dist/client/assets/{drawer-CMTReHxa.js → drawer-D4DxFGqN.js} +1 -1
- package/dist/client/assets/{editor-C6CE2FNQ.js → editor-DKoVU6S3.js} +1 -1
- package/dist/client/assets/{editor-classes-DbMPYB4Z.js → editor-classes-DEInI3IT.js} +1 -1
- package/dist/client/assets/{empty-state-DF9St1T6.js → empty-state-CiXq08R1.js} +1 -1
- package/dist/client/assets/{empty-state-ovRL7NEK.js → empty-state-DMIzfRid.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BXlwzycK.js → experiments-tab-choice-DtHr55-O.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Q1k0ncm3.js → extract-connection-data-m9qRk70G.js} +1 -1
- package/dist/client/assets/{feature-gate-DKF86Lcy.js → feature-gate-CbZSFCGe.js} +1 -1
- package/dist/client/assets/{feature-paywall-BoU9TII8.js → feature-paywall-BorE2qu6.js} +1 -1
- package/dist/client/assets/{feedback-f3MT17uD.js → feedback-DM7ibKhA.js} +1 -1
- package/dist/client/assets/{file-explorer-DmvPCizi.js → file-explorer-DgsYJwlc.js} +1 -1
- package/dist/client/assets/{file-preview-aD0sVwV5.js → file-preview-ClFQiMsH.js} +1 -1
- package/dist/client/assets/{file-share-button-agT85qGG.js → file-share-button-oASYWaTp.js} +1 -1
- package/dist/client/assets/{file-type-icon-CflTIvHJ.js → file-type-icon-BgsOvG37.js} +1 -1
- package/dist/client/assets/{folder-icon-BKhbsJwX.js → folder-icon-CjXRQ1u4.js} +1 -1
- package/dist/client/assets/{form-B_3ZthF3.js → form-BV9LGfdZ.js} +1 -1
- package/dist/client/assets/{general-BdjsCK2j.js → general-BOq7h34V.js} +1 -1
- package/dist/client/assets/{github-icon-M-2WiP3Y.js → github-icon-BoZFAAoR.js} +1 -1
- package/dist/client/assets/{home-dTYjLEfm.js → home-Y-BAzROz.js} +1 -1
- package/dist/client/assets/{home-overview-BAVfF6qS.js → home-overview-ztctpGGy.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-B3o4dv7j.js → hosted-reconcile-DgpDwrI2.js} +1 -1
- package/dist/client/assets/{icon-button-DQuPTgIB.js → icon-button-DeiyuWHW.js} +1 -1
- package/dist/client/assets/{index-DT3lYd1R.js → index-2dSYni92.js} +1 -1
- package/dist/client/assets/{index-0kopV6YP.js → index-5iKTkoGz.js} +1 -1
- package/dist/client/assets/{index-iezPx7cK.js → index-BEm4jG3I.js} +1 -1
- package/dist/client/assets/{index-DzmcFP3y.js → index-BFUInOpF.js} +1 -1
- package/dist/client/assets/{index-cmF_qGuq.js → index-CDlOTJSg.js} +1 -1
- package/dist/client/assets/{index-BlTJ0I-U.js → index-CK6jFdOD.js} +1 -1
- package/dist/client/assets/{index-mtR249ru.js → index-CKcY9sA2.js} +1 -1
- package/dist/client/assets/{index-C81DBcO6.js → index-CxYhsN0K.js} +1 -1
- package/dist/client/assets/{index-BM0DSfBG.js → index-DFF-_wih.js} +1 -1
- package/dist/client/assets/{index-2bmOBUEF.js → index-DHdEN2_u.js} +1 -1
- package/dist/client/assets/{index-C2-s3ia2.js → index-DSp2YJxk.js} +1 -1
- package/dist/client/assets/{index-Cjc_aSrk.js → index-DYiWplV5.js} +1 -1
- package/dist/client/assets/{index-BvJNHE6H.js → index-DbAn_rcU.js} +1 -1
- package/dist/client/assets/{index-DHMhIfTt.js → index-Dh9YHhq0.js} +1 -1
- package/dist/client/assets/{index-BZX-7ipZ.js → index-DxGCPS5f.js} +48 -48
- package/dist/client/assets/{index-D7Mi9FGh.js → index-DzoENFz8.js} +1 -1
- package/dist/client/assets/{index-redirect-ay83YA5a.js → index-redirect-rsQ177qk.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CQGSlzKO.js → infiniteQueryObserver-BRbF_8wg.js} +1 -1
- package/dist/client/assets/{infra-billing-DUjivW_p.js → infra-billing-CskAuVtU.js} +1 -1
- package/dist/client/assets/{input-CcFFY__7.js → input-BznJkJE1.js} +3 -3
- package/dist/client/assets/{input-3OyhKW_c.js → input-CYN8nGNA.js} +1 -1
- package/dist/client/assets/{integration-icon-Btk7lWbK.js → integration-icon-CivNYrxB.js} +1 -1
- package/dist/client/assets/{jira-icon-TeK8CaRV.js → jira-icon-EhOwRLcu.js} +1 -1
- package/dist/client/assets/{label-BGCn7A0y.js → label-Co3RnKjI.js} +1 -1
- package/dist/client/assets/{layout-XVKa9Y6f.js → layout-ChuRSl3A.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DksTbOzF.js → legacy-agents-deep-D0c9eotJ.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-8kA2UC85.js → legacy-main-redirect-B6HagH9j.js} +1 -1
- package/dist/client/assets/library-P47bCY92.js +1 -0
- package/dist/client/assets/{library-tab-DJKD7rUC.js → library-tab-QNwTrF2z.js} +1 -1
- package/dist/client/assets/{login-CH5yud2M.js → login-G4MQMu-X.js} +1 -1
- package/dist/client/assets/{markdown-B6eeRWQb.js → markdown-BkKuf5yA.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DwuRGgZk.js → mcp-app-renderer-AZxi3AlX.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bz1Lo9Pk.js → mcp-oauth-C-lvxcK7.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BvqIKSqR.js → mcp-oauth-C3sBEl47.js} +1 -1
- package/dist/client/assets/{members-FYjquUkN.js → members-fyMprese.js} +1 -1
- package/dist/client/assets/{memory-CoUl94G3.js → memory-0qhTiXOS.js} +1 -1
- package/dist/client/assets/{mock-board-DvOE8ZQh.js → mock-board-B5Lo4WRg.js} +3 -3
- package/dist/client/assets/{monaco-editor-vUgphdkE.js → monaco-editor-03CuhEOx.js} +1 -1
- package/dist/client/assets/{monitoring-UUQquQf7.js → monitoring-BWMV-UnG.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BY92i-Bt.js → monitoring-stats-row-BHB7ML9p.js} +1 -1
- package/dist/client/assets/{multi-select-9ieJQPsD.js → multi-select-BvRkhFxR.js} +1 -1
- package/dist/client/assets/{mustache-CgF6ozKS.js → mustache-BRZEXzlS.js} +3 -3
- package/dist/client/assets/{named-rule-view-CdhLqAy7.js → named-rule-view-NWkI621l.js} +1 -1
- package/dist/client/assets/{new-project-dialog-EK9WMEhp.js → new-project-dialog-B_Izhfc6.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cuv6PAYs.js → oauth-callback-C3qf7NWs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BGc97raN.js → oauth-callback-ai-provider-BOCoomMC.js} +1 -1
- package/dist/client/assets/{oauth-consent-fGbsmdGY.js → oauth-consent-kRuFuPRq.js} +1 -1
- package/dist/client/assets/{onboarding-DF5AGUdi.js → onboarding-C9TuarYv.js} +1 -1
- package/dist/client/assets/{openai-conversation-CMIme_Ur.js → openai-conversation-C1V_CQca.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-mQ0HUqGi.js → optimistic-project-sidebar-views-Ms5q90dF.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BPx4Aihv.js → order-monitor-day-B8IwQXNk.js} +1 -1
- package/dist/client/assets/{organization-choice-KNGQur5O.js → organization-choice-IdTamlIL.js} +1 -1
- package/dist/client/assets/{orgs-C5Zlwg3I.js → orgs-D6Y9NZAy.js} +1 -1
- package/dist/client/assets/{own-accounts-section-C_F0-lzr.js → own-accounts-section-CX4xOba8.js} +1 -1
- package/dist/client/assets/{pair-C5KKQk8r.js → pair-BzWauPYd.js} +1 -1
- package/dist/client/assets/{parse-sections-DE2O_vev.js → parse-sections-DE8GWmV_.js} +3 -3
- package/dist/client/assets/{plan-DdvgvWt2.js → plan-CANZ8MES.js} +1 -1
- package/dist/client/assets/{plan-ladder-BQ0gcfdF.js → plan-ladder-CAL4h1RI.js} +1 -1
- package/dist/client/assets/{plan-usage-card-8-3zMqsW.js → plan-usage-card-B0E1Mqx-.js} +2 -2
- package/dist/client/assets/{popover-CkuSZicN.js → popover-cnXo99rU.js} +1 -1
- package/dist/client/assets/{post-calendar-DVrcXuZq.js → post-calendar-CR_baRyF.js} +1 -1
- package/dist/client/assets/{post-editor-CG6NXsGN.js → post-editor-DuGV7g7L.js} +1 -1
- package/dist/client/assets/{preview-content-xRBU7B3O.js → preview-content-Cspo-rar.js} +1 -1
- package/dist/client/assets/{preview-dialog-D36kXBk6.js → preview-dialog-sM6fzUlE.js} +1 -1
- package/dist/client/assets/{preview-panel-Cp7F1lqp.js → preview-panel-vDb65VC_.js} +1 -1
- package/dist/client/assets/preview-tab-BjhtYZTR.js +551 -0
- package/dist/client/assets/{product-picker-dialog-C2KLekZA.js → product-picker-dialog-DL4criSm.js} +1 -1
- package/dist/client/assets/{profile-BfDfzRPA.js → profile-D0f8KwpQ.js} +1 -1
- package/dist/client/assets/project-app-view-BAfcj1IV.js +1 -0
- package/dist/client/assets/{project-apps-D47w7eJj.js → project-apps-DoVt9kS_.js} +1 -1
- package/dist/client/assets/{project-icon-ofE-LDok.js → project-icon-BnHxv46u.js} +1 -1
- package/dist/client/assets/{project-index-PpuyCKHe.js → project-index-WJ4tXHCM.js} +1 -1
- package/dist/client/assets/project-reports-DYL24PFI.js +1 -0
- package/dist/client/assets/{project-sidebar-views-Dew_3OKS.js → project-sidebar-views-CLVZ96mT.js} +1 -1
- package/dist/client/assets/project-tasks-C0N1MlNa.js +1 -0
- package/dist/client/assets/{projects-Be7d593_.js → projects-LpPdlGF4.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DpmH0sch.js → projects-empty-state-iR6Zz5-N.js} +1 -1
- package/dist/client/assets/{prompts-ClmMS_OK.js → prompts-XgZrzKUE.js} +1 -1
- package/dist/client/assets/record-editor-B9sjj4Iw.js +1 -0
- package/dist/client/assets/{redirect-editor-W9B4A_h8.js → redirect-editor-D2q-6Lz4.js} +1 -1
- package/dist/client/assets/{reports-DCsJlho1.js → reports-5E4FVu6v.js} +1 -1
- package/dist/client/assets/reports-D1yzySzc.js +1 -0
- package/dist/client/assets/{reports-onboarding-CMTzWUTp.js → reports-onboarding-DC_5ahpO.js} +1 -1
- package/dist/client/assets/{reports-tab-BKnG1JmX.js → reports-tab-CJb3-7vP.js} +2 -2
- package/dist/client/assets/{repositories-KlUH4dUR.js → repositories-7NE-Y-fP.js} +1 -1
- package/dist/client/assets/repositories-B2vK4Cqr.js +1 -0
- package/dist/client/assets/{repository-binding-CqOunspI.js → repository-binding-C4_xIShf.js} +1 -1
- package/dist/client/assets/{repository-picker-DNdEQtlZ.js → repository-picker-CX0VOapR.js} +1 -1
- package/dist/client/assets/{require-capability-RYn3iksk.js → require-capability-1AcS0xbn.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dfyc4Zas.js → required-auth-layout-lwAsP7t-.js} +1 -1
- package/dist/client/assets/{reset-password-CTGJ7V-t.js → reset-password-DRB8IWFN.js} +1 -1
- package/dist/client/assets/{resizable-BCGqPRic.js → resizable-CZ6UntWr.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BnqDq-fY.js → resolve-tab-icon-JlFD9Ttu.js} +1 -1
- package/dist/client/assets/{review-settings-DvoYyrmi.js → review-settings-DpoAEk87.js} +1 -1
- package/dist/client/assets/{role-color-cUMHSMVi.js → role-color-CAgewKmr.js} +1 -1
- package/dist/client/assets/{roles-x3B4vLKU.js → roles-D-1qXwgE.js} +1 -1
- package/dist/client/assets/{route-PbputQp9.js → route-BM3UxPQb.js} +1 -1
- package/dist/client/assets/{route-h-Fc_oVe.js → route-CAQmwL3B.js} +1 -1
- package/dist/client/assets/route-DVYYyJNN.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-CXwLCWvJ.js → sandbox-lifecycle-context-ByyfF0kL.js} +1 -1
- package/dist/client/assets/{schema-C1bLOk3P.js → schema-DyY5h7Rx.js} +1 -1
- package/dist/client/assets/{schema-DHLwjAWR.js → schema-STdjEbAK.js} +1 -1
- package/dist/client/assets/{scroll-area-rELMi4e6.js → scroll-area-DJvIk_1i.js} +1 -1
- package/dist/client/assets/{search-input-Crult1Qo.js → search-input-BRZEiJxt.js} +1 -1
- package/dist/client/assets/{search-toggle-DzMf9QP4.js → search-toggle-BW-nCNIt.js} +1 -1
- package/dist/client/assets/{secret-picker-CimF9dsx.js → secret-picker-DvJbV8kU.js} +1 -1
- package/dist/client/assets/{secrets-CZCnF6s4.js → secrets-CQ4fmQqK.js} +1 -1
- package/dist/client/assets/{section-array-field-C3Tpx16b.js → section-array-field-CzG_jptj.js} +1 -1
- package/dist/client/assets/{sections-346PcP2T.js → sections-CHxeuMKy.js} +1 -1
- package/dist/client/assets/{sections-editor-DwV32_3f.js → sections-editor-B_kNIbOe.js} +1 -1
- package/dist/client/assets/{select-CwDmbwEv.js → select-C30nxii2.js} +1 -1
- package/dist/client/assets/{select-model-B1ocDBwF.js → select-model-DRBYpCaL.js} +1 -1
- package/dist/client/assets/{seo-editor-D1gGpMMF.js → seo-editor-DazAHwbK.js} +1 -1
- package/dist/client/assets/{separator-C05SxAdn.js → separator-vR8karC8.js} +1 -1
- package/dist/client/assets/settings-tab-Bvb5mnr2.js +1 -0
- package/dist/client/assets/{sheet-BYgfxL9i.js → sheet-ClaqVLRv.js} +1 -1
- package/dist/client/assets/{shell-layout-BvJfyzsq.js → shell-layout-dHGD2tyJ.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CgeV78uL.js → site-draft-actions-BIA6lR1g.js} +1 -1
- package/dist/client/assets/{site-draft-view-Dkq2XweK.js → site-draft-view-Ci2I7i9g.js} +1 -1
- package/dist/client/assets/site-editor-CmjAnts6.js +1 -0
- package/dist/client/assets/site-editor-toast-CgoUJTSW.js +1 -0
- package/dist/client/assets/{skills-OVV2oEwU.js → skills-D1-DQBAA.js} +1 -1
- package/dist/client/assets/{slider-Ipy9G5jv.js → slider-B_ZUvu11.js} +1 -1
- package/dist/client/assets/{sortable.esm-DgwAq-fn.js → sortable.esm-BqKBxgnm.js} +1 -1
- package/dist/client/assets/{sso-C9cutlah.js → sso-DFYqPjQF.js} +1 -1
- package/dist/client/assets/{suggestion-Dwy6qysF.js → suggestion-B-tT_3Ba.js} +1 -1
- package/dist/client/assets/{switch-BLkpF22m.js → switch-BhYC-gsU.js} +1 -1
- package/dist/client/assets/{synced-repos-orJHnVxs.js → synced-repos-CNpviR6w.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Co1M723I.js → tab-icon-glyph-BrdbQUjH.js} +1 -1
- package/dist/client/assets/{table-DPFxRA7S.js → table-Dioc_TQV.js} +1 -1
- package/dist/client/assets/{tabs--wmPR0cZ.js → tabs-t_453qON.js} +1 -1
- package/dist/client/assets/{task-board-DJtwkz3O.js → task-board-T7oS4tjE.js} +1 -1
- package/dist/client/assets/{task-route-vCMrJPp9.js → task-route-BABnfdht.js} +1 -1
- package/dist/client/assets/{task-status-msgu5x2s.js → task-status-B5yaN2e9.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-5nxg7YXN.js → taskboard-analytics-CEOCzjed.js} +1 -1
- package/dist/client/assets/{tasks-DpWVcTLT.js → tasks-CPtiTkqv.js} +3 -3
- package/dist/client/assets/tasks-DmeEepcP.js +1 -0
- package/dist/client/assets/{textarea-D5OF_Tld.js → textarea-CHZQytvO.js} +1 -1
- package/dist/client/assets/{thread-analytics-CVsji2MZ.js → thread-analytics-w3Kn_9QO.js} +1 -1
- package/dist/client/assets/{thread-intent-DIce2mks.js → thread-intent-DckhqhKt.js} +1 -1
- package/dist/client/assets/{thread-route-CP2TR6nw.js → thread-route-CIVmQ-Bx.js} +1 -1
- package/dist/client/assets/{thread-route-CGqDFJ1K.js → thread-route-DyG_eSJM.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Cba15kJF.js → thread-sheet-body-C7OutFPd.js} +1 -1
- package/dist/client/assets/{time-range-picker-OdWLHy9U.js → time-range-picker-Dg1tvNlk.js} +1 -1
- package/dist/client/assets/{toggle-group-DbLOGwe7.js → toggle-group-CC2qDSue.js} +1 -1
- package/dist/client/assets/{tool-namespace-BQhkJpu9.js → tool-namespace-WdIPTHBa.js} +1 -1
- package/dist/client/assets/{tool-set-selector-BmAnaEsw.js → tool-set-selector-By0-LDtv.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BzIcnxXk.js → toolbar-icon-button-CjbxTTYr.js} +1 -1
- package/dist/client/assets/{tooltip--uPFG1gb.js → tooltip-xj6ZnC0s.js} +1 -1
- package/dist/client/assets/{tooltipContext-C8ArdkXW.js → tooltipContext-BPLu0XDW.js} +1 -1
- package/dist/client/assets/{track-Bb4064-s.js → track-Ba7_Ntbn.js} +1 -1
- package/dist/client/assets/{types-EjHtXl5u.js → types-B8snWcBI.js} +1 -1
- package/dist/client/assets/{url-slug-rCJqhuIp.js → url-slug-Dv3zxns9.js} +1 -1
- package/dist/client/assets/{usage-stats-DaOtdhEm.js → usage-stats-hNAp_EX0.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C5rCFpU_.js → use-ai-providers-8QFj-dPT.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-zZmpVvRd.js → use-apply-named-rule-BKcXT1e9.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-C5fM3Bv6.js +1 -0
- package/dist/client/assets/{use-automations-CI7vvUzE.js → use-automations-CTbTqBX7.js} +1 -1
- package/dist/client/assets/{use-autosave-DUBcsRSH.js → use-autosave-CiyRV4I8.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-Oxne65-_.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-CZaSk8YF.js → use-chat-layout-state-D-U8t0kV.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BV2nwL3g.js → use-cms-publish-actions-DmkL-hz5.js} +5 -5
- package/dist/client/assets/{use-connect-companion-DC6UOpxV.js → use-connect-companion-Bwtrfh-M.js} +1 -1
- package/dist/client/assets/{use-connection-BEb786wf.js → use-connection-B3EvPXuJ.js} +1 -1
- package/dist/client/assets/{use-content-sync-CtHfpBJp.js → use-content-sync-C8Ux_RZ8.js} +1 -1
- package/dist/client/assets/{use-copy-DccRTYvG.js → use-copy-O-MML7rC.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DD1YxYKP.js → use-date-fns-locale-CP8lOmDn.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-clO2CzWE.js → use-debounced-autosave-BXwcTWeY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CJpdUTvG.js → use-debounced-value-DDir1rWd.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DtE2LNZs.js → use-deco-credits-Dy_Hg4i-.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DxBT3zOC.js → use-decopilot-events-BAXWzGGN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-COvFjvtJ.js → use-delete-connection-ZbJPfKIZ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BSEuekHe.js → use-deployment-admin-DNwohGK9.js} +1 -1
- package/dist/client/assets/{use-entitlements-CWXMyUT0.js → use-entitlements-SlWYl1h3.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-DB6fawwn.js +1 -0
- package/dist/client/assets/{use-file-configs-DsyBYIJw.js → use-file-configs-BiPsjSp0.js} +1 -1
- package/dist/client/assets/{use-id-selection-6CmUdc1s.js → use-id-selection-CQGXhZf9.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-okLCp4Pp.js → use-inbox-feed-G78cFBlF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-4e7tB3Vz.js → use-infinite-scroll-CuJmRWs3.js} +1 -1
- package/dist/client/assets/{use-join-requests-muPMmn0O.js → use-join-requests-BtFDzITE.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-D_s_t2hY.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-D_TqnxnH.js → use-mcp-auth-status-C4Vaxyeo.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CrdyqnFt.js → use-mcp-client-BFuEikBh.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C3SHzM_d.js → use-mcp-prompts-W7_z0mx2.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DQIJMlw-.js → use-mcp-tools-Fkw183dy.js} +1 -1
- package/dist/client/assets/{use-mobile-BDWitdax.js → use-mobile-COmq9TQM.js} +1 -1
- package/dist/client/assets/use-move-blocks-DtAEvUrz.js +1 -0
- package/dist/client/assets/{use-navigate-to-agent-C3sX18jI.js → use-navigate-to-agent-RGucqDuO.js} +1 -1
- package/dist/client/assets/{use-org-fs-BRERSVus.js → use-org-fs-B1VEI_Er.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BFFdo3jR.js → use-org-repo-syncs-DE87oI9s.js} +1 -1
- package/dist/client/assets/{use-org-sso-BHDTii7j.js → use-org-sso-RIE_JSyT.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DPCrcu8e.js → use-organization-settings-DqmiRW0D.js} +1 -1
- package/dist/client/assets/{use-project-scope-k7OaKjIm.js → use-project-scope-CYZ0mCfQ.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Buo9cWvj.js → use-recent-apps-D1NSRmBo.js} +1 -1
- package/dist/client/assets/use-reports-diagnostic-DGd4jOlT.js +1 -0
- package/dist/client/assets/{use-sandbox-events-BRJYKM54.js → use-sandbox-events-nFpLHv9o.js} +1 -1
- package/dist/client/assets/{use-secrets-DlNiP0j4.js → use-secrets-B3RSCdMi.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CL9U3MEc.js → use-section-preview-base-CvJ34UxX.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-ByMTBVZc.js → use-sidebar-collapsed-DXX9If3C.js} +1 -1
- package/dist/client/assets/{use-tags-CcJayzHf.js → use-tags-BjaNX9ld.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-0-6_3j_2.js → use-task-board-analytics--QCcKCkA.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CzDIUBok.js → use-task-board-events-p-Cj7F6A.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DbHC-4Ry.js → use-task-board-item-prs-DRcN9Nsr.js} +1 -1
- package/dist/client/assets/{use-task-board-items-COxHF7_K.js → use-task-board-items-tdp7palw.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-CKi9j8wF.js → use-task-board-prompts-CPvlYwGk.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BxcNhivS.js → use-task-metadata-D1snlV6w.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-lMVF4bT2.js → use-thread-outputs-bD7oL4Tg.js} +1 -1
- package/dist/client/assets/{use-voice-input-DsJxHyTh.js → use-voice-input-CZ-OU5Nk.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ByQLYXMe.js +1 -0
- package/dist/client/assets/{useQueries-BO8pZ9q-.js → useQueries-DSvnP38O.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ClUlWmLx.js +1 -0
- package/dist/client/assets/{users-DCPPe9Uo.js → users-Bqa3Dwe4.js} +1 -1
- package/dist/client/assets/{utils-D0xixM8q.js → utils-Dk3SKS5y.js} +1 -1
- package/dist/client/assets/{variant-calendar-C5r0ak32.js → variant-calendar-CD4VQuq0.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-QQd3tA7f.js → variant-matcher-override-NriuY-7n.js} +1 -1
- package/dist/client/assets/{view-header-BPAnt0vh.js → view-header-B6CnFcfB.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Dzr3mFmO.js → virtual-mcp-D5NkkvKn.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-j0K-nQ0i.js → watch-sse-pool-BKRouklE.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CHKycGm0.js +0 -1
- package/dist/client/assets/agent-deck-DEx4qeYv.js +0 -1
- package/dist/client/assets/agent-experiments-BMy2QOPP.js +0 -1
- package/dist/client/assets/agent-library-DIxeSWXa.js +0 -1
- package/dist/client/assets/agent-library-file-DQB6i5_0.js +0 -1
- package/dist/client/assets/agent-overview-D8ZTdoEM.js +0 -1
- package/dist/client/assets/agent-settings-x3yUV6x9.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DDscaXHP.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CBj6Azpl.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Doqukvwz.js +0 -1
- package/dist/client/assets/agent-view-CvpQlU18.js +0 -1
- package/dist/client/assets/api-keys-BEFmsf3L.js +0 -1
- package/dist/client/assets/automations-BopJHgke.js +0 -1
- package/dist/client/assets/chart-DnblhNHq.js +0 -13
- package/dist/client/assets/content-tab-kF-GtTU9.js +0 -25
- package/dist/client/assets/library-O1-Gs4qz.js +0 -1
- package/dist/client/assets/preview-tab-Dn0RGnhj.js +0 -551
- package/dist/client/assets/project-app-view-DVhAuH9N.js +0 -1
- package/dist/client/assets/project-reports-BuJS86vH.js +0 -1
- package/dist/client/assets/project-tasks-CZtVWSYo.js +0 -1
- package/dist/client/assets/record-editor-OoLxSu9R.js +0 -1
- package/dist/client/assets/reports-s2E9cwFc.js +0 -1
- package/dist/client/assets/repositories-Dj2kaTIN.js +0 -1
- package/dist/client/assets/route-wINBwrny.js +0 -1
- package/dist/client/assets/settings-tab-BImv5HgS.js +0 -1
- package/dist/client/assets/site-editor-B9ARkCiN.js +0 -1
- package/dist/client/assets/site-editor-toast-D83gMpdg.js +0 -1
- package/dist/client/assets/tasks-hbXv3hSd.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BaG9i0zc.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-CXrKL60y.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-BCmBxVQg.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-BcP_qZl8.js +0 -1
- package/dist/client/assets/use-move-blocks-B48xFUbp.js +0 -1
- package/dist/client/assets/use-reports-diagnostic-B1lbI319.js +0 -1
- package/dist/client/assets/useInfiniteQuery-B313haH3.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-07GrICuv.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,ar as oe,at as re,b as se,a5 as ce,l as de,j as s,m as ue,n as ae,r as D,d as he,aR as Z,R as J,P as z,aZ as fe,B as me}from"./index-BZX-7ipZ.js";import{u as pe}from"./use-mobile-BDWitdax.js";import{h as ge,c as be,u as xe,m as ye}from"./use-sidebar-collapsed-ByMTBVZc.js";import{a as ie,R as je,b as Se}from"./resizable-BCGqPRic.js";import{c as ve,r as Ce,m as Te}from"./use-chat-layout-state-CZaSk8YF.js";import{L as Le,q as Ne}from"./agent-icon-U2nlXoBG.js";import{c as Q,T as X,a as ee}from"./tooltip--uPFG1gb.js";import{T as te}from"./toolbar-icon-button-BzIcnxXk.js";import{u as we}from"./use-project-scope-k7OaKjIm.js";import{b as Pe}from"./repository-binding-CqOunspI.js";function ne(o,e){const a=typeof o=="number"?o:Number(o);return!Number.isFinite(a)||a<=0||a>=100?e:a}function ze(o,e){const a=w.c(8);let l;a[0]!==e?(l=c=>ne(c,e),a[0]=e,a[1]=l):l=a[1];const[t,i]=oe(o,l);let n;a[2]!==e||a[3]!==t?(n=ne(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let u;return a[5]!==i||a[6]!==n?(u=[n,i],a[5]=i,a[6]=n,a[7]=u):u=a[7],u}const _e=33;function Oe(){const o=w.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=re.sidePanelWidth(),o[0]=e):e=o[0],ze(e,_e)}function Ee(o){const e=w.c(64),{actions:a,navigation:l}=o,t=se(),{org:i}=ce(),n=we(),u=Pe(n),c=ge(),{toggleSidebar:d}=be(),h=xe(),r=le();let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={select:Re},e[0]=f):f=e[0];const m=de(f),b=m?.mainView==="overview";let x;e[1]!==u?.title||e[2]!==t?(x=u?.title??t("common.loading"),e[1]=u?.title,e[2]=t,e[3]=x):x=e[3];const y=x;let j;e[4]!==b||e[5]!==m?.mainView||e[6]!==m?.pageTitle||e[7]!==y||e[8]!==n||e[9]!==t?(j=b?n?y:t("sidebar.navDestinations.home"):m?.mainView==="files"?t("sidebar.navDestinations.context"):t(m?.pageTitle??"page.view"),e[4]=b,e[5]=m?.mainView,e[6]=m?.pageTitle,e[7]=y,e[8]=n,e[9]=t,e[10]=j):j=e[10];const S=j,C=n??"";let T;e[11]!==i.slug||e[12]!==C?(T={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:C}},e[11]=i.slug,e[12]=C,e[13]=T):T=e[13];const p=T;let g;if(e[14]!==c||e[15]!==b||e[16]!==i.slug||e[17]!==p||e[18]!==y||e[19]!==n||e[20]!==t||e[21]!==S){if(g=[],c){let v;e[23]!==t?(v=t("sidebar.navDestinations.settings"),e[23]=t,e[24]=v):v=e[24];let B;e[25]!==i.slug?(B={to:"/$org/settings/general",params:{org:i.slug}},e[25]=i.slug,e[26]=B):B=e[26];let K;e[27]!==v||e[28]!==B?(K={key:"settings",label:v,link:B},e[27]=v,e[28]=B,e[29]=K):K=e[29],g.push(K)}else if(n&&!b){let v;e[30]!==p||e[31]!==y?(v={key:"project",label:y,link:p},e[30]=p,e[31]=y,e[32]=v):v=e[32],g.push(v)}let V;e[33]!==S?(V={key:"page",label:S},e[33]=S,e[34]=V):V=e[34],g.push(V),e[14]=c,e[15]=b,e[16]=i.slug,e[17]=p,e[18]=y,e[19]=n,e[20]=t,e[21]=S,e[22]=g}else g=e[22];const L=h,N=!!r&&!r.threadless&&r.threadOpen;let P;e[35]!==r||e[36]!==L||e[37]!==t?(P=L&&r&&!r.threadless&&s.jsxs(Q,{children:[s.jsx(X,{asChild:!0,children:s.jsx(te,{"aria-label":t(r.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":r.threadOpen,active:r.threadOpen,onClick:r.toggleThread,children:s.jsx(Le,{size:16})})}),s.jsx(ee,{side:"bottom",children:t(r.threadOpen?"page.closeThread":"page.openThread")})]}),e[35]=r,e[36]=L,e[37]=t,e[38]=P):P=e[38];const q=P,W=(!L||N)&&"md:hidden";let _;e[39]!==W?(_=ue(W),e[39]=W,e[40]=_):_=e[40];let O;e[41]!==t?(O=t("page.expandSidebar"),e[41]=t,e[42]=O):O=e[42];let A;e[43]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{size:16}),e[43]=A):A=e[43];let E;e[44]!==_||e[45]!==O||e[46]!==d?(E=s.jsx(X,{asChild:!0,children:s.jsx(te,{className:_,onClick:d,"aria-label":O,children:A})}),e[44]=_,e[45]=O,e[46]=d,e[47]=E):E=e[47];let R;e[48]!==t?(R=t("page.expandSidebar"),e[48]=t,e[49]=R):R=e[49];let M;e[50]!==R?(M=s.jsx(ee,{side:"bottom",children:R}),e[50]=R,e[51]=M):M=e[51];let k;e[52]!==E||e[53]!==M?(k=s.jsxs(Q,{children:[E,M]}),e[52]=E,e[53]=M,e[54]=k):k=e[54];let I;e[55]!==q||e[56]!==k?(I=s.jsxs(s.Fragment,{children:[k,q]}),e[55]=q,e[56]=k,e[57]=I):I=e[57];let H;return e[58]!==a||e[59]!==g||e[60]!==l||e[61]!==i.name||e[62]!==I?(H=s.jsx(ae.Header,{leading:I,breadcrumbs:g,scope:i.name,actions:a,navigation:l}),e[58]=a,e[59]=g,e[60]=l,e[61]=i.name,e[62]=I,e[63]=H):H=e[63],H}function Re(o){return o.matches.findLast(Me)?.staticData}function Me(o){return o.staticData.pageTitle}const $="chat-layout-thread",F="chat-layout-content",G=D.createContext(null);function ke(){return U()}function le(){return D.use(G)}function U(){const o=D.use(G);if(!o)throw new Error("ChatLayout regions require a ChatLayout");return o}function Ie(o){const e=w.c(23),{children:a,...l}=o,t=pe(),i=he(),n=D.useRef(null),[u,c]=Oe(),{threadOpen:d,contentOpen:h}=l,r=ve(l),f=d&&h?u:r.side,m=100-f,b=p=>{const g=p.getLayout(),L=g[$],N=g[F];typeof L!="number"||typeof N!="number"||Math.abs(L-f)<.001&&Math.abs(N-m)<.001||p.setLayout({[$]:f,[F]:m})},x=Ce({visibility:l,threadVisibilityExplicit:l.threadVisibilityExplicit});let y;e[0]!==t||e[1]!==l||e[2]!==x?(y={...l,isMobile:t,mobileSurface:x},e[0]=t,e[1]=l,e[2]=x,e[3]=y):y=e[3];const j=y;let S;e[4]!==t||e[5]!==l||e[6]!==i||e[7]!==d||e[8]!==j?(S=!l.threadless&&s.jsx(ye,{open:t?j.mobileSurface==="chat":d,onToggle:()=>{t?i({to:".",search:p=>({...p,...Te(j.mobileSurface==="chat"?"main":"chat")}),replace:!0}):l.toggleThread()}}),e[4]=t,e[5]=l,e[6]=i,e[7]=d,e[8]=j,e[9]=S):S=e[9];let C;e[10]!==a||e[11]!==h||e[12]!==m||e[13]!==t||e[14]!==c||e[15]!==b||e[16]!==d||e[17]!==f?(C=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(je,{ref:p=>{if(n.current=p,!p)return;let g=!0;return queueMicrotask(()=>{g&&b(p)}),()=>{g=!1,n.current===p&&(n.current=null)}},defaultLayout:{[$]:f,[F]:m},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(p,g)=>{const{isUserInteraction:L}=g;if(!L){const P=n.current;P&&b(P);return}const N=p[$];d&&h&&typeof N=="number"&&N>0&&N<100&&c(N)},children:a}),e[10]=a,e[11]=h,e[12]=m,e[13]=t,e[14]=c,e[15]=b,e[16]=d,e[17]=f,e[18]=C):C=e[18];let T;return e[19]!==S||e[20]!==C||e[21]!==j?(T=s.jsxs(G,{value:j,children:[S,C]}),e[19]=S,e[20]=C,e[21]=j,e[22]=T):T=e[22],T}function Be(o){const e=w.c(16),{children:a,topbar:l}=o,t=U();if(t.isMobile){let r;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==l?(r=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[l,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=l,e[3]=r):r=e[3],r}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==l?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[l,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=l,e[7]=n):n=e[7];let u;e[8]!==n?(u=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=u):u=e[9];let c;e[10]!==i||e[11]!==u?(c=s.jsx(ie,{id:$,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:u}),e[10]=i,e[11]=u,e[12]=c):c=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Se,{className:"bg-sidebar"}),e[13]=d):d=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,d]}),e[14]=c,e[15]=h):h=e[15],h}function $e({children:o,routeId:e}){return o}function Y(o){const e=w.c(23),{children:a,actions:l,drawer:t,aside:i}=o,n=U();if(n.isMobile&&n.mobileSurface!=="main")return null;const u=n.isMobile?"plain":"card";let c;e[0]!==l||e[1]!==n.contentNavigation?(c=s.jsx(Ee,{navigation:n.contentNavigation,actions:l}),e[0]=l,e[1]=n.contentNavigation,e[2]=c):c=e[2];let d;e[3]!==a||e[4]!==n.contentKey?(d=s.jsx(Z,{children:s.jsx($e,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=d):d=e[5];let h;e[6]!==n.contentKey||e[7]!==d?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(J,{children:d},n.contentKey)}),e[6]=n.contentKey,e[7]=d,e[8]=h):h=e[8];let r;e[9]!==t||e[10]!==h?(r=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=r):r=e[11];let f;e[12]!==c||e[13]!==r?(f=s.jsxs(ae.Breadcrumbs.Provider,{children:[c,r]}),e[12]=c,e[13]=r,e[14]=f):f=e[14];let m;e[15]!==u||e[16]!==f?(m=s.jsx(z,{"data-testid":"main-panel",variant:u,children:f}),e[15]=u,e[16]=f,e[17]=m):m=e[17];const b=m;let x;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==b?(x=n.isMobile?b:s.jsx(ie,{id:F,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:b}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(J,{children:s.jsx(Z,{children:i})},D.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=b,e[22]=x):x=e[22],x}function De(){const o=w.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Y,{children:s.jsx(fe,{})}),o[0]=e):e=o[0],e}function Ae(o){const e=w.c(18),{error:a,reset:l}=o,t=se();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,e[3]=n):n=e[3];let u;e[4]!==a.message||e[5]!==t?(u=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=u):u=e[6];let c;e[7]!==u?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:u}),e[7]=u,e[8]=c):c=e[8];let d;e[9]!==t?(d=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=d):d=e[10];let h;e[11]!==l||e[12]!==d?(h=s.jsx(me,{variant:"outline",onClick:l,children:d}),e[11]=l,e[12]=d,e[13]=h):h=e[13];let r;return e[14]!==n||e[15]!==c||e[16]!==h?(r=s.jsx(Y,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=r):r=e[17],r}const He=Object.assign(Ie,{Thread:Be,Content:Y}),Qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:He,ChatLayoutError:Ae,ChatLayoutPending:De,useChatLayout:ke,useOptionalChatLayout:le},Symbol.toStringTag,{value:"Module"}));export{He as C,Ee as R,Qe as i,ke as u};
|
|
1
|
+
import{c as w,ar as oe,at as re,b as se,a5 as ce,l as de,j as s,m as ue,n as ae,r as D,d as he,aR as Z,R as J,P as z,aZ as fe,B as me}from"./index-DxGCPS5f.js";import{u as pe}from"./use-mobile-COmq9TQM.js";import{h as ge,c as be,u as xe,m as ye}from"./use-sidebar-collapsed-DXX9If3C.js";import{a as ie,R as je,b as Se}from"./resizable-CZ6UntWr.js";import{c as ve,r as Ce,m as Te}from"./use-chat-layout-state-D-U8t0kV.js";import{L as Le,q as Ne}from"./agent-icon-_Y5eusMw.js";import{c as Q,T as X,a as ee}from"./tooltip-xj6ZnC0s.js";import{T as te}from"./toolbar-icon-button-CjbxTTYr.js";import{u as we}from"./use-project-scope-CYZ0mCfQ.js";import{b as Pe}from"./repository-binding-C4_xIShf.js";function ne(o,e){const a=typeof o=="number"?o:Number(o);return!Number.isFinite(a)||a<=0||a>=100?e:a}function ze(o,e){const a=w.c(8);let l;a[0]!==e?(l=c=>ne(c,e),a[0]=e,a[1]=l):l=a[1];const[t,i]=oe(o,l);let n;a[2]!==e||a[3]!==t?(n=ne(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let u;return a[5]!==i||a[6]!==n?(u=[n,i],a[5]=i,a[6]=n,a[7]=u):u=a[7],u}const _e=33;function Oe(){const o=w.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=re.sidePanelWidth(),o[0]=e):e=o[0],ze(e,_e)}function Ee(o){const e=w.c(64),{actions:a,navigation:l}=o,t=se(),{org:i}=ce(),n=we(),u=Pe(n),c=ge(),{toggleSidebar:d}=be(),h=xe(),r=le();let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={select:Re},e[0]=f):f=e[0];const m=de(f),b=m?.mainView==="overview";let x;e[1]!==u?.title||e[2]!==t?(x=u?.title??t("common.loading"),e[1]=u?.title,e[2]=t,e[3]=x):x=e[3];const y=x;let j;e[4]!==b||e[5]!==m?.mainView||e[6]!==m?.pageTitle||e[7]!==y||e[8]!==n||e[9]!==t?(j=b?n?y:t("sidebar.navDestinations.home"):m?.mainView==="files"?t("sidebar.navDestinations.context"):t(m?.pageTitle??"page.view"),e[4]=b,e[5]=m?.mainView,e[6]=m?.pageTitle,e[7]=y,e[8]=n,e[9]=t,e[10]=j):j=e[10];const S=j,C=n??"";let T;e[11]!==i.slug||e[12]!==C?(T={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:C}},e[11]=i.slug,e[12]=C,e[13]=T):T=e[13];const p=T;let g;if(e[14]!==c||e[15]!==b||e[16]!==i.slug||e[17]!==p||e[18]!==y||e[19]!==n||e[20]!==t||e[21]!==S){if(g=[],c){let v;e[23]!==t?(v=t("sidebar.navDestinations.settings"),e[23]=t,e[24]=v):v=e[24];let B;e[25]!==i.slug?(B={to:"/$org/settings/general",params:{org:i.slug}},e[25]=i.slug,e[26]=B):B=e[26];let K;e[27]!==v||e[28]!==B?(K={key:"settings",label:v,link:B},e[27]=v,e[28]=B,e[29]=K):K=e[29],g.push(K)}else if(n&&!b){let v;e[30]!==p||e[31]!==y?(v={key:"project",label:y,link:p},e[30]=p,e[31]=y,e[32]=v):v=e[32],g.push(v)}let V;e[33]!==S?(V={key:"page",label:S},e[33]=S,e[34]=V):V=e[34],g.push(V),e[14]=c,e[15]=b,e[16]=i.slug,e[17]=p,e[18]=y,e[19]=n,e[20]=t,e[21]=S,e[22]=g}else g=e[22];const L=h,N=!!r&&!r.threadless&&r.threadOpen;let P;e[35]!==r||e[36]!==L||e[37]!==t?(P=L&&r&&!r.threadless&&s.jsxs(Q,{children:[s.jsx(X,{asChild:!0,children:s.jsx(te,{"aria-label":t(r.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":r.threadOpen,active:r.threadOpen,onClick:r.toggleThread,children:s.jsx(Le,{size:16})})}),s.jsx(ee,{side:"bottom",children:t(r.threadOpen?"page.closeThread":"page.openThread")})]}),e[35]=r,e[36]=L,e[37]=t,e[38]=P):P=e[38];const q=P,W=(!L||N)&&"md:hidden";let _;e[39]!==W?(_=ue(W),e[39]=W,e[40]=_):_=e[40];let O;e[41]!==t?(O=t("page.expandSidebar"),e[41]=t,e[42]=O):O=e[42];let A;e[43]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{size:16}),e[43]=A):A=e[43];let E;e[44]!==_||e[45]!==O||e[46]!==d?(E=s.jsx(X,{asChild:!0,children:s.jsx(te,{className:_,onClick:d,"aria-label":O,children:A})}),e[44]=_,e[45]=O,e[46]=d,e[47]=E):E=e[47];let R;e[48]!==t?(R=t("page.expandSidebar"),e[48]=t,e[49]=R):R=e[49];let M;e[50]!==R?(M=s.jsx(ee,{side:"bottom",children:R}),e[50]=R,e[51]=M):M=e[51];let k;e[52]!==E||e[53]!==M?(k=s.jsxs(Q,{children:[E,M]}),e[52]=E,e[53]=M,e[54]=k):k=e[54];let I;e[55]!==q||e[56]!==k?(I=s.jsxs(s.Fragment,{children:[k,q]}),e[55]=q,e[56]=k,e[57]=I):I=e[57];let H;return e[58]!==a||e[59]!==g||e[60]!==l||e[61]!==i.name||e[62]!==I?(H=s.jsx(ae.Header,{leading:I,breadcrumbs:g,scope:i.name,actions:a,navigation:l}),e[58]=a,e[59]=g,e[60]=l,e[61]=i.name,e[62]=I,e[63]=H):H=e[63],H}function Re(o){return o.matches.findLast(Me)?.staticData}function Me(o){return o.staticData.pageTitle}const $="chat-layout-thread",F="chat-layout-content",G=D.createContext(null);function ke(){return U()}function le(){return D.use(G)}function U(){const o=D.use(G);if(!o)throw new Error("ChatLayout regions require a ChatLayout");return o}function Ie(o){const e=w.c(23),{children:a,...l}=o,t=pe(),i=he(),n=D.useRef(null),[u,c]=Oe(),{threadOpen:d,contentOpen:h}=l,r=ve(l),f=d&&h?u:r.side,m=100-f,b=p=>{const g=p.getLayout(),L=g[$],N=g[F];typeof L!="number"||typeof N!="number"||Math.abs(L-f)<.001&&Math.abs(N-m)<.001||p.setLayout({[$]:f,[F]:m})},x=Ce({visibility:l,threadVisibilityExplicit:l.threadVisibilityExplicit});let y;e[0]!==t||e[1]!==l||e[2]!==x?(y={...l,isMobile:t,mobileSurface:x},e[0]=t,e[1]=l,e[2]=x,e[3]=y):y=e[3];const j=y;let S;e[4]!==t||e[5]!==l||e[6]!==i||e[7]!==d||e[8]!==j?(S=!l.threadless&&s.jsx(ye,{open:t?j.mobileSurface==="chat":d,onToggle:()=>{t?i({to:".",search:p=>({...p,...Te(j.mobileSurface==="chat"?"main":"chat")}),replace:!0}):l.toggleThread()}}),e[4]=t,e[5]=l,e[6]=i,e[7]=d,e[8]=j,e[9]=S):S=e[9];let C;e[10]!==a||e[11]!==h||e[12]!==m||e[13]!==t||e[14]!==c||e[15]!==b||e[16]!==d||e[17]!==f?(C=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(je,{ref:p=>{if(n.current=p,!p)return;let g=!0;return queueMicrotask(()=>{g&&b(p)}),()=>{g=!1,n.current===p&&(n.current=null)}},defaultLayout:{[$]:f,[F]:m},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(p,g)=>{const{isUserInteraction:L}=g;if(!L){const P=n.current;P&&b(P);return}const N=p[$];d&&h&&typeof N=="number"&&N>0&&N<100&&c(N)},children:a}),e[10]=a,e[11]=h,e[12]=m,e[13]=t,e[14]=c,e[15]=b,e[16]=d,e[17]=f,e[18]=C):C=e[18];let T;return e[19]!==S||e[20]!==C||e[21]!==j?(T=s.jsxs(G,{value:j,children:[S,C]}),e[19]=S,e[20]=C,e[21]=j,e[22]=T):T=e[22],T}function Be(o){const e=w.c(16),{children:a,topbar:l}=o,t=U();if(t.isMobile){let r;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==l?(r=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[l,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=l,e[3]=r):r=e[3],r}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==l?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[l,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=l,e[7]=n):n=e[7];let u;e[8]!==n?(u=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=u):u=e[9];let c;e[10]!==i||e[11]!==u?(c=s.jsx(ie,{id:$,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:u}),e[10]=i,e[11]=u,e[12]=c):c=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Se,{className:"bg-sidebar"}),e[13]=d):d=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,d]}),e[14]=c,e[15]=h):h=e[15],h}function $e({children:o,routeId:e}){return o}function Y(o){const e=w.c(23),{children:a,actions:l,drawer:t,aside:i}=o,n=U();if(n.isMobile&&n.mobileSurface!=="main")return null;const u=n.isMobile?"plain":"card";let c;e[0]!==l||e[1]!==n.contentNavigation?(c=s.jsx(Ee,{navigation:n.contentNavigation,actions:l}),e[0]=l,e[1]=n.contentNavigation,e[2]=c):c=e[2];let d;e[3]!==a||e[4]!==n.contentKey?(d=s.jsx(Z,{children:s.jsx($e,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=d):d=e[5];let h;e[6]!==n.contentKey||e[7]!==d?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(J,{children:d},n.contentKey)}),e[6]=n.contentKey,e[7]=d,e[8]=h):h=e[8];let r;e[9]!==t||e[10]!==h?(r=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=r):r=e[11];let f;e[12]!==c||e[13]!==r?(f=s.jsxs(ae.Breadcrumbs.Provider,{children:[c,r]}),e[12]=c,e[13]=r,e[14]=f):f=e[14];let m;e[15]!==u||e[16]!==f?(m=s.jsx(z,{"data-testid":"main-panel",variant:u,children:f}),e[15]=u,e[16]=f,e[17]=m):m=e[17];const b=m;let x;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==b?(x=n.isMobile?b:s.jsx(ie,{id:F,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:b}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(J,{children:s.jsx(Z,{children:i})},D.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=b,e[22]=x):x=e[22],x}function De(){const o=w.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Y,{children:s.jsx(fe,{})}),o[0]=e):e=o[0],e}function Ae(o){const e=w.c(18),{error:a,reset:l}=o,t=se();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,e[3]=n):n=e[3];let u;e[4]!==a.message||e[5]!==t?(u=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=u):u=e[6];let c;e[7]!==u?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:u}),e[7]=u,e[8]=c):c=e[8];let d;e[9]!==t?(d=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=d):d=e[10];let h;e[11]!==l||e[12]!==d?(h=s.jsx(me,{variant:"outline",onClick:l,children:d}),e[11]=l,e[12]=d,e[13]=h):h=e[13];let r;return e[14]!==n||e[15]!==c||e[16]!==h?(r=s.jsx(Y,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=r):r=e[17],r}const He=Object.assign(Ie,{Thread:Be,Content:Y}),Qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:He,ChatLayoutError:Ae,ChatLayoutPending:De,useChatLayout:ke,useOptionalChatLayout:le},Symbol.toStringTag,{value:"Module"}));export{He as C,Ee as R,Qe as i,ke as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as E,j as x,m as q,bx as At,t as ue,b2 as Ye,a5 as Mt,hb as St,i as Ct,K as Rt,bQ as Et,h as Je,o as $t}from"./index-BZX-7ipZ.js";import{a as _t,n as et,E as ie,o as Lt,x as It,y as P,z as zt,A as Pt,B as tt,C as N,G as Ee,H as Ht,I as jt,J as $e,K as Nt,L as V,N as D,m as H,O as J,T as nt,R as ke,Q as xe,U as Ot,V as Bt,W as Dt,X as Ft,Y as qt,s as Wt,Z as Ut,u as Gt,b as Zt}from"./usage-stats-DaOtdhEm.js";import{T as _,n as Vt,i as Kt,E as Qt}from"./editor-classes-DbMPYB4Z.js";import{a as Xt,e as rt,s as Yt,S as Jt}from"./suggestion-Dwy6qysF.js";import{B as en,c as tn,t as nn,C as st,f as rn,g as _e,s as sn,m as Le,a as Ie,b as an,d as ze,e as on,h as ln,i as cn,j as un,k as hn,l as dn,n as pn}from"./index-C81DBcO6.js";import{aU as fn,af as gn,ag as mn,ai as kn,Y as xn,bm as bn,aZ as wn}from"./agent-icon-U2nlXoBG.js";import{i as yn}from"./SwitchHorizontal01-Czrqzt6f.js";import{s as Tn}from"./Trash01-BxSWir9J.js";import{k as vn,a as An}from"./use-org-fs-BRERSVus.js";import{E as Pe,i as it,b as Mn,c as Sn,d as at,A as Cn,e as Rn,m as En,f as $n,g as _n}from"./markdown-B6eeRWQb.js";import{f as Ln,a as In,c as zn,C as Pn,b as He}from"./command-DiccrIM8.js";import{I as Hn}from"./icon-button-DQuPTgIB.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 A=n.getAttributes("link").href;l(typeof A=="string"?A:""),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 A=Vt(a);if(A===""){g();return}if(!Kt(A)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:A}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let y;e[11]!==r?(y=r("markdownEditor.link"),e[11]=r,e[12]=y):y=e[12];let T;e[13]===Symbol.for("react.memo_cache_sentinel")?(T=x.jsx(fn,{size:14}),e[13]=T):T=e[13];let v;e[14]!==h||e[15]!==y||e[16]!==f?(v=x.jsx(_,{active:h,label:y,onClick:f,children:T}),e[14]=h,e[15]=y,e[16]=f,e[17]=v):v=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 bg-popover p-1 shadow-soft",onBlur:A=>{A.currentTarget.contains(A.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:A=>{l(A.target.value),u(!1)},onKeyDown:A=>{A.key==="Enter"?(A.preventDefault(),k()):A.key==="Escape"&&(A.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(At,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(Tn,{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 w;return e[27]!==v||e[28]!==b?(w=x.jsxs("div",{className:"relative",children:[v,b]}),e[27]=v,e[28]=b,e[29]=w):w=e[29],w}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},je=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=x.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},ot=[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=_t(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(en,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(gn,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(mn,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(kn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(xn,{size:14})}),x.jsx(le,{}),ot.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(je,{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(yn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(je,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(bn,{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:ot.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}=vn(Pe),r=An(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=it(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?Mn:Sn,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 et("uploadSlots"),Gn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Lt({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((v,b,w,A)=>{p=w,g=A});let m;f.doc.nodesBetween(p,g,(v,b)=>{v===l&&(m=b+v.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const y=i.nodes.paragraph;m!==void 0&&l.isBlock&&y&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,y.create()),k=m+1);const T=It.near(f.doc.resolve(k));o&&f.setSelection(T),s&&he(f,s,T.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=it(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 be(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=be();function lt(t){F=t}var O={exec:()=>null};function M(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)}}>`)},Yn=/^(?:[ \t]*(?:\n|$))+/,Jn=/^((?: {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}[.)])/,ct=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ut=M(ct).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=M(ct).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=M(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=M(/^(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=M("^ {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(),ht=M(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=M(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ht).getRegex(),Ae={blockquote:or,code:Jn,def:sr,fences:er,heading:tr,hr:K,html:ar,lheading:ut,list:ir,newline:Yn,paragraph:ht,table:O,text:rr},Ne=M("^ *([^\\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:Ne,paragraph:M(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ne).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:M(`^ *(?: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:M(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{c as $,b as j,r as E,j as x,m as q,bx as At,t as ue,b2 as Ye,a5 as Mt,hc as St,i as Ct,K as Rt,bQ as Et,h as Je,o as $t}from"./index-DxGCPS5f.js";import{a as _t,n as et,E as ie,o as Lt,x as It,y as P,z as zt,A as Pt,B as tt,C as N,G as Ee,H as Ht,I as jt,J as $e,K as Nt,L as V,N as D,m as H,O as J,T as nt,R as ke,Q as xe,U as Ot,V as Bt,W as Dt,X as Ft,Y as qt,s as Wt,Z as Ut,u as Gt,b as Zt}from"./usage-stats-hNAp_EX0.js";import{T as _,n as Vt,i as Kt,E as Qt}from"./editor-classes-DEInI3IT.js";import{a as Xt,e as rt,s as Yt,S as Jt}from"./suggestion-B-tT_3Ba.js";import{B as en,c as tn,t as nn,C as st,f as rn,g as _e,s as sn,m as Le,a as Ie,b as an,d as ze,e as on,h as ln,i as cn,j as un,k as hn,l as dn,n as pn}from"./index-CxYhsN0K.js";import{aU as fn,af as gn,ag as mn,ai as kn,Y as xn,bm as bn,aZ as wn}from"./agent-icon-_Y5eusMw.js";import{i as yn}from"./SwitchHorizontal01-BCe-gFOc.js";import{s as Tn}from"./Trash01-DPGVoVI0.js";import{k as vn,a as An}from"./use-org-fs-B1VEI_Er.js";import{E as Pe,i as it,b as Mn,c as Sn,d as at,A as Cn,e as Rn,m as En,f as $n,g as _n}from"./markdown-BkKuf5yA.js";import{f as Ln,a as In,c as zn,C as Pn,b as He}from"./command-CnM6TkoO.js";import{I as Hn}from"./icon-button-DeiyuWHW.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 A=n.getAttributes("link").href;l(typeof A=="string"?A:""),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 A=Vt(a);if(A===""){g();return}if(!Kt(A)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:A}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let y;e[11]!==r?(y=r("markdownEditor.link"),e[11]=r,e[12]=y):y=e[12];let T;e[13]===Symbol.for("react.memo_cache_sentinel")?(T=x.jsx(fn,{size:14}),e[13]=T):T=e[13];let v;e[14]!==h||e[15]!==y||e[16]!==f?(v=x.jsx(_,{active:h,label:y,onClick:f,children:T}),e[14]=h,e[15]=y,e[16]=f,e[17]=v):v=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 bg-popover p-1 shadow-soft",onBlur:A=>{A.currentTarget.contains(A.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:A=>{l(A.target.value),u(!1)},onKeyDown:A=>{A.key==="Enter"?(A.preventDefault(),k()):A.key==="Escape"&&(A.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(At,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(Tn,{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 w;return e[27]!==v||e[28]!==b?(w=x.jsxs("div",{className:"relative",children:[v,b]}),e[27]=v,e[28]=b,e[29]=w):w=e[29],w}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},je=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=x.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},ot=[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=_t(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(en,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(gn,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(mn,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(kn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(xn,{size:14})}),x.jsx(le,{}),ot.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(je,{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(yn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(je,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(bn,{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:ot.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}=vn(Pe),r=An(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=it(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?Mn:Sn,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 et("uploadSlots"),Gn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Lt({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((v,b,w,A)=>{p=w,g=A});let m;f.doc.nodesBetween(p,g,(v,b)=>{v===l&&(m=b+v.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const y=i.nodes.paragraph;m!==void 0&&l.isBlock&&y&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,y.create()),k=m+1);const T=It.near(f.doc.resolve(k));o&&f.setSelection(T),s&&he(f,s,T.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=it(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 be(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=be();function lt(t){F=t}var O={exec:()=>null};function M(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)}}>`)},Yn=/^(?:[ \t]*(?:\n|$))+/,Jn=/^((?: {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}[.)])/,ct=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ut=M(ct).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=M(ct).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=M(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=M(/^(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=M("^ {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(),ht=M(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=M(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ht).getRegex(),Ae={blockquote:or,code:Jn,def:sr,fences:er,heading:tr,hr:K,html:ar,lheading:ut,list:ir,newline:Yn,paragraph:ht,table:O,text:rr},Ne=M("^ *([^\\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:Ne,paragraph:M(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ne).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:M(`^ *(?: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:M(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",ut).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ur=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,dt=/^( {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=M(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oe).getRegex(),pt=/(?!~)[\p{P}\p{S}]/u,fr=/(?!~)[\s\p{P}\p{S}]/u,gr=/(?:[^\s\p{P}\p{S}]|~)/u,mr=M(/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(),ft=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kr=M(ft,"u").replace(/punct/g,W).getRegex(),xr=M(ft,"u").replace(/punct/g,pt).getRegex(),gt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",br=M(gt,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),wr=M(gt,"gu").replace(/notPunctSpace/g,gr).replace(/punctSpace/g,fr).replace(/punct/g,pt).getRegex(),yr=M("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)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=M(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,W).getRegex(),vr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ar=M(vr,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Mr=M(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),Sr=M(/^<(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=M(ve).replace("(?:-->|$)","-->").getRegex(),Rr=M("^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=M(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),mt=M(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",Te).getRegex(),kt=M(/^!?\[(ref)\](?:\[\])?/).replace("ref",Te).getRegex(),$r=M("reflink|nolink(?!\\()","g").replace("reflink",mt).replace("nolink",kt).getRegex(),Oe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Se={_backpedal:O,anyPunctuation:Mr,autolink:Sr,blockSkip:mr,br:dt,code:hr,del:O,delLDelim:O,delRDelim:O,emStrongLDelim:kr,emStrongRDelimAst:br,emStrongRDelimUnd:yr,escape:ur,link:Er,nolink:kt,punctuation:pr,reflink:mt,reflinkSearch:$r,tag:Rr,text:dr,url:O},_r={...Se,link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},de={...Se,emStrongRDelimAst:wr,emStrongLDelim:xr,delLDelim:Tr,delRDelim:Ar,url:M(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Oe).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:M(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Oe).getRegex()},Lr={...de,br:M(dt).replace("{2,}","*").getRegex(),text:M(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={"&":"&","<":"<",">":">",'"':""","'":"'"},Be=t=>Ir[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,Be)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,Be);return t}function De(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function Fe(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 qe(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,`
|