@inkeep/open-knowledge 0.35.1-beta.8 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.md +0 -21
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/assets/skills/write-skill/SKILL.md +1 -1
- package/dist/{banner-dc_0Y_PF.mjs → banner-C1j6gKvV.mjs} +2 -2
- package/dist/cli.mjs +62 -62
- package/dist/{colors-B_qgKwrk.mjs → colors-CpVsnmzb.mjs} +1 -1
- package/dist/colors-DqFW4lvb.mjs +1 -0
- package/dist/constants-B51-MH_i.mjs +2 -0
- package/dist/{gh-detect-Cdvn1Wl3.mjs → gh-detect-93wtg_nV.mjs} +2 -2
- package/dist/git-handle-CeejIzW4.mjs +1 -0
- package/dist/{git-handle-XFgpH1XR.mjs → git-handle-DPCY4VMM.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{init-WZEK9utJ.mjs → init-CINP1v0y.mjs} +4 -4
- package/dist/init-EO9D9f7g.mjs +1 -0
- package/dist/{launch-json-removal-DkMW0R0R.mjs → launch-json-removal-Cp88-Nri.mjs} +2 -2
- package/dist/{lib-CW6dpYSh.mjs → lib-CsZlOZVg.mjs} +8 -8
- package/dist/loader-DrTu23Tp.mjs +1 -0
- package/dist/{loader-DqAZBnhp.mjs → loader-a2k4G6Yz.mjs} +3 -3
- package/dist/{open-browser-evOiSXMq.mjs → open-browser-CP3YN1jA.mjs} +2 -2
- package/dist/{preview-DipvVs80.mjs → preview-CvyqQIIL.mjs} +2 -2
- package/dist/preview-Un26Rvbh.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-BzCteFud.js +2 -0
- package/dist/public/assets/CodeMirrorPropInput-BaaMh183.js +3 -0
- package/dist/public/assets/{ConsentDialogBody-CFh9gVKe.js → ConsentDialogBody-Dac-eNHp.js} +1 -1
- package/dist/public/assets/DocumentContext-DVJ7yEqv.js +36 -0
- package/dist/public/assets/{EnableSyncConfirmDialog-YbXwL0lV.js → EnableSyncConfirmDialog-pUJ0-0Xd.js} +1 -1
- package/dist/public/assets/{GraphPanel-C_f_Xd2V.js → GraphPanel-CLbL3_7S.js} +5 -5
- package/dist/public/assets/{ManagedArtifactProperties-DlJgeeBW.js → ManagedArtifactProperties-BbvAZvc9.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-DWMKC7U_.js → McpConsentDialogBody-D_ALgiPf.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-ChTa4qji.js → MermaidDocEditor-C4zrJQLq.js} +1 -1
- package/dist/public/assets/PropertyPanel-D2cHpPyn.js +2 -0
- package/dist/public/assets/{ReportBugDialogBody-DO-LsEqg.js → ReportBugDialogBody-By8lUyez.js} +1 -1
- package/dist/public/assets/SettingsDialogBody-Ivdm3ToR.js +7 -0
- package/dist/public/assets/{ShareBranchSwitchDialog-CtWDd4RN.js → ShareBranchSwitchDialog-COA225Wh.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-DHN60dEn.js → ShareReceiveDialog-CGeUbVX5.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-BPZPyDcg.js → ShareReceiveMissDialog-BiFbvWX1.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-D0qSUb6F.js → SkillEditorActions-HOX1vQzN.js} +1 -1
- package/dist/public/assets/{SourceEditor-CiiGGjlz.js → SourceEditor-BbNBxNCg.js} +1 -1
- package/dist/public/assets/{TerminalPanel-DipsMDbQ.js → TerminalPanel-CJcXd9VC.js} +37 -37
- package/dist/public/assets/{abnfDiagram-VRR7QNED-DxPP95nn.js → abnfDiagram-VRR7QNED-s07JwBrQ.js} +1 -1
- package/dist/public/assets/agent-presence-DWEqGNHh.js +1 -0
- package/dist/public/assets/{arc-B-QPMw-K.js → arc-C2sMPVKm.js} +1 -1
- package/dist/public/assets/architecture-TIHT7OUA-CT1tXplN.js +1 -0
- package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-DI2cSyhR.js → architectureDiagram-ZJ3FMSHR-DQ9Uvn9z.js} +1 -1
- package/dist/public/assets/auth-state-cache-Di7tO3rZ.js +11 -0
- package/dist/public/assets/{blockDiagram-677ZJIJ3-h5oSMPKD.js → blockDiagram-677ZJIJ3-DSk8Ogpy.js} +1 -1
- package/dist/public/assets/{c4Diagram-LMCZKHZV-CK2iEE3c.js → c4Diagram-LMCZKHZV-Bz59H0KA.js} +1 -1
- package/dist/public/assets/{calendar-BWOC8yrW.js → calendar-BxfDpUWv.js} +1 -1
- package/dist/public/assets/channel-CSqODHBX.js +1 -0
- package/dist/public/assets/chunk-2Q5K7J3B-6231eKaz.js +1 -0
- package/dist/public/assets/{chunk-32BRIVSS-DSjkImiO.js → chunk-32BRIVSS-CrIqwJxq.js} +1 -1
- package/dist/public/assets/{chunk-52WLFC77-Dcxgn7aY.js → chunk-52WLFC77-mgHjwXy8.js} +1 -1
- package/dist/public/assets/{chunk-5FCAYU7R-BfGI-oMu.js → chunk-5FCAYU7R-DsN08wYr.js} +1 -1
- package/dist/public/assets/{chunk-5HE753X5-weABv-wL.js → chunk-5HE753X5-DR9Xb784.js} +1 -1
- package/dist/public/assets/{chunk-5JV3BV7I-DEhUP77q.js → chunk-5JV3BV7I-DUGJruxJ.js} +1 -1
- package/dist/public/assets/{chunk-5TONJI2A-D8ryhTto.js → chunk-5TONJI2A-DGpS165P.js} +1 -1
- package/dist/public/assets/{chunk-5VM5RSS4-BlyT0CoP.js → chunk-5VM5RSS4-Y6UOitXa.js} +1 -1
- package/dist/public/assets/{chunk-7BUUIJ7U-D9n2zFWa.js → chunk-7BUUIJ7U-kgbsT0Ie.js} +1 -1
- package/dist/public/assets/{chunk-BIQX33UG-CZyszYrJ.js → chunk-BIQX33UG-ir0YjVc1.js} +1 -1
- package/dist/public/assets/{chunk-C7G6YPKG-DA4AzgS1.js → chunk-C7G6YPKG-C4mkeqaG.js} +1 -1
- package/dist/public/assets/{chunk-CQNSW5MT-ClwiAtII.js → chunk-CQNSW5MT-cO-NnCqU.js} +1 -1
- package/dist/public/assets/{chunk-CYSBUYHQ-CGwDjQlh.js → chunk-CYSBUYHQ-DOHROXyM.js} +1 -1
- package/dist/public/assets/{chunk-EMLP6XTP-DjxQVp6i.js → chunk-EMLP6XTP-D4HTBqLV.js} +1 -1
- package/dist/public/assets/{chunk-EX3LRPZG-BcSqmSt4.js → chunk-EX3LRPZG-Do_cb0BC.js} +1 -1
- package/dist/public/assets/{chunk-FWX5IMBZ-BTxv6yrt.js → chunk-FWX5IMBZ-CKeYA6zq.js} +2 -2
- package/dist/public/assets/{chunk-HOUHSVGY-3n2-KijJ.js → chunk-HOUHSVGY-DLoarw7-.js} +1 -1
- package/dist/public/assets/{chunk-ICXQ74PX-DWIJquJc.js → chunk-ICXQ74PX-MBl6EECh.js} +1 -1
- package/dist/public/assets/{chunk-JG7HCLWE-BZZpuOy0.js → chunk-JG7HCLWE-CUeTjaY5.js} +1 -1
- package/dist/public/assets/{chunk-JWPE2WC7-DdwvzMEp.js → chunk-JWPE2WC7-CHGGBN9h.js} +1 -1
- package/dist/public/assets/{chunk-MOJQB5TN-CmK9Iu27.js → chunk-MOJQB5TN-CcZUk23X.js} +1 -1
- package/dist/public/assets/{chunk-MOZMSUNE-LyrnwAsU.js → chunk-MOZMSUNE-5QQVj3ss.js} +1 -1
- package/dist/public/assets/{chunk-OGEWGWER-CeOp0xbH.js → chunk-OGEWGWER-BkptVqQ1.js} +1 -1
- package/dist/public/assets/{chunk-OSBZ3O6U-DFiAaUHT.js → chunk-OSBZ3O6U-ONf5Rxuf.js} +1 -1
- package/dist/public/assets/{chunk-PUDLZKDR-BdJDvOQD.js → chunk-PUDLZKDR-DXTd_WWd.js} +1 -1
- package/dist/public/assets/{chunk-Q4XR5HBZ-C3mWTH_s.js → chunk-Q4XR5HBZ-QUWmwLf-.js} +1 -1
- package/dist/public/assets/{chunk-QBLGF6JB-Cip_ZYPa.js → chunk-QBLGF6JB-DAW-PjRz.js} +1 -1
- package/dist/public/assets/{chunk-R7FJI6CG-DLyapyIO.js → chunk-R7FJI6CG-e7KlR5WR.js} +1 -1
- package/dist/public/assets/{chunk-RYQCIY6F-C20EyDLP.js → chunk-RYQCIY6F-DKYUXbW_.js} +1 -1
- package/dist/public/assets/{chunk-U6XO7XAA-DN2BTHsF.js → chunk-U6XO7XAA-zuSavVpE.js} +1 -1
- package/dist/public/assets/{chunk-V7JOEXUC-BkdbQSd6.js → chunk-V7JOEXUC-BDcL_HF2.js} +1 -1
- package/dist/public/assets/chunk-VAUOI2AC-D5KfNXdk.js +1 -0
- package/dist/public/assets/{chunk-VR4S4FIN-BXKGzdjR.js → chunk-VR4S4FIN-CoKaVJob.js} +1 -1
- package/dist/public/assets/{chunk-WYO6CB5R-DDA9TMxs.js → chunk-WYO6CB5R-CPK-Z4Zn.js} +1 -1
- package/dist/public/assets/chunk-XXDRQBXY-z12okRSH.js +1 -0
- package/dist/public/assets/{chunk-YOTPTUD7-CAY_zY8l.js → chunk-YOTPTUD7-ZJ64LPBH.js} +1 -1
- package/dist/public/assets/{chunk-ZGVPDNZ5-gtD66mSa.js → chunk-ZGVPDNZ5-D8S_HhHE.js} +1 -1
- package/dist/public/assets/{chunk-ZIRB5QZD-Bh7823OJ.js → chunk-ZIRB5QZD-CBAmXOZf.js} +1 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-3k_vKgMb.js +1 -0
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-BWUMDcI-.js +1 -0
- package/dist/public/assets/{config-provider-TXwl7IKA.js → config-provider-DGMqQCfP.js} +4 -4
- package/dist/public/assets/{cose-bilkent-JH36ORCC-pqj5AHZx.js → cose-bilkent-JH36ORCC-BhCfvPJo.js} +1 -1
- package/dist/public/assets/cynefin-VYW2F7L2-CCaQNOor.js +1 -0
- package/dist/public/assets/{cynefinDiagram-TSTJHNR4-BCdPoMcA.js → cynefinDiagram-TSTJHNR4-DZZpsQlh.js} +1 -1
- package/dist/public/assets/{dagre-DK7PvNVd.js → dagre-BCcof4fp.js} +1 -1
- package/dist/public/assets/{dagre-VKFMJZFB-BMhbjrXq.js → dagre-VKFMJZFB-BVGAKvzT.js} +1 -1
- package/dist/public/assets/{diagram-FQU43EPY-CI-dlZCc.js → diagram-FQU43EPY-BEAcnoVT.js} +1 -1
- package/dist/public/assets/{diagram-G47NLZAW-7OA_hqYO.js → diagram-G47NLZAW-B5YwZccl.js} +1 -1
- package/dist/public/assets/{diagram-NH7WQ7WH-DGZoq1pS.js → diagram-NH7WQ7WH-DJ729xkg.js} +1 -1
- package/dist/public/assets/{diagram-OA4YK3LP-BgAzAKhY.js → diagram-OA4YK3LP-ComZLTwZ.js} +1 -1
- package/dist/public/assets/{diagram-WEI45ONY-DWkPIxW4.js → diagram-WEI45ONY-DUpwGJzG.js} +1 -1
- package/dist/public/assets/{dialog-492Ff7fG.js → dialog-D9fMUB3u.js} +1 -1
- package/dist/public/assets/{dist-Bvng05Ux.js → dist-C6B3IZlW.js} +1 -1
- package/dist/public/assets/{dist-DAFoMRai.js → dist-CN1nOe9M.js} +1 -1
- package/dist/public/assets/{dist-BiVF6Gdz.js → dist-CSbnaLam.js} +1 -1
- package/dist/public/assets/{dist-D--vIb9_.js → dist-Cf-rDWvg.js} +155 -155
- package/dist/public/assets/{dist-B768eFXg.js → dist-CiO2pCFe.js} +1 -1
- package/dist/public/assets/{dist-D1KI0nTz.js → dist-Cid07B-b.js} +1 -1
- package/dist/public/assets/{dist-BjlQpfm2.js → dist-D6P0HEvG.js} +1 -1
- package/dist/public/assets/{dist-DXywpqg-.js → dist-DLiIchlL.js} +1 -1
- package/dist/public/assets/{dist-CML_8CPx.js → dist-DQ98O3oW.js} +1 -1
- package/dist/public/assets/{dist-B76xtaAd.js → dist-Ddrqoe4c.js} +1 -1
- package/dist/public/assets/{dist-CCfVhAvJ.js → dist-RKGXlTOn.js} +1 -1
- package/dist/public/assets/{dist-BZciNIwH.js → dist-TIByzzIF.js} +1 -1
- package/dist/public/assets/{dist-BuhX1ZiW.js → dist-Uf9Tc8KS.js} +1 -1
- package/dist/public/assets/{doc-hash-BNPgzBjA.js → doc-hash-vKFY-V-Y.js} +1 -1
- package/dist/public/assets/{documents-events-BOt1_9Hf.js → documents-events-BzjmhSSx.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-CCIWWBDH-BRvvZw_B.js → ebnfDiagram-CCIWWBDH-C0qN5Z1L.js} +1 -1
- package/dist/public/assets/{erDiagram-Q63AITRT-DVXRJxAV.js → erDiagram-Q63AITRT-B2y03i9k.js} +1 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-Dv2dElMn.js +1 -0
- package/dist/public/assets/{file-tree-adapter-C2NHvUNc.js → file-tree-adapter-DNsVn4SH.js} +1 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-Cj2cm6wb.js +1 -0
- package/dist/public/assets/{ganttDiagram-NO4QXBWP-DfilZK9a.js → ganttDiagram-NO4QXBWP-CbAMuscB.js} +1 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-B_v5HTd2.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-CzPu78YW.js → gitGraphDiagram-IHSO6WYX-BDtmrkrv.js} +1 -1
- package/dist/public/assets/{graphlib-DcRmeD3e.js → graphlib-T74nenG1.js} +1 -1
- package/dist/public/assets/index-BFfvrj_R.js +2007 -0
- package/dist/public/assets/index-Zwl7lo8a.css +1 -0
- package/dist/public/assets/info-DKCQHKI2-ChXVyprm.js +1 -0
- package/dist/public/assets/{infoDiagram-FWYZ7A6U-C6-KcSYK.js → infoDiagram-FWYZ7A6U-BgSrBQZn.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-BjawhLso.js → ishikawaDiagram-FXEZZL3T-B58n1EAe.js} +1 -1
- package/dist/public/assets/{journeyDiagram-5HDEW3XC-CKJ88ogB.js → journeyDiagram-5HDEW3XC-CtbbmL9o.js} +1 -1
- package/dist/public/assets/{kanban-definition-HUTT4EX6-BGwYHT7Q.js → kanban-definition-HUTT4EX6-PYnVKIRv.js} +1 -1
- package/dist/public/assets/{line-BSndhJaA.js → line-Bn4tqKip.js} +1 -1
- package/dist/public/assets/{linear-CWEI_5Iw.js → linear-B7qown3H.js} +1 -1
- package/dist/public/assets/lint-config-client-C1xGkxTP.js +1 -0
- package/dist/public/assets/{map-CjcUXw9E.js → map-CAMtT7C7.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-Dd1-Tdhf.js → mermaid-parser.core-B1wAzOcl.js} +2 -2
- package/dist/public/assets/{mermaid.core-C3NRxXYk.js → mermaid.core-CPVA3QHQ.js} +3 -3
- package/dist/public/assets/{mindmap-definition-LN4V7U3C-CMjs8uw1.js → mindmap-definition-LN4V7U3C-dzrg2t0C.js} +1 -1
- package/dist/public/assets/{navigation-targets-Dp0ljlND.js → navigation-targets-nvGLJ1po.js} +1 -1
- package/dist/public/assets/{now-DuonpS3w.js → now-7lIApcFa.js} +1 -1
- package/dist/public/assets/open-managed-artifact-tab-CUhx9b-j.js +5 -0
- package/dist/public/assets/{ordinal-DqdsPg4w.js → ordinal-RCdkn_04.js} +1 -1
- package/dist/public/assets/packet-7NZHBO7P--nGkFp-F.js +1 -0
- package/dist/public/assets/{pegDiagram-2B236MQR-DbZNXK4F.js → pegDiagram-2B236MQR-BSfr2juy.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-DjOWVQpM.js → pending-receive-nav-store-HxClZpU_.js} +1 -1
- package/dist/public/assets/pie-RZYD4A2V-jLTQTVR2.js +1 -0
- package/dist/public/assets/{pieDiagram-ENE6RG2P-Cl1aNURz.js → pieDiagram-ENE6RG2P-BZpnpN-F.js} +1 -1
- package/dist/public/assets/prop-types-y7w6_eIH.js +1 -0
- package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-O0r_liGM.js → quadrantDiagram-ABIIQ3AL-DbLxt4AH.js} +1 -1
- package/dist/public/assets/radar-I7S5WNFK-C3lNKZB3.js +1 -0
- package/dist/public/assets/railroad-3IZDKUUU-zkTIyGxU.js +1 -0
- package/dist/public/assets/railroad-abnf-AHOZXSZD-CGyrnBSJ.js +1 -0
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-BllS7VWZ.js +1 -0
- package/dist/public/assets/railroad-peg-LSFZ7HO6-C1CM3IeV.js +1 -0
- package/dist/public/assets/{railroadDiagram-RFXS5EU6-5qWlaSRR.js → railroadDiagram-RFXS5EU6-C848pWoS.js} +1 -1
- package/dist/public/assets/{receive-store-CqCttQos.js → receive-store-BBpK7Or2.js} +1 -1
- package/dist/public/assets/{requirementDiagram-TGXJPOKE-P9qf5Z4Z.js → requirementDiagram-TGXJPOKE-BYghLNMR.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-HTMAVEWB-BWtC9T4g.js → sankeyDiagram-HTMAVEWB-D4YIknL1.js} +1 -1
- package/dist/public/assets/{selection-context-VCaFOVcH.js → selection-context-iozWEaD1.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-B8Hbf_bB.js → sequenceDiagram-DBY2YBRQ-TyOsGnRM.js} +1 -1
- package/dist/public/assets/{sizeCapture-X5ZJPWSS-B93fpSFm.js → sizeCapture-X5ZJPWSS-BM5e48hL.js} +1 -1
- package/dist/public/assets/skill-actions-DL-yNOVR.js +1 -0
- package/dist/public/assets/{skills-api-Zn9HHSnp.js → skills-api-T6KNnXbb.js} +1 -1
- package/dist/public/assets/{src-DOsxfOd0.js → src-DL3Zlx5X.js} +1 -1
- package/dist/public/assets/{src-Bejbc0T8.js → src-DU4IiWLl.js} +1 -1
- package/dist/public/assets/{stateDiagram-2N3HPSRC-CCyXUsZO.js → stateDiagram-2N3HPSRC-1BTIo0Qo.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-C-nM9igb.js +1 -0
- package/dist/public/assets/{swimlanes-5IMT3BWC-B-sLEl82.js → swimlanes-5IMT3BWC-DN05P38q.js} +2 -2
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-DOdX5jTT.js +8 -0
- package/dist/public/assets/{target-navigation-intent-gXTtsPCh.js → target-navigation-intent-JPOSvf1i.js} +1 -1
- package/dist/public/assets/{telemetry-impl-BWgeQHlt.js → telemetry-impl-jUMr-Cv1.js} +2 -2
- package/dist/public/assets/{telemetry-startup-kV7RyeHQ.js → telemetry-startup-jMwHqIQ4.js} +1 -1
- package/dist/public/assets/{timeline-definition-FHXFAJF6-B4-HCQ_I.js → timeline-definition-FHXFAJF6-m9Ty-Kvs.js} +1 -1
- package/dist/public/assets/treeView-QDETBFTQ-CQFmlWUc.js +1 -0
- package/dist/public/assets/treemap-6X3UGDF4-BrZNJeo7.js +1 -0
- package/dist/public/assets/{typing-burst-detector-xnXm4fKL.js → typing-burst-detector-50DGt0NB.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-B7VneWrH.js → use-apply-config-color-theme-C4-L1m1x.js} +2 -2
- package/dist/public/assets/{vennDiagram-L72KCM5P-DIXJ-f9A.js → vennDiagram-L72KCM5P-CeGSzDp-.js} +1 -1
- package/dist/public/assets/wardley-OPB4EBWU-KBVce8aR.js +1 -0
- package/dist/public/assets/{wardleyDiagram-EHGQE667-DuaGh-EA.js → wardleyDiagram-EHGQE667-CEiEgHEP.js} +1 -1
- package/dist/public/assets/{workspace-paths-DFIcBLaH.js → workspace-paths-BzYkZqjr.js} +1 -1
- package/dist/public/assets/{xychartDiagram-FW5EYKEG-BGEm2ArJ.js → xychartDiagram-FW5EYKEG-D2AGvwUv.js} +1 -1
- package/dist/public/index.html +58 -60
- package/dist/{repair-launch-json-QkUwumCw.mjs → repair-launch-json-xDbECVti.mjs} +2 -2
- package/dist/{repair-mcp-configs-OedQlL6h.mjs → repair-mcp-configs-BPCRXAai.mjs} +2 -2
- package/dist/{repair-skills-BtyTNmva.mjs → repair-skills-CZbrTVch.mjs} +2 -2
- package/dist/repair-skills-CyhWReZX.mjs +1 -0
- package/dist/server-lock-DGqK-4av.mjs +1 -0
- package/dist/{server-lock-CTGMwZRP.mjs → server-lock-wMKEjgnN.mjs} +2 -2
- package/dist/{src-S2yxN8_s.mjs → src-BU7I7py6.mjs} +90 -90
- package/dist/src-C0CgVA8i.mjs +3305 -0
- package/dist/{src-BmQ95pzm.mjs → src-FMIoftZv.mjs} +1 -1
- package/dist/src-cvLOShuL.mjs +21 -0
- package/dist/start-D7QSP49B.mjs +1 -0
- package/dist/start-DcF59Yvb.mjs +3 -0
- package/dist/{write-project-skill-BKZZvkVE.mjs → write-project-skill-DkTM_Oeh.mjs} +2 -2
- package/package.json +5 -5
- package/dist/colors-DUjg75V3.mjs +0 -1
- package/dist/constants-D6DS6fsP.mjs +0 -2
- package/dist/git-handle-uEQwHyvr.mjs +0 -1
- package/dist/init-Dqbcvqq4.mjs +0 -1
- package/dist/loader-Dw9TpNUA.mjs +0 -1
- package/dist/preview-j-ym5Lce.mjs +0 -1
- package/dist/public/assets/ActivityModeContent-V_zAw2Cp.js +0 -1
- package/dist/public/assets/AgentDiffPane-CVTl1yHd.js +0 -2
- package/dist/public/assets/CodeMirrorPropInput-BbZYh8z8.js +0 -3
- package/dist/public/assets/DocumentContext-DdPNvhCs.js +0 -36
- package/dist/public/assets/PropertyPanel-CGrfp7KX.js +0 -2
- package/dist/public/assets/SettingsDialogBody-Dqdq8UCp.js +0 -7
- package/dist/public/assets/TimelineDiffPane-CCoQyhfx.js +0 -2
- package/dist/public/assets/agent-presence-DB_yc77e.js +0 -1
- package/dist/public/assets/architecture-TIHT7OUA-CltUrdi_.js +0 -1
- package/dist/public/assets/auth-state-cache-Bm2yGEzY.js +0 -11
- package/dist/public/assets/channel-u6IlPa4M.js +0 -1
- package/dist/public/assets/chunk-2Q5K7J3B-Dp_z4y0p.js +0 -1
- package/dist/public/assets/chunk-VAUOI2AC-ql8j5-ta.js +0 -1
- package/dist/public/assets/chunk-XXDRQBXY-BGFIrdGe.js +0 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-f__yrCN3.js +0 -1
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-De7msUum.js +0 -1
- package/dist/public/assets/cynefin-VYW2F7L2-BaabRBtQ.js +0 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-CpX_MdG2.js +0 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-qBrVAQAs.js +0 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-Cl_Wohm-.js +0 -1
- package/dist/public/assets/index-C3iemlkC.css +0 -1
- package/dist/public/assets/index-Dqu53vRM.js +0 -1995
- package/dist/public/assets/info-DKCQHKI2-Df0PBh-0.js +0 -1
- package/dist/public/assets/lint-config-client-DfHR5qma.js +0 -1
- package/dist/public/assets/lru-string-cache-WgNrdYaR.js +0 -1
- package/dist/public/assets/open-managed-artifact-tab-SLDmUABC.js +0 -5
- package/dist/public/assets/packet-7NZHBO7P-BzSOWp_y.js +0 -1
- package/dist/public/assets/panel-right-open-CBQxOUPX.js +0 -1
- package/dist/public/assets/pie-RZYD4A2V-DQMer8ON.js +0 -1
- package/dist/public/assets/prop-types-D27bl_X-.js +0 -1
- package/dist/public/assets/radar-I7S5WNFK-BcSNWNdo.js +0 -1
- package/dist/public/assets/railroad-3IZDKUUU-Bki7TUdv.js +0 -1
- package/dist/public/assets/railroad-abnf-AHOZXSZD-TNcYa0Mz.js +0 -1
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-BkoUFicN.js +0 -1
- package/dist/public/assets/railroad-peg-LSFZ7HO6-CPN1xC04.js +0 -1
- package/dist/public/assets/skill-actions-2X4vusgg.js +0 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-D5lbOImg.js +0 -1
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-BI78kzuy.js +0 -8
- package/dist/public/assets/timeline-diff-store-HBj2AFCu.js +0 -1
- package/dist/public/assets/treeView-QDETBFTQ-CT2knITr.js +0 -1
- package/dist/public/assets/treemap-6X3UGDF4-BWe4kQzY.js +0 -1
- package/dist/public/assets/use-activity-panel-Bw3nEPtk.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-BlAVrAam.js +0 -18
- package/dist/public/assets/wardley-OPB4EBWU-BjTiRqi1.js +0 -1
- package/dist/repair-skills-B6wKeiXV.mjs +0 -1
- package/dist/server-lock-DOwBtoDC.mjs +0 -1
- package/dist/src-B8RZXrGO.mjs +0 -21
- package/dist/src-lKxysm2m.mjs +0 -3311
- package/dist/start-Dx2HSrjw.mjs +0 -3
- package/dist/start-cUNS6Qd1.mjs +0 -1
- /package/dist/public/assets/{ActivityPanelDiffView-CojvWN5u.js → ActivityPanelDiffView-COM6jgM6.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-W0BYeUy6.js → __vite-browser-external-B-733T4c.js} +0 -0
- /package/dist/public/assets/{array-DZrUSYBX.js → array-Dz4vndSy.js} +0 -0
- /package/dist/public/assets/{chunk-KEIR6QF5-kMpbALDh.js → chunk-KEIR6QF5-YxiaonDF.js} +0 -0
- /package/dist/public/assets/{chunk-Y2CYZVJY-C7afl5rZ.js → chunk-Y2CYZVJY-B5uX60M6.js} +0 -0
- /package/dist/public/assets/{clike-BgMHoZVb.js → clike-DrU-cR_S.js} +0 -0
- /package/dist/public/assets/{clipboard-adapter-CfjsRFpv.js → clipboard-adapter-BHfhAZ-n.js} +0 -0
- /package/dist/public/assets/{colors-BtGPfaz7.js → colors-yCcn8znj.js} +0 -0
- /package/dist/public/assets/{config-context-BaIZpYSb.js → config-context-BbS_JaHs.js} +0 -0
- /package/dist/public/assets/{cursor-jdIvZ4dc.js → cursor-Rw-XIAht.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-wfVGet9g.js → cytoscape.esm-D6meekAa.js} +0 -0
- /package/dist/public/assets/{defaultLocale-CCuQb4WR.js → defaultLocale-CKlKs72A.js} +0 -0
- /package/dist/public/assets/{desktop-bridge-types-4c7gjz59.js → desktop-bridge-types-_D7JSBL8.js} +0 -0
- /package/dist/public/assets/{diff-B7WgJJz8.js → diff-BVcHwfdB.js} +0 -0
- /package/dist/public/assets/{dist-SUVx2c2e.js → dist-7hPoK5kq.js} +0 -0
- /package/dist/public/assets/{dist-o9cVHl8Q.js → dist-C87Ou6G5.js} +0 -0
- /package/dist/public/assets/{dist-DN9vrt63.js → dist-DMFtCzYE.js} +0 -0
- /package/dist/public/assets/{dist-BQhSFgYM.js → dist-DOee8t3p.js} +0 -0
- /package/dist/public/assets/{dist-CAIcun02.js → dist-Qabe7wDM.js} +0 -0
- /package/dist/public/assets/{documents-fetch-BzTSsuPI.js → documents-fetch-CD85Qoe6.js} +0 -0
- /package/dist/public/assets/{external-link-BUoZ56id.js → external-link-BfiFPJEx.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-GUkltgNP.js → file-tree-rename-validation-BBSv40Qz.js} +0 -0
- /package/dist/public/assets/{format-ClWHbKHd.js → format-DJS8_tfZ.js} +0 -0
- /package/dist/public/assets/{go-DTLWKePr.js → go-Ceq0cEZq.js} +0 -0
- /package/dist/public/assets/{init-B2r4ykR3.js → init-DSak-Kkw.js} +0 -0
- /package/dist/public/assets/{input-b4FSCbA5.js → input-BX4UDDMJ.js} +0 -0
- /package/dist/public/assets/{isObject-Bj-0X2GB.js → isObject-qQeVObYJ.js} +0 -0
- /package/dist/public/assets/{lua-B3utixrX.js → lua-DM28D-6o.js} +0 -0
- /package/dist/public/assets/{mcp-consent-store-DL93ger0.js → mcp-consent-store-O7e02Mi1.js} +0 -0
- /package/dist/public/assets/{min-B7KH7bOg.js → min-wGNVvSoq.js} +0 -0
- /package/dist/public/assets/{panzoom.es-Cs7b857v.js → panzoom.es-DeqEaiMH.js} +0 -0
- /package/dist/public/assets/{parse-api-error-DfesE4Y7.js → parse-api-error-Mgtc4OJu.js} +0 -0
- /package/dist/public/assets/{path-BQp9Hq4z.js → path-B3Wp5BLm.js} +0 -0
- /package/dist/public/assets/{pdf-BHHpPt0J.js → pdf-CSS8JMnh.js} +0 -0
- /package/dist/public/assets/{pdf.worker-BZYXl7oP.js → pdf.worker-BojfP6R3.js} +0 -0
- /package/dist/public/assets/{perl-CZ2U9dfT.js → perl-D5vgbj2Y.js} +0 -0
- /package/dist/public/assets/{project-paths-CSBBkRS0.js → project-paths-DJDWBB-8.js} +0 -0
- /package/dist/public/assets/{properties-CwLn0BUZ.js → properties-C7p4lNrk.js} +0 -0
- /package/dist/public/assets/{r-Crnq5PtH.js → r-BcyApZ2Y.js} +0 -0
- /package/dist/public/assets/{refresh-cw-DgVrChIu.js → refresh-cw-FMnveNBD.js} +0 -0
- /package/dist/public/assets/{rough.esm-B1TTUqnd.js → rough.esm-CIwjGUJO.js} +0 -0
- /package/dist/public/assets/{ruby-nTEDjg1w.js → ruby-DxabsNt7.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-DTrx2e2E.js → share-metadata-rows-CVWX1vOJ.js} +0 -0
- /package/dist/public/assets/{shell-CJ7sRXEH.js → shell-B2Oc-2BR.js} +0 -0
- /package/dist/public/assets/{sql-B7jXn3j6.js → sql-DWXp9JcL.js} +0 -0
- /package/dist/public/assets/{src-CvdYkko8.js → src-DyReJWGm.js} +0 -0
- /package/dist/public/assets/{startup-marks-2VTPXUbb.js → startup-marks-BJwpvHMe.js} +0 -0
- /package/dist/public/assets/{stex-CLng_sPo.js → stex-lDOZN-ZW.js} +0 -0
- /package/dist/public/assets/{swift-DKG9kMYe.js → swift-BlyE8smW.js} +0 -0
- /package/dist/public/assets/{textarea-D45cTFgp.js → textarea--26Ac0EI.js} +0 -0
- /package/dist/public/assets/{toml-ClZMF6Q0.js → toml-Bg2104qZ.js} +0 -0
- /package/dist/public/assets/{trash-2-U9wpS1zc.js → trash-2-Cgf308yS.js} +0 -0
- /package/dist/public/assets/{triangle-alert-BaZPlVka.js → triangle-alert-VZ_Cki-r.js} +0 -0
- /package/dist/public/assets/{worktree-store-Dwj7qwtV.js → worktree-store-DFmh2OE1.js} +0 -0
- /package/dist/public/assets/{x-_C6KOlzX.js → x-BUBUnCd-.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-BIQX33UG-CZyszYrJ.js";export{e as createInfoServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./chunk-DseTPa7n.js";import{n as t,r as n,t as r}from"./compiler-runtime-DrcePeIl.js";import{u as i}from"./createLucideIcon-Wgamzz8_.js";import{$ as a,Oi as o,Q as s,Z as c}from"./dist-D--vIb9_.js";var l={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},u=Object.keys(l),d=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`OFBmkg`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`new-folder`,category:`general`,title:{id:`96G6Re`},description:{id:`3cOo2C`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ N`,windowsLinux:`Ctrl Shift N`}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`EbZT7P`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`It9ARY`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`dPOFid`},description:{id:`oCNLN8`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`new-terminal-tab`,category:`general`,title:{id:`k0vc0N`},description:{id:`si3L24`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ J`,windowsLinux:`Ctrl Shift J`,match:{key:`j`,mod:!0,shiftKey:!0}}]},{id:`tab-new`,category:`navigation`,title:{id:`3YvS-c`},description:{id:`t6w1cq`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ T`,windowsLinux:`Ctrl T`,match:{key:`t`,mod:!0}}]},{id:`tab-next`,category:`navigation`,title:{id:`l46MqT`},description:{id:`thnPBX`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃ Tab`,windowsLinux:`Ctrl Tab`,match:{key:`Tab`,ctrlKey:!0}}]},{id:`tab-previous`,category:`navigation`,title:{id:`Mh_4hd`},description:{id:`DJd000`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃⇧ Tab`,windowsLinux:`Ctrl Shift Tab`,match:{key:`Tab`,ctrlKey:!0,shiftKey:!0}}]},{id:`tab-jump`,category:`navigation`,title:{id:`_6FVBz`},description:{id:`wGSHzy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 1-8`,windowsLinux:`Ctrl 1-8`}]},{id:`tab-jump-last`,category:`navigation`,title:{id:`N1KkEO`},description:{id:`ZQJ1IV`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 9`,windowsLinux:`Ctrl 9`}]},{id:`tab-reopen-closed`,category:`navigation`,title:{id:`hpzRlK`},description:{id:`E5WeIy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ T`,windowsLinux:`Ctrl Shift T`,match:{key:`t`,mod:!0,shiftKey:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`open-file`,category:`workspace`,title:{id:`9npOH9`},description:{id:`H08D2X`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ O`,windowsLinux:`Ctrl Shift O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-copy`,category:`workspace`,title:{id:`eGUbmF`},description:{id:`7uBlRT`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ C`,windowsLinux:`Ctrl C`}]},{id:`file-tree-paste`,category:`workspace`,title:{id:`_tjopj`},description:{id:`e4PbgC`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ V`,windowsLinux:`Ctrl V`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-delete`,category:`workspace`,title:{id:`VxO6wR`},description:{id:`osRqlv`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ Backspace`,windowsLinux:`Delete`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`add-link`,category:`wysiwyg`,title:{id:`VzGJRl`},description:{id:`u7U_Ij`},scope:{id:`v77jrg`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`edit-with-ai`,category:`general`,title:{id:`G4-bgo`},description:{id:`a3H_MR`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ I`,windowsLinux:`Ctrl Shift I`,match:{key:`i`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`zQBg2C`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`r2huLx`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}],f=d,p=new Map(d.map(e=>[e.id,e]));function m(e){let t=p.get(e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function h(){return o()?`mac`:`windowsLinux`}var g=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function _(e){return e.split(` / `).map(e=>g.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function v(e,t=h()){return t===`mac`?e.mac:e.windowsLinux}function y(e,t=h()){return _(v(e,t))}function b(e,t=h()){return v(m(e).bindings[0],t)}function x(e,t=h()){return y(m(e).bindings[0],t)}function S(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function C(e,t,n=h()){return m(t).bindings.some(t=>{let r=w(t.match,n);return r?E(e,r,n):!1})}function w(e,t){return e?T(e)?e:e[t]??null:null}function T(e){return`key`in e||`code`in e}function E(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.metaKey??(t.mod?n===`mac`:!1),i=t.ctrlKey??(t.mod?n===`windowsLinux`:!1),a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}var D=r(),O=n();function k(e){let t=(0,D.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`animate-pulse rounded-md bg-muted`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,O.jsx)(`div`,{"data-slot":`skeleton`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}var A=e(t(),1),j=`open-knowledge:lint-config-changed`;function M(){window.dispatchEvent(new CustomEvent(j))}function N(e){let t=()=>e();return window.addEventListener(j,t),()=>window.removeEventListener(j,t)}async function P(e){try{let t=e===void 0?``:`?doc=${encodeURIComponent(e)}`,n=await fetch(`/api/lint/config${t}`);if(!n.ok)return null;let r=await n.json().catch(()=>null),i=s.safeParse(r);return i.success?i.data:(console.warn(`[lint] lint-config response failed schema validation`,i.error.issues),null)}catch{return null}}async function F(e){return(await P(e))?.effective??null}async function I(e){try{let t=e?`?path=${encodeURIComponent(e)}`:``,n=await fetch(`/api/lint/audit${t}`);if(!n.ok)return null;let r=await n.json().catch(()=>null),i=c.safeParse(r);return i.success?i.data:(console.warn(`[lint] audit response failed schema validation`,i.error.issues),null)}catch{return null}}async function L(e){try{let t=await fetch(`/api/lint/fix`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({docName:e})});if(!t.ok){let e=await t.json().catch(()=>null);return{ok:!1,errorDetail:typeof e?.title==`string`?e.title:null}}let n=await t.json().catch(()=>null),r=a.safeParse(n);return r.success?{ok:!0,result:r.data}:(console.warn(`[lint] fix response failed schema validation`,r.error.issues),{ok:!1,errorDetail:null})}catch{return{ok:!1,errorDetail:null}}}async function R(e,t){try{let n=await fetch(`/api/lint/markdownlint-config`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({ruleId:e,value:t})});if(!n.ok){let e=await n.json().catch(()=>null);return{ok:!1,errorDetail:typeof e?.title==`string`?e.title:null}}let r=await n.json().catch(()=>null),i=s.safeParse(r);return i.success?{ok:!0,response:i.data}:{ok:!1,errorDetail:null}}catch{return{ok:!1,errorDetail:null}}}function z(e){let t=(0,D.c)(5),[n,r]=(0,A.useState)(null),i,a;t[0]===e?(i=t[1],a=t[2]):(i=()=>{if(!e){r(null);return}let t=!1,n=()=>{P(e).then(e=>{t||r(e)})};n();let i=N(n);return()=>{t=!0,i()}},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,A.useEffect)(i,a);let o;return t[3]===n?o=t[4]:(o={data:n},t[3]=n,t[4]=o),o}function B(){let e=(0,D.c)(4),[t,n]=(0,A.useState)(null),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=!1,t=()=>{P().then(t=>{e||n(t)})};t();let r=N(t);return()=>{e=!0,r()}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,A.useEffect)(r,i);let a;return e[2]===t?a=e[3]:(a={data:t},e[2]=t,e[3]=a),a}export{S as _,N as a,R as c,l as d,u as f,_ as g,x as h,I as i,k as l,v as m,F as n,z as o,b as p,L as r,B as s,M as t,f as u,C as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=class{map=new Map;constructor(e){if(this.limit=e,e<=0)throw Error(`LruStringCache: limit must be > 0 (got ${e})`)}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}set(e,t){for(this.map.has(e)&&this.map.delete(e),this.map.set(e,t);this.map.size>this.limit;){let e=this.map.keys().next().value;if(e===void 0)break;this.map.delete(e)}}clear(){this.map.clear()}get size(){return this.map.size}};export{e as t};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./chunk-DseTPa7n.js";import{n as t}from"./compiler-runtime-DrcePeIl.js";import{t as n}from"./react-dom-CMNLH3L-.js";import{t as r}from"./createLucideIcon-Wgamzz8_.js";import{t as i}from"./parse-api-error-DfesE4Y7.js";import{i as a}from"./documents-events-BOt1_9Hf.js";import{l as o,s}from"./doc-hash-BNPgzBjA.js";var c=r(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),l=e(n()),u=e(t());function d(){var e=[...arguments];return(0,u.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var f=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function p(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function m(e){return`nodeType`in e}function h(e){return e?p(e)?e:m(e)?e.ownerDocument?.defaultView??window:window:window}function g(e){let{Document:t}=h(e);return e instanceof t}function _(e){return p(e)?!1:e instanceof h(e).HTMLElement}function v(e){return e instanceof h(e).SVGElement}function y(e){return e?p(e)?e.document:m(e)?g(e)?e:_(e)||v(e)?e.ownerDocument:document:document:document}var b=f?u.useLayoutEffect:u.useEffect;function x(e){let t=(0,u.useRef)(e);return b(()=>{t.current=e}),(0,u.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function S(){let e=(0,u.useRef)(null);return[(0,u.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,u.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function C(e,t){t===void 0&&(t=[e]);let n=(0,u.useRef)(e);return b(()=>{n.current!==e&&(n.current=e)},t),n}function w(e,t){let n=(0,u.useRef)();return(0,u.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function T(e){let t=x(e),n=(0,u.useRef)(null);return[n,(0,u.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function E(e){let t=(0,u.useRef)();return(0,u.useEffect)(()=>{t.current=e},[e]),t.current}var D={};function O(e,t){return(0,u.useMemo)(()=>{if(t)return t;let n=D[e]==null?0:D[e]+1;return D[e]=n,e+`-`+n},[e,t])}function k(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var ee=k(1),A=k(-1);function te(e){return`clientX`in e&&`clientY`in e}function ne(e){if(!e)return!1;let{KeyboardEvent:t}=h(e.target);return t&&e instanceof t}function j(e){if(!e)return!1;let{TouchEvent:t}=h(e.target);return t&&e instanceof t}function re(e){if(j(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return te(e)?{x:e.clientX,y:e.clientY}:null}var M=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[M.Translate.toString(e),M.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),N=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function ie(e){return e.matches(N)?e:e.querySelector(N)}var ae={display:`none`};function P(e){let{id:t,value:n}=e;return u.createElement(`div`,{id:t,style:ae},n)}function F(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return u.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function I(){let[e,t]=(0,u.useState)(``);return{announce:(0,u.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var oe=(0,u.createContext)(null);function se(e){let t=(0,u.useContext)(oe);(0,u.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function ce(){let[e]=(0,u.useState)(()=>new Set),t=(0,u.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,u.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var L={draggable:`
|
|
2
|
-
To pick up a draggable item, press the space bar.
|
|
3
|
-
While dragging, use the arrow keys to move the item.
|
|
4
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
5
|
-
`},R={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function z(e){let{announcements:t=R,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=L}=e,{announce:a,announcement:o}=I(),s=O(`DndLiveRegion`),[c,d]=(0,u.useState)(!1);if((0,u.useEffect)(()=>{d(!0)},[]),se((0,u.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let f=u.createElement(u.Fragment,null,u.createElement(P,{id:r,value:i.draggable}),u.createElement(F,{id:s,announcement:o}));return n?(0,l.createPortal)(f,n):f}var B;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(B||={});function V(){}function le(e,t){return(0,u.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function H(){var e=[...arguments];return(0,u.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var U=Object.freeze({x:0,y:0});function W(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function ue(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function G(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function de(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function fe(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function K(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var pe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=K(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=W(K(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(ue)},me=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=de(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=de(r),o=i.reduce((e,t,r)=>e+W(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(ue)};function he(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var ge=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=he(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(G)};function _e(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function q(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:U}function ve(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var ye=ve(1);function be(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function xe(e,t,n){let r=be(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var Se={ignoreTransform:!1};function J(e,t){t===void 0&&(t=Se);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=h(e).getComputedStyle(e);t&&(n=xe(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function Ce(e){return J(e,{ignoreTransform:!0})}function Y(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function we(e,t){return t===void 0&&(t=h(e).getComputedStyle(e)),t.position===`fixed`}function Te(e,t){t===void 0&&(t=h(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`?n.test(r):!1})}function Ee(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(g(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!_(i)||v(i)||n.includes(i))return n;let a=h(e).getComputedStyle(i);return i!==e&&Te(i,a)&&n.push(i),we(i,a)?n:r(i.parentNode)}return e?r(e):n}function X(e){let[t]=Ee(e,1);return t??null}function De(e){return!f||!e?null:p(e)?e:m(e)?g(e)||e===y(e).scrollingElement?window:_(e)?e:null:null}function Oe(e){return p(e)?e.scrollX:e.scrollLeft}function ke(e){return p(e)?e.scrollY:e.scrollTop}function Ae(e){return{x:Oe(e),y:ke(e)}}var Z;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(Z||={});function je(e){return!f||!e?!1:e===document.scrollingElement}function Me(e){let t={x:0,y:0},n=je(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var Ne={x:.2,y:.2};function Pe(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=Ne);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=Me(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=Z.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=Z.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=Z.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=Z.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function Fe(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Ie(e){return e.reduce((e,t)=>ee(e,Ae(t)),U)}function Le(e){return e.reduce((e,t)=>e+Oe(t),0)}function Re(e){return e.reduce((e,t)=>e+ke(t),0)}function ze(e,t){if(t===void 0&&(t=J),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);X(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var Be=[[`x`,[`left`,`right`],Le],[`y`,[`top`,`bottom`],Re]],Ve=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=Ee(t),r=Ie(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of Be)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,`rect`,{enumerable:!1})}},He=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function Ue(e){let{EventTarget:t}=h(e);return e instanceof t?e:y(e)}function We(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t?r>t.y:!1}var Q;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(Q||={});function Ge(e){e.preventDefault()}function Ke(e){e.stopPropagation()}var $;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})($||={});var qe={start:[$.Space,$.Enter],cancel:[$.Esc],end:[$.Space,$.Enter,$.Tab]},Je=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case $.Right:return{...n,x:n.x+25};case $.Left:return{...n,x:n.x-25};case $.Down:return{...n,y:n.y+25};case $.Up:return{...n,y:n.y-25}}},Ye=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new He(y(t)),this.windowListeners=new He(h(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Q.Resize,this.handleCancel),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Q.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ze(n),t(U)}handleKeyDown(e){if(ne(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=qe,coordinateGetter:a=Je,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:U;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=A(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=Me(n),p=Fe(n),m={x:Math.min(i===$.Right?p.right-p.width/2:p.right,Math.max(i===$.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===$.Down?p.bottom-p.height/2:p.bottom,Math.max(i===$.Down?p.top:p.top+p.height/2,u.y))},h=i===$.Right&&!s||i===$.Left&&!c,g=i===$.Down&&!l||i===$.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===$.Right&&e<=d.x||i===$.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===$.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}else if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===$.Down&&e<=d.y||i===$.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===$.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,ee(A(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Ye.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=qe,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function Xe(e){return!!(e&&`distance`in e)}function Ze(e){return!!(e&&`delay`in e)}var Qe=class{constructor(e,t,n){n===void 0&&(n=Ue(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=y(i),this.documentListeners=new He(this.document),this.listeners=new He(n),this.windowListeners=new He(h(i)),this.initialCoordinates=re(r)??U,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Q.Resize,this.handleCancel),this.windowListeners.add(Q.DragStart,Ge),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),this.windowListeners.add(Q.ContextMenu,Ge),this.documentListeners.add(Q.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ze(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(Xe(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Q.Click,Ke,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Q.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=re(e)??U,s=A(n,o);if(!t&&a){if(Xe(a)){if(a.tolerance!=null&&We(s,a.tolerance))return this.handleCancel();if(We(s,a.distance))return this.handleStart()}if(Ze(a)&&We(s,a.tolerance))return this.handleCancel();this.handlePending(a,s);return}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===$.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},$e={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},et=class extends Qe{constructor(e){let{event:t}=e,n=y(t.target);super(e,$e,n)}};et.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var tt={move:{name:`mousemove`},end:{name:`mouseup`}},nt;(function(e){e[e.RightClick=2]=`RightClick`})(nt||={});var rt=class extends Qe{constructor(e){super(e,tt,y(e.event.target))}};rt.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===nt.RightClick?!1:(r?.({event:n}),!0)}}];var it={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},at=class extends Qe{constructor(e){super(e,it)}static setup(){return window.addEventListener(it.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(it.move.name,e)};function e(){}}};at.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var ot;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(ot||={});var st;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(st||={});function ct(e){let{acceleration:t,activator:n=ot.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=st.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:d,delta:f,threshold:p}=e,m=ut({delta:f,disabled:!a}),[h,g]=S(),_=(0,u.useRef)({x:0,y:0}),v=(0,u.useRef)({x:0,y:0}),y=(0,u.useMemo)(()=>{switch(n){case ot.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case ot.DraggableRect:return i}},[n,i,c]),b=(0,u.useRef)(null),x=(0,u.useCallback)(()=>{let e=b.current;if(!e)return;let t=_.current.x*v.current.x,n=_.current.y*v.current.y;e.scrollBy(t,n)},[]),C=(0,u.useMemo)(()=>s===st.TreeOrder?[...l].reverse():l,[s,l]);(0,u.useEffect)(()=>{if(!a||!l.length||!y){g();return}for(let e of C){if(r?.(e)===!1)continue;let n=d[l.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=Pe(e,n,y,t,p);for(let e of[`x`,`y`])m[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){g(),b.current=e,h(x,o),_.current=a,v.current=i;return}}_.current={x:0,y:0},v.current={x:0,y:0},g()},[t,x,r,g,a,o,JSON.stringify(y),JSON.stringify(m),h,l,C,d,JSON.stringify(p)])}var lt={x:{[Z.Backward]:!1,[Z.Forward]:!1},y:{[Z.Backward]:!1,[Z.Forward]:!1}};function ut(e){let{delta:t,disabled:n}=e,r=E(t);return w(e=>{if(n||!r||!e)return lt;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Z.Backward]:e.x[Z.Backward]||i.x===-1,[Z.Forward]:e.x[Z.Forward]||i.x===1},y:{[Z.Backward]:e.y[Z.Backward]||i.y===-1,[Z.Forward]:e.y[Z.Forward]||i.y===1}}},[n,t,r])}function dt(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return w(e=>t==null?null:r??e??null,[r,t])}function ft(e,t){return(0,u.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var pt;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(pt||={});var mt;(function(e){e.Optimized=`optimized`})(mt||={});var ht=new Map;function gt(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,u.useState)(null),{frequency:s,measure:c,strategy:l}=i,d=(0,u.useRef)(e),f=_(),p=C(f),m=(0,u.useCallback)(function(e){e===void 0&&(e=[]),!p.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),h=(0,u.useRef)(null),g=w(t=>{if(f&&!n)return ht;if(!t||t===ht||d.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Ve(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,f,c]);return(0,u.useEffect)(()=>{d.current=e},[e]),(0,u.useEffect)(()=>{f||m()},[n,f]),(0,u.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,u.useEffect)(()=>{f||typeof s!=`number`||h.current!==null||(h.current=setTimeout(()=>{m(),h.current=null},s))},[s,f,m,...r]),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:a!=null};function _(){switch(l){case pt.Always:return!1;case pt.BeforeDragging:return n;default:return!n}}}function _t(e,t){return w(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function vt(e,t){return _t(e,t)}function yt(e){let{callback:t,disabled:n}=e,r=x(t),i=(0,u.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,u.useEffect)(()=>()=>i?.disconnect(),[i]),i}function bt(e){let{callback:t,disabled:n}=e,r=x(t),i=(0,u.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,u.useEffect)(()=>()=>i?.disconnect(),[i]),i}function xt(e){return new Ve(J(e),e)}function St(e,t,n){t===void 0&&(t=xt);let[r,i]=(0,u.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=yt({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=bt({callback:a});return b(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function Ct(e){return q(e,_t(e))}var wt=[];function Tt(e){let t=(0,u.useRef)(e),n=w(n=>e?n&&n!==wt&&e&&t.current&&e.parentNode===t.current.parentNode?n:Ee(e):wt,[e]);return(0,u.useEffect)(()=>{t.current=e},[e]),n}function Et(e){let[t,n]=(0,u.useState)(null),r=(0,u.useRef)(e),i=(0,u.useCallback)(e=>{let t=De(e.target);t&&n(e=>e?(e.set(t,Ae(t)),new Map(e)):null)},[]);return(0,u.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=De(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,Ae(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{De(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,u.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>ee(e,t),U):Ie(e):U,[e,t])}function Dt(e,t){t===void 0&&(t=[]);let n=(0,u.useRef)(null);return(0,u.useEffect)(()=>{n.current=null},t),(0,u.useEffect)(()=>{let t=e!==U;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?A(e,n.current):U}function Ot(e){(0,u.useEffect)(()=>{if(!f)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function kt(e,t){return(0,u.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function At(e){return(0,u.useMemo)(()=>e?Y(e):null,[e])}var jt=[];function Mt(e,t){t===void 0&&(t=J);let[n]=e,r=At(n?h(n):null),[i,a]=(0,u.useState)(jt);function o(){a(()=>e.length?e.map(e=>je(e)?r:new Ve(t(e),e)):jt)}let s=bt({callback:o});return b(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function Nt(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return _(t)?t:e}function Pt(e){let{measure:t}=e,[n,r]=(0,u.useState)(null),i=bt({callback:(0,u.useCallback)(e=>{for(let{target:n}of e)if(_(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=T((0,u.useCallback)(e=>{let n=Nt(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,u.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var Ft=[{sensor:et,options:{}},{sensor:Ye,options:{}}],It={current:{}},Lt={draggable:{measure:Ce},droppable:{measure:Ce,strategy:pt.WhileDragging,frequency:mt.Optimized},dragOverlay:{measure:J}},Rt=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},zt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Rt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:V},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Lt,measureDroppableContainers:V,windowRect:null,measuringScheduled:!1},Bt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:V,draggableNodes:new Map,over:null,measureDroppableContainers:V},Vt=(0,u.createContext)(Bt),Ht=(0,u.createContext)(zt);function Ut(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Rt}}}function Wt(e,t){switch(t.type){case B.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case B.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case B.DragEnd:case B.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case B.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new Rt(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case B.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new Rt(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case B.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new Rt(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Gt(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,u.useContext)(Vt),a=E(r),o=E(n?.id);return(0,u.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!ne(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=ie(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function Kt(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function qt(e){return(0,u.useMemo)(()=>({draggable:{...Lt.draggable,...e?.draggable},droppable:{...Lt.droppable,...e?.droppable},dragOverlay:{...Lt.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Jt(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,u.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;b(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=q(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=X(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var Yt=(0,u.createContext)({...U,scaleX:1,scaleY:1}),Xt;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(Xt||={});var Zt=(0,u.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=Ft,collisionDetection:o=ge,measuring:s,modifiers:c,...d}=e,[f,p]=(0,u.useReducer)(Wt,void 0,Ut),[m,g]=ce(),[_,v]=(0,u.useState)(Xt.Uninitialized),y=_===Xt.Initialized,{draggable:{active:x,nodes:S,translate:w},droppable:{containers:T}}=f,E=x==null?null:S.get(x),D=(0,u.useRef)({initial:null,translated:null}),k=(0,u.useMemo)(()=>x==null?null:{id:x,data:E?.data??It,rect:D},[x,E]),A=(0,u.useRef)(null),[te,ne]=(0,u.useState)(null),[j,M]=(0,u.useState)(null),N=C(d,Object.values(d)),ie=O(`DndDescribedBy`,t),ae=(0,u.useMemo)(()=>T.getEnabled(),[T]),P=qt(s),{droppableRects:F,measureDroppableContainers:I,measuringScheduled:se}=gt(ae,{dragging:y,dependencies:[w.x,w.y],config:P.droppable}),L=dt(S,x),R=(0,u.useMemo)(()=>j?re(j):null,[j]),V=Ne(),le=vt(L,P.draggable.measure);Jt({activeNode:x==null?null:S.get(x),config:V.layoutShiftCompensation,initialRect:le,measure:P.draggable.measure});let H=St(L,P.draggable.measure,le),U=St(L?L.parentElement:null),W=(0,u.useRef)({activatorEvent:null,active:null,activeNode:L,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ue=T.getNodeFor(W.current.over?.id),G=Pt({measure:P.dragOverlay.measure}),de=G.nodeRef.current??L,K=y?G.rect??H:null,pe=!!(G.nodeRef.current&&G.rect),me=Ct(pe?null:H),he=At(de?h(de):null),q=Tt(y?ue??L:null),ve=Mt(q),be=Kt(c,{transform:{x:w.x-me.x,y:w.y-me.y,scaleX:1,scaleY:1},activatorEvent:j,active:k,activeNodeRect:H,containerNodeRect:U,draggingNodeRect:K,over:W.current.over,overlayNodeRect:G.rect,scrollableAncestors:q,scrollableAncestorRects:ve,windowRect:he}),xe=R?ee(R,w):null,Se=Et(q),J=Dt(Se),Ce=Dt(Se,[H]),Y=ee(be,J),we=K?ye(K,be):null,Te=k&&we?o({active:k,collisionRect:we,droppableRects:F,droppableContainers:ae,pointerCoordinates:xe}):null,Ee=fe(Te,`id`),[X,De]=(0,u.useState)(null),Oe=_e(pe?be:ee(be,Ce),X?.rect??null,H),ke=(0,u.useRef)(null),Ae=(0,u.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(A.current==null)return;let i=S.get(A.current);if(!i)return;let a=e.nativeEvent;ke.current=new n({active:A.current,activeNode:i,event:a,options:r,context:W,onAbort(e){if(!S.get(e))return;let{onDragAbort:t}=N.current,n={id:e};t?.(n),m({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!S.get(e))return;let{onDragPending:i}=N.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),m({type:`onDragPending`,event:a})},onStart(e){let t=A.current;if(t==null)return;let n=S.get(t);if(!n)return;let{onDragStart:r}=N.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:D}};(0,l.unstable_batchedUpdates)(()=>{r?.(i),v(Xt.Initializing),p({type:B.DragStart,initialCoordinates:e,active:t}),m({type:`onDragStart`,event:i}),ne(ke.current),M(a)})},onMove(e){p({type:B.DragMove,coordinates:e})},onEnd:o(B.DragEnd),onCancel:o(B.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=W.current,o=null;if(t&&i){let{cancelDrop:s}=N.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===B.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=B.DragCancel)}A.current=null,(0,l.unstable_batchedUpdates)(()=>{p({type:e}),v(Xt.Uninitialized),De(null),ne(null),M(null),ke.current=null;let t=e===B.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=N.current[t];e?.(o),m({type:t,event:o})}})}}},[S]),Z=ft(a,(0,u.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=S.get(r);if(A.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},A.current=r,Ae(n,t))},[S,Ae]));Ot(a),b(()=>{H&&_===Xt.Initializing&&v(Xt.Initialized)},[H,_]),(0,u.useEffect)(()=>{let{onDragMove:e}=N.current,{active:t,activatorEvent:n,collisions:r,over:i}=W.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:Y.x,y:Y.y},over:i};(0,l.unstable_batchedUpdates)(()=>{e?.(a),m({type:`onDragMove`,event:a})})},[Y.x,Y.y]),(0,u.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=W.current;if(!e||A.current==null||!t||!i)return;let{onDragOver:a}=N.current,o=r.get(Ee),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,l.unstable_batchedUpdates)(()=>{De(s),a?.(c),m({type:`onDragOver`,event:c})})},[Ee]),b(()=>{W.current={activatorEvent:j,active:k,activeNode:L,collisionRect:we,collisions:Te,droppableRects:F,draggableNodes:S,draggingNode:de,draggingNodeRect:K,droppableContainers:T,over:X,scrollableAncestors:q,scrollAdjustedTranslate:Y},D.current={initial:K,translated:we}},[k,L,Te,we,S,de,K,F,T,X,q,Y]),ct({...V,delta:w,draggingRect:we,pointerCoordinates:xe,scrollableAncestors:q,scrollableAncestorRects:ve});let je=(0,u.useMemo)(()=>({active:k,activeNode:L,activeNodeRect:H,activatorEvent:j,collisions:Te,containerNodeRect:U,dragOverlay:G,draggableNodes:S,droppableContainers:T,droppableRects:F,over:X,measureDroppableContainers:I,scrollableAncestors:q,scrollableAncestorRects:ve,measuringConfiguration:P,measuringScheduled:se,windowRect:he}),[k,L,H,j,Te,U,G,S,T,F,X,I,q,ve,P,se,he]),Me=(0,u.useMemo)(()=>({activatorEvent:j,activators:Z,active:k,activeNodeRect:H,ariaDescribedById:{draggable:ie},dispatch:p,draggableNodes:S,over:X,measureDroppableContainers:I}),[j,Z,k,H,p,ie,S,X,I]);return u.createElement(oe.Provider,{value:g},u.createElement(Vt.Provider,{value:Me},u.createElement(Ht.Provider,{value:je},u.createElement(Yt.Provider,{value:Oe},i)),u.createElement(Gt,{disabled:n?.restoreFocus===!1})),u.createElement(z,{...n,hiddenTextDescribedById:ie}));function Ne(){let e=te?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=y&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),Qt=(0,u.createContext)(null),$t=`button`,en=`Draggable`;function tn(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=O(en),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:d,draggableNodes:f,over:p}=(0,u.useContext)(Vt),{role:m=$t,roleDescription:h=`draggable`,tabIndex:g=0}=i??{},_=c?.id===t,v=(0,u.useContext)(_?Yt:Qt),[y,x]=T(),[S,w]=T(),E=kt(o,t),D=C(n);return b(()=>(f.set(t,{id:t,key:a,node:y,activatorNode:S,data:D}),()=>{let e=f.get(t);e&&e.key===a&&f.delete(t)}),[f,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,u.useMemo)(()=>({role:m,tabIndex:g,"aria-disabled":r,"aria-pressed":_&&m===$t?!0:void 0,"aria-roledescription":h,"aria-describedby":d.draggable}),[r,m,g,_,h,d.draggable]),isDragging:_,listeners:r?void 0:E,node:y,over:p,setNodeRef:x,setActivatorNodeRef:w,transform:v}}function nn(){return(0,u.useContext)(Ht)}var rn=`Droppable`,an={timeout:25};function on(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=O(rn),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,u.useContext)(Vt),d=(0,u.useRef)({disabled:n}),f=(0,u.useRef)(!1),p=(0,u.useRef)(null),m=(0,u.useRef)(null),{disabled:h,updateMeasurementsFor:g,timeout:_}={...an,...i},v=C(g??r),y=bt({callback:(0,u.useCallback)(()=>{if(!f.current){f.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{l(Array.isArray(v.current)?v.current:[v.current]),m.current=null},_)},[_]),disabled:h||!o}),[b,x]=T((0,u.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),f.current=!1),e&&y.observe(e))},[y])),S=C(t);return(0,u.useEffect)(()=>{!y||!b.current||(y.disconnect(),f.current=!1,y.observe(b.current))},[b,y]),(0,u.useEffect)(()=>(s({type:B.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:p,data:S}}),()=>s({type:B.UnregisterDroppable,key:a,id:r})),[r]),(0,u.useEffect)(()=>{n!==d.current.disabled&&(s({type:B.SetDroppableDisabled,id:r,key:a,disabled:n}),d.current.disabled=n)},[r,a,n,s]),{active:o,rect:p,isOver:c?.id===r,node:b,over:c,setNodeRef:x}}function sn(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function cn(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function ln(e){return e!==null&&e>=0}function un(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function dn(e){return typeof e==`boolean`?{draggable:e,droppable:e}:e}var fn={scaleX:1,scaleY:1},pn=e=>{let{rects:t,activeNodeRect:n,activeIndex:r,overIndex:i,index:a}=e,o=t[r]??n;if(!o)return null;let s=mn(t,a,r);if(a===r){let e=t[i];return e?{x:r<i?e.left+e.width-(o.left+o.width):e.left-o.left,y:0,...fn}:null}return a>r&&a<=i?{x:-o.width-s,y:0,...fn}:a<r&&a>=i?{x:o.width+s,y:0,...fn}:{x:0,y:0,...fn}};function mn(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return!r||!i&&!a?0:n<t?i?r.left-(i.left+i.width):a.left-(r.left+r.width):a?a.left-(r.left+r.width):r.left-(i.left+i.width)}var hn=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=sn(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},gn={scaleX:1,scaleY:1},_n=e=>{let{activeIndex:t,activeNodeRect:n,index:r,rects:i,overIndex:a}=e,o=i[t]??n;if(!o)return null;if(r===t){let e=i[a];return e?{x:0,y:t<a?e.top+e.height-(o.top+o.height):e.top-o.top,...gn}:null}let s=vn(i,r,t);return r>t&&r<=a?{x:0,y:-o.height-s,...gn}:r<t&&r>=a?{x:0,y:o.height+s,...gn}:{x:0,y:0,...gn}};function vn(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return r?n<t?i?r.top-(i.top+i.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}var yn=`Sortable`,bn=u.createContext({activeIndex:-1,containerId:yn,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:hn,disabled:{draggable:!1,droppable:!1}});function xn(e){let{children:t,id:n,items:r,strategy:i=hn,disabled:a=!1}=e,{active:o,dragOverlay:s,droppableRects:c,over:l,measureDroppableContainers:d}=nn(),f=O(yn,n),p=s.rect!==null,m=(0,u.useMemo)(()=>r.map(e=>typeof e==`object`&&`id`in e?e.id:e),[r]),h=o!=null,g=o?m.indexOf(o.id):-1,_=l?m.indexOf(l.id):-1,v=(0,u.useRef)(m),y=!un(m,v.current),x=_!==-1&&g===-1||y,S=dn(a);b(()=>{y&&h&&d(m)},[y,m,h,d]),(0,u.useEffect)(()=>{v.current=m},[m]);let C=(0,u.useMemo)(()=>({activeIndex:g,containerId:f,disabled:S,disableTransforms:x,items:m,overIndex:_,useDragOverlay:p,sortedRects:cn(m,c),strategy:i}),[g,f,S.draggable,S.droppable,x,m,_,c,p,i]);return u.createElement(bn.Provider,{value:C},t)}var Sn=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return sn(n,r,i).indexOf(t)},Cn=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},wn={duration:200,easing:`ease`},Tn=`transform`,En=M.Transition.toString({property:Tn,duration:0,easing:`linear`}),Dn={roleDescription:`sortable`};function On(e){let{disabled:t,index:n,node:r,rect:i}=e,[a,o]=(0,u.useState)(null),s=(0,u.useRef)(n);return b(()=>{if(!t&&n!==s.current&&r.current){let e=i.current;if(e){let t=J(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}n!==s.current&&(s.current=n)},[t,n,r,i]),(0,u.useEffect)(()=>{a&&o(null)},[a]),a}function kn(e){let{animateLayoutChanges:t=Cn,attributes:n,disabled:r,data:i,getNewIndex:a=Sn,id:o,strategy:s,resizeObserverConfig:c,transition:l=wn}=e,{items:f,containerId:p,activeIndex:m,disabled:h,disableTransforms:g,sortedRects:_,overIndex:v,useDragOverlay:y,strategy:b}=(0,u.useContext)(bn),x=An(r,h),S=f.indexOf(o),C=(0,u.useMemo)(()=>({sortable:{containerId:p,index:S,items:f},...i}),[p,i,S,f]),w=(0,u.useMemo)(()=>f.slice(f.indexOf(o)),[f,o]),{rect:T,node:E,isOver:D,setNodeRef:O}=on({id:o,data:C,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...c}}),{active:k,activatorEvent:ee,activeNodeRect:A,attributes:te,setNodeRef:j,listeners:re,isDragging:N,over:ie,setActivatorNodeRef:ae,transform:P}=tn({id:o,data:C,attributes:{...Dn,...n},disabled:x.draggable}),F=d(O,j),I=!!k,oe=I&&!g&&ln(m)&&ln(v),se=!y&&N,ce=oe?(se&&oe?P:null)??(s??b)({rects:_,activeNodeRect:A,activeIndex:m,overIndex:v,index:S}):null,L=ln(m)&&ln(v)?a({id:o,items:f,activeIndex:m,overIndex:v}):S,R=k?.id,z=(0,u.useRef)({activeId:R,items:f,newIndex:L,containerId:p}),B=f!==z.current.items,V=t({active:k,containerId:p,isDragging:N,isSorting:I,id:o,index:S,items:f,newIndex:z.current.newIndex,previousItems:z.current.items,previousContainerId:z.current.containerId,transition:l,wasDragging:z.current.activeId!=null}),le=On({disabled:!V,index:S,node:E,rect:T});return(0,u.useEffect)(()=>{I&&z.current.newIndex!==L&&(z.current.newIndex=L),p!==z.current.containerId&&(z.current.containerId=p),f!==z.current.items&&(z.current.items=f)},[I,L,p,f]),(0,u.useEffect)(()=>{if(R===z.current.activeId)return;if(R!=null&&z.current.activeId==null){z.current.activeId=R;return}let e=setTimeout(()=>{z.current.activeId=R},50);return()=>clearTimeout(e)},[R]),{active:k,activeIndex:m,attributes:te,data:C,rect:T,index:S,newIndex:L,items:f,isOver:D,isSorting:I,isDragging:N,listeners:re,node:E,overIndex:v,over:ie,setNodeRef:F,setActivatorNodeRef:ae,setDroppableNodeRef:O,setDraggableNodeRef:j,transform:le??ce,transition:H()};function H(){if(le||B&&z.current.newIndex===S)return En;if(!(se&&!ne(ee)||!l)&&(I||V))return M.Transition.toString({...l,property:Tn})}}function An(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function jn(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var Mn=[$.Down,$.Right,$.Up,$.Left],Nn=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(Mn.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case $.Down:r.top<a.top&&t.push(n);break;case $.Up:r.top>a.top&&t.push(n);break;case $.Left:r.left>a.left&&t.push(n);break;case $.Right:r.left<a.left&&t.push(n);break}});let c=me({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null}),l=fe(c,`id`);if(l===o?.id&&c.length>1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=Ee(c).some((e,t)=>s[t]!==e),i=Pn(e,t),a=Fn(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:A(u,l)}}}};function Pn(e,t){return!jn(e)||!jn(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Fn(e,t){return!jn(e)||!jn(t)||!Pn(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}async function In(e){return i(await e.json().catch(()=>null))??`HTTP ${e.status}`}async function Ln(e,t){try{let n=await fetch(`/api/folder-config`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e,frontmatter:t})});return n.ok?{ok:!0}:{ok:!1,error:await In(n)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function Rn(e){try{let t=await fetch(`/api/template`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await In(t)};let n=await t.json().catch(()=>null);return a(),{ok:!0,created:n?.created??!1,warnings:n?.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function zn(e,t){try{let n=`?folder=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`,r=await fetch(`/api/template${n}`,{method:`DELETE`});if(!r.ok)return{ok:!1,error:await In(r)};let i=await r.json().catch(()=>null);return a(),{ok:!0,existed:i?.existed??!1}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function Bn(e){try{let t=await fetch(`/api/template`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await In(t)};let n=await t.json().catch(()=>null);return a(),{ok:!0,committed:n?.committed??!1}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function Vn(e){try{let t=await fetch(`/api/template/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await In(t)};let n=await t.json().catch(()=>null);return a(),{ok:!0,path:n?.path??``,created:n?.created??!1,warnings:n?.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}function Hn(e){if(typeof window>`u`)return;let t=s(e);window.location.hash!==t&&(window.location.hash=t)}function Un(e){if(typeof window>`u`)return;let t=o(e);window.location.hash!==t&&(window.location.hash=t)}export{c as S,et as _,Bn as a,H as b,xn as c,Nn as d,kn as f,Ye as g,$ as h,Vn as i,sn as l,Zt as m,Un as n,Ln as o,_n as p,zn as r,Rn as s,Hn as t,pn as u,pe as v,M as x,le as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-EMLP6XTP-DjxQVp6i.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-Wgamzz8_.js";var t=e(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),n=e(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]);export{t as n,n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-YOTPTUD7-CAY_zY8l.js";export{e as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./chunk-DseTPa7n.js";import{n,r,t as i}from"./compiler-runtime-DrcePeIl.js";import{t as a}from"./createLucideIcon-Wgamzz8_.js";import{qr as o}from"./dist-D--vIb9_.js";import{t as s}from"./parse-api-error-DfesE4Y7.js";import{c as ee,f as te,l as c,t as ne,u as l}from"./navigation-targets-Dp0ljlND.js";import{o as re}from"./documents-events-BOt1_9Hf.js";import{t as u}from"./documents-fetch-BzTSsuPI.js";import{r as ie}from"./startup-marks-2VTPXUbb.js";var d=a(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),f=a(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),p=e(n(),1),ae=i();function m(e,t){let n=!1,r=!1,i=!1;async function a(){if(!i){n=!0;try{await e()}finally{n=!1,i?r=!1:r&&(r=!1,a())}}}return{request(){if(!i){if(n){r=!0,t?.();return}a()}},dispose(){i=!0,r=!1,t?.()}}}var oe=r(),h=(0,p.createContext)(null);function se(e,t){if(t.size===0)return new Set(e);let n=new Set(e);for(let e of t)n.add(e);return n}function ce(e,t){if(e.size===0)return new Set;let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}function g(e,t){let n=new Map(e);for(let e of t)n.has(e)||n.set(e,e);return n}async function le(){let e=await fetch(`/api/pages`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(s(t)??`/api/pages responded with ${e.status}`)}let t=await e.json();return Array.isArray(t.pages)?t.pages:[]}async function ue(){let{ok:e,status:t,body:n}=await u();if(!e)throw Error(s(n)??`/api/documents responded with ${t}`);let r=n??{};return Array.isArray(r.documents)?{assetPaths:r.documents.filter(e=>e.kind===`asset`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path),folderPaths:r.documents.filter(e=>e.kind===`folder`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path),filePaths:r.documents.filter(e=>e.kind===`file`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path)}:{assetPaths:[],folderPaths:[],filePaths:[]}}function de(e){console.error(`[PageListContext] Failed to load pages:`,e)}function _(e){console.warn(`[PageListContext] Failed to load referenced assets:`,e)}function v(e){let t=(0,ae.c)(54),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=new Set,t[0]=r):r=t[0];let[i,a]=(0,p.useState)(r),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=new Map,t[1]=s):s=t[1];let[u,d]=(0,p.useState)(s),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=new Map,t[2]=f):f=t[2];let[_,v]=(0,p.useState)(f),y;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(y=new Set,t[3]=y):y=t[3];let[b,x]=(0,p.useState)(y),S;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=new Set,t[4]=S):S=t[4];let[C,ge]=(0,p.useState)(S),w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=new Set,t[5]=w):w=t[5];let[T,_e]=(0,p.useState)(w),E;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(E=new Set,t[6]=E):E=t[6];let[D,O]=(0,p.useState)(E),[k,A]=(0,p.useState)(!0),[j,M]=(0,p.useState)(null),N=(0,p.useRef)(0),P;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(P=function(){let e=N.current+=1;return Promise.all([le(),ue().catch(he)]).then(t=>{let[n,r]=t;if(e!==N.current)return;let i=new Set(n.map(me));a(i),d(new Map(n.map(pe))),v(new Map(n.map(fe))),x(new Set(r.assetPaths)),ge(new Set(r.folderPaths)),_e(new Set(r.filePaths)),O(e=>ce(e,i)),M(null),ie()}).catch(t=>{e===N.current&&(de(t),M(t instanceof Error?t.message:`Failed to load pages`))}).finally(()=>{e===N.current&&A(!1)})},t[7]=P):P=t[7];let F=P,I;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(I=function(e){O(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n}),M(null)},t[8]=I):I=t[8];let ve=I,L,R;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(L=()=>{let e=m(F);e.request();let t=null,n=()=>{document.visibilityState===`visible`&&e.request()};window.addEventListener(`focus`,n),window.addEventListener(`visibilitychange`,n);let r=re(n=>{n.includes(`files`)&&t===null&&(t=setTimeout(()=>{t=null,e.request()},300))});return()=>{t!==null&&clearTimeout(t),e.dispose(),window.removeEventListener(`focus`,n),window.removeEventListener(`visibilitychange`,n),r()}},R=[],t[9]=L,t[10]=R):(L=t[9],R=t[10]),(0,p.useEffect)(L,R);let z,B,V,H,U,W,G,K;if(t[11]!==D||t[12]!==b||t[13]!==T||t[14]!==C||t[15]!==_||t[16]!==u||t[17]!==i){W=se(i,D);let e;t[26]!==D||t[27]!==u?(e=g(u,D),t[26]=D,t[27]=u,t[28]=e):e=t[28],U=e,H=_,z=b,B=T,V=new Set([...ne(W),...C]),G=l(W,o),K=c(W,o),t[11]=D,t[12]=b,t[13]=T,t[14]=C,t[15]=_,t[16]=u,t[17]=i,t[18]=z,t[19]=B,t[20]=V,t[21]=H,t[22]=U,t[23]=W,t[24]=G,t[25]=K}else z=t[18],B=t[19],V=t[20],H=t[21],U=t[22],W=t[23],G=t[24],K=t[25];let q=K,J;t[29]===_?J=t[30]:(J=ee(_),t[29]=_,t[30]=J);let Y=J,X,Z;t[31]!==z||t[32]!==B||t[33]!==V||t[34]!==Y||t[35]!==W||t[36]!==q||t[37]!==G?(X=()=>{te({pages:W,folderPaths:V,pagesBySlug:G,pagesByBasename:q,assetPaths:z,filePaths:B,pageIcons:Y})},Z=[W,V,G,q,z,B,Y],t[31]=z,t[32]=B,t[33]=V,t[34]=Y,t[35]=W,t[36]=q,t[37]=G,t[38]=X,t[39]=Z):(X=t[38],Z=t[39]),(0,p.useEffect)(X,Z);let Q;t[40]!==z||t[41]!==j||t[42]!==B||t[43]!==V||t[44]!==k||t[45]!==H||t[46]!==U||t[47]!==W||t[48]!==q||t[49]!==G?(Q={pages:W,pagesBySlug:G,pagesByBasename:q,pageTitles:U,pageMeta:H,folderPaths:V,assetPaths:z,filePaths:B,loading:k,error:j,refetch:F,addPage:ve},t[40]=z,t[41]=j,t[42]=B,t[43]=V,t[44]=k,t[45]=H,t[46]=U,t[47]=W,t[48]=q,t[49]=G,t[50]=Q):Q=t[50];let $;return t[51]!==n||t[52]!==Q?($=(0,oe.jsx)(h,{value:Q,children:n}),t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}function fe(e){return[e.docName,{size:e.size,modified:e.modified,docExt:e.docExt,icon:e.icon}]}function pe(e){return[e.docName,e.title]}function me(e){return e.docName}function he(e){return _(e),{assetPaths:[],folderPaths:[],filePaths:[]}}function y(){let e=(0,p.use)(h);if(!e)throw Error(`usePageList must be used within <PageListProvider />`);return e}function b(){return(0,p.use)(h)}var x=t(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),S=t(((e,t)=>{var n=x();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),C=t(((e,t)=>{t.exports=S()()}));export{m as a,y as i,v as n,f as o,b as r,d as s,C as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-QBLGF6JB-Cip_ZYPa.js";export{e as createRadarServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-5TONJI2A-D8ryhTto.js";export{e as createRailroadServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-5HE753X5-weABv-wL.js";export{e as createRailroadAbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-U6XO7XAA-DN2BTHsF.js";export{e as createRailroadEbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-JG7HCLWE-BZZpuOy0.js";export{e as createRailroadPegServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./chunk-DseTPa7n.js";import{n as t,r as n,t as r}from"./compiler-runtime-DrcePeIl.js";import{n as i,r as a}from"./dist-CSDjUb5q.js";import{n as o}from"./dist-DGbq0bSp.js";import{n as s,t as c,u as l}from"./createLucideIcon-Wgamzz8_.js";import{a as u,c as d,i as f,n as p,o as m,r as h,s as g,t as _}from"./dialog-492Ff7fG.js";import{C as v,S as y,T as b,_ as x,a as S,d as C,f as w,g as T,n as E,s as D,t as O,v as k,w as A}from"./skills-api-Zn9HHSnp.js";import{t as j}from"./label-CveCqKNR.js";import{$t as M,Gt as N,It as P,Lt as F,P as I,Pt as L,Qt as R,Tt as z,Wt as B,Xt as V,Zr as H,_n as U,at as W,dn as G,fn as K,hn as ee,mn as te,n as q,pn as ne,t as re,vn as ie,yn as ae}from"./dist-D--vIb9_.js";import{a as J,d as oe,l as se,n as Y,r as ce,t as le,u as ue}from"./workspace-paths-DFIcBLaH.js";import{t as de}from"./copy-CfDOH9N1.js";import{t as fe}from"./folder-open-ygPcz1xa.js";import{t as pe}from"./loader-circle-BrJhrTc7.js";import{t as me}from"./refresh-cw-DgVrChIu.js";import{t as he}from"./trash-2-U9wpS1zc.js";import{n as X}from"./dist-CAIcun02.js";import{t as ge}from"./input-b4FSCbA5.js";import{t as _e}from"./dist-o9cVHl8Q.js";import{t as ve}from"./parse-api-error-DfesE4Y7.js";import{o as ye,s as be}from"./documents-events-BOt1_9Hf.js";import{n as xe}from"./config-context-BaIZpYSb.js";import{a as Se,n as Ce,r as we,t as Te}from"./cursor-jdIvZ4dc.js";import{n as Ee}from"./clipboard-adapter-CfjsRFpv.js";var De=c(`cloud-download`,[[`path`,{d:`M12 13v8l-4-4`,key:`1f5nwf`}],[`path`,{d:`m12 21 4-4`,key:`1lfcce`}],[`path`,{d:`M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284`,key:`ui1hmy`}]]),Oe=c(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),ke=c(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Ae=c(`power-off`,[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Z=e(t(),1),Q=r(),je=[{id:`claude-cowork`,displayName:`Claude Cowork`,appBrandName:`Claude Desktop`,schemes:[`claude:`],installUrl:`https://claude.com/download`,tagline:`Conversational pairing in Claude Desktop's Cowork tab.`},{id:`claude-code`,displayName:`Claude`,appBrandName:`Claude Desktop`,schemes:[`claude:`],installUrl:`https://claude.com/download`,tagline:`Agentic coding in Claude Desktop's Code tab.`},{id:`codex`,displayName:`Codex`,appBrandName:`Codex Desktop`,schemes:[`codex:`],installUrl:`https://openai.com/codex`,tagline:`OpenAI's coding agent, terminal-native.`},{id:`cursor`,displayName:`Cursor`,schemes:[`cursor:`],installUrl:`https://cursor.com/`,tagline:`AI-first VS Code fork with multi-file edits.`},{id:`copilot`,displayName:`GitHub Copilot`,schemes:[],installUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli/cli-getting-started`,tagline:`GitHub's terminal-native coding agent.`},{id:`opencode`,displayName:`OpenCode`,schemes:[],installUrl:`https://opencode.ai`,tagline:`Open-source terminal coding agent; bring any local model.`},{id:`pi`,displayName:`Pi`,schemes:[],installUrl:`https://pi.dev`,tagline:`Minimal open-source terminal coding agent, extensible in TypeScript.`},{id:`antigravity`,displayName:`Antigravity`,schemes:[],installUrl:`https://antigravity.google`,tagline:"Google's agentic IDE + `agy` terminal agent."},{id:`openclaw`,displayName:`OpenClaw`,schemes:[],installUrl:`https://openclaw.ai`,tagline:`Open-source agent gateway; runs agents against your MCP servers.`},{id:`hermes`,displayName:`Hermes`,schemes:[],installUrl:`https://hermes-agent.nousresearch.com`,tagline:`Nous Research's terminal coding agent.`}],Me=je.filter(e=>e.id!==`claude-cowork`&&e.id!==`copilot`&&e.id!==`opencode`&&e.id!==`pi`&&e.id!==`antigravity`&&e.id!==`openclaw`&&e.id!==`hermes`),$=n();function Ne(){let e=(0,Q.c)(3),[t,n]=(0,Z.useState)(Ie),r,i;return e[0]===t?(r=e[1],i=e[2]):(r=()=>{if(t!==null||window.okDesktop)return;let e=!0;return fetch(`/api/workspace`).then(async t=>{let r=await t.json().catch(Fe);if(!e||!t.ok)return;let i=B.safeParse(r);i.success&&n({contentDir:i.data.contentDir,pathSeparator:i.data.pathSeparator})}).catch(Pe),()=>{e=!1}},i=[t],e[0]=t,e[1]=r,e[2]=i),(0,Z.useEffect)(r,i),t}function Pe(e){console.warn(`[useWorkspace] /api/workspace fetch failed:`,e)}function Fe(){return null}function Ie(){return Le()}function Le(e=typeof window>`u`?void 0:window){if(!e)return null;let t=e.okDesktop;return t?{contentDir:t.config.projectPath,pathSeparator:t.platform===`win32`?`\\`:`/`}:null}function Re(e){return{async install(t){let n;try{n=await e.buildAndOpen(t?.force?{force:!0}:void 0)}catch(e){return{ok:!1,reason:`bridge-error`,message:e instanceof Error?e.message:String(e)}}return n.ok?{ok:!0,path:n.path}:{ok:!1,reason:n.reason,message:n.message}}}}function ze(e={}){let t=e.fetch??globalThis.fetch,n=`${e.apiOrigin??``}/api/install-skill`;return{async install(e){let r;try{r=await t(n,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e?.force?{force:!0}:{})})}catch(e){return{ok:!1,reason:`network-error`,message:e instanceof Error?e.message:String(e)}}if(!r.ok){let e=`HTTP ${r.status}`;try{let t=ve(await r.json());t&&(e=t)}catch{}return{ok:!1,reason:`http-error`,message:e}}let i;try{i=await r.json()}catch(e){return{ok:!1,reason:`parse-error`,message:e instanceof Error?e.message:`Invalid server response`}}return!i||typeof i.status!=`string`?{ok:!1,reason:`parse-error`,message:`Invalid server response shape`}:i.status===`failed`?{ok:!1,reason:`build-failed`,message:i.buildError??`unknown build failure`}:{ok:!0,path:i.outputPath,handoffWarning:i.handoffError?.message}}}}function Be(){if(typeof window>`u`)return null;let e=window.okDesktop?.skill;return e?Re(e):ze()}var Ve=`ok:skill:cowork:installed`,He=`1`,Ue=250,We=`/api/skill/install-state`;function Ge(e){return`${Ve}:v${e}`}var Ke=new Map;async function qe(e={},t={}){let n=t.force?`__force__`:`__default__`,r=Ke.get(n);if(r)return r;let i=Je(e,t);return Ke.set(n,i),i.finally(()=>{Ke.get(n)===i&&Ke.delete(n)}),i}async function Je(e,t){let n=e.installer===void 0?Be():e.installer,r=Ye(e.storage),i=e.fetchSnapshot??Ze,a=e.serverTimeoutMs??Ue,o=null;if(!t.force){try{o=await Qe(i(),a)}catch(e){console.warn(`[cowork-skill] server install-state check failed; falling through:`,e)}if(o){let e=o.targets[`claude-cowork`]??null;if(e&&e.version===o.currentVersion)return{kind:`already-installed`,source:`server`}}}let s=Ge(o?.currentVersion??e.fallbackSkillVersion??Xe());if(!t.force&&r?.getItem(s)===He)return{kind:`already-installed`,source:`local`};if(!n)return{kind:`host-unsupported`};let c=await n.install({force:t.force??!1});if(!c.ok)return{kind:`install-failed`,reason:c.reason,message:c.message};try{r?.setItem(s,He)}catch(e){console.warn(`[cowork-skill] storage.setItem failed (guard will not persist):`,e)}return{kind:`installed-now`,path:c.path,handoffWarning:c.handoffWarning}}function Ye(e){if(e!==void 0)return e;if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function Xe(){return typeof window>`u`?`unknown`:window.okDesktop?.appVersion??`unknown`}async function Ze(){let e;try{e=await fetch(We,{method:`GET`,cache:`no-store`})}catch{return null}if(!e.ok)return null;try{let t=await e.json();return typeof t?.currentVersion==`string`?t:null}catch{return null}}async function Qe(e,t){return Promise.race([e,new Promise(e=>{setTimeout(()=>e(null),t)})])}function $e(e){return qe({},e)}function et(){return qe({},{force:!0})}async function tt(e,t){let n;try{n=await t(`/api/handoff`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})}catch(e){return{ok:!1,reason:`dispatch-error`,detail:e instanceof Error?e.message:String(e)}}return n.status===200?{ok:!0}:n.status===404?{ok:!1,reason:`not-installed`,detail:`POST /api/handoff returned 404`}:n.status===422?{ok:!1,reason:`not-installed`,detail:`POST /api/handoff returned ${n.status}`}:{ok:!1,reason:`dispatch-error`,detail:`POST /api/handoff returned ${n.status}`}}async function nt(e,t={}){let n=t.fetch??globalThis.fetch.bind(globalThis);switch(e.target){case`claude-cowork`:return tt({target:`claude-cowork`,url:V({mode:`cowork`},e)},n);case`claude-code`:return tt({target:`claude-code`,url:V({mode:`code`},e)},n);case`codex`:return tt({target:`codex`,url:R(e)},n);case`cursor`:return tt({target:`cursor`,url:M(e),workspacePath:e.projectDir},n);case`copilot`:return{ok:!1,reason:`invalid-payload`,detail:`copilot is terminal-only; launch via requestTerminalLaunch`};case`opencode`:return{ok:!1,reason:`invalid-payload`,detail:`opencode is terminal-only; launch via requestTerminalLaunch`};case`pi`:return{ok:!1,reason:`invalid-payload`,detail:`pi is terminal-only; launch via requestTerminalLaunch`};case`antigravity`:return{ok:!1,reason:`invalid-payload`,detail:`antigravity is terminal-only; launch via requestTerminalLaunch`};case`openclaw`:return{ok:!1,reason:`invalid-payload`,detail:`openclaw is terminal-only; launch via requestTerminalLaunch`};case`hermes`:return{ok:!1,reason:`invalid-payload`,detail:`hermes is terminal-only; launch via requestTerminalLaunch`};default:{let t=e.target;return{ok:!1,reason:`invalid-payload`,detail:`unknown target: ${String(t)}`}}}}async function rt(e,t={}){let n=t.okDesktop??(typeof window<`u`?window.okDesktop:void 0);if(n?.shell?.openExternal)try{return await n.shell.openExternal(e),{ok:!0}}catch(e){return{ok:!1,reason:`dispatch-error`,detail:it(e)}}let r=t.doc??(typeof document<`u`?document:void 0);if(!r)return{ok:!1,reason:`dispatch-error`,detail:`no DOM available`};try{let t=r.createElement(`a`);return t.href=e,t.rel=`noopener noreferrer`,/^https?:/i.test(e)&&(t.target=`_blank`),r.body.appendChild(t),t.click(),t.remove(),{ok:!0}}catch(e){return{ok:!1,reason:`dispatch-error`,detail:it(e)}}}function it(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}async function at(e,t={}){let n=t.okDesktop??(typeof window<`u`?window.okDesktop:void 0);if(n?.shell?.recordHandoff)try{await n.shell.recordHandoff(e)}catch(e){(t.warn??(e=>console.warn(e)))(`[handoff] recordHandoff IPC rejected (telemetry skipped): ${e instanceof Error?e.message:String(e)}`)}}function ot(e){if(!e.docName||!e.workspace)return null;let t=le(e.docName),{contentDir:n,pathSeparator:r}=e.workspace;return{docContext:{relativePath:t},projectDir:n,docPath:Y(n,t,r)}}function st(e){return e.workspace?.contentDir?{docContext:null,projectDir:e.workspace.contentDir,docPath:``}:null}function ct(e){return e.workspace?.contentDir?{docContext:null,createDescription:e.description,createScenario:e.scenario,createMentions:e.mentions,projectDir:e.workspace.contentDir,docPath:``}:null}function lt(e){return rt(e.installUrl).then(()=>void 0)}function ut(e){return!e.workspace?.contentDir||!e.folderRelativePath?null:{docContext:null,folderRelativePath:e.folderRelativePath,projectDir:e.workspace.contentDir,docPath:``}}function dt(e){return!e.workspace?.contentDir||!e.skillName?null:{docContext:null,skill:{name:e.skillName,scope:e.scope},projectDir:e.workspace.contentDir,docPath:``}}function ft(e){if(!e.workspace?.contentDir)return null;let{contentDir:t,pathSeparator:n}=e.workspace;if(e.docName){let r=e.docRelativePath??le(e.docName),i={scope:`doc`,docRelativePath:r,instruction:e.instruction,mentions:e.mentions};return{docContext:null,compose:e.selection===void 0?i:{...i,selection:e.selection},projectDir:t,docPath:Y(t,r,n)}}return e.folderRelativePath?{docContext:null,compose:{scope:`folder`,folderRelativePath:e.folderRelativePath,instruction:e.instruction,mentions:e.mentions},projectDir:t,docPath:``}:{docContext:null,compose:{scope:`project`,instruction:e.instruction,mentions:e.mentions},projectDir:t,docPath:``}}function pt(e){return`Opened in ${e}.`}function mt(e,t=1){return t>=3?`Couldn't reach ${e} — please try again later.`:t===2?`Still couldn't reach ${e} — try one more time?`:`Couldn't reach ${e} — try again?`}function ht(e){return e>=3?null:e===2?`Try one more time`:`Retry`}function gt(e,t,n,r,i){let a=i===void 0?{}:{scope:i};return t.ok?{target:e,host:n,outcome:`ok`,ts:r,...a}:{target:e,host:n,outcome:`error`,ts:r,reason:t.reason,...a}}function _t(e,t,n,r){if(e.scope===`doc`){let i={scope:`doc`,docRelativePath:e.docRelativePath,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r};return e.selection===void 0?i:{...i,selection:e.selection}}return e.scope===`folder`?{scope:`folder`,folderRelativePath:e.folderRelativePath,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r}:{scope:`project`,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r}}function vt(e,t,n,r){return e.compose?N(_t(e.compose,t,n,r)):e.selection?U({...e.selection,target:t,transport:r}):e.skill?ie(e.skill.name,e.skill.scope,n):e.ask?G(e.ask.relativePath,e.ask.instruction,n,t,r):H(e.docContext===null?e.folderRelativePath?ee(e.folderRelativePath,n,e.instruction,r):e.createDescription===void 0?ne(n,e.instruction,r):K(e.createDescription,n,e.createScenario??`new-project`,e.createMentions??[],r):te(e.docContext.relativePath,n,e.instruction,r))}function yt(e,t){let n=typeof e.instruction==`string`&&e.instruction.trim()!==``;return e.compose!==void 0||e.createDescription!==void 0||n?`${W} ${vt(e,P[t].handoffTarget,!1,`terminal`)}`:ae(e.docContext?.relativePath??null)}async function bt(e,t,n,r=1){if(e===`claude-cowork`&&r===1){let e;try{e=await n.ensureCoworkSkillInstalled()}catch(e){let t=e instanceof Error?e.message:String(e);return n.toast.error(`Couldn't install OpenKnowledge skill — ${t}`),{ok:!1,reason:`dispatch-error`,detail:`install-error: ${t}`}}if(e.kind===`installed-now`)return n.toast.success(`OpenKnowledge skill saved. Upload it in Claude Desktop, then click Cowork again.`),{ok:!0};if(e.kind===`install-failed`){let t=e.message??e.reason;return n.toast.error(`Couldn't install OpenKnowledge skill — ${t}`),{ok:!1,reason:`dispatch-error`,detail:`install-failed: ${t}`}}}let i={target:e,projectDir:t.projectDir,docPath:t.docPath,prompt:vt(t,e,n.autoOpen,`url`)},a=await n.dispatchHandoff(i),o=n.isElectronHost()?`electron`:`web`,s=n.now().toISOString(),c=t.compose,l=gt(e,a,o,s,t.selection!=null||c?.scope===`doc`&&c.selection!==void 0?`selection`:void 0);await n.recordHandoff(l);let u=n.getDisplayName(e);if(a.ok)n.toast.success(pt(u));else{let i=ht(r),a=mt(u,r);i===null?n.toast.error(a):n.toast.error(a,{action:{label:i,onClick:()=>{bt(e,t,n,r+1)}}})}return a}function xt(e){return je.find(t=>t.id===e)?.displayName??e}function St(e=typeof window<`u`?window:void 0){return e?.okDesktop!=null}function Ct(){return{dispatchHandoff:nt,recordHandoff:at,toast:{success:e=>{X.success(e)},error:(e,t)=>{X.error(e,t?{action:t.action}:void 0)}},now:()=>new Date,isElectronHost:()=>St(),getDisplayName:xt,ensureCoworkSkillInstalled:$e,autoOpen:!0}}function wt(){let e=(0,Q.c)(2),{merged:t}=xe(),n=t?.appearance?.preview?.autoOpen??!0,r;return e[0]===n?r=e[1]:(r={dispatch:(e,t)=>bt(e,t,{...Ct(),autoOpen:n}),reinstallCoworkSkill:et},e[0]=n,e[1]=r),r}var Tt=[...new Set(je.flatMap(e=>e.schemes))];function Et(e,t){let n=t.now?.()??Date.now(),r={};for(let t of je){let i=t.schemes[0],a=i===void 0?void 0:e[i];if(!a){r[t.id]={installed:null};continue}r[t.id]={installed:a.installed,...a.displayName===void 0?{}:{displayName:a.displayName},lastChecked:n}}return r}function Dt(e){return Et({},e)}async function Ot(e){let t=e.schemes??Tt,n=await Promise.all(t.map(async t=>{let n=t.replace(/:$/,``);try{return[t,await e.detectProtocol(n)]}catch{return[t,{installed:!1}]}}));return Object.fromEntries(n)}var kt=Object.fromEntries(Tt.map(e=>[e,{installed:!1}]));async function At(e){let t;try{t=await e.fetch(`/api/installed-agents`,{signal:e.signal,headers:{Accept:`application/json`}})}catch(e){if(e.name===`AbortError`)throw e;return kt}if(!t.ok)return kt;let n;try{n=await t.json()}catch{return kt}if(typeof n!=`object`||!n||Array.isArray(n))return kt;let r=n,i={};for(let e of Tt)i[e]={installed:r[e.replace(/:$/,``)]===!0};return i}function jt(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n){let n=e[r],i=t[r];if(!n||!i||n.installed!==i.installed||n.displayName!==i.displayName)return!1}return!0}function Mt(e){let t=e.throttleMs??1e4,n=!1,r=null,i=null,a={},o=Dt({isElectronHost:e.isElectronHost(),now:e.now}),s=new Set,c=()=>{if(!n)for(let e of s)e(o)},l=()=>{o=Et(a,{isElectronHost:e.isElectronHost(),now:e.now})};return{probe:async()=>{if(n)return;if(i)return i;if(r!==null&&e.now()-r<t)return;let o=(async()=>{try{let t=await e.probe();if(n)return;let i=!jt(a,t);a=t,i&&(l(),c()),r=e.now()}catch{}finally{i=null}})();return i=o,o},getTargetStates:()=>o,subscribe:e=>(s.add(e),()=>{s.delete(e)}),cancel:()=>{n=!0,s.clear()}}}function Nt(e=typeof window<`u`?window:void 0){return e?.okDesktop!=null}function Pt(){let e=typeof window<`u`?window.okDesktop:void 0;if(e){let t=t=>e.shell.detectProtocol(t);return{probe:()=>Ot({detectProtocol:t}),isElectronHost:()=>!0,now:Date.now}}let t=globalThis.fetch.bind(globalThis);return{probe:()=>At({fetch:t}),isElectronHost:()=>!1,now:Date.now}}function Ft(){let e=(0,Q.c)(5),[t,n]=(0,Z.useState)(It),r=(0,Z.useRef)(null),i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{let e=Mt(Pt());r.current=e;let t=e.subscribe(n);e.probe();let i=()=>{e.probe()};return window.addEventListener(`focus`,i),()=>{window.removeEventListener(`focus`,i),t(),e.cancel(),r.current=null}},a=[],e[0]=i,e[1]=a):(i=e[0],a=e[1]),(0,Z.useEffect)(i,a);let o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>r.current?.probe()??Promise.resolve(),e[2]=o):o=e[2];let s;return e[3]===t?s=e[4]:(s={states:t,refresh:o},e[3]=t,e[4]=s),s}function It(){return Dt({isElectronHost:Nt(),now:Date.now})}var Lt=(0,Z.createContext)(null);function Rt(e){let t=(0,Q.c)(3),{value:n,children:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,$.jsx)(Lt,{value:n,children:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function zt(){return(0,Z.use)(Lt)}function Bt(e){let t=(0,Q.c)(5),n,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`title`,{children:`Antigravity icon`}),r=(0,$.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 2.5a1.5 1.5 0 0 1 1.28.72l8.5 14A1.5 1.5 0 0 1 20.5 19.5h-17a1.5 1.5 0 0 1-1.28-2.28l8.5-14A1.5 1.5 0 0 1 12 2.5Zm0 4.42L5.83 17h12.34L12 6.92Z`}),i=(0,$.jsx)(`path`,{fill:`currentColor`,d:`M12 9.6 15.6 17h-7.2L12 9.6Z`}),t[0]=n,t[1]=r,t[2]=i):(n=t[0],r=t[1],i=t[2]);let a;return t[3]===e?a=t[4]:(a=(0,$.jsxs)(`svg`,{role:`img`,"aria-label":`Antigravity icon`,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,fill:`none`,viewBox:`0 0 24 24`,...e,children:[n,r,i]}),t[3]=e,t[4]=a),a}function Vt(e){let t=(0,Q.c)(6),n,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`title`,{children:`Hermes icon`}),r=(0,$.jsx)(`path`,{d:`M5.938 12.835c.127-.039.285.02.373.143.028.038.036.092.046.14.003.014-.02.033-.04.05-.124-.098-.24-.194-.354-.291-.011-.01-.016-.027-.025-.042zM8.396 9.412c.195-.032.39-.06.588-.05a.54.54 0 01.148.026c.202.071.402.147.601.224.028.01.05.036.075.055l-.013.027a9.203 9.203 0 01-.26-.089c-.115-.038-.213-.077-.315-.098-.25-.05-.25-.046-.292-.014l.574.144c.275.139.55.276.823.417.042.022.09.057.107.098.026.06.063.076.117.072.066-.006.132-.017.213-.027l-.04.086c.051.08.142.02.216.064-.074.13-.247.09-.334.199l.061.074-.12.087c0 .106-.038.168-.306.243l.026.085-.196.042.07.124h-.25l-.007.137c-.081-.01-.161-.018-.244-.027l-.053.123c-.027-.008-.052-.011-.073-.023-.067-.038-.128-.056-.195.006-.019.017-.063.014-.093.008-.026-.006-.05-.029-.07-.042-.11.095-.11.095-.208.003-.057.046-.12.074-.186.011-.063.027-.123-.02-.178-.014-.07.007-.097-.035-.133-.07l-.13.033c-.013-.236-.194-.19-.34-.203.005-.072.05-.092.095-.094a.474.474 0 01.159.022c.164.05.32.12.496.138.203.021.405.029.601-.015.265-.059.52-.149.707-.365.049-.056.083-.127.117-.195.019-.038.02-.084-.02-.116a1.397 1.397 0 00-.382-.217c.024.12-.031.182-.115.221 0 .014-.004.025 0 .03.08.115.084.16-.007.267a1.39 1.39 0 01-.218.211.477.477 0 01-.641-.05 1.36 1.36 0 01-.133-.152c-.078-.107-.076-.108-.033-.236-.165-.08-.128-.226-.104-.364.008-.05.028-.096.049-.163-.04.014-.067.017-.087.032a.897.897 0 00-.316.357c-.007.016-.01.034-.02.047-.012.015-.034.038-.045.035-.02-.006-.037-.027-.05-.045-.008-.012-.007-.032-.012-.057h-.126l.053-.172a14.82 14.82 0 00-.039-.049l.11-.284c-.06.026-.091.044-.124.051-.03.007-.064 0-.095 0 0-.031-.01-.07.004-.092.149-.22.305-.428.593-.476z`}),i=(0,$.jsx)(`path`,{d:`M8.06 10.788c-.003-.038-.004-.075.037-.062.016.006.034.048.028.067-.01.04-.038.032-.064-.005z`}),a=(0,$.jsx)(`path`,{clipRule:`evenodd`,d:`M11.981.009c.226-.012.453-.011.679 0 .247.01.495.024.74.062.401.064.798.157 1.19.273.463.138.92.299 1.356.511a7.31 7.31 0 012.948 2.642c.292.469.536.963.739 1.479.219.556.446 1.11.623 1.683.204.654.329 1.326.458 1.997.097.504.182 1.01.29 1.511.156.722.329 1.44.494 2.16.186.812.4 1.615.63 2.415.102.355.193.713.282 1.072.11.436.202.876.254 1.323.031.278.066.557.073.837a7.56 7.56 0 01-.017.88c-.037.413-.1.818-.226 1.212a5.017 5.017 0 01-.915 1.649l-.13.156.018.023c.043-.023.088-.041.127-.068.2-.138.373-.307.531-.49.4-.46.721-.973.975-1.529a3.59 3.59 0 00.325-1.72c-.024-.424-.097-.834-.3-1.213-.013-.027-.015-.06-.03-.121.05.035.082.048.101.072.107.13.22.258.315.398.33.494.46 1.052.486 1.64a3.75 3.75 0 01-.47 1.97c-.36.655-.887 1.14-1.526 1.506-.193.111-.394.21-.595.308-.157.078-.248.211-.318.365a.522.522 0 00-.033.406.359.359 0 01.013.139c-.005.077-.077.155-.14.162-.054.006-.125-.043-.15-.116a1.206 1.206 0 01-.06-.233c-.04-.314-.155-.6-.308-.87a3.906 3.906 0 00-.73-.91 2.129 2.129 0 00-.897-.524 4.093 4.093 0 00-.692-.131c-.075-.008-.15-.04-.22.01.18.06.363.11.538.18.434.173.82.43 1.18.728.308.255.58.543.794.884.098.155.186.315.227.496.027.123.042.25.067.375.013.062-.002.109-.053.144-.047.033-.122.034-.163-.01a.455.455 0 01-.08-.14c-.03-.073-.038-.159-.078-.225a7.314 7.314 0 00-1.423-1.664c-.16-.137-.329-.26-.537-.323-.376-.114-.753-.203-1.15-.154-.213.025-.427.032-.64.053a1.6 1.6 0 00-.736.278 5.14 5.14 0 00-.834.72c-.329.342-.642.699-.955 1.055-.136.155-.264.319-.314.531a5.227 5.227 0 00-.012.051.096.096 0 01-.09.076h-.31c-.046 0-.082-.048-.072-.094.023-.108.045-.216.07-.324.075-.325.19-.635.368-.917.024-.039.04-.088.104-.08l.01.049.027.077c.28-.435.571-.834.996-1.135.283-.204.584-.378.89-.55a.196.196 0 00-.098-.002c-.162.043-.325.084-.485.134-.402.124-.764.33-1.11.566-.147.1-.298.193-.414.333a7.314 7.314 0 00-1.07 1.767.845.845 0 00-.04.12.075.075 0 01-.072.056h-.494c-.04 0-.062-.051-.036-.082.123-.14.246-.282.377-.415.275-.281.58-.532.777-.884.027-.048.063-.09.095-.135.238-.333.54-.607.818-.902.082-.086.175-.16.26-.24.029-.027.053-.057.079-.085l-.018-.025-.135.041c-.034.017-.07.031-.102.05-.248.144-.494.292-.743.433-.408.23-.825.439-1.209.711-.281.2-.591.358-.889.533-.02.012-.044.015-.08.028-.015-.135.143-.201.108-.336-.033.014-.064.02-.085.038-.111.096-.227.19-.328.296-.148.157-.284.325-.425.488-.125.143-.25.286-.373.431A.153.153 0 019.89 24H8.762a.316.316 0 00.016-.042c.028-.09.085-.172.083-.28-.091-.018-.162.001-.212.077a4.45 4.45 0 00-.136.215c-.01.016-.024.03-.042.03h-.093c-.019 0-.029-.022-.017-.037.071-.088.14-.178.209-.268.001-.002-.006-.012-.012-.024-.014.004-.03.006-.045.013-.176.09-.352.181-.527.274a.363.363 0 01-.168.042H5.202c-.026 0-.039-.036-.019-.053.21-.178.402-.374.558-.605.335-.496.538-1.047.667-1.629.004-.02-.003-.043-.006-.091-.037.048-.059.072-.076.1a1.943 1.943 0 01-.334.415c-.28.258-.59.448-.983.464-.297.012-.588 0-.865-.127-.46-.21-.722-.57-.794-1.072-.025-.17-.017-.171-.182-.219A3.513 3.513 0 011.97 20.6a2.286 2.286 0 01-.808-1.13 3.569 3.569 0 01-.16-1.245c.002-.034.016-.067.024-.1.032.023.046.043.05.066.033.153.059.308.096.46.086.355.257.664.516.92.258.256.571.419.91.532.358.118.717.138 1.07-.016a1.89 1.89 0 00.621-.452c.328-.348.533-.76.648-1.223.009-.034.005-.071.007-.11-.015.006-.026.006-.03.011-.031.05-.064.1-.093.152-.284.502-.679.887-1.196 1.135-.351.17-.718.255-1.11.159a1.607 1.607 0 01-.971-.64 2.006 2.006 0 01-.368-.924 2.903 2.903 0 01.02-.886c.05-.439.466-1.17.742-1.271-.02.063-.035.112-.053.16-.043.116-.097.227-.13.345a1.901 1.901 0 00-.05.82c.033.212.09.416.204.6.147.236.346.407.62.465.11.023.225.014.338.018a.576.576 0 00.386-.131c.164-.128.282-.292.366-.481.168-.375.24-.777.309-1.179.05-.296.093-.594.133-.893.039-.281.071-.563.104-.845.026-.232.048-.464.074-.696.024-.228.052-.455.076-.683.024-.227.047-.455.069-.683.013-.14.022-.28.034-.42l.037-.417c.022-.25.041-.5.065-.748.008-.082-.02-.132-.09-.177a2.46 2.46 0 01-.492-.418c-.1-.109-.188-.228-.282-.342-.035-.042-.056-.097-.116-.118a2.084 2.084 0 00.275.597c.06.092.131.176.196.265.063.086.182.115.234.226-.028.003-.046.01-.06.006a4.74 4.74 0 01-.22-.057 2.71 2.71 0 01-1.287-.819c-.435-.487-.656-1.076-.71-1.723a5.206 5.206 0 01.014-1.06c.072-.602.22-1.186.45-1.745.155-.376.338-.741.526-1.102.205-.393.466-.75.765-1.076.512-.559 1.104-1.024 1.726-1.448.717-.49 1.478-.898 2.277-1.233C8.244.828 8.767.632 9.31.494c.655-.166 1.31-.33 1.982-.415.229-.03.458-.058.688-.07zm-1.847 22.82c-.07.06-.147.111-.207.18-.238.27-.464.549-.668.869l-.044.108a.177.177 0 00.093-.057c.174-.19.351-.378.519-.574.104-.122.195-.255.288-.386.024-.034.03-.08.046-.12l-.027-.02zm1.65-3.695a5.51 5.51 0 00-.653.593l-.37.386a.963.963 0 01-.377.25 1.372 1.372 0 01-.467.09c-.044 0-.087.006-.151.012.028.058.043.097.064.131.15.242.301.482.45.724.136.22.276.438.399.666.068.125.105.267.156.404.077.027.14-.018.202-.048.29-.135.579-.274.867-.412.213-.101.437-.186.636-.31.347-.215.68-.455 1.018-.685.015-.01.026-.028.042-.046-.023-.019-.038-.037-.056-.044-.287-.111-.527-.3-.77-.482a5.319 5.319 0 01-.506-.42 1.757 1.757 0 01-.41-.653c-.019-.049-.045-.095-.075-.156zm-5.847.264c-.06.096-.097.194-.132.293a3.38 3.38 0 01-.555 1.01c-.2.25-.455.412-.762.493-.23.06-.464.076-.7.07-.048-.002-.097.002-.158.005.016.04.021.066.035.085.1.145.23.246.4.295.157.046.316.034.498.023.181-.037.343-.115.485-.234.238-.199.402-.454.536-.732.175-.363.264-.751.342-1.144.01-.053.008-.11.011-.164zm14.945-4.586c.008.029.016.057.027.107.024.155.051.31.072.464.03.219.067.437.078.657.017.344.027.689-.014 1.033-.037.315-.063.633-.116.946a6.153 6.153 0 01-.46 1.518c-.008.018-.01.039-.02.082.047-.03.077-.042.098-.064.085-.083.17-.167.248-.255.271-.305.458-.66.596-1.043.18-.498.228-1.011.145-1.531-.103-.65-.33-1.263-.597-1.881a9.055 9.055 0 00-.024-.055l-.033.022zM5.797 8.29a.26.26 0 00.018.153c.124.251.25.501.379.75.025.049.066.09.03.163-.284.06-.578.119-.88.255.059.038.097.06.132.087.042.032.112.058.09.12-.01.033-.075.048-.117.072.017.01.043.021.067.036.166.102.33.207.447.368.138.192.229.404.188.644-.079.469-.306.85-.69 1.132-.054.04-.106.083-.161.122a.243.243 0 00-.103.245.77.77 0 00.055.195c.083.196.22.35.375.492.083.076.159.164.222.257a.37.37 0 01.025.377c-.023.05-.05.099-.076.148-.03.06-.028.111.022.162.041.042.08.089.112.138.038.058.078.079.147.05a.486.486 0 01.333-.006c.16.046.302.126.444.21.13.077.264.149.4.219.067.035.14.05.219.026.071-.022.124.01.145.076.02.064-.003.108-.074.139-.07.03-.137.063-.209.088-.1.035-.201.073-.314.077-.013-.107.11-.088.127-.159-.206-.126-.643-.145-.801-.034.063.112.035.21-.096.313-.13-.1-.025-.202.002-.3a.209.209 0 00-.249.17c-.015.101.067.216.178.224.108.007.218-.005.326-.012.06-.005.12-.027.199 0-.103.123-.248.127-.357.19.002.05.07.086.019.131-.053.048-.095-.001-.132-.03-.08-.063-.16-.126-.231-.197a.474.474 0 01-.157-.311.52.52 0 00-.043-.172c-.032-.074-.032-.137.033-.19-.018-.03-.028-.053-.045-.072a1.222 1.222 0 01-.196-.369c-.053-.137-.046-.264.048-.381.024-.03.05-.06.064-.095a.664.664 0 00.047-.168c.017-.165-.064-.287-.182-.387-.186-.156-.36-.322-.46-.551-.005-.011-.024-.017-.037-.026-.011.017-.024.027-.025.038-.019.185-.045.37-.052.557-.014.377.058.743.162 1.104.118.41.289.798.488 1.173.267.502.537 1.002.812 1.5.055.098.13.189.208.27.198.202.452.272.724.273.202 0 .404-.006.605-.026.295-.03.59-.073.884-.113.183-.025.365-.057.548-.08.21-.026.38.073.522.21.16.156.305.327.447.5.22.265.397.56.554.867.05.098.07.1.147.03.13-.121.26-.242.394-.36.067-.059.088-.12.067-.213a3.535 3.535 0 01-.085-.796c.002-.157.006-.314.018-.471.015-.224.03-.45.06-.672a59.114 59.114 0 01.362-2.298c.087-.493.182-.984.268-1.477.06-.347.118-.694.162-1.043.034-.273.055-.55.063-.825.011-.332.003-.665.002-.998 0-.077.004-.155-.01-.23-.028-.142-.01-.155-.162-.19a5.826 5.826 0 00-.607-.107c-.146-.018-.207-.053-.221-.19-.006-.049-.025-.098-.041-.146-.009-.025-.024-.048-.046-.09l-.025.264c-.009.096-.029.116-.127.115-.055 0-.11-.008-.164-.008-.476 0-.952-.008-1.426.032-.095.008-.173-.015-.226-.103-.04-.066-.088-.126-.134-.186-.063-.084-.086-.093-.182-.06-.195.068-.388.138-.582.21a2.71 2.71 0 00-.675.394.986.986 0 01-.323.168c-.033.01-.07.008-.127.013.02-.066.024-.114.047-.15.064-.105.135-.205.205-.306.023-.033.049-.063.073-.095l-.015-.023-.201.037c-.146.04-.296.07-.437.122-.148.053-.266.023-.386-.072a3.623 3.623 0 01-.733-.786l-.093-.132zm8.592 8.963l-.147.09c-.22.134-.44.266-.659.402-.093.058-.184.12-.27.188-.085.07-.124.161-.072.272.047.1.093.2.147.294.047.08.124.138.213.147.11.01.228.012.336-.012.217-.05.372-.205.528-.357a.291.291 0 00.087-.308c-.046-.18-.079-.365-.118-.547-.011-.052-.027-.103-.045-.169zm-.257-2.409c-.12.291-.205.597-.325.91-.151.433-.294.87-.435 1.323.036-.01.054-.01.067-.018.261-.16.522-.324.785-.484.054-.033.071-.078.065-.138-.012-.13-.024-.262-.034-.393l-.068-.886c-.008-.103-.02-.206-.029-.31-.009 0-.017-.002-.026-.004zm3.081-8.13l.099.285c.08.231.159.463.24.714l.58 1.952c.187.63.372 1.262.558 1.893.114.382.235.762.343 1.146.072.257.126.519.186.799.044.206.087.413.127.64.034.106.023.226.077.325l.025-.006-.068-.362c-.038-.206-.077-.412-.113-.638-.015-.07-.029-.141-.046-.211-.095-.396-.177-.796-.29-1.187-.196-.685-.413-1.364-.618-2.046-.165-.549-.322-1.1-.488-1.648-.069-.227-.15-.45-.226-.695l-.117-.336c-.037-.107-.075-.216-.115-.322-.04-.106-.084-.21-.127-.314a7.558 7.558 0 01-.027.01zM6.225 14.304c-.063-.001-.115.014-.134.083a.35.35 0 00.41.012 4.533 4.533 0 00-.276-.095zM5.23 11.98c-.026-.027-.057-.048-.075.002-.012.032-.007.07-.01.113.082-.037.082-.037.085-.115zm.062-1.189a.135.135 0 00-.088.056.197.197 0 00-.025.11c.005.152.01.306.026.457a.751.751 0 00.066.218c.061.136.157.167.288.101.055-.027.06-.054.025-.11a4.52 4.52 0 01-.129-.211c-.015-.068-.066-.131-.033-.207.04-.09-.076-.116-.074-.19V10.874c-.003-.038-.006-.087-.056-.083zm-.017-.968a.867.867 0 00-.467.127c-.076.045-.084.07-.05.158.034.087.07.173.115.254.064.117.09.125.21.077a.657.657 0 01.336-.053c.202.022.357.136.504.264l.092.077c.007-.006.014-.013.022-.018-.019-.105-.035-.226-.149-.264-.157-.053-.324-.075-.508-.117l-.24-.005c.24-.169.452-.044.687.009-.063-.115-.153-.147-.23-.193-.082-.05-.17-.092-.25-.144-.06-.037-.12-.08-.072-.172zm10.233.325c-.23-.01-.427.08-.608.211-.034.026-.06.065-.105.117.087.026.15.046.232.065.044-.015.088-.03.13-.046.306-.114.61-.115.904.031.126.063.237.04.366-.005-.02-.031-.03-.054-.045-.071a.986.986 0 00-.448-.273c-.14-.044-.284-.024-.426-.03zM7.99 6.483a.308.308 0 00.002.133c.08.321.156.643.242.962.104.387.27.75.456 1.103.02.037.061.08.098.087a.404.404 0 00.253-.051l-.472-.84c-.23-.448-.405-.92-.579-1.394zM10.397.497c-.2-.008-.405.004-.603.034-.236.035-.47.087-.7.152-.287.08-.569.18-.852.273-.04.013-.074.038-.11.058.028.014.05.018.07.014.287-.068.58-.085.873-.09.134-.002.269.009.402.025.19.024.382.048.57.09.456.104.874.3 1.265.556.464.306.888.66 1.257 1.078.205.232.395.475.56.739.17.274.315.561.449.856.273.601.456 1.232.6 1.876.04.173.07.348.1.524.017.104.065.167.17.19.122.028.2.105.22.251-.003.102-.06.174-.129.24a1.065 1.065 0 00-.268.358.164.164 0 00.083-.039c.08-.086.162-.172.235-.265a.56.56 0 00.13-.333c.009-.05.022-.1.024-.15.007-.124-.017-.15-.143-.168-.025-.004-.049-.014-.073-.015-.082-.007-.125-.063-.137-.131-.033-.198-.004-.355.247-.408.086-.018.174-.03.26-.042.158-.023.315-.053.473-.067.14-.012.19.033.226.167.008.029.018.057.021.087.019.179-.008.225-.141.288-.027.013-.055.024-.078.042a.148.148 0 00-.051.067c-.039.144.073.382.206.445l.673.32c.023.011.05.015.075.023l.018-.026c-.015-.008-.032-.013-.044-.024a2.27 2.27 0 00-.544-.32 4.898 4.898 0 00-.173-.075.203.203 0 01-.126-.191c-.003-.085.045-.154.128-.187l.059-.025c.099-.044.118-.076.112-.187a.384.384 0 00-.008-.063c-.067-.294-.123-.59-.205-.88a9.478 9.478 0 00-.826-2.036 7.465 7.465 0 00-1.39-1.805 4.536 4.536 0 00-1.177-.824 3.656 3.656 0 00-1.016-.328 6.155 6.155 0 00-.712-.074zm6.719 5.955c.01.014.018.028.038.034l-.022-.044-.016.01zM4.103 3.917a.062.062 0 01-.03.012.455.455 0 01-.04.039c-.01.01-.02.02-.045.04l-.363.354c-.088.085-.17.178-.266.253-.284.22-.425.53-.544.855a.132.132 0 00-.007.071c.013.055.033.108.052.168l.074.026c-.017.056-.03.105-.047.152-.058.164-.118.327-.175.491-.005.015.008.036.019.077.08-.175.158-.33.225-.489.228-.544.484-1.074.819-1.561.09-.133.182-.266.283-.401.004-.006.007-.013.022-.03.001-.016.003-.032.015-.04l.008-.017zm12.976 2.408a.023.023 0 01.009.019.073.073 0 00-.006.01.188.188 0 00.007.02l.018.022c.002-.007.007-.016.005-.021-.003-.01-.012-.018-.02-.038a1.331 1.331 0 01-.013-.012zM4.199 4.48c-.003.004-.008.008-.027.014-.005.013-.011.025-.031.047a2.085 2.085 0 01-.124.167c-.048.07-.116.055-.181.041-.134-.028-.228.016-.287.143-.089.187-.187.37-.273.56-.049.108-.11.216-.118.36.081.003.154.007.228.008h.228a2.563 2.563 0 01-.079.264c-.01.052-.022.103-.033.155l.02.004c.018-.046.037-.092.067-.153.066-.142.13-.285.2-.426.02-.04.034-.1.116-.092 0 .043.004.084 0 .124-.005.045-.017.09-.028.143.141.043.086.174.115.269.102-.022.104-.195.248-.144v.205l.017.002.439-1.059c-.13 0-.246-.02-.358.033-.024.011-.058-.001-.108-.004.075-.15.139-.278.211-.417a.128.128 0 01.025-.036c0-.015-.001-.03.008-.038l.006-.02c-.005.006-.01.011-.028.017-.004.012-.009.024-.026.045a.085.085 0 01-.032.033c-.123.157-.09.164-.258.106-.079-.027-.078-.028-.047-.144.028-.046.056-.093.098-.15 0-.016-.001-.032.007-.042L4.2 4.48zm2.073-.67c-.003.006-.007.011-.027.016-.094.125-.194.246-.28.377-.155.238-.301.481-.451.723-.14.224-.345.368-.575.481-.017.008-.04.006-.079.011.012-.059.016-.109.033-.153a6.076 6.076 0 01.229-.518l-.007-.02a.138.138 0 01-.035.025c-.028.05-.055.1-.093.164-.26.424-.443.817-.442.95.024.004.048.011.073.013.177.013.188.007.26-.165.03-.07.077-.12.147-.15l.175-.07c.044-.018.085-.057.146-.032.003.05-.01.11.014.145.042.062.044.125.047.193.002.049.017.098.026.147.029-.034.039-.065.05-.097.142-.39.277-.782.428-1.17.1-.256.22-.504.33-.756.013-.03.013-.067.03-.092V3.81zm3.987-.34c0 .045.01.084.021.123.042.16.094.318.124.48.024.133.023.27.028.406 0 .033-.019.067-.032.11-.094-.058-.047-.158-.106-.215h-.125c-.015.072-.01.152-.046.2-.066.085-.155.154-.236.227-.043.038-.078.018-.103-.025l-.046-.087c-.065.035-.117.069-.172.093-.116.051-.235.095-.35.147-.085.038-.09.053-.07.147.014.075.034.148.047.223.013.072.05.109.123.124.233.05.462.115.657.265.058-.102.058-.102.168-.151.03-.014.06-.03.092-.042.08-.03.115-.017.15.06.023.048.041.098.066.158.06-.14-.042-.267.017-.416.157.18.24.39.375.567a.235.235 0 00.022-.098c.002-.124 0-.247.002-.371 0-.034.013-.067.02-.1l.032-.003c.11.155.13.354.226.52a3.036 3.036 0 00-.01-.392c-.004-.045 0-.074.05-.088.08.036.116.14.215.158-.03-.275-.423-1.137-.798-1.635-.114-.127-.2-.28-.34-.386zm-2.667.696c-.019.034-.03.05-.037.067-.061.185-.125.37-.18.556-.031.105-.087.169-.195.19-.09.019-.178.052-.268.073-.038.009-.089.015-.118-.003-.024-.016-.025-.069-.036-.106-.064.076-.082.087-.17.047-.133-.062-.262-.135-.393-.201-.048-.025-.093-.063-.17-.03-.043.12-.091.25-.137.382-.099.28-.087.242.095.453.046.048.102.03.154.023.054-.009.106-.03.16-.036.13-.013.26-.08.367-.015.204-.064.387-.122.571-.178.05-.015.089.005.114.054.022.042.034.093.082.121.038-.056-.013-.128.063-.178l.14.241-.042-1.46zm.278.358c-.096-.01-.107.01-.11.108-.002.038-.003.078.002.115.03.2.099.386.174.57.002.006.012.01.022.015l.078-.05c.052.036.081.088.153.088.205-.002.41.014.616.012.099-.001.158.042.205.12.018.03.024.077.088.066l-.08-.394c-.05-.195-.085-.395-.172-.589-.057.057-.114.068-.18.046a.72.72 0 00-.135-.028c-.22-.028-.44-.059-.66-.08zm10.254-1.727c.089.163.155.316.139.491-.016.168.026.342-.044.516-.047-.033-.088-.082-.112-.075-.117.035-.164-.057-.227-.115a4.772 4.772 0 01-.286-.29l-.104-.113a4.856 4.856 0 01-.023.019c.035.046.07.093.11.156.04.064.084.127.122.193.034.058.065.118.031.205-.082-.01-.164-.019-.246-.032-.06-.01-.101 0-.124.07-.031.098-.037.096-.15.09.02.042.036.08.057.116.041.074.03.138-.03.196-.06.06-.118.122-.178.181a.175.175 0 01-.185.046c-.222-.061-.447-.113-.67-.174-.032-.009-.063-.04-.086-.068-.03-.04-.052-.087-.08-.13-.044-.07-.09-.138-.136-.207a.18.18 0 00-.014.105c.012.127.03.253.035.38.005.1-.024.12-.121.104-.104-.017-.206-.04-.31-.058-.064-.012-.131-.028-.202.03l.081.208c.09 0 .166-.01.237.002a.819.819 0 01.458.251c.078.083.154.168.241.26l.018-.005c-.004-.006-.008-.013-.01-.04.014-.056-.062-.118.018-.178.031.03.064.057.088.09.058.078.111.159.169.257l.089.141.024-.013a2093.819 2093.819 0 01-.427-.934c.055.007.083.007.108.016.193.07.385.142.577.216.074.028.147.06.219.094.062.028.112.018.157-.033.05-.056.102-.112.154-.167.05-.051.095-.046.132.014.016.025.026.053.04.08.071.138.143.277.217.433l.159.308.025-.011c-.044-.106-.07-.218-.138-.334-.057-.182-.168-.346-.206-.545.136.034.362.326.567.732l.057.074.018-.011a1.563 1.563 0 01-.052-.127c-.046-.145-.097-.29-.136-.436-.022-.083-.036-.173.022-.26l.109.058-.026-.207.027-.016c.022.02.05.036.065.06.073.108.143.22.215.33.01.016.029.029.043.043-.036-.217-.2-.38-.229-.626l.155.112c.014-.166.012-.319.042-.465.032-.158-.023-.297-.063-.445.024.004.036.006.055.025.092.124.183.249.277.371.02.027.05.047.069.087l.04.063.019-.015a.293.293 0 01-.053-.082 27.922 27.922 0 01-.332-.49c-.221-.311-.363-.467-.485-.521zm-6.57.327c-.003.161.092.275.069.415l-.368.087c.09.139.032.237-.052.331-.05.057-.092.122-.143.178-.037.04-.046.078-.018.126l.16.275c.029.048.072.066.128.064.076-.003.152 0 .228-.001.116-.003.216.022.275.137.006.014.02.024.044.052.004-.059-.003-.098.01-.13.016-.04.04-.099.072-.108.084-.023.173-.024.26-.03.013-.001.027.018.04.029l.071.065c.019-.11-.082-.198-.024-.31l.126.04c-.026-.123-.07-.245-.071-.366 0-.123.051-.243.115-.36.107.062.16.156.234.253.183.265.36.533.494.834.165-.078.27.068.407.088-.003-.106-.133-.441-.197-.492a.142.142 0 00-.102-.028c-.06.011-.119.039-.191.063-.025-.039-.056-.078-.077-.122a3.936 3.936 0 00-.473-.783c-.076-.094-.16-.182-.228-.26l-.391.285c-.049.035-.094.03-.132-.017l-.169-.207c-.025-.03-.053-.059-.097-.108z`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):(n=t[0],r=t[1],i=t[2],a=t[3]);let o;return t[4]===e?o=t[5]:(o=(0,$.jsxs)(`svg`,{role:`img`,"aria-label":`Hermes icon`,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,fill:`currentColor`,fillRule:`evenodd`,viewBox:`0 0 24 24`,...e,children:[n,r,i,a]}),t[4]=e,t[5]=o),o}function Ht(e){let t=(0,Q.c)(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`title`,{children:`OpenClaw icon`}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(`mask`,{id:`openclaw-eyes`,maskUnits:`userSpaceOnUse`,x:0,y:0,width:120,height:120,children:[(0,$.jsx)(`rect`,{width:120,height:120,fill:`white`}),(0,$.jsx)(`circle`,{cx:45,cy:35,r:6,fill:`black`}),(0,$.jsx)(`circle`,{cx:75,cy:35,r:6,fill:`black`})]}),t[1]=r):r=t[1];let i,a,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsxs)(`g`,{fill:`currentColor`,mask:`url(#openclaw-eyes)`,children:[(0,$.jsx)(`path`,{d:`M60 10 C30 10 15 35 15 55 C15 75 30 95 45 100 L45 110 L55 110 L55 100 C55 100 60 102 65 100 L65 110 L75 110 L75 100 C90 95 105 75 105 55 C105 35 90 10 60 10Z`}),(0,$.jsx)(`path`,{d:`M20 45 C5 40 0 50 5 60 C10 70 20 65 25 55 C28 48 25 45 20 45Z`}),(0,$.jsx)(`path`,{d:`M100 45 C115 40 120 50 115 60 C110 70 100 65 95 55 C92 48 95 45 100 45Z`})]}),a=(0,$.jsx)(`path`,{d:`M45 15 Q35 5 30 8`,fill:`none`,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`}),o=(0,$.jsx)(`path`,{d:`M75 15 Q85 5 90 8`,fill:`none`,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`}),t[2]=i,t[3]=a,t[4]=o):(i=t[2],a=t[3],o=t[4]);let s;return t[5]===e?s=t[6]:(s=(0,$.jsxs)(`svg`,{role:`img`,"aria-label":`OpenClaw icon`,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,fill:`none`,viewBox:`0 0 120 120`,...e,children:[n,r,i,a,o]}),t[5]=e,t[6]=s),s}function Ut(e){let t=(0,Q.c)(5),n,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`title`,{children:`OpenCode icon`}),r=(0,$.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M384 416H128V96H384V416ZM320 160H192V352H320V160Z`}),i=(0,$.jsx)(`path`,{fill:`currentColor`,fillOpacity:.55,d:`M320 224V352H192V224H320Z`}),t[0]=n,t[1]=r,t[2]=i):(n=t[0],r=t[1],i=t[2]);let a;return t[3]===e?a=t[4]:(a=(0,$.jsxs)(`svg`,{role:`img`,"aria-label":`OpenCode icon`,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,fill:`none`,viewBox:`0 0 512 512`,...e,children:[n,r,i]}),t[3]=e,t[4]=a),a}function Wt(e){let t=(0,Q.c)(5),n,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`title`,{children:`Pi icon`}),r=(0,$.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z`}),i=(0,$.jsx)(`path`,{fill:`currentColor`,d:`M517.36 400H634.72V634.72H517.36Z`}),t[0]=n,t[1]=r,t[2]=i):(n=t[0],r=t[1],i=t[2]);let a;return t[3]===e?a=t[4]:(a=(0,$.jsxs)(`svg`,{role:`img`,"aria-label":`Pi icon`,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,fill:`none`,viewBox:`0 0 800 800`,...e,children:[n,r,i]}),t[3]=e,t[4]=a),a}var Gt={"claude-cowork":`claude`,"claude-code":`claude`,codex:`openai`,cursor:`cursor`,copilot:`github`,opencode:`opencode`,pi:`pi`,antigravity:`antigravity`,openclaw:`openclaw`,hermes:`hermes`};function Kt(e){let t=(0,Q.c)(47),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({id:r,style:a,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let{resolvedTheme:s}=o(),c=Gt[r],u=c?(s===`dark`?q[c]:void 0)??re[c]:void 0,d;t[5]!==u||t[6]!==a?(d=u?{...a,"--ok-brand-color":u}:a,t[5]=u,t[6]=a,t[7]=d):d=t[7];let f=d,p=u&&`[&_*]:![color:var(--ok-brand-color)]`,m;t[8]!==n||t[9]!==p?(m=l(p,n),t[8]=n,t[9]=p,t[10]=m):m=t[10];let h=m;if(r===`claude-cowork`||r===`claude-code`){let e;return t[11]!==h||t[12]!==f||t[13]!==i?(e=(0,$.jsx)(Se,{style:f,className:h,...i}),t[11]=h,t[12]=f,t[13]=i,t[14]=e):e=t[14],e}if(r===`codex`){let e;return t[15]!==h||t[16]!==f||t[17]!==i?(e=(0,$.jsx)(we,{style:f,className:h,...i}),t[15]=h,t[16]=f,t[17]=i,t[18]=e):e=t[18],e}if(r===`cursor`){let e;return t[19]!==h||t[20]!==f||t[21]!==i?(e=(0,$.jsx)(Te,{style:f,className:h,...i}),t[19]=h,t[20]=f,t[21]=i,t[22]=e):e=t[22],e}if(r===`copilot`){let e;return t[23]!==h||t[24]!==f||t[25]!==i?(e=(0,$.jsx)(Ce,{style:f,className:h,...i}),t[23]=h,t[24]=f,t[25]=i,t[26]=e):e=t[26],e}if(r===`opencode`){let e;return t[27]!==h||t[28]!==f||t[29]!==i?(e=(0,$.jsx)(Ut,{style:f,className:h,...i}),t[27]=h,t[28]=f,t[29]=i,t[30]=e):e=t[30],e}if(r===`pi`){let e;return t[31]!==h||t[32]!==f||t[33]!==i?(e=(0,$.jsx)(Wt,{style:f,className:h,...i}),t[31]=h,t[32]=f,t[33]=i,t[34]=e):e=t[34],e}if(r===`antigravity`){let e;return t[35]!==h||t[36]!==f||t[37]!==i?(e=(0,$.jsx)(Bt,{style:f,className:h,...i}),t[35]=h,t[36]=f,t[37]=i,t[38]=e):e=t[38],e}if(r===`openclaw`){let e;return t[39]!==h||t[40]!==f||t[41]!==i?(e=(0,$.jsx)(Ht,{style:f,className:h,...i}),t[39]=h,t[40]=f,t[41]=i,t[42]=e):e=t[42],e}if(r===`hermes`){let e;return t[43]!==h||t[44]!==f||t[45]!==i?(e=(0,$.jsx)(Vt,{style:f,className:h,...i}),t[43]=h,t[44]=f,t[45]=i,t[46]=e):e=t[46],e}return null}var qt=F,Jt=new Set([`claude`]);function Yt(e,t){return F.filter(n=>Jt.has(n)||n===t||e[n]!==!1)}function Xt(e){return P[e].handoffTarget}function Zt(e){let t=(0,Q.c)(48),{itemName:n,isSubmitting:r,onDelete:o,customTitle:c,customDescription:l,customDetail:_,customConfirmLabel:v,customConfirmLabelBusy:y,children:b}=e,{_:x}=a(),S;t[0]!==x||t[1]!==n?(S=n??x({id:`L3CEC1`}),t[0]=x,t[1]=n,t[2]=S):S=t[2];let C=S,w;t[3]!==x||t[4]!==v?(w=v??x({id:`cnGeoo`}),t[3]=x,t[4]=v,t[5]=w):w=t[5];let T=w,E;t[6]!==x||t[7]!==v||t[8]!==y?(E=y??v??x({id:`s3caR3`}),t[6]=x,t[7]=v,t[8]=y,t[9]=E):E=t[9];let D=E,O;t[10]!==x||t[11]!==c||t[12]!==C?(O=c??x({id:`77SdEP`,values:{itemName:C}}),t[10]=x,t[11]=c,t[12]=C,t[13]=O):O=t[13];let k;t[14]===O?k=t[15]:(k=(0,$.jsx)(d,{children:O}),t[14]=O,t[15]=k);let A;t[16]!==x||t[17]!==l||t[18]!==C?(A=l??x({id:`16D5Zj`,values:{itemName:C}}),t[16]=x,t[17]=l,t[18]=C,t[19]=A):A=t[19];let j;t[20]===A?j=t[21]:(j=(0,$.jsx)(u,{className:`whitespace-pre-wrap`,children:A}),t[20]=A,t[21]=j);let M;t[22]===_?M=t[23]:(M=_?(0,$.jsx)(`p`,{className:`text-muted-foreground text-sm`,"data-testid":`delete-confirmation-detail`,children:_}):null,t[22]=_,t[23]=M);let N;t[24]!==k||t[25]!==j||t[26]!==M?(N=(0,$.jsxs)(g,{children:[k,j,M]}),t[24]=k,t[25]=j,t[26]=M,t[27]=N):N=t[27];let P;t[28]===b?P=t[29]:(P=b?(0,$.jsx)(p,{children:b}):null,t[28]=b,t[29]=P);let F;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(i,{id:`dEgA5A`}),t[30]=F):F=t[30];let I;t[31]===r?I=t[32]:(I=(0,$.jsx)(h,{asChild:!0,children:(0,$.jsx)(s,{variant:`outline`,disabled:r,children:F})}),t[31]=r,t[32]=I);let L;t[33]!==T||t[34]!==D||t[35]!==r?(L=r?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(pe,{className:`size-4 animate-spin`}),` `,D]}):T,t[33]=T,t[34]=D,t[35]=r,t[36]=L):L=t[36];let R;t[37]!==r||t[38]!==o||t[39]!==L?(R=(0,$.jsx)(s,{variant:`destructive`,onClick:o,disabled:r,children:L}),t[37]=r,t[38]=o,t[39]=L,t[40]=R):R=t[40];let z;t[41]!==I||t[42]!==R?(z=(0,$.jsxs)(m,{children:[I,R]}),t[41]=I,t[42]=R,t[43]=z):z=t[43];let B;return t[44]!==P||t[45]!==z||t[46]!==N?(B=(0,$.jsxs)(f,{children:[N,P,z]}),t[44]=P,t[45]=z,t[46]=N,t[47]=B):B=t[47],B}function Qt(e){return e?_e._({id:`wTcjov`}):null}function $t(e){let t=(0,Q.c)(30),{_:n}=a(),r=ce(),o=zt();if(r)return null;let{input:s,installStates:c,dispatch:l}=e,u=s===null,d,f,p,m,h,g,_;if(t[0]!==n||t[1]!==l||t[2]!==s||t[3]!==u||t[4]!==c||t[5]!==o){let e=Qt(u),r;t[13]===c?r=t[14]:(r=e=>c[e.id]?.installed===!0,t[13]=c,t[14]=r);let a=Me.filter(r),S;t[15]===c?S=t[16]:(S=Me.some(e=>c[e.id]?.installed==null),t[15]=c,t[16]=S),p=S;let C=a.length>0,w=o!==null;m=!C&&!w;let E=o?Yt(o.installedClis):[];f=v,t[17]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsxs)(b,{children:[(0,$.jsx)(se,{"aria-hidden":`true`}),(0,$.jsx)(i,{id:`O7_W_a`})]}),t[17]=_):_=t[17],d=A,h=w?(0,$.jsxs)(T,{"aria-label":n({id:`ALhMYW`}),children:[(0,$.jsx)(k,{children:(0,$.jsx)(i,{id:`ALhMYW`})}),E.map(t=>{let{displayName:r}=P[t];return(0,$.jsxs)(x,{onSelect:()=>{s!==null&&o.launchInTerminal(s,t)},disabled:u,"data-testid":`file-tree-open-in-terminal-${t}`,"aria-label":n(e?{id:`AIn2Yv`,values:{displayName:r,hint:e}}:{id:`QYfQdv`,values:{displayName:r}}),children:[(0,$.jsx)(Kt,{id:Xt(t),"aria-hidden":`true`}),(0,$.jsx)(`span`,{className:`flex-1`,children:r}),e?(0,$.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,g=C?(0,$.jsxs)($.Fragment,{children:[w?(0,$.jsx)(y,{}):null,(0,$.jsxs)(T,{"aria-label":n({id:`BBqGS9`}),children:[(0,$.jsx)(k,{children:(0,$.jsx)(i,{id:`BBqGS9`})}),a.map(t=>{let r=!u,{displayName:i}=t,a=n(e?{id:`1ZpfyB`,values:{displayName:i,hint:e}}:{id:`WqLq6M`,values:{displayName:i}});return(0,$.jsxs)(x,{disabled:!r,onSelect:()=>{s&&l(t.id,s)},"data-testid":`file-tree-open-in-${t.id}`,"aria-label":a,children:[(0,$.jsx)(Kt,{id:t.id,"aria-hidden":`true`}),(0,$.jsx)(`span`,{className:`flex-1`,children:t.displayName}),e?(0,$.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null,t[0]=n,t[1]=l,t[2]=s,t[3]=u,t[4]=c,t[5]=o,t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g,t[12]=_}else d=t[6],f=t[7],p=t[8],m=t[9],h=t[10],g=t[11],_=t[12];let S;t[18]!==p||t[19]!==m?(S=m?(0,$.jsx)(x,{disabled:!0,"data-testid":`file-tree-open-in-empty`,children:p?(0,$.jsx)(i,{id:`EcR0fl`}):(0,$.jsx)(i,{id:`l6OXqI`})}):null,t[18]=p,t[19]=m,t[20]=S):S=t[20];let C;t[21]!==d||t[22]!==h||t[23]!==g||t[24]!==S?(C=(0,$.jsxs)(d,{children:[h,g,S]}),t[21]=d,t[22]=h,t[23]=g,t[24]=S,t[25]=C):C=t[25];let w;return t[26]!==f||t[27]!==_||t[28]!==C?(w=(0,$.jsxs)(f,{children:[_,C]}),t[26]=f,t[27]=_,t[28]=C,t[29]=w):w=t[29],w}function en(e){let t=(0,Q.c)(8),n=e?.enabled??!0,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={status:`idle`},t[0]=r):r=t[0];let[i,a]=(0,Z.useState)(r),[o,s]=(0,Z.useState)(0),c,l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{let e=()=>s(an),t=be(e),n=ye(t=>{t.includes(`files`)&&e()});return()=>{t(),n()}},l=[],t[1]=c,t[2]=l):(c=t[1],l=t[2]),(0,Z.useEffect)(c,l);let u;t[3]===n?u=t[4]:(u=()=>{if(!n)return;let e=!1;return a(rn),fetch(`/api/skills`).then(tn).then(t=>{if(e)return;let n=L.safeParse(t);if(!n.success){console.error(`[ok-skills] /api/skills response failed schema validation:`,n.error.issues),a({status:`error`,message:`Server returned an incomplete skills response.`});return}a({status:`ready`,data:n.data.skills})}).catch(t=>{e||a({status:`error`,message:t instanceof Error?t.message:String(t)})}),()=>{e=!0}},t[3]=n,t[4]=u);let d;return t[5]!==n||t[6]!==o?(d=[o,n],t[5]=n,t[6]=o,t[7]=d):d=t[7],(0,Z.useEffect)(u,d),i}async function tn(e){if(!e.ok){let t=await e.json().catch(nn);throw Error(ve(t)??`HTTP ${e.status}`)}return e.json()}function nn(){return null}function rn(e){return e.status===`ready`?e:{status:`loading`}}function an(e){return e+1}function on(e){let t=(0,Q.c)(16),{skill:n,onOpenChange:r,onDeleted:i}=e,{_:o}=a(),[s,c]=(0,Z.useState)(!1),l;t[0]!==o||t[1]!==i||t[2]!==r?(l=async function(e){c(!0);let t=await O(e.scope,e.name);if(c(!1),!t.ok){let{error:e}=t;X.error(o({id:`AtBdnD`,values:{error:e}}));return}X.success(o({id:`h9QFb9`,values:{0:e.name}})),i(),r(!1)},t[0]=o,t[1]=i,t[2]=r,t[3]=l):l=t[3];let u=l,d=n!==null,f;t[4]!==s||t[5]!==r?(f=e=>{!e&&!s&&r(!1)},t[4]=s,t[5]=r,t[6]=f):f=t[6];let p;t[7]!==o||t[8]!==s||t[9]!==u||t[10]!==n?(p=n?(0,$.jsx)(Zt,{itemName:o({id:`ExUzM4`,values:{0:n.name}}),isSubmitting:s,onDelete:()=>u(n),customDescription:o({id:`E1Da_b`,values:{0:n.path}})}):null,t[7]=o,t[8]=s,t[9]=u,t[10]=n,t[11]=p):p=t[11];let m;return t[12]!==d||t[13]!==f||t[14]!==p?(m=(0,$.jsx)(_,{open:d,onOpenChange:f,children:p}),t[12]=d,t[13]=f,t[14]=p,t[15]=m):m=t[15],m}function sn(e){let t=(0,Q.c)(68),{skill:n,existingNames:r,onOpenChange:o,onRenamed:c}=e,{_:l}=a(),p=n!==null,h=(0,Z.useId)(),[v,y]=(0,Z.useState)(``),[b,x]=(0,Z.useState)(!1),S;t[0]===n?S=t[1]:(S=()=>{n&&y(n.name)},t[0]=n,t[1]=S);let C=n?.scope,w=n?.name,T;if(t[2]!==C||t[3]!==w?(T=[C,w],t[2]=C,t[3]=w,t[4]=T):T=t[4],(0,Z.useEffect)(S,T),!n)return null;let E,O,k,A;t[5]!==r||t[6]!==v||t[7]!==n.name?(k=v.trim(),A=k===n.name,E=k===``||!z.test(k),O=!E&&!A&&r.has(k),t[5]=r,t[6]=v,t[7]=n.name,t[8]=E,t[9]=O,t[10]=k,t[11]=A):(E=t[8],O=t[9],k=t[10],A=t[11]);let M=O,N=!E&&!M&&!A&&!b,P;t[12]!==l||t[13]!==N||t[14]!==o||t[15]!==c||t[16]!==n||t[17]!==k?(P=async function(){if(!n||!N)return;x(!0);let e=await D({scope:n.scope,fromName:n.name,toName:k});if(x(!1),!e.ok){X.error(l({id:`zKxoPm`,values:{0:n.name,1:e.error}}));return}X.success(l({id:`dUCQo4`,values:{trimmed:k}})),c?.(k),o(!1)},t[12]=l,t[13]=N,t[14]=o,t[15]=c,t[16]=n,t[17]=k,t[18]=P):P=t[18];let F=P,I;t[19]===o?I=t[20]:(I=e=>e?null:o(!1),t[19]=o,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,$.jsx)(d,{children:(0,$.jsx)(i,{id:`dw_3cv`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsxs)(g,{children:[L,(0,$.jsx)(u,{children:(0,$.jsx)(i,{id:`R9IDFz`})})]}),t[22]=R):R=t[22];let B;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(i,{id:`6YtxFj`}),t[23]=B):B=t[23];let V;t[24]===h?V=t[25]:(V=(0,$.jsx)(j,{htmlFor:h,children:B}),t[24]=h,t[25]=V);let H;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(H=e=>y(e.target.value),t[26]=H):H=t[26];let U;t[27]===F?U=t[28]:(U=e=>{e.key===`Enter`&&F()},t[27]=F,t[28]=U);let W=E||M,G=E&&k!==``||M?`${h}-error`:void 0,K;t[29]!==h||t[30]!==v||t[31]!==U||t[32]!==W||t[33]!==G?(K=(0,$.jsx)(ge,{id:h,value:v,onChange:H,onKeyDown:U,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,"aria-invalid":W,"aria-describedby":G,className:`font-mono`}),t[29]=h,t[30]=v,t[31]=U,t[32]=W,t[33]=G,t[34]=K):K=t[34];let ee;t[35]!==M||t[36]!==h||t[37]!==E||t[38]!==k?(ee=E&&k!==``?(0,$.jsx)(`p`,{id:`${h}-error`,className:`text-xs text-destructive`,children:(0,$.jsx)(i,{id:`A50vr3`,components:{0:(0,$.jsx)(`code`,{className:`font-mono`})}})}):M?(0,$.jsx)(`p`,{id:`${h}-error`,className:`text-xs text-destructive`,children:(0,$.jsx)(i,{id:`YJ1BTp`})}):null,t[35]=M,t[36]=h,t[37]=E,t[38]=k,t[39]=ee):ee=t[39];let te;t[40]!==V||t[41]!==K||t[42]!==ee?(te=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[V,K,ee]}),t[40]=V,t[41]=K,t[42]=ee,t[43]=te):te=t[43];let q;t[44]===o?q=t[45]:(q=()=>o(!1),t[44]=o,t[45]=q);let ne;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,$.jsx)(i,{id:`dEgA5A`}),t[46]=ne):ne=t[46];let re;t[47]!==b||t[48]!==q?(re=(0,$.jsx)(s,{variant:`ghost`,onClick:q,disabled:b,children:ne}),t[47]=b,t[48]=q,t[49]=re):re=t[49];let ie;t[50]===F?ie=t[51]:(ie=()=>void F(),t[50]=F,t[51]=ie);let ae=!N,J;t[52]===b?J=t[53]:(J=b?(0,$.jsx)(i,{id:`tHKQ6j`}):(0,$.jsx)(i,{id:`2wxgft`}),t[52]=b,t[53]=J);let oe;t[54]!==ie||t[55]!==ae||t[56]!==J?(oe=(0,$.jsx)(s,{onClick:ie,disabled:ae,children:J}),t[54]=ie,t[55]=ae,t[56]=J,t[57]=oe):oe=t[57];let se;t[58]!==re||t[59]!==oe?(se=(0,$.jsxs)(m,{children:[re,oe]}),t[58]=re,t[59]=oe,t[60]=se):se=t[60];let Y;t[61]!==te||t[62]!==se?(Y=(0,$.jsxs)(f,{children:[R,te,se]}),t[61]=te,t[62]=se,t[63]=Y):Y=t[63];let ce;return t[64]!==p||t[65]!==Y||t[66]!==I?(ce=(0,$.jsx)(_,{open:p,onOpenChange:I,children:Y}),t[64]=p,t[65]=Y,t[66]=I,t[67]=ce):ce=t[67],ce}function cn(e){let t=(0,Q.c)(15),{skill:n,onOpenChange:r,onUpdated:o}=e,{_:c}=a(),[l,v]=(0,Z.useState)(!1),y;t[0]!==c||t[1]!==r||t[2]!==o?(y=async function(e){v(!0);let t=await w({scope:e.scope,name:e.name});v(!1);let n=J(e.name);if(!t.ok){X.error(c({id:`FRqZ9v`,values:{0:t.error}}));return}X.success(t.checkpointRef?c({id:`My9uXI`,values:{0:t.version,display:n}}):c({id:`mPneVR`,values:{0:t.version,display:n}})),o(),r(!1)},t[0]=c,t[1]=r,t[2]=o,t[3]=y):y=t[3];let b=y,x=n!==null,S;t[4]!==r||t[5]!==l?(S=e=>{!e&&!l&&r(!1)},t[4]=r,t[5]=l,t[6]=S):S=t[6];let C;t[7]!==b||t[8]!==n||t[9]!==l?(C=n?(0,$.jsxs)(f,{className:`sm:max-w-lg`,children:[(0,$.jsxs)(g,{children:[(0,$.jsx)(d,{children:(0,$.jsx)(i,{id:`iAoh55`,values:{0:J(n.name)}})}),(0,$.jsx)(u,{children:n.installedVersion?(0,$.jsx)(i,{id:`47EXvY`,values:{0:n.bundledVersion??``,1:n.installedVersion}}):(0,$.jsx)(i,{id:`nD7Fx9`,values:{0:n.bundledVersion??``}})})]}),(0,$.jsx)(p,{}),(0,$.jsxs)(m,{children:[(0,$.jsx)(h,{asChild:!0,children:(0,$.jsx)(s,{variant:`outline`,disabled:l,children:(0,$.jsx)(i,{id:`dEgA5A`})})}),(0,$.jsx)(s,{onClick:()=>void b(n),disabled:l,children:l?(0,$.jsx)(i,{id:`JL3si7`}):(0,$.jsx)(i,{id:`EkH9pt`})})]})]}):null,t[7]=b,t[8]=n,t[9]=l,t[10]=C):C=t[10];let T;return t[11]!==x||t[12]!==S||t[13]!==C?(T=(0,$.jsx)(_,{open:x,onOpenChange:S,children:C}),t[11]=x,t[12]=S,t[13]=C,t[14]=T):T=t[14],T}function ln(){let e=(0,Q.c)(30),{_:t}=a(),[n,r]=(0,Z.useState)(null),[i,o]=(0,Z.useState)(null),[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)(null),d;e[0]===t?d=e[1]:(d=async function(e,n){u(e.name);let r=await S({scope:e.scope,name:e.name,...n?{targets:[...n]}:{}});if(u(null),!r.ok)return X.error(t({id:`Mj8R8K`,values:{0:r.error}})),r;let i=un,a=new Set(r.hosts),o=r.hosts.filter(t=>!e.hosts.includes(t)),s=e.hosts.filter(e=>!a.has(e)),c=e=>{let t=r.warningCodes.indexOf(e);return t>=0?r.warnings[t]:void 0},l=c(`no-targets`);if(l)return X.warning(l),r;if(o.length>0){let e=c(`scripts-present`);e&&X.warning(e)}return r.hosts.length===0?X.success(t({id:`0LBDjY`,values:{0:e.name}})):o.length>0&&s.length===0?X.success(t({id:`PPFQ3o`,values:{0:e.name,1:i(o)}})):s.length>0&&o.length===0?X.success(t({id:`OOIVJo`,values:{0:e.name,1:i(s)}})):o.length>0&&s.length>0?X.success(t({id:`OxplNM`,values:{0:e.name,1:i(o),2:i(s)}})):X.success(t({id:`wDgmsr`,values:{0:e.name,1:i(r.hosts)}})),r},e[0]=t,e[1]=d);let f=d,p;e[2]===t?p=e[3]:(p=async function(e){u(e.name);let n=await C({scope:e.scope,name:e.name});return u(null),n.ok?X.success(t({id:`0LBDjY`,values:{0:e.name}})):X.error(t({id:`nJq7et`,values:{0:n.error}})),n},e[2]=t,e[3]=p);let m=p,h;e[4]===t?h=e[5]:(h=async function(e,n){let r=await E({scope:e.scope,name:e.name,existingNames:n});if(!r.ok){X.error(t({id:`UPjaXD`,values:{0:e.name,1:r.error}}));return}X.success(t({id:`0g7rCZ`,values:{0:r.name}}))},e[4]=t,e[5]=h);let g=h,_,v;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{e||r(null)},v=()=>r(null),e[6]=_,e[7]=v):(_=e[6],v=e[7]);let y;e[8]===n?y=e[9]:(y=(0,$.jsx)(on,{skill:n,onOpenChange:_,onDeleted:v}),e[8]=n,e[9]=y);let b=i?.skill??null,x=i?.existingNames??fn,w,T;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>{e||o(null)},T=()=>o(null),e[10]=w,e[11]=T):(w=e[10],T=e[11]);let D;e[12]!==b||e[13]!==x?(D=(0,$.jsx)(sn,{skill:b,existingNames:x,onOpenChange:w,onRenamed:T}),e[12]=b,e[13]=x,e[14]=D):D=e[14];let O,k;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>{e||c(null)},k=()=>c(null),e[15]=O,e[16]=k):(O=e[15],k=e[16]);let A;e[17]===s?A=e[18]:(A=(0,$.jsx)(cn,{skill:s,onOpenChange:O,onUpdated:k}),e[17]=s,e[18]=A);let j;e[19]!==D||e[20]!==A||e[21]!==y?(j=(0,$.jsxs)($.Fragment,{children:[y,D,A]}),e[19]=D,e[20]=A,e[21]=y,e[22]=j):j=e[22];let M=j,N;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(N=(e,t)=>o({skill:e,existingNames:t}),e[23]=N):N=e[23];let P;return e[24]!==M||e[25]!==g||e[26]!==f||e[27]!==l||e[28]!==m?(P={installingName:l,install:f,uninstall:m,duplicate:g,requestDelete:r,requestRename:N,requestUpdate:c,dialogs:M},e[24]=M,e[25]=g,e[26]=f,e[27]=l,e[28]=m,e[29]=P):P=e[29],P}function un(e){return e.map(dn).join(`, `)}function dn(e){return I[e]??e}var fn=new Set;function pn(e){let t=(0,Q.c)(19),{skill:n,onEdit:r,onInstall:a,onUninstall:o,onDelete:s}=e,c,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(ue,{"aria-hidden":!0}),l=(0,$.jsx)(i,{id:`ePK91l`}),t[0]=c,t[1]=l):(c=t[0],l=t[1]);let u;t[2]===r?u=t[3]:(u=(0,$.jsxs)(x,{onSelect:r,children:[c,l]}),t[2]=r,t[3]=u);let d;t[4]!==a||t[5]!==n.installed?(d=a&&!n.installed?(0,$.jsxs)(x,{onSelect:a,children:[(0,$.jsx)(De,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`TKQ7K-`})]}):null,t[4]=a,t[5]=n.installed,t[6]=d):d=t[6];let f;t[7]!==o||t[8]!==n.installed?(f=n.installed?(0,$.jsxs)(x,{onSelect:o,children:[(0,$.jsx)(Ae,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`fo0VXg`})]}):null,t[7]=o,t[8]=n.installed,t[9]=f):f=t[9];let p,m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(he,{"aria-hidden":!0}),m=(0,$.jsx)(i,{id:`cnGeoo`}),t[10]=p,t[11]=m):(p=t[10],m=t[11]);let h;t[12]===s?h=t[13]:(h=(0,$.jsxs)(x,{variant:`destructive`,onSelect:s,children:[p,m]}),t[12]=s,t[13]=h);let g;return t[14]!==u||t[15]!==d||t[16]!==f||t[17]!==h?(g=(0,$.jsxs)($.Fragment,{children:[u,d,f,h]}),t[14]=u,t[15]=d,t[16]=f,t[17]=h,t[18]=g):g=t[18],g}function mn(e){let t=(0,Q.c)(94),{skill:n,actions:r,existingNames:o}=e,{_:s}=a(),c=Ne(),l=Ft().states,{dispatch:u}=wt(),d=typeof window<`u`?window.okDesktop:void 0,f=n.absolutePath,p;t[0]===s?p=t[1]:(p=async function(e){try{await Ee(e),X.success(s({id:`SXCSQd`}))}catch{X.error(s({id:`cRHuuI`}))}},t[0]=s,t[1]=p);let m=p;if(n.managed){let e,r;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsxs)(k,{className:`flex items-center gap-1.5 text-muted-foreground`,children:[(0,$.jsx)(Oe,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(i,{id:`VITWk5`})]}),r=(0,$.jsx)(y,{}),t[2]=e,t[3]=r):(e=t[2],r=t[3]);let a;t[4]===f?a=t[5]:(a=d&&f?(0,$.jsxs)(x,{onSelect:()=>void d.shell.showItemInFolder(f),children:[(0,$.jsx)(fe,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`LtSYdi`})]}):null,t[4]=f,t[5]=a);let o;t[6]!==n.name||t[7]!==n.scope||t[8]!==c?(o=dt({skillName:n.name,scope:n.scope,workspace:c}),t[6]=n.name,t[7]=n.scope,t[8]=c,t[9]=o):o=t[9];let s;t[10]!==u||t[11]!==l||t[12]!==o?(s=(0,$.jsx)($t,{input:o,installStates:l,isElectronHost:d!=null,dispatch:u}),t[10]=u,t[11]=l,t[12]=o,t[13]=s):s=t[13];let p;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsxs)(b,{children:[(0,$.jsx)(de,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`zd00pH`})]}),t[14]=p):p=t[14];let h;t[15]!==f||t[16]!==m?(h=f?(0,$.jsx)(x,{onSelect:()=>void m(f),children:(0,$.jsx)(i,{id:`z2funE`})}):null,t[15]=f,t[16]=m,t[17]=h):h=t[17];let g;t[18]!==m||t[19]!==n.path?(g=()=>void m(n.path),t[18]=m,t[19]=n.path,t[20]=g):g=t[20];let _;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(i,{id:`xloBjn`}),t[21]=_):_=t[21];let S;t[22]===g?S=t[23]:(S=(0,$.jsx)(x,{onSelect:g,children:_}),t[22]=g,t[23]=S);let C;t[24]!==S||t[25]!==h?(C=(0,$.jsxs)(v,{children:[p,(0,$.jsxs)(A,{children:[h,S]})]}),t[24]=S,t[25]=h,t[26]=C):C=t[26];let w;return t[27]!==C||t[28]!==a||t[29]!==s?(w=(0,$.jsxs)($.Fragment,{children:[e,r,a,s,C]}),t[27]=C,t[28]=a,t[29]=s,t[30]=w):w=t[30],w}let h;t[31]===f?h=t[32]:(h=d&&f?(0,$.jsxs)(x,{onSelect:()=>void d.shell.showItemInFolder(f),children:[(0,$.jsx)(fe,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`LtSYdi`})]}):null,t[31]=f,t[32]=h);let g;t[33]!==n.name||t[34]!==n.scope||t[35]!==c?(g=dt({skillName:n.name,scope:n.scope,workspace:c}),t[33]=n.name,t[34]=n.scope,t[35]=c,t[36]=g):g=t[36];let _;t[37]!==u||t[38]!==l||t[39]!==g?(_=(0,$.jsx)($t,{input:g,installStates:l,isElectronHost:d!=null,dispatch:u}),t[37]=u,t[38]=l,t[39]=g,t[40]=_):_=t[40];let S;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsxs)(b,{children:[(0,$.jsx)(de,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`zd00pH`})]}),t[41]=S):S=t[41];let C;t[42]!==f||t[43]!==m?(C=f?(0,$.jsx)(x,{onSelect:()=>void m(f),children:(0,$.jsx)(i,{id:`z2funE`})}):null,t[42]=f,t[43]=m,t[44]=C):C=t[44];let w;t[45]!==m||t[46]!==n.path?(w=()=>void m(n.path),t[45]=m,t[46]=n.path,t[47]=w):w=t[47];let T;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(i,{id:`xloBjn`}),t[48]=T):T=t[48];let E;t[49]===w?E=t[50]:(E=(0,$.jsx)(x,{onSelect:w,children:T}),t[49]=w,t[50]=E);let D;t[51]!==C||t[52]!==E?(D=(0,$.jsxs)(v,{children:[S,(0,$.jsxs)(A,{children:[C,E]})]}),t[51]=C,t[52]=E,t[53]=D):D=t[53];let O;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(y,{}),t[54]=O):O=t[54];let j;t[55]!==r||t[56]!==o||t[57]!==n?(j=()=>void r.duplicate(n,o),t[55]=r,t[56]=o,t[57]=n,t[58]=j):j=t[58];let M,N;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(oe,{"aria-hidden":!0}),N=(0,$.jsx)(i,{id:`euc6Ns`}),t[59]=M,t[60]=N):(M=t[59],N=t[60]);let P;t[61]===j?P=t[62]:(P=(0,$.jsxs)(x,{onSelect:j,children:[M,N]}),t[61]=j,t[62]=P);let F;t[63]!==r||t[64]!==o||t[65]!==n?(F=()=>r.requestRename(n,o),t[63]=r,t[64]=o,t[65]=n,t[66]=F):F=t[66];let I,L;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(ke,{"aria-hidden":!0}),L=(0,$.jsx)(i,{id:`2wxgft`}),t[67]=I,t[68]=L):(I=t[67],L=t[68]);let R;t[69]===F?R=t[70]:(R=(0,$.jsxs)(x,{onSelect:F,children:[I,L]}),t[69]=F,t[70]=R);let z;t[71]!==r||t[72]!==n?(z=n.updateAvailable?(0,$.jsxs)(x,{onSelect:()=>r.requestUpdate(n),children:[(0,$.jsx)(me,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`6g2jsp`})]}):null,t[71]=r,t[72]=n,t[73]=z):z=t[73];let B;t[74]!==r||t[75]!==n?(B=n.installed?(0,$.jsxs)(x,{onSelect:()=>void r.uninstall(n),children:[(0,$.jsx)(Ae,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`fo0VXg`})]}):(0,$.jsxs)(x,{onSelect:()=>void r.install(n),children:[(0,$.jsx)(De,{"aria-hidden":!0}),(0,$.jsx)(i,{id:`TKQ7K-`})]}),t[74]=r,t[75]=n,t[76]=B):B=t[76];let V;t[77]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(y,{}),t[77]=V):V=t[77];let H;t[78]!==r||t[79]!==n?(H=()=>r.requestDelete(n),t[78]=r,t[79]=n,t[80]=H):H=t[80];let U,W;t[81]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(he,{"aria-hidden":!0}),W=(0,$.jsx)(i,{id:`cnGeoo`}),t[81]=U,t[82]=W):(U=t[81],W=t[82]);let G;t[83]===H?G=t[84]:(G=(0,$.jsxs)(x,{variant:`destructive`,onSelect:H,children:[U,W]}),t[83]=H,t[84]=G);let K;return t[85]!==D||t[86]!==P||t[87]!==R||t[88]!==h||t[89]!==z||t[90]!==B||t[91]!==G||t[92]!==_?(K=(0,$.jsxs)($.Fragment,{children:[h,_,D,O,P,R,z,B,V,G]}),t[85]=D,t[86]=P,t[87]=R,t[88]=h,t[89]=z,t[90]=B,t[91]=G,t[92]=_,t[93]=K):K=t[93],K}export{wt as C,De as D,Oe as E,lt as S,Me as T,ot as _,$t as a,yt as b,Xt as c,Rt as d,zt as f,ut as g,ct as h,en as i,Yt as l,ft as m,mn as n,Zt as o,Ft as p,ln as r,qt as s,pn as t,Kt as u,st as v,Ne as w,xt as x,dt as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-C7afl5rZ.js";import"./src-Bejbc0T8.js";import"./chunk-WYO6CB5R-DDA9TMxs.js";import"./chunk-ICXQ74PX-DWIJquJc.js";import"./chunk-HOUHSVGY-3n2-KijJ.js";import"./chunk-Q4XR5HBZ-C3mWTH_s.js";import"./chunk-7BUUIJ7U-D9n2zFWa.js";import"./chunk-OGEWGWER-CeOp0xbH.js";import"./chunk-32BRIVSS-DSjkImiO.js";import"./chunk-XXDRQBXY-BGFIrdGe.js";import"./chunk-VR4S4FIN-BXKGzdjR.js";import"./chunk-C7G6YPKG-DA4AzgS1.js";import"./chunk-ZGVPDNZ5-gtD66mSa.js";import"./chunk-52WLFC77-Dcxgn7aY.js";import"./chunk-FWX5IMBZ-BTxv6yrt.js";import{i as t,n,r,t as i}from"./chunk-EX3LRPZG-BcSqmSt4.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-C7afl5rZ.js";import"./src-Bejbc0T8.js";import"./chunk-WYO6CB5R-DDA9TMxs.js";import"./chunk-ICXQ74PX-DWIJquJc.js";import"./chunk-HOUHSVGY-3n2-KijJ.js";import"./chunk-Q4XR5HBZ-C3mWTH_s.js";import"./chunk-7BUUIJ7U-D9n2zFWa.js";import"./chunk-OGEWGWER-CeOp0xbH.js";import"./chunk-32BRIVSS-DSjkImiO.js";import"./chunk-XXDRQBXY-BGFIrdGe.js";import"./chunk-VR4S4FIN-BXKGzdjR.js";import"./chunk-C7G6YPKG-DA4AzgS1.js";import"./chunk-ZGVPDNZ5-gtD66mSa.js";import"./chunk-52WLFC77-Dcxgn7aY.js";import"./chunk-FWX5IMBZ-BTxv6yrt.js";import"./chunk-ZIRB5QZD-Bh7823OJ.js";import{r as t,t as n}from"./chunk-PUDLZKDR-BdJDvOQD.js";var r=n({defaultLayout:`swimlane`,styles:e(e=>`${t(e)}
|
|
2
|
-
.swimlane.cluster rect {
|
|
3
|
-
stroke: ${e.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,`getStyles`)});export{r as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./chunk-DseTPa7n.js";import{n as t}from"./compiler-runtime-DrcePeIl.js";import{t as n}from"./createLucideIcon-Wgamzz8_.js";var r=n(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),i=e(t(),1),a=null,o=new Set;function s(){for(let e of o)e()}function c(e){a=e,s()}function l(){a!==null&&(a=null,s())}function u(e){return o.add(e),()=>{o.delete(e)}}function d(){return a}function f(){return(0,i.useSyncExternalStore)(u,d,d)}export{r as i,c as n,f as r,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-CQNSW5MT-ClwiAtII.js";export{e as createTreeViewServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-R7FJI6CG-DLyapyIO.js";export{e as createTreemapServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./chunk-DseTPa7n.js";import{n as t,t as n}from"./compiler-runtime-DrcePeIl.js";import{n as r}from"./DocumentContext-DdPNvhCs.js";import{B as i}from"./CodeMirrorPropInput-BbZYh8z8.js";import{a,ht as o,i as s}from"./dist-D--vIb9_.js";import{o as c}from"./documents-events-BOt1_9Hf.js";import{t as l}from"./agent-presence-DB_yc77e.js";import{t as u}from"./lru-string-cache-WgNrdYaR.js";var d=n(),f=e(t(),1),p=500,m=64;async function h(e){let t=`/api/agent-activity?agentId=${encodeURIComponent(e)}`,n=await fetch(t),r;try{r=await n.json()}catch(e){throw new i(`Could not parse /api/agent-activity response.`,{cause:e,status:n.status})}if(!n.ok){let e=o.safeParse(r);throw e.success?Error(e.data.title):new i(`/api/agent-activity returned a non-RFC-9457 error response.`,{cause:e.error,status:n.status})}let a=s.safeParse(r);if(!a.success)throw new i(`/api/agent-activity returned a body that did not match AgentActivitySuccessSchema.`,{cause:a.error,status:n.status});return a.data}async function g(e,t,n){let r=`/api/agent-burst-diff?agentId=${encodeURIComponent(e)}&docName=${encodeURIComponent(t)}&keptCount=${n}`,s=await fetch(r),c;try{c=await s.json()}catch(e){throw new i(`Could not parse /api/agent-burst-diff response.`,{cause:e,status:s.status})}if(!s.ok){let e=o.safeParse(c);throw e.success?Error(e.data.title):new i(`/api/agent-burst-diff returned a non-RFC-9457 error response.`,{cause:e.error,status:s.status})}let l=a.safeParse(c);if(!l.success)throw new i(`/api/agent-burst-diff returned a body that did not match AgentBurstDiffSuccessSchema.`,{cause:l.error,status:s.status});let{diff:u,before:d,after:f}=l.data;return{diff:u,before:d,after:f}}function _(e){let t=(0,d.c)(23),{systemProvider:n}=r(),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(`idle`),[l,_]=(0,f.useState)(null),b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=new u(m),t[0]=b):b=t[0];let x=(0,f.useRef)(b),S=(0,f.useRef)(0),C;t[1]===n?C=t[2]:(C=e=>{let t=S.current+=1;s(`loading`),_(null),h(e).then(r=>{if(S.current!==t)return;let i=y(n,e);a({...r,writingDocs:i}),s(`ready`)}).catch(e=>{S.current===t&&(_(e instanceof Error?e.message:String(e)),s(`error`))})},t[1]=n,t[2]=C);let w=C,T;t[3]!==e||t[4]!==w?(T=()=>{if(!e){S.current+=1,a(null),s(`idle`),_(null),x.current.clear();return}x.current.clear(),w(e);let t=null,n=c(n=>{n.includes(`session-activity`)&&(t&&clearTimeout(t),t=setTimeout(()=>{t=null,w(e)},p))});return()=>{t&&clearTimeout(t),n()}},t[3]=e,t[4]=w,t[5]=T):T=t[5];let E;t[6]===e?E=t[7]:(E=[e],t[6]=e,t[7]=E),(0,f.useEffect)(T,E);let D,O;t[8]!==e||t[9]!==n?(D=()=>{if(!e||!n)return;let t=()=>{if(!n.awareness)return;let t=y(n,e);a(e=>!e||v(e.writingDocs,t)?e:{...e,writingDocs:t})},r=n.awareness;if(!r||typeof r.on!=`function`){t();return}r.on(`update`,t),t();let i=setInterval(t,1e3);return()=>{clearInterval(i),typeof r.off==`function`&&r.off(`update`,t)}},O=[e,n],t[8]=e,t[9]=n,t[10]=D,t[11]=O):(D=t[10],O=t[11]),(0,f.useEffect)(D,O);let k;t[12]===e?k=t[13]:(k=async(t,n)=>{if(!e)return``;let r=`${t}\0${n}`,i=x.current.get(r);if(i!==void 0)return i;let{diff:a}=await g(e,t,n);return x.current.set(r,a),a},t[12]=e,t[13]=k);let A=k,j;t[14]!==e||t[15]!==w?(j=()=>{e&&w(e)},t[14]=e,t[15]=w,t[16]=j):j=t[16];let M=j,N;return t[17]!==i||t[18]!==l||t[19]!==A||t[20]!==M||t[21]!==o?(N={data:i,status:o,error:l,reload:M,fetchBurstDiff:A},t[17]=i,t[18]=l,t[19]=A,t[20]=M,t[21]=o,t[22]=N):N=t[22],N}function v(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function y(e,t){let n=new Set;if(!e)return n;let r=e.awareness;if(!l(r))return n;let i=[t,t.startsWith(`agent-`)?t.slice(6):`agent-${t}`];for(let e of r.getStates().values()){let t=e.agentPresence;if(t)for(let e of i){let r=t[e];r&&r.mode===`writing`&&r.currentDoc&&n.add(r.currentDoc)}}return n}export{_ as n,g as t};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./chunk-DseTPa7n.js";import{n,r,t as i}from"./compiler-runtime-DrcePeIl.js";import{n as a,p as o}from"./DocumentContext-DdPNvhCs.js";import{t as s}from"./react-dom-CMNLH3L-.js";import{I as c,et as l,st as u}from"./CodeMirrorPropInput-BbZYh8z8.js";import{Bi as d,Ci as f,Fi as p,Gi as m,Ii as h,K as g,Ur as _,Vi as v,Xi as y,Yi as b,Zi as x,qi as S,ui as ee}from"./dist-D--vIb9_.js";var C=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Pointer=void 0,e.unescapeToken=t,e.escapeToken=n;function t(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function n(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.Pointer=function(){function e(e){e===void 0&&(e=[``]),this.tokens=e}return e.fromJSON=function(n){var r=n.split(`/`).map(t);if(r[0]!==``)throw Error(`Invalid JSON Pointer: ${n}`);return new e(r)},e.prototype.toString=function(){return this.tokens.map(n).join(`/`)},e.prototype.evaluate=function(e){for(var t=null,n=``,r=e,i=1,a=this.tokens.length;i<a;i++)t=r,n=this.tokens[i],!(n==`__proto__`||n==`constructor`||n==`prototype`)&&(r=(t||{})[n]);return{parent:t,key:n,value:r}},e.prototype.get=function(e){return this.evaluate(e).value},e.prototype.set=function(e,t){var n=this.evaluate(e);n.parent&&(n.parent[n.key]=t)},e.prototype.push=function(e){this.tokens.push(e)},e.prototype.add=function(t){return new e(this.tokens.concat(String(t)))},e.prototype.parent=function(){return new e(this.tokens.length>1?this.tokens.slice(0,-1):[``])},e}()})),te=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hasOwnProperty=void 0,e.objectType=t,e.clone=r,e.hasOwnProperty=Object.prototype.hasOwnProperty;function t(e){return e===void 0?`undefined`:e===null?`null`:Array.isArray(e)?`array`:typeof e}function n(e){return typeof e==`object`&&!!e}function r(t){if(!n(t))return t;if(t.constructor==Array){for(var i=t.length,a=Array(i),o=0;o<i;o++)a[o]=r(t[o]);return a}if(t.constructor==Date)return new Date(+t);var s={};for(var c in t)e.hasOwnProperty.call(t,c)&&(s[c]=r(t[c]));return s}})),ne=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isDestructive=n,e.subtract=r,e.intersection=i,e.diffArrays=l,e.diffObjects=u,e.diffAny=d;var t=te();function n(e){var t=e.op;return t===`remove`||t===`replace`||t===`copy`||t===`move`}function r(e,n){var r=[];for(var i in e)t.hasOwnProperty.call(e,i)&&e[i]!==void 0&&!(t.hasOwnProperty.call(n,i)&&n[i]!==void 0)&&r.push(i);return r}function i(e){for(var n=e.length,r={},i=0;i<n;i++){var a=e[i];for(var o in a)t.hasOwnProperty.call(a,o)&&a[o]!==void 0&&(r[o]=(r[o]||0)+1)}for(var o in r)r[o]<n&&delete r[o];return Object.keys(r)}function a(e,n){var r=[];for(var i in e)t.hasOwnProperty.call(e,i)&&e[i]!==void 0&&t.hasOwnProperty.call(n,i)&&n[i]!==void 0&&r.push(i);return r}function o(e){return e.op===`add`}function s(e){return e.op===`remove`}function c(e,t){return{operations:e.operations.concat(t),cost:e.cost+1}}function l(e,t,n,r){r===void 0&&(r=d);var i=Math.max(e.length,t.length),a=new Map([[0,{operations:[],cost:0}]]);function l(o,s){var u=o*i+s,d=a.get(u);if(d===void 0){if(o>0&&s>0&&!r(e[o-1],t[s-1],n.add(String(o-1))).length)d=l(o-1,s-1);else{var f=[];if(o>0){var p=l(o-1,s),m={op:`remove`,index:o-1};f.push(c(p,m))}if(s>0){var h=l(o,s-1),g={op:`add`,index:o-1,value:t[s-1]};f.push(c(h,g))}if(o>0&&s>0){var _=l(o-1,s-1),v={op:`replace`,index:o-1,original:e[o-1],value:t[s-1]};f.push(c(_,v))}d=f.sort(function(e,t){return e.cost-t.cost})[0]}a.set(u,d)}return d}var u=isNaN(e.length)||e.length<=0?0:e.length;return l(u,isNaN(t.length)||t.length<=0?0:t.length).operations.reduce(function(e,t){var i=e[0],a=e[1];if(o(t)){var c=t.index+1+a,l=c<u+a?String(c):`-`,d={op:t.op,path:n.add(l).toString(),value:t.value};return[i.concat(d),a+1]}else if(s(t)){var d={op:t.op,path:n.add(String(t.index+a)).toString()};return[i.concat(d),a-1]}else{var f=n.add(String(t.index+a)),p=r(t.original,t.value,f);return[i.concat.apply(i,p),a]}},[[],0])[0]}function u(e,t,n,i){i===void 0&&(i=d);var o=[];return r(e,t).forEach(function(e){o.push({op:`remove`,path:n.add(e).toString()})}),r(t,e).forEach(function(e){o.push({op:`add`,path:n.add(e).toString(),value:t[e]})}),a(e,t).forEach(function(r){o.push.apply(o,i(e[r],t[r],n.add(r)))}),o}function d(e,n,r,i){if(i===void 0&&(i=d),e===n)return[];var a=(0,t.objectType)(e),o=(0,t.objectType)(n);return a==`array`&&o==`array`?l(e,n,r,i):a==`object`&&o==`object`?u(e,n,r,i):[{op:`replace`,path:r.toString(),value:n}]}})),re=t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidOperationError=e.TestError=e.MissingError=void 0,e.add=l,e.remove=u,e.replace=d,e.move=f,e.copy=p,e.test=m,e.apply=g;var n=C(),r=te(),i=ne(),a=function(e){t(n,e);function n(t){var n=e.call(this,`Value required at path: ${t}`)||this;return n.path=t,n.name=`MissingError`,n}return n}(Error);e.MissingError=a;var o=function(e){t(n,e);function n(t,n){var r=e.call(this,`Test failed: ${t} != ${n}`)||this;return r.actual=t,r.expected=n,r.name=`TestError`,r}return n}(Error);e.TestError=o;function s(e,t,n){if(Array.isArray(e))if(t==`-`)e.push(n);else{var r=parseInt(t,10);e.splice(r,0,n)}else e[t]=n}function c(e,t){if(Array.isArray(e)){var n=parseInt(t,10);e.splice(n,1)}else delete e[t]}function l(e,t,i){var o=n.Pointer.fromJSON(t.path);if(i?.implicitArrayCreation&&o.tokens[o.tokens.length-1]===`-`){var c=o.parent().evaluate(e);c.value===void 0&&(0,r.objectType)(c.parent)===`object`&&(c.parent[c.key]=[])}var l=o.evaluate(e);return l.parent===void 0||i?.implicitArrayCreation&&l.key===`-`&&!Array.isArray(l.parent)?new a(t.path):(s(l.parent,l.key,(0,r.clone)(t.value)),null)}function u(e,t,r){var i=n.Pointer.fromJSON(t.path).evaluate(e);return i.value===void 0?new a(t.path):(c(i.parent,i.key),null)}function d(e,t,i){var o=n.Pointer.fromJSON(t.path).evaluate(e);if(o.parent===null)return new a(t.path);if(Array.isArray(o.parent)){if(parseInt(o.key,10)>=o.parent.length)return new a(t.path)}else if(o.value===void 0)return new a(t.path);return o.parent[o.key]=(0,r.clone)(t.value),null}function f(e,t,r){var i=n.Pointer.fromJSON(t.from).evaluate(e);if(i.value===void 0)return new a(t.from);var o=n.Pointer.fromJSON(t.path).evaluate(e);return o.parent===void 0?new a(t.path):(c(i.parent,i.key),s(o.parent,o.key,i.value),null)}function p(e,t,i){var o=n.Pointer.fromJSON(t.from).evaluate(e);if(o.value===void 0)return new a(t.from);var c=n.Pointer.fromJSON(t.path).evaluate(e);return c.parent===void 0?new a(t.path):(s(c.parent,c.key,(0,r.clone)(o.value)),null)}function m(e,t,r){var a=n.Pointer.fromJSON(t.path).evaluate(e);return(0,i.diffAny)(a.value,t.value,new n.Pointer).length?new o(a.value,t.value):null}var h=function(e){t(n,e);function n(t){var n=e.call(this,`Invalid operation: ${t.op}`)||this;return n.operation=t,n.name=`InvalidOperationError`,n}return n}(Error);e.InvalidOperationError=h;function g(e,t,n){switch(t.op){case`add`:return l(e,t,n);case`remove`:return u(e,t,n);case`replace`:return d(e,t,n);case`move`:return f(e,t,n);case`copy`:return p(e,t,n);case`test`:return m(e,t,n)}return new h(t)}})),ie=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Pointer=void 0,e.applyPatch=i,e.createPatch=o;var t=C();Object.defineProperty(e,`Pointer`,{enumerable:!0,get:function(){return t.Pointer}});var n=re(),r=ne();function i(e,t,r){return t.map(function(t){return(0,n.apply)(e,t,r)})}function a(e){function t(n,i,a){var o=e(n,i,a);return Array.isArray(o)?o:(0,r.diffAny)(n,i,a,t)}return t}function o(e,n,i){var o=new t.Pointer;return(i?a(i):r.diffAny)(e,n,o)}})),w=e(n(),1),ae=e(s(),1),T=i(),E=ie();function D(){}D.prototype={diff:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.callback;typeof n==`function`&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var o=t.length,s=e.length,c=1,l=o+s;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var u=n.timeout??1/0,d=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);var m=-1/0,h=1/0;function g(){for(var n=Math.max(m,-c);n<=Math.min(h,c);n+=2){var r=void 0,l=f[n-1],u=f[n+1];l&&(f[n-1]=void 0);var d=!1;if(u){var g=u.oldPos-n;d=u&&0<=g&&g<o}var _=l&&l.oldPos+1<s;if(!d&&!_){f[n]=void 0;continue}if(r=!_||d&&l.oldPos+1<u.oldPos?i.addToPath(u,!0,void 0,0):i.addToPath(l,void 0,!0,1),p=i.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=o)return a(oe(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=s&&(h=Math.min(h,n-1)),p+1>=o&&(m=Math.max(m,n+1))}c++}if(r)(function e(){setTimeout(function(){if(c>l||Date.now()>d)return r();g()||e()},0)})();else for(;c<=l&&Date.now()<=d;){var _=g();if(_)return _}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,a=n.length,o=e.oldPos,s=o-r,c=0;s+1<i&&o+1<a&&this.equals(t[s+1],n[o+1]);)s++,o++,c++;return c&&(e.lastComponent={count:c,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(``)},join:function(e){return e.join(``)}};function oe(e,t,n,r,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,l=0,u=0;s<c;s++){var d=a[s];if(!d.removed){if(!d.added&&i){var f=n.slice(l,l+d.count);f=f.map(function(e,t){var n=r[u+t];return n.length>e.length?n:e}),d.value=e.join(f)}else d.value=e.join(n.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}else if(d.value=e.join(r.slice(u,u+d.count)),u+=d.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}var m=a[c-1];return c>1&&typeof m.value==`string`&&(m.added||m.removed)&&e.equals(``,m.value)&&(a[c-2].value+=m.value,a.pop()),a}var se=new D;function ce(e,t,n){return se.diff(e,t,n)}var le=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ue=/\S/,O=new D;O.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!ue.test(e)&&!ue.test(t)},O.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&le.test(t[n])&&le.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};function de(e,t,n){return O.diff(e,t,n)}var fe=new D;fe.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
2
|
-
`));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var pe=new D;pe.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var me=new D;me.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function k(e){"@babel/helpers - typeof";return k=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},k(e)}var he=Object.prototype.toString,A=new D;A.useLongestToken=!0,A.tokenize=fe.tokenize,A.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(e,t){return t===void 0?n:t}:r;return typeof e==`string`?e:JSON.stringify(j(e,null,null,i),i,` `)},A.equals=function(e,t){return D.prototype.equals.call(A,e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`))};function j(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];var o;if(he.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=j(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),k(e)===`object`&&e!==null){t.push(e),o={},n.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=j(e[c],t,n,r,c);t.pop(),n.pop()}else o=e;return o}var M=new D;M.tokenize=function(e){return e.slice()},M.join=M.removeEmpty=function(e){return e};function N(e,t){let n=t.content.findDiffStart(e.content);if(n===null)return!1;let{a:r,b:i}=t.content.findDiffEnd(e.content),a=n-Math.min(r,i);return a>0&&(e.resolve(n-a).depth<t.resolve(r+a).depth?n-=a:(r+=a,i+=a)),new b(n,i,t.slice(n,r))}function ge(e){if(!e.steps.length)return;let t=new y(e.docs[0]),n=e.steps.slice();for(;n.length;){let e=n.shift();for(;n.length&&e.merge(n[0]);){let r=n.shift();e=e instanceof b&&r instanceof b?N(t.doc,r.apply(e.apply(t.doc).doc).doc):e.merge(r)}t.step(e)}return t}function P(e){let t=new y(e);return t.removeMark(0,e.nodeSize-2),t.doc}function _e(e,t){let n=t.split(`/`);for(n.shift();n.length;){if(typeof e!=`object`)throw Error();let t=n.shift();e=e[t]}return e}function F(e){return JSON.parse(JSON.stringify(e))}var ve=class{fromDoc;toDoc;complexSteps;wordDiffs;simplifyDiff;schema;tr;currentJSON;finalJSON;ops;constructor(e,t,n={}){let r={complexSteps:!0,wordDiffs:!1,simplifyDiff:!0,...n};this.fromDoc=e,this.toDoc=t,this.complexSteps=r.complexSteps,this.wordDiffs=r.wordDiffs,this.simplifyDiff=r.simplifyDiff,this.schema=e.type.schema,this.tr=new y(e),this.currentJSON={},this.finalJSON={},this.ops=[]}init(){return this.complexSteps?(this.currentJSON=P(this.fromDoc).toJSON(),this.finalJSON=P(this.toDoc).toJSON(),this.ops=(0,E.createPatch)(this.currentJSON,this.finalJSON),this.recreateChangeContentSteps(),this.recreateChangeMarkSteps()):(this.currentJSON=this.fromDoc.toJSON(),this.finalJSON=this.toDoc.toJSON(),this.ops=(0,E.createPatch)(this.currentJSON,this.finalJSON),this.recreateChangeContentSteps()),this.simplifyDiff&&(this.tr=ge(this.tr)||this.tr),this.tr}recreateChangeContentSteps(){let e=[];for(;this.ops.length;){let t=this.ops.shift();e.push(t);let n,r=F(this.currentJSON),i=t.path.split(`/`);for(;n==null;){(0,E.applyPatch)(r,[t]);try{n=this.schema.nodeFromJSON(r),n.check()}catch{if(n=null,this.ops.length>0)t=this.ops.shift(),e.push(t);else throw Error(`No valid diff possible applying ${t.path}`)}}this.complexSteps&&e.length===1&&(i.includes(`attrs`)||i.includes(`type`))?(this.addSetNodeMarkup(),e=[]):e.length===1&&t.op===`replace`&&i[i.length-1]===`text`?(this.addReplaceTextSteps(t,r),e=[]):this.addReplaceStep(n,r)&&(e=[])}}addSetNodeMarkup(){let e=this.schema.nodeFromJSON(this.currentJSON),t=this.schema.nodeFromJSON(this.finalJSON),n=t.content.findDiffStart(e.content),r=e.nodeAt(n),i=t.nodeAt(n);if(n!=null){let e=r.type===i.type?null:i.type;try{this.tr.setNodeMarkup(n,e,i.attrs,i.marks)}catch(t){if(e&&t.message.includes(`Invalid content`))this.tr.replaceWith(n,n+r.nodeSize,i);else throw t}return this.currentJSON=P(this.tr.doc).toJSON(),this.ops=(0,E.createPatch)(this.currentJSON,this.finalJSON),!0}return!1}recreateChangeMarkSteps(){this.toDoc.descendants((e,t)=>{if(!e.isInline)return!0;this.tr.doc.nodesBetween(t,t+e.nodeSize,(n,r)=>{if(!n.isInline)return!0;let i=Math.max(t,r),a=Math.min(t+e.nodeSize,r+n.nodeSize);n.marks.forEach(t=>{t.isInSet(e.marks)||this.tr.removeMark(i,a,t)}),e.marks.forEach(e=>{e.isInSet(n.marks)||this.tr.addMark(i,a,e)})})})}addReplaceStep(e,t){let n=N(this.schema.nodeFromJSON(this.currentJSON),e);if(!n)return!1;if(!this.tr.maybeStep(n).failed)return this.currentJSON=t,!0;throw Error(`No valid step found.`)}addReplaceTextSteps(e,t){let n={...e,value:`xx`},r={...e,value:`yy`},i=F(this.currentJSON),a=F(this.currentJSON);(0,E.applyPatch)(i,[n]),(0,E.applyPatch)(a,[r]);let o=this.schema.nodeFromJSON(i),s=this.schema.nodeFromJSON(a),c=e.value,l=_e(this.currentJSON,e.path),u=this.wordDiffs?de(l,c):ce(l,c),d=o.content.findDiffStart(s.content),f=o.resolve(d+1).marks();for(;u.length;){let e=u.shift();if(e.added){let t=this.schema.nodeFromJSON({type:`text`,text:e.value}).mark(f);if(u.length&&u[0].removed){let e=u.shift();this.tr.replaceWith(d,d+e.value.length,t)}else this.tr.insert(d,t);d+=e.value.length}else if(e.removed)if(u.length&&u[0].added){let t=u.shift(),n=this.schema.nodeFromJSON({type:`text`,text:t.value}).mark(f);this.tr.replaceWith(d,d+e.value.length,n),d+=t.value.length}else this.tr.delete(d,d+e.value.length);else d+=e.value.length}this.currentJSON=t}};function ye(e,t,n={}){return new ve(e,t,n).init()}var be=new Set([`list`,`bulletList`,`orderedList`,`taskList`]);function I(e){let t=[];return e.forEach((e,n)=>{if(be.has(e.type.name)){let r=n+1,i=0;e.forEach(e=>{let n=r+i;t.push({from:n,to:n+e.nodeSize,key:`${e.type.name}:${e.textContent}`}),i+=e.nodeSize})}else t.push({from:n,to:n+e.nodeSize,key:`${e.type.name}:${e.textContent}`})}),t}function xe(e,t){let n=e.length,r=t.length,i=Array.from({length:n+1},()=>Array(r+1).fill(0));for(let a=n-1;a>=0;a--)for(let n=r-1;n>=0;n--)i[a][n]=e[a].key===t[n].key?i[a+1][n+1]+1:Math.max(i[a+1][n],i[a][n+1]);let a=[],o=0,s=0;for(;o<n&&s<r;)e[o].key===t[s].key?(a.push({type:`same`,b:t[s]}),o++,s++):i[o+1][s]>=i[o][s+1]?(a.push({type:`del`,a:e[o]}),o++):(a.push({type:`ins`,b:t[s]}),s++);for(;o<n;)a.push({type:`del`,a:e[o++]});for(;s<r;)a.push({type:`ins`,b:t[s++]});return a}function Se(e,t){let n=xe(I(e),I(t)),r=[],i=0;for(let e of n)e.type===`same`?i=e.b.to:e.type===`ins`?(r.push({fromA:0,toA:0,fromB:e.b.from,toB:e.b.to}),i=e.b.to):r.push({fromA:e.a.from,toA:e.a.to,fromB:i,toB:i});return r}var Ce=400;function L(e,t,n){return t.nodeFromJSON(e.parseWithFallback(n))}function we(e,t){let n=t.filter(e=>e.toB>e.fromB),r=[];return e.steps.forEach((t,i)=>{let a=t instanceof m?`add`:t instanceof S?`remove`:null;if(a===null)return;let o=t,s=e.mapping.slice(i+1),c=s.map(o.from,-1),l=s.map(o.to,1);if(l<=c||n.some(e=>e.fromB<=c&&l<=e.toB))return;let u=e.mapping.slice(0,i).invert(),d=u.map(o.from),f=u.map(o.to);f<=d||r.push({fromA:d,toA:f,fromB:c,toB:l,markName:o.mark.type.name,kind:a})}),r}function Te(e,t,n,r){if(e.length>2e5||t.length>2e5)return{ok:!1,reason:`ceiling`};let i,a;try{i=L(r,n,e),a=L(r,n,t)}catch{return{ok:!1,reason:`parse`}}let o=a,s=null;try{s=ye(i,a,{complexSteps:!0,wordDiffs:!0,simplifyDiff:!0}),o=s.doc}catch{}let c=Se(i,o),l=s?we(s,c):[];return c.length+l.length>Ce?{ok:!1,reason:`ceiling`}:{ok:!0,afterDoc:o,beforeDoc:i,changes:c,markChanges:l}}var Ee=`.ok-diff-ins, .ok-diff-ins-block, [data-diff-deleted]`;function De(e){return e.changes.length+2*e.markChanges.length}function R(e){let t=!1;return e.forEach(e=>{e.isBlock&&(t=!0)}),t}function Oe(e){if(e.childCount===0)return!1;let t=!0;return e.forEach(e=>{e.type.name!==`listItem`&&e.type.name!==`taskItem`&&(t=!1)}),t}function z(e,t,n){let r=document.createElement(n?`div`:`span`);r.className=n?`ok-diff-del ok-diff-del-block`:`ok-diff-del`,r.setAttribute(`data-diff-deleted`,``);let i=e.serializeFragment(t);if(n&&Oe(t)){let e=document.createElement(`ul`);e.appendChild(i),r.appendChild(e)}else r.appendChild(i);return r}function ke(e,t,n,r,i){let a=x.fromSchema(i),o=[];for(let e of r){let n=t.slice(e.fromA,e.toA),r=R(n.content);o.push(p.widget(e.fromB,()=>z(a,n.content,r),{side:-1,ignoreSelection:!0,marks:[]})),o.push(p.inline(e.fromB,e.toB,{class:`ok-diff-ins`},{inclusiveEnd:!0}))}for(let e of n)if(e.toB>e.fromB&&o.push(p.node(e.fromB,e.toB,{class:`ok-diff-ins-block`})),e.toA>e.fromA){let n=t.slice(e.fromA,e.toA),r=R(n.content);o.push(p.widget(e.fromB,()=>z(a,n.content,r),{side:-1,ignoreSelection:!0,marks:[]}))}return h.create(e,o)}var Ae=new Set([`slashCommand`,`blockDragHandle`,`blockMover`,`tableInsertControls`,`fileHandler`,`gfmAutolink`,`inlineLinkInputRule`,`keyboardNav`,`tiptapFindReplace`,`selectionState`,`sourceDirtyObserver`,`tabFocusTrap`]),je=o.filter(e=>!Ae.has(e.name)).map(e=>e.name===`jsxComponent`?g:e),B=r(),Me=f(je);function Ne(e,t){return Te(e,t,Me,c())}var Pe=ee.create({name:`renderedDiffDecorations`,addOptions(){return{decorations:h.empty}},addProseMirrorPlugins(){let e=this.options.decorations;return[new d({key:new v(`renderedDiffDecorations`),props:{decorations:()=>e}})]}});function Fe(e){let t=(0,T.c)(31),{diff:n}=e,r,i,a,o;if(t[0]!==n.afterDoc||t[1]!==n.beforeDoc||t[2]!==n.changes||t[3]!==n.markChanges){let e=ke(n.afterDoc,n.beforeDoc,n.changes,n.markChanges,Me);o=u,a=!1,r=je,i=Pe.configure({decorations:e}),t[0]=n.afterDoc,t[1]=n.beforeDoc,t[2]=n.changes,t[3]=n.markChanges,t[4]=r,t[5]=i,t[6]=a,t[7]=o}else r=t[4],i=t[5],a=t[6],o=t[7];let s;t[8]!==r||t[9]!==i?(s=[...r,i],t[8]=r,t[9]=i,t[10]=s):s=t[10];let c;t[11]===n.afterDoc?c=t[12]:(c=n.afterDoc.toJSON(),t[11]=n.afterDoc,t[12]=c);let d;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(d={attributes:{class:`pt-4 pb-4`}},t[13]=d):d=t[13];let f;t[14]!==a||t[15]!==s||t[16]!==c?(f={editable:a,extensions:s,content:c,editorProps:d},t[14]=a,t[15]=s,t[16]=c,t[17]=f):f=t[17];let p;t[18]===n?p=t[19]:(p=[n],t[18]=n,t[19]=p);let m=o(f,p),[h]=(0,w.useState)(Ie),g=(0,w.useRef)(null),_,v;t[20]===h?(_=t[21],v=t[22]):(_=()=>{let e=g.current;if(e)return e.appendChild(h),()=>{h.parentNode===e&&e.removeChild(h)}},v=[h],t[20]=h,t[21]=_,t[22]=v),(0,w.useLayoutEffect)(_,v);let y;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,B.jsx)(`div`,{className:`tiptap-editor`,children:(0,B.jsx)(`div`,{ref:g,style:{display:`contents`}})}),t[23]=y):y=t[23];let b;t[24]===m?b=t[25]:(b=(0,B.jsx)(l,{editor:m,className:`tiptap-editor-portal-content`}),t[24]=m,t[25]=b);let x;t[26]!==h||t[27]!==b?(x=(0,ae.createPortal)(b,h),t[26]=h,t[27]=b,t[28]=x):x=t[28];let S;return t[29]===x?S=t[30]:(S=(0,B.jsxs)(`div`,{className:`editor-doc-scroll min-h-0 flex-1`,"data-testid":`rendered-diff-view`,children:[y,x]}),t[29]=x,t[30]=S),S}function Ie(){let e=document.createElement(`div`);return e.style.display=`contents`,e}function Le(e){let t=0,n=!1;for(let r of e.split(`
|
|
3
|
-
`)){let e=r.startsWith(`+`)&&!r.startsWith(`+++`)||r.startsWith(`-`)&&!r.startsWith(`---`);e&&!n&&(t+=1),n=e}return t}function Re(e){let t=Array.from(e.querySelectorAll(`.diff-code-insert, .diff-code-delete`)),n=[],r=null;for(let e of t){let t=e.closest(`tr`);t&&((r===null||t.previousElementSibling!==r)&&n.push(e),r=t)}return n}var V=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends V{};function ze(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function Be(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function H(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function U(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function W(e,t){return H(e,t,``)}function G(e,t){return U(e,t,``)}function Ve(e,t){return t.slice(0,He(e,t))}function He(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function Ue(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function K(e,t){if(t)return J(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function q(e,t){if(t)return J(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function J(e,t){if(!t)return[q(e),K(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=Ue(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var Y=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,We=RegExp(`[${Y}]+|\\s+|[^${Y}]`,`ug`);new class extends V{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=Ue(e,r)}else n=e.match(We)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&Ge(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&Ge(n,i,r,null,t.intlSegmenter),e}};function Ge(e,t,n,r,i){if(t&&n){let[a,o]=J(t.value,i),[s,c]=J(n.value,i);if(e){let r=ze(a,s);e.value=U(e.value,s,r),t.value=W(t.value,r),n.value=W(n.value,r)}if(r){let e=Be(o,c);r.value=H(r.value,c,e),t.value=G(t.value,e),n.value=G(n.value,e)}}else if(n){if(e){let e=q(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=q(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=q(r.value,i),[a,o]=J(t.value,i),s=ze(n,a);t.value=W(t.value,s);let c=Be(W(n,s),o);t.value=G(t.value,c),r.value=H(r.value,n,c),e.value=U(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=q(r.value,i),n=Ve(K(t.value,i),e);t.value=G(t.value,n)}else if(e){let n=Ve(K(e.value,i),q(t.value,i));t.value=W(t.value,n)}}new class extends V{tokenize(e){let t=RegExp(`(\\r?\\n)|[${Y}]+|[^\\S\\n\\r]+|[^${Y}]`,`ug`);return e.match(t)||[]}};var Ke=new class extends V{constructor(){super(...arguments),this.tokenize=X}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
4
|
-
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
5
|
-
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
6
|
-
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
7
|
-
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function qe(e,t,n){return Ke.diff(e,t,n)}function X(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
8
|
-
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function Je(e){return e==`.`||e==`!`||e==`?`}new class extends V{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(Je(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends V{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends V{constructor(){super(...arguments),this.tokenize=X}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(Z(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function Z(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=Z(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=Z(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends V{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var Ye={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Xe(e,t,n,r,i,a,o){let s;s=o?typeof o==`function`?{callback:o}:o:{},s.context===void 0&&(s.context=4);let c=s.context;if(s.newlineIsToken)throw Error(`newlineIsToken may not be used with patch-generation functions, only with diffing functions`);if(s.callback){let{callback:e}=s;qe(n,r,Object.assign(Object.assign({},s),{callback:t=>{e(l(t))}}))}else return l(qe(n,r,s));function l(n){if(!n)return;n.push({value:``,lines:[]});function r(e){return e.map(function(e){return` `+e})}let o=[],s=0,l=0,u=[],d=1,f=1;for(let e=0;e<n.length;e++){let t=n[e],i=t.lines||$e(t.value);if(t.lines=i,t.added||t.removed){if(!s){let t=n[e-1];s=d,l=f,t&&(u=c>0?r(t.lines.slice(-c)):[],s-=u.length,l-=u.length)}for(let e of i)u.push((t.added?`+`:`-`)+e);t.added?f+=i.length:d+=i.length}else{if(s)if(i.length<=c*2&&e<n.length-2)for(let e of r(i))u.push(e);else{let e=Math.min(i.length,c);for(let t of r(i.slice(0,e)))u.push(t);let t={oldStart:s,oldLines:d-s+e,newStart:l,newLines:f-l+e,lines:u};o.push(t),s=0,l=0,u=[]}d+=i.length,f+=i.length}}for(let e of o)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith(`
|
|
9
|
-
`)?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,`\`),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:o}}}function Q(e,t){if(t||=Ye,Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders)throw Error(`Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)`);return e.map(e=>Q(e,t)).join(`
|
|
10
|
-
`)}let n=[];t.includeIndex&&e.oldFileName==e.newFileName&&n.push(`Index: `+e.oldFileName),t.includeUnderline&&n.push(`===================================================================`),t.includeFileHeaders&&(n.push(`--- `+e.oldFileName+(e.oldHeader===void 0?``:` `+e.oldHeader)),n.push(`+++ `+e.newFileName+(e.newHeader===void 0?``:` `+e.newHeader)));for(let t=0;t<e.hunks.length;t++){let r=e.hunks[t];r.oldLines===0&&--r.oldStart,r.newLines===0&&--r.newStart,n.push(`@@ -`+r.oldStart+`,`+r.oldLines+` +`+r.newStart+`,`+r.newLines+` @@`);for(let e of r.lines)n.push(e)}return n.join(`
|
|
11
|
-
`)+`
|
|
12
|
-
`}function Ze(e,t,n,r,i,a,o){if(typeof o==`function`&&(o={callback:o}),o?.callback){let{callback:s}=o;Xe(e,t,n,r,i,a,Object.assign(Object.assign({},o),{callback:e=>{s(e?Q(e,o.headerOptions):void 0)}}))}else{let s=Xe(e,t,n,r,i,a,o);return s?Q(s,o?.headerOptions):void 0}}function Qe(e,t,n,r,i,a){return Ze(e,e,t,n,r,i,a)}function $e(e){let t=e.endsWith(`
|
|
13
|
-
`),n=e.split(`
|
|
14
|
-
`).map(e=>e+`
|
|
15
|
-
`);return t?n.pop():n.push(n.pop().slice(0,-1)),n}function $(e){let t=0,n=0;for(let r of e.split(`
|
|
16
|
-
`))r.startsWith(`+`)&&!r.startsWith(`+++`)?t++:r.startsWith(`-`)&&!r.startsWith(`---`)&&n++;return{additions:t,deletions:n}}function et(e,t){return`${e}\u0000${t}`}function tt(e,t,n){let r=_(e).body,i=_(t).body;return r===i?``:Qe(n,r,i,``,``,{context:Math.max(r.split(`
|
|
17
|
-
`).length,i.split(`
|
|
18
|
-
`).length)})}function nt(e,t,n,r,i){let o=(0,T.c)(10),s=r===void 0?`vs-live`:r,c=i===void 0?null:i,{activeProvider:l}=a(),u;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={status:`idle`,diff:null},o[0]=u):u=o[0];let[d,f]=(0,w.useState)(u),p=(0,w.useRef)(l),m;o[1]===l?m=o[2]:(m=()=>{p.current=l},o[1]=l,o[2]=m),(0,w.useEffect)(m);let h,g;return o[3]!==n||o[4]!==t||o[5]!==s||o[6]!==c||o[7]!==e?(h=()=>{if(!e){f({status:`idle`,diff:null});return}let r=e,i=!1;f({status:`loading`,diff:null});let a=async function(e){let r=et(t,e),i=n.get(r);if(i!==void 0)return i;let a=await fetch(`/api/history/${e}?docName=${encodeURIComponent(t)}`);if(!a.ok)return console.error(`[timeline-diff] history fetch returned non-ok response`,{sha:e,docName:t,status:a.status}),null;let o=(await a.json()).content??``;return n.set(r,o),o};return(async function(){try{let e=await a(r);if(i)return;if(e===null){f({status:`error`,diff:null});return}let n,o;if(s===`vs-parent`){let t=c?await a(c):``;if(i)return;if(t===null){f({status:`error`,diff:null});return}n=t,o=e}else n=e,o=p.current?.document.getText(`source`).toString()??``;let l=_(n).body,u=_(o).body,d=tt(n,o,t);if(i)return;let{additions:m,deletions:h}=$(d);f({status:`ready`,diff:d,additions:m,deletions:h,before:l,after:u})}catch(e){i||(console.error(`[timeline-diff] failed to load entry diff`,{sha:r,docName:t,mode:s,err:e}),f({status:`error`,diff:null}))}})(),()=>{i=!0}},g=[e,t,n,s,c],o[3]=n,o[4]=t,o[5]=s,o[6]=c,o[7]=e,o[8]=h,o[9]=g):(h=o[8],g=o[9]),(0,w.useEffect)(h,g),d}export{Fe as a,De as c,Le as i,nt as n,Ne as o,Re as r,Ee as s,$ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-kMpbALDh.js";import{n as e}from"./chunk-5FCAYU7R-BfGI-oMu.js";export{e as createWardleyServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./repair-skills-BtyTNmva.mjs";export{e as repairSkills};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,o as t,r as n}from"./server-lock-CTGMwZRP.mjs";export{n as markServerLockDraining,e as releaseServerLock,t as updateServerLockPort};
|