decocms 4.390.3 → 4.390.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Plbq3B-q.js → AlertCircle-BXd3wmhE.js} +1 -1
- package/dist/client/assets/{AreaChart-B_NHmXx3.js → AreaChart-BurPFOEM.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DrGT8UWu.js → ArrowLeft-CtG_Sz3T.js} +1 -1
- package/dist/client/assets/{ArrowRight-CbriRBrq.js → ArrowRight-DGQoBfX2.js} +1 -1
- package/dist/client/assets/{ArrowUp-6u2hUOnH.js → ArrowUp-BAzKSoqz.js} +1 -1
- package/dist/client/assets/{CartesianChart-COgbk__t.js → CartesianChart-BHBzHrfv.js} +1 -1
- package/dist/client/assets/{Check-C99gsNHm.js → Check-D3UEH1bb.js} +1 -1
- package/dist/client/assets/{CheckCircle-CKcxanRZ.js → CheckCircle-BmoxvNcp.js} +1 -1
- package/dist/client/assets/{ChevronUp-DSQ_1BER.js → ChevronUp-DkDOUc-8.js} +1 -1
- package/dist/client/assets/{Copy01-BenS5ro_.js → Copy01-1VyfDicU.js} +1 -1
- package/dist/client/assets/{CreditCard01-YK1yCS4W.js → CreditCard01-CrYxi8Yw.js} +1 -1
- package/dist/client/assets/{DotsVertical-CQ6LBNOP.js → DotsVertical-BVvaV8Wy.js} +1 -1
- package/dist/client/assets/{Download01-Bp4nnCQ1.js → Download01-CRbdo8yP.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CIx228C0.js → ErrorBarContext-Cq12nkBo.js} +1 -1
- package/dist/client/assets/{Eye-DbFIyI2n.js → Eye-DnZDEgOn.js} +1 -1
- package/dist/client/assets/{Globe04-CGVAMpAe.js → Globe04-Cfnfjo6J.js} +1 -1
- package/dist/client/assets/{Image01-BggoPRkg.js → Image01-ZQL1hr5Q.js} +1 -1
- package/dist/client/assets/{Key01-BV_ymGg3.js → Key01-HEuAw7Uw.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DpIebcC-.js → LayoutLeft-Di6ed8JP.js} +1 -1
- package/dist/client/assets/{Line-DmECL8mT.js → Line-D1DSosvE.js} +1 -1
- package/dist/client/assets/{Link01-OIIXb7cI.js → Link01-CZiQuc44.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CPCL9Cco.js → LinkExternal01-BekDuv1R.js} +1 -1
- package/dist/client/assets/{Monitor01-CDgu8CIt.js → Monitor01-BLWTHtTp.js} +1 -1
- package/dist/client/assets/{Package-Ci_Iuppc.js → Package-tH33TvgC.js} +1 -1
- package/dist/client/assets/{Palette-IB6rbtm1.js → Palette-BagjpLZN.js} +1 -1
- package/dist/client/assets/{Plus-40Vqbuez.js → Plus-Y-KvMcUC.js} +1 -1
- package/dist/client/assets/{SearchLg-CAy6qghA.js → SearchLg-CL6esTtw.js} +1 -1
- package/dist/client/assets/{SearchMd-kVGeqQ7a.js → SearchMd-CzE1IXtk.js} +1 -1
- package/dist/client/assets/{Sector-BvGNn9CG.js → Sector-7uDV3O2e.js} +1 -1
- package/dist/client/assets/{Share07-CcQxNSX3.js → Share07-DwVANqGN.js} +1 -1
- package/dist/client/assets/{Stars01-BMd1nnPj.js → Stars01-BvtQBnED.js} +1 -1
- package/dist/client/assets/{Sun-Be8FNPF2.js → Sun-CPPd8cP7.js} +1 -1
- package/dist/client/assets/{Tool01-C-oe4aXW.js → Tool01-CeJWUTx4.js} +1 -1
- package/dist/client/assets/{Trash01-Byz0_Sy5.js → Trash01-C6BZglNY.js} +1 -1
- package/dist/client/assets/{Upload01-C2s_RH4H.js → Upload01-DBDdtdRw.js} +1 -1
- package/dist/client/assets/{User01-XeAWOYXy.js → User01-DhER-7M5.js} +1 -1
- package/dist/client/assets/{UserSquare-D-qt0de_.js → UserSquare-D9izLEMu.js} +1 -1
- package/dist/client/assets/{Users01-C3on152s.js → Users01-CGh_okmA.js} +1 -1
- package/dist/client/assets/{X-RprAX0Ua.js → X-rZfX9y0d.js} +1 -1
- package/dist/client/assets/{XCircle-CQMzne_o.js → XCircle-fYjVO-4e.js} +1 -1
- package/dist/client/assets/{XClose-CVQLXZni.js → XClose-Drgfi-MO.js} +1 -1
- package/dist/client/assets/{Zap-DzoV5VQ9.js → Zap-DcWY_A2w.js} +1 -1
- package/dist/client/assets/{ZoomOut-BWCMlmIP.js → ZoomOut-CmJNnQZa.js} +1 -1
- package/dist/client/assets/{access-gate-Bgyfx_br.js → access-gate-DrC617P9.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DXEwYeqS.js → add-connection-dialog-BrlUHuQ9.js} +1 -1
- package/dist/client/assets/{agent-analytics-BuqEjr-s.js → agent-analytics-Cw9tQISn.js} +1 -1
- package/dist/client/assets/agent-app-BE3kXNei.js +1 -0
- package/dist/client/assets/{agent-assets-D1tKS8pa.js → agent-assets-NJjJRoAl.js} +1 -1
- package/dist/client/assets/{agent-automation-DSMp2kQn.js → agent-automation-C1ibaLXl.js} +1 -1
- package/dist/client/assets/{agent-automations-vUhw7tV_.js → agent-automations-DB1TbF54.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-_vAJW22D.js → agent-connect-sources-Cvwx0aGv.js} +1 -1
- package/dist/client/assets/agent-deck-BjwXuCnI.js +1 -0
- package/dist/client/assets/{agent-e2e-Bga4rsrF.js → agent-e2e-Bm0ir2w1.js} +1 -1
- package/dist/client/assets/{agent-experiments-B7PIi2l-.js → agent-experiments-Bv3P9kPX.js} +1 -1
- package/dist/client/assets/agent-file-B5ULlTNv.js +1 -0
- package/dist/client/assets/{agent-git-DBDT-hIL.js → agent-git-B1sEUtW8.js} +1 -1
- package/dist/client/assets/{agent-hosting-CjnG0XIl.js → agent-hosting-DNw3gDr1.js} +1 -1
- package/dist/client/assets/{agent-icon-yvE2OrmS.js → agent-icon-CUHwvCug.js} +1 -1
- package/dist/client/assets/agent-library-file-ys3FW6Ts.js +1 -0
- package/dist/client/assets/{agent-monitor-BDXfL2vI.js → agent-monitor-8Z9iofGU.js} +1 -1
- package/dist/client/assets/{agent-overview-UpXocDJH.js → agent-overview-DV6D5mcW.js} +1 -1
- package/dist/client/assets/agent-settings-Do48sFtz.js +1 -0
- package/dist/client/assets/{agent-site-editor-CzhIp9D-.js → agent-site-editor-Bp9kex6E.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-D6OZaku7.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-DgrOyzJ9.js → agent-site-editor-content-BnmxakX4.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-CBi5Tbv1.js → agent-site-editor-preview-k6KOtKNv.js} +3 -3
- package/dist/client/assets/agent-view-BcTmq8aW.js +1 -0
- package/dist/client/assets/{agent-view-guard-BL5Hr88U.js → agent-view-guard-mWuQM6et.js} +1 -1
- package/dist/client/assets/{agents-list-C2VF3tm2.js → agents-list-CKVhVS_6.js} +1 -1
- package/dist/client/assets/{ai-providers-eLd1_N3b.js → ai-providers-CZkq155K.js} +1 -1
- package/dist/client/assets/{alert-dialog-BCduxUz6.js → alert-dialog-D0EwpcN4.js} +1 -1
- package/dist/client/assets/{alert-_voqqPHC.js → alert-tPvl5V7J.js} +1 -1
- package/dist/client/assets/{api-keys-Dw8-fWJ8.js → api-keys-CiTZWPra.js} +1 -1
- package/dist/client/assets/api-keys-D0yLzADM.js +1 -0
- package/dist/client/assets/app-editor-CQk3gD21.js +1 -0
- package/dist/client/assets/{asset-utils-CYVxOjk-.js → asset-utils-tQ6o2CDF.js} +1 -1
- package/dist/client/assets/{auth-DbhfOiDD.js → auth-6ek5T3GB.js} +1 -1
- package/dist/client/assets/{auth-catchall-bR4cEBQ7.js → auth-catchall-BTt0HN1L.js} +1 -1
- package/dist/client/assets/{auth-entry-BtyUVFkH.js → auth-entry-Bq9TVm0P.js} +1 -1
- package/dist/client/assets/{auth-split-layout-OXkozary.js → auth-split-layout-CNzOx79W.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CTqF0T3I.js → authenticate-and-persist-oauth-C0EgQu0P.js} +1 -1
- package/dist/client/assets/{automation-list-row-CWKGol7C.js → automation-list-row-BSZgMG8f.js} +1 -1
- package/dist/client/assets/{automation-runs-B0iVRx_v.js → automation-runs-BMsBLMsg.js} +1 -1
- package/dist/client/assets/{automations-drGOc5kF.js → automations-Bdbn7Pu2.js} +1 -1
- package/dist/client/assets/{autosend-DnpV-gpp.js → autosend-BNuK0erf.js} +1 -1
- package/dist/client/assets/{avatar-BEChGFx_.js → avatar-D0sKo5Ko.js} +1 -1
- package/dist/client/assets/{badge-DlwIZhYt.js → badge-CFEM0raL.js} +1 -1
- package/dist/client/assets/{block-document-CVQgWXY1.js → block-document-Chl-m90T.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-LIf6Y3Wf.js → blocks-preview-workspace-context-DdPADfnI.js} +1 -1
- package/dist/client/assets/{breadcrumb-CVBoYVDa.js → breadcrumb-DGzJ2mi_.js} +1 -1
- package/dist/client/assets/{buckets-BNxfJUdD.js → buckets-W6OaopO-.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BojueIPy.js → build-improve-prompt-doc-DeW5gQgu.js} +1 -1
- package/dist/client/assets/{bulk-category-panel--Sd4y8I1.js → bulk-category-panel-Rf660pBu.js} +1 -1
- package/dist/client/assets/{calendar---myt21s.js → calendar-BDrJCpVb.js} +1 -1
- package/dist/client/assets/{capability-load-error-DE4nXkTf.js → capability-load-error-CkdeSGfJ.js} +1 -1
- package/dist/client/assets/{category-editor-Bm1OhVXt.js → category-editor-BjOOP9zk.js} +1 -1
- package/dist/client/assets/{chart-CQz-sp9S.js → chart-r_c7F5B8.js} +1 -1
- package/dist/client/assets/{chat-context-CigQFIrF.js → chat-context-DfIPg4kF.js} +1 -1
- package/dist/client/assets/{chat-draft-DowTsQ5a.js → chat-draft-BqHnkSRF.js} +1 -1
- package/dist/client/assets/{checkbox-ul_qDXO_.js → checkbox-Dr1iEjvP.js} +1 -1
- package/dist/client/assets/{choose-editor-CnrA1-KS.js → choose-editor-Dp7QkLDv.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BYAB1Czx.js → claim-phase-copy-CPp-hZ5n.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DDGa-14a.js → cli-auth-success-B3ECmgl-.js} +1 -1
- package/dist/client/assets/{client-icons-B6K_h_1z.js → client-icons-Ce5SmXFK.js} +1 -1
- package/dist/client/assets/{collapsible-HcQLf87E.js → collapsible-Ozwn48y1.js} +1 -1
- package/dist/client/assets/{collection-detail-D67vLPqg.js → collection-detail-DApKXcnj.js} +1 -1
- package/dist/client/assets/{collection-display-button-RAuDavRQ.js → collection-display-button-DM83AZTp.js} +1 -1
- package/dist/client/assets/{collection-search-icw3NOdm.js → collection-search-BRkIgroJ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-WQa99W12.js → collection-table-wrapper-SNXCX7Mr.js} +1 -1
- package/dist/client/assets/{collection-tabs-D98CiePG.js → collection-tabs-BN1xWU9h.js} +1 -1
- package/dist/client/assets/{combobox-CDqgOlRO.js → combobox-Ct9LBV7p.js} +1 -1
- package/dist/client/assets/{command-B8xkiuco.js → command-Das6UcyK.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CeQtVwUw.js → companion-mcps-section-B4IqxVxa.js} +1 -1
- package/dist/client/assets/{connect-CRzPLygu.js → connect-DKxaqp8T.js} +1 -1
- package/dist/client/assets/{connect-layout-D0Wg9FJl.js → connect-layout-GIo2P6vy.js} +1 -1
- package/dist/client/assets/{connection-YU2qDPgo.js → connection-Vq7712iH.js} +1 -1
- package/dist/client/assets/{connection-card-B0taizv-.js → connection-card-DmSG--jc.js} +1 -1
- package/dist/client/assets/{connection-detail-Bn0G4Wes.js → connection-detail-DCIP_zf4.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CTaXx_AV.js → connection-form-helpers-B1Gfuz6v.js} +1 -1
- package/dist/client/assets/{connections-M60VrJsO.js → connections-BE_Q0OgI.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cyc1fSp9.js → create-organization-dialog-CNW2-tLc.js} +1 -1
- package/dist/client/assets/{decofile-api-0DF6BK8S.js → decofile-api-DvonsyVe.js} +1 -1
- package/dist/client/assets/{decopilot-bu1L070q.js → decopilot-_2aHa55x.js} +1 -1
- package/dist/client/assets/{dialog-Cgb6nNga.js → dialog-O_WsqGxK.js} +1 -1
- package/dist/client/assets/{discover-CAwJcBwl.js → discover-DNKxCZwb.js} +1 -1
- package/dist/client/assets/{domain-settings-BSR7qpN5.js → domain-settings-9s0IWIG1.js} +1 -1
- package/dist/client/assets/{download-app-dialog-Ca89v1sb.js → download-app-dialog-DJrde0mx.js} +1 -1
- package/dist/client/assets/{drawer-B9Ec8DO-.js → drawer-DmWpiePK.js} +1 -1
- package/dist/client/assets/{editor-CGK-kOO1.js → editor-bajIdLtD.js} +1 -1
- package/dist/client/assets/{empty-state-EvZtk0QO.js → empty-state-Atjx1U2W.js} +1 -1
- package/dist/client/assets/{empty-state-Dihk-JSs.js → empty-state-DYH2UztF.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DIQBho2q.js → extract-connection-data-C8tfLeRY.js} +1 -1
- package/dist/client/assets/{feature-gate-DWxohdMP.js → feature-gate-C5gwa5Kb.js} +1 -1
- package/dist/client/assets/{feature-paywall-BQ9_mpV-.js → feature-paywall-C7OuLsbm.js} +1 -1
- package/dist/client/assets/{file-explorer--Hqae3zL.js → file-explorer-6H1B3qt6.js} +1 -1
- package/dist/client/assets/{file-preview-DShpms1E.js → file-preview-BiHR6COU.js} +1 -1
- package/dist/client/assets/{file-share-button-aNtwsWj1.js → file-share-button-C5XfrmpE.js} +1 -1
- package/dist/client/assets/{file-type-icon-TpiFmwkV.js → file-type-icon-D6rUMGA4.js} +1 -1
- package/dist/client/assets/{folder-icon-D4aLUwaZ.js → folder-icon-B_bfB1iq.js} +1 -1
- package/dist/client/assets/{form-Dx1-pFkl.js → form-Db0Tj8hF.js} +1 -1
- package/dist/client/assets/{gateway-client-RuR5Sgwm.js → gateway-client-pQEk_YWf.js} +1 -1
- package/dist/client/assets/{general-D_pQn6h9.js → general-BVSSoQ2s.js} +1 -1
- package/dist/client/assets/{github-icon-BCmmbu9G.js → github-icon-DO6paY-Y.js} +1 -1
- package/dist/client/assets/{home-D5hbT3sC.js → home-B5QgEHQi.js} +1 -1
- package/dist/client/assets/{hooks-Dxf0iUx8.js → hooks-D5xL0VD-.js} +1 -1
- package/dist/client/assets/{hooks-C1_YzDjW.js → hooks-Dyt2S900.js} +1 -1
- package/dist/client/assets/{icon-button-DZaf2bob.js → icon-button-bkQbZIJx.js} +1 -1
- package/dist/client/assets/{index-DZdHbrkX.js → index-3wu9QSuh.js} +1 -1
- package/dist/client/assets/{index-C10vK9Gl.js → index-B1H3xTcC.js} +1 -1
- package/dist/client/assets/{index-CuKynvIK.js → index-B9KXIX84.js} +2 -2
- package/dist/client/assets/{index-B8rdF1mj.js → index-BEBsD_Uj.js} +1 -1
- package/dist/client/assets/{index-NhsUUnWs.js → index-BFBOXOd5.js} +1 -1
- package/dist/client/assets/{index-CZgNJwMq.js → index-BMguGW4R.js} +1 -1
- package/dist/client/assets/{index-BCWnemyS.js → index-CcCENa4K.js} +1 -1
- package/dist/client/assets/{index-Ca5H_mlY.js → index-CcStfLcS.js} +1 -1
- package/dist/client/assets/{index-DsClCmX4.js → index-Cqfo3dLZ.js} +1 -1
- package/dist/client/assets/{index-DSfFiRiK.js → index-D-HNn6NY.js} +1 -1
- package/dist/client/assets/{index-CCckg7jq.js → index-DTD6MU_-.js} +1 -1
- package/dist/client/assets/{index-mfLc4iDt.js → index-DXPgJ5pN.js} +1 -1
- package/dist/client/assets/{index-m8M9XNiz.js → index-TQAMEK3-.js} +1 -1
- package/dist/client/assets/{index-Ou0kSF_4.js → index-ew-hZs-T.js} +1 -1
- package/dist/client/assets/{index-redirect-cxGDeRou.js → index-redirect-DtXP9nXs.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DcexJUFl.js → infiniteQueryObserver-DrVVQrbK.js} +1 -1
- package/dist/client/assets/{infra-billing-Bm5byk8f.js → infra-billing-7wcYScSW.js} +1 -1
- package/dist/client/assets/{input-CxixGGca.js → input-ALPFLjGK.js} +1 -1
- package/dist/client/assets/{input-DAhHA2Ec.js → input-BlBczlUj.js} +1 -1
- package/dist/client/assets/{input-D6xpm6o8.js → input-DLqUDU4v.js} +1 -1
- package/dist/client/assets/{integration-icon-V1IRIDo0.js → integration-icon-BDlRT6Oh.js} +1 -1
- package/dist/client/assets/{label-sXJ5lD1Q.js → label-CeYXCWIS.js} +1 -1
- package/dist/client/assets/{last-preview-page-D6_JHljG.js → last-preview-page-Pa_m-NGp.js} +1 -1
- package/dist/client/assets/{layout-B8Fn_UZq.js → layout-2OR9C3vu.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-COHnfJ6M.js → legacy-agents-deep-BXlfHsnP.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DC6wMjwz.js → legacy-main-redirect-CXr4DIMg.js} +1 -1
- package/dist/client/assets/{library-CbGeI6nu.js → library-DC1sHBtK.js} +1 -1
- package/dist/client/assets/{login-B6k_w5JI.js → login-ETcUXX8b.js} +1 -1
- package/dist/client/assets/{markdown-ZsxJYTnA.js → markdown-BHnqyTep.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D3wIwpKO.js → mcp-app-renderer-CN7HJqgc.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BlhNJxOC.js → mcp-oauth-DBcvf4Gv.js} +1 -1
- package/dist/client/assets/{members-dZGKLQ5m.js → members-CKovzLZm.js} +1 -1
- package/dist/client/assets/{message-templates-w495jgqF.js → message-templates-CVWApNdw.js} +1 -1
- package/dist/client/assets/{mini-report-page-wChiKqpe.js → mini-report-page-D75y78PO.js} +1 -1
- package/dist/client/assets/{mock-board-DzoQZT_5.js → mock-board-CKKlMTR7.js} +3 -3
- package/dist/client/assets/{monaco-editor--rfKIHsG.js → monaco-editor-sTKHVHs7.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Db18eFc1.js → monitoring-stats-row-CFvcs0FY.js} +1 -1
- package/dist/client/assets/{multi-select-Dmek7lz3.js → multi-select-bTG-_3iX.js} +1 -1
- package/dist/client/assets/{mustache-DeeFRL9O.js → mustache-D5HgeK1D.js} +1 -1
- package/dist/client/assets/{oauth-callback-C4VmqAGn.js → oauth-callback-BQGhxVdk.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DqNzsmsa.js → oauth-callback-ai-provider-9WlNwZ-4.js} +1 -1
- package/dist/client/assets/{onboarding-xllcE5pS.js → onboarding-TK-D_Eg-.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CPPQ3FAG.js → optimistic-project-sidebar-views-BuKbcQgt.js} +1 -1
- package/dist/client/assets/{org-file-open-context-C3GnNEyb.js → org-file-open-context-DNQMuR7f.js} +1 -1
- package/dist/client/assets/{organization-choice-BpJUZ9eE.js → organization-choice-O0bt4mln.js} +1 -1
- package/dist/client/assets/{orgs-_F33P6Z2.js → orgs-Dv-imO9p.js} +1 -1
- package/dist/client/assets/{page-seo-form-0ddI5t6v.js → page-seo-form-Biw0BL9j.js} +1 -1
- package/dist/client/assets/{pair-CbghiNzY.js → pair-B2IVuWLB.js} +1 -1
- package/dist/client/assets/{plan-ladder-DEFdJtel.js → plan-ladder-CCULPA3j.js} +1 -1
- package/dist/client/assets/{popover-C6yHcj70.js → popover-Wvqr_2yR.js} +1 -1
- package/dist/client/assets/{post-calendar-CdNsNph9.js → post-calendar-a5E2qOG-.js} +1 -1
- package/dist/client/assets/{post-editor-CPeRSjBp.js → post-editor-DFx-26e8.js} +1 -1
- package/dist/client/assets/{preview-content-CpOQvNwD.js → preview-content-BCd4V54J.js} +1 -1
- package/dist/client/assets/{preview-dialog-C-feCeog.js → preview-dialog-ClD44N_y.js} +1 -1
- package/dist/client/assets/{primitives-ChmMfj9v.js → primitives-byxT-Ui7.js} +1 -1
- package/dist/client/assets/{profile-V2BmVtCD.js → profile-9uJoAI6f.js} +1 -1
- package/dist/client/assets/{project-app-view-Df3nXMqu.js → project-app-view-XjFGHkML.js} +1 -1
- package/dist/client/assets/{project-feed-DP96GA1D.js → project-feed-B4oD-iPW.js} +1 -1
- package/dist/client/assets/{project-icon-DpLJ2_Oe.js → project-icon-BFHg-quI.js} +1 -1
- package/dist/client/assets/project-reports-zGc7Q3TI.js +1 -0
- package/dist/client/assets/project-tasks-DqoKheUq.js +1 -0
- package/dist/client/assets/{prompts-DqZkMgF_.js → prompts-D6Qoh4zQ.js} +1 -1
- package/dist/client/assets/record-editor-jLe9lZIe.js +1 -0
- package/dist/client/assets/{redirect-editor-BzITPvLZ.js → redirect-editor-CnOUBdx5.js} +1 -1
- package/dist/client/assets/{reports-C04RdVL2.js → reports-D6i3xT-r.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Bu10YnNN.js → reports-onboarding-BJ3gF8Jt.js} +1 -1
- package/dist/client/assets/reports-r1Z-LWUs.js +1 -0
- package/dist/client/assets/{reports-tab-DbjnZZdG.js → reports-tab-DXNb57Ao.js} +2 -2
- package/dist/client/assets/{repositories-TQS3oe_Z.js → repositories-BXIZ-orB.js} +1 -1
- package/dist/client/assets/{repository-import-picker-ir5lpemT.js → repository-import-picker-BomeZ4YD.js} +1 -1
- package/dist/client/assets/{repository-picker-8uzqMUSJ.js → repository-picker-Bpcr10QR.js} +1 -1
- package/dist/client/assets/{require-capability-DR84qrNv.js → require-capability-B5vhBt9u.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BiKqBIJR.js → required-auth-layout-CyCpjrfs.js} +1 -1
- package/dist/client/assets/{reset-password-4NRQIi8T.js → reset-password-B2Z9lfbJ.js} +1 -1
- package/dist/client/assets/{resizable-g50QqQLR.js → resizable-X9aB8eM5.js} +1 -1
- package/dist/client/assets/{review-settings-D8BQ_JzW.js → review-settings-c3E6ViNV.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-BEQwt7AM.js → rich-text-link-control-DLGtga8b.js} +1 -1
- package/dist/client/assets/{roles-C5ucnXFf.js → roles-DPfRfWCB.js} +1 -1
- package/dist/client/assets/{route-Cu9dUUX5.js → route-Cvx3z9KR.js} +1 -1
- package/dist/client/assets/{route-Dh7nT37A.js → route-DtNPEkNV.js} +1 -1
- package/dist/client/assets/{route-BYaroh6V.js → route-cbFwKoF4.js} +1 -1
- package/dist/client/assets/{route-page-header-BLIm8Sjw.js → route-page-header-Dr10DLhY.js} +1 -1
- package/dist/client/assets/runnable-block-editor-Luwb6lXF.js +17 -0
- package/dist/client/assets/{sandbox-lifecycle-context-DpPd4Ppi.js → sandbox-lifecycle-context-CHjp6hDX.js} +1 -1
- package/dist/client/assets/{schema-BFAgc9vB.js → schema-CdJJOHN7.js} +1 -1
- package/dist/client/assets/{scroll-area-BlAA-Bao.js → scroll-area-DiE2RXUS.js} +1 -1
- package/dist/client/assets/{search-input-Bh8Hda5I.js → search-input-MsiE4xnC.js} +1 -1
- package/dist/client/assets/{search-toggle-DizwDv5R.js → search-toggle-BujrzbmS.js} +1 -1
- package/dist/client/assets/{secret-picker-DaPihddw.js → secret-picker-BOvhv2JQ.js} +1 -1
- package/dist/client/assets/{secrets-dO2-dm88.js → secrets-CpJVBw79.js} +1 -1
- package/dist/client/assets/{sections-editor-BJomHWUT.js → sections-editor-DDnlJ9KQ.js} +1 -1
- package/dist/client/assets/{select-BanIfiiK.js → select-BmpMhuXU.js} +1 -1
- package/dist/client/assets/{select-model-BEVKH5_m.js → select-model-Cqn2WNWa.js} +1 -1
- package/dist/client/assets/{seo-editor-fZ9M3Gp-.js → seo-editor-1A35EHVT.js} +1 -1
- package/dist/client/assets/{separator-D5oH9Tc6.js → separator-Dl5b3JZz.js} +1 -1
- package/dist/client/assets/{settings-tab-BOSNM5xW.js → settings-tab-CJkqi9sH.js} +1 -1
- package/dist/client/assets/{sheet-JibTB_ju.js → sheet-B0Sr1nwg.js} +1 -1
- package/dist/client/assets/{shell-layout-C9P3RmGa.js → shell-layout-BA4WahT2.js} +1 -1
- package/dist/client/assets/{sidebar-CKW8SX5I.js → sidebar-DGGwKufn.js} +1 -1
- package/dist/client/assets/{skill-preview-CpSq5DoK.js → skill-preview-D99Hmxpn.js} +1 -1
- package/dist/client/assets/{skills-CR8unPX_.js → skills-DusNUug_.js} +1 -1
- package/dist/client/assets/{sso-CE4LK0kP.js → sso-Q5OGwWHg.js} +1 -1
- package/dist/client/assets/{switch-4HMgPUts.js → switch-CGGsZGg2.js} +1 -1
- package/dist/client/assets/{synced-repos-Ca7MHWA4.js → synced-repos-disT4WD-.js} +1 -1
- package/dist/client/assets/{table-CJ1bijPH.js → table-p5K_r58-.js} +1 -1
- package/dist/client/assets/{tabs-BhWYNgYG.js → tabs-B2X-mfaO.js} +1 -1
- package/dist/client/assets/{task-board-DEK9EtO8.js → task-board-mTs0BkYi.js} +1 -1
- package/dist/client/assets/{task-route-sectJiZr.js → task-route-CGQF_N5D.js} +1 -1
- package/dist/client/assets/{task-status-B0xsnDKH.js → task-status-BfecW6Jc.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CGcaGS9p.js → taskboard-analytics-CtICaEUy.js} +1 -1
- package/dist/client/assets/{tasks-DMOF4nmk.js → tasks-BAEY4_dG.js} +1 -1
- package/dist/client/assets/tasks-WvRRvqRc.js +1 -0
- package/dist/client/assets/{textarea-DMkTjvEF.js → textarea-BGjs-_ya.js} +1 -1
- package/dist/client/assets/{thread-button-CuUIbUBd.js → thread-button-B_TrQG9B.js} +1 -1
- package/dist/client/assets/{thread-intent-CxJrbPCr.js → thread-intent-BHNHSQWV.js} +1 -1
- package/dist/client/assets/{thread-route-DKPQW82J.js → thread-route-C_KFFLE6.js} +1 -1
- package/dist/client/assets/{thread-route-B2U_o9C3.js → thread-route-DNtSLAiW.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DSRzkXP7.js → thread-sheet-body-C_nRrD8j.js} +1 -1
- package/dist/client/assets/{toggle-group-CMNW4mwx.js → toggle-group-C66gu9FY.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-NrY5UDrB.js → toolbar-icon-button-ClGr1SmO.js} +1 -1
- package/dist/client/assets/{tooltip-CxEILWvZ.js → tooltip-C3KYJcjJ.js} +1 -1
- package/dist/client/assets/{track-BDhbKfjd.js → track-D48SK3WP.js} +1 -1
- package/dist/client/assets/{types-Dm2A_SzK.js → types-CsEtlQqb.js} +1 -1
- package/dist/client/assets/{usage-stats-BUdPL4y7.js → usage-stats-BWbFQ6nI.js} +1 -1
- package/dist/client/assets/{use-ai-providers-WVDlQI7a.js → use-ai-providers-CBInTetj.js} +1 -1
- package/dist/client/assets/{use-automations-DhMVIrbH.js → use-automations-DhqE5Iln.js} +1 -1
- package/dist/client/assets/{use-autosave-Cs2l4kvH.js → use-autosave-BZ31lz42.js} +1 -1
- package/dist/client/assets/{use-connect-companion-C8XtHv_z.js → use-connect-companion-Cgkf5QHC.js} +1 -1
- package/dist/client/assets/{use-connection-BE5RGCED.js → use-connection-DNwnGnCC.js} +1 -1
- package/dist/client/assets/{use-copy-CQHz89FX.js → use-copy-BaRXHXi4.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Clu3kTW-.js → use-create-virtual-mcp-CNiIu7cC.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CsbCUQol.js → use-date-fns-locale-CIJdwgov.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CELzcq38.js → use-debounced-autosave-CvGfYHrZ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CYsH4FnM.js → use-debounced-value-CkL-oBw0.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BNjDojPM.js → use-deco-credits-raOHBi_A.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BZRpbXtL.js → use-decopilot-events-BBmla5vN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DZGvcwH6.js → use-delete-connection-BaUPu_7u.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-3CKmN4Dm.js → use-deployment-admin-ReJnLBFa.js} +1 -1
- package/dist/client/assets/{use-entitlements-CtDOlLOz.js → use-entitlements-B9tTc-Ev.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-h1FQgacX.js → use-fast-preview-draft-url-CDhB1Fq2.js} +1 -1
- package/dist/client/assets/{use-file-configs-CCC51CiC.js → use-file-configs-y5ZRqVAK.js} +1 -1
- package/dist/client/assets/{use-in-settings-D6Jf8r1J.js → use-in-settings-pVGM4OYb.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DPL5T_J6.js → use-infinite-scroll-DTMvlJNU.js} +1 -1
- package/dist/client/assets/{use-join-requests-xYwPRZaP.js → use-join-requests-Kpry70bT.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DFsNbB7_.js → use-main-panel-tabs-4N3JxcLp.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C814rz9a.js → use-mcp-auth-status-DKnE_dZf.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DVdW13n2.js → use-mcp-client-DgXYHdq4.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-B2lNJtI0.js → use-mcp-prompts-BXGa38c2.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-yL6ngJhN.js → use-mcp-tools-CVoDfjIr.js} +1 -1
- package/dist/client/assets/{use-members-BWGnt3xz.js → use-members-BBMuBGx7.js} +1 -1
- package/dist/client/assets/{use-mobile-uPe7iIqt.js → use-mobile-BYkN2CBV.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-SCyHTgIX.js → use-navigate-to-agent-fAaFURKA.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-Cg1ys7hu.js → use-open-billing-url-D9101_ww.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CFw5de6Q.js → use-org-auth-client-gMmPeQrf.js} +1 -1
- package/dist/client/assets/{use-org-fs-Bn_T0aJ_.js → use-org-fs-FICli5P0.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DU8DfREe.js → use-org-repo-syncs-Be5dKRHy.js} +1 -1
- package/dist/client/assets/{use-org-sso-BE_oQrhh.js → use-org-sso-Dbq_Rnc1.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Dux9hCaf.js → use-organization-roles-xXXb48cX.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DxdRLAFr.js → use-organization-settings-C_ZfDEow.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Cv7gWgrI.js → use-panel-navigate-Wiv5HcS5.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-Bb7AFTdc.js → use-project-native-view-presence-DON0VaEF.js} +1 -1
- package/dist/client/assets/{use-project-scope--f8QE0rR.js → use-project-scope-bzqn-AFR.js} +1 -1
- package/dist/client/assets/{use-releases-DVpnjCc7.js → use-releases-BfrGp9Ns.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CG79-ua-.js → use-reports-diagnostic-LvWG_eGZ.js} +1 -1
- package/dist/client/assets/{use-route-default-main-GB9j_Yad.js → use-route-default-main-BxMIgjib.js} +1 -1
- package/dist/client/assets/{use-secrets-Bz4y4UnB.js → use-secrets-CQXQ7e5K.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DPItNU2_.js → use-section-preview-base-DRPQTFm9.js} +1 -1
- package/dist/client/assets/{use-session-runtime-D07OOfYZ.js → use-session-runtime-QJbktQ89.js} +1 -1
- package/dist/client/assets/{use-tags-ClvpULLx.js → use-tags-w04zmXlI.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BbJwbe-h.js → use-task-board-analytics-Da2cyRoo.js} +1 -1
- package/dist/client/assets/{use-task-metadata-9BgABmJR.js → use-task-metadata-DiRAYc7A.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BZFz5o_S.js → use-thread-outputs-BBHbLuqJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CkNe2Ju7.js → use-virtual-mcp-CijpHWeY.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-yhr2eVB6.js +1 -0
- package/dist/client/assets/{useQueries-R9IL0RuG.js → useQueries-0w4KxC3A.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D4wrf6ZX.js +1 -0
- package/dist/client/assets/{users-BUKS5lBn.js → users-6Ayldnit.js} +1 -1
- package/dist/client/assets/{utils-DEVAjabd.js → utils-D_eBTbjc.js} +1 -1
- package/dist/client/assets/{variant-calendar-ChKxHp3R.js → variant-calendar-C5cziu6r.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DNboF61u.js → variant-matcher-override-GL2lvgp-.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BL5qLMml.js → view-mode-toggle-C2y3stN0.js} +1 -1
- package/dist/client/assets/{virtual-mcp-aM5OQNHZ.js → virtual-mcp-BrketPQW.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Cv7i7dBd.js +0 -1
- package/dist/client/assets/agent-deck-CUWrc_nt.js +0 -1
- package/dist/client/assets/agent-file-DQVohtnZ.js +0 -1
- package/dist/client/assets/agent-library-file-Cz2ztsCV.js +0 -1
- package/dist/client/assets/agent-settings-Ae05XcIC.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B79SiqEb.js +0 -2
- package/dist/client/assets/agent-view-Bk7GmWwZ.js +0 -1
- package/dist/client/assets/api-keys-CtGsw_Gs.js +0 -1
- package/dist/client/assets/app-editor-D_-0_IQ_.js +0 -1
- package/dist/client/assets/project-reports-D63nlO5g.js +0 -1
- package/dist/client/assets/project-tasks-_N74f8SM.js +0 -1
- package/dist/client/assets/record-editor-B-lKG-xN.js +0 -1
- package/dist/client/assets/reports-BcKOR84m.js +0 -1
- package/dist/client/assets/runnable-block-editor-CsvQsGtO.js +0 -17
- package/dist/client/assets/tasks-iUTJfP23.js +0 -1
- package/dist/client/assets/useInfiniteQuery-vUhOQoVF.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B8mFqMTg.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as X,h as U,j as V,D as H,p as W,q as z}from"./index-
|
|
1
|
+
import{o as X,h as U,j as V,D as H,p as W,q as z}from"./index-3wu9QSuh.js";import{eJ as J,eK as Y,ep as G,eL as Z,r as b,c as Q,D as ee,K as te}from"./index-B9KXIX84.js";var we=X;function ne(n){var e;const{char:o,allowSpaces:t,allowToIncludeChar:s,allowedPrefixes:r,startOfLine:l,$position:i}=n,d=t&&!s,f=z(o),g=new RegExp(`\\s${f}$`),u=l?"^":"",p=s?"":f,x=d?new RegExp(`${u}${f}.*?(?=\\s${p}|$)`,"gm"):new RegExp(`${u}(?:^)?${f}[^\\s${p}]*`,"gm"),m=((e=i.nodeBefore)===null||e===void 0?void 0:e.isText)&&i.nodeBefore.text;if(!m)return null;const h=i.pos-m.length,c=Array.from(m.matchAll(x)).pop();if(!c||c.input===void 0||c.index===void 0)return null;const w=c.input.slice(Math.max(0,c.index-1),c.index),y=new RegExp(`^[${r?.join("")}\0]?$`).test(w);if(r!==null&&!y)return null;const R=h+c.index;let a=R+c[0].length;return d&&g.test(m.slice(a-1,a+1))&&(c[0]+=" ",a+=1),R<i.pos&&a>=i.pos?{range:{from:R,to:a},query:c[0].slice(o.length),text:c[0]}:null}function oe(n){return n.docChanged?n.steps.some(e=>{const o=e.slice;if(!o?.content)return!1;const t=o.content.textBetween(0,o.content.size,`
|
|
2
2
|
`);return/\s/.test(t)}):!1}function se(n){return()=>{const e=n.state.selection.$anchor.pos,{top:o,right:t,bottom:s,left:r}=n.view.coordsAtPos(e);try{return new DOMRect(r,o,t-r,s-o)}catch{return null}}}function ae(n,e,o,t){return o?()=>{const s=t.getState(n.state),r=s?.decorationId,l=e.dom.querySelector(`[data-decoration-id="${r}"]`);return l?.getBoundingClientRect()||null}:se(n)}function le({match:n,dismissedRange:e,state:o,transaction:t,editor:s,shouldResetDismissed:r,effectiveAllowSpaces:l}){return r?.({editor:s,state:o,range:e,match:n,transaction:t,allowSpaces:l})?!1:l?n.range.from===e.from:n.range.from===e.from&&!oe(t)}function re({view:n,pluginKeyRef:e}){const o=n.state.tr.setMeta(e,{exit:!0});n.dispatch(o)}function ie({pluginKey:n,decorationTag:e,decorationClass:o,decorationContent:t,decorationEmptyClass:s,renderer:r,dispatchExit:l}){return{handleKeyDown(i,d){var f;const g=n.getState(i.state);if(!g.active)return!1;if(d.key==="Escape"||d.key==="Esc"){var u;return r==null||(u=r.onKeyDown)===null||u===void 0||u.call(r,{view:i,event:d,range:g.range}),l(i),!0}return(r==null||(f=r.onKeyDown)===null||f===void 0?void 0:f.call(r,{view:i,event:d,range:g.range}))||!1},decorations(i){const{active:d,range:f,decorationId:g,query:u}=n.getState(i);if(!d)return null;const p=!u?.length,x=[o];return p&&x.push(s),H.create(i.doc,[W.inline(f.from,f.to,{nodeName:e,class:x.join(" "),"data-decoration-id":g||void 0,"data-decoration-content":t})])}}}function ue({editor:n,char:e,effectiveAllowSpaces:o,allowToIncludeChar:t,allowedPrefixes:s,startOfLine:r,findSuggestionMatch:l,allow:i,shouldShow:d,shouldKeepDismissed:f,pluginKey:g}){return{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}},apply(u,p,x,m){const{isEditable:h}=n,{composing:c}=n.view,{selection:w}=u,{empty:y,from:R}=w,a={...p},T=u.getMeta(g);if(T&&T.exit)return a.active=!1,a.decorationId=null,a.range={from:0,to:0},a.query=null,a.text=null,a.dismissedRange=p.active?{...p.range}:p.dismissedRange,a;if(a.composing=c,u.docChanged&&a.dismissedRange!==null&&(a.dismissedRange={from:u.mapping.map(a.dismissedRange.from),to:u.mapping.map(a.dismissedRange.to)}),h&&(y||n.view.composing)){(R<p.range.from||R>p.range.to)&&!c&&!p.composing&&(a.active=!1);const v=l({char:e,allowSpaces:o,allowToIncludeChar:t,allowedPrefixes:s,startOfLine:r,$position:w.$from}),C=`id_${Math.floor(Math.random()*4294967295)}`;v&&i({editor:n,state:m,range:v.range,isActive:p.active})&&(!d||d({editor:n,range:v.range,query:v.query,text:v.text,transaction:u}))?(a.dismissedRange!==null&&!f({match:v,dismissedRange:a.dismissedRange,state:m,transaction:u})&&(a.dismissedRange=null),a.dismissedRange===null?(a.active=!0,a.decorationId=p.decorationId||C,a.range=v.range,a.query=v.query,a.text=v.text):a.active=!1):(v||(a.dismissedRange=null),a.active=!1)}else a.active=!1;return a.active||(a.decorationId=null,a.range={from:0,to:0},a.query=null,a.text=null),a}}}function ce({editor:n,items:e}){let o=null,t=null,s=null;const r=()=>{t!==null&&(clearTimeout(t),t=null),s?.(),s=null},l=f=>new Promise(g=>{s=g,t=setTimeout(()=>{t=null;const u=s;s=null,u?.()},f)}),i=()=>{o?.abort(),r(),o=null};return{abort:i,fetch:async(f,g)=>{i(),o=new AbortController;const u=o;if(g>0&&await l(g),o!==u||u.signal.aborted)return{status:"aborted"};try{const p=await e({editor:n,query:f,signal:u.signal});return o!==u||u.signal.aborted?{status:"aborted"}:{status:"resolved",items:p}}catch{return o!==u||u.signal.aborted?{status:"aborted"}:{status:"error"}}}}}function de({placement:n,offset:e,flip:o,floatingUi:t}){var s,r,l,i;const d=[J({mainAxis:(s=e.mainAxis)!==null&&s!==void 0?s:4,crossAxis:(r=e.crossAxis)!==null&&r!==void 0?r:0})];return o&&d.push(Y()),!(t==null||(l=t.middleware)===null||l===void 0)&&l.length&&d.push(...t.middleware),{placement:n,strategy:(i=t?.strategy)!==null&&i!==void 0?i:"absolute",middleware:d}}function fe(n){if(n instanceof HTMLElement)return n;if(typeof n=="string")try{const e=document.querySelector(n);if(e)return e}catch{return document.body}return document.body}function ge({getReferenceRect:n,contextElement:e,config:o,container:t,dismissOnOutsideClick:s,dismiss:r}){return(l,i={})=>{const d={getBoundingClientRect:()=>{var m;return(m=n())!==null&&m!==void 0?m:new DOMRect},contextElement:e};let f=!1;const g=!l.isConnected;g&&fe(t).appendChild(l),i.onPosition||(l.style.visibility="hidden",l.style.width="max-content");const p=G(d,l,()=>{Z(d,l,{placement:o.placement,strategy:o.strategy,middleware:o.middleware}).then(({x:m,y:h,placement:c,strategy:w})=>{if(i.onPosition){i.onPosition({x:m,y:h,placement:c,strategy:w});return}Object.assign(l.style,{position:w,left:`${m}px`,top:`${h}px`}),f||(f=!0,l.style.visibility="")})},i.autoUpdate);let x;return s&&(x=m=>{const h=m.target;!(h instanceof Node)||l.contains(h)||e.contains(h)||r()},document.addEventListener("pointerdown",x,!0)),()=>{p(),x&&document.removeEventListener("pointerdown",x,!0),g&&l.remove()}}}function pe({editor:n,pluginKey:e,items:o,renderer:t,minQueryLength:s,debounce:r,initialItems:l,placement:i,offset:d,container:f,flip:g,floatingUi:u,dismissOnOutsideClick:p,command:x,clientRectFor:m,dispatchExit:h}){let c;const w=ce({editor:n,items:o}),y=de({placement:i,offset:d,flip:g,floatingUi:u});function R(a,T){switch(a){case"started":var v;t==null||(v=t.onStart)===null||v===void 0||v.call(t,T);break;case"updated":var C;t==null||(C=t.onUpdate)===null||C===void 0||C.call(t,T);break;case"stopped":var q;t==null||(q=t.onExit)===null||q===void 0||q.call(t,T)}}return{update:async(a,T)=>{var v,C;const q=e.getState(T),D=e.getState(a.state);if(!q||!D)return;let E=null;const $=q.query!==D.query,P=q.text!==D.text,O=q.range.from!==D.range.from||q.range.to!==D.range.to,N=$||P||O;if(!q.active&&D.active)E="started";else if(q.active&&!D.active)E="stopped";else if(D.active&&N)E="updated";else return;const S=E==="stopped"?q:D,A=a.dom.querySelector(`[data-decoration-id="${S.decorationId}"]`),M=m(a,A),k=s===0||(S.query?S.query.length>=s:!1),I=(E==="started"||E==="updated")&&k;if(c={editor:n,range:S.range,query:S.query||"",text:S.text||"",items:l??[],command:_=>x({editor:n,range:S.range,props:_}),decorationNode:A,clientRect:M,loading:I,placement:i,offset:{mainAxis:(v=d.mainAxis)!==null&&v!==void 0?v:4,crossAxis:(C=d.crossAxis)!==null&&C!==void 0?C:0},container:f,flip:g,floatingUi:y,mount:ge({getReferenceRect:M,contextElement:a.dom,config:y,container:f,dismissOnOutsideClick:p,dismiss:()=>h(n.view)})},E==="started"){var F;t==null||(F=t.onBeforeStart)===null||F===void 0||F.call(t,c)}if(E==="updated"){var L;t==null||(L=t.onBeforeUpdate)===null||L===void 0||L.call(t,c)}if(E==="started"&&R(E,c),E==="started"||E==="updated")if(!I)w.abort(),c={...c,items:l??[],loading:!1};else{c={...c,items:l??[],loading:!0},E="updated",R(E,c);const _=await w.fetch(S.query||"",r);if(_.status==="aborted")return;const K=e.getState(a.state);if(!K?.active){w.abort();return}c=_.status==="resolved"?{...c,items:_.items,loading:!1}:{...c,loading:!1}}if(E==="stopped"){w.abort(),R(E,c),c=void 0;return}E==="updated"&&R(E,c)},destroy:()=>{var a;w.abort(),c&&(t==null||(a=t.onExit)===null||a===void 0||a.call(t,c))}}}const B=new U("suggestion");function j({pluginKey:n=B,editor:e,char:o="@",allowSpaces:t=!1,allowToIncludeChar:s=!1,allowedPrefixes:r=[" "],startOfLine:l=!1,decorationTag:i="span",decorationClass:d="suggestion",decorationContent:f="",decorationEmptyClass:g="is-empty",command:u=()=>null,items:p=()=>[],minQueryLength:x=0,debounce:m=0,initialItems:h,placement:c="bottom-start",offset:w={},container:y,flip:R=!0,floatingUi:a,dismissOnOutsideClick:T=!0,render:v=()=>({}),allow:C=()=>!0,findSuggestionMatch:q=ne,shouldShow:D,shouldResetDismissed:E}){const $=v?.(),P=t&&!s,O=(A,M)=>ae(e,A,M,n);function N(A){return le({...A,editor:e,shouldResetDismissed:E,effectiveAllowSpaces:P})}const S=A=>re({view:A,pluginKeyRef:n});return new V({key:n,view:()=>pe({editor:e,pluginKey:n,items:p,renderer:$,minQueryLength:x,debounce:m,initialItems:h,placement:c,offset:w,container:y,flip:R,floatingUi:a,dismissOnOutsideClick:T,command:u,clientRectFor:O,dispatchExit:S}),state:ue({editor:e,char:o,effectiveAllowSpaces:P,allowToIncludeChar:s,allowedPrefixes:r,startOfLine:l,findSuggestionMatch:q,allow:C,shouldShow:D,shouldKeepDismissed:N,pluginKey:n}),props:ie({pluginKey:n,decorationTag:i,decorationClass:d,decorationContent:f,decorationEmptyClass:g,renderer:$,dispatchExit:S})})}function Re(n,e=B){const o=n.state.tr.setMeta(e,{exit:!0});n.dispatch(o)}var qe=j;function me(n){const e=Q.c(17),{editor:o,query:t,items:s,onSelect:r,onClose:l}=n,[i,d]=b.useState(0),f=b.useRef(s),g=b.useRef(i),u=b.useRef(r),p=b.useRef(l),x=b.useDeferredValue(t),[m,h]=b.useState(x);m!==x&&(h(x),d(0)),i>=s.length&&s.length>0&&d(0);let c,w;e[0]!==s?(c=()=>{f.current=s},w=[s],e[0]=s,e[1]=c,e[2]=w):(c=e[1],w=e[2]),b.useEffect(c,w);let y,R;e[3]!==i?(y=()=>{g.current=i},R=[i],e[3]=i,e[4]=y,e[5]=R):(y=e[4],R=e[5]),b.useEffect(y,R);let a,T;e[6]!==r?(a=()=>{u.current=r},T=[r],e[6]=r,e[7]=a,e[8]=T):(a=e[7],T=e[8]),b.useEffect(a,T);let v,C;e[9]!==l?(v=()=>{p.current=l},C=[l],e[9]=l,e[10]=v,e[11]=C):(v=e[10],C=e[11]),b.useEffect(v,C);let q,D;e[12]!==o?(D=()=>{if(o?.isDestroyed)return;let P;try{P=o.view.dom}catch{return}if(!P)return;const O=S=>{const A=f.current;if(!A.length)return!1;const M=()=>d(I=>(I+1)%A.length),k=()=>d(I=>(I-1+A.length)%A.length);switch(S.key){case"ArrowUp":return S.preventDefault(),k(),!0;case"ArrowDown":return S.preventDefault(),M(),!0;case"Tab":return S.preventDefault(),S.shiftKey?k():M(),!0;case"Home":return S.preventDefault(),d(0),!0;case"End":return S.preventDefault(),d(A.length-1),!0;case"Enter":{if(S.isComposing)return!1;S.preventDefault();const I=g.current;return I!==-1&&A[I]&&u.current?.(A[I],I),!0}case"Escape":return S.preventDefault(),p.current?.(),!0;default:return!1}},N=S=>{O(S)};return P.addEventListener("keydown",N,!0),()=>{P?.removeEventListener("keydown",N,!0)}},q=[o],e[12]=o,e[13]=q,e[14]=D):(q=e[13],D=e[14]),b.useEffect(D,q);const E=s.length?i:void 0;let $;return e[15]!==E?($={selectedIndex:E,setSelectedIndex:d},e[15]=E,e[16]=$):$=e[16],$}function ye(n,e){switch(e.type){case"SET_SELECTED_ITEM":return{...n,selectedItem:e.payload};case"ON_START":return{...n,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...n,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return n}}const ve=b.createContext(void 0);function xe(){const n=b.useContext(ve);if(!n)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return n}function be(n){const e=Q.c(16),{editor:o,char:t,pluginKey:s,allow:r,onOpenChange:l}=n;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=i):i=e[0];const[d,f]=b.useReducer(ye,i);let g;e[1]!==l?(g=h=>{l?.(h)},e[1]=l,e[2]=g):g=e[2];const u=b.useEffectEvent(g);let p;e[3]!==t||e[4]!==r||e[5]!==o||e[6]!==u||e[7]!==s?(p=()=>{if(o?.isDestroyed)return;const h=s instanceof U?s:new U(s);o.state.plugins.find(y=>y.spec.key===h)&&o.unregisterPlugin(h);const w=j({pluginKey:h,editor:o,char:t,allow(y){const R=o.state.doc.resolve(y.range.from);for(let a=R.depth;a>0;a--)if(R.node(a).type.name==="image")return!1;return!(r&&!r(y))},command(){},render:()=>({onStart:y=>{f({type:"ON_START",payload:{element:y.decorationNode??null,query:y.query,range:y.range}}),u(!0)},onUpdate:y=>{f({type:"ON_UPDATE",payload:{element:y.decorationNode??null,query:y.query,range:y.range}})},onKeyDown:y=>y.event.key==="Escape"?(f({type:"ON_EXIT"}),!0):!1,onExit:()=>{f({type:"ON_EXIT"}),u(!1)}}),items:he});return o.registerPlugin(w),()=>{o?.isDestroyed||o.unregisterPlugin(h)}},e[3]=t,e[4]=r,e[5]=o,e[6]=u,e[7]=s,e[8]=p):p=e[8];let x;e[9]!==t||e[10]!==r||e[11]!==o||e[12]!==s?(x=[o,s,t,f,r],e[9]=t,e[10]=r,e[11]=o,e[12]=s,e[13]=x):x=e[13],b.useEffect(p,x);let m;return e[14]!==d?(m={state:d,dispatch:f},e[14]=d,e[15]=m):m=e[15],m}function he(){return[]}function Ce({editor:n,queryKey:e,queryFn:o,onSelect:t}){const{state:s,dispatch:r}=xe(),l=b.useDeferredValue(s.query),{data:i}=ee({queryKey:te.suggestionItems(e,s.open,l),queryFn:()=>s.open?o({query:l}):[]}),d=()=>{r({type:"ON_EXIT"})},f=async(u,p)=>{if(!(s.selectedItem!==null||!s.range)){r({type:"SET_SELECTED_ITEM",payload:u});try{const{view:x}=n,h=x.state.selection.$to.nodeAfter?.text?.startsWith(" "),c=s.range?{...s.range}:{from:0,to:0};h&&s.range&&(c.to+=1),await t({range:c,item:u})===!1?r({type:"SET_SELECTED_ITEM",payload:null}):d()}catch{d()}}},{selectedIndex:g}=me({editor:n,query:l,items:i,onSelect:f,onClose:d});return{selectedItem:s.selectedItem,items:i,selectedIndex:g,close:d,onSelect:f}}export{ve as S,xe as a,Ce as b,qe as c,Re as e,we as s,be as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,j as p,B as h}from"./index-
|
|
1
|
+
import{c as f,j as p,B as h}from"./index-B9KXIX84.js";import{T as j,a as v,c as T}from"./tooltip-C3KYJcjJ.js";function B(d){const t=f.c(19);let e,o,i,n,r,a;t[0]!==d?({label:o,tooltipSide:n,variant:r,size:a,children:e,...i}=d,t[0]=d,t[1]=e,t[2]=o,t[3]=i,t[4]=n,t[5]=r,t[6]=a):(e=t[1],o=t[2],i=t[3],n=t[4],r=t[5],a=t[6]);const m=n===void 0?"top":n,u=r===void 0?"ghost":r,x=a===void 0?"icon-sm":a;let s;t[7]!==e||t[8]!==o||t[9]!==i||t[10]!==x||t[11]!==u?(s=p.jsx(j,{asChild:!0,children:p.jsx(h,{"data-slot":"icon-button","aria-label":o,variant:u,size:x,...i,children:e})}),t[7]=e,t[8]=o,t[9]=i,t[10]=x,t[11]=u,t[12]=s):s=t[12];let l;t[13]!==o||t[14]!==m?(l=p.jsx(v,{side:m,children:o}),t[13]=o,t[14]=m,t[15]=l):l=t[15];let c;return t[16]!==s||t[17]!==l?(c=p.jsxs(T,{children:[s,l]}),t[16]=s,t[17]=l,t[18]=c):c=t[18],c}export{B as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as fo,r as F,b as cc,an as Hf,j as R,h as Vf,B as cl,aq as ul,ap as jf,ao as Wf,e7 as uc,e8 as Kf,aQ as Uf,e9 as Kt,ea as _f,l as dc}from"./index-CuKynvIK.js";import{d as qf,g as Jf}from"./gateway-client-RuR5Sgwm.js";import{d as Gf,c as Yf,e as Xf,b as Qf,D as Zf}from"./dialog-Cgb6nNga.js";import{a as eh,F as th,b as nh,c as rh,d as ih,f as sh}from"./form-Dx1-pFkl.js";import{I as oh}from"./input-CxixGGca.js";import{t as dl}from"./utils-CVEq3hMx.js";import{a as lh}from"./org-file-open-context-C3GnNEyb.js";import{T as ah,a as ch,c as uh}from"./tooltip-CxEILWvZ.js";function dh(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?ul().min(1,e):ul();return jf(n)}function fh(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function yx(t){const e=fo.c(74),{prompt:n,setPrompt:r,onSubmit:i,defaultValues:s}=t,o=F.useId(),l=cc();let a,c;if(e[0]!==n||e[1]!==l){const ie=dh(n,l("chat.dialogPromptArguments.required"));c=Wf,a=Hf(ie),e[0]=n,e[1]=l,e[2]=a,e[3]=c}else a=e[2],c=e[3];let u;e[4]!==s||e[5]!==n?(u=n?fh(n,s):{},e[4]=s,e[5]=n,e[6]=u):u=e[6];let d;e[7]!==a||e[8]!==u?(d={resolver:a,defaultValues:u,mode:"onChange"},e[7]=a,e[8]=u,e[9]=d):d=e[9];const f=c(d);let h;e[10]!==n?.arguments?(h=n?.arguments??[],e[10]=n?.arguments,e[11]=h):h=e[11];const p=h;let g;e[12]!==f||e[13]!==i||e[14]!==r?(g=async ie=>{await i(ie),r(null),f.reset()},e[12]=f,e[13]=i,e[14]=r,e[15]=g):g=e[15];const m=g;let y;e[16]!==f||e[17]!==r?(y=ie=>{ie||(f.reset(),r(null))},e[16]=f,e[17]=r,e[18]=y):y=e[18];const b=y;if(!n)return null;let S;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(S=n.title||qf(n.name,Jf(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=S):S=e[22];let C;e[23]!==S?(C=R.jsx(Gf,{children:R.jsx("span",{className:"capitalize",children:S})}),e[23]=S,e[24]=C):C=e[24];let T;e[25]!==n.description?(T=n.description&&R.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=T):T=e[26];let N;e[27]!==T||e[28]!==C?(N=R.jsxs(Yf,{children:[C,T]}),e[27]=T,e[28]=C,e[29]=N):N=e[29];let v;e[30]!==f||e[31]!==m?(v=ie=>{ie.stopPropagation(),f.handleSubmit(m)(ie)},e[30]=f,e[31]=m,e[32]=v):v=e[32];let O;if(e[33]!==p||e[34]!==f.control||e[35]!==f.formState.isSubmitting||e[36]!==l){let ie;e[38]!==f.control||e[39]!==f.formState.isSubmitting||e[40]!==l?(ie=Le=>R.jsx(th,{control:f.control,name:Le.name,render:En=>{const{field:We}=En;return R.jsxs(nh,{children:[R.jsxs(rh,{className:"text-xs",children:[Le.name,Le.required?null:R.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",l("chat.dialogPromptArguments.optional")]})]}),R.jsx(ih,{children:R.jsx(oh,{...We,value:We.value??"",required:Le.required,placeholder:Le.description??"",className:"h-9",disabled:f.formState.isSubmitting})}),R.jsx(sh,{})]})}},Le.name),e[38]=f.control,e[39]=f.formState.isSubmitting,e[40]=l,e[41]=ie):ie=e[41],O=p.map(ie),e[33]=p,e[34]=f.control,e[35]=f.formState.isSubmitting,e[36]=l,e[37]=O}else O=e[37];let P;e[42]!==b?(P=()=>b(!1),e[42]=b,e[43]=P):P=e[43];const _=f.formState.isSubmitting;let ne;e[44]!==l?(ne=l("chat.dialogPromptArguments.cancel"),e[44]=l,e[45]=ne):ne=e[45];let ce;e[46]!==f.formState.isSubmitting||e[47]!==P||e[48]!==ne?(ce=R.jsx(cl,{type:"button",variant:"ghost",onClick:P,disabled:_,children:ne}),e[46]=f.formState.isSubmitting,e[47]=P,e[48]=ne,e[49]=ce):ce=e[49];let H;e[50]!==f.formState.isSubmitting||e[51]!==l?(H=f.formState.isSubmitting?R.jsxs("span",{className:"flex items-center gap-2",children:[R.jsx(Vf,{size:"xs"}),l("chat.dialogPromptArguments.loading")]}):l("chat.dialogPromptArguments.usePrompt"),e[50]=f.formState.isSubmitting,e[51]=l,e[52]=H):H=e[52];let J;e[53]!==f.formState.isSubmitting||e[54]!==o||e[55]!==H?(J=R.jsx(cl,{type:"submit",form:o,disabled:f.formState.isSubmitting,children:H}),e[53]=f.formState.isSubmitting,e[54]=o,e[55]=H,e[56]=J):J=e[56];let V;e[57]!==ce||e[58]!==J?(V=R.jsxs(Xf,{children:[ce,J]}),e[57]=ce,e[58]=J,e[59]=V):V=e[59];let re;e[60]!==o||e[61]!==v||e[62]!==O||e[63]!==V?(re=R.jsxs("form",{id:o,className:"space-y-4 py-4",autoComplete:"off",onSubmit:v,children:[O,V]}),e[60]=o,e[61]=v,e[62]=O,e[63]=V,e[64]=re):re=e[64];let Se;e[65]!==f||e[66]!==re?(Se=R.jsx(eh,{...f,children:re}),e[65]=f,e[66]=re,e[67]=Se):Se=e[67];let Pe;e[68]!==N||e[69]!==Se?(Pe=R.jsxs(Qf,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[N,Se]}),e[68]=N,e[69]=Se,e[70]=Pe):Pe=e[70];let ot;return e[71]!==b||e[72]!==Pe?(ot=R.jsx(Zf,{open:!0,onOpenChange:b,children:Pe}),e[71]=b,e[72]=Pe,e[73]=ot):ot=e[73],ot}var fl=Object.defineProperty,hh=(t,e)=>{let n={};for(var r in t)fl(n,r,{get:t[r],enumerable:!0});return fl(n,Symbol.toStringTag,{value:"Module"}),n};function se(t){this.content=t}se.prototype={constructor:se,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),s=r.content.slice();return i==-1?s.push(n||t,e):(s[i+1]=e,n&&(s[i]=n)),new se(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new se(n)},addToStart:function(t,e){return new se([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new se(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),s=r.find(t);return i.splice(s==-1?i.length:s,0,e,n),new se(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=se.from(t),t.size?new se(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=se.from(t),t.size?new se(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=se.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};se.from=function(t){if(t instanceof se)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new se(e)};function fc(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)n++;return a&&a<o.length&&a<l.length&&mc(o.charCodeAt(a-1))&&pc(o.charCodeAt(a))&&n--,n}if(i.content.size||s.content.size){let o=fc(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function hc(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){n-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:n,b:r};if(o.isText&&o.text!=l.text){let c=o.text,u=l.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,n--,r--;return d&&f&&d<c.length&&mc(c.charCodeAt(d-1))&&pc(c.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(o.content.size||l.content.size){let c=hc(o.content,l.content,n-1,r-1);if(c)return c}n-=a,r-=a}}function pc(t){return t>=56320&&t<57344}function mc(t){return t>=55296&&t<56320}class k{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,s){for(let o=0,l=0;l<n;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new k(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let s=0,o=0;o<n;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>n)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,n-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,n-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,n){return e==n?k.empty:e==0&&n==this.content.length?this:new k(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return fc(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return hc(this,e,n,r)}findIndex(e){if(e==0)return xr(0,e);if(e==this.size)return xr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e?xr(n+1,s):xr(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return k.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let n,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(n||(n=e.slice(0,i)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new k(n||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const Ji={index:0,offset:0};function xr(t,e){return Ji.index=t,Ji.offset=e,Ji}function Hr(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Hr(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hr(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let $=class Es{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Hr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Es.none;if(e instanceof Es)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};$.none=[];class Qn extends Error{}class M{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=yc(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,n){return new M(gc(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return M.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(k.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new M(e,r,i)}}M.empty=new M(k.empty,0,0);function gc(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:l}=t.findIndex(n);if(i==e||s.isText){if(l!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(gc(s.content,e-i-1,n-i-1)))}function yc(t,e,n,r,i,s){let{index:o,offset:l}=t.findIndex(e),a=t.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=yc(a.content,e-l-1,n,o==0?r-1:0,o==t.childCount-1?i-1:0,a);return c&&t.replaceChild(o,a.copy(c))}function ph(t,e,n){if(n.openStart>t.depth)throw new Qn("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Qn("Inconsistent open depths");return bc(t,e,n,0)}function bc(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=bc(t,e,n,r+1);return s.copy(s.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,l=o.content;return zt(o,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=mh(n,t);return zt(s,Sc(t,o,l,e,r))}else return zt(s,Vr(t,e,r))}function kc(t,e){if(!e.type.compatibleContent(t.type))throw new Qn("Cannot join "+e.type.name+" onto "+t.type.name)}function Ts(t,e,n){let r=t.node(n);return kc(r,e.node(n)),r}function $t(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function zn(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&($t(t.nodeAfter,r),s++));for(let l=s;l<o;l++)$t(i.child(l),r);e&&e.depth==n&&e.textOffset&&$t(e.nodeBefore,r)}function zt(t,e){if(!t.type.validContent(e))throw new Qn("Invalid content for node "+t.type.name);return t.copy(e)}function Sc(t,e,n,r,i){let s=t.depth>i&&Ts(t,e,i+1),o=r.depth>i&&Ts(n,r,i+1),l=[];return zn(null,t,i,l),s&&o&&e.index(i)==n.index(i)?(kc(s,o),$t(zt(s,Sc(t,e,n,r,i+1)),l)):(s&&$t(zt(s,Vr(t,e,i+1)),l),zn(e,n,i,l),o&&$t(zt(o,Vr(n,r,i+1)),l)),zn(r,null,i,l),new k(l)}function Vr(t,e,n){let r=[];if(zn(null,t,n,r),t.depth>n){let i=Ts(t,e,n+1);$t(zt(i,Vr(t,e,n+1)),r)}return zn(e,null,n,r),new k(r)}function mh(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Zn{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new jr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new Zn(n,r,s)}static resolveCached(e,n){let r=hl.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==n)return o}else hl.set(e,r=new gh);let i=r.elts[r.i]=Zn.resolve(e,n);return r.i=(r.i+1)%yh,i}}class gh{constructor(){this.elts=[],this.i=0}}const yh=12,hl=new WeakMap;class jr{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const bh=Object.create(null);let Bt=class ws{constructor(e,n,r,i=$.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||k.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Hr(this.attrs,n||e.defaultAttrs||bh)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new ws(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ws(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return M.empty;let i=this.resolve(e),s=this.resolve(n),o=r?0:i.sharedDepth(n),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new M(c,i.depth-o,s.depth-o)}replace(e,n,r){return ph(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return Zn.resolveCached(this,e)}resolveNoCache(e){return Zn.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xc(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=$.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!$.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=k.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};Bt.prototype.text=void 0;class Wr extends Bt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Wr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Wr(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function xc(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ut{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new kh(e,n);if(r.next==null)return Ut.empty;let i=Cc(r);r.next&&r.err("Unexpected trailing text");let s=wh(Th(i));return vh(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let s=n;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!n||a.validEnd))return k.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,l.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
1
|
+
import{c as fo,r as F,b as cc,an as Hf,j as R,h as Vf,B as cl,aq as ul,ap as jf,ao as Wf,e7 as uc,e8 as Kf,aQ as Uf,e9 as Kt,ea as _f,l as dc}from"./index-B9KXIX84.js";import{d as qf,g as Jf}from"./gateway-client-pQEk_YWf.js";import{d as Gf,c as Yf,e as Xf,b as Qf,D as Zf}from"./dialog-O_WsqGxK.js";import{a as eh,F as th,b as nh,c as rh,d as ih,f as sh}from"./form-Db0Tj8hF.js";import{I as oh}from"./input-ALPFLjGK.js";import{t as dl}from"./utils-CVEq3hMx.js";import{a as lh}from"./org-file-open-context-DNQMuR7f.js";import{T as ah,a as ch,c as uh}from"./tooltip-C3KYJcjJ.js";function dh(t,e){const n={};for(const r of t?.arguments??[])n[r.name]=r.required?ul().min(1,e):ul();return jf(n)}function fh(t,e){const n={};for(const r of t.arguments??[])n[r.name]=e?.[r.name]??"";return n}function yx(t){const e=fo.c(74),{prompt:n,setPrompt:r,onSubmit:i,defaultValues:s}=t,o=F.useId(),l=cc();let a,c;if(e[0]!==n||e[1]!==l){const ie=dh(n,l("chat.dialogPromptArguments.required"));c=Wf,a=Hf(ie),e[0]=n,e[1]=l,e[2]=a,e[3]=c}else a=e[2],c=e[3];let u;e[4]!==s||e[5]!==n?(u=n?fh(n,s):{},e[4]=s,e[5]=n,e[6]=u):u=e[6];let d;e[7]!==a||e[8]!==u?(d={resolver:a,defaultValues:u,mode:"onChange"},e[7]=a,e[8]=u,e[9]=d):d=e[9];const f=c(d);let h;e[10]!==n?.arguments?(h=n?.arguments??[],e[10]=n?.arguments,e[11]=h):h=e[11];const p=h;let g;e[12]!==f||e[13]!==i||e[14]!==r?(g=async ie=>{await i(ie),r(null),f.reset()},e[12]=f,e[13]=i,e[14]=r,e[15]=g):g=e[15];const m=g;let y;e[16]!==f||e[17]!==r?(y=ie=>{ie||(f.reset(),r(null))},e[16]=f,e[17]=r,e[18]=y):y=e[18];const b=y;if(!n)return null;let S;e[19]!==n._meta||e[20]!==n.name||e[21]!==n.title?(S=n.title||qf(n.name,Jf(n._meta)),e[19]=n._meta,e[20]=n.name,e[21]=n.title,e[22]=S):S=e[22];let C;e[23]!==S?(C=R.jsx(Gf,{children:R.jsx("span",{className:"capitalize",children:S})}),e[23]=S,e[24]=C):C=e[24];let T;e[25]!==n.description?(T=n.description&&R.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[25]=n.description,e[26]=T):T=e[26];let N;e[27]!==T||e[28]!==C?(N=R.jsxs(Yf,{children:[C,T]}),e[27]=T,e[28]=C,e[29]=N):N=e[29];let v;e[30]!==f||e[31]!==m?(v=ie=>{ie.stopPropagation(),f.handleSubmit(m)(ie)},e[30]=f,e[31]=m,e[32]=v):v=e[32];let O;if(e[33]!==p||e[34]!==f.control||e[35]!==f.formState.isSubmitting||e[36]!==l){let ie;e[38]!==f.control||e[39]!==f.formState.isSubmitting||e[40]!==l?(ie=Le=>R.jsx(th,{control:f.control,name:Le.name,render:En=>{const{field:We}=En;return R.jsxs(nh,{children:[R.jsxs(rh,{className:"text-xs",children:[Le.name,Le.required?null:R.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ",l("chat.dialogPromptArguments.optional")]})]}),R.jsx(ih,{children:R.jsx(oh,{...We,value:We.value??"",required:Le.required,placeholder:Le.description??"",className:"h-9",disabled:f.formState.isSubmitting})}),R.jsx(sh,{})]})}},Le.name),e[38]=f.control,e[39]=f.formState.isSubmitting,e[40]=l,e[41]=ie):ie=e[41],O=p.map(ie),e[33]=p,e[34]=f.control,e[35]=f.formState.isSubmitting,e[36]=l,e[37]=O}else O=e[37];let P;e[42]!==b?(P=()=>b(!1),e[42]=b,e[43]=P):P=e[43];const _=f.formState.isSubmitting;let ne;e[44]!==l?(ne=l("chat.dialogPromptArguments.cancel"),e[44]=l,e[45]=ne):ne=e[45];let ce;e[46]!==f.formState.isSubmitting||e[47]!==P||e[48]!==ne?(ce=R.jsx(cl,{type:"button",variant:"ghost",onClick:P,disabled:_,children:ne}),e[46]=f.formState.isSubmitting,e[47]=P,e[48]=ne,e[49]=ce):ce=e[49];let H;e[50]!==f.formState.isSubmitting||e[51]!==l?(H=f.formState.isSubmitting?R.jsxs("span",{className:"flex items-center gap-2",children:[R.jsx(Vf,{size:"xs"}),l("chat.dialogPromptArguments.loading")]}):l("chat.dialogPromptArguments.usePrompt"),e[50]=f.formState.isSubmitting,e[51]=l,e[52]=H):H=e[52];let J;e[53]!==f.formState.isSubmitting||e[54]!==o||e[55]!==H?(J=R.jsx(cl,{type:"submit",form:o,disabled:f.formState.isSubmitting,children:H}),e[53]=f.formState.isSubmitting,e[54]=o,e[55]=H,e[56]=J):J=e[56];let V;e[57]!==ce||e[58]!==J?(V=R.jsxs(Xf,{children:[ce,J]}),e[57]=ce,e[58]=J,e[59]=V):V=e[59];let re;e[60]!==o||e[61]!==v||e[62]!==O||e[63]!==V?(re=R.jsxs("form",{id:o,className:"space-y-4 py-4",autoComplete:"off",onSubmit:v,children:[O,V]}),e[60]=o,e[61]=v,e[62]=O,e[63]=V,e[64]=re):re=e[64];let Se;e[65]!==f||e[66]!==re?(Se=R.jsx(eh,{...f,children:re}),e[65]=f,e[66]=re,e[67]=Se):Se=e[67];let Pe;e[68]!==N||e[69]!==Se?(Pe=R.jsxs(Qf,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[N,Se]}),e[68]=N,e[69]=Se,e[70]=Pe):Pe=e[70];let ot;return e[71]!==b||e[72]!==Pe?(ot=R.jsx(Zf,{open:!0,onOpenChange:b,children:Pe}),e[71]=b,e[72]=Pe,e[73]=ot):ot=e[73],ot}var fl=Object.defineProperty,hh=(t,e)=>{let n={};for(var r in t)fl(n,r,{get:t[r],enumerable:!0});return fl(n,Symbol.toStringTag,{value:"Module"}),n};function se(t){this.content=t}se.prototype={constructor:se,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),s=r.content.slice();return i==-1?s.push(n||t,e):(s[i+1]=e,n&&(s[i]=n)),new se(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new se(n)},addToStart:function(t,e){return new se([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new se(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),s=r.find(t);return i.splice(s==-1?i.length:s,0,e,n),new se(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=se.from(t),t.size?new se(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=se.from(t),t.size?new se(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=se.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};se.from=function(t){if(t instanceof se)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new se(e)};function fc(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)n++;return a&&a<o.length&&a<l.length&&mc(o.charCodeAt(a-1))&&pc(o.charCodeAt(a))&&n--,n}if(i.content.size||s.content.size){let o=fc(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function hc(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){n-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:n,b:r};if(o.isText&&o.text!=l.text){let c=o.text,u=l.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,n--,r--;return d&&f&&d<c.length&&mc(c.charCodeAt(d-1))&&pc(c.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(o.content.size||l.content.size){let c=hc(o.content,l.content,n-1,r-1);if(c)return c}n-=a,r-=a}}function pc(t){return t>=56320&&t<57344}function mc(t){return t>=55296&&t<56320}class k{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,s){for(let o=0,l=0;l<n;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new k(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let s=0,o=0;o<n;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>n)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,n-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,n-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,n){return e==n?k.empty:e==0&&n==this.content.length?this:new k(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return fc(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return hc(this,e,n,r)}findIndex(e){if(e==0)return xr(0,e);if(e==this.size)return xr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e?xr(n+1,s):xr(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return k.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let n,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(n||(n=e.slice(0,i)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new k(n||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const Ji={index:0,offset:0};function xr(t,e){return Ji.index=t,Ji.offset=e,Ji}function Hr(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Hr(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hr(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let $=class Es{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Hr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Es.none;if(e instanceof Es)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};$.none=[];class Qn extends Error{}class M{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=yc(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,n){return new M(gc(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return M.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(k.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new M(e,r,i)}}M.empty=new M(k.empty,0,0);function gc(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:l}=t.findIndex(n);if(i==e||s.isText){if(l!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(gc(s.content,e-i-1,n-i-1)))}function yc(t,e,n,r,i,s){let{index:o,offset:l}=t.findIndex(e),a=t.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=yc(a.content,e-l-1,n,o==0?r-1:0,o==t.childCount-1?i-1:0,a);return c&&t.replaceChild(o,a.copy(c))}function ph(t,e,n){if(n.openStart>t.depth)throw new Qn("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Qn("Inconsistent open depths");return bc(t,e,n,0)}function bc(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=bc(t,e,n,r+1);return s.copy(s.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,l=o.content;return zt(o,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=mh(n,t);return zt(s,Sc(t,o,l,e,r))}else return zt(s,Vr(t,e,r))}function kc(t,e){if(!e.type.compatibleContent(t.type))throw new Qn("Cannot join "+e.type.name+" onto "+t.type.name)}function Ts(t,e,n){let r=t.node(n);return kc(r,e.node(n)),r}function $t(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function zn(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&($t(t.nodeAfter,r),s++));for(let l=s;l<o;l++)$t(i.child(l),r);e&&e.depth==n&&e.textOffset&&$t(e.nodeBefore,r)}function zt(t,e){if(!t.type.validContent(e))throw new Qn("Invalid content for node "+t.type.name);return t.copy(e)}function Sc(t,e,n,r,i){let s=t.depth>i&&Ts(t,e,i+1),o=r.depth>i&&Ts(n,r,i+1),l=[];return zn(null,t,i,l),s&&o&&e.index(i)==n.index(i)?(kc(s,o),$t(zt(s,Sc(t,e,n,r,i+1)),l)):(s&&$t(zt(s,Vr(t,e,i+1)),l),zn(e,n,i,l),o&&$t(zt(o,Vr(n,r,i+1)),l)),zn(r,null,i,l),new k(l)}function Vr(t,e,n){let r=[];if(zn(null,t,n,r),t.depth>n){let i=Ts(t,e,n+1);$t(zt(i,Vr(t,e,n+1)),r)}return zn(e,null,n,r),new k(r)}function mh(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Zn{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new jr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new Zn(n,r,s)}static resolveCached(e,n){let r=hl.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==n)return o}else hl.set(e,r=new gh);let i=r.elts[r.i]=Zn.resolve(e,n);return r.i=(r.i+1)%yh,i}}class gh{constructor(){this.elts=[],this.i=0}}const yh=12,hl=new WeakMap;class jr{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const bh=Object.create(null);let Bt=class ws{constructor(e,n,r,i=$.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||k.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Hr(this.attrs,n||e.defaultAttrs||bh)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new ws(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ws(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return M.empty;let i=this.resolve(e),s=this.resolve(n),o=r?0:i.sharedDepth(n),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new M(c,i.depth-o,s.depth-o)}replace(e,n,r){return ph(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return Zn.resolveCached(this,e)}resolveNoCache(e){return Zn.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xc(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=$.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!$.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=k.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};Bt.prototype.text=void 0;class Wr extends Bt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Wr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Wr(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function xc(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ut{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new kh(e,n);if(r.next==null)return Ut.empty;let i=Cc(r);r.next&&r.err("Unexpected trailing text");let s=wh(Th(i));return vh(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let s=n;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!n||a.validEnd))return k.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,l.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
2
2
|
`)}}Ut.empty=new Ut(!0);class kh{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Cc(t){let e=[];do e.push(Sh(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Sh(t){let e=[];do e.push(xh(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function xh(t){let e=Eh(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Ch(t,e);else break;return e}function pl(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Ch(t,e){let n=pl(t),r=n;return t.eat(",")&&(t.next!="}"?r=pl(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function Mh(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let s in n){let o=n[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function Eh(t){if(t.eat("(")){let e=Cc(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=Mh(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Th(t){let e=[[]];return i(s(t,0),n()),e;function n(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function i(o,l){o.forEach(a=>a.to=l)}function s(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=s(o.exprs[a],l);if(a==o.exprs.length-1)return c;i(c,l=n())}else if(o.type=="star"){let a=n();return r(l,a),i(s(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=n();return i(s(o.expr,l),a),i(s(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c<o.min;c++){let u=n();i(s(o.expr,a),u),a=u}if(o.max==-1)i(s(o.expr,a),a);else for(let c=o.min;c<o.max;c++){let u=n();r(a,u),i(s(o.expr,a),u),a=u}return[r(a)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function Mc(t,e){return e-t}function ml(t,e){let n=[];return r(e),n.sort(Mc);function r(i){let s=t[i];if(s.length==1&&!s[0].term)return r(s[0].to);n.push(i);for(let o=0;o<s.length;o++){let{term:l,to:a}=s[o];!l&&n.indexOf(a)==-1&&r(a)}}}function wh(t){let e=Object.create(null);return n(ml(t,0));function n(r){let i=[];r.forEach(o=>{t[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<i.length;u++)i[u][0]==l&&(c=i[u][1]);ml(t,a).forEach(u=>{c||i.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new Ut(r.indexOf(t.length-1)>-1);for(let o=0;o<i.length;o++){let l=i[o][1].sort(Mc);s.next.push({type:i[o][0],next:e[l.join(",")]||n(l)})}return s}}function vh(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],s=!i.validEnd,o=[];for(let l=0;l<i.next.length;l++){let{type:a,next:c}=i.next[l];o.push(a.name),s&&!(a.isText||a.hasRequiredAttrs())&&(s=!1),r.indexOf(c)==-1&&r.push(c)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Ec(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Tc(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let s=t[r];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function wc(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let i in t)t[i].validate&&t[i].validate(e[i])}function vc(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new Nh(t,r,e[r]);return n}let gl=class Ac{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=vc(e,r.attrs),this.defaultAttrs=Ec(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ut.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Tc(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Bt(this,this.computeAttrs(e),k.from(n),$.setFrom(r))}createChecked(e=null,n,r){return n=k.from(n),this.checkContent(n),new Bt(this,this.computeAttrs(e),n,$.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=k.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),s=i&&i.fillBefore(k.empty,!0);return s?new Bt(this,e,n.append(s),$.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){wc(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:$.none:e}static compile(e,n){let r=Object.create(null);e.forEach((s,o)=>r[s]=new Ac(s,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Ah(t,e,n){let r=n.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${s}`)}}class Nh{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Ah(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Ri{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=vc(e,i.attrs),this.excluded=null;let s=Ec(this.attrs);this.instance=s?new $(this,s):null}create(e=null){return!e&&this.instance?this.instance:new $(this,Tc(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Ri(s,i++,n,o)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){wc(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Nc{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=se.from(e.nodes),n.marks=se.from(e.marks||{}),this.nodes=gl.compile(this.spec.nodes,this),this.marks=Ri.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=Ut.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?yl(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:yl(this,o.split(" "))}this.nodeFromJSON=i=>Bt.fromJSON(this,i),this.markFromJSON=i=>$.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof gl){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Wr(r,r.defaultAttrs,e,$.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function yl(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],s=t.marks[i],o=s;if(s)n.push(s);else for(let l in t.marks){let a=t.marks[l];(i=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(i)>-1)&&n.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function Oh(t){return t.tag!=null}function Dh(t){return t.style!=null}class He{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(Oh(i))this.tags.push(i);else if(Dh(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let r=new kl(this,n,!1);return r.addAll(e,$.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new kl(this,n,!0);return r.addAll(e,$.none,n.from,n.to),M.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(Ph(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||n.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,n,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(o.getAttrs){let a=o.getAttrs(n);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let n=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<n.length;o++){let l=n[o];if((l.priority==null?50:l.priority)<s)break}n.splice(o,0,i)}for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Sl(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Sl(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new He(e,He.schemaRules(e)))}}const Oc={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Rh={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Dc={ol:!0,ul:!0},er=1,vs=2,Bn=4;function bl(t,e,n){return e!=null?(e?er:0)|(e==="full"?vs:0):t&&t.whitespace=="pre"?er|vs:n&~Bn}class Cr{constructor(e,n,r,i,s,o){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=$.none,this.match=s||(o&Bn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(k.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&er)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let n=k.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(k.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Oc.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class kl{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,s,o=bl(null,n.preserveWhitespace,0)|(r?Bn:0);i?s=new Cr(i.type,i.attrs,$.none,!0,n.topMatch||i.type.contentMatch,o):r?s=new Cr(null,null,$.none,!0,null,o):s=new Cr(e.schema.topNodeType,null,$.none,!0,null,o),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,s=i.options&vs?"full":this.localPreserveWS||(i.options&er)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,`
|
|
3
3
|
`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(o.linebreakReplacement.create(),n,!0),l[a]&&this.insertNode(o.text(l[a]),n,!/\S/.test(l[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=i.content[i.content.length-1],a=e.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;Dc.hasOwnProperty(o)&&this.parser.normalizeLists&&Ih(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:Rh.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let c,u=this.needsBlock;if(Oc.hasOwnProperty(o))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=a&&a.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(s),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,a,c,a.consuming===!1?l:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
4
4
|
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let s=this.parser.matchedStyles[i],o=r.getPropertyValue(s);if(o)for(let l=void 0;;){let a=this.parser.matchStyle(s,o,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(c=>!a.clearMark(c)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(e,n,r,i){let s,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,n.attrs||null,r,n.preserveWhitespace);a&&(s=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}s&&this.sync(l)&&this.open--}addAll(e,n,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=i==null?null:e.childNodes[i];o!=l;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,n);this.findAtPoint(e,s)}findPlace(e,n,r){let i,s;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],c=a.findWrapping(e);if(c&&(!i||i.length>c.length+l)&&(i=c,s=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!i)return null;this.sync(s);for(let o=0;o<i.length;o++)n=this.enterInner(i[o],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(n=this.enterInner(s,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(e.type));let o=$.none;for(let l of i.concat(e.marks))(s.type?s.type.allowsMarkType(l.type):xl(l.type,e.type))&&(o=l.addToSet(o));return s.content.push(e.mark(o)),!0}return!1}enter(e,n,r,i){let s=this.findPlace(e.create(n),r,!1);return s&&(s=this.enterInner(e,n,r,!0,i)),s}enterInner(e,n,r,i=!1,s){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=bl(e,s,o.options);o.options&Bn&&o.content.length==0&&(l|=Bn);let a=$.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):xl(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new Cr(e,n,a,i,null,l)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=er)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(l,a)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;a>=s;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&i?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;a--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function Ih(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Dc.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function Ph(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Sl(t){let e={};for(let n in t)e[n]=t[n];return e}function xl(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let s=[],o=l=>{s.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||s.indexOf(u)<0&&o(u))return!0}};if(o(i.contentMatch))return!0}}class nt{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Mr(n).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let l=0,a=0;for(;l<s.length&&a<o.marks.length;){let c=o.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(s[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<s.length;)i=s.pop()[1];for(;a<o.marks.length;){let c=o.marks[a++],u=this.serializeMark(c,o.isInline,n);u&&(s.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(e,n){if(e.isText)return Mr(n).createTextNode(e.text);let{dom:r,contentDOM:i}=Lr(Mr(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Lr(Mr(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return typeof n=="string"?{dom:e.createTextNode(n)}:Lr(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new nt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Cl(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Cl(e.marks)}}function Cl(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Mr(t){return t.document||window.document}const Ml=new WeakMap;function Lh(t){let e=Ml.get(t);return e===void 0&&Ml.set(t,e=$h(t)),e}function $h(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function Lr(t,e,n,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],s;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(s=Lh(r))&&s.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let l,a=n?t.createElementNS(n,i):t.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&a.style?a.style.cssText=c[d]:a.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let f=e[d];if(f===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(t.createTextNode(f));else{let{dom:h,contentDOM:p}=Lr(t,f,n,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const Rc=65535,Ic=Math.pow(2,16);function zh(t,e){return t+e*Ic}function El(t){return t&Rc}function Bh(t){return(t-(t&Rc))/Ic}const Pc=1,Lc=2,$r=4,$c=8;class As{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&$c)>0}get deletedBefore(){return(this.delInfo&(Pc|$r))>0}get deletedAfter(){return(this.delInfo&(Lc|$r))>0}get deletedAcross(){return(this.delInfo&$r)>0}}class xe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&xe.empty)return xe.empty}recover(e){let n=0,r=El(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+Bh(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?i:0);if(a>e)break;let c=this.ranges[l+s],u=this.ranges[l+o],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:n:n,h=a+i+(f<0?0:u);if(r)return h;let p=e==(n<0?a:d)?null:zh(l/3,e-a),g=e==a?Lc:e==d?Pc:$r;return(n<0?e!=a:e!=d)&&(g|=$c),new As(h,g,p)}i+=u-c}return r?e+i:new As(e+i,0,null)}touches(e,n){let r=0,i=El(n),s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let c=this.ranges[l+s],u=a+c;if(e<=u&&l==i*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],l=o-(this.inverted?s:0),a=o+(this.inverted?0:s),c=this.ranges[i+n],u=this.ranges[i+r];e(l,l+c,a,a+u),s+=u-c}}invert(){return new xe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?xe.empty:new xe(e<0?[0,-e,0]:[0,0,e])}}xe.empty=new xe([]);class tr{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new tr(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new tr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let s=this.from;s<this.to;s++){let o=this._maps[s],l=o.mapResult(e,n);if(l.recover!=null){let a=this.getMirror(s);if(a!=null&&a>s&&a<this.to){s=a,e=this._maps[a].recover(l.recover);continue}}i|=l.delInfo,e=l.pos}return r?e:new As(e,i,null)}}const Gi=Object.create(null);class fe{getMap(){return xe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Gi[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Gi)throw new RangeError("Duplicate use of step JSON ID "+e);return Gi[e]=n,n.prototype.jsonID=e,n}}class G{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new G(e,null)}static fail(e){return new G(null,e)}static fromReplace(e,n,r,i){try{return G.ok(e.replace(n,r,i))}catch(s){if(s instanceof Qn)return G.fail(s.message);throw s}}}function ho(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let s=t.child(i);s.content.size&&(s=s.copy(ho(s.content,e,s))),s.isInline&&(s=e(s,n,i)),r.push(s)}return k.fromArray(r)}class mt extends fe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new M(ho(n.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return G.fromReplace(e,this.from,this.to,s)}invert(){return new De(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new mt(n.pos,r.pos,this.mark)}merge(e){return e instanceof mt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new mt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new mt(n.from,n.to,e.markFromJSON(n.mark))}}fe.jsonID("addMark",mt);class De extends fe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new M(ho(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return G.fromReplace(e,this.from,this.to,r)}invert(){return new mt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new De(n.pos,r.pos,this.mark)}merge(e){return e instanceof De&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new De(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new De(n.from,n.to,e.markFromJSON(n.mark))}}fe.jsonID("removeMark",De);class gt extends fe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return G.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return G.fromReplace(e,this.pos,this.pos+1,new M(k.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new gt(this.pos,n.marks[i]);return new gt(this.pos,this.mark)}}return new _t(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new gt(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new gt(n.pos,e.markFromJSON(n.mark))}}fe.jsonID("addNodeMark",gt);class _t extends fe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return G.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return G.fromReplace(e,this.pos,this.pos+1,new M(k.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new gt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new _t(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new _t(n.pos,e.markFromJSON(n.mark))}}fe.jsonID("removeNodeMark",_t);class q extends fe{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&Ns(e,this.from,this.to)?G.fail("Structure replace would overwrite content"):G.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new xe([this.from,this.to-this.from,this.slice.size])}invert(e){return new q(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&q.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new q(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof q)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?M.empty:new M(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new q(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?M.empty:new M(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new q(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new q(n.from,n.to,M.fromJSON(e,n.slice),!!n.structure)}}q.MAP_BIAS=1;fe.jsonID("replace",q);class ee extends fe{constructor(e,n,r,i,s,o,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=l}apply(e){if(this.structure&&(Ns(e,this.from,this.gapFrom)||Ns(e,this.gapTo,this.to)))return G.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return G.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?G.fromReplace(e,this.from,this.to,r):G.fail("Content does not fit in gap")}getMap(){return new xe([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new ee(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),s=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||s>r.pos?null:new ee(n.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ee(n.from,n.to,n.gapFrom,n.gapTo,M.fromJSON(e,n.slice),n.insert,!!n.structure)}}fe.jsonID("replaceAround",ee);function Ns(t,e,n){let r=t.resolve(e),i=n-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Fh(t,e,n,r){let i=[],s=[],o,l;t.doc.nodesBetween(e,n,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+a.nodeSize,n),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(o&&o.to==f&&o.mark.eq(d[g])?o.to=h:i.push(o=new De(f,h,d[g])));l&&l.to==f?l.to=h:s.push(l=new mt(f,h,r))}}),i.forEach(a=>t.step(a)),s.forEach(a=>t.step(a))}function Hh(t,e,n,r){let i=[],s=0;t.doc.nodesBetween(e,n,(o,l)=>{if(!o.isInline)return;s++;let a=null;if(r instanceof Ri){let c=o.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let c=Math.min(l+o.nodeSize,n);for(let u=0;u<a.length;u++){let d=a[u],f;for(let h=0;h<i.length;h++){let p=i[h];p.step==s-1&&d.eq(i[h].style)&&(f=p)}f?(f.to=c,f.step=s):i.push({style:d,from:Math.max(l,e),to:c,step:s})}}}),i.forEach(o=>t.step(new De(o.from,o.to,o.style)))}function po(t,e,n,r=n.contentMatch,i=!0){let s=t.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a<s.childCount;a++){let c=s.child(a),u=l+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new q(l,u,M.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||t.step(new De(l,u,c.marks[f]));if(i&&c.isText&&n.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new M(k.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),o.push(new q(l+f.index,l+f.index+f[0].length,p))}}l=u}if(!r.validEnd){let a=r.fillBefore(k.empty,!0);t.replace(l,l,new M(a,0,0))}for(let a=o.length-1;a>=0;a--)t.step(o[a])}function Vh(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Mn(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,s=0;;--r){let o=t.$from.node(r),l=t.$from.index(r)+i,a=t.$to.indexAfter(r)-s;if(r<t.depth&&o.canReplace(l,a,n))return r;if(r==0||o.type.spec.isolating||!Vh(o,l,a))break;l&&(i=1),a<o.childCount&&(s=1)}return null}function jh(t,e,n){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),l=i.after(s+1),a=o,c=l,u=k.empty,d=0;for(let p=s,g=!1;p>n;p--)g||r.index(p)>0?(g=!0,u=k.from(r.node(p).copy(u)),d++):a--;let f=k.empty,h=0;for(let p=s,g=!1;p>n;p--)g||i.after(p+1)<i.end(p)?(g=!0,f=k.from(i.node(p).copy(f)),h++):c++;t.step(new ee(a,c,o,l,new M(u.append(f),d,h),u.size-d,!0))}function mo(t,e,n=null,r=t){let i=Wh(t,e),s=i&&Kh(r,e);return s?i.map(Tl).concat({type:e,attrs:n}).concat(s.map(Tl)):null}function Tl(t){return{type:t,attrs:null}}function Wh(t,e){let{parent:n,startIndex:r,endIndex:i}=t,s=n.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return n.canReplaceWith(r,i,o)?s:null}function Kh(t,e){let{parent:n,startIndex:r,endIndex:i}=t,s=n.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let a=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;a&&c<i;c++)a=a.matchType(n.child(c).type);return!a||!a.validEnd?null:o}function Uh(t,e,n){let r=k.empty;for(let o=n.length-1;o>=0;o--){if(r.size){let l=n[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=k.from(n[o].type.create(n[o].attrs,r))}let i=e.start,s=e.end;t.step(new ee(i,s,i,s,new M(r,0,0),n.length,!0))}function _h(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(o,l)=>{let a=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,a)&&qh(t.doc,t.mapping.slice(s).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&Bc(t,o,l,s),po(t,t.mapping.slice(s).map(l,1),r,void 0,c===null);let u=t.mapping.slice(s),d=u.map(l,1),f=u.map(l+o.nodeSize,1);return t.step(new ee(d,f,d+1,f-1,new M(k.from(r.create(a,null,o.marks)),0,0),1,!0)),c===!0&&zc(t,o,l,s),!1}})}function zc(t,e,n,r){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let a=t.mapping.slice(r).map(n+1+s+o.index);t.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Bc(t,e,n,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+s);t.replaceWith(o,o+1,e.type.schema.text(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as he,r as de,d as ms,a0 as kt,b as Ve,j as t,B as ge,t as dt,l as Ue,a6 as us,K as bt,m as Bt,T as Qs,eM as Fs,h as Xs,u as Ys,n as vt,E as Ws,q as ts,z as Zs,W as el}from"./index-
|
|
1
|
+
import{c as he,r as de,d as ms,a0 as kt,b as Ve,j as t,B as ge,t as dt,l as Ue,a6 as us,K as bt,m as Bt,T as Qs,eM as Fs,h as Xs,u as Ys,n as vt,E as Ws,q as ts,z as Zs,W as el}from"./index-B9KXIX84.js";import{S as tl}from"./search-input-MsiE4xnC.js";import{E as es}from"./empty-state-Atjx1U2W.js";import{R as sl}from"./require-capability-B5vhBt9u.js";import{f as Ss}from"./pair-B2IVuWLB.js";import{u as is}from"./use-connection-DNwnGnCC.js";import{g as Os}from"./connection-slug-CITJ0kGN.js";import{B as Et}from"./badge-CFEM0raL.js";import{P as Jt,a as Gt,b as Qt}from"./popover-Wvqr_2yR.js";import{c as Ot,T as $t,a as zt,b as ll}from"./tooltip-C3KYJcjJ.js";import{i as ss}from"./Check-D3UEH1bb.js";import{a as Yt}from"./Copy01-1VyfDicU.js";import{n as Is}from"./Download01-CRbdo8yP.js";import{o as fs,bm as rl,Q as ol,ae as il,aj as At,x as nl}from"./agent-icon-CUHwvCug.js";import{i as al}from"./Key01-HEuAw7Uw.js";import{i as cl}from"./Sun-CPPd8cP7.js";import{M as Ts}from"./monaco-editor-sTKHVHs7.js";import{a as dl}from"./use-members-BBMuBGx7.js";import{u as ml}from"./use-mcp-client-DgXYHdq4.js";import{b as ul}from"./use-virtual-mcp-CijpHWeY.js";import{c as fl}from"./XClose-Drgfi-MO.js";import{s as xl}from"./Plus-Y-KvMcUC.js";import{s as pl}from"./Trash01-C6BZglNY.js";import{I as Ht}from"./input-ALPFLjGK.js";import{M as qt}from"./multi-select-bTG-_3iX.js";import{b as wt,a as yt,c as Ee,d as St,S as It}from"./select-BmpMhuXU.js";import{S as gl}from"./scroll-area-DiE2RXUS.js";import{t as Zt,n as ns}from"./ChevronUp-DkDOUc-8.js";import{C as hl}from"./calendar-BDrJCpVb.js";import{T as vl}from"./textarea-BGjs-_ya.js";import{C as $s}from"./collection-tabs-BN1xWU9h.js";import{S as jl}from"./switch-CGGsZGg2.js";import{L as Nl}from"./label-CeYXCWIS.js";import{I as Tt}from"./integration-icon-BDlRT6Oh.js";import{A as xs}from"./avatar-D0sKo5Ko.js";import{a as bl,b as wl,A as yl}from"./alert-tPvl5V7J.js";import{K as ht}from"./monitoring-stats-row-CFvcs0FY.js";import{b as zs}from"./use-entitlements-B9tTc-Ev.js";import{g as Sl,b as ks,f as Nt,c as ls,a as ps,d as Il,e as Cs,h as Tl,i as gs,T as kl,j as Cl,r as Ml,k as Dl}from"./thread-sheet-body-C_nRrD8j.js";import{u as _l}from"./useSuspenseInfiniteQuery-D4wrf6ZX.js";import{c as Ll,S as Rl,b as Es,a as As}from"./sheet-B0Sr1nwg.js";import{c as Ae,b as Ut,d as hs,e as vs,T as je,a as js}from"./table-p5K_r58-.js";import{u as Us,A as Pl}from"./automation-runs-BMsBLMsg.js";import{u as Vs}from"./use-infinite-scroll-DTMvlJNU.js";import{u as Fl}from"./useInfiniteQuery-yhr2eVB6.js";import{g as Ol}from"./task-status-BfecW6Jc.js";import{u as $l,d as zl}from"./use-automations-DhqE5Iln.js";import"./SearchMd-CzE1IXtk.js";import"./access-gate-DrC617P9.js";import"./capability-load-error-CkdeSGfJ.js";import"./Stars01-BvtQBnED.js";import"./ArrowRight-DGQoBfX2.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-Ozwn48y1.js";import"./use-copy-BaRXHXi4.js";import"./usage-stats-BWbFQ6nI.js";import"./markdown-BHnqyTep.js";import"./dialog-O_WsqGxK.js";import"./X-rZfX9y0d.js";import"./ZoomOut-CmJNnQZa.js";import"./org-file-open-context-DNQMuR7f.js";import"./use-mobile-BYkN2CBV.js";import"./use-panel-navigate-Wiv5HcS5.js";import"./thread-route-C_KFFLE6.js";import"./use-project-scope-bzqn-AFR.js";import"./github-repo-BknN0SVI.js";import"./chat-context-DfIPg4kF.js";import"./autosend-BNuK0erf.js";import"./thread-intent-BHNHSQWV.js";import"./slugify-CEUa2lfQ.js";import"./hooks-D5xL0VD-.js";import"./backoff-8mStPHYB.js";import"./task-board-mTs0BkYi.js";import"./schema-CdJJOHN7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-CBInTetj.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BBmla5vN.js";import"./use-organization-settings-C_ZfDEow.js";import"./shell-layout-BA4WahT2.js";import"./Globe04-Cfnfjo6J.js";import"./SearchLg-CL6esTtw.js";import"./download-app-dialog-DJrde0mx.js";import"./CheckCircle-BmoxvNcp.js";import"./Monitor01-BLWTHtTp.js";import"./Zap-DcWY_A2w.js";import"./Share07-DwVANqGN.js";import"./Tool01-CeJWUTx4.js";import"./command-Das6UcyK.js";import"./index-BMguGW4R.js";import"./project-icon-BFHg-quI.js";import"./required-auth-layout-CyCpjrfs.js";import"./use-org-sso-Dbq_Rnc1.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CN7HJqgc.js";import"./types-CsEtlQqb.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-pQEk_YWf.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./AlertCircle-BXd3wmhE.js";import"./Eye-DnZDEgOn.js";import"./Image01-ZQL1hr5Q.js";import"./LinkExternal01-BekDuv1R.js";import"./Palette-BagjpLZN.js";import"./use-navigate-to-agent-fAaFURKA.js";import"./Link01-CZiQuc44.js";import"./use-mcp-prompts-BXGa38c2.js";import"./index-3wu9QSuh.js";import"./form-Db0Tj8hF.js";import"./use-thread-outputs-BBHbLuqJ.js";import"./file-type-icon-D6rUMGA4.js";import"./index-CcCENa4K.js";import"./ArrowUp-BAzKSoqz.js";import"./ArrowLeft-CtG_Sz3T.js";import"./XCircle-fYjVO-4e.js";import"./UserSquare-D9izLEMu.js";import"./CreditCard01-CrYxi8Yw.js";import"./DotsVertical-BVvaV8Wy.js";import"./LayoutLeft-Di6ed8JP.js";import"./Package-tH33TvgC.js";import"./Upload01-DBDdtdRw.js";import"./User01-DhER-7M5.js";import"./Users01-CGh_okmA.js";import"./editor-bajIdLtD.js";import"./use-org-auth-client-gMmPeQrf.js";import"./auth-6ek5T3GB.js";import"./checkbox-Dr1iEjvP.js";import"./chart-r_c7F5B8.js";import"./index-Cqfo3dLZ.js";import"./CartesianChart-BHBzHrfv.js";import"./AreaChart-BurPFOEM.js";import"./ErrorBarContext-Cq12nkBo.js";import"./Sector-7uDV3O2e.js";import"./infiniteQueryObserver-DrVVQrbK.js";const as={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},El=["eq","contains","exists","in"];function Al(s){return El.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),o=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${o}`}).join(",")}function Ul(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,o,...c]=e.split(":"),i=l?decodeURIComponent(l):"";if(i.trim())return{key:i,operator:o&&Al(o)?o:"eq",value:decodeURIComponent(c.join(":")||"")}}).filter(e=>e!==void 0)}function Wt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Ms(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...o]=e.split("=");return{key:l||"",operator:"eq",value:o.join("=")}}if(e.includes("~")){const[l,...o]=e.split("~");return{key:l||"",operator:"contains",value:o.join("~")}}if(e.includes("@")){const[l,...o]=e.split("@");return{key:l||"",operator:"in",value:o.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Vl(s){const e={},l={},o=[],c={};for(const i of s)if(i.key.trim())switch(i.operator){case"eq":i.value&&(e[i.key]=i.value);break;case"contains":i.value&&(l[i.key]=`%${i.value}%`);break;case"exists":o.push(i.key);break;case"in":i.value&&(c[i.key]=i.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:o.length>0?o:void 0,propertyInValues:Object.keys(c).length>0?c:void 0}}function Ds(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const o=l.length;return o<=as.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:o}:{content:l.slice(0,as.maxJsonRenderSize)+`
|
|
4
4
|
|