decocms 2.186.6 → 2.186.8
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-CMykqSBg.js → AlertCircle-BD5gSXQu.js} +1 -1
- package/dist/client/assets/{ArrowLeft-uGR-9mNu.js → ArrowLeft-DN3D0Zrv.js} +1 -1
- package/dist/client/assets/{ArrowUp-nzMjud7y.js → ArrowUp-D6ltkV3R.js} +1 -1
- package/dist/client/assets/{Check-xiDQ8BtU.js → Check-Dczm9Dfw.js} +1 -1
- package/dist/client/assets/{ChevronDown-Br-9w7at.js → ChevronDown-CDxBhn_l.js} +1 -1
- package/dist/client/assets/{ChevronRight-9oNUepCi.js → ChevronRight-Dxvchjxo.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cn8mueH6.js → ChevronUp-BLNd6dNq.js} +1 -1
- package/dist/client/assets/{Container-2jV0v6El.js → Container-CMPDG7Cp.js} +1 -1
- package/dist/client/assets/{Dataflow03-DxoSS6Mb.js → Dataflow03-slF1Ax9G.js} +1 -1
- package/dist/client/assets/{FolderClosed-rSkxBpcc.js → FolderClosed-BKB_NgWm.js} +1 -1
- package/dist/client/assets/{Loading01-BcvCGReP.js → Loading01-BVCg1O_G.js} +1 -1
- package/dist/client/assets/{Play-CfPk1Jil.js → Play-Bb4cvvVL.js} +1 -1
- package/dist/client/assets/{Plus-_0WPT4fC.js → Plus-DcVtqCMV.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-7vLfxx-h.js → RefreshCcw01-Co0-i94o.js} +1 -1
- package/dist/client/assets/{SearchMd-Drvt0RJI.js → SearchMd-CVvF1HpM.js} +1 -1
- package/dist/client/assets/{Settings01-BWfYiv65.js → Settings01-DpZ_tsoX.js} +1 -1
- package/dist/client/assets/{Trash01-1xYo27RH.js → Trash01-CBP9WLeP.js} +1 -1
- package/dist/client/assets/{Type01-BYtXAD5n.js → Type01-CySkENi6.js} +1 -1
- package/dist/client/assets/{Upload01-B0BJCQ_e.js → Upload01-BzGPegBj.js} +1 -1
- package/dist/client/assets/{User01-BeQd85RG.js → User01-CItwHvE1.js} +1 -1
- package/dist/client/assets/{X-COxH8ezg.js → X-Dr-hR03I.js} +1 -1
- package/dist/client/assets/{XCircle-DF_H_9sl.js → XCircle-Z-JTmQ8v.js} +1 -1
- package/dist/client/assets/{XClose-DN7ytwf7.js → XClose-BLvk3pvY.js} +1 -1
- package/dist/client/assets/{Zap-EKbyzC1z.js → Zap-CiHJmamA.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-BJR4An4x.js → agent-connections-preview-BQSZMPrI.js} +1 -1
- package/dist/client/assets/{agent-detail-S7Xnyf74.js → agent-detail-eyC4qU2J.js} +1 -1
- package/dist/client/assets/{agents-DGMB2xM-.js → agents-DrhC84qH.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-AsQMrQkI.js → ai-providers-logos-idzpcoUr.js} +1 -1
- package/dist/client/assets/{alert-dialog-CahR3t2-.js → alert-dialog-Bke1xnyn.js} +1 -1
- package/dist/client/assets/{auth-catchall-CuUUPNMf.js → auth-catchall-omtOF0fb.js} +1 -1
- package/dist/client/assets/{automation-detail-D21R_NZo.js → automation-detail-Bc9ASowB.js} +1 -1
- package/dist/client/assets/{automations-BDE5mXwW.js → automations-Bp3tAuBH.js} +1 -1
- package/dist/client/assets/{avatar-CUJtyPo2.js → avatar-BZ4Frci2.js} +1 -1
- package/dist/client/assets/{badge-CED9DV1z.js → badge-DGQ0gFlp.js} +1 -1
- package/dist/client/assets/{breadcrumb-CCQEGtsd.js → breadcrumb-BBMvtdg-.js} +1 -1
- package/dist/client/assets/{card-CPxXaS9B.js → card-CKN-JP9M.js} +1 -1
- package/dist/client/assets/{checkbox-BkHtMStR.js → checkbox-Dzy6oaRF.js} +1 -1
- package/dist/client/assets/{collapsible-B030Rvpo.js → collapsible-D84K6rP8.js} +1 -1
- package/dist/client/assets/{collection-detail-6j0HNb-_.js → collection-detail-w8yO-_Ye.js} +1 -1
- package/dist/client/assets/{collection-display-button--wDfVH13.js → collection-display-button-ZvHBt_eA.js} +1 -1
- package/dist/client/assets/{collection-search-DpxIEj2Y.js → collection-search-fzGK39qM.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-fDncVs5S.js → collection-table-wrapper-DsHGysPH.js} +1 -1
- package/dist/client/assets/{collection-tabs-CqPectm8.js → collection-tabs-vUhndfXI.js} +1 -1
- package/dist/client/assets/{collections-D4sy0Xs0.js → collections-BsFnKFn5.js} +1 -1
- package/dist/client/assets/{command-BeBA7wJA.js → command-BnzawGxz.js} +1 -1
- package/dist/client/assets/{connection-card-Bji8m80q.js → connection-card-D7msIZJv.js} +1 -1
- package/dist/client/assets/{connection-detail-CGya4X8s.js → connection-detail-D84CXhKZ.js} +1 -1
- package/dist/client/assets/{connections-CzVW7p9D.js → connections-CbWHLS_c.js} +1 -1
- package/dist/client/assets/constants-BqeudQjB.js +1 -0
- package/dist/client/assets/{constants-C2mKle9u.js → constants-TLV7MTwP.js} +1 -1
- package/dist/client/assets/{context-BiAMhAiB.js → context-BSzlpoxW.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-MUEiKqL8.js → create-organization-dialog-OZCitfn2.js} +1 -1
- package/dist/client/assets/{create-project-dialog-B8VM2kbV.js → create-project-dialog-RIITFpVV.js} +1 -1
- package/dist/client/assets/{danger-CCuvZ302.js → danger-DuoByYJO.js} +1 -1
- package/dist/client/assets/{danger-zone-R1YnFMha.js → danger-zone-CEP2ON89.js} +1 -1
- package/dist/client/assets/{dependencies-usSRHhHV.js → dependencies-LZwXzbBO.js} +1 -1
- package/dist/client/assets/{dialog-DkflQEEK.js → dialog-DCrLu7TC.js} +1 -1
- package/dist/client/assets/{drawer-CWTdsYcu.js → drawer-CwKj53Jm.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CPUZgeQt.js → dropdown-menu-BK29e1o0.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-COn0BiTQ.js → dynamic-plugin-layout-C5CHlaVD.js} +1 -1
- package/dist/client/assets/{editable-task-title-CXF21pnu.js → editable-task-title-HEFeF21g.js} +1 -1
- package/dist/client/assets/{empty-state-mZytJ7Og.js → empty-state-B8NhLY9v.js} +1 -1
- package/dist/client/assets/{empty-state-DLNIkqnc.js → empty-state-D4ck9NGY.js} +1 -1
- package/dist/client/assets/{env-vars-editor-74-7rifU.js → env-vars-editor-CvqhjBEu.js} +1 -1
- package/dist/client/assets/{extract-connection-data-0iT2_wST.js → extract-connection-data-NSojo21r.js} +1 -1
- package/dist/client/assets/{form-DTthvfe9.js → form-DPsme8JL.js} +1 -1
- package/dist/client/assets/{general-g1xkIict.js → general-CPYyC5Rn.js} +1 -1
- package/dist/client/assets/{home-29e6ki_m.js → home-Cg6y-M7X.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-1gjK7_AP.js → import-from-deco-dialog-CBUqBAZP.js} +1 -1
- package/dist/client/assets/{index--5l6Kd5l.js → index-2hR_U2H-.js} +1 -1
- package/dist/client/assets/{index-DcP_WR0J.js → index-3WTtRDrt.js} +1 -1
- package/dist/client/assets/{index-DIiriVeM.js → index-BZyxukAe.js} +1 -1
- package/dist/client/assets/{index-Cb6NnGWb.js → index-Bgix03M4.js} +1 -1
- package/dist/client/assets/{index-DTnP3oIT.js → index-BkAoKVx8.js} +1 -1
- package/dist/client/assets/{index-CuI-2Tt-.js → index-CoIN7QlF.js} +1 -1
- package/dist/client/assets/{index-B_aEJlRD.js → index-CtkIjbbq.js} +1 -1
- package/dist/client/assets/{index-DIir8pgm.js → index-D49VqQ7Q.js} +2 -2
- package/dist/client/assets/{index-DoQQIBf1.js → index-D_CXrtwd.js} +1 -1
- package/dist/client/assets/{index-ZixwJ1Pk.js → index-Dg9iIj2F.js} +1 -1
- package/dist/client/assets/{index-Dz9R7lP6.js → index-DxaXuxCe.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D_1D5AYq.js → infiniteQueryObserver-DiY9IZXI.js} +1 -1
- package/dist/client/assets/{input-BVAvDQ_C.js → input-BoNWsfmK.js} +1 -1
- package/dist/client/assets/{integration-icon-B_0G_X87.js → integration-icon-ByIZ-Vgj.js} +1 -1
- package/dist/client/assets/{label-C6omQTs_.js → label-DF2jcg2U.js} +1 -1
- package/dist/client/assets/{layout-AYXb28rc.js → layout-CgN1mZAZ.js} +1 -1
- package/dist/client/assets/{layout-D4tWA0bw.js → layout-Dp8uiQPy.js} +1 -1
- package/dist/client/assets/{login-Cx7hoJoT.js → login-EJWlcxg3.js} +1 -1
- package/dist/client/assets/{logo-upload-FTAEWKjw.js → logo-upload-D5UEFEut.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DDZtzzcL.js → mcp-app-renderer-C8wEMNqP.js} +1 -1
- package/dist/client/assets/{mcp-server-card-C8wXu9yO.js → mcp-server-card-xRGKpDYM.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BVknczom.js → mcp-server-detail-Dfcu5k0K.js} +2 -2
- package/dist/client/assets/{members-CczX95O-.js → members-b1hYnwix.js} +1 -1
- package/dist/client/assets/{monaco-editor-BF2WLfQD.js → monaco-editor-D1C0-UAW.js} +1 -1
- package/dist/client/assets/{monitoring-9XsThidn.js → monitoring-DmCgdBgZ.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-6dYajQ_1.js → monitoring-dashboard-edit-DL4fVGYY.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-C154UPGx.js → monitoring-dashboard-view-BfDYcRJx.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C6qBbHow.js → monitoring-stats-row-Bzy3PCZQ.js} +1 -1
- package/dist/client/assets/{oauth-callback-3Syoq1nk.js → oauth-callback-N1SniIFs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-udnTMnIE.js → oauth-callback-ai-provider-BZ8yDxr9.js} +1 -1
- package/dist/client/assets/{org-ai-providers-BZX8CBbC.js → org-ai-providers-DFHn6TCP.js} +1 -1
- package/dist/client/assets/{page-B8I6CLK9.js → page-B721jXQm.js} +1 -1
- package/dist/client/assets/{page-DG6axqmW.js → page-BgKYb-6_.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Bt8UXvj0.js → plugin-empty-state-BIg-myPi.js} +1 -1
- package/dist/client/assets/{plugin-header-DT9lR12I.js → plugin-header-CBfXQAQ5.js} +1 -1
- package/dist/client/assets/plugins-D7XVdEz7.js +1 -0
- package/dist/client/assets/{popover-BMBGvHQ_.js → popover-CvIauBBG.js} +1 -1
- package/dist/client/assets/{project-app-view-fuhRg8H7.js → project-app-view-Wq81-D6Q.js} +1 -1
- package/dist/client/assets/{project-layout-DWnRAr4s.js → project-layout-ByRNQhjx.js} +1 -1
- package/dist/client/assets/{project-plugins-CRqpdPvu.js → project-plugins-8LQo3YBE.js} +1 -1
- package/dist/client/assets/{projects-list-Dl8bD1xL.js → projects-list-CfdMQhGh.js} +1 -1
- package/dist/client/assets/{registry-layout-CdBoBkB6.js → registry-layout-BfWTztsz.js} +1 -1
- package/dist/client/assets/{registry-utils-pfpET92F.js → registry-utils-Cz03qmOa.js} +1 -1
- package/dist/client/assets/{reset-password-BL4AtRcT.js → reset-password-Cj1A6uL-.js} +1 -1
- package/dist/client/assets/{resizable-CcW4J8VD.js → resizable-BceA9DHD.js} +1 -1
- package/dist/client/assets/{save-actions-3dOJ5Mjm.js → save-actions-BENpgKCD.js} +1 -1
- package/dist/client/assets/{scroll-area-Bqfa6wPc.js → scroll-area-4KH7xRn7.js} +1 -1
- package/dist/client/assets/{select-CBE7xbF4.js → select-DaOZXaTi.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-Bco91LS8.js → select-virtual-mcp-CjfXEnho.js} +1 -1
- package/dist/client/assets/{shell-layout-BVpZ2wZ-.js → shell-layout-85fLFVwf.js} +2 -2
- package/dist/client/assets/{sidebar-settings-BpXHJmnQ.js → sidebar-settings-CvK0z-ir.js} +1 -1
- package/dist/client/assets/{skeleton-CQd2QEI9.js → skeleton-CLUePAN0.js} +1 -1
- package/dist/client/assets/{spinner-DCPsu4ZG.js → spinner-7bhznOFa.js} +1 -1
- package/dist/client/assets/{store-invite-D4qgWC83.js → store-invite-fWGyKl7o.js} +1 -1
- package/dist/client/assets/{switch-CDhXZx5x.js → switch-yIP7Yj81.js} +1 -1
- package/dist/client/assets/{table-CGhKFeKb.js → table-w828HACk.js} +1 -1
- package/dist/client/assets/{tabs-BMh4okm_.js → tabs-Du7uGFqP.js} +1 -1
- package/dist/client/assets/{task-status-2ts0kYwT.js → task-status-RaaIa42V.js} +1 -1
- package/dist/client/assets/{tasks-panel-0RmxrVW1.js → tasks-panel-CT_8gQvL.js} +1 -1
- package/dist/client/assets/tasks-x-XNinod.js +1 -0
- package/dist/client/assets/{textarea-CdQzy4Ij.js → textarea-D30IrLHN.js} +1 -1
- package/dist/client/assets/{time-range-picker-obtb96_y.js → time-range-picker-DVyznax9.js} +1 -1
- package/dist/client/assets/{toggle-group-BvQ8i1-N.js → toggle-group-DN_3BuPh.js} +1 -1
- package/dist/client/assets/{tools-list-SV45eRcg.js → tools-list-BQiqsKN2.js} +1 -1
- package/dist/client/assets/{tooltip-iG9fvlrZ.js → tooltip-DJkxXViN.js} +1 -1
- package/dist/client/assets/{types-BJ15oicG.js → types-llndI7Ky.js} +1 -1
- package/dist/client/assets/{use-automations-DDYigIn8.js → use-automations-DhJnP2CA.js} +1 -1
- package/dist/client/assets/{use-collections-CeVeE6L5.js → use-collections-Dmxer7H8.js} +1 -1
- package/dist/client/assets/{use-connection-B3ekSVUc.js → use-connection-Yjy9d1tW.js} +1 -1
- package/dist/client/assets/{use-copy-DFqHt08d.js → use-copy-DYNuGKRz.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-J-6A5Uhg.js → use-create-virtual-mcp-CEBO__7d.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DbO9lGzn.js → use-infinite-scroll-JQzncaIM.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-BKwLRanW.js → use-install-from-registry-Du1Xu864.js} +1 -1
- package/dist/client/assets/{use-list-state-BSx7RPGJ.js → use-list-state-BG8gUSh9.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-ClavsAnj.js → use-mcp-prompts-DY_yf0WC.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-BuE1rP0c.js → use-mcp-resources-BnmpykKD.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-JDKA9UZ8.js → use-mcp-tools-CmOfbC2t.js} +1 -1
- package/dist/client/assets/{use-members-DNGgajFa.js → use-members-BZM-R1qG.js} +1 -1
- package/dist/client/assets/{use-project-DvVOFuu-.js → use-project-W-5l7vWa.js} +1 -1
- package/dist/client/assets/{use-store-discovery-dPavPbA-.js → use-store-discovery-DfcEdPeQ.js} +1 -1
- package/dist/client/assets/{use-view-mode-BijqAGDe.js → use-view-mode-BGEJ9JzM.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DXFVfjMZ.js → use-virtual-mcp-2qhGJdPe.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D8TjRj27.js +1 -0
- package/dist/client/assets/{useMutation-DPjXSTSD.js → useMutation-BTUmJffP.js} +1 -1
- package/dist/client/assets/useQuery-CvkH2gG1.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DRfcYfXZ.js +1 -0
- package/dist/client/assets/{user-BAgoGcDp.js → user-DXILGeu2.js} +1 -1
- package/dist/client/assets/{workflow-DCKJ21al.js → workflow-CBGVBFDu.js} +1 -1
- package/dist/client/assets/{workflow-CrjjFLE3.js → workflow-ClE3y6g8.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +341 -340
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/mimic-fn/license +9 -0
- package/dist/server/node_modules/{onetime → mimic-fn}/package.json +15 -16
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/{pg/LICENSE → postgres-array/license} +6 -6
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/server.js +269 -269
- package/package.json +1 -1
- package/dist/client/assets/constants-CUwoz2Qc.js +0 -1
- package/dist/client/assets/plugins-S0nxg7Xk.js +0 -1
- package/dist/client/assets/tasks-DR3nWr8j.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DfmHdhse.js +0 -1
- package/dist/client/assets/useQuery-BJg_09kQ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-xbYvMmn4.js +0 -1
- package/dist/server/node_modules/onetime/index.d.ts +0 -64
- package/dist/server/node_modules/onetime/index.js +0 -44
- package/dist/server/node_modules/onetime/readme.md +0 -94
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- /package/dist/server/node_modules/{onetime → ansi-styles}/license +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as q,cO as Tl,cP as du,j as Me,aS as fu,bO as xt,cQ as hu}from"./index-DIir8pgm.js";function se(n){this.content=n}se.prototype={constructor:se,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,s=r.find(n),i=r.content.slice();return s==-1?i.push(t||n,e):(i[s+1]=e,t&&(i[s]=t)),new se(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new se(t)},addToStart:function(n,e){return new se([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new se(t)},addBefore:function(n,e,t){var r=this.remove(e),s=r.content.slice(),i=r.find(n);return s.splice(i==-1?s.length:i,0,e,t),new se(s)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=se.from(n),n.size?new se(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=se.from(n),n.size?new se(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=se.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};se.from=function(n){if(n instanceof se)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new se(e)};function Al(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let s=n.child(r),i=e.child(r);if(s==i){t+=s.nodeSize;continue}if(!s.sameMarkup(i))return t;if(s.isText&&s.text!=i.text){for(let o=0;s.text[o]==i.text[o];o++)t++;return t}if(s.content.size||i.content.size){let o=Al(s.content,i.content,t+1);if(o!=null)return o}t+=s.nodeSize}}function Nl(n,e,t,r){for(let s=n.childCount,i=e.childCount;;){if(s==0||i==0)return s==i?null:{a:t,b:r};let o=n.child(--s),l=e.child(--i),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let c=0,u=Math.min(o.text.length,l.text.length);for(;c<u&&o.text[o.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let c=Nl(o.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class k{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,s=0,i){for(let o=0,l=0;l<t;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,s+l,i||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,s+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,s){let i="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?s?typeof s=="function"?s(l):s:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,s=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(s[s.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)s.push(e.content[i]);return new k(s,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],s=0;if(t>e)for(let i=0,o=0;o<t;i++){let l=this.content[i],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),s+=l.nodeSize),o=a}return new k(r,s)}cutByIndex(e,t){return e==t?k.empty:e==0&&t==this.content.length?this:new k(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let s=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return s[e]=t,new k(s,i)}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 t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))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 t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let s=this.content[t];e(s,r,t),r+=s.nodeSize}}findDiffStart(e,t=0){return Al(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Nl(this,e,t,r)}findIndex(e){if(e==0)return Pn(0,e);if(e==this.size)return Pn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let s=this.child(t),i=r+s.nodeSize;if(i>=e)return i==e?Pn(t+1,i):Pn(t,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return k.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new k(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let t,r=0;for(let s=0;s<e.length;s++){let i=e[s];r+=i.nodeSize,s&&i.isText&&e[s-1].sameMarkup(i)?(t||(t=e.slice(0,s)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new k(t||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 ts={index:0,offset:0};function Pn(n,e){return ts.index=n,ts.offset=e,ts}function Xn(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Xn(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Xn(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let $=class Ns{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let s=0;s<e.length;s++){let i=e[s];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,s));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,s)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Xn(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let s=r.create(t.attrs);return r.checkAttrs(s.attrs),s}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ns.none;if(e instanceof Ns)return[e];let t=e.slice();return t.sort((r,s)=>r.type.rank-s.type.rank),t}};$.none=[];class Qn extends Error{}class M{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Dl(this.content,e+this.openStart,t);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,t){return new M(Ol(this.content,e+this.openStart,t+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,t){if(!t)return M.empty;let r=t.openStart||0,s=t.openEnd||0;if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(k.fromJSON(e,t.content),r,s)}static maxOpen(e,t=!0){let r=0,s=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)s++;return new M(e,r,s)}}M.empty=new M(k.empty,0,0);function Ol(n,e,t){let{index:r,offset:s}=n.findIndex(e),i=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(s==e||i.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(Ol(i.content,e-s-1,t-s-1)))}function Dl(n,e,t,r){let{index:s,offset:i}=n.findIndex(e),o=n.maybeChild(s);if(i==e||o.isText)return r&&!r.canReplace(s,s,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Dl(o.content,e-i-1,t,o);return l&&n.replaceChild(s,o.copy(l))}function pu(n,e,t){if(t.openStart>n.depth)throw new Qn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Qn("Inconsistent open depths");return Il(n,e,t,0)}function Il(n,e,t,r){let s=n.index(r),i=n.node(r);if(s==e.index(r)&&r<n.depth-t.openStart){let o=Il(n,e,t,r+1);return i.copy(i.content.replaceChild(s,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return gt(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=mu(t,n);return gt(i,Pl(n,o,l,e,r))}else return gt(i,Zn(n,e,r))}function Rl(n,e){if(!e.type.compatibleContent(n.type))throw new Qn("Cannot join "+e.type.name+" onto "+n.type.name)}function Os(n,e,t){let r=n.node(t);return Rl(r,e.node(t)),r}function mt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function on(n,e,t,r){let s=(e||n).node(t),i=0,o=e?e.index(t):s.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(mt(n.nodeAfter,r),i++));for(let l=i;l<o;l++)mt(s.child(l),r);e&&e.depth==t&&e.textOffset&&mt(e.nodeBefore,r)}function gt(n,e){return n.type.checkContent(e),n.copy(e)}function Pl(n,e,t,r,s){let i=n.depth>s&&Os(n,e,s+1),o=r.depth>s&&Os(t,r,s+1),l=[];return on(null,n,s,l),i&&o&&e.index(s)==t.index(s)?(Rl(i,o),mt(gt(i,Pl(n,e,t,r,s+1)),l)):(i&&mt(gt(i,Zn(n,e,s+1)),l),on(e,t,s,l),o&&mt(gt(o,Zn(t,r,s+1)),l)),on(r,null,s,l),new k(l)}function Zn(n,e,t){let r=[];if(on(null,n,t,r),n.depth>t){let s=Os(n,e,t+1);mt(gt(s,Zn(n,e,t+1)),r)}return on(e,null,t,r),new k(r)}function mu(n,e){let t=e.depth-n.openStart,s=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)s=e.node(i).copy(k.from(s));return{start:s.resolveNoCache(n.openStart+t),end:s.resolveNoCache(s.content.size-n.openEnd-t)}}class yn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.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,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],s=e.child(t);return r?e.child(t).cut(r):s}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],s=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)s+=r.child(i).nodeSize;return s}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),s=e.maybeChild(t);if(!r){let l=r;r=s,s=l}let i=r.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,s=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!s||!r[i].isInSet(s.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){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)&&(!t||t(this.node(r))))return new er(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 t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],s=0,i=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(i),c=i-a;if(r.push(o,l,s+a),!c||(o=o.child(l),o.isText))break;i=c-1,s+=a+1}return new yn(t,r,i)}static resolveCached(e,t){let r=Ji.get(e);if(r)for(let i=0;i<r.elts.length;i++){let o=r.elts[i];if(o.pos==t)return o}else Ji.set(e,r=new gu);let s=r.elts[r.i]=yn.resolve(e,t);return r.i=(r.i+1)%yu,s}}class gu{constructor(){this.elts=[],this.i=0}}const yu=12,Ji=new WeakMap;class er{constructor(e,t,r){this.$from=e,this.$to=t,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 bu=Object.create(null);class Ne{constructor(e,t,r,s=$.none){this.type=e,this.attrs=t,this.marks=s,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,t,r,s=0){this.content.nodesBetween(e,t,r,s,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,t,r,s){return this.content.textBetween(e,t,r,s)}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,t,r){return this.type==e&&Xn(this.attrs,t||e.defaultAttrs||bu)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new Ne(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ne(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return M.empty;let s=this.resolve(e),i=this.resolve(t),o=r?0:s.sharedDepth(t),l=s.start(o),c=s.node(o).content.cut(s.pos-l,i.pos-l);return new M(c,s.depth-o,i.depth-o)}replace(e,t,r){return pu(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:s}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(s==e||t.isText)return t;e-=s+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let s=this.content.child(t-1);return{node:s,index:t-1,offset:r-s.nodeSize}}resolve(e){return yn.resolveCached(this,e)}resolveNoCache(e){return yn.resolve(this,e)}rangeHasMark(e,t,r){let s=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.marks)&&(s=!0),!s)),s}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()+")"),Ll(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=k.empty,s=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,s,i),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=s;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);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 t=0;t<this.marks.length;t++){let r=this.marks[t];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(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t 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(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let s=k.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,s,r);return i.type.checkAttrs(i.attrs),i}}Ne.prototype.text=void 0;class tr extends Ne{constructor(e,t,r,s){if(super(e,t,null,s),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ll(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new tr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new tr(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ll(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class St{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new ku(e,t);if(r.next==null)return St.empty;let s=Bl(r);r.next&&r.err("Unexpected trailing text");let i=vu(Eu(s));return Tu(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let s=this;for(let i=t;s&&i<r;i++)s=s.matchType(e.child(i).type);return s}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:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let s=[this];function i(o,l){let a=o.matchFragment(e,r);if(a&&(!t||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())&&s.indexOf(d)==-1){s.push(d);let f=i(d,l.concat(u));if(f)return f}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let s=r.shift(),i=s.match;if(i.matchType(e)){let o=[];for(let l=s;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:l,next:a}=i.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!s.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:s}),t[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 t(r){e.push(r);for(let s=0;s<r.next.length;s++)e.indexOf(r.next[s].next)==-1&&t(r.next[s].next)}return t(this),e.map((r,s)=>{let i=s+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)i+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return i}).join(`
|
|
1
|
+
import{r as q,cO as Tl,cP as du,j as Me,aS as fu,bO as xt,cQ as hu}from"./index-D49VqQ7Q.js";function se(n){this.content=n}se.prototype={constructor:se,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,s=r.find(n),i=r.content.slice();return s==-1?i.push(t||n,e):(i[s+1]=e,t&&(i[s]=t)),new se(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new se(t)},addToStart:function(n,e){return new se([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new se(t)},addBefore:function(n,e,t){var r=this.remove(e),s=r.content.slice(),i=r.find(n);return s.splice(i==-1?s.length:i,0,e,t),new se(s)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=se.from(n),n.size?new se(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=se.from(n),n.size?new se(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=se.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};se.from=function(n){if(n instanceof se)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new se(e)};function Al(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let s=n.child(r),i=e.child(r);if(s==i){t+=s.nodeSize;continue}if(!s.sameMarkup(i))return t;if(s.isText&&s.text!=i.text){for(let o=0;s.text[o]==i.text[o];o++)t++;return t}if(s.content.size||i.content.size){let o=Al(s.content,i.content,t+1);if(o!=null)return o}t+=s.nodeSize}}function Nl(n,e,t,r){for(let s=n.childCount,i=e.childCount;;){if(s==0||i==0)return s==i?null:{a:t,b:r};let o=n.child(--s),l=e.child(--i),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let c=0,u=Math.min(o.text.length,l.text.length);for(;c<u&&o.text[o.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let c=Nl(o.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class k{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,s=0,i){for(let o=0,l=0;l<t;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,s+l,i||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,s+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,s){let i="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?s?typeof s=="function"?s(l):s:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,s=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(s[s.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)s.push(e.content[i]);return new k(s,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],s=0;if(t>e)for(let i=0,o=0;o<t;i++){let l=this.content[i],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),s+=l.nodeSize),o=a}return new k(r,s)}cutByIndex(e,t){return e==t?k.empty:e==0&&t==this.content.length?this:new k(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let s=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return s[e]=t,new k(s,i)}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 t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))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 t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let s=this.content[t];e(s,r,t),r+=s.nodeSize}}findDiffStart(e,t=0){return Al(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Nl(this,e,t,r)}findIndex(e){if(e==0)return Pn(0,e);if(e==this.size)return Pn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let s=this.child(t),i=r+s.nodeSize;if(i>=e)return i==e?Pn(t+1,i):Pn(t,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return k.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new k(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let t,r=0;for(let s=0;s<e.length;s++){let i=e[s];r+=i.nodeSize,s&&i.isText&&e[s-1].sameMarkup(i)?(t||(t=e.slice(0,s)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new k(t||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 ts={index:0,offset:0};function Pn(n,e){return ts.index=n,ts.offset=e,ts}function Xn(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Xn(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Xn(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let $=class Ns{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let s=0;s<e.length;s++){let i=e[s];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,s));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,s)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Xn(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let s=r.create(t.attrs);return r.checkAttrs(s.attrs),s}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ns.none;if(e instanceof Ns)return[e];let t=e.slice();return t.sort((r,s)=>r.type.rank-s.type.rank),t}};$.none=[];class Qn extends Error{}class M{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Dl(this.content,e+this.openStart,t);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,t){return new M(Ol(this.content,e+this.openStart,t+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,t){if(!t)return M.empty;let r=t.openStart||0,s=t.openEnd||0;if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(k.fromJSON(e,t.content),r,s)}static maxOpen(e,t=!0){let r=0,s=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)s++;return new M(e,r,s)}}M.empty=new M(k.empty,0,0);function Ol(n,e,t){let{index:r,offset:s}=n.findIndex(e),i=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(s==e||i.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(Ol(i.content,e-s-1,t-s-1)))}function Dl(n,e,t,r){let{index:s,offset:i}=n.findIndex(e),o=n.maybeChild(s);if(i==e||o.isText)return r&&!r.canReplace(s,s,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Dl(o.content,e-i-1,t,o);return l&&n.replaceChild(s,o.copy(l))}function pu(n,e,t){if(t.openStart>n.depth)throw new Qn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Qn("Inconsistent open depths");return Il(n,e,t,0)}function Il(n,e,t,r){let s=n.index(r),i=n.node(r);if(s==e.index(r)&&r<n.depth-t.openStart){let o=Il(n,e,t,r+1);return i.copy(i.content.replaceChild(s,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return gt(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=mu(t,n);return gt(i,Pl(n,o,l,e,r))}else return gt(i,Zn(n,e,r))}function Rl(n,e){if(!e.type.compatibleContent(n.type))throw new Qn("Cannot join "+e.type.name+" onto "+n.type.name)}function Os(n,e,t){let r=n.node(t);return Rl(r,e.node(t)),r}function mt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function on(n,e,t,r){let s=(e||n).node(t),i=0,o=e?e.index(t):s.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(mt(n.nodeAfter,r),i++));for(let l=i;l<o;l++)mt(s.child(l),r);e&&e.depth==t&&e.textOffset&&mt(e.nodeBefore,r)}function gt(n,e){return n.type.checkContent(e),n.copy(e)}function Pl(n,e,t,r,s){let i=n.depth>s&&Os(n,e,s+1),o=r.depth>s&&Os(t,r,s+1),l=[];return on(null,n,s,l),i&&o&&e.index(s)==t.index(s)?(Rl(i,o),mt(gt(i,Pl(n,e,t,r,s+1)),l)):(i&&mt(gt(i,Zn(n,e,s+1)),l),on(e,t,s,l),o&&mt(gt(o,Zn(t,r,s+1)),l)),on(r,null,s,l),new k(l)}function Zn(n,e,t){let r=[];if(on(null,n,t,r),n.depth>t){let s=Os(n,e,t+1);mt(gt(s,Zn(n,e,t+1)),r)}return on(e,null,t,r),new k(r)}function mu(n,e){let t=e.depth-n.openStart,s=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)s=e.node(i).copy(k.from(s));return{start:s.resolveNoCache(n.openStart+t),end:s.resolveNoCache(s.content.size-n.openEnd-t)}}class yn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.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,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],s=e.child(t);return r?e.child(t).cut(r):s}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],s=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)s+=r.child(i).nodeSize;return s}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),s=e.maybeChild(t);if(!r){let l=r;r=s,s=l}let i=r.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,s=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!s||!r[i].isInSet(s.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){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)&&(!t||t(this.node(r))))return new er(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 t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],s=0,i=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(i),c=i-a;if(r.push(o,l,s+a),!c||(o=o.child(l),o.isText))break;i=c-1,s+=a+1}return new yn(t,r,i)}static resolveCached(e,t){let r=Ji.get(e);if(r)for(let i=0;i<r.elts.length;i++){let o=r.elts[i];if(o.pos==t)return o}else Ji.set(e,r=new gu);let s=r.elts[r.i]=yn.resolve(e,t);return r.i=(r.i+1)%yu,s}}class gu{constructor(){this.elts=[],this.i=0}}const yu=12,Ji=new WeakMap;class er{constructor(e,t,r){this.$from=e,this.$to=t,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 bu=Object.create(null);class Ne{constructor(e,t,r,s=$.none){this.type=e,this.attrs=t,this.marks=s,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,t,r,s=0){this.content.nodesBetween(e,t,r,s,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,t,r,s){return this.content.textBetween(e,t,r,s)}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,t,r){return this.type==e&&Xn(this.attrs,t||e.defaultAttrs||bu)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new Ne(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ne(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return M.empty;let s=this.resolve(e),i=this.resolve(t),o=r?0:s.sharedDepth(t),l=s.start(o),c=s.node(o).content.cut(s.pos-l,i.pos-l);return new M(c,s.depth-o,i.depth-o)}replace(e,t,r){return pu(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:s}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(s==e||t.isText)return t;e-=s+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let s=this.content.child(t-1);return{node:s,index:t-1,offset:r-s.nodeSize}}resolve(e){return yn.resolveCached(this,e)}resolveNoCache(e){return yn.resolve(this,e)}rangeHasMark(e,t,r){let s=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.marks)&&(s=!0),!s)),s}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()+")"),Ll(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=k.empty,s=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,s,i),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=s;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);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 t=0;t<this.marks.length;t++){let r=this.marks[t];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(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t 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(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let s=k.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,s,r);return i.type.checkAttrs(i.attrs),i}}Ne.prototype.text=void 0;class tr extends Ne{constructor(e,t,r,s){if(super(e,t,null,s),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ll(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new tr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new tr(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ll(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class St{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new ku(e,t);if(r.next==null)return St.empty;let s=Bl(r);r.next&&r.err("Unexpected trailing text");let i=vu(Eu(s));return Tu(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let s=this;for(let i=t;s&&i<r;i++)s=s.matchType(e.child(i).type);return s}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:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let s=[this];function i(o,l){let a=o.matchFragment(e,r);if(a&&(!t||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())&&s.indexOf(d)==-1){s.push(d);let f=i(d,l.concat(u));if(f)return f}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let s=r.shift(),i=s.match;if(i.matchType(e)){let o=[];for(let l=s;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:l,next:a}=i.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!s.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:s}),t[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 t(r){e.push(r);for(let s=0;s<r.next.length;s++)e.indexOf(r.next[s].next)==-1&&t(r.next[s].next)}return t(this),e.map((r,s)=>{let i=s+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)i+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return i}).join(`
|
|
2
2
|
`)}}St.empty=new St(!0);class ku{constructor(e,t){this.string=e,this.nodeTypes=t,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 Bl(n){let e=[];do e.push(xu(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function xu(n){let e=[];do e.push(Su(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Su(n){let e=Mu(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=Cu(n,e);else break;return e}function Gi(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Cu(n,e){let t=Gi(n),r=t;return n.eat(",")&&(n.next!="}"?r=Gi(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function wu(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let s=[];for(let i in t){let o=t[i];o.isInGroup(e)&&s.push(o)}return s.length==0&&n.err("No node type or group '"+e+"' found"),s}function Mu(n){if(n.eat("(")){let e=Bl(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=wu(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Eu(n){let e=[[]];return s(i(n,0),t()),e;function t(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function s(o,l){o.forEach(a=>a.to=l)}function i(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=i(o.exprs[a],l);if(a==o.exprs.length-1)return c;s(c,l=t())}else if(o.type=="star"){let a=t();return r(l,a),s(i(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=t();return s(i(o.expr,l),a),s(i(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(i(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c<o.min;c++){let u=t();s(i(o.expr,a),u),a=u}if(o.max==-1)s(i(o.expr,a),a);else for(let c=o.min;c<o.max;c++){let u=t();r(a,u),s(i(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 zl(n,e){return e-n}function Yi(n,e){let t=[];return r(e),t.sort(zl);function r(s){let i=n[s];if(i.length==1&&!i[0].term)return r(i[0].to);t.push(s);for(let o=0;o<i.length;o++){let{term:l,to:a}=i[o];!l&&t.indexOf(a)==-1&&r(a)}}}function vu(n){let e=Object.create(null);return t(Yi(n,0));function t(r){let s=[];r.forEach(o=>{n[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<s.length;u++)s[u][0]==l&&(c=s[u][1]);Yi(n,a).forEach(u=>{c||s.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[r.join(",")]=new St(r.indexOf(n.length-1)>-1);for(let o=0;o<s.length;o++){let l=s[o][1].sort(zl);i.next.push({type:s[o][0],next:e[l.join(",")]||t(l)})}return i}}function Tu(n,e){for(let t=0,r=[n];t<r.length;t++){let s=r[t],i=!s.validEnd,o=[];for(let l=0;l<s.next.length;l++){let{type:a,next:c}=s.next[l];o.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function $l(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function Fl(n,e){let t=Object.create(null);for(let r in n){let s=e&&e[r];if(s===void 0){let i=n[r];if(i.hasDefault)s=i.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=s}return t}function Vl(n,e,t,r){for(let s in e)if(!(s in n))throw new RangeError(`Unsupported attribute ${s} for ${t} of type ${s}`);for(let s in n){let i=n[s];i.validate&&i.validate(e[s])}}function _l(n,e){let t=Object.create(null);if(e)for(let r in e)t[r]=new Nu(n,r,e[r]);return t}let Xi=class Hl{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=_l(e,r.attrs),this.defaultAttrs=$l(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==St.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:Fl(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ne(this,this.computeAttrs(e),k.from(t),$.setFrom(r))}createChecked(e=null,t,r){return t=k.from(t),this.checkContent(t),new Ne(this,this.computeAttrs(e),t,$.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=k.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let s=this.contentMatch.matchFragment(t),i=s&&s.fillBefore(k.empty,!0);return i?new Ne(this,e,t.append(i),$.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.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){Vl(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 t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:$.none:e}static compile(e,t){let r=Object.create(null);e.forEach((i,o)=>r[i]=new Hl(i,t,o));let s=t.spec.topNode||"doc";if(!r[s])throw new RangeError("Schema is missing its top node type ('"+s+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Au(n,e,t){let r=t.split("|");return s=>{let i=s===null?"null":typeof s;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${i}`)}}class Nu{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Au(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Fr{constructor(e,t,r,s){this.name=e,this.rank=t,this.schema=r,this.spec=s,this.attrs=_l(e,s.attrs),this.excluded=null;let i=$l(this.attrs);this.instance=i?new $(this,i):null}create(e=null){return!e&&this.instance?this.instance:new $(this,Fl(this.attrs,e))}static compile(e,t){let r=Object.create(null),s=0;return e.forEach((i,o)=>r[i]=new Fr(i,s++,t,o)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Vl(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class jl{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let s in e)t[s]=e[s];t.nodes=se.from(e.nodes),t.marks=se.from(e.marks||{}),this.nodes=Xi.compile(this.spec.nodes,this),this.marks=Fr.compile(this.spec.marks,this);let r=Object.create(null);for(let s in this.nodes){if(s in this.marks)throw new RangeError(s+" can not be both a node and a mark");let i=this.nodes[s],o=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=r[o]||(r[o]=St.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?Qi(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let s in this.marks){let i=this.marks[s],o=i.spec.excludes;i.excluded=o==null?[i]:o==""?[]:Qi(this,o.split(" "))}this.nodeFromJSON=s=>Ne.fromJSON(this,s),this.markFromJSON=s=>$.fromJSON(this,s),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,s){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Xi){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(t,r,s)}text(e,t){let r=this.nodes.text;return new tr(r,r.defaultAttrs,e,$.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Qi(n,e){let t=[];for(let r=0;r<e.length;r++){let s=e[r],i=n.marks[s],o=i;if(i)t.push(i);else for(let l in n.marks){let a=n.marks[l];(s=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(s)>-1)&&t.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function Ou(n){return n.tag!=null}function Du(n){return n.style!=null}class et{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(s=>{if(Ou(s))this.tags.push(s);else if(Du(s)){let i=/[^=]*/.exec(s.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(s)}}),this.normalizeLists=!this.tags.some(s=>{if(!/^(ul|ol)\b/.test(s.tag)||!s.node)return!1;let i=e.nodes[s.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let r=new eo(this,t,!1);return r.addAll(e,$.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new eo(this,t,!0);return r.addAll(e,$.none,t.from,t.to),M.maxOpen(r.finish())}matchTag(e,t,r){for(let s=r?this.tags.indexOf(r)+1:0;s<this.tags.length;s++){let i=this.tags[s];if(Pu(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let o=i.getAttrs(e);if(o===!1)continue;i.attrs=o||void 0}return i}}}matchStyle(e,t,r,s){for(let i=s?this.styles.indexOf(s)+1:0;i<this.styles.length;i++){let o=this.styles[i],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)!=t))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let t=[];function r(s){let i=s.priority==null?50:s.priority,o=0;for(;o<t.length;o++){let l=t[o];if((l.priority==null?50:l.priority)<i)break}t.splice(o,0,s)}for(let s in e.marks){let i=e.marks[s].spec.parseDOM;i&&i.forEach(o=>{r(o=to(o)),o.mark||o.ignore||o.clearMark||(o.mark=s)})}for(let s in e.nodes){let i=e.nodes[s].spec.parseDOM;i&&i.forEach(o=>{r(o=to(o)),o.node||o.ignore||o.mark||(o.node=s)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new et(e,et.schemaRules(e)))}}const Wl={address:!0,article:!0,aside:!0,blockquote:!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},Iu={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ql={ol:!0,ul:!0},bn=1,Ds=2,ln=4;function Zi(n,e,t){return e!=null?(e?bn:0)|(e==="full"?Ds:0):n&&n.whitespace=="pre"?bn|Ds:t&~ln}class Ln{constructor(e,t,r,s,i,o){this.type=e,this.attrs=t,this.marks=r,this.solid=s,this.options=o,this.content=[],this.activeMarks=$.none,this.match=i||(o&ln?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(k.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,s;return(s=r.findWrapping(e.type))?(this.match=r,s):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&bn)){let r=this.content[this.content.length-1],s;if(r&&r.isText&&(s=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==s[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-s[0].length))}}let t=k.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(k.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Wl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class eo{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let s=t.topNode,i,o=Zi(null,t.preserveWhitespace,0)|(r?ln:0);s?i=new Ln(s.type,s.attrs,$.none,!0,t.topMatch||s.type.contentMatch,o):r?i=new Ln(null,null,$.none,!0,null,o):i=new Ln(e.schema.topNodeType,null,$.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,s=this.top,i=s.options&Ds?"full":this.localPreserveWS||(s.options&bn)>0,{schema:o}=this.parser;if(i==="full"||s.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="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(),t,!0),l[a]&&this.insertNode(o.text(l[a]),t,!/\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=s.content[s.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),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let s=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;ql.hasOwnProperty(o)&&this.parser.normalizeLists&&Ru(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:Iu.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);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(Wl.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let d=a&&a.skip?t:this.readStyles(e,t);d&&this.addAll(e,d),c&&this.sync(i),this.needsBlock=u}else{let c=this.readStyles(e,t);c&&this.addElementByRule(e,a,c,a.consuming===!1?l:void 0)}this.localPreserveWS=s}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
4
4
|
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let s=0;s<this.parser.matchedStyles.length;s++){let i=this.parser.matchedStyles[s],o=r.getPropertyValue(i);if(o)for(let l=void 0;;){let a=this.parser.matchStyle(i,o,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?t=t.filter(c=>!a.clearMark(c)):t=t.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return t}addElementByRule(e,t,r,s){let i,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,t.attrs||null,r,t.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[t.mark];r=r.concat(a.create(t.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(s)this.addElement(e,r,s);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}i&&this.sync(l)&&this.open--}addAll(e,t,r,s){let i=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=s==null?null:e.childNodes[s];o!=l;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,r){let s,i;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],c=a.findWrapping(e);if(c&&(!s||s.length>c.length+l)&&(s=c,i=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!s)return null;this.sync(i);for(let o=0;o<s.length;o++)t=this.enterInner(s[o],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let s=this.findPlace(e,t,r);if(s){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let o=$.none;for(let l of s.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):no(l.type,e.type))&&(o=l.addToSet(o));return i.content.push(e.mark(o)),!0}return!1}enter(e,t,r,s){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,s)),i}enterInner(e,t,r,s=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=Zi(e,i,o.options);o.options&ln&&o.content.length==0&&(l|=ln);let a=$.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):no(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new Ln(e,t,a,s,null,l)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].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 t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=bn)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let s=r.length-1;s>=0;s--)e+=r[s].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let s=0;s<this.find.length;s++)this.find[s].pos==null&&e.nodeType==1&&e.contains(this.find[s].node)&&t.compareDocumentPosition(this.find[s].node)&(r?2:4)&&(this.find[s].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,s=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(s?0:1),o=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=i;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&s?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}}function Ru(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&ql.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Pu(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function to(n){let e={};for(let t in n)e[t]=n[t];return e}function no(n,e){let t=e.schema.nodes;for(let r in t){let s=t[r];if(!s.allowsMarkType(n))continue;let i=[],o=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||i.indexOf(u)<0&&o(u))return!0}};if(o(s.contentMatch))return!0}}class vt{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=ns(t).createDocumentFragment());let s=r,i=[];return e.forEach(o=>{if(i.length||o.marks.length){let l=0,a=0;for(;l<i.length&&a<o.marks.length;){let c=o.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<i.length;)s=i.pop()[1];for(;a<o.marks.length;){let c=o.marks[a++],u=this.serializeMark(c,o.isInline,t);u&&(i.push([c,s]),s.appendChild(u.dom),s=u.contentDOM||u.dom)}}s.appendChild(this.serializeNodeInner(o,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:s}=Un(ns(t),this.nodes[e.type.name](e),null,e.attrs);if(s){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,s)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let s=e.marks.length-1;s>=0;s--){let i=this.serializeMark(e.marks[s],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let s=this.marks[e.type.name];return s&&Un(ns(r),s(e,t),null,e.attrs)}static renderSpec(e,t,r=null,s){return Un(e,t,r,s)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new vt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=ro(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return ro(e.marks)}}function ro(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function ns(n){return n.document||window.document}const so=new WeakMap;function Lu(n){let e=so.get(n);return e===void 0&&so.set(n,e=Bu(n)),e}function Bu(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let s=0;s<r.length;s++)t(r[s]);else for(let s in r)t(r[s])}return t(n),e}function Un(n,e,t,r){if(typeof e=="string")return{dom:n.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let s=e[0],i;if(typeof s!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=Lu(r))&&i.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=s.indexOf(" ");o>0&&(t=s.slice(0,o),s=s.slice(o+1));let l,a=t?n.createElementNS(t,s):n.createElement(s),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{let{dom:h,contentDOM:p}=Un(n,f,t,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const Ul=65535,Kl=Math.pow(2,16);function zu(n,e){return n+e*Kl}function io(n){return n&Ul}function $u(n){return(n-(n&Ul))/Kl}const Jl=1,Gl=2,Kn=4,Yl=8;class Is{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&Yl)>0}get deletedBefore(){return(this.delInfo&(Jl|Kn))>0}get deletedAfter(){return(this.delInfo&(Gl|Kn))>0}get deletedAcross(){return(this.delInfo&Kn)>0}}class ye{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&ye.empty)return ye.empty}recover(e){let t=0,r=io(e);if(!this.inverted)for(let s=0;s<r;s++)t+=this.ranges[s*3+2]-this.ranges[s*3+1];return this.ranges[r*3]+t+$u(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let s=0,i=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?s:0);if(a>e)break;let c=this.ranges[l+i],u=this.ranges[l+o],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:t:t,h=a+s+(f<0?0:u);if(r)return h;let p=e==(t<0?a:d)?null:zu(l/3,e-a),g=e==a?Gl:e==d?Jl:Kn;return(t<0?e!=a:e!=d)&&(g|=Yl),new Is(h,g,p)}s+=u-c}return r?e+s:new Is(e+s,0,null)}touches(e,t){let r=0,s=io(t),i=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+i],u=a+c;if(e<=u&&l==s*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let s=0,i=0;s<this.ranges.length;s+=3){let o=this.ranges[s],l=o-(this.inverted?i:0),a=o+(this.inverted?0:i),c=this.ranges[s+t],u=this.ranges[s+r];e(l,l+c,a,a+u),i+=u-c}}invert(){return new ye(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?ye.empty:new ye(e<0?[0,-e,0]:[0,0,e])}}ye.empty=new ye([]);class kn{constructor(e,t,r=0,s=e?e.length:0){this.mirror=t,this.from=r,this.to=s,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new kn(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let s=e.getMirror(t);this.appendMap(e._maps[t],s!=null&&s<t?r+s:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let s=e.getMirror(t);this.appendMap(e._maps[t].invert(),s!=null&&s>t?r-s-1:void 0)}}invert(){let e=new kn;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let s=0;for(let i=this.from;i<this.to;i++){let o=this._maps[i],l=o.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this._maps[a].recover(l.recover);continue}}s|=l.delInfo,e=l.pos}return r?e:new Is(e,s,null)}}const rs=Object.create(null);class fe{getMap(){return ye.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=rs[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in rs)throw new RangeError("Duplicate use of step JSON ID "+e);return rs[e]=t,t.prototype.jsonID=e,t}}class G{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new G(e,null)}static fail(e){return new G(null,e)}static fromReplace(e,t,r,s){try{return G.ok(e.replace(t,r,s))}catch(i){if(i instanceof Qn)return G.fail(i.message);throw i}}}function oi(n,e,t){let r=[];for(let s=0;s<n.childCount;s++){let i=n.child(s);i.content.size&&(i=i.copy(oi(i.content,e,i))),i.isInline&&(i=e(i,t,s)),r.push(i)}return k.fromArray(r)}class Xe extends fe{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),s=r.node(r.sharedDepth(this.to)),i=new M(oi(t.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),s),t.openStart,t.openEnd);return G.fromReplace(e,this.from,this.to,i)}invert(){return new Ae(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Xe(t.pos,r.pos,this.mark)}merge(e){return e instanceof Xe&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Xe(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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Xe(t.from,t.to,e.markFromJSON(t.mark))}}fe.jsonID("addMark",Xe);class Ae extends fe{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new M(oi(t.content,s=>s.mark(this.mark.removeFromSet(s.marks)),e),t.openStart,t.openEnd);return G.fromReplace(e,this.from,this.to,r)}invert(){return new Xe(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Ae(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ae&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ae(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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ae(t.from,t.to,e.markFromJSON(t.mark))}}fe.jsonID("removeMark",Ae);class Qe extends fe{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return G.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return G.fromReplace(e,this.pos,this.pos+1,new M(k.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let s=0;s<t.marks.length;s++)if(!t.marks[s].isInSet(r))return new Qe(this.pos,t.marks[s]);return new Qe(this.pos,this.mark)}}return new Ct(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Qe(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Qe(t.pos,e.markFromJSON(t.mark))}}fe.jsonID("addNodeMark",Qe);class Ct extends fe{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return G.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return G.fromReplace(e,this.pos,this.pos+1,new M(k.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Qe(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Ct(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ct(t.pos,e.markFromJSON(t.mark))}}fe.jsonID("removeNodeMark",Ct);class te extends fe{constructor(e,t,r,s=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=s}apply(e){return this.structure&&Rs(e,this.from,this.to)?G.fail("Structure replace would overwrite content"):G.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new ye([this.from,this.to-this.from,this.slice.size])}invert(e){return new te(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new te(t.pos,Math.max(t.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof te)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=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 te(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=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 te(e.from,this.to,t,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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new te(t.from,t.to,M.fromJSON(e,t.slice),!!t.structure)}}fe.jsonID("replace",te);class ne extends fe{constructor(e,t,r,s,i,o,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=s,this.slice=i,this.insert=o,this.structure=l}apply(e){if(this.structure&&(Rs(e,this.from,this.gapFrom)||Rs(e,this.gapTo,this.to)))return G.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return G.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?G.fromReplace(e,this.from,this.to,r):G.fail("Content does not fit in gap")}getMap(){return new ye([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new ne(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),s=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||s<t.pos||i>r.pos?null:new ne(t.pos,r.pos,s,i,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,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ne(t.from,t.to,t.gapFrom,t.gapTo,M.fromJSON(e,t.slice),t.insert,!!t.structure)}}fe.jsonID("replaceAround",ne);function Rs(n,e,t){let r=n.resolve(e),s=t-e,i=r.depth;for(;s>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,s--;if(s>0){let o=r.node(i).maybeChild(r.indexAfter(i));for(;s>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,s--}}return!1}function Fu(n,e,t,r){let s=[],i=[],o,l;n.doc.nodesBetween(e,t,(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,t),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:s.push(o=new Ae(f,h,d[g])));l&&l.to==f?l.to=h:i.push(l=new Xe(f,h,r))}}),s.forEach(a=>n.step(a)),i.forEach(a=>n.step(a))}function Vu(n,e,t,r){let s=[],i=0;n.doc.nodesBetween(e,t,(o,l)=>{if(!o.isInline)return;i++;let a=null;if(r instanceof Fr){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,t);for(let u=0;u<a.length;u++){let d=a[u],f;for(let h=0;h<s.length;h++){let p=s[h];p.step==i-1&&d.eq(s[h].style)&&(f=p)}f?(f.to=c,f.step=i):s.push({style:d,from:Math.max(l,e),to:c,step:i})}}}),s.forEach(o=>n.step(new Ae(o.from,o.to,o.style)))}function li(n,e,t,r=t.contentMatch,s=!0){let i=n.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a<i.childCount;a++){let c=i.child(a),u=l+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new te(l,u,M.empty));else{r=d;for(let f=0;f<c.marks.length;f++)t.allowsMarkType(c.marks[f].type)||n.step(new Ae(l,u,c.marks[f]));if(s&&c.isText&&t.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new M(k.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),o.push(new te(l+f.index,l+f.index+f[0].length,p))}}l=u}if(!r.validEnd){let a=r.fillBefore(k.empty,!0);n.replace(l,l,new M(a,0,0))}for(let a=o.length-1;a>=0;a--)n.step(o[a])}function _u(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Ut(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,s=0,i=0;;--r){let o=n.$from.node(r),l=n.$from.index(r)+s,a=n.$to.indexAfter(r)-i;if(r<n.depth&&o.canReplace(l,a,t))return r;if(r==0||o.type.spec.isolating||!_u(o,l,a))break;l&&(s=1),a<o.childCount&&(i=1)}return null}function Hu(n,e,t){let{$from:r,$to:s,depth:i}=e,o=r.before(i+1),l=s.after(i+1),a=o,c=l,u=k.empty,d=0;for(let p=i,g=!1;p>t;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=i,g=!1;p>t;p--)g||s.after(p+1)<s.end(p)?(g=!0,f=k.from(s.node(p).copy(f)),h++):c++;n.step(new ne(a,c,o,l,new M(u.append(f),d,h),u.size-d,!0))}function ai(n,e,t=null,r=n){let s=ju(n,e),i=s&&Wu(r,e);return i?s.map(oo).concat({type:e,attrs:t}).concat(i.map(oo)):null}function oo(n){return{type:n,attrs:null}}function ju(n,e){let{parent:t,startIndex:r,endIndex:s}=n,i=t.contentMatchAt(r).findWrapping(e);if(!i)return null;let o=i.length?i[0]:e;return t.canReplaceWith(r,s,o)?i:null}function Wu(n,e){let{parent:t,startIndex:r,endIndex:s}=n,i=t.child(r),o=e.contentMatch.findWrapping(i.type);if(!o)return null;let a=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;a&&c<s;c++)a=a.matchType(t.child(c).type);return!a||!a.validEnd?null:o}function qu(n,e,t){let r=k.empty;for(let o=t.length-1;o>=0;o--){if(r.size){let l=t[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(t[o].type.create(t[o].attrs,r))}let s=e.start,i=e.end;n.step(new ne(s,i,s,i,new M(r,0,0),t.length,!0))}function Uu(n,e,t,r,s){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(o,l)=>{let a=typeof s=="function"?s(o):s;if(o.isTextblock&&!o.hasMarkup(r,a)&&Ku(n.doc,n.mapping.slice(i).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&&Ql(n,o,l,i),li(n,n.mapping.slice(i).map(l,1),r,void 0,c===null);let u=n.mapping.slice(i),d=u.map(l,1),f=u.map(l+o.nodeSize,1);return n.step(new ne(d,f,d+1,f-1,new M(k.from(r.create(a,null,o.marks)),0,0),1,!0)),c===!0&&Xl(n,o,l,i),!1}})}function Xl(n,e,t,r){e.forEach((s,i)=>{if(s.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(s.text);){let a=n.mapping.slice(r).map(t+1+i+o.index);n.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Ql(n,e,t,r){e.forEach((s,i)=>{if(s.type==s.type.schema.linebreakReplacement){let o=n.mapping.slice(r).map(t+1+i);n.replaceWith(o,o+1,e.type.schema.text(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as t,$ as o}from"./index-
|
|
1
|
+
import{r as i,j as t,$ as o}from"./index-D49VqQ7Q.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as i,L as l,O as u,P as n,V as C,a as c,h as P,i as p,b as m,p as M,s as E,u as L,c as d}from"./index-
|
|
1
|
+
import{C as i,L as l,O as u,P as n,V as C,a as c,h as P,i as p,b as m,p as M,s as E,u as L,c as d}from"./index-D49VqQ7Q.js";import{E as g,b as O,a as S,c as x,u as _,d as R,e as f}from"./use-collections-Dmxer7H8.js";import{u as A,a as b,b as D}from"./use-connection-Yjy9d1tW.js";import{S as e}from"./constants-TLV7MTwP.js";import{K as h,a as V,W as U,c as K,g as W,b as N,d as Q,e as w,i as F,u as Y,f as j}from"./constants-TLV7MTwP.js";import{u as k,a as v,b as B,c as H,d as J}from"./use-mcp-tools-CmOfbC2t.js";import{l as z,r as X,u as Z,a as $,b as ss}from"./use-mcp-resources-BnmpykKD.js";import{g as as,l as ts,u as os,a as rs}from"./use-mcp-prompts-DY_yf0WC.js";import{u as ls,a as us,b as ns}from"./use-virtual-mcp-2qhGJdPe.js";import{A as cs,D as Ps}from"./decopilot-events-Brt4gAR6.js";import{D as ms,a as Ms,c as Es,e as Ls,g as ds,s as Ts}from"./usage-BW6ztpN6.js";import"./useMutation-BTUmJffP.js";import"./useQuery-CvkH2gG1.js";export{cs as ALL_DECOPILOT_EVENT_TYPES,i as ConnectionEntitySchema,Ps as DECOPILOT_EVENTS,ms as DEFAULT_MODEL_PREFERENCES,g as EMPTY_COLLECTION_LIST_RESULT,h as KEYS,l as Locator,u as ORG_ADMIN_PROJECT_SLUG,n as ProjectContextProvider,V as SELF_MCP_ALIAS_ID,e as StreamableHTTPClientTransport,C as VirtualMCPEntitySchema,U as WellKnownOrgMCPId,Ms as addUsage,c as authenticateMcp,O as buildCollectionQueryKey,S as buildOrderByExpression,x as buildWhereExpression,Es as calculateUsageStats,K as createMCPClient,Ls as emptyUsageStats,ds as getCostFromUsage,W as getDecopilotId,as as getPrompt,N as getWellKnownCommunityRegistryConnection,Q as getWellKnownDecopilotVirtualMCP,w as getWellKnownRegistryConnection,P as handleOAuthCallback,p as isConnectionAuthenticated,F as isDecopilot,m as isStdioParameters,ts as listPrompts,z as listResources,M as parseVirtualUrl,X as readResource,Ts as selectDefaultModel,E as setOAuthRedirectOrigin,_ as useCollectionActions,R as useCollectionItem,f as useCollectionList,A as useConnection,b as useConnectionActions,D as useConnections,L as useIsOrgAdmin,Y as useMCPClient,j as useMCPClientOptional,os as useMCPPromptsList,rs as useMCPPromptsListQuery,Z as useMCPReadResource,$ as useMCPResourcesList,ss as useMCPResourcesListQuery,k as useMCPToolCall,v as useMCPToolCallMutation,B as useMCPToolCallQuery,H as useMCPToolsList,J as useMCPToolsListQuery,d as useProjectContext,ls as useVirtualMCP,us as useVirtualMCPActions,ns as useVirtualMCPs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as T,d as b,x as Q,F as V,j as o,ac as W,y as g,ad as G,ae as J,af as X,ag as U,ai as Y,ah as Z,B as P,Q as ee,X as te,k as se,aT as ae}from"./index-DIir8pgm.js";import{u as le}from"./useQuery-BJg_09kQ.js";import{u as ie}from"./useMutation-DPjXSTSD.js";import{a as D,u as B,c as L,b as I,T as M}from"./tooltip-iG9fvlrZ.js";import{i as oe}from"./X-COxH8ezg.js";const H=({size:l=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"M9 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));H.displayName="LayoutLeft";const z=({size:l=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"M8 9.5h4M8 13h7m-3 8a9 9 0 1 0-8.342-5.616c.081.2.122.3.14.381a.907.907 0 0 1 .024.219c0 .083-.015.173-.045.353l-.593 3.558c-.062.373-.093.56-.035.694a.5.5 0 0 0 .262.262c.135.058.321.027.694-.035l3.558-.593c.18-.03.27-.045.353-.045.081 0 .14.006.219.024.08.018.18.059.38.14A8.973 8.973 0 0 0 12 21Z"}));z.displayName="MessageTextCircle02";function ne(l){try{return JSON.parse(l)}catch{return}}function R(l,e){const t=localStorage.getItem(l),a=t?ne(t):void 0,s=typeof e=="function"?e(a):a??e;if(a===void 0||s!==a)try{const i=JSON.stringify(s);localStorage.setItem(l,i)}catch{}return s}function re(l,e){const t=b.c(25),a=Q();let s;t[0]!==l?(s=["localStorage",l],t[0]=l,t[1]=s):s=t[1];const i=s;let d,n;t[2]!==e||t[3]!==l?(d=()=>R(l,e),n=()=>R(l,e),t[2]=e,t[3]=l,t[4]=d,t[5]=n):(d=t[4],n=t[5]);let r;t[6]!==i||t[7]!==d||t[8]!==n?(r={queryKey:i,queryFn:d,initialData:n,staleTime:1/0,gcTime:1/0},t[6]=i,t[7]=d,t[8]=n,t[9]=r):r=t[9];const{data:u}=le(r);let f;t[10]!==l?(f=async v=>{const j=JSON.stringify(v);return localStorage.setItem(l,j),v},t[10]=l,t[11]=f):f=t[11];let m;t[12]!==a||t[13]!==i?(m=v=>{a.setQueryData(i,v)},t[12]=a,t[13]=i,t[14]=m):m=t[14];let c;t[15]!==f||t[16]!==m?(c={mutationFn:f,onSuccess:m},t[15]=f,t[16]=m,t[17]=c):c=t[17];const p=ie(c);let h;t[18]!==p||t[19]!==a||t[20]!==i?(h=v=>{const j=a.getQueryData(i),_=typeof v=="function"?v(j):v;p.mutate(_)},t[18]=p,t[19]=a,t[20]=i,t[21]=h):h=t[21];const S=h,x=u;let y;return t[22]!==S||t[23]!==x?(y=[x,S],t[22]=S,t[23]=x,t[24]=y):y=t[24],y}function ce(){const l=b.c(4);let e;l[0]===Symbol.for("react.memo_cache_sentinel")?(e=V.decoChatOpen(),l[0]=e):e=l[0];const[t,a]=re(e,de);let s;return l[1]!==t||l[2]!==a?(s=[t,a],l[1]=t,l[2]=a,l[3]=s):s=l[3],s}function de(l){return!!(l??!0)}function fe(l){const e=b.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=o.jsx(W,{"data-slot":"sheet",...t}),e[2]=t,e[3]=a):a=e[3],a}function ue(l){const e=b.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=o.jsx(U,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function me(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(Z,{"data-slot":"sheet-overlay",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function pe(l){const e=b.c(17);let t,a,s,i;e[0]!==l?({className:a,children:t,side:i,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i):(t=e[1],a=e[2],s=e[3],i=e[4]);const d=i===void 0?"right":i;let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(me,{}),e[5]=n):n=e[5];const r=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",u=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",m=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let c;e[6]!==a||e[7]!==r||e[8]!==u||e[9]!==f||e[10]!==m?(c=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",r,u,f,m,a),e[6]=a,e[7]=r,e[8]=u,e[9]=f,e[10]=m,e[11]=c):c=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs(Y,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(oe,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=p):p=e[12];let h;return e[13]!==t||e[14]!==s||e[15]!==c?(h=o.jsxs(ue,{children:[n,o.jsxs(G,{"data-slot":"sheet-content",className:c,...s,children:[t,p]})]}),e[13]=t,e[14]=s,e[15]=c,e[16]=h):h=e[16],h}function he(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sheet-header",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function be(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("text-foreground font-semibold",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(J,{"data-slot":"sheet-title",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function ge(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(X,{"data-slot":"sheet-description",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}const xe="sidebar_state",ve=3600*24*7,Ne="16rem",je="18rem",Se="3rem",we="b",K=T.createContext(null);function k(){const l=T.useContext(K);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function Le(l){const e=b.c(21),{defaultOpen:t,open:a,onOpenChange:s,children:i}=l,d=t===void 0?!0:t,n=B(),[r,u]=T.useState(!1),[f,m]=T.useState(d),c=a??f;let p;e[0]!==c||e[1]!==s?(p=O=>{const C=typeof O=="function"?O(c):O;s?s(C):m(C),document.cookie=`${xe}=${C}; path=/; max-age=${ve}`},e[0]=c,e[1]=s,e[2]=p):p=e[2];const h=p;let S;e[3]!==n||e[4]!==h?(S=()=>n?u(_e):h(ye),e[3]=n,e[4]=h,e[5]=S):S=e[5];const x=S;let y,v;e[6]!==x?(y=()=>{const O=C=>{if(C.key===we&&(C.metaKey||C.ctrlKey)){const E=C.target;if(E.tagName==="INPUT"||E.tagName==="TEXTAREA"||E.isContentEditable)return;C.preventDefault(),x()}};return globalThis.addEventListener("keydown",O),()=>globalThis.removeEventListener("keydown",O)},v=[x],e[6]=x,e[7]=y,e[8]=v):(y=e[7],v=e[8]),T.useEffect(y,v);const j=c?"expanded":"collapsed";let _;e[9]!==n||e[10]!==c||e[11]!==r||e[12]!==h||e[13]!==j||e[14]!==x?(_={state:j,open:c,setOpen:h,isMobile:n,openMobile:r,setOpenMobile:u,toggleSidebar:x},e[9]=n,e[10]=c,e[11]=r,e[12]=h,e[13]=j,e[14]=x,e[15]=_):_=e[15];const $=_;let N;e[16]!==i?(N=o.jsx(L,{delayDuration:0,children:i}),e[16]=i,e[17]=N):N=e[17];let w;return e[18]!==$||e[19]!==N?(w=o.jsx(K.Provider,{value:$,children:N}),e[18]=$,e[19]=N,e[20]=w):w=e[20],w}function ye(l){return!l}function _e(l){return!l}function He(l){const e=b.c(14);let t,a,s,i;e[0]!==l?({className:a,style:i,children:t,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i):(t=e[1],a=e[2],s=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":Ne,"--sidebar-width-icon":Se,...i},e[5]=i,e[6]=d):d=e[6];const n=d;let r;e[7]!==a?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=r):r=e[8];let u;return e[9]!==t||e[10]!==s||e[11]!==n||e[12]!==r?(u=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...s,children:t}),e[9]=t,e[10]=s,e[11]=n,e[12]=r,e[13]=u):u=e[13],u}function ze(l){const e=b.c(42);let t,a,s,i,d,n;e[0]!==l?({side:i,variant:d,collapsible:n,className:a,children:t,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=d,e[6]=n):(t=e[1],a=e[2],s=e[3],i=e[4],d=e[5],n=e[6]);const r=i===void 0?"left":i,u=d===void 0?"sidebar":d,f=n===void 0?"offcanvas":n,{isMobile:m,state:c,openMobile:p,setOpenMobile:h}=k();if(f==="none"){let N;e[7]!==a?(N=g("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=N):N=e[8];let w;return e[9]!==t||e[10]!==s||e[11]!==N?(w=o.jsx("div",{"data-slot":"sidebar",className:N,...s,children:t}),e[9]=t,e[10]=s,e[11]=N,e[12]=w):w=e[12],w}if(m){let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":je},e[13]=N):N=e[13];let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsxs(he,{className:"sr-only",children:[o.jsx(be,{children:"Sidebar"}),o.jsx(ge,{children:"Displays the mobile sidebar."})]}),e[14]=w):w=e[14];let O;e[15]!==t?(O=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[15]=t,e[16]=O):O=e[16];let C;e[17]!==r||e[18]!==O?(C=o.jsxs(pe,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:r,children:[w,O]}),e[17]=r,e[18]=O,e[19]=C):C=e[19];let E;return e[20]!==p||e[21]!==s||e[22]!==h||e[23]!==C?(E=o.jsx(fe,{open:p,onOpenChange:h,...s,children:C}),e[20]=p,e[21]=s,e[22]=h,e[23]=C,e[24]=E):E=e[24],E}const S=u==="floating"||u==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let x;e[25]!==S?(x=g("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",S),e[25]=S,e[26]=x):x=e[26];const y=c==="collapsed"?f:"";let v;e[27]!==a?(v=g("flex flex-col h-full w-(--sidebar-width)",a),e[27]=a,e[28]=v):v=e[28];let j;e[29]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:t}),e[29]=t,e[30]=j):j=e[30];let _;e[31]!==s||e[32]!==v||e[33]!==j?(_=o.jsx("div",{"data-slot":"sidebar-container",className:v,...s,children:j}),e[31]=s,e[32]=v,e[33]=j,e[34]=_):_=e[34];let $;return e[35]!==r||e[36]!==c||e[37]!==x||e[38]!==y||e[39]!==_||e[40]!==u?($=o.jsx("div",{className:x,"data-state":c,"data-collapsible":y,"data-variant":u,"data-side":r,"data-slot":"sidebar",children:_}),e[35]=r,e[36]=c,e[37]=x,e[38]=y,e[39]=_,e[40]=u,e[41]=$):$=e[41],$}function Ce(l){const e=b.c(18);let t,a,s;e[0]!==l?({className:t,onClick:a,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s):(t=e[1],a=e[2],s=e[3]);const{toggleSidebar:i}=k();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==a||e[7]!==i?(n=p=>{a?.(p),i()},e[6]=a,e[7]=i,e[8]=n):n=e[8];let r,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(H,{}),u=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=u):(r=e[9],u=e[10]);let f;e[11]!==s||e[12]!==d||e[13]!==n?(f=o.jsx(D,{asChild:!0,children:o.jsxs(P,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...s,children:[r,u]})}),e[11]=s,e[12]=d,e[13]=n,e[14]=f):f=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsxs(I,{side:"bottom",className:"flex items-center gap-2",children:["Collapse sidebar",o.jsx("kbd",{className:"bg-background/20 rounded px-1 py-0.5 text-[10px] font-mono",children:"⌘B"})]}),e[15]=m):m=e[15];let c;return e[16]!==f?(c=o.jsx(L,{delayDuration:300,children:o.jsxs(M,{children:[f,m]})}),e[16]=f,e[17]=c):c=e[17],c}function Ke(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function qe(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Fe(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Qe(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("h-4 m-0! w-full",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-sidebar":"separator",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Ve(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function We(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Ge(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("w-full text-sm",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Je(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex w-full min-w-0 flex-col gap-1",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Xe(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("group/menu-item relative",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}const $e=te("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ue(l){const e=b.c(28);let t,a,s,i,d,n,r;e[0]!==l?({asChild:s,isActive:i,variant:d,size:n,tooltip:r,className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=d,e[6]=n,e[7]=r):(t=e[1],a=e[2],s=e[3],i=e[4],d=e[5],n=e[6],r=e[7]);const u=s===void 0?!1:s,f=i===void 0?!1:i,m=d===void 0?"default":d,c=n===void 0?"default":n,p=u?ee:"button",{isMobile:h,state:S}=k();let x;e[8]!==t||e[9]!==c||e[10]!==m?(x=g($e({variant:m,size:c}),t),e[8]=t,e[9]=c,e[10]=m,e[11]=x):x=e[11];let y;e[12]!==p||e[13]!==f||e[14]!==a||e[15]!==c||e[16]!==x?(y=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:x,...a}),e[12]=p,e[13]=f,e[14]=a,e[15]=c,e[16]=x,e[17]=y):y=e[17];const v=y;if(!r)return v;if(typeof r=="string"){let w;e[18]!==r?(w={children:r},e[18]=r,e[19]=w):w=e[19],r=w}let j;e[20]!==v?(j=o.jsx(D,{asChild:!0,children:v}),e[20]=v,e[21]=j):j=e[21];const _=S!=="collapsed"||h;let $;e[22]!==_||e[23]!==r?($=o.jsx(I,{side:"right",align:"center",hidden:_,...r}),e[22]=_,e[23]=r,e[24]=$):$=e[24];let N;return e[25]!==j||e[26]!==$?(N=o.jsxs(M,{children:[j,$]}),e[25]=j,e[26]=$,e[27]=N):N=e[27],N}function A(l,e){const t=T.Children.toArray(l);for(const a of t)if(T.isValidElement(a)&&a.type===e)return a;return null}function Oe(){const l=b.c(12),[e,t]=ce(),a=B();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},l[0]=s):s=l[0];const{org:i,project:d}=se(s),{location:n}=ae();if(n.pathname===`/${i}/${d}`||n.pathname===`/${i}/${d}/`||a)return null;const u=e&&"bg-accent text-foreground";let f;l[1]!==u?(f=g("h-7 px-2 gap-1.5 text-xs font-medium text-muted-foreground hover:text-foreground",u),l[1]=u,l[2]=f):f=l[2];let m;l[3]!==t?(m=()=>t(Te),l[3]=t,l[4]=m):m=l[4];let c;l[5]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(z,{size:14,className:"text-inherit"}),l[5]=c):c=l[5];let p;l[6]!==f||l[7]!==m?(p=o.jsx(D,{asChild:!0,children:o.jsxs(P,{variant:"ghost",className:f,onClick:m,"aria-label":"Toggle Decopilot",children:[c,"Chat"]})}),l[6]=f,l[7]=m,l[8]=p):p=l[8];let h;l[9]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx(I,{side:"bottom",children:"Toggle Decopilot"}),l[9]=h):h=l[9];let S;return l[10]!==p?(S=o.jsxs(M,{children:[p,h]}),l[10]=p,l[11]=S):S=l[11],S}function Te(l){return!l}function Ee(l){const e=b.c(5),{children:t,className:a}=l;let s;e[0]!==a?(s=g("flex flex-col h-full bg-background overflow-hidden",a),e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==t||e[3]!==s?(i=o.jsx("div",{className:s,children:t}),e[2]=t,e[3]=s,e[4]=i):i=e[4],i}function De(l){const e=b.c(20),{children:t,className:a,hideSidebarTrigger:s}=l;let i;e[0]!==t?(i=A(t,q),e[0]=t,e[1]=i):i=e[1];const d=i;let n;e[2]!==t?(n=A(t,F),e[2]=t,e[3]=n):n=e[3];const r=n;let u;e[4]!==a?(u=g("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",a),e[4]=a,e[5]=u):u=e[5];let f;e[6]!==s?(f=!s&&o.jsx(Ce,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=f):f=e[7];let m;e[8]!==d||e[9]!==f?(m=o.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[f,d]}),e[8]=d,e[9]=f,e[10]=m):m=e[10];let c;e[11]!==s?(c=!s&&o.jsx("div",{className:"flex items-center pl-2 ml-1",children:o.jsx(Oe,{})}),e[11]=s,e[12]=c):c=e[12];let p;e[13]!==r||e[14]!==c?(p=o.jsxs("div",{className:"flex items-center",children:[r,c]}),e[13]=r,e[14]=c,e[15]=p):p=e[15];let h;return e[16]!==u||e[17]!==m||e[18]!==p?(h=o.jsxs("div",{className:u,children:[m,p]}),e[16]=u,e[17]=m,e[18]=p,e[19]=h):h=e[19],h}function q(l){const e=b.c(5),{children:t,className:a}=l;let s;e[0]!==a?(s=g("flex items-center gap-2 min-w-0 overflow-hidden",a),e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==t||e[3]!==s?(i=o.jsx("div",{className:s,children:t}),e[2]=t,e[3]=s,e[4]=i):i=e[4],i}function F(l){const e=b.c(5),{children:t,className:a}=l;let s;e[0]!==a?(s=g("flex items-center gap-2 shrink-0 overflow-hidden",a),e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==t||e[3]!==s?(i=o.jsx("div",{className:s,children:t}),e[2]=t,e[3]=s,e[4]=i):i=e[4],i}function Ie(l){const e=b.c(5),{children:t,className:a}=l;let s;e[0]!==a?(s=g("flex-1 overflow-auto",a),e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==t||e[3]!==s?(i=o.jsx("div",{className:s,children:t}),e[2]=t,e[3]=s,e[4]=i):i=e[4],i}const Ye=Object.assign(Ee,{Header:Object.assign(De,{Left:q,Right:F}),Content:Ie});export{Ye as P,fe as S,ce as a,pe as b,he as c,be as d,ge as e,k as f,Je as g,Xe as h,H as i,Ue as j,Ge as k,We as l,Qe as m,Ve as n,ze as o,qe as p,Fe as q,Le as r,Ke as s,He as t,re as u,z as v};
|
|
1
|
+
import{r as T,d as b,x as Q,F as V,j as o,ac as W,y as g,ad as G,ae as J,af as X,ag as U,ai as Y,ah as Z,B as P,Q as ee,X as te,k as se,aT as ae}from"./index-D49VqQ7Q.js";import{u as le}from"./useQuery-CvkH2gG1.js";import{u as ie}from"./useMutation-BTUmJffP.js";import{a as D,u as B,c as L,b as I,T as M}from"./tooltip-DJkxXViN.js";import{i as oe}from"./X-Dr-hR03I.js";const H=({size:l=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"M9 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));H.displayName="LayoutLeft";const z=({size:l=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"M8 9.5h4M8 13h7m-3 8a9 9 0 1 0-8.342-5.616c.081.2.122.3.14.381a.907.907 0 0 1 .024.219c0 .083-.015.173-.045.353l-.593 3.558c-.062.373-.093.56-.035.694a.5.5 0 0 0 .262.262c.135.058.321.027.694-.035l3.558-.593c.18-.03.27-.045.353-.045.081 0 .14.006.219.024.08.018.18.059.38.14A8.973 8.973 0 0 0 12 21Z"}));z.displayName="MessageTextCircle02";function ne(l){try{return JSON.parse(l)}catch{return}}function R(l,e){const t=localStorage.getItem(l),a=t?ne(t):void 0,s=typeof e=="function"?e(a):a??e;if(a===void 0||s!==a)try{const i=JSON.stringify(s);localStorage.setItem(l,i)}catch{}return s}function re(l,e){const t=b.c(25),a=Q();let s;t[0]!==l?(s=["localStorage",l],t[0]=l,t[1]=s):s=t[1];const i=s;let d,n;t[2]!==e||t[3]!==l?(d=()=>R(l,e),n=()=>R(l,e),t[2]=e,t[3]=l,t[4]=d,t[5]=n):(d=t[4],n=t[5]);let r;t[6]!==i||t[7]!==d||t[8]!==n?(r={queryKey:i,queryFn:d,initialData:n,staleTime:1/0,gcTime:1/0},t[6]=i,t[7]=d,t[8]=n,t[9]=r):r=t[9];const{data:u}=le(r);let f;t[10]!==l?(f=async v=>{const j=JSON.stringify(v);return localStorage.setItem(l,j),v},t[10]=l,t[11]=f):f=t[11];let m;t[12]!==a||t[13]!==i?(m=v=>{a.setQueryData(i,v)},t[12]=a,t[13]=i,t[14]=m):m=t[14];let c;t[15]!==f||t[16]!==m?(c={mutationFn:f,onSuccess:m},t[15]=f,t[16]=m,t[17]=c):c=t[17];const p=ie(c);let h;t[18]!==p||t[19]!==a||t[20]!==i?(h=v=>{const j=a.getQueryData(i),_=typeof v=="function"?v(j):v;p.mutate(_)},t[18]=p,t[19]=a,t[20]=i,t[21]=h):h=t[21];const S=h,x=u;let y;return t[22]!==S||t[23]!==x?(y=[x,S],t[22]=S,t[23]=x,t[24]=y):y=t[24],y}function ce(){const l=b.c(4);let e;l[0]===Symbol.for("react.memo_cache_sentinel")?(e=V.decoChatOpen(),l[0]=e):e=l[0];const[t,a]=re(e,de);let s;return l[1]!==t||l[2]!==a?(s=[t,a],l[1]=t,l[2]=a,l[3]=s):s=l[3],s}function de(l){return!!(l??!0)}function fe(l){const e=b.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=o.jsx(W,{"data-slot":"sheet",...t}),e[2]=t,e[3]=a):a=e[3],a}function ue(l){const e=b.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=o.jsx(U,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function me(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(Z,{"data-slot":"sheet-overlay",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function pe(l){const e=b.c(17);let t,a,s,i;e[0]!==l?({className:a,children:t,side:i,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i):(t=e[1],a=e[2],s=e[3],i=e[4]);const d=i===void 0?"right":i;let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(me,{}),e[5]=n):n=e[5];const r=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",u=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",m=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let c;e[6]!==a||e[7]!==r||e[8]!==u||e[9]!==f||e[10]!==m?(c=g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",r,u,f,m,a),e[6]=a,e[7]=r,e[8]=u,e[9]=f,e[10]=m,e[11]=c):c=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsxs(Y,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(oe,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=p):p=e[12];let h;return e[13]!==t||e[14]!==s||e[15]!==c?(h=o.jsxs(ue,{children:[n,o.jsxs(G,{"data-slot":"sheet-content",className:c,...s,children:[t,p]})]}),e[13]=t,e[14]=s,e[15]=c,e[16]=h):h=e[16],h}function he(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sheet-header",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function be(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("text-foreground font-semibold",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(J,{"data-slot":"sheet-title",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function ge(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("text-muted-foreground text-sm",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx(X,{"data-slot":"sheet-description",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}const xe="sidebar_state",ve=3600*24*7,Ne="16rem",je="18rem",Se="3rem",we="b",K=T.createContext(null);function k(){const l=T.useContext(K);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function Le(l){const e=b.c(21),{defaultOpen:t,open:a,onOpenChange:s,children:i}=l,d=t===void 0?!0:t,n=B(),[r,u]=T.useState(!1),[f,m]=T.useState(d),c=a??f;let p;e[0]!==c||e[1]!==s?(p=O=>{const C=typeof O=="function"?O(c):O;s?s(C):m(C),document.cookie=`${xe}=${C}; path=/; max-age=${ve}`},e[0]=c,e[1]=s,e[2]=p):p=e[2];const h=p;let S;e[3]!==n||e[4]!==h?(S=()=>n?u(_e):h(ye),e[3]=n,e[4]=h,e[5]=S):S=e[5];const x=S;let y,v;e[6]!==x?(y=()=>{const O=C=>{if(C.key===we&&(C.metaKey||C.ctrlKey)){const E=C.target;if(E.tagName==="INPUT"||E.tagName==="TEXTAREA"||E.isContentEditable)return;C.preventDefault(),x()}};return globalThis.addEventListener("keydown",O),()=>globalThis.removeEventListener("keydown",O)},v=[x],e[6]=x,e[7]=y,e[8]=v):(y=e[7],v=e[8]),T.useEffect(y,v);const j=c?"expanded":"collapsed";let _;e[9]!==n||e[10]!==c||e[11]!==r||e[12]!==h||e[13]!==j||e[14]!==x?(_={state:j,open:c,setOpen:h,isMobile:n,openMobile:r,setOpenMobile:u,toggleSidebar:x},e[9]=n,e[10]=c,e[11]=r,e[12]=h,e[13]=j,e[14]=x,e[15]=_):_=e[15];const $=_;let N;e[16]!==i?(N=o.jsx(L,{delayDuration:0,children:i}),e[16]=i,e[17]=N):N=e[17];let w;return e[18]!==$||e[19]!==N?(w=o.jsx(K.Provider,{value:$,children:N}),e[18]=$,e[19]=N,e[20]=w):w=e[20],w}function ye(l){return!l}function _e(l){return!l}function He(l){const e=b.c(14);let t,a,s,i;e[0]!==l?({className:a,style:i,children:t,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i):(t=e[1],a=e[2],s=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":Ne,"--sidebar-width-icon":Se,...i},e[5]=i,e[6]=d):d=e[6];const n=d;let r;e[7]!==a?(r=g("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=r):r=e[8];let u;return e[9]!==t||e[10]!==s||e[11]!==n||e[12]!==r?(u=o.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:r,...s,children:t}),e[9]=t,e[10]=s,e[11]=n,e[12]=r,e[13]=u):u=e[13],u}function ze(l){const e=b.c(42);let t,a,s,i,d,n;e[0]!==l?({side:i,variant:d,collapsible:n,className:a,children:t,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=d,e[6]=n):(t=e[1],a=e[2],s=e[3],i=e[4],d=e[5],n=e[6]);const r=i===void 0?"left":i,u=d===void 0?"sidebar":d,f=n===void 0?"offcanvas":n,{isMobile:m,state:c,openMobile:p,setOpenMobile:h}=k();if(f==="none"){let N;e[7]!==a?(N=g("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=N):N=e[8];let w;return e[9]!==t||e[10]!==s||e[11]!==N?(w=o.jsx("div",{"data-slot":"sidebar",className:N,...s,children:t}),e[9]=t,e[10]=s,e[11]=N,e[12]=w):w=e[12],w}if(m){let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":je},e[13]=N):N=e[13];let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsxs(he,{className:"sr-only",children:[o.jsx(be,{children:"Sidebar"}),o.jsx(ge,{children:"Displays the mobile sidebar."})]}),e[14]=w):w=e[14];let O;e[15]!==t?(O=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[15]=t,e[16]=O):O=e[16];let C;e[17]!==r||e[18]!==O?(C=o.jsxs(pe,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:r,children:[w,O]}),e[17]=r,e[18]=O,e[19]=C):C=e[19];let E;return e[20]!==p||e[21]!==s||e[22]!==h||e[23]!==C?(E=o.jsx(fe,{open:p,onOpenChange:h,...s,children:C}),e[20]=p,e[21]=s,e[22]=h,e[23]=C,e[24]=E):E=e[24],E}const S=u==="floating"||u==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let x;e[25]!==S?(x=g("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",S),e[25]=S,e[26]=x):x=e[26];const y=c==="collapsed"?f:"";let v;e[27]!==a?(v=g("flex flex-col h-full w-(--sidebar-width)",a),e[27]=a,e[28]=v):v=e[28];let j;e[29]!==t?(j=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:t}),e[29]=t,e[30]=j):j=e[30];let _;e[31]!==s||e[32]!==v||e[33]!==j?(_=o.jsx("div",{"data-slot":"sidebar-container",className:v,...s,children:j}),e[31]=s,e[32]=v,e[33]=j,e[34]=_):_=e[34];let $;return e[35]!==r||e[36]!==c||e[37]!==x||e[38]!==y||e[39]!==_||e[40]!==u?($=o.jsx("div",{className:x,"data-state":c,"data-collapsible":y,"data-variant":u,"data-side":r,"data-slot":"sidebar",children:_}),e[35]=r,e[36]=c,e[37]=x,e[38]=y,e[39]=_,e[40]=u,e[41]=$):$=e[41],$}function Ce(l){const e=b.c(18);let t,a,s;e[0]!==l?({className:t,onClick:a,...s}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s):(t=e[1],a=e[2],s=e[3]);const{toggleSidebar:i}=k();let d;e[4]!==t?(d=g("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==a||e[7]!==i?(n=p=>{a?.(p),i()},e[6]=a,e[7]=i,e[8]=n):n=e[8];let r,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(H,{}),u=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=r,e[10]=u):(r=e[9],u=e[10]);let f;e[11]!==s||e[12]!==d||e[13]!==n?(f=o.jsx(D,{asChild:!0,children:o.jsxs(P,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...s,children:[r,u]})}),e[11]=s,e[12]=d,e[13]=n,e[14]=f):f=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsxs(I,{side:"bottom",className:"flex items-center gap-2",children:["Collapse sidebar",o.jsx("kbd",{className:"bg-background/20 rounded px-1 py-0.5 text-[10px] font-mono",children:"⌘B"})]}),e[15]=m):m=e[15];let c;return e[16]!==f?(c=o.jsx(L,{delayDuration:300,children:o.jsxs(M,{children:[f,m]})}),e[16]=f,e[17]=c):c=e[17],c}function Ke(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function qe(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Fe(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Qe(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("h-4 m-0! w-full",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-sidebar":"separator",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Ve(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function We(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Ge(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("w-full text-sm",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Je(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("flex w-full min-w-0 flex-col gap-1",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}function Xe(l){const e=b.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("group/menu-item relative",t),e[3]=t,e[4]=s):s=e[4];let i;return e[5]!==a||e[6]!==s?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:s,...a}),e[5]=a,e[6]=s,e[7]=i):i=e[7],i}const $e=te("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ue(l){const e=b.c(28);let t,a,s,i,d,n,r;e[0]!==l?({asChild:s,isActive:i,variant:d,size:n,tooltip:r,className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a,e[3]=s,e[4]=i,e[5]=d,e[6]=n,e[7]=r):(t=e[1],a=e[2],s=e[3],i=e[4],d=e[5],n=e[6],r=e[7]);const u=s===void 0?!1:s,f=i===void 0?!1:i,m=d===void 0?"default":d,c=n===void 0?"default":n,p=u?ee:"button",{isMobile:h,state:S}=k();let x;e[8]!==t||e[9]!==c||e[10]!==m?(x=g($e({variant:m,size:c}),t),e[8]=t,e[9]=c,e[10]=m,e[11]=x):x=e[11];let y;e[12]!==p||e[13]!==f||e[14]!==a||e[15]!==c||e[16]!==x?(y=o.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:x,...a}),e[12]=p,e[13]=f,e[14]=a,e[15]=c,e[16]=x,e[17]=y):y=e[17];const v=y;if(!r)return v;if(typeof r=="string"){let w;e[18]!==r?(w={children:r},e[18]=r,e[19]=w):w=e[19],r=w}let j;e[20]!==v?(j=o.jsx(D,{asChild:!0,children:v}),e[20]=v,e[21]=j):j=e[21];const _=S!=="collapsed"||h;let $;e[22]!==_||e[23]!==r?($=o.jsx(I,{side:"right",align:"center",hidden:_,...r}),e[22]=_,e[23]=r,e[24]=$):$=e[24];let N;return e[25]!==j||e[26]!==$?(N=o.jsxs(M,{children:[j,$]}),e[25]=j,e[26]=$,e[27]=N):N=e[27],N}function A(l,e){const t=T.Children.toArray(l);for(const a of t)if(T.isValidElement(a)&&a.type===e)return a;return null}function Oe(){const l=b.c(12),[e,t]=ce(),a=B();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},l[0]=s):s=l[0];const{org:i,project:d}=se(s),{location:n}=ae();if(n.pathname===`/${i}/${d}`||n.pathname===`/${i}/${d}/`||a)return null;const u=e&&"bg-accent text-foreground";let f;l[1]!==u?(f=g("h-7 px-2 gap-1.5 text-xs font-medium text-muted-foreground hover:text-foreground",u),l[1]=u,l[2]=f):f=l[2];let m;l[3]!==t?(m=()=>t(Te),l[3]=t,l[4]=m):m=l[4];let c;l[5]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(z,{size:14,className:"text-inherit"}),l[5]=c):c=l[5];let p;l[6]!==f||l[7]!==m?(p=o.jsx(D,{asChild:!0,children:o.jsxs(P,{variant:"ghost",className:f,onClick:m,"aria-label":"Toggle Decopilot",children:[c,"Chat"]})}),l[6]=f,l[7]=m,l[8]=p):p=l[8];let h;l[9]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx(I,{side:"bottom",children:"Toggle Decopilot"}),l[9]=h):h=l[9];let S;return l[10]!==p?(S=o.jsxs(M,{children:[p,h]}),l[10]=p,l[11]=S):S=l[11],S}function Te(l){return!l}function Ee(l){const e=b.c(5),{children:t,className:a}=l;let s;e[0]!==a?(s=g("flex flex-col h-full bg-background overflow-hidden",a),e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==t||e[3]!==s?(i=o.jsx("div",{className:s,children:t}),e[2]=t,e[3]=s,e[4]=i):i=e[4],i}function De(l){const e=b.c(20),{children:t,className:a,hideSidebarTrigger:s}=l;let i;e[0]!==t?(i=A(t,q),e[0]=t,e[1]=i):i=e[1];const d=i;let n;e[2]!==t?(n=A(t,F),e[2]=t,e[3]=n):n=e[3];const r=n;let u;e[4]!==a?(u=g("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",a),e[4]=a,e[5]=u):u=e[5];let f;e[6]!==s?(f=!s&&o.jsx(Ce,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=f):f=e[7];let m;e[8]!==d||e[9]!==f?(m=o.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[f,d]}),e[8]=d,e[9]=f,e[10]=m):m=e[10];let c;e[11]!==s?(c=!s&&o.jsx("div",{className:"flex items-center pl-2 ml-1",children:o.jsx(Oe,{})}),e[11]=s,e[12]=c):c=e[12];let p;e[13]!==r||e[14]!==c?(p=o.jsxs("div",{className:"flex items-center",children:[r,c]}),e[13]=r,e[14]=c,e[15]=p):p=e[15];let h;return e[16]!==u||e[17]!==m||e[18]!==p?(h=o.jsxs("div",{className:u,children:[m,p]}),e[16]=u,e[17]=m,e[18]=p,e[19]=h):h=e[19],h}function q(l){const e=b.c(5),{children:t,className:a}=l;let s;e[0]!==a?(s=g("flex items-center gap-2 min-w-0 overflow-hidden",a),e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==t||e[3]!==s?(i=o.jsx("div",{className:s,children:t}),e[2]=t,e[3]=s,e[4]=i):i=e[4],i}function F(l){const e=b.c(5),{children:t,className:a}=l;let s;e[0]!==a?(s=g("flex items-center gap-2 shrink-0 overflow-hidden",a),e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==t||e[3]!==s?(i=o.jsx("div",{className:s,children:t}),e[2]=t,e[3]=s,e[4]=i):i=e[4],i}function Ie(l){const e=b.c(5),{children:t,className:a}=l;let s;e[0]!==a?(s=g("flex-1 overflow-auto",a),e[0]=a,e[1]=s):s=e[1];let i;return e[2]!==t||e[3]!==s?(i=o.jsx("div",{className:s,children:t}),e[2]=t,e[3]=s,e[4]=i):i=e[4],i}const Ye=Object.assign(Ee,{Header:Object.assign(De,{Left:q,Right:F}),Content:Ie});export{Ye as P,fe as S,ce as a,pe as b,he as c,be as d,ge as e,k as f,Je as g,Xe as h,H as i,Ue as j,Ge as k,We as l,Qe as m,Ve as n,ze as o,qe as p,Fe as q,Le as r,Ke as s,He as t,re as u,z as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BfWTztsz.js","assets/XCircle-Z-JTmQ8v.js","assets/Container-CMPDG7Cp.js","assets/Settings01-DpZ_tsoX.js","assets/useQuery-CvkH2gG1.js","assets/useMutation-BTUmJffP.js","assets/constants-TLV7MTwP.js","assets/useInfiniteQuery-D8TjRj27.js","assets/infiniteQueryObserver-DiY9IZXI.js","assets/badge-DGQ0gFlp.js","assets/input-BoNWsfmK.js","assets/dropdown-menu-BK29e1o0.js","assets/Check-Dczm9Dfw.js","assets/ChevronRight-Dxvchjxo.js","assets/RefreshCcw01-Co0-i94o.js","assets/table-w828HACk.js","assets/toggle-group-DN_3BuPh.js","assets/use-view-mode-BGEJ9JzM.js","assets/tooltip-DJkxXViN.js","assets/index-BkAoKVx8.js","assets/Play-Bb4cvvVL.js","assets/Loading01-BVCg1O_G.js","assets/SearchMd-CVvF1HpM.js","assets/dialog-DCrLu7TC.js","assets/X-Dr-hR03I.js","assets/AlertCircle-BD5gSXQu.js","assets/Upload01-BzGPegBj.js","assets/alert-dialog-Bke1xnyn.js","assets/card-CKN-JP9M.js","assets/Trash01-CBP9WLeP.js","assets/label-DF2jcg2U.js","assets/select-DaOZXaTi.js","assets/index-BdQq_4o_.js","assets/ChevronDown-CDxBhn_l.js","assets/ChevronUp-BLNd6dNq.js","assets/switch-yIP7Yj81.js","assets/textarea-D30IrLHN.js","assets/ArrowLeft-DN3D0Zrv.js","assets/checkbox-Dzy6oaRF.js","assets/use-collections-Dmxer7H8.js","assets/use-connection-Yjy9d1tW.js","assets/use-copy-DYNuGKRz.js","assets/popover-CvIauBBG.js","assets/Plus-DcVtqCMV.js","assets/plugin-header-CBfXQAQ5.js","assets/Dataflow03-slF1Ax9G.js","assets/plugin-empty-state-BIg-myPi.js","assets/login-EJWlcxg3.js","assets/reset-password-Cj1A6uL-.js","assets/oauth-callback-N1SniIFs.js","assets/oauth-callback-ai-provider-BZ8yDxr9.js","assets/shell-layout-85fLFVwf.js","assets/task-status-RaaIa42V.js","assets/context-BSzlpoxW.js","assets/decopilot-events-Brt4gAR6.js","assets/index-2hR_U2H-.js","assets/skeleton-CLUePAN0.js","assets/spinner-7bhznOFa.js","assets/use-mcp-prompts-DY_yf0WC.js","assets/form-DPsme8JL.js","assets/index-Bgix03M4.js","assets/usage-BW6ztpN6.js","assets/integration-icon-ByIZ-Vgj.js","assets/ArrowUp-D6ltkV3R.js","assets/Type01-CySkENi6.js","assets/FolderClosed-BKB_NgWm.js","assets/index-CtkIjbbq.js","assets/User01-CItwHvE1.js","assets/XClose-BLvk3pvY.js","assets/Zap-CiHJmamA.js","assets/org-ai-providers-DFHn6TCP.js","assets/avatar-BZ4Frci2.js","assets/ai-providers-logos-idzpcoUr.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/marked.esm-BaswSlok.js","assets/tabs-Du7uGFqP.js","assets/drawer-CwKj53Jm.js","assets/select-virtual-mcp-CjfXEnho.js","assets/use-virtual-mcp-2qhGJdPe.js","assets/use-create-virtual-mcp-CEBO__7d.js","assets/use-mcp-resources-BnmpykKD.js","assets/collapsible-D84K6rP8.js","assets/index-Dg9iIj2F.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-C8wEMNqP.js","assets/types-llndI7Ky.js","assets/useSuspenseInfiniteQuery-DRfcYfXZ.js","assets/editable-task-title-HEFeF21g.js","assets/tasks-panel-CT_8gQvL.js","assets/collection-search-fzGK39qM.js","assets/user-DXILGeu2.js","assets/format-time-CMKyl-GC.js","assets/empty-state-B8NhLY9v.js","assets/create-project-dialog-RIITFpVV.js","assets/slug-DcxyEoi0.js","assets/use-project-W-5l7vWa.js","assets/create-organization-dialog-OZCitfn2.js","assets/use-mcp-tools-CmOfbC2t.js","assets/resizable-BceA9DHD.js","assets/home-Cg6y-M7X.js","assets/project-layout-ByRNQhjx.js","assets/logo-upload-D5UEFEut.js","assets/project-plugins-8LQo3YBE.js","assets/registry-utils-Cz03qmOa.js","assets/workflow-CBGVBFDu.js","assets/collections-BsFnKFn5.js","assets/use-install-from-registry-Du1Xu864.js","assets/extract-connection-data-NSojo21r.js","assets/constants-BqeudQjB.js","assets/generate-id-Dyweu44Y.js","assets/members-b1hYnwix.js","assets/collection-display-button-ZvHBt_eA.js","assets/breadcrumb-BBMvtdg-.js","assets/collection-table-wrapper-DsHGysPH.js","assets/use-members-BZM-R1qG.js","assets/command-BnzawGxz.js","assets/index-BZyxukAe.js","assets/page-B721jXQm.js","assets/import-from-deco-dialog-CBUqBAZP.js","assets/tasks-x-XNinod.js","assets/layout-CgN1mZAZ.js","assets/general-CPYyC5Rn.js","assets/danger-zone-CEP2ON89.js","assets/dependencies-LZwXzbBO.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/sidebar-settings-CvK0z-ir.js","assets/plugins-D7XVdEz7.js","assets/danger-DuoByYJO.js","assets/projects-list-CfdMQhGh.js","assets/connections-CbWHLS_c.js","assets/collection-tabs-vUhndfXI.js","assets/connection-card-D7msIZJv.js","assets/use-infinite-scroll-JQzncaIM.js","assets/use-list-state-BG8gUSh9.js","assets/use-store-discovery-DfcEdPeQ.js","assets/connection-slug-Bw8dtz1U.js","assets/slugify-CEUa2lfQ.js","assets/env-vars-editor-CvqhjBEu.js","assets/connection-detail-D84CXhKZ.js","assets/index-3WTtRDrt.js","assets/index-DxaXuxCe.js","assets/index-D_CXrtwd.js","assets/layout-Dp8uiQPy.js","assets/monitoring-stats-row-Bzy3PCZQ.js","assets/tools-list-BQiqsKN2.js","assets/collection-detail-w8yO-_Ye.js","assets/save-actions-BENpgKCD.js","assets/monaco-editor-D1C0-UAW.js","assets/empty-state-D4ck9NGY.js","assets/scroll-area-4KH7xRn7.js","assets/monitoring-DmCgdBgZ.js","assets/time-range-picker-DVyznax9.js","assets/monitoring-dashboard-view-BfDYcRJx.js","assets/monitoring-dashboard-edit-DL4fVGYY.js","assets/page-BgKYb-6_.js","assets/mcp-server-card-xRGKpDYM.js","assets/mcp-server-detail-Dfcu5k0K.js","assets/mcp-server-detail-DWnTz46N.css","assets/automations-Bp3tAuBH.js","assets/use-automations-DhJnP2CA.js","assets/automation-detail-Bc9ASowB.js","assets/agents-DrhC84qH.js","assets/agent-connections-preview-BQSZMPrI.js","assets/agent-detail-eyC4qU2J.js","assets/project-app-view-Wq81-D6Q.js","assets/workflow-ClE3y6g8.js","assets/dynamic-plugin-layout-C5CHlaVD.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function C5(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();const A5="modulepreload",I5=function(e){return"/"+e},aE={},lt=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");a=c(n.map(h=>{if(h=I5(h),h in aE)return;aE[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":A5,m||(g.as="script"),g.crossOrigin="",g.href=h,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((y,b)=>{g.addEventListener("load",y),g.addEventListener("error",()=>b(Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var LJ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hg={exports:{}},Sc={};var iE;function N5(){if(iE)return Sc;iE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var c=null;if(s!==void 0&&(c=""+s),a.key!==void 0&&(c=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:s}}return Sc.Fragment=t,Sc.jsx=n,Sc.jsxs=n,Sc}var sE;function M5(){return sE||(sE=1,Hg.exports=N5()),Hg.exports}var O=M5(),Gg={exports:{}},wc={},Zg={exports:{}},Kg={};var lE;function P5(){return lE||(lE=1,(function(e){function t(F,W){var ie=F.length;F.push(W);e:for(;0<ie;){var de=ie-1>>>1,Y=F[de];if(0<a(Y,W))F[de]=W,F[ie]=Y,ie=de;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var W=F[0],ie=F.pop();if(ie!==W){F[0]=ie;e:for(var de=0,Y=F.length,D=Y>>>1;de<D;){var q=2*(de+1)-1,B=F[q],k=q+1,z=F[k];if(0>a(B,ie))k<Y&&0>a(z,B)?(F[de]=z,F[k]=ie,de=k):(F[de]=B,F[q]=ie,de=q);else if(k<Y&&0>a(z,ie))F[de]=z,F[k]=ie,de=k;else break e}}return W}function a(F,W){var ie=F.sortIndex-W.sortIndex;return ie!==0?ie:F.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],h=[],m=1,p=null,g=3,y=!1,b=!1,E=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function x(F){for(var W=n(h);W!==null;){if(W.callback===null)r(h);else if(W.startTime<=F)r(h),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(h)}}function C(F){if(E=!1,x(F),!b)if(n(d)!==null)b=!0,I||(I=!0,G());else{var W=n(h);W!==null&&le(C,W.startTime-F)}}var I=!1,N=-1,P=5,j=-1;function K(){return S?!0:!(e.unstable_now()-j<P)}function U(){if(S=!1,I){var F=e.unstable_now();j=F;var W=!0;try{e:{b=!1,E&&(E=!1,w(N),N=-1),y=!0;var ie=g;try{t:{for(x(F),p=n(d);p!==null&&!(p.expirationTime>F&&K());){var de=p.callback;if(typeof de=="function"){p.callback=null,g=p.priorityLevel;var Y=de(p.expirationTime<=F);if(F=e.unstable_now(),typeof Y=="function"){p.callback=Y,x(F),W=!0;break t}p===n(d)&&r(d),x(F)}else r(d);p=n(d)}if(p!==null)W=!0;else{var D=n(h);D!==null&&le(C,D.startTime-F),W=!1}}break e}finally{p=null,g=ie,y=!1}W=void 0}}finally{W?G():I=!1}}}var G;if(typeof T=="function")G=function(){T(U)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,J=$.port2;$.port1.onmessage=U,G=function(){J.postMessage(null)}}else G=function(){R(U,0)};function le(F,W){N=R(function(){F(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(F){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ie=g;g=W;try{return F()}finally{g=ie}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(F,W){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ie=g;g=F;try{return W()}finally{g=ie}},e.unstable_scheduleCallback=function(F,W,ie){var de=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?de+ie:de):ie=de,F){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=ie+Y,F={id:m++,callback:W,priorityLevel:F,startTime:ie,expirationTime:Y,sortIndex:-1},ie>de?(F.sortIndex=ie,t(h,F),n(d)===null&&F===n(h)&&(E?(w(N),N=-1):E=!0,le(C,ie-de))):(F.sortIndex=Y,t(d,F),b||y||(b=!0,I||(I=!0,G()))),F},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(F){var W=g;return function(){var ie=g;g=W;try{return F.apply(this,arguments)}finally{g=ie}}}})(Kg)),Kg}var cE;function D5(){return cE||(cE=1,Zg.exports=P5()),Zg.exports}var Yg={exports:{}},Ke={};var uE;function k5(){if(uE)return Ke;uE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function y(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function R(D,q,B){this.props=D,this.context=q,this.refs=S,this.updater=B||b}R.prototype.isReactComponent={},R.prototype.setState=function(D,q){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,q,"setState")},R.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function w(){}w.prototype=R.prototype;function T(D,q,B){this.props=D,this.context=q,this.refs=S,this.updater=B||b}var x=T.prototype=new w;x.constructor=T,E(x,R.prototype),x.isPureReactComponent=!0;var C=Array.isArray;function I(){}var N={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function j(D,q,B){var k=B.ref;return{$$typeof:e,type:D,key:q,ref:k!==void 0?k:null,props:B}}function K(D,q){return j(D.type,q,D.props)}function U(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function G(D){var q={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(B){return q[B]})}var $=/\/+/g;function J(D,q){return typeof D=="object"&&D!==null&&D.key!=null?G(""+D.key):q.toString(36)}function le(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(I,I):(D.status="pending",D.then(function(q){D.status==="pending"&&(D.status="fulfilled",D.value=q)},function(q){D.status==="pending"&&(D.status="rejected",D.reason=q)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function F(D,q,B,k,z){var Q=typeof D;(Q==="undefined"||Q==="boolean")&&(D=null);var pe=!1;if(D===null)pe=!0;else switch(Q){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(D.$$typeof){case e:case t:pe=!0;break;case m:return pe=D._init,F(pe(D._payload),q,B,k,z)}}if(pe)return z=z(D),pe=k===""?"."+J(D,0):k,C(z)?(B="",pe!=null&&(B=pe.replace($,"$&/")+"/"),F(z,q,B,"",function(Ie){return Ie})):z!=null&&(U(z)&&(z=K(z,B+(z.key==null||D&&D.key===z.key?"":(""+z.key).replace($,"$&/")+"/")+pe)),q.push(z)),1;pe=0;var ge=k===""?".":k+":";if(C(D))for(var Te=0;Te<D.length;Te++)k=D[Te],Q=ge+J(k,Te),pe+=F(k,q,B,Q,z);else if(Te=y(D),typeof Te=="function")for(D=Te.call(D),Te=0;!(k=D.next()).done;)k=k.value,Q=ge+J(k,Te++),pe+=F(k,q,B,Q,z);else if(Q==="object"){if(typeof D.then=="function")return F(le(D),q,B,k,z);throw q=String(D),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return pe}function W(D,q,B){if(D==null)return D;var k=[],z=0;return F(D,k,"","",function(Q){return q.call(B,Q,z++)}),k}function ie(D){if(D._status===-1){var q=D._result;q=q(),q.then(function(B){(D._status===0||D._status===-1)&&(D._status=1,D._result=B)},function(B){(D._status===0||D._status===-1)&&(D._status=2,D._result=B)}),D._status===-1&&(D._status=0,D._result=q)}if(D._status===1)return D._result.default;throw D._result}var de=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},Y={map:W,forEach:function(D,q,B){W(D,function(){q.apply(this,arguments)},B)},count:function(D){var q=0;return W(D,function(){q++}),q},toArray:function(D){return W(D,function(q){return q})||[]},only:function(D){if(!U(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ke.Activity=p,Ke.Children=Y,Ke.Component=R,Ke.Fragment=n,Ke.Profiler=a,Ke.PureComponent=T,Ke.StrictMode=r,Ke.Suspense=d,Ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ke.__COMPILER_RUNTIME={__proto__:null,c:function(D){return N.H.useMemoCache(D)}},Ke.cache=function(D){return function(){return D.apply(null,arguments)}},Ke.cacheSignal=function(){return null},Ke.cloneElement=function(D,q,B){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var k=E({},D.props),z=D.key;if(q!=null)for(Q in q.key!==void 0&&(z=""+q.key),q)!P.call(q,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&q.ref===void 0||(k[Q]=q[Q]);var Q=arguments.length-2;if(Q===1)k.children=B;else if(1<Q){for(var pe=Array(Q),ge=0;ge<Q;ge++)pe[ge]=arguments[ge+2];k.children=pe}return j(D.type,z,k)},Ke.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:s,_context:D},D},Ke.createElement=function(D,q,B){var k,z={},Q=null;if(q!=null)for(k in q.key!==void 0&&(Q=""+q.key),q)P.call(q,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(z[k]=q[k]);var pe=arguments.length-2;if(pe===1)z.children=B;else if(1<pe){for(var ge=Array(pe),Te=0;Te<pe;Te++)ge[Te]=arguments[Te+2];z.children=ge}if(D&&D.defaultProps)for(k in pe=D.defaultProps,pe)z[k]===void 0&&(z[k]=pe[k]);return j(D,Q,z)},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(D){return{$$typeof:u,render:D}},Ke.isValidElement=U,Ke.lazy=function(D){return{$$typeof:m,_payload:{_status:-1,_result:D},_init:ie}},Ke.memo=function(D,q){return{$$typeof:h,type:D,compare:q===void 0?null:q}},Ke.startTransition=function(D){var q=N.T,B={};N.T=B;try{var k=D(),z=N.S;z!==null&&z(B,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(I,de)}catch(Q){de(Q)}finally{q!==null&&B.types!==null&&(q.types=B.types),N.T=q}},Ke.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ke.use=function(D){return N.H.use(D)},Ke.useActionState=function(D,q,B){return N.H.useActionState(D,q,B)},Ke.useCallback=function(D,q){return N.H.useCallback(D,q)},Ke.useContext=function(D){return N.H.useContext(D)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(D,q){return N.H.useDeferredValue(D,q)},Ke.useEffect=function(D,q){return N.H.useEffect(D,q)},Ke.useEffectEvent=function(D){return N.H.useEffectEvent(D)},Ke.useId=function(){return N.H.useId()},Ke.useImperativeHandle=function(D,q,B){return N.H.useImperativeHandle(D,q,B)},Ke.useInsertionEffect=function(D,q){return N.H.useInsertionEffect(D,q)},Ke.useLayoutEffect=function(D,q){return N.H.useLayoutEffect(D,q)},Ke.useMemo=function(D,q){return N.H.useMemo(D,q)},Ke.useOptimistic=function(D,q){return N.H.useOptimistic(D,q)},Ke.useReducer=function(D,q,B){return N.H.useReducer(D,q,B)},Ke.useRef=function(D){return N.H.useRef(D)},Ke.useState=function(D){return N.H.useState(D)},Ke.useSyncExternalStore=function(D,q,B){return N.H.useSyncExternalStore(D,q,B)},Ke.useTransition=function(){return N.H.useTransition()},Ke.version="19.2.4",Ke}var dE;function gi(){return dE||(dE=1,Yg.exports=k5()),Yg.exports}var Wg={exports:{}},Xn={};var fE;function L5(){if(fE)return Xn;fE=1;var e=gi();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(d,h,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xn.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(d,h,null,m)},Xn.flushSync=function(d){var h=c.T,m=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=h,r.p=m,r.d.f()}},Xn.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(d,h))},Xn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Xn.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,p=u(m,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,y=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:y}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:y,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Xn.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=u(h.as,h.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(d)},Xn.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,p=u(m,h.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Xn.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=u(h.as,h.crossOrigin);r.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(d)},Xn.requestFormReset=function(d){r.d.r(d)},Xn.unstable_batchedUpdates=function(d,h){return d(h)},Xn.useFormState=function(d,h,m){return c.H.useFormState(d,h,m)},Xn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Xn.version="19.2.4",Xn}var hE;function Lx(){if(hE)return Wg.exports;hE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wg.exports=L5(),Wg.exports}var pE;function j5(){if(pE)return wc;pE=1;var e=D5(),t=gi(),n=Lx();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var i=o,l=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(l=i.return),o=i.return;while(o)}return i.tag===3?l:null}function c(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function u(o){if(o.tag===31){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function h(o){var i=o.alternate;if(!i){if(i=s(o),i===null)throw Error(r(188));return i!==o?null:o}for(var l=o,f=i;;){var v=l.return;if(v===null)break;var _=v.alternate;if(_===null){if(f=v.return,f!==null){l=f;continue}break}if(v.child===_.child){for(_=v.child;_;){if(_===l)return d(v),o;if(_===f)return d(v),i;_=_.sibling}throw Error(r(188))}if(l.return!==f.return)l=v,f=_;else{for(var M=!1,L=v.child;L;){if(L===l){M=!0,l=v,f=_;break}if(L===f){M=!0,f=v,l=_;break}L=L.sibling}if(!M){for(L=_.child;L;){if(L===l){M=!0,l=_,f=v;break}if(L===f){M=!0,f=_,l=v;break}L=L.sibling}if(!M)throw Error(r(189))}}if(l.alternate!==f)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?o:i}function m(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=m(o),i!==null)return i;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),T=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function G(o){return o===null||typeof o!="object"?null:(o=U&&o[U]||o["@@iterator"],typeof o=="function"?o:null)}var $=Symbol.for("react.client.reference");function J(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===$?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case E:return"Fragment";case R:return"Profiler";case S:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList";case j:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case b:return"Portal";case T:return o.displayName||"Context";case w:return(o._context.displayName||"Context")+".Consumer";case x:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case N:return i=o.displayName||null,i!==null?i:J(o.type)||"Memo";case P:i=o._payload,o=o._init;try{return J(o(i))}catch{}}return null}var le=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},de=[],Y=-1;function D(o){return{current:o}}function q(o){0>Y||(o.current=de[Y],de[Y]=null,Y--)}function B(o,i){Y++,de[Y]=o.current,o.current=i}var k=D(null),z=D(null),Q=D(null),pe=D(null);function ge(o,i){switch(B(Q,i),B(z,o),B(k,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?Cw(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=Cw(i),o=Aw(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}q(k),B(k,o)}function Te(){q(k),q(z),q(Q)}function Ie(o){o.memoizedState!==null&&B(pe,o);var i=k.current,l=Aw(i,o.type);i!==l&&(B(z,o),B(k,l))}function H(o){z.current===o&&(q(k),q(z)),pe.current===o&&(q(pe),vc._currentValue=ie)}var re,ye;function ae(o){if(re===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);re=i&&i[1]||"",ye=-1<l.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+re+o+ye}var ce=!1;function Oe(o,i){if(!o||ce)return"";ce=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(i){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(me){var he=me}Reflect.construct(o,[],Re)}else{try{Re.call()}catch(me){he=me}o.call(Re.prototype)}}else{try{throw Error()}catch(me){he=me}(Re=o())&&typeof Re.catch=="function"&&Re.catch(function(){})}}catch(me){if(me&&he&&typeof me.stack=="string")return[me.stack,he.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=f.DetermineComponentFrameRoot(),M=_[0],L=_[1];if(M&&L){var X=M.split(`
|
|
@@ -189,4 +189,4 @@ At the end, provide a concise summary of:
|
|
|
189
189
|
- What failed
|
|
190
190
|
- What could not be tested and why
|
|
191
191
|
- If some tool needs user-specific context (email/account/tenant), explicitly output a "CONTEXT_REQUIRED" note with what is needed.
|
|
192
|
-
`.trim(),UX=A.lazy(()=>lt(()=>import("./registry-layout-CdBoBkB6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43]))),VX={id:$X,description:zX,LayoutComponent:UX,setup:e=>{e.registerSidebarGroup({id:"private-registry",label:"Private Registry",items:[{icon:O.jsx(f3,{size:16}),label:"Registry"}],defaultExpanded:!0})}},FX="MCP Workflows",BX="Create workflows using your MCP tools",qX=A.lazy(()=>lt(()=>import("./plugin-header-DT9lR12I.js"),__vite__mapDeps([44,12,33,45]))),HX=A.lazy(()=>lt(()=>import("./plugin-empty-state-Bt8UXvj0.js"),__vite__mapDeps([46,45]))),GX={id:FX,description:BX,renderHeader:e=>O.jsx(qX,{...e}),renderEmptyState:()=>O.jsx(HX,{})},ZX=[VX,GX],wi=HD({component:()=>O.jsx(jX,{children:O.jsx(DX,{children:O.jsx(A.Suspense,{fallback:O.jsx(d3,{}),children:O.jsx(gT,{})})})})}),KX=at({getParentRoute:()=>wi,path:"/login",component:pt(()=>lt(()=>import("./login-Cx7hoJoT.js"),__vite__mapDeps([47,5,10]))),validateSearch:xo(()=>xe({next:V().optional(),client_id:V().optional(),redirect_uri:V().optional(),response_type:V().optional(),state:V().optional(),scope:V().optional(),code_challenge:V().optional(),code_challenge_method:V().optional()}))}),YX=at({getParentRoute:()=>wi,path:"/reset-password",component:pt(()=>lt(()=>import("./reset-password-BL4AtRcT.js"),__vite__mapDeps([48,5,10]))),validateSearch:xo(()=>xe({token:V().optional(),error:V().optional()}))}),WX=at({getParentRoute:()=>wi,path:"/auth/$pathname",component:pt(()=>lt(()=>import("./auth-catchall-CuUUPNMf.js"),[]))}),QX=at({getParentRoute:()=>wi,path:"/store/$appName",component:pt(()=>lt(()=>import("./store-invite-D4qgWC83.js"),[])),validateSearch:xo(()=>xe({serverName:V().optional()}))}),XX=at({getParentRoute:()=>wi,path:"/oauth/callback",component:pt(()=>lt(()=>import("./oauth-callback-3Syoq1nk.js"),__vite__mapDeps([49,21])))}),JX=at({getParentRoute:()=>wi,path:"/oauth/callback/ai-provider",component:pt(()=>lt(()=>import("./oauth-callback-ai-provider-udnTMnIE.js"),__vite__mapDeps([50,21])))}),Dp=at({getParentRoute:()=>wi,id:"shell",component:pt(()=>lt(()=>import("./shell-layout-BVpZ2wZ-.js"),__vite__mapDeps([51,52,53,6,54,55,42,56,57,18,19,58,4,23,24,59,30,10,60,61,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,5,21,43,22,3,29,26,67,68,69,70,28,16,71,72,73,74,31,32,41,75,76,38,77,78,79,39,80,81,82,83,84,85,86,87,8,88,89,90,91,92,93,11,94,36,95,96,97,27,98,99])))}),eJ=at({getParentRoute:()=>Dp,path:"/",component:pt(()=>lt(()=>import("./home-29e6ki_m.js"),__vite__mapDeps([100,28,71,67,25,12,43,22,68,10,97,27,59,30,57,5]))),beforeLoad:async()=>{const{data:e}=await CT.organization.list();if(!e)return;const t=localStorage.getItem(kx.lastOrgSlug());if(t){if(e.some(a=>a.slug===t))throw os({to:"/$org/$project",params:{org:t,project:pi}});localStorage.removeItem(kx.lastOrgSlug())}const n=e.length===1?e[0]:void 0;if(n)throw os({to:"/$org/$project",params:{org:n.slug,project:pi}})}}),tJ=at({getParentRoute:()=>Dp,path:"/$org",beforeLoad:({params:e})=>{throw os({to:"/$org/$project",params:{org:e.org,project:pi}})}}),En=at({getParentRoute:()=>Dp,path:"/$org/$project",component:pt(()=>lt(()=>import("./project-layout-DWnRAr4s.js"),__vite__mapDeps([101,96,4,6,23,24,37,56,70,66,5,18,19,25,62,2,63,1,64,12,33,13,34,14,20,45,65,21,43,22,3,29,26,67,68,69,28,10,16,71,42,72,73,74,35,31,32,55,59,30,102,103,40,39,104,105,106,107,108,109,110,111,112,11,9,90,113,114,15,38,115,27,93,36,116,117]))),validateSearch:xe({settings:V().optional()})}),nJ=at({getParentRoute:()=>En,path:"/",component:pt(()=>lt(()=>import("./page-B8I6CLK9.js"),__vite__mapDeps([118,52,53,6,54,55,42,56,57,18,19,58,4,23,24,59,30,10,60,61,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,5,21,43,22,3,29,26,67,68,69,70,28,16,71,72,73,74,31,32,41,75,76,38,77,78,79,39,80,81,82,83,84,85,86,87,8,88,89,90,91,92,93,11,119,110,95,99])))}),rJ=at({getParentRoute:()=>En,path:"/tasks",component:pt(()=>lt(()=>import("./tasks-DR3nWr8j.js"),__vite__mapDeps([120,89,52,53,6,54,55,42,56,57,18,19,58,4,23,24,59,30,10,60,61,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,5,21,43,22,3,29,26,67,68,69,70,28,16,71,72,73,74,31,32,41,75,76,38,77,78,79,39,80,81,82,83,84,85,86,87,8,90,91,92,93,11,113])))}),hs=at({getParentRoute:()=>En,path:"/settings",beforeLoad:({params:e})=>{if(e.project===pi)throw os({to:"/$org/$project",params:e,search:{settings:"org.general"}})},component:pt(()=>lt(()=>import("./layout-AYXb28rc.js"),__vite__mapDeps([121,56,96,4,6,66,5,18,19,24,113,13,37,2,3,69])))}),oJ=at({getParentRoute:()=>hs,path:"/",beforeLoad:({params:e})=>{throw os({to:"/$org/$project/settings/general",params:{org:e.org,project:e.project}})},component:()=>null}),aJ=at({getParentRoute:()=>hs,path:"/general",component:pt(()=>lt(()=>import("./general-g1xkIict.js"),__vite__mapDeps([122,5,6,10,36,59,30,102,26,24,123,27])))}),iJ=at({getParentRoute:()=>hs,path:"/dependencies",component:pt(()=>lt(()=>import("./dependencies-usSRHhHV.js"),__vite__mapDeps([124,4,5,42,116,117,22,43,24,40,39,6,125])))}),sJ=at({getParentRoute:()=>hs,path:"/sidebar",component:pt(()=>lt(()=>import("./sidebar-settings-BpXHJmnQ.js"),__vite__mapDeps([126,4,5,35,10,6,86,125])))}),lJ=at({getParentRoute:()=>hs,path:"/plugins",component:pt(()=>lt(()=>import("./plugins-S0nxg7Xk.js"),__vite__mapDeps([127,103,4,5,6,35,30,2,40,39,104,105,106,107,108,109,110,21,43,31,32,19,12,33,34])))}),cJ=at({getParentRoute:()=>hs,path:"/danger",component:pt(()=>lt(()=>import("./danger-CCuvZ302.js"),__vite__mapDeps([128,123,5,6,10,27])))}),Ur=({params:e})=>{if(e.project!==pi)throw os({to:"/$org/$project",params:{org:e.org,project:e.project}})},uJ=at({getParentRoute:()=>En,path:"/projects",beforeLoad:Ur,component:pt(()=>lt(()=>import("./projects-list-Dl8bD1xL.js"),__vite__mapDeps([129,96,4,6,66,5,18,19,24,90,21,22,10,71,67,73,74,93,94,23,59,30,36,95,12,119,37,110,113,13,65,43])))}),dJ=at({getParentRoute:()=>En,path:"/members",beforeLoad:Ur,component:pt(()=>lt(()=>import("./members-CczX95O-.js"),__vite__mapDeps([111,112,11,12,13,14,63,64,62,2,25,37,1,33,34,20,45,65,66,4,5,18,19,24,21,43,22,3,29,26,67,68,69,9,90,10,113,114,15,72,6,38,40,39,115,71,27,23,35,93,59,30,31,32,36,28,116,117,42])))}),fJ=at({getParentRoute:()=>En,path:"/mcps",beforeLoad:Ur,component:pt(()=>lt(()=>import("./connections-CzVW7p9D.js"),__vite__mapDeps([130,110,112,11,12,13,14,63,64,62,2,25,37,1,33,34,20,45,65,66,4,5,18,19,24,21,43,22,3,29,26,67,68,69,9,90,10,131,132,28,93,104,105,106,6,133,134,17,135,7,8,136,137,27,113,38,23,77,59,30,31,32,36,40,39,79,138,108,109]))),validateSearch:xo(()=>xe({action:Wt(["create"]).optional(),tab:Wt(["all","connected"]).optional()}))}),hJ=at({getParentRoute:()=>En,path:"/mcps/$appSlug",beforeLoad:Ur,component:pt(()=>lt(()=>import("./connection-detail-CGya4X8s.js"),__vite__mapDeps([139,110,93,138,10,43,29,104,105,106,6,140,98,4,5,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,18,19,24,21,22,3,26,67,68,69,40,39,109,108,107,31,32,141,142,117,78,42,79,80,115,71,81,58,113,27,59,30,136,137,143,144,76,86,85,90,145,112,11,9,114,15,28]))),validateSearch:xo(()=>xe({tab:V().optional()}))}),pJ=at({getParentRoute:()=>En,path:"/mcps/$appSlug/$collectionName/$itemId",beforeLoad:Ur,component:pt(()=>lt(()=>import("./collection-detail-6j0HNb-_.js"),__vite__mapDeps([146,93,39,5,6,59,30,10,36,143,66,4,18,19,24,147,1,21,85,81,86,31,32,12,33,34,25,62,2,63,37,64,13,14,20,45,65,43,22,3,29,26,67,68,69,113,140,98,40,104,105,106,109,108,110,107,141,142,117,78,42,79,80,136,137,84,145,112,11,9,90,114,15,28,53,54,55,148,57,149,99,23,60,83,150]))),validateSearch:xo(()=>xe({replayId:V().optional()}))}),mJ=at({getParentRoute:()=>En,path:"/monitoring",beforeLoad:Ur,component:pt(()=>lt(()=>import("./monitoring-9XsThidn.js"),__vite__mapDeps([151,90,21,22,10,66,4,5,18,19,24,113,13,93,152,9,42,12,20,64,148,57,150,32,33,62,2,25,63,37,1,34,14,45,65,43,3,29,26,67,68,69,15,144,141,6,98,132,28,11,27,133,115,87,8,40,39,79,38,116,117,31,36,131,35,30]))),validateSearch:xo(()=>xe({tab:Wt(["overview","audit","dashboards"]).default("overview"),from:V().default("now-30m"),to:V().default("now"),connectionId:Ae(V()).optional().default([]),virtualMcpId:Ae(V()).optional().default([]),tool:V().default(""),status:Wt(["all","success","errors"]).default("all"),search:V().default(""),page:Et().optional(),streaming:gt().default(!0),propertyFilters:V().default(""),hideSystem:gt().default(!1)}))}),gJ=at({getParentRoute:()=>En,path:"/monitoring/dashboards/$dashboardId",beforeLoad:Ur,component:pt(()=>lt(()=>import("./monitoring-dashboard-view-C154UPGx.js"),__vite__mapDeps([153,6,152,9,42,18,19,12,20,64,148,57,150,32,33,13,10,143,66,4,5,24,113,31,34,36,43,29,68])))}),vJ=at({getParentRoute:()=>En,path:"/monitoring/dashboards/$dashboardId/edit",beforeLoad:Ur,component:pt(()=>lt(()=>import("./monitoring-dashboard-edit-6dYajQ_1.js"),__vite__mapDeps([154,40,39,5,6,10,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,4,18,19,24,21,43,22,3,29,26,67,68,69,38,42,31,32,16,143,147,113])))}),p3=at({getParentRoute:()=>En,path:"/store",beforeLoad:Ur,component:pt(()=>lt(()=>import("./page-DG6axqmW.js"),__vite__mapDeps([155,66,4,5,18,19,24,113,13,20,62,2,25,63,37,1,64,12,33,34,14,45,65,21,43,22,3,29,26,67,68,69,135,7,8,104,105,106,6,40,39,137,90,10,156,28,42,93])))}),yJ=at({getParentRoute:()=>p3,path:"/$appName",component:pt(()=>lt(()=>import("./mcp-server-detail-BVknczom.js"),__vite__mapDeps([157,25,21,62,2,63,37,1,64,12,33,13,34,14,20,45,65,66,4,5,18,19,24,43,22,3,29,26,67,68,69,11,93,104,105,106,6,75,145,112,9,90,10,114,15,28,86,143,131,156,113,40,39,98,108,109,110,137,158]))),validateSearch:xo(()=>xe({registryId:V().optional(),serverName:V().optional(),itemId:V().optional()}))}),_J=at({getParentRoute:()=>En,path:"/automations",beforeLoad:Ur,component:pt(()=>lt(()=>import("./automations-BDE5mXwW.js"),__vite__mapDeps([159,90,21,22,10,93,66,4,5,18,19,24,160,6,134,17,91,71,67,27,9,113,13,11,12,14,15,63,43,29])))}),bJ=at({getParentRoute:()=>En,path:"/automations/$automationId",beforeLoad:Ur,component:pt(()=>lt(()=>import("./automation-detail-D21R_NZo.js"),__vite__mapDeps([161,93,143,66,4,5,18,19,24,147,1,21,72,6,52,53,54,55,42,56,57,58,23,59,30,10,60,61,62,2,25,63,37,64,12,33,13,34,14,20,45,65,43,22,3,29,26,67,68,69,70,28,16,71,73,74,31,32,41,75,76,38,77,78,79,39,80,81,82,83,84,85,86,87,8,91,160,27,113,11,35]))),validateSearch:xo(()=>xe({tab:V().optional()}))}),SJ=at({getParentRoute:()=>En,path:"/agents",beforeLoad:Ur,component:pt(()=>lt(()=>import("./agents-DGMB2xM-.js"),__vite__mapDeps([162,112,11,12,13,14,63,64,62,2,25,37,1,33,34,20,45,65,66,4,5,18,19,24,21,43,22,3,29,26,67,68,69,9,90,10,113,132,28,93,134,17,80,79,39,6,27,38,23,15,91,71,163,40,92,74]))),validateSearch:xo(()=>xe({action:Wt(["create"]).optional()}))}),wJ=at({getParentRoute:()=>En,path:"/agents/$agentId",beforeLoad:Ur,component:pt(()=>lt(()=>import("./agent-detail-S7Xnyf74.js"),__vite__mapDeps([164,53,6,54,55,93,10,42,150,32,64,22,62,2,25,63,37,1,12,33,13,34,14,20,45,65,66,4,5,18,19,24,21,43,3,29,26,67,68,69,9,82,83,35,36,40,39,79,113,143,147,90,145,112,11,114,15,28,86,38,23,76,98,81,58,137,77,142,163]))),validateSearch:xo(()=>xe({tab:V().optional()}))}),EJ=at({getParentRoute:()=>En,path:"/apps/$connectionId/$toolName",component:pt(()=>lt(()=>import("./project-app-view-fuhRg8H7.js"),__vite__mapDeps([165,40,39,5,6,98,4,84,85,81,86,53,54,55,66,18,19,24])))}),RJ=at({getParentRoute:()=>En,path:"/workflows",component:pt(()=>lt(()=>import("./workflow-CrjjFLE3.js"),__vite__mapDeps([166,6,110,112,11,12,13,14,63,64,62,2,25,37,1,33,34,20,45,65,66,4,5,18,19,24,21,43,22,3,29,26,67,68,69,9,90,10,28,114,15,149,91,71,93,134,17,109,106,136,137,27,39,40,143,113])))}),m3=at({getParentRoute:()=>En,path:"/$pluginId",component:pt(()=>lt(()=>import("./dynamic-plugin-layout-COn0BiTQ.js"),__vite__mapDeps([167,21,105,106,6,4,40,39,5,3,66,18,19,24])))}),OJ=[],xJ=[],g3=[];ZX.forEach(e=>{if(!e.setup)return;const t={parentRoute:m3,routing:{createRoute:at,lazyRouteComponent:pt},registerRootSidebarItem:n=>OJ.push({pluginId:e.id,...n}),registerSidebarGroup:n=>xJ.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{g3.push(...n)}};e.setup(t)});const TJ=m3.addChildren(g3),CJ=p3.addChildren([yJ]),AJ=hs.addChildren([oJ,aJ,iJ,sJ,lJ,cJ]),IJ=[nJ,rJ,AJ,uJ,dJ,fJ,hJ,pJ,mJ,gJ,vJ,CJ,_J,bJ,SJ,wJ,RJ,EJ,TJ],NJ=En.addChildren(IJ),MJ=Dp.addChildren([eJ,tJ,NJ]),PJ=wi.addChildren([MJ,KX,YX,WX,XX,JX,QX]),DJ=e6({routeTree:PJ}),kJ=document.getElementById("root");z5.createRoot(kJ).render(O.jsx(A.StrictMode,{children:O.jsx(r6,{router:DJ})}));export{en as $,cee as A,Ey as B,i3 as C,UJ as D,Pee as E,kx as F,h3 as G,$y as H,jJ as I,Hz as J,Kx as K,UK as L,Zz as M,FJ as N,pi as O,hee as P,u_ as Q,Gz as R,d3 as S,dA as T,RP as U,Aee as V,bP as W,bA as X,JA as Y,gu as Z,EB as _,Iee as a,b0 as a$,An as a0,RB as a1,Xe as a2,OI as a3,wa as a4,ds as a5,uH as a6,fI as a7,hb as a8,see as a9,Yq as aA,Zq as aB,rP as aC,rb as aD,Wh as aE,x4 as aF,C4 as aG,xE as aH,zJ as aI,$J as aJ,Et as aK,Ae as aL,gt as aM,Wt as aN,xo as aO,Ft as aP,jt as aQ,BJ as aR,lp as aS,Sr as aT,gT as aU,xt as aV,Ry as aW,wu as aX,mu as aY,Eo as aZ,du as a_,li as aa,wo as ab,BV as ac,ZV as ad,KV as ae,YV as af,HV as ag,GV as ah,WV as ai,qV as aj,$q as ak,Nq as al,Mq as am,Pq as an,Dq as ao,XJ as ap,JJ as aq,kq as ar,ree as as,nee as at,oee as au,aee as av,iee as aw,tee as ax,eee as ay,Kq as az,Tee as b,a9 as b$,Qc as b0,sP as b1,qn as b2,_r as b3,W5 as b4,EI as b5,uB as b6,h_ as b7,pI as b8,kA as b9,zY as bA,lY as bB,uY as bC,hY as bD,RY as bE,UY as bF,cY as bG,dY as bH,pY as bI,mY as bJ,OY as bK,PY as bL,bee as bM,rt as bN,ee as bO,mi as bP,$X as bQ,D7 as bR,VC as bS,Hn as bT,HC as bU,Bz as bV,lt as bW,OJ as bX,QZ as bY,r7 as bZ,KJ as b_,p_ as ba,au as bb,xA as bc,f_ as bd,d_ as be,dB as bf,fB as bg,XA as bh,QJ as bi,WJ as bj,YJ as bk,LX as bl,tr as bm,ZX as bn,xJ as bo,Fe as bp,qJ as bq,AY as br,IY as bs,nb as bt,KN as bu,ZN as bv,Ap as bw,NN as bx,PN as by,qY as bz,VK as c,vP as c$,KC as c0,HJ as c1,GC as c2,Ky as c3,f7 as c4,GJ as c5,j7 as c6,Wy as c7,Yy as c8,V7 as c9,tY as cA,pee as cB,AN as cC,RW as cD,MY as cE,Eee as cF,gW as cG,_W as cH,XY as cI,eW as cJ,JY as cK,See as cL,Uy as cM,Dee as cN,Vq as cO,dT as cP,hT as cQ,VJ as cR,Uz as cS,$z as cT,Dz as cU,oA as cV,wr as cW,$x as cX,hP as cY,gP as cZ,SP as c_,ZJ as ca,Oee as cb,sX as cc,xee as cd,jY as ce,NL as cf,IN as cg,DN as ch,jN as ci,zN as cj,UN as ck,FN as cl,yee as cm,_ee as cn,gee as co,vee as cp,FK as cq,mee as cr,kN as cs,$N as ct,VN as cu,wee as cv,LN as cw,DQ as cx,Ree as cy,Z_ as cz,ss as d,yP as d0,EP as d1,TE as d2,wP as d3,_P as d4,BW as d5,ot as d6,qT as d7,PZ as d8,LJ as d9,gi as da,ya as db,_2 as dc,ZF as dd,Ro as de,iu as df,w_ as dg,Rl as dh,hi as di,Ea as dj,Oo as dk,nI as dl,YF as dm,XF as dn,WF as dp,jF as dq,f3 as dr,jy as e,fu as f,CT as g,Nee as h,Mee as i,O as j,Ly as k,uee as l,lee as m,dee as n,xe as o,Cee as p,V as q,A as r,OX as s,Bo as t,fee as u,Fo as v,MR as w,dP as x,kX as y,Zx as z};
|
|
192
|
+
`.trim(),UX=A.lazy(()=>lt(()=>import("./registry-layout-BfWTztsz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43]))),VX={id:$X,description:zX,LayoutComponent:UX,setup:e=>{e.registerSidebarGroup({id:"private-registry",label:"Private Registry",items:[{icon:O.jsx(f3,{size:16}),label:"Registry"}],defaultExpanded:!0})}},FX="MCP Workflows",BX="Create workflows using your MCP tools",qX=A.lazy(()=>lt(()=>import("./plugin-header-CBfXQAQ5.js"),__vite__mapDeps([44,12,33,45]))),HX=A.lazy(()=>lt(()=>import("./plugin-empty-state-BIg-myPi.js"),__vite__mapDeps([46,45]))),GX={id:FX,description:BX,renderHeader:e=>O.jsx(qX,{...e}),renderEmptyState:()=>O.jsx(HX,{})},ZX=[VX,GX],wi=HD({component:()=>O.jsx(jX,{children:O.jsx(DX,{children:O.jsx(A.Suspense,{fallback:O.jsx(d3,{}),children:O.jsx(gT,{})})})})}),KX=at({getParentRoute:()=>wi,path:"/login",component:pt(()=>lt(()=>import("./login-EJWlcxg3.js"),__vite__mapDeps([47,5,10]))),validateSearch:xo(()=>xe({next:V().optional(),client_id:V().optional(),redirect_uri:V().optional(),response_type:V().optional(),state:V().optional(),scope:V().optional(),code_challenge:V().optional(),code_challenge_method:V().optional()}))}),YX=at({getParentRoute:()=>wi,path:"/reset-password",component:pt(()=>lt(()=>import("./reset-password-Cj1A6uL-.js"),__vite__mapDeps([48,5,10]))),validateSearch:xo(()=>xe({token:V().optional(),error:V().optional()}))}),WX=at({getParentRoute:()=>wi,path:"/auth/$pathname",component:pt(()=>lt(()=>import("./auth-catchall-omtOF0fb.js"),[]))}),QX=at({getParentRoute:()=>wi,path:"/store/$appName",component:pt(()=>lt(()=>import("./store-invite-fWGyKl7o.js"),[])),validateSearch:xo(()=>xe({serverName:V().optional()}))}),XX=at({getParentRoute:()=>wi,path:"/oauth/callback",component:pt(()=>lt(()=>import("./oauth-callback-N1SniIFs.js"),__vite__mapDeps([49,21])))}),JX=at({getParentRoute:()=>wi,path:"/oauth/callback/ai-provider",component:pt(()=>lt(()=>import("./oauth-callback-ai-provider-BZ8yDxr9.js"),__vite__mapDeps([50,21])))}),Dp=at({getParentRoute:()=>wi,id:"shell",component:pt(()=>lt(()=>import("./shell-layout-85fLFVwf.js"),__vite__mapDeps([51,52,53,6,54,55,42,56,57,18,19,58,4,23,24,59,30,10,60,61,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,5,21,43,22,3,29,26,67,68,69,70,28,16,71,72,73,74,31,32,41,75,76,38,77,78,79,39,80,81,82,83,84,85,86,87,8,88,89,90,91,92,93,11,94,36,95,96,97,27,98,99])))}),eJ=at({getParentRoute:()=>Dp,path:"/",component:pt(()=>lt(()=>import("./home-Cg6y-M7X.js"),__vite__mapDeps([100,28,71,67,25,12,43,22,68,10,97,27,59,30,57,5]))),beforeLoad:async()=>{const{data:e}=await CT.organization.list();if(!e)return;const t=localStorage.getItem(kx.lastOrgSlug());if(t){if(e.some(a=>a.slug===t))throw os({to:"/$org/$project",params:{org:t,project:pi}});localStorage.removeItem(kx.lastOrgSlug())}const n=e.length===1?e[0]:void 0;if(n)throw os({to:"/$org/$project",params:{org:n.slug,project:pi}})}}),tJ=at({getParentRoute:()=>Dp,path:"/$org",beforeLoad:({params:e})=>{throw os({to:"/$org/$project",params:{org:e.org,project:pi}})}}),En=at({getParentRoute:()=>Dp,path:"/$org/$project",component:pt(()=>lt(()=>import("./project-layout-ByRNQhjx.js"),__vite__mapDeps([101,96,4,6,23,24,37,56,70,66,5,18,19,25,62,2,63,1,64,12,33,13,34,14,20,45,65,21,43,22,3,29,26,67,68,69,28,10,16,71,42,72,73,74,35,31,32,55,59,30,102,103,40,39,104,105,106,107,108,109,110,111,112,11,9,90,113,114,15,38,115,27,93,36,116,117]))),validateSearch:xe({settings:V().optional()})}),nJ=at({getParentRoute:()=>En,path:"/",component:pt(()=>lt(()=>import("./page-B721jXQm.js"),__vite__mapDeps([118,52,53,6,54,55,42,56,57,18,19,58,4,23,24,59,30,10,60,61,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,5,21,43,22,3,29,26,67,68,69,70,28,16,71,72,73,74,31,32,41,75,76,38,77,78,79,39,80,81,82,83,84,85,86,87,8,88,89,90,91,92,93,11,119,110,95,99])))}),rJ=at({getParentRoute:()=>En,path:"/tasks",component:pt(()=>lt(()=>import("./tasks-x-XNinod.js"),__vite__mapDeps([120,89,52,53,6,54,55,42,56,57,18,19,58,4,23,24,59,30,10,60,61,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,5,21,43,22,3,29,26,67,68,69,70,28,16,71,72,73,74,31,32,41,75,76,38,77,78,79,39,80,81,82,83,84,85,86,87,8,90,91,92,93,11,113])))}),hs=at({getParentRoute:()=>En,path:"/settings",beforeLoad:({params:e})=>{if(e.project===pi)throw os({to:"/$org/$project",params:e,search:{settings:"org.general"}})},component:pt(()=>lt(()=>import("./layout-CgN1mZAZ.js"),__vite__mapDeps([121,56,96,4,6,66,5,18,19,24,113,13,37,2,3,69])))}),oJ=at({getParentRoute:()=>hs,path:"/",beforeLoad:({params:e})=>{throw os({to:"/$org/$project/settings/general",params:{org:e.org,project:e.project}})},component:()=>null}),aJ=at({getParentRoute:()=>hs,path:"/general",component:pt(()=>lt(()=>import("./general-CPYyC5Rn.js"),__vite__mapDeps([122,5,6,10,36,59,30,102,26,24,123,27])))}),iJ=at({getParentRoute:()=>hs,path:"/dependencies",component:pt(()=>lt(()=>import("./dependencies-LZwXzbBO.js"),__vite__mapDeps([124,4,5,42,116,117,22,43,24,40,39,6,125])))}),sJ=at({getParentRoute:()=>hs,path:"/sidebar",component:pt(()=>lt(()=>import("./sidebar-settings-CvK0z-ir.js"),__vite__mapDeps([126,4,5,35,10,6,86,125])))}),lJ=at({getParentRoute:()=>hs,path:"/plugins",component:pt(()=>lt(()=>import("./plugins-D7XVdEz7.js"),__vite__mapDeps([127,103,4,5,6,35,30,2,40,39,104,105,106,107,108,109,110,21,43,31,32,19,12,33,34])))}),cJ=at({getParentRoute:()=>hs,path:"/danger",component:pt(()=>lt(()=>import("./danger-DuoByYJO.js"),__vite__mapDeps([128,123,5,6,10,27])))}),Ur=({params:e})=>{if(e.project!==pi)throw os({to:"/$org/$project",params:{org:e.org,project:e.project}})},uJ=at({getParentRoute:()=>En,path:"/projects",beforeLoad:Ur,component:pt(()=>lt(()=>import("./projects-list-CfdMQhGh.js"),__vite__mapDeps([129,96,4,6,66,5,18,19,24,90,21,22,10,71,67,73,74,93,94,23,59,30,36,95,12,119,37,110,113,13,65,43])))}),dJ=at({getParentRoute:()=>En,path:"/members",beforeLoad:Ur,component:pt(()=>lt(()=>import("./members-b1hYnwix.js"),__vite__mapDeps([111,112,11,12,13,14,63,64,62,2,25,37,1,33,34,20,45,65,66,4,5,18,19,24,21,43,22,3,29,26,67,68,69,9,90,10,113,114,15,72,6,38,40,39,115,71,27,23,35,93,59,30,31,32,36,28,116,117,42])))}),fJ=at({getParentRoute:()=>En,path:"/mcps",beforeLoad:Ur,component:pt(()=>lt(()=>import("./connections-CbWHLS_c.js"),__vite__mapDeps([130,110,112,11,12,13,14,63,64,62,2,25,37,1,33,34,20,45,65,66,4,5,18,19,24,21,43,22,3,29,26,67,68,69,9,90,10,131,132,28,93,104,105,106,6,133,134,17,135,7,8,136,137,27,113,38,23,77,59,30,31,32,36,40,39,79,138,108,109]))),validateSearch:xo(()=>xe({action:Wt(["create"]).optional(),tab:Wt(["all","connected"]).optional()}))}),hJ=at({getParentRoute:()=>En,path:"/mcps/$appSlug",beforeLoad:Ur,component:pt(()=>lt(()=>import("./connection-detail-D84CXhKZ.js"),__vite__mapDeps([139,110,93,138,10,43,29,104,105,106,6,140,98,4,5,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,18,19,24,21,22,3,26,67,68,69,40,39,109,108,107,31,32,141,142,117,78,42,79,80,115,71,81,58,113,27,59,30,136,137,143,144,76,86,85,90,145,112,11,9,114,15,28]))),validateSearch:xo(()=>xe({tab:V().optional()}))}),pJ=at({getParentRoute:()=>En,path:"/mcps/$appSlug/$collectionName/$itemId",beforeLoad:Ur,component:pt(()=>lt(()=>import("./collection-detail-w8yO-_Ye.js"),__vite__mapDeps([146,93,39,5,6,59,30,10,36,143,66,4,18,19,24,147,1,21,85,81,86,31,32,12,33,34,25,62,2,63,37,64,13,14,20,45,65,43,22,3,29,26,67,68,69,113,140,98,40,104,105,106,109,108,110,107,141,142,117,78,42,79,80,136,137,84,145,112,11,9,90,114,15,28,53,54,55,148,57,149,99,23,60,83,150]))),validateSearch:xo(()=>xe({replayId:V().optional()}))}),mJ=at({getParentRoute:()=>En,path:"/monitoring",beforeLoad:Ur,component:pt(()=>lt(()=>import("./monitoring-DmCgdBgZ.js"),__vite__mapDeps([151,90,21,22,10,66,4,5,18,19,24,113,13,93,152,9,42,12,20,64,148,57,150,32,33,62,2,25,63,37,1,34,14,45,65,43,3,29,26,67,68,69,15,144,141,6,98,132,28,11,27,133,115,87,8,40,39,79,38,116,117,31,36,131,35,30]))),validateSearch:xo(()=>xe({tab:Wt(["overview","audit","dashboards"]).default("overview"),from:V().default("now-30m"),to:V().default("now"),connectionId:Ae(V()).optional().default([]),virtualMcpId:Ae(V()).optional().default([]),tool:V().default(""),status:Wt(["all","success","errors"]).default("all"),search:V().default(""),page:Et().optional(),streaming:gt().default(!0),propertyFilters:V().default(""),hideSystem:gt().default(!1)}))}),gJ=at({getParentRoute:()=>En,path:"/monitoring/dashboards/$dashboardId",beforeLoad:Ur,component:pt(()=>lt(()=>import("./monitoring-dashboard-view-BfDYcRJx.js"),__vite__mapDeps([153,6,152,9,42,18,19,12,20,64,148,57,150,32,33,13,10,143,66,4,5,24,113,31,34,36,43,29,68])))}),vJ=at({getParentRoute:()=>En,path:"/monitoring/dashboards/$dashboardId/edit",beforeLoad:Ur,component:pt(()=>lt(()=>import("./monitoring-dashboard-edit-DL4fVGYY.js"),__vite__mapDeps([154,40,39,5,6,10,62,2,25,63,37,1,64,12,33,13,34,14,20,45,65,66,4,18,19,24,21,43,22,3,29,26,67,68,69,38,42,31,32,16,143,147,113])))}),p3=at({getParentRoute:()=>En,path:"/store",beforeLoad:Ur,component:pt(()=>lt(()=>import("./page-BgKYb-6_.js"),__vite__mapDeps([155,66,4,5,18,19,24,113,13,20,62,2,25,63,37,1,64,12,33,34,14,45,65,21,43,22,3,29,26,67,68,69,135,7,8,104,105,106,6,40,39,137,90,10,156,28,42,93])))}),yJ=at({getParentRoute:()=>p3,path:"/$appName",component:pt(()=>lt(()=>import("./mcp-server-detail-Dfcu5k0K.js"),__vite__mapDeps([157,25,21,62,2,63,37,1,64,12,33,13,34,14,20,45,65,66,4,5,18,19,24,43,22,3,29,26,67,68,69,11,93,104,105,106,6,75,145,112,9,90,10,114,15,28,86,143,131,156,113,40,39,98,108,109,110,137,158]))),validateSearch:xo(()=>xe({registryId:V().optional(),serverName:V().optional(),itemId:V().optional()}))}),_J=at({getParentRoute:()=>En,path:"/automations",beforeLoad:Ur,component:pt(()=>lt(()=>import("./automations-Bp3tAuBH.js"),__vite__mapDeps([159,90,21,22,10,93,66,4,5,18,19,24,160,6,134,17,91,71,67,27,9,113,13,11,12,14,15,63,43,29])))}),bJ=at({getParentRoute:()=>En,path:"/automations/$automationId",beforeLoad:Ur,component:pt(()=>lt(()=>import("./automation-detail-Bc9ASowB.js"),__vite__mapDeps([161,93,143,66,4,5,18,19,24,147,1,21,72,6,52,53,54,55,42,56,57,58,23,59,30,10,60,61,62,2,25,63,37,64,12,33,13,34,14,20,45,65,43,22,3,29,26,67,68,69,70,28,16,71,73,74,31,32,41,75,76,38,77,78,79,39,80,81,82,83,84,85,86,87,8,91,160,27,113,11,35]))),validateSearch:xo(()=>xe({tab:V().optional()}))}),SJ=at({getParentRoute:()=>En,path:"/agents",beforeLoad:Ur,component:pt(()=>lt(()=>import("./agents-DrhC84qH.js"),__vite__mapDeps([162,112,11,12,13,14,63,64,62,2,25,37,1,33,34,20,45,65,66,4,5,18,19,24,21,43,22,3,29,26,67,68,69,9,90,10,113,132,28,93,134,17,80,79,39,6,27,38,23,15,91,71,163,40,92,74]))),validateSearch:xo(()=>xe({action:Wt(["create"]).optional()}))}),wJ=at({getParentRoute:()=>En,path:"/agents/$agentId",beforeLoad:Ur,component:pt(()=>lt(()=>import("./agent-detail-eyC4qU2J.js"),__vite__mapDeps([164,53,6,54,55,93,10,42,150,32,64,22,62,2,25,63,37,1,12,33,13,34,14,20,45,65,66,4,5,18,19,24,21,43,3,29,26,67,68,69,9,82,83,35,36,40,39,79,113,143,147,90,145,112,11,114,15,28,86,38,23,76,98,81,58,137,77,142,163]))),validateSearch:xo(()=>xe({tab:V().optional()}))}),EJ=at({getParentRoute:()=>En,path:"/apps/$connectionId/$toolName",component:pt(()=>lt(()=>import("./project-app-view-Wq81-D6Q.js"),__vite__mapDeps([165,40,39,5,6,98,4,84,85,81,86,53,54,55,66,18,19,24])))}),RJ=at({getParentRoute:()=>En,path:"/workflows",component:pt(()=>lt(()=>import("./workflow-ClE3y6g8.js"),__vite__mapDeps([166,6,110,112,11,12,13,14,63,64,62,2,25,37,1,33,34,20,45,65,66,4,5,18,19,24,21,43,22,3,29,26,67,68,69,9,90,10,28,114,15,149,91,71,93,134,17,109,106,136,137,27,39,40,143,113])))}),m3=at({getParentRoute:()=>En,path:"/$pluginId",component:pt(()=>lt(()=>import("./dynamic-plugin-layout-C5CHlaVD.js"),__vite__mapDeps([167,21,105,106,6,4,40,39,5,3,66,18,19,24])))}),OJ=[],xJ=[],g3=[];ZX.forEach(e=>{if(!e.setup)return;const t={parentRoute:m3,routing:{createRoute:at,lazyRouteComponent:pt},registerRootSidebarItem:n=>OJ.push({pluginId:e.id,...n}),registerSidebarGroup:n=>xJ.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{g3.push(...n)}};e.setup(t)});const TJ=m3.addChildren(g3),CJ=p3.addChildren([yJ]),AJ=hs.addChildren([oJ,aJ,iJ,sJ,lJ,cJ]),IJ=[nJ,rJ,AJ,uJ,dJ,fJ,hJ,pJ,mJ,gJ,vJ,CJ,_J,bJ,SJ,wJ,RJ,EJ,TJ],NJ=En.addChildren(IJ),MJ=Dp.addChildren([eJ,tJ,NJ]),PJ=wi.addChildren([MJ,KX,YX,WX,XX,JX,QX]),DJ=e6({routeTree:PJ}),kJ=document.getElementById("root");z5.createRoot(kJ).render(O.jsx(A.StrictMode,{children:O.jsx(r6,{router:DJ})}));export{en as $,cee as A,Ey as B,i3 as C,UJ as D,Pee as E,kx as F,h3 as G,$y as H,jJ as I,Hz as J,Kx as K,UK as L,Zz as M,FJ as N,pi as O,hee as P,u_ as Q,Gz as R,d3 as S,dA as T,RP as U,Aee as V,bP as W,bA as X,JA as Y,gu as Z,EB as _,Iee as a,b0 as a$,An as a0,RB as a1,Xe as a2,OI as a3,wa as a4,ds as a5,uH as a6,fI as a7,hb as a8,see as a9,Yq as aA,Zq as aB,rP as aC,rb as aD,Wh as aE,x4 as aF,C4 as aG,xE as aH,zJ as aI,$J as aJ,Et as aK,Ae as aL,gt as aM,Wt as aN,xo as aO,Ft as aP,jt as aQ,BJ as aR,lp as aS,Sr as aT,gT as aU,xt as aV,Ry as aW,wu as aX,mu as aY,Eo as aZ,du as a_,li as aa,wo as ab,BV as ac,ZV as ad,KV as ae,YV as af,HV as ag,GV as ah,WV as ai,qV as aj,$q as ak,Nq as al,Mq as am,Pq as an,Dq as ao,XJ as ap,JJ as aq,kq as ar,ree as as,nee as at,oee as au,aee as av,iee as aw,tee as ax,eee as ay,Kq as az,Tee as b,a9 as b$,Qc as b0,sP as b1,qn as b2,_r as b3,W5 as b4,EI as b5,uB as b6,h_ as b7,pI as b8,kA as b9,zY as bA,lY as bB,uY as bC,hY as bD,RY as bE,UY as bF,cY as bG,dY as bH,pY as bI,mY as bJ,OY as bK,PY as bL,bee as bM,rt as bN,ee as bO,mi as bP,$X as bQ,D7 as bR,VC as bS,Hn as bT,HC as bU,Bz as bV,lt as bW,OJ as bX,QZ as bY,r7 as bZ,KJ as b_,p_ as ba,au as bb,xA as bc,f_ as bd,d_ as be,dB as bf,fB as bg,XA as bh,QJ as bi,WJ as bj,YJ as bk,LX as bl,tr as bm,ZX as bn,xJ as bo,Fe as bp,qJ as bq,AY as br,IY as bs,nb as bt,KN as bu,ZN as bv,Ap as bw,NN as bx,PN as by,qY as bz,VK as c,vP as c$,KC as c0,HJ as c1,GC as c2,Ky as c3,f7 as c4,GJ as c5,j7 as c6,Wy as c7,Yy as c8,V7 as c9,tY as cA,pee as cB,AN as cC,RW as cD,MY as cE,Eee as cF,gW as cG,_W as cH,XY as cI,eW as cJ,JY as cK,See as cL,Uy as cM,Dee as cN,Vq as cO,dT as cP,hT as cQ,VJ as cR,Uz as cS,$z as cT,Dz as cU,oA as cV,wr as cW,$x as cX,hP as cY,gP as cZ,SP as c_,ZJ as ca,Oee as cb,sX as cc,xee as cd,jY as ce,NL as cf,IN as cg,DN as ch,jN as ci,zN as cj,UN as ck,FN as cl,yee as cm,_ee as cn,gee as co,vee as cp,FK as cq,mee as cr,kN as cs,$N as ct,VN as cu,wee as cv,LN as cw,DQ as cx,Ree as cy,Z_ as cz,ss as d,yP as d0,EP as d1,TE as d2,wP as d3,_P as d4,BW as d5,ot as d6,qT as d7,PZ as d8,LJ as d9,gi as da,ya as db,_2 as dc,ZF as dd,Ro as de,iu as df,w_ as dg,Rl as dh,hi as di,Ea as dj,Oo as dk,nI as dl,YF as dm,XF as dn,WF as dp,jF as dq,f3 as dr,jy as e,fu as f,CT as g,Nee as h,Mee as i,O as j,Ly as k,uee as l,lee as m,dee as n,xe as o,Cee as p,V as q,A as r,OX as s,Bo as t,fee as u,Fo as v,MR as w,dP as x,kX as y,Zx as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,Y as L,Z as B,j as d,_ as q,$ as y,a0 as b,a1 as K,a2 as E,a3 as _,a4 as T,a5 as w,a6 as U,a7 as V}from"./index-
|
|
1
|
+
import{r as s,Y as L,Z as B,j as d,_ as q,$ as y,a0 as b,a1 as K,a2 as E,a3 as _,a4 as T,a5 as w,a6 as U,a7 as V}from"./index-D49VqQ7Q.js";var I="Radio",[z,P]=w(I),[H,Y]=z(I),k=s.forwardRef((a,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:t,value:l="on",onCheck:f,form:R,...v}=a,[p,m]=s.useState(null),i=b(c,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return d.jsxs(H,{scope:o,checked:e,disabled:t,children:[d.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":t?"":void 0,disabled:t,value:l,...v,ref:i,onClick:E(a.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&d.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:t,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var g="RadioIndicator",G=s.forwardRef((a,c)=>{const{__scopeRadio:o,forceMount:n,...e}=a,r=Y(g,o);return d.jsx(T,{present:n||r.checked,children:d.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:a,control:c,checked:o,bubbles:n=!0,...e},r)=>{const t=s.useRef(null),l=b(t,r),f=U(o),R=V(c);return s.useEffect(()=>{const v=t.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function A(a){return a?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[Z]=w(C,[_,P]),j=_(),N=P(),[$,J]=Z(C),D=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:t=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=a,i=j(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return d.jsx($,{scope:o,name:n,required:t,disabled:l,value:h,onValueChange:x,children:d.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(y.div,{role:"radiogroup","aria-required":t,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=a,r=J(M,o),t=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{X.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(K,{asChild:!0,...l,focusable:!t,active:p,children:d.jsx(k,{disabled:t,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Q="RadioGroupIndicator",F=s.forwardRef((a,c)=>{const{__scopeRadioGroup:o,...n}=a,e=N(o);return d.jsx(G,{...e,...n,ref:c})});F.displayName=Q;var oe=D,re=O,ae=F;export{re as I,oe as R,ae as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,Z as I,j as c,$ as v,aa as O,a2 as S,a5 as D,a4 as M,a0 as L,ab as k}from"./index-
|
|
1
|
+
import{r as n,Z as I,j as c,$ as v,aa as O,a2 as S,a5 as D,a4 as M,a0 as L,ab as k}from"./index-D49VqQ7Q.js";var f="Collapsible",[F,q]=D(f),[$,g]=F(f),T=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,open:o,defaultOpen:t,disabled:l,onOpenChange:i,...C}=e,[p,d]=I({prop:o,defaultProp:t??!1,onChange:i,caller:f});return c.jsx($,{scope:r,disabled:l,contentId:O(),open:p,onOpenToggle:n.useCallback(()=>d(b=>!b),[d]),children:c.jsx(v.div,{"data-state":R(p),"data-disabled":l?"":void 0,...C,ref:s})})});T.displayName=f;var j="CollapsibleTrigger",w=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,...o}=e,t=g(j,r);return c.jsx(v.button,{type:"button","aria-controls":t.contentId,"aria-expanded":t.open||!1,"data-state":R(t.open),"data-disabled":t.disabled?"":void 0,disabled:t.disabled,...o,ref:s,onClick:S(e.onClick,t.onOpenToggle)})});w.displayName=j;var x="CollapsibleContent",A=n.forwardRef((e,s)=>{const{forceMount:r,...o}=e,t=g(x,e.__scopeCollapsible);return c.jsx(M,{present:r||t.open,children:({present:l})=>c.jsx(B,{...o,ref:s,present:l})})});A.displayName=x;var B=n.forwardRef((e,s)=>{const{__scopeCollapsible:r,present:o,children:t,...l}=e,i=g(x,r),[C,p]=n.useState(o),d=n.useRef(null),b=L(s,d),h=n.useRef(0),y=h.current,N=n.useRef(0),P=N.current,m=i.open||C,E=n.useRef(m),u=n.useRef(void 0);return n.useEffect(()=>{const a=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(a)},[]),k(()=>{const a=d.current;if(a){u.current=u.current||{transitionDuration:a.style.transitionDuration,animationName:a.style.animationName},a.style.transitionDuration="0s",a.style.animationName="none";const _=a.getBoundingClientRect();h.current=_.height,N.current=_.width,E.current||(a.style.transitionDuration=u.current.transitionDuration,a.style.animationName=u.current.animationName),p(o)}},[i.open,o]),c.jsx(v.div,{"data-state":R(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m,...l,ref:b,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":P?`${P}px`:void 0,...e.style},children:m&&t})});function R(e){return e?"open":"closed"}var H=T,Z=w,z=A;export{w as C,H as R,Z as T,A as a,z as b,q as c};
|