@inkeep/open-knowledge 0.59.0-beta.21 → 0.59.0-beta.22
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/{acp-harness-probe-Bgso7Pvd.mjs → acp-harness-probe-De0BjpNq.mjs} +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/constants-CwakiOQ-.mjs +2 -0
- package/dist/index.d.mts +17 -2
- package/dist/index.mjs +1 -1
- package/dist/{init-Lpsf1oe9.mjs → init-BiUoRz5P.mjs} +3 -3
- package/dist/init-EmRcCAaH.mjs +1 -0
- package/dist/{launch-json-removal-CBJ4gPyr.mjs → launch-json-removal-Bm1PZk7L.mjs} +2 -2
- package/dist/{loader-QzOT86WA.mjs → loader-Chf9KmJ8.mjs} +2 -2
- package/dist/loader-DA_Wwhew.mjs +1 -0
- package/dist/preview-4UJLhPY_.mjs +1 -0
- package/dist/{preview-y3I5-ebf.mjs → preview-DQb5GED-.mjs} +2 -2
- package/dist/public/assets/ActivityModeContent-O_Z1-lob.js +1 -0
- package/dist/public/assets/{AgentDiffPane-CKrn8BVy.js → AgentDiffPane-7NKy-PUm.js} +2 -2
- package/dist/public/assets/{AgentThreadClientBinder-OHyIQFAh.js → AgentThreadClientBinder-D-3vI9JD.js} +1 -1
- package/dist/public/assets/{AppMenubar-D1k8f9DO.js → AppMenubar-DV85k8Rd.js} +1 -1
- package/dist/public/assets/BugReportHistory-DcuNnONp.js +1 -0
- package/dist/public/assets/{BugReportHistoryDialog-BjRpH89b.js → BugReportHistoryDialog-DzwGWpID.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-D1r3QM0G.js → CodeMirrorPropInput-ulCIDzu6.js} +3 -3
- package/dist/public/assets/{ConfigSharingInfoTooltip-DjzTrJv7.js → ConfigSharingInfoTooltip-D4qJu0hv.js} +1 -1
- package/dist/public/assets/ConsentDialogBody-DBVeZjzS.js +2 -0
- package/dist/public/assets/{DiffView-B-B3fi5F.js → DiffView-BtCz9GwC.js} +1 -1
- package/dist/public/assets/DocumentContext-CiWCXeEj.js +38 -0
- package/dist/public/assets/EditorModeToggle-D6wuNtP8.js +1 -0
- package/dist/public/assets/EnableSyncConfirmDialog-BGMZ1vqz.js +1 -0
- package/dist/public/assets/{ExcalidrawDocEditor-jKmW6ZpC.js → ExcalidrawDocEditor-CHyDc9Zm.js} +6 -6
- package/dist/public/assets/FeedbackForm-D0DBrBlQ.js +1 -0
- package/dist/public/assets/{GraphPanel-KbHSOrUO.js → GraphPanel-nVZHB4RX.js} +1 -1
- package/dist/public/assets/ImportSkillDialog-z6bOv3Zk.js +1 -0
- package/dist/public/assets/{LintConfigEditor-B9ZjSAvs.js → LintConfigEditor-CXj-c4tE.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-DLCPj5Zk.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-nMKp7-zH.js +1 -0
- package/dist/public/assets/McpConsentDialogBody-kKEE0f3m.js +1 -0
- package/dist/public/assets/{Mermaid-CdO1UccA.js → Mermaid-CEnpxlM0.js} +2 -2
- package/dist/public/assets/{MermaidDocEditor-5rQ6OSt_.js → MermaidDocEditor-17_eK2Hx.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-CweI9pEt.js → PropertyDisplayRow-B_UQWBpu.js} +2 -2
- package/dist/public/assets/{RegisteredAgentIcon-CP1iDML-.js → RegisteredAgentIcon-CwWxAbV6.js} +1 -1
- package/dist/public/assets/ReportBugDialogBody-Dwc9u2M7.js +3 -0
- package/dist/public/assets/SchemaConfigEditor-CZOOBR7K.js +1 -0
- package/dist/public/assets/SessionsHost-D4Jbu5Mt.js +2 -0
- package/dist/public/assets/SettingsDialogBody-D-vNrUYg.js +13 -0
- package/dist/public/assets/ShareBranchSwitchDialog-DoUi4zXd.js +1 -0
- package/dist/public/assets/ShareReceiveDialog-CGaKAWF2.js +1 -0
- package/dist/public/assets/{ShareReceiveMissDialog-Bz512M_x.js → ShareReceiveMissDialog-BqE7IcG1.js} +1 -1
- package/dist/public/assets/{SkillCostValue-k7wEtjay.js → SkillCostValue-uyp1KKEE.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-o5725NzG.js → SkillEditBanner-sO_pR5Xe.js} +1 -1
- package/dist/public/assets/SkillInstallMenu-D4AKQz2Y.js +8 -0
- package/dist/public/assets/{SkillOriginInline-JljLGeIa.js → SkillOriginInline-DTtEcC8X.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-DYN8E0kP.js → SkillToolbarControls-CmZJTmNk.js} +1 -1
- package/dist/public/assets/SlidesToolbarControls-BffN90ny.js +1 -0
- package/dist/public/assets/{SourceEditor-s-NNzmGg.js → SourceEditor-BAeKMo7r.js} +1 -1
- package/dist/public/assets/{TerminalPanel-DrouQ5dE.js → TerminalPanel-DT6FKjN3.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-BbegoebH.js → TerminalWindowApp-whLOrCb6.js} +1 -1
- package/dist/public/assets/{TextDocEditor-Dhh_sT7w.js → TextDocEditor-CzvDjTOH.js} +1 -1
- package/dist/public/assets/ThreadView-B_lV_-mD.js +14 -0
- package/dist/public/assets/TimelineDiffPane-hzopdS8Z.js +2 -0
- package/dist/public/assets/{abnfDiagram-N423BO3Z-BVBLC1gQ.js → abnfDiagram-N423BO3Z-Dk9oGWw3.js} +1 -1
- package/dist/public/assets/{agent-diff-store-CDbH2OKK.js → agent-diff-store-CLUb3IsM.js} +1 -1
- package/dist/public/assets/{ar-SA-G6X2FPQ2-DyHN48ct.js → ar-SA-G6X2FPQ2-CgsV0PBd.js} +1 -1
- package/dist/public/assets/{arc-BTS87qIk.js → arc-D39SI0U-.js} +1 -1
- package/dist/public/assets/architecture-TIHT7OUA-CLgYPzvy.js +1 -0
- package/dist/public/assets/{architectureDiagram-T3A2C74G-61vRYNAe.js → architectureDiagram-T3A2C74G-DKgJrImh.js} +1 -1
- package/dist/public/assets/arrow-up-right-BD5rQrDA.js +1 -0
- package/dist/public/assets/auth-state-cache-B_2v0wkN.js +11 -0
- package/dist/public/assets/{az-AZ-76LH7QW2-DnitJ10x.js → az-AZ-76LH7QW2-DvofhVjM.js} +1 -1
- package/dist/public/assets/{bg-BG-XCXSNQG7-D8ztF3Vf.js → bg-BG-XCXSNQG7-BM72o4Mp.js} +1 -1
- package/dist/public/assets/{blockDiagram-VBNYF7ZC-CixK5rlm.js → blockDiagram-VBNYF7ZC-ClpueJQg.js} +1 -1
- package/dist/public/assets/{bn-BD-2XOGV67Q-CIbNQjuB.js → bn-BD-2XOGV67Q-TkVJeZtM.js} +1 -1
- package/dist/public/assets/{braces-CJEjDc1f.js → braces-CDKuh9KW.js} +1 -1
- package/dist/public/assets/bug-report-send-manager-CNoOBELA.js +1 -0
- package/dist/public/assets/{c4Diagram-5PPSVZJV-DILzjHho.js → c4Diagram-5PPSVZJV-BVxONeB6.js} +1 -1
- package/dist/public/assets/{ca-ES-6MX7JW3Y-FXkg14vw.js → ca-ES-6MX7JW3Y-CU7Boj6X.js} +1 -1
- package/dist/public/assets/{calendar-By9WFv7f.js → calendar-hMbNID9t.js} +1 -1
- package/dist/public/assets/{case-sensitive-CE1B0vR4.js → case-sensitive-BRpV9t7A.js} +1 -1
- package/dist/public/assets/channel-B01R8kYH.js +1 -0
- package/dist/public/assets/check-DDzb-wrU.js +1 -0
- package/dist/public/assets/{checkbox-hfBCQ901.js → checkbox-Dx5mC0M_.js} +1 -1
- package/dist/public/assets/{chevron-down-DabHDQTe.js → chevron-down-DT2zmBir.js} +1 -1
- package/dist/public/assets/chevron-left-7MFpt77_.js +1 -0
- package/dist/public/assets/chevron-right-D8IV-Ph_.js +1 -0
- package/dist/public/assets/{chevron-up-BNZIobnQ.js → chevron-up-99ifu-5U.js} +1 -1
- package/dist/public/assets/{chunk-2GRJ4B5K-DkEfrxNK.js → chunk-2GRJ4B5K-CidLo0Hr.js} +1 -1
- package/dist/public/assets/chunk-2Q5K7J3B-DRkenyUp.js +1 -0
- package/dist/public/assets/chunk-3NCLNEKW-ChQlGZ1X.js +1 -0
- package/dist/public/assets/{chunk-4I5QYGJK-D2VHB4_5.js → chunk-4I5QYGJK-S9VbPW4l.js} +1 -1
- package/dist/public/assets/{chunk-5FCAYU7R-BqFS84lK.js → chunk-5FCAYU7R-B36-fODQ.js} +1 -1
- package/dist/public/assets/{chunk-5HE753X5-FuqeM3Lk.js → chunk-5HE753X5-Ch0hEY75.js} +1 -1
- package/dist/public/assets/{chunk-5JV3BV7I-DtF3727F.js → chunk-5JV3BV7I-D4v3Kk5b.js} +1 -1
- package/dist/public/assets/{chunk-5RXB4S5H-B7YwCkBe.js → chunk-5RXB4S5H-C1SrIQY-.js} +1 -1
- package/dist/public/assets/{chunk-5TONJI2A-CrYz1k-D.js → chunk-5TONJI2A-DUzc03lj.js} +1 -1
- package/dist/public/assets/{chunk-5VM5RSS4-B9-r6K5d.js → chunk-5VM5RSS4-QFBqnM1Q.js} +1 -1
- package/dist/public/assets/{chunk-6Q2QTUOP-BP72LGnY.js → chunk-6Q2QTUOP-DxoMUHB9.js} +1 -1
- package/dist/public/assets/{chunk-7BUUIJ7U-C4LcvRKI.js → chunk-7BUUIJ7U-DEzeCy0q.js} +1 -1
- package/dist/public/assets/{chunk-7Z6QIM7H-B56l8F1n.js → chunk-7Z6QIM7H-pdbwh0dq.js} +1 -1
- package/dist/public/assets/{chunk-BIQX33UG-Cyl5VCln.js → chunk-BIQX33UG-DWaDExpJ.js} +1 -1
- package/dist/public/assets/{chunk-BO2N2NFS-CHdHgk-M.js → chunk-BO2N2NFS-4wfSMo91.js} +4 -4
- package/dist/public/assets/{chunk-CQNSW5MT-B89oo6uQ.js → chunk-CQNSW5MT-CGGlsr4Y.js} +1 -1
- package/dist/public/assets/{chunk-CYSBUYHQ-BEZlgSou.js → chunk-CYSBUYHQ-CkvotwAd.js} +1 -1
- package/dist/public/assets/{chunk-EIO257PC-DqCiBPM0.js → chunk-EIO257PC-DYhl7r8n.js} +1 -1
- package/dist/public/assets/{chunk-EMLP6XTP-TAV8Yk8h.js → chunk-EMLP6XTP-B0pYoCFp.js} +1 -1
- package/dist/public/assets/{chunk-GF5L2VYU-BFfyidBh.js → chunk-GF5L2VYU-CrqQEXAW.js} +1 -1
- package/dist/public/assets/{chunk-I66GZJ75-BQ6MN9Gs.js → chunk-I66GZJ75-D6-_zkPC.js} +2 -2
- package/dist/public/assets/{chunk-J7OUQ5F2--OLmbKyE.js → chunk-J7OUQ5F2-MO9xSsIS.js} +2 -2
- package/dist/public/assets/{chunk-JG7HCLWE-Ccv3ZGae.js → chunk-JG7HCLWE-EvAHkyUv.js} +1 -1
- package/dist/public/assets/{chunk-JQJVKLGR-B3k5EI6Z.js → chunk-JQJVKLGR-DupoNOdx.js} +1 -1
- package/dist/public/assets/{chunk-JWPE2WC7-Dn44e_g7.js → chunk-JWPE2WC7-0RwezZvS.js} +1 -1
- package/dist/public/assets/{chunk-K2UTITRG-CkBPVYIW.js → chunk-K2UTITRG-BaUM1QsN.js} +4 -4
- package/dist/public/assets/{chunk-KBJHAD2P-DNPUMRvG.js → chunk-KBJHAD2P-DUYzIL7w.js} +1 -1
- package/dist/public/assets/{chunk-MOZMSUNE-5PZcKuoK.js → chunk-MOZMSUNE-DlFFwyDs.js} +1 -1
- package/dist/public/assets/{chunk-NSK5VX7P-0SuNTpf5.js → chunk-NSK5VX7P-DD6xdlP8.js} +1 -1
- package/dist/public/assets/{chunk-OSBZ3O6U-D9UBjnO6.js → chunk-OSBZ3O6U-zP6CMGyh.js} +1 -1
- package/dist/public/assets/{chunk-QBLGF6JB-Cv0vVCzu.js → chunk-QBLGF6JB-J5f7Bhtg.js} +1 -1
- package/dist/public/assets/{chunk-QR6OTTB3-BKyQaVhZ.js → chunk-QR6OTTB3-Dyr8-gFN.js} +1 -1
- package/dist/public/assets/{chunk-R7FJI6CG-DpvHn4ee.js → chunk-R7FJI6CG-DZ7ojHaL.js} +1 -1
- package/dist/public/assets/{chunk-RYQCIY6F-DbFDXExl.js → chunk-RYQCIY6F-BK5oTbVo.js} +1 -1
- package/dist/public/assets/{chunk-U6XO7XAA-Cek9_Khm.js → chunk-U6XO7XAA-SqGVXPfH.js} +1 -1
- package/dist/public/assets/{chunk-UBXNYLIW-DI7nR2x5.js → chunk-UBXNYLIW-DmAtYm8M.js} +1 -1
- package/dist/public/assets/{chunk-W5SLKNZC-BTOja7zZ.js → chunk-W5SLKNZC-g9Kgf99H.js} +1 -1
- package/dist/public/assets/{chunk-WRU74C26-LsM5495h.js → chunk-WRU74C26-DBc2dQgc.js} +1 -1
- package/dist/public/assets/chunk-XXDRQBXY-C84iuxdy.js +1 -0
- package/dist/public/assets/{chunk-YOTPTUD7-652A10gX.js → chunk-YOTPTUD7-YgyN8AJZ.js} +1 -1
- package/dist/public/assets/{chunk-ZIRB5QZD-MDehklKw.js → chunk-ZIRB5QZD-CWeR7-sk.js} +1 -1
- package/dist/public/assets/circle-alert-IfN5DpIL.js +1 -0
- package/dist/public/assets/classDiagram-JCYQIIEL-BacAyde9.js +1 -0
- package/dist/public/assets/classDiagram-v2-OCEON4UE-DIzVaaye.js +1 -0
- package/dist/public/assets/{client-version-cIVip4QF.js → client-version-BXgauWSh.js} +1 -1
- package/dist/public/assets/{cm-theme-Bi-g5j8J.js → cm-theme-DeTDg9-t.js} +1 -1
- package/dist/public/assets/{code-highlighter-impl-u_GiXGcZ.js → code-highlighter-impl-ZzJcvADg.js} +1 -1
- package/dist/public/assets/comment-chips-o0VFeit2.js +5 -0
- package/dist/public/assets/{config-provider-BdkFDSOU.js → config-provider-Bnb-Ehxr.js} +3 -3
- package/dist/public/assets/context-api-BmYFX6VJ.js +1 -0
- package/dist/public/assets/{cose-bilkent-JH36ORCC-0DPzkGFy.js → cose-bilkent-JH36ORCC-BC74imY3.js} +1 -1
- package/dist/public/assets/{cs-CZ-2BRQDIVT-4hog6eEU.js → cs-CZ-2BRQDIVT-CgY1RCRr.js} +1 -1
- package/dist/public/assets/cynefin-VYW2F7L2-CpSZ5nBo.js +1 -0
- package/dist/public/assets/{cynefinDiagram-MW4NZA55-Dk8kgusm.js → cynefinDiagram-MW4NZA55-C_SaLZzy.js} +1 -1
- package/dist/public/assets/{da-DK-5WZEPLOC-Cw8K5DaJ.js → da-DK-5WZEPLOC-BCdowAKr.js} +1 -1
- package/dist/public/assets/{dagre-DRhKgI1C.js → dagre-DeguKspN.js} +1 -1
- package/dist/public/assets/{dagre-VZM6K2ZE-mJYw-Dhq.js → dagre-VZM6K2ZE-B20JE6s0.js} +1 -1
- package/dist/public/assets/{de-DE-XR44H4JA-DVuMP924.js → de-DE-XR44H4JA-CRBsTNAQ.js} +1 -1
- package/dist/public/assets/{diagram-7IWD3JNH-Dhx36rE5.js → diagram-7IWD3JNH-CSjqTYEP.js} +1 -1
- package/dist/public/assets/{diagram-B4RE2ZJO-uXKjNejx.js → diagram-B4RE2ZJO-C9CYifrg.js} +1 -1
- package/dist/public/assets/{diagram-LBJQPF4R-DQtMWoaJ.js → diagram-LBJQPF4R-Cpwelj7n.js} +1 -1
- package/dist/public/assets/{diagram-Q27KOJAE-DrZQ7D0U.js → diagram-Q27KOJAE-B6oM71z_.js} +1 -1
- package/dist/public/assets/{diagram-UB23O5K3-BaWAfdn0.js → diagram-UB23O5K3--gDNHkkg.js} +1 -1
- package/dist/public/assets/{dialog-HdfR4WGm.js → dialog-CeTXzamA.js} +1 -1
- package/dist/public/assets/{dist-BTADLBDJ.js → dist-3C2oaS9P.js} +1 -1
- package/dist/public/assets/{dist-trrvycoA.js → dist-6TLg1TeP.js} +4 -4
- package/dist/public/assets/{dist-CB_NMgy4.js → dist-ANIS5xyl.js} +1 -1
- package/dist/public/assets/{dist-BLe6Laue.js → dist-BA4BRCam.js} +1 -1
- package/dist/public/assets/{dist-CuMGVsog.js → dist-BBLFjTOP.js} +1 -1
- package/dist/public/assets/{dist-TdeurvvU.js → dist-BZNxhHF6.js} +1 -1
- package/dist/public/assets/{dist-DpwTwWzy.js → dist-Bx49HAxr.js} +1 -1
- package/dist/public/assets/{dist-CyQvb_hJ.js → dist-CGZSxi-5.js} +1 -1
- package/dist/public/assets/{dist-BOvI9R-K.js → dist-CgDI0wxh.js} +1 -1
- package/dist/public/assets/{dist-THE2PCU5.js → dist-DRpkJtRn.js} +1 -1
- package/dist/public/assets/{dist-ZfIywMZM.js → dist-DYJrr2_6.js} +1 -1
- package/dist/public/assets/{dist-BJNERzM02.js → dist-DniWkCxL.js} +1 -1
- package/dist/public/assets/{dist-D8LuoEeH.js → dist-DzPfF5iE.js} +1 -1
- package/dist/public/assets/{dist-8oXszleg.js → dist-Yr-17v3m.js} +1 -1
- package/dist/public/assets/{dist-RP9GkCTw.js → dist-ox6dRVri.js} +1 -1
- package/dist/public/assets/{dist-DMk7rHfk.js → dist-wjuo1SxV.js} +1 -1
- package/dist/public/assets/{doc-paths-DFa3HIzr.js → doc-paths-D8uqiN26.js} +1 -1
- package/dist/public/assets/{documents-events-DqgIF3r-.js → documents-events-o8CgX7P8.js} +1 -1
- package/dist/public/assets/{download-Dn5ulvxm.js → download-lgefsXwp.js} +1 -1
- package/dist/public/assets/{dropdown-menu-CLgDYkh1.js → dropdown-menu-0vN238-1.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-BXEA7PRR-DVxX6S5-.js → ebnfDiagram-BXEA7PRR-zXaB3q6g.js} +1 -1
- package/dist/public/assets/{el-GR-BZB4AONW-C9nJXCFS.js → el-GR-BZB4AONW-D1lng2Gq.js} +1 -1
- package/dist/public/assets/{en-B4ZKOASM-C8r_kkvD.js → en-B4ZKOASM-mKLv9fW_.js} +1 -1
- package/dist/public/assets/{erDiagram-JOGREHBK-CIyAdgD3.js → erDiagram-JOGREHBK-DnpgLZfN.js} +1 -1
- package/dist/public/assets/{es-ES-U4NZUMDT-B-af9pXw.js → es-ES-U4NZUMDT-DUZccDbq.js} +1 -1
- package/dist/public/assets/{eu-ES-A7QVB2H4-CoDA9Sdg.js → eu-ES-A7QVB2H4-DZwnzYJ9.js} +1 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-B_c1FYd4.js +1 -0
- package/dist/public/assets/{eye-DmhHKPNd.js → eye-DBRxjIZA.js} +1 -1
- package/dist/public/assets/{fa-IR-HGAKTJCU-BOsX1WF-.js → fa-IR-HGAKTJCU-LwgjMs5b.js} +1 -1
- package/dist/public/assets/{fi-FI-Z5N7JZ37-D2ez2ZlS.js → fi-FI-Z5N7JZ37-B6ArnuTu.js} +1 -1
- package/dist/public/assets/{field-BZySvRxx.js → field-Buici2mf.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-BmAvLYVz.js → file-tree-adapter-wXB7jR2x.js} +1 -1
- package/dist/public/assets/{file-tree-utils-DY87bjO4.js → file-tree-utils-DmGc8i_N.js} +1 -1
- package/dist/public/assets/flowDiagram-UKHOOZJN-BdIY52XO.js +1 -0
- package/dist/public/assets/{folder-config-api-C28YJVrp.js → folder-config-api-BTwssK85.js} +1 -1
- package/dist/public/assets/{folder-open-BapQa7r-.js → folder-open-DPdEF4d2.js} +1 -1
- package/dist/public/assets/{fr-FR-RHASNOE6-BY5EGoOF.js → fr-FR-RHASNOE6-x0G8Mqw4.js} +1 -1
- package/dist/public/assets/{ganttDiagram-PKOTCBZU-Ar2CyZzJ.js → ganttDiagram-PKOTCBZU-Bl6MYDG9.js} +1 -1
- package/dist/public/assets/{git-branch-CCnsAeFH.js → git-branch-C3seqxdn.js} +1 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-u5Qh8xcX.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-DS77QQ5N-DeU1zoR6.js → gitGraphDiagram-DS77QQ5N-BK3pibNA.js} +1 -1
- package/dist/public/assets/{gl-ES-HMX3MZ6V-qXnjJIHQ.js → gl-ES-HMX3MZ6V-BQJoaYHG.js} +1 -1
- package/dist/public/assets/{graphlib-Bca5_bGX.js → graphlib-DWGvxq1Q.js} +1 -1
- package/dist/public/assets/{hash-Du9SGD0J.js → hash-CdOIpBpY.js} +1 -1
- package/dist/public/assets/{he-IL-6SHJWFNN-CFsN-USg.js → he-IL-6SHJWFNN-4QJsP-D3.js} +1 -1
- package/dist/public/assets/{hi-IN-IWLTKZ5I-CqKVyGj6.js → hi-IN-IWLTKZ5I-BBrvgafo.js} +1 -1
- package/dist/public/assets/{highlighted-body-OFNGDK62-BJvKOAMn.js → highlighted-body-OFNGDK62-DccqwW9m.js} +1 -1
- package/dist/public/assets/{history-DnsnwPsA.js → history-CPr-xzs6.js} +1 -1
- package/dist/public/assets/{hu-HU-A5ZG7DT2-DSPzwV5b.js → hu-HU-A5ZG7DT2-C3mBPv5e.js} +1 -1
- package/dist/public/assets/i18n-DNq88PoH.js +1 -0
- package/dist/public/assets/{id-ID-SAP4L64H-CgzYZSBc.js → id-ID-SAP4L64H-BrR4S17r.js} +1 -1
- package/dist/public/assets/image-GAAHSSAO-CSxSvDvj.js +1 -0
- package/dist/public/assets/index--PK3urB7.js +2098 -0
- package/dist/public/assets/info-DKCQHKI2-Bq8HVADQ.js +1 -0
- package/dist/public/assets/{info-DmvKnBgp.js → info-p5v6os9_.js} +1 -1
- package/dist/public/assets/{infoDiagram-6WML65LV-Bt4eZa9_.js → infoDiagram-6WML65LV-Ds6VD8uw.js} +1 -1
- package/dist/public/assets/{input-group-4bFGj8B8.js → input-group-CAZlcV_L.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-WSZJBQD7-DeI0HD90.js → ishikawaDiagram-WSZJBQD7-DyIbssep.js} +1 -1
- package/dist/public/assets/{it-IT-JPQ66NNP-Cbzf4vFl.js → it-IT-JPQ66NNP-BsSUmKOS.js} +1 -1
- package/dist/public/assets/{ja-JP-DBVTYXUO-BeJZQpCg.js → ja-JP-DBVTYXUO-CUXroOM1.js} +1 -1
- package/dist/public/assets/{journeyDiagram-NVQOT4AX-X3jjfz4m.js → journeyDiagram-NVQOT4AX-SCzsCdMT.js} +1 -1
- package/dist/public/assets/{kaa-6HZHGXH3-CFheClmE.js → kaa-6HZHGXH3-iWRokgDO.js} +1 -1
- package/dist/public/assets/{kab-KAB-ZGHBKWFO-BFsRcn49.js → kab-KAB-ZGHBKWFO-C9e9l9m0.js} +1 -1
- package/dist/public/assets/{kanban-definition-27J2QSJJ-DR_e32jq.js → kanban-definition-27J2QSJJ-Bn78S7kp.js} +1 -1
- package/dist/public/assets/{kk-KZ-P5N5QNE5-BPI3eUa1.js → kk-KZ-P5N5QNE5-CGRHbpuS.js} +1 -1
- package/dist/public/assets/{km-KH-HSX4SM5Z-C50966Zh.js → km-KH-HSX4SM5Z-D88BDPde.js} +1 -1
- package/dist/public/assets/{ko-KR-MTYHY66A-CRYJDKDg.js → ko-KR-MTYHY66A-B1OkXGhV.js} +1 -1
- package/dist/public/assets/{ku-TR-6OUDTVRD-BSo-Dd_x.js → ku-TR-6OUDTVRD-Bz3SVA6Q.js} +1 -1
- package/dist/public/assets/{lib-C0Wr4O8I.js → lib-B3XVxNhx.js} +1 -1
- package/dist/public/assets/{lib-B5SpBbcO.js → lib-CQqy20Z3.js} +1 -1
- package/dist/public/assets/{line-BNOcriXN.js → line-hFmxDG7y.js} +1 -1
- package/dist/public/assets/{linear-xbwWMH62.js → linear-D2-w5WSd.js} +1 -1
- package/dist/public/assets/{lint-config-client-wS6aC63Y.js → lint-config-client-LF7ZCPlw.js} +1 -1
- package/dist/public/assets/{lint-plugin-meta-24C-xIZB.js → lint-plugin-meta-Cntj53Nu.js} +1 -1
- package/dist/public/assets/{list-plus-CT84Vd_h.js → list-plus-CC7xhuOx.js} +1 -1
- package/dist/public/assets/{local-menu-action-bus-CIYp0C2E.js → local-menu-action-bus-D6Zc1IfA.js} +1 -1
- package/dist/public/assets/{lt-LT-XHIRWOB4-jli1XLTx.js → lt-LT-XHIRWOB4-CGC133Aw.js} +1 -1
- package/dist/public/assets/{lv-LV-5QDEKY6T-BR9SPOPR.js → lv-LV-5QDEKY6T-DGliP5OC.js} +1 -1
- package/dist/public/assets/{map-C3qCYjwS.js → map-DTEUSM1c.js} +1 -1
- package/dist/public/assets/markdownlint-rule-browser-BtlfLqjL.js +1 -0
- package/dist/public/assets/{mcp-consent-store-det7BJOm.js → mcp-consent-store-DOQ7IpQ6.js} +1 -1
- package/dist/public/assets/mermaid-GHXKKRXX-_xhY9Z-e.js +1 -0
- package/dist/public/assets/{mermaid-parser.core-BBPl0FMj.js → mermaid-parser.core-B7PgetDK.js} +2 -2
- package/dist/public/assets/mermaid.core-BqrRjE60.js +1 -0
- package/dist/public/assets/{mermaid.core-zZlXpH0Y.js → mermaid.core-V8Rc_0xl.js} +3 -3
- package/dist/public/assets/messages-BF6_gLcs.js +1 -0
- package/dist/public/assets/messages-Bq4lgqgG.js +1 -0
- package/dist/public/assets/messages-C-3daCCm.js +1 -0
- package/dist/public/assets/messages-C4rSJQaj.js +1 -0
- package/dist/public/assets/messages-C8rSZ5Bz.js +1 -0
- package/dist/public/assets/messages-CwoGSgBm.js +1 -0
- package/dist/public/assets/messages-DWw_f10t.js +1 -0
- package/dist/public/assets/messages-DbUbliUR.js +1 -0
- package/dist/public/assets/messages-Dk0Ycy4z.js +1 -0
- package/dist/public/assets/messages-Dm9R5XMQ.js +1 -0
- package/dist/public/assets/messages-HMOGsZ1X.js +1 -0
- package/dist/public/assets/messages-Ky6LmUEB.js +1 -0
- package/dist/public/assets/{mindmap-definition-FAOFIHXS-DqXummNF.js → mindmap-definition-FAOFIHXS-DM1Gv4cP.js} +1 -1
- package/dist/public/assets/minus-BJRwBmA7.js +1 -0
- package/dist/public/assets/{miss-dialog-store-CveL5d4F.js → miss-dialog-store-B53W0bbe.js} +1 -1
- package/dist/public/assets/{mr-IN-CRQNXWMA-B24Wsks1.js → mr-IN-CRQNXWMA-B8-S5EZo.js} +1 -1
- package/dist/public/assets/{my-MM-5M5IBNSE-Bj30kqKI.js → my-MM-5M5IBNSE-BNVR5gs3.js} +1 -1
- package/dist/public/assets/{navigation-targets-CN8Zdcbd.js → navigation-targets-DN66ReXC.js} +1 -1
- package/dist/public/assets/{nb-NO-T6EIAALU-DatPxDXD.js → nb-NO-T6EIAALU-DnUMliqv.js} +1 -1
- package/dist/public/assets/{nl-NL-IS3SIHDZ-B2fUSC8t.js → nl-NL-IS3SIHDZ-P27Zk93h.js} +1 -1
- package/dist/public/assets/{nn-NO-6E72VCQL-DDxnlhvK.js → nn-NO-6E72VCQL-DoRa_TT6.js} +1 -1
- package/dist/public/assets/{now-Dc8JGmJD.js → now-B-qS4rtd.js} +1 -1
- package/dist/public/assets/{oc-FR-POXYY2M6-D7fzX_sU.js → oc-FR-POXYY2M6-Dj4zJ-lQ.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-AY2YJsyB.js → open-managed-artifact-tab-ZOrAIX68.js} +1 -1
- package/dist/public/assets/{ordinal-Ty7u85Xr.js → ordinal-CmtHZkmO.js} +1 -1
- package/dist/public/assets/{pa-IN-N4M65BXN-SaZb20kb.js → pa-IN-N4M65BXN-vFyxUinQ.js} +1 -1
- package/dist/public/assets/packet-7NZHBO7P-xIJZYNyR.js +1 -0
- package/dist/public/assets/{panel-right-open-DjTdbkpr.js → panel-right-open-6pbxqqMD.js} +1 -1
- package/dist/public/assets/{paperclip-qucBdEp9.js → paperclip-C6Bt4Kir.js} +1 -1
- package/dist/public/assets/{pegDiagram-VL7TDLO6-ale9bN-M.js → pegDiagram-VL7TDLO6-KgWxouRz.js} +1 -1
- package/dist/public/assets/pending-receive-nav-store-CdSfYpQZ.js +1 -0
- package/dist/public/assets/percentages-BXMCSKIN-C7VlWkh1.js +1 -0
- package/dist/public/assets/pie-RZYD4A2V-BEnjcGcg.js +1 -0
- package/dist/public/assets/{pieDiagram-7S7Q4E2Y-CTI9imOs.js → pieDiagram-7S7Q4E2Y-COyYdV5_.js} +1 -1
- package/dist/public/assets/{pl-PL-T2D74RX3-h6Z3lTne.js → pl-PL-T2D74RX3-DBw4VHcH.js} +1 -1
- package/dist/public/assets/{platform-labels-B2q9roOE.js → platform-labels-CwDqSSkR.js} +1 -1
- package/dist/public/assets/progress-BtSkMs2A.js +9 -0
- package/dist/public/assets/{project-paths-DWofrp-d.js → project-paths-DaDxDvf8.js} +1 -1
- package/dist/public/assets/{prop-types-D5_p8QLF.js → prop-types-C00udJro.js} +1 -1
- package/dist/public/assets/propagation-api-CBuLbXCx.js +1 -0
- package/dist/public/assets/{pt-BR-5N22H2LF-DlxyjlAr.js → pt-BR-5N22H2LF-DUgaNyV8.js} +1 -1
- package/dist/public/assets/{pt-PT-UZXXM6DQ-DNXmHfC1.js → pt-PT-UZXXM6DQ-BcC_8WEQ.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-CIZ2JOQS-Cx_28pIm.js → quadrantDiagram-CIZ2JOQS-sWMMK_a0.js} +1 -1
- package/dist/public/assets/radar-I7S5WNFK-B6eALnq1.js +1 -0
- package/dist/public/assets/railroad-3IZDKUUU-B7DpEO6L.js +1 -0
- package/dist/public/assets/railroad-abnf-AHOZXSZD-1IiRLWMW.js +1 -0
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-CGqgEsrD.js +1 -0
- package/dist/public/assets/railroad-peg-LSFZ7HO6-DyEF1s6w.js +1 -0
- package/dist/public/assets/{railroadDiagram-AXF67PYL-Aej1uWAC.js → railroadDiagram-AXF67PYL-8eYN2ySc.js} +1 -1
- package/dist/public/assets/{receive-store-Bl8MkIGq.js → receive-store-BtPwzr2N.js} +1 -1
- package/dist/public/assets/{refresh-cw-CcQnr_fh.js → refresh-cw-CMZXURW4.js} +1 -1
- package/dist/public/assets/{requirementDiagram-LRYGKXZP-BoxyPiBX.js → requirementDiagram-LRYGKXZP-BDxCKL8b.js} +1 -1
- package/dist/public/assets/{ro-RO-JPDTUUEW-CXHjWFsO.js → ro-RO-JPDTUUEW-CBVLLmHv.js} +1 -1
- package/dist/public/assets/{ru-RU-B4JR7IUQ-D06hnNmU.js → ru-RU-B4JR7IUQ-sMvPkU3k.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-W5VNT64P-DEsmXkXB.js → sankeyDiagram-W5VNT64P-BUjbs1lV.js} +1 -1
- package/dist/public/assets/{select-CguJodwX.js → select-CveK84kZ.js} +1 -1
- package/dist/public/assets/{selection-context-Dt2TVY0O.js → selection-context-Zy34sE2K.js} +1 -1
- package/dist/public/assets/{separator-BM37WC0d.js → separator-DNgI6bYp.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-SI44F4Z6-DL8B7rYg.js → sequenceDiagram-SI44F4Z6-0opmVFUi.js} +1 -1
- package/dist/public/assets/{si-LK-N5RQ5JYF-YE-rWrHA.js → si-LK-N5RQ5JYF-C29T8bSR.js} +1 -1
- package/dist/public/assets/{sizeCapture-X5ZJPWSS-CDFPhPD1.js → sizeCapture-X5ZJPWSS-BVmrHTIm.js} +1 -1
- package/dist/public/assets/{sk-SK-C5VTKIMK-C_KOcl7t.js → sk-SK-C5VTKIMK-Bn1zgGpF.js} +1 -1
- package/dist/public/assets/skill-actions-Df6MXWNB.js +1 -0
- package/dist/public/assets/{skill-scope-CdhbojXK.js → skill-scope-DTiqofl0.js} +1 -1
- package/dist/public/assets/{skills-api-n0_XwDZz.js → skills-api-4VD4ybQZ.js} +1 -1
- package/dist/public/assets/{sl-SI-NN7IZMDC-Byp-FmeV.js → sl-SI-NN7IZMDC-BkvJ805l.js} +1 -1
- package/dist/public/assets/{spinner-BxJv3FRl.js → spinner-BrHbanNf.js} +1 -1
- package/dist/public/assets/{square-pen-NShYDQ74.js → square-pen-zbdpw5xR.js} +1 -1
- package/dist/public/assets/{src-Cdq2Q5Qg.js → src-Dpf2S9Wh.js} +1 -1
- package/dist/public/assets/{src-d-yOQJ3h.js → src-DvVNdeIh.js} +1 -1
- package/dist/public/assets/{stateDiagram-OKZ733FA-Ddk5map8.js → stateDiagram-OKZ733FA-DqyX4WEZ.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-C7JTmilF.js +1 -0
- package/dist/public/assets/status-lNxo3Gq7.js +1 -0
- package/dist/public/assets/subset-shared.chunk-Rs_eLssp.js +1 -0
- package/dist/public/assets/{subset-worker.chunk-QRhlZYcU.js → subset-worker.chunk-DfBB2S46.js} +1 -1
- package/dist/public/assets/{sv-SE-XGPEYMSR-C1i36jhp.js → sv-SE-XGPEYMSR-DnkdOJQl.js} +1 -1
- package/dist/public/assets/{swimlanes-SLNWSIFB-DGbYRUZy.js → swimlanes-SLNWSIFB-BCW0kXij.js} +2 -2
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-C0jEagnp.js +8 -0
- package/dist/public/assets/{ta-IN-2NMHFXQM-BgTKuoDU.js → ta-IN-2NMHFXQM-D1lE7yWK.js} +1 -1
- package/dist/public/assets/{tag-pill-input-L8W9wKrN.js → tag-pill-input-B1Bgexi3.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-D2HenHiR.js → target-navigation-intent-C6hyjInX.js} +1 -1
- package/dist/public/assets/telemetry-impl-Ctmrwnzh.js +2 -0
- package/dist/public/assets/telemetry-startup-DJdYFZSu.js +1 -0
- package/dist/public/assets/terminal-4WK7jXvy.js +1 -0
- package/dist/public/assets/{terminal-cli-display-DgjEIipF.js → terminal-cli-display-Dxn6aoTP.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-Bf_Q-CNU.js → terminal-launch-events-CTajBryd.js} +1 -1
- package/dist/public/assets/{terminal-telemetry-xmslQInT.js → terminal-telemetry-YvThXN16.js} +1 -1
- package/dist/public/assets/text-viewer-languages-DLLc_fTL.js +2 -0
- package/dist/public/assets/{th-TH-HPSO5L25-CBPWq2Hm.js → th-TH-HPSO5L25-Cen-p4bN.js} +1 -1
- package/dist/public/assets/thread-client-CJMwB-tm.js +1 -0
- package/dist/public/assets/{timeline-definition-Z64GVDOM-BYcoKuOX.js → timeline-definition-Z64GVDOM-Tbe__-1X.js} +1 -1
- package/dist/public/assets/{tr-TR-DEFEU3FU-Bqf8MT9l.js → tr-TR-DEFEU3FU-DoEjSJ6u.js} +1 -1
- package/dist/public/assets/{trace-api-18gcBe0u.js → trace-api-BpOrSOCd.js} +1 -1
- package/dist/public/assets/{trash-2-Co21mefL.js → trash-2-DfA0xAM7.js} +1 -1
- package/dist/public/assets/treeView-QDETBFTQ-BjZ5KGCR.js +1 -0
- package/dist/public/assets/treemap-6X3UGDF4-yfCI1JpZ.js +1 -0
- package/dist/public/assets/{triangle-alert-CRXAJBn4.js → triangle-alert-LClCSvEK.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-D_pGbyOS.js → typing-burst-detector-VzaMMTRq.js} +2 -2
- package/dist/public/assets/{uk-UA-QMV73CPH-B8xMayiT.js → uk-UA-QMV73CPH-BTZ26P9L.js} +1 -1
- package/dist/public/assets/{undo-2-DAbhEXY-.js → undo-2-D0RXWwCv.js} +1 -1
- package/dist/public/assets/{uninstall-CeoSxUOp.js → uninstall-x7KD4Bhj.js} +1 -1
- package/dist/public/assets/{use-activity-panel-BiDYllAC.js → use-activity-panel-DXwGyZv2.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-IkrRwps0.js → use-apply-config-color-theme-DCo46JLI.js} +1 -1
- package/dist/public/assets/{use-collab-url-Bk9RkcrZ.js → use-collab-url-BST2PBuG.js} +1 -1
- package/dist/public/assets/{use-live-xterm-theme-6J-r8c8K.js → use-live-xterm-theme-kE5rOzVg.js} +1 -1
- package/dist/public/assets/use-open-skill-D6ihX3AM.js +1 -0
- package/dist/public/assets/{use-popular-skills-CTgSlKck.js → use-popular-skills-spHCczcW.js} +1 -1
- package/dist/public/assets/{use-settings-route-BD8IIMFP.js → use-settings-route-BHCkdR7M.js} +1 -1
- package/dist/public/assets/use-skill-origin-DJT_cDMM.js +1 -0
- package/dist/public/assets/{use-terminal-enabled-D3vMDlYh.js → use-terminal-enabled-7I_NAcGD.js} +1 -1
- package/dist/public/assets/use-timeline-entry-diff-C1up4qkf.js +6 -0
- package/dist/public/assets/{use-workspace-BFQB2TMt.js → use-workspace-C5xglKv_.js} +1 -1
- package/dist/public/assets/{vennDiagram-T6HMQDX7-CogXtPiJ.js → vennDiagram-T6HMQDX7-DbC9Pn-T.js} +1 -1
- package/dist/public/assets/{vi-VN-M7AON7JQ-CsNxB65e.js → vi-VN-M7AON7JQ-DeyHxufP.js} +1 -1
- package/dist/public/assets/wardley-OPB4EBWU-Bvhox_VR.js +1 -0
- package/dist/public/assets/{wardleyDiagram-T6FBY63Y-CEQAHhI-.js → wardleyDiagram-T6FBY63Y-ygQgffhA.js} +1 -1
- package/dist/public/assets/{wrench-Pum_Z20m.js → wrench-Bx808FyC.js} +1 -1
- package/dist/public/assets/x-C1LzPj_K.js +1 -0
- package/dist/public/assets/{xychartDiagram-ELKLHX3M-DnYxQMGB.js → xychartDiagram-ELKLHX3M-D7eeDIrp.js} +1 -1
- package/dist/public/assets/{zh-CN-LNUGB5OW-DeZOAXhO.js → zh-CN-LNUGB5OW-CRHL5mg7.js} +1 -1
- package/dist/public/assets/{zh-HK-E62DVLB3-D3AiD63n.js → zh-HK-E62DVLB3-gmyBggUz.js} +1 -1
- package/dist/public/assets/{zh-TW-RAJ6MFWO-B65Fg6Sv.js → zh-TW-RAJ6MFWO-Briwvo3Q.js} +1 -1
- package/dist/public/index.html +144 -142
- package/dist/public/uninstall.html +20 -19
- package/dist/{repair-launch-json-BuMSVWLk.mjs → repair-launch-json-Diw17N6Z.mjs} +2 -2
- package/dist/{repair-mcp-configs-CH9YSEnk.mjs → repair-mcp-configs-CP2U2zh3.mjs} +2 -2
- package/dist/src-1nBmk6gb.mjs +1 -0
- package/dist/{src-DclHF3Ze.mjs → src-ed-scwJ1.mjs} +2 -2
- package/dist/start-B8u-6RgH.mjs +1 -0
- package/dist/{start-DPmzV2RS.mjs → start-Hh3y5X8F.mjs} +2 -2
- package/package.json +4 -4
- package/dist/constants-s6Yz_7lg.mjs +0 -2
- package/dist/init-Bjg5ECtp.mjs +0 -1
- package/dist/loader-D8cCsGJK.mjs +0 -1
- package/dist/preview-BKt1tWBO.mjs +0 -1
- package/dist/public/assets/ActivityModeContent-R_dmIigR.js +0 -1
- package/dist/public/assets/BugReportHistory-DnmaPA_t.js +0 -1
- package/dist/public/assets/ConsentDialogBody-D4L2e425.js +0 -2
- package/dist/public/assets/CopyButton-CKyZY1PL.js +0 -1
- package/dist/public/assets/DocumentContext-C5MsfaP5.js +0 -38
- package/dist/public/assets/EditorModeToggle-Ddy-IvrL.js +0 -1
- package/dist/public/assets/EnableSyncConfirmDialog-IylT5Chq.js +0 -1
- package/dist/public/assets/FeedbackForm-IbvFVm41.js +0 -1
- package/dist/public/assets/ImportSkillDialog-D5o-y_4o.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-BwKiutDp.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-DCJD5dTU.js +0 -1
- package/dist/public/assets/McpConsentDialogBody-CQXH8Lp7.js +0 -1
- package/dist/public/assets/ReportBugDialogBody-DigGiWz5.js +0 -3
- package/dist/public/assets/SchemaConfigEditor-hDG4uRnA.js +0 -1
- package/dist/public/assets/SessionsHost-32-a7YcQ.js +0 -2
- package/dist/public/assets/SettingsDialogBody-DERO_t6B.js +0 -13
- package/dist/public/assets/ShareBranchSwitchDialog-DUrqRuql.js +0 -1
- package/dist/public/assets/ShareReceiveDialog-lX22w_QI.js +0 -1
- package/dist/public/assets/SkillInstallMenu-BlJ3yvrO.js +0 -8
- package/dist/public/assets/SlidesToolbarControls-BK-dnRBl.js +0 -1
- package/dist/public/assets/ThreadView-86daAyd0.js +0 -14
- package/dist/public/assets/TimelineDiffPane-CyCayRTE.js +0 -2
- package/dist/public/assets/architecture-TIHT7OUA-CfXPaavr.js +0 -1
- package/dist/public/assets/arrow-up-right-CGe6dTck.js +0 -1
- package/dist/public/assets/auth-state-cache-C9Xsquif.js +0 -11
- package/dist/public/assets/channel-DqjYjtB_.js +0 -1
- package/dist/public/assets/check-CGfmW4da.js +0 -1
- package/dist/public/assets/chevron-left-UUhIKmW4.js +0 -1
- package/dist/public/assets/chevron-right-Diamp-K_.js +0 -1
- package/dist/public/assets/chunk-2Q5K7J3B-BSbSUjMe.js +0 -1
- package/dist/public/assets/chunk-3NCLNEKW-qKNiopZI.js +0 -1
- package/dist/public/assets/chunk-XXDRQBXY-HZnulEE8.js +0 -1
- package/dist/public/assets/classDiagram-JCYQIIEL-Y-tspIZ_.js +0 -1
- package/dist/public/assets/classDiagram-v2-OCEON4UE-tWCOwZzL.js +0 -1
- package/dist/public/assets/clipboard-adapter-DqemxSWT.js +0 -1
- package/dist/public/assets/comment-chips-B1zrbqkM.js +0 -5
- package/dist/public/assets/cynefin-VYW2F7L2-BurVqQR8.js +0 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-CIhM5sSt.js +0 -1
- package/dist/public/assets/flowDiagram-UKHOOZJN-DxEqvm_c.js +0 -1
- package/dist/public/assets/follow-file-Cvpr7EuG.js +0 -4
- package/dist/public/assets/gitGraph-TEB2WS4Q-J9qtcZ1R.js +0 -1
- package/dist/public/assets/i18n-DGgrY2K0.js +0 -1
- package/dist/public/assets/image-GAAHSSAO-5p1gJr75.js +0 -1
- package/dist/public/assets/index-CujqmY9b.js +0 -2098
- package/dist/public/assets/info-DKCQHKI2-DD5uTkIX.js +0 -1
- package/dist/public/assets/markdownlint-rule-browser-CxRBwdXM.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-DazaS16n.js +0 -1
- package/dist/public/assets/mermaid.core-Czw5aDLx.js +0 -1
- package/dist/public/assets/messages-Bn-xu_rE.js +0 -1
- package/dist/public/assets/messages-CKJXoaKj.js +0 -1
- package/dist/public/assets/messages-CKdYjVhD.js +0 -1
- package/dist/public/assets/messages-CPGTW1NQ.js +0 -1
- package/dist/public/assets/messages-CS_N86Ei.js +0 -1
- package/dist/public/assets/messages-CnMRloEI.js +0 -1
- package/dist/public/assets/messages-DN3rXcam.js +0 -1
- package/dist/public/assets/messages-DXmfXtqf.js +0 -1
- package/dist/public/assets/messages-Dem4M78x.js +0 -1
- package/dist/public/assets/messages-JackANlx.js +0 -1
- package/dist/public/assets/messages-V72AX5Xv.js +0 -1
- package/dist/public/assets/messages-wfQK5euc.js +0 -1
- package/dist/public/assets/minus-CeGy7JpL.js +0 -1
- package/dist/public/assets/packet-7NZHBO7P-uEy_fRve.js +0 -1
- package/dist/public/assets/pending-receive-nav-store-CzROz9D7.js +0 -1
- package/dist/public/assets/percentages-BXMCSKIN-B2JTvaAU.js +0 -1
- package/dist/public/assets/pie-RZYD4A2V-DL5cp9cu.js +0 -1
- package/dist/public/assets/progress-C76GMNqV.js +0 -6
- package/dist/public/assets/propagation-api-PBYTadVM.js +0 -1
- package/dist/public/assets/radar-I7S5WNFK-CuIUvG5Z.js +0 -1
- package/dist/public/assets/railroad-3IZDKUUU-B58UdQaJ.js +0 -1
- package/dist/public/assets/railroad-abnf-AHOZXSZD-BECWp2un.js +0 -1
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-DGuWtaQ-.js +0 -1
- package/dist/public/assets/railroad-peg-LSFZ7HO6-a5L7BUX-.js +0 -1
- package/dist/public/assets/skill-actions-D9rdvY-c.js +0 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-DNsHjv8y.js +0 -1
- package/dist/public/assets/subset-shared.chunk-D_2xdrY5.js +0 -1
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-DSfxb2kq.js +0 -8
- package/dist/public/assets/telemetry-impl-BFiE8Z2z.js +0 -2
- package/dist/public/assets/telemetry-startup-CTkH30bV.js +0 -1
- package/dist/public/assets/terminal-DbJygh5J.js +0 -1
- package/dist/public/assets/text-viewer-languages-CF6DiXgT.js +0 -2
- package/dist/public/assets/thread-client-fD965i1D.js +0 -1
- package/dist/public/assets/treeView-QDETBFTQ-LNEmtxg6.js +0 -1
- package/dist/public/assets/treemap-6X3UGDF4-BNKoqHS4.js +0 -1
- package/dist/public/assets/use-open-skill-Dg7SiZGY.js +0 -1
- package/dist/public/assets/use-skill-origin-Djw0A91Z.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-SuVqba-Y.js +0 -6
- package/dist/public/assets/wardley-OPB4EBWU-Dcha9lJH.js +0 -1
- package/dist/public/assets/x-DddVxTPq.js +0 -1
- package/dist/src-DhGfmghJ.mjs +0 -1
- package/dist/start-BpPetP-R.mjs +0 -1
- /package/dist/public/assets/{ActivityPanelDiffView-DPjwW8in.js → ActivityPanelDiffView-BbGRGH-s.js} +0 -0
- /package/dist/public/assets/{SkillModeBanner-CFrx5Bz6.js → SkillModeBanner-BeyiGM2h.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-BobEXftM.js → __vite-browser-external-C_AmTjg0.js} +0 -0
- /package/dist/public/assets/{agent-presence-BymGPyOl.js → agent-presence-_TBcn8nm.js} +0 -0
- /package/dist/public/assets/{app-menubar-gate-CVNDuMMQ.js → app-menubar-gate-DYELV0Rp.js} +0 -0
- /package/dist/public/assets/{array-Dq4wW3VD.js → array-DMsPxPXY.js} +0 -0
- /package/dist/public/assets/{asset-dispatch-CdZ_--jl.js → asset-dispatch-DO1lJ1el.js} +0 -0
- /package/dist/public/assets/{auth-prompt-store-B25Qo1Wd.js → auth-prompt-store-BVCOOr4Z.js} +0 -0
- /package/dist/public/assets/{badge-BG5JKjNK.js → badge-BoK3mJ2_.js} +0 -0
- /package/dist/public/assets/{chunk-6U3AYISY-BmerJy-e.js → chunk-6U3AYISY-BlbFykIS.js} +0 -0
- /package/dist/public/assets/{chunk-KEIR6QF5-DTbPJftr.js → chunk-KEIR6QF5-CtqZ3S4R.js} +0 -0
- /package/dist/public/assets/{chunk-SRAX5OIU-CoWcq_Cz.js → chunk-SRAX5OIU-BBymLt--.js} +0 -0
- /package/dist/public/assets/{chunk-Y2CYZVJY-6OZAfZOy.js → chunk-Y2CYZVJY-CjK5_lJx.js} +0 -0
- /package/dist/public/assets/{chunk-Z3N5DIM6-_vHzKWKQ.js → chunk-Z3N5DIM6-C_MbKhtM.js} +0 -0
- /package/dist/public/assets/{chunk-ZUYEQ4TG-D1GKhcAx.js → chunk-ZUYEQ4TG-Cewuw56-.js} +0 -0
- /package/dist/public/assets/{clike-D0HTSj3G.js → clike-DTm7XIsL.js} +0 -0
- /package/dist/public/assets/{colors-q6zKP-2e.js → colors-9CtFhujT.js} +0 -0
- /package/dist/public/assets/{copilot-yXSa3JY-.js → copilot-DvJIKE2u.js} +0 -0
- /package/dist/public/assets/{createLucideIcon-Bhw2PmPp.js → createLucideIcon-IawHI4re.js} +0 -0
- /package/dist/public/assets/{cursor-Dp3I7a4x.js → cursor-C0OPTch1.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-CYrVBcJU.js → cytoscape.esm-R136Y8RF.js} +0 -0
- /package/dist/public/assets/{defaultLocale-DvNiTMpe.js → defaultLocale-DNzAHgUP.js} +0 -0
- /package/dist/public/assets/{desktop-bridge-types-BeY3wQCX.js → desktop-bridge-types-msKbUsnF.js} +0 -0
- /package/dist/public/assets/{diff-D1tXr_3N.js → diff--MMPv3Dn.js} +0 -0
- /package/dist/public/assets/{directory-open-01563666-BH0BUZvH.js → directory-open-01563666-UehcgoSm.js} +0 -0
- /package/dist/public/assets/{directory-open-4ed118d0-Cqq3tiWl.js → directory-open-4ed118d0-DQI45XFi.js} +0 -0
- /package/dist/public/assets/{dist-CbvvMO_r.js → dist-5NL0WPqt.js} +0 -0
- /package/dist/public/assets/{dist-D81TFAXh.js → dist-B6jB2qbD2.js} +0 -0
- /package/dist/public/assets/{dist-XgwTV-oh2.js → dist-BIGNzOeF2.js} +0 -0
- /package/dist/public/assets/{dist-C7QvIWsS.js → dist-CNiZmERp.js} +0 -0
- /package/dist/public/assets/{documents-fetch-B1PtbYbS.js → documents-fetch-UmC9duIp.js} +0 -0
- /package/dist/public/assets/{external-link-B4qPZwve.js → external-link-CbyKdKG6.js} +0 -0
- /package/dist/public/assets/{file-open-002ab408-DWNEJNab.js → file-open-002ab408-rOGDDqjX.js} +0 -0
- /package/dist/public/assets/{file-open-7c801643-C54zS8Cf.js → file-open-7c801643-KVc2XFHO.js} +0 -0
- /package/dist/public/assets/{file-save-3189631c-dfe2nlyw.js → file-save-3189631c-LkulKq-Q.js} +0 -0
- /package/dist/public/assets/{file-save-745eba88-CacClePY.js → file-save-745eba88-D_np9g0j.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-CVcZpNDF.js → file-tree-rename-validation-CPl90aZt.js} +0 -0
- /package/dist/public/assets/{form-C2vo2-_o.js → form-Cw68WIMH.js} +0 -0
- /package/dist/public/assets/{format-I3YtNHrv.js → format-BrpQxbxK.js} +0 -0
- /package/dist/public/assets/{gherkin-qTr9I9RT.js → gherkin-DwLlxW3X.js} +0 -0
- /package/dist/public/assets/{go-C89M6Tnn.js → go-C8satPgf.js} +0 -0
- /package/dist/public/assets/{html-void-elements-C35FEqss.js → html-void-elements-XfxYgU9i.js} +0 -0
- /package/dist/public/assets/{image-blob-reduce.esm-ByCvOQ_W.js → image-blob-reduce.esm-DECTelFW.js} +0 -0
- /package/dist/public/assets/{init-C5wy6wX9.js → init-C5hMU08O.js} +0 -0
- /package/dist/public/assets/{input-lp6-d0mX.js → input-ugdhJ7_C.js} +0 -0
- /package/dist/public/assets/{isObject-CrVeB5-O.js → isObject-MHC50d3l.js} +0 -0
- /package/dist/public/assets/{katex-Bbx57GnP.js → katex-BRGj_jwq.js} +0 -0
- /package/dist/public/assets/{known-skill-dirs-toPil01C.js → known-skill-dirs-DHGWFYHD.js} +0 -0
- /package/dist/public/assets/{libesm-CKzT_-OB.js → libesm-RFklb3UT.js} +0 -0
- /package/dist/public/assets/{lru-string-cache-BTiUx3Aq.js → lru-string-cache-JabTOImi.js} +0 -0
- /package/dist/public/assets/{lua-BDdZkU6-.js → lua-CneNaxP4.js} +0 -0
- /package/dist/public/assets/{markdownit-C1Squg6O.js → markdownit-Du2gL9_G.js} +0 -0
- /package/dist/public/assets/{min-C-Zt4aXq.js → min-C41pQ5Hq.js} +0 -0
- /package/dist/public/assets/{panel-DzcaKH-k.js → panel-CRIdNIdp.js} +0 -0
- /package/dist/public/assets/{panzoom.es-g57oTMWV.js → panzoom.es-CPerCYmP.js} +0 -0
- /package/dist/public/assets/{parse-api-error-DsopQ8yv.js → parse-api-error-RlJ5hnUA.js} +0 -0
- /package/dist/public/assets/{path-BzgPJcRu.js → path-BjEgLZuE.js} +0 -0
- /package/dist/public/assets/{pdf-RD5YSNVl.js → pdf-CF8oPFZx.js} +0 -0
- /package/dist/public/assets/{pdf.worker-CFwHIAhl.js → pdf.worker-BkfTcN9a.js} +0 -0
- /package/dist/public/assets/{perl-CH_ML9FS.js → perl-B4UJQq8x.js} +0 -0
- /package/dist/public/assets/{pica-Bgen8wyU.js → pica-DgHULpJw.js} +0 -0
- /package/dist/public/assets/{properties-Cu9oAWIy.js → properties-n6FPdCbe.js} +0 -0
- /package/dist/public/assets/{r-BhELqv5F.js → r-CvNUdEEJ.js} +0 -0
- /package/dist/public/assets/{rough.esm-BNPcTkf4.js → rough.esm-CZ9Z0o_Q.js} +0 -0
- /package/dist/public/assets/{roundRect-B-qJc5D4.js → roundRect-D98ZZDDl.js} +0 -0
- /package/dist/public/assets/{ruby-Wd_f1AJm.js → ruby-Chtn3Gpd.js} +0 -0
- /package/dist/public/assets/{schema-fields-view-intent-BgCPyXRP.js → schema-fields-view-intent-BUsw7BB-.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-C-n5eqv8.js → share-metadata-rows-PTVcKJoS.js} +0 -0
- /package/dist/public/assets/{shell-BmuXbfbH.js → shell-CVYly0Aq.js} +0 -0
- /package/dist/public/assets/{skeleton-D4wPMdlV.js → skeleton-K2ZdFNLJ.js} +0 -0
- /package/dist/public/assets/{sortable.esm-Dd5A8_XI.js → sortable.esm-CIQOJSeB.js} +0 -0
- /package/dist/public/assets/{sql-C7H020ne.js → sql-4aQcRPKM.js} +0 -0
- /package/dist/public/assets/{src-DCB0oFdU.js → src-BHALcStb.js} +0 -0
- /package/dist/public/assets/{startup-marks-BBwl9PAL.js → startup-marks-AH0O6Bka.js} +0 -0
- /package/dist/public/assets/{stex-Bh4EH31F.js → stex-BBBeCsyc.js} +0 -0
- /package/dist/public/assets/{swift-Dj6qhJqd.js → swift-D8F6mZ7X.js} +0 -0
- /package/dist/public/assets/{tabs-CP1Rtjct.js → tabs-CbrWkW0G.js} +0 -0
- /package/dist/public/assets/{terminal-command-events-CwHEMoPz.js → terminal-command-events-DK4E6bH7.js} +0 -0
- /package/dist/public/assets/{textarea-dRxJ8TN6.js → textarea-fna4VDOc.js} +0 -0
- /package/dist/public/assets/{thread-draft-staging-BEPXwAou.js → thread-draft-staging-7s9D3etx.js} +0 -0
- /package/dist/public/assets/{timeline-diff-store-DnRthkM7.js → timeline-diff-store-yWTwVhRT.js} +0 -0
- /package/dist/public/assets/{toml-BgTQFVve.js → toml-CZuybemr.js} +0 -0
- /package/dist/public/assets/{tool-list-format-DhJHEdvi.js → tool-list-format-B5t--R3K.js} +0 -0
- /package/dist/public/assets/{use-installed-clis-DZ3aSVtd.js → use-installed-clis-Dcwl9RUZ.js} +0 -0
- /package/dist/public/assets/{useLintConfigViewMode-YTBzsyjH.js → useLintConfigViewMode-ziRe504t.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-Bw5giFqP.js → w3c-keyname-yVu9TQnl.js} +0 -0
- /package/dist/public/assets/{workspace-paths-CKUFX0v6.js → workspace-paths-BKo6L6w1.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-Bhw2PmPp.js";var t=e(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-EMLP6XTP-TAV8Yk8h.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./button-CA0dewJJ.js";import{n as s}from"./dist-D81TFAXh.js";import{t as c}from"./createLucideIcon-Bhw2PmPp.js";import{c as l,g as u,i as d,n as f,o as p,p as m,s as h,t as g}from"./EnableSyncConfirmDialog-IylT5Chq.js";import{t as _}from"./arrow-up-right-CGe6dTck.js";import{t as v}from"./check-CGfmW4da.js";import{t as y}from"./folder-open-BapQa7r-.js";import{t as b}from"./info-DmvKnBgp.js";import{t as x}from"./spinner-BxJv3FRl.js";import{n as S}from"./miss-dialog-store-CveL5d4F.js";import{t as C}from"./refresh-cw-CcQnr_fh.js";import{t as w}from"./triangle-alert-CRXAJBn4.js";import{_ as T,r as E,s as D}from"./doc-paths-DFa3HIzr.js";import{t as O}from"./external-link-B4qPZwve.js";var k=c(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),A=c(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),j=c(`file-x-corner`,[[`path`,{d:`M11 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1jo35a`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m15 17 5 5`,key:`36xl1x`}],[`path`,{d:`m20 17-5 5`,key:`vdz27y`}]]),M=a(),N=e(n(),1),P=t(),F=`https://git-scm.com/docs/git-push`;function I(e,t){return e===`empty`?!0:!(e!==`stale`&&e!==`absent`||e===`stale`&&t?.syncEnabled===!0)}function ee(e){return e?e.state!==`dormant`&&e.state!==`disabled`&&e.state!==`auth-error`&&e.state!==`conflict`:!1}function L(e){let t=(0,M.c)(52),{freshness:n,status:a,kind:s}=e,{_:c}=i(),{confirmOpen:l,setConfirmOpen:u,onToggleRequest:m,onConfirm:h}=d(p()),[y,S]=(0,N.useState)(`idle`),T=(0,N.useRef)(null),E,D;if(t[0]!==a||t[1]!==y?(E=()=>{if(!(y!==`pending`||!a)){if(a.pushError||a.pushErrorCode){S(`idle`);return}(a.lastSyncUtc??null)!==T.current&&S(`synced`)}},D=[y,a],t[0]=a,t[1]=y,t[2]=E,t[3]=D):(E=t[2],D=t[3]),(0,N.useEffect)(E,D),!I(n,a))return null;if(n===`empty`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(w,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[4]=e):e=t[4];let n;t[5]===c?n=t[6]:(n=c({id:`eazHgv`}),t[5]=c,t[6]=n);let r;return t[7]===n?r=t[8]:(r=(0,P.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[e,(0,P.jsx)(`span`,{children:n})]}),t[7]=n,t[8]=r),r}if(y===`synced`){let e;return t[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[(0,P.jsx)(v,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),(0,P.jsx)(`span`,{children:(0,P.jsx)(r,{id:`fxbCNQ`})})]}),t[9]=e):e=t[9],e}let O=a?.syncEnabled===!0,k=a?.pushPermission?.checkStatus===`denied`,A=!!(a?.pushError||a?.pushErrorCode),j=k||A,L=n===`absent`&&!O,B;if(n===`absent`&&!O){let e;t[10]!==c||t[11]!==s?(e=c(s===`folder`?{id:`PrJYSN`}:{id:`3BnyYc`}),t[10]=c,t[11]=s,t[12]=e):e=t[12],B=e}else if(n===`stale`){let e;t[13]!==c||t[14]!==s?(e=c(s===`folder`?{id:`Gt4gOO`}:{id:`2IYGkU`}),t[13]=c,t[14]=s,t[15]=e):e=t[15],B=e}else{let e;t[16]!==c||t[17]!==s?(e=c(s===`folder`?{id:`nqV0Kk`}:{id:`gwykHF`}),t[16]=c,t[17]=s,t[18]=e):e=t[18],B=e}let V;t[19]!==c||t[20]!==A||t[21]!==k?(V=k?c({id:`9OIqw4`}):A?c({id:`K6MQQk`}):null,t[19]=c,t[20]=A,t[21]=k,t[22]=V):V=t[22];let H=V,U;t[23]===a?.lastSyncUtc?U=t[24]:(U=()=>{T.current=a?.lastSyncUtc??null,S(`pending`),f(`sync`).catch(e=>{console.warn(`[share-freshness] sync trigger failed`,e instanceof Error?e.message:e),S(`idle`)})},t[23]=a?.lastSyncUtc,t[24]=U);let W=U,G=L?w:b,K;t[25]===G?K=t[26]:(K=(0,P.jsx)(G,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[25]=G,t[26]=K);let q;t[27]===B?q=t[28]:(q=(0,P.jsx)(`span`,{children:B}),t[27]=B,t[28]=q);let J;t[29]===H?J=t[30]:(J=H?(0,P.jsx)(`span`,{children:H}):null,t[29]=H,t[30]=J);let Y;t[31]!==j||t[32]!==W||t[33]!==m||t[34]!==a||t[35]!==O||t[36]!==y?(Y=j?null:O?ee(a)?(0,P.jsx)(`div`,{children:y===`pending`?(0,P.jsxs)(o,{variant:`outline`,size:`xs`,disabled:!0,children:[(0,P.jsx)(x,{icon:C,className:`size-3 shrink-0`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`EHu0x2`})]}):(0,P.jsx)(o,{variant:`outline`,size:`xs`,onClick:W,children:(0,P.jsx)(r,{id:`lb_UU4`})})}):null:(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5`,children:[(0,P.jsx)(o,{variant:`outline`,size:`xs`,onClick:()=>m(!0),children:(0,P.jsx)(r,{id:`XU0OXn`})}),(0,P.jsxs)(`a`,{href:F,target:`_blank`,rel:`noopener noreferrer`,onClick:z,onAuxClick:R,className:`inline-flex items-center gap-1 transition-colors hover:text-primary`,children:[(0,P.jsx)(r,{id:`GLxIKR`}),(0,P.jsx)(_,{className:`size-3 shrink-0`,"aria-hidden":`true`})]})]}),t[31]=j,t[32]=W,t[33]=m,t[34]=a,t[35]=O,t[36]=y,t[37]=Y):Y=t[37];let X;t[38]!==q||t[39]!==J||t[40]!==Y?(X=(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[q,J,Y]}),t[38]=q,t[39]=J,t[40]=Y,t[41]=X):X=t[41];let Z;t[42]!==K||t[43]!==X?(Z=(0,P.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[K,X]}),t[42]=K,t[43]=X,t[44]=Z):Z=t[44];let Q;t[45]!==l||t[46]!==h||t[47]!==u?(Q=(0,P.jsx)(g,{open:l,onOpenChange:u,onConfirm:h}),t[45]=l,t[46]=h,t[47]=u,t[48]=Q):Q=t[48];let $;return t[49]!==Z||t[50]!==Q?($=(0,P.jsxs)(P.Fragment,{children:[Z,Q]}),t[49]=Z,t[50]=Q,t[51]=$):$=t[51],$}function R(e){return O(e,F)}function z(e){return O(e,F)}function B(e){let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function V(e){let t=(0,M.c)(17),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={phase:`pending`},t[0]=n):n=t[0];let[r,i]=(0,N.useState)(n),[a,o]=(0,N.useState)(0),s=e.branch,c;t[1]!==s||t[2]!==e.contentRootDepth||t[3]!==e.kind||t[4]!==e.path||t[5]!==e.repositoryPath?(c=()=>{let t=window.okDesktop??null;if(!t||s===null){i({phase:`resolved`,resolution:{verdict:`unknown`}});return}let n=!1;return t.project.fetchTargetStatus({projectPath:t.config.projectPath,branch:s,path:e.repositoryPath??e.path,kind:e.kind,...e.contentRootDepth===void 0?{}:{contentRootDepth:e.contentRootDepth}}).then(e=>{n||i({phase:`resolved`,resolution:e??{verdict:`unknown`}})}).catch(e=>{n||(console.warn(`[receive] miss target-status fetch failed`,e instanceof Error?e.message:e),i({phase:`resolved`,resolution:{verdict:`unknown`}}))}),()=>{n=!0}},t[1]=s,t[2]=e.contentRootDepth,t[3]=e.kind,t[4]=e.path,t[5]=e.repositoryPath,t[6]=c):c=t[6];let l;t[7]!==s||t[8]!==a||t[9]!==e.contentRootDepth||t[10]!==e.kind||t[11]!==e.path||t[12]!==e.repositoryPath?(l=[s,e.kind,e.path,e.repositoryPath,e.contentRootDepth,a],t[7]=s,t[8]=a,t[9]=e.contentRootDepth,t[10]=e.kind,t[11]=e.path,t[12]=e.repositoryPath,t[13]=l):l=t[13],(0,N.useEffect)(c,l);let u;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{i({phase:`pending`}),o(H)},t[14]=u):u=t[14];let d;return t[15]===r?d=t[16]:(d={state:r,refetch:u},t[15]=r,t[16]=d),d}function H(e){return e+1}function U(e){let t=(0,M.c)(15),{onEnabled:n}=e,i=p(),a;t[0]===n?a=t[1]:(a={onEnabled:n},t[0]=n,t[1]=a);let{confirmOpen:s,setConfirmOpen:c,onToggleRequest:l,onConfirm:u}=d(i,a),f;t[2]===l?f=t[3]:(f=()=>l(!0),t[2]=l,t[3]=f);let m,h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,P.jsx)(C,{className:`size-4`,"aria-hidden":`true`}),h=(0,P.jsx)(r,{id:`XU0OXn`}),t[4]=m,t[5]=h):(m=t[4],h=t[5]);let _;t[6]===f?_=t[7]:(_=(0,P.jsxs)(o,{onClick:f,"data-testid":`share-receive-miss-enable-sync`,children:[m,h]}),t[6]=f,t[7]=_);let v;t[8]!==s||t[9]!==u||t[10]!==c?(v=(0,P.jsx)(g,{open:s,onOpenChange:c,onConfirm:u}),t[8]=s,t[9]=u,t[10]=c,t[11]=v):v=t[11];let y;return t[12]!==_||t[13]!==v?(y=(0,P.jsxs)(P.Fragment,{children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14],y}function W(e){let t=(0,M.c)(23),{status:n,onSyncCompleted:a}=e,{_:c}=i(),[l,u]=(0,N.useState)(!1),d=(0,N.useRef)(null),p;t[0]!==a||t[1]!==l||t[2]!==n.lastSyncUtc||t[3]!==n.pushError||t[4]!==n.pushErrorCode?(p=()=>{if(l){if(n.pushError||n.pushErrorCode){u(!1);return}(n.lastSyncUtc??null)!==d.current&&(u(!1),a?.())}},t[0]=a,t[1]=l,t[2]=n.lastSyncUtc,t[3]=n.pushError,t[4]=n.pushErrorCode,t[5]=p):p=t[5];let m;t[6]!==a||t[7]!==l||t[8]!==n?(m=[l,n,a],t[6]=a,t[7]=l,t[8]=n,t[9]=m):m=t[9],(0,N.useEffect)(p,m);let h;t[10]!==c||t[11]!==n.lastSyncUtc?(h=()=>{d.current=n.lastSyncUtc??null,u(!0),f(`sync`).catch(e=>{console.warn(`[receive] miss sync trigger failed`,e instanceof Error?e.message:e),u(!1),s.error(c({id:`1u-mAI`}))})},t[10]=c,t[11]=n.lastSyncUtc,t[12]=h):h=t[12];let g=h,_;t[13]!==g||t[14]!==l?(_=l?(0,P.jsxs)(o,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-sync-now`,children:[(0,P.jsx)(x,{icon:C,className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`EHu0x2`})]}):(0,P.jsxs)(o,{onClick:g,"data-testid":`share-receive-miss-sync-now`,children:[(0,P.jsx)(C,{className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`lb_UU4`})]}),t[13]=g,t[14]=l,t[15]=_):_=t[15];let v;t[16]===l?v=t[17]:(v=l?(0,P.jsx)(r,{id:`dXOolp`}):null,t[16]=l,t[17]=v);let y;t[18]===v?y=t[19]:(y=(0,P.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-sync-status`,children:v}),t[18]=v,t[19]=y);let b;return t[20]!==_||t[21]!==y?(b=(0,P.jsxs)(P.Fragment,{children:[_,y]}),t[20]=_,t[21]=y,t[22]=b):b=t[22],b}var G=!1;function K(e){return!G&&e!==null&&e.syncEnabled!==!0}function q(e){return e===null?!1:e.hasRemote&&e.lastPullUtc!==void 0&&e.state!==`conflict`}function J(e,t){let n=(0,M.c)(15),[r,i]=(0,N.useState)(!1),[a,o]=(0,N.useState)(null),[s,c]=(0,N.useState)(!1),l=(0,N.useRef)(null),u,d;n[0]!==t||n[1]!==r||n[2]!==e?(u=()=>{if(!r||(e?.lastPullUtc??null)===l.current)return;i(!1);let n=e?.lastPullOutcome??null;if(n===null){t?.();return}switch(n){case`refused`:case`error`:o(n);return;case`succeeded`:case`up-to-date`:if(K(e)){G=!0,c(!0);return}t?.();return;case`conflict`:t?.();return;default:t?.();return}},d=[r,e,t],n[0]=t,n[1]=r,n[2]=e,n[3]=u,n[4]=d):(u=n[3],d=n[4]),(0,N.useEffect)(u,d);let p;n[5]===t?p=n[6]:(p=()=>{c(!1),t?.()},n[5]=t,n[6]=p);let m;n[7]===e?.lastPullUtc?m=n[8]:(m=()=>{l.current=e?.lastPullUtc??null,o(null),i(!0),f(`pull`).catch(e=>{console.warn(`[receive] miss pull trigger failed`,e instanceof Error?e.message:e),i(!1),o(`error`)})},n[7]=e?.lastPullUtc,n[8]=m);let h;return n[9]!==a||n[10]!==s||n[11]!==r||n[12]!==p||n[13]!==m?(h={pending:r,failure:a,offering:s,resolveOffer:p,start:m},n[9]=a,n[10]=s,n[11]=r,n[12]=p,n[13]=m,n[14]=h):h=n[14],h}function Y(e){let t=(0,M.c)(10),{pending:n,onPull:i}=e,a;t[0]!==i||t[1]!==n?(a=n?(0,P.jsxs)(o,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-pull-now`,children:[(0,P.jsx)(x,{icon:C,className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`4uNLmk`})]}):(0,P.jsxs)(o,{onClick:i,"data-testid":`share-receive-miss-pull-now`,children:[(0,P.jsx)(u,{className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`fevEu0`})]}),t[0]=i,t[1]=n,t[2]=a):a=t[2];let s;t[3]===n?s=t[4]:(s=n?(0,P.jsx)(r,{id:`glG1TR`}):null,t[3]=n,t[4]=s);let c;t[5]===s?c=t[6]:(c=(0,P.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-pull-status`,children:s}),t[5]=s,t[6]=c);let l;return t[7]!==a||t[8]!==c?(l=(0,P.jsxs)(P.Fragment,{children:[a,c]}),t[7]=a,t[8]=c,t[9]=l):l=t[9],l}function X(e){let t=(0,M.c)(18),{onResolve:n,strandedCommitCount:r}=e,i=l(),a=(0,N.useRef)(!1),o;t[0]===n?o=t[1]:(o=function(){a.current||(a.current=!0,n())},t[0]=n,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c={onApplied:s},t[2]=s,t[3]=c);let{confirmOpen:u,setConfirmOpen:d,onModeSelect:f,onConfirm:p}=h(i,`off`,c),m=(0,N.useRef)(!1),_,v;t[4]===f?(_=t[5],v=t[6]):(_=()=>{m.current||(m.current=!0,f(`follow`))},v=[f],t[4]=f,t[5]=_,t[6]=v),(0,N.useEffect)(_,v);let y;t[7]!==s||t[8]!==d?(y=e=>{d(e),e||s()},t[7]=s,t[8]=d,t[9]=y):y=t[9];let b;t[10]!==p||t[11]!==s?(b=()=>{p(),s()},t[10]=p,t[11]=s,t[12]=b):b=t[12];let x;return t[13]!==u||t[14]!==r||t[15]!==y||t[16]!==b?(x=(0,P.jsx)(g,{open:u,onOpenChange:y,onConfirm:b,variant:`follow`,strandedCommitCount:r}),t[13]=u,t[14]=r,t[15]=y,t[16]=b,t[17]=x):x=t[17],x}function Z(e){let t=(0,M.c)(89),{nav:n,state:a,onBrowseFolder:s,onOpenRenamed:c,onEnableAutoSync:l,onSyncCompleted:d,onPullApplied:f}=e,{_:p}=i(),h=m(),g=J(h,f),_=n.branch,v;t[0]!==p||t[1]!==n.kind?(v=n.kind===`folder`?p({id:`ugoTXs`}):p({id:`XH30C4`}),t[0]=p,t[1]=n.kind,t[2]=v):v=t[2];let b=v;if(a.phase===`pending`){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(x,{className:`size-5`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`c8jBgX`})]}),t[3]=e):e=t[3],e}let{resolution:C}=a,w,T;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,P.jsx)(y,{className:`size-4`,"aria-hidden":`true`}),T=(0,P.jsx)(r,{id:`hItdtk`}),t[4]=w,t[5]=T):(w=t[4],T=t[5]);let E;t[6]===s?E=t[7]:(E=(0,P.jsxs)(o,{variant:`outline`,onClick:s,"data-testid":`share-receive-miss-browse`,children:[w,T]}),t[6]=s,t[7]=E);let D=E,O,N,F,I=null;if(C.verdict===`renamed`){let e;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(S,{className:`size-9`,"aria-hidden":`true`}),t[8]=e):e=t[8],O=e;let n;t[9]!==C.renamedTo||t[10]!==b?(n={0:C.renamedTo,targetNoun:b},t[9]=C.renamedTo,t[10]=b,t[11]=n):n=t[11];let i;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[12]=i):i=t[12];let a;t[13]===n?a=t[14]:(a=(0,P.jsx)(r,{id:`P0HC30`,values:n,components:i}),t[13]=n,t[14]=a),N=a;let s;t[15]!==c||t[16]!==C.renamedTo?(s=()=>c(C.renamedTo),t[15]=c,t[16]=C.renamedTo,t[17]=s):s=t[17];let l,u;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,P.jsx)(S,{className:`size-4`,"aria-hidden":`true`}),u=(0,P.jsx)(r,{id:`AItsE5`}),t[18]=l,t[19]=u):(l=t[18],u=t[19]);let d;t[20]===s?d=t[21]:(d=(0,P.jsxs)(o,{onClick:s,"data-testid":`share-receive-miss-open-renamed`,children:[l,u]}),t[20]=s,t[21]=d);let f;t[22]!==D||t[23]!==d?(f=(0,P.jsxs)(P.Fragment,{children:[d,D]}),t[22]=D,t[23]=d,t[24]=f):f=t[24],F=f}else if(C.verdict===`deleted`){let e;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(j,{className:`size-9`,"aria-hidden":`true`}),t[25]=e):e=t[25],O=e;let n;t[26]!==_||t[27]!==b?(n={targetNoun:b,branch:_},t[26]=_,t[27]=b,t[28]=n):n=t[28];let i;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[29]=i):i=t[29];let a;t[30]===n?a=t[31]:(a=(0,P.jsx)(r,{id:`kpqWwG`,values:n,components:i}),t[30]=n,t[31]=a),N=a,F=D}else if(C.verdict===`never-on-branch`){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(A,{className:`size-9`,"aria-hidden":`true`}),t[32]=e):e=t[32],O=e;let n;t[33]!==_||t[34]!==b?(n={targetNoun:b,branch:_},t[33]=_,t[34]=b,t[35]=n):n=t[35];let i;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[36]=i):i=t[36];let a;t[37]===n?a=t[38]:(a=(0,P.jsx)(r,{id:`i9TPUi`,values:n,components:i}),t[37]=n,t[38]=a),N=a,F=D}else if(C.verdict===`changed-locally`){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(k,{className:`size-9`,"aria-hidden":`true`}),t[39]=e):e=t[39],O=e;let n=h?.syncEnabled===!0,i=h?.pushPermission?.checkStatus===`denied`||!!(h?.pushError||h?.pushErrorCode);if(n){let e;t[40]!==_||t[41]!==b?(e=_===null?(0,P.jsx)(r,{id:`RyIKxy`,values:{targetNoun:b}}):(0,P.jsx)(r,{id:`l6kpzR`,values:{targetNoun:b,branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[40]=_,t[41]=b,t[42]=e):e=t[42],N=e}else{let e;t[43]!==_||t[44]!==b?(e=_===null?(0,P.jsx)(r,{id:`UuYo7g`,values:{targetNoun:b}}):(0,P.jsx)(r,{id:`HoWElC`,values:{targetNoun:b,branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[43]=_,t[44]=b,t[45]=e):e=t[45],N=e}let a=null;if(h?.syncEnabled){if(ee(h)&&!i){let e;t[46]!==d||t[47]!==h?(e=(0,P.jsx)(W,{status:h,onSyncCompleted:d}),t[46]=d,t[47]=h,t[48]=e):e=t[48],a=e}}else if(h!==null){let e;t[49]===l?e=t[50]:(e=(0,P.jsx)(U,{onEnabled:l}),t[49]=l,t[50]=e),a=e}let o;t[51]!==D||t[52]!==a?(o=(0,P.jsxs)(P.Fragment,{children:[a,D]}),t[51]=D,t[52]=a,t[53]=o):o=t[53],F=o}else{let e;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(u,{className:`size-9`,"aria-hidden":`true`}),t[54]=e):e=t[54],O=e;let n;t[55]===h?n=t[56]:(n=q(h),t[55]=h,t[56]=n);let i=n;if(i){let e;t[57]===_?e=t[58]:(e=_===null?(0,P.jsx)(r,{id:`gwEcOD`}):(0,P.jsx)(r,{id:`wvK7Ay`,values:{branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[57]=_,t[58]=e),N=e}else{let e;t[59]===_?e=t[60]:(e=_===null?(0,P.jsx)(r,{id:`Xewl6B`}):(0,P.jsx)(r,{id:`d1JjXo`,values:{branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[59]=_,t[60]=e),N=e}let a=g.failure===null?`sr-only`:`max-w-md text-balance text-1sm text-destructive`,o;t[61]===g.failure?o=t[62]:(o=g.failure===`refused`?(0,P.jsx)(r,{id:`Xp7Kq4`}):g.failure===`error`?(0,P.jsx)(r,{id:`JG_8KT`}):null,t[61]=g.failure,t[62]=o);let s;t[63]!==a||t[64]!==o?(s=(0,P.jsx)(`p`,{role:`alert`,className:a,"data-testid":`share-receive-miss-pull-error`,children:o}),t[63]=a,t[64]=o,t[65]=s):s=t[65],I=s;let c;t[66]!==i||t[67]!==g.pending||t[68]!==g.start?(c=i?(0,P.jsx)(Y,{pending:g.pending,onPull:g.start}):null,t[66]=i,t[67]=g.pending,t[68]=g.start,t[69]=c):c=t[69];let l;t[70]!==g.offering||t[71]!==g.resolveOffer||t[72]!==h?.ahead?(l=g.offering?(0,P.jsx)(X,{onResolve:g.resolveOffer,strandedCommitCount:h?.ahead??0}):null,t[70]=g.offering,t[71]=g.resolveOffer,t[72]=h?.ahead,t[73]=l):l=t[73];let d;t[74]!==D||t[75]!==c||t[76]!==l?(d=(0,P.jsxs)(P.Fragment,{children:[c,D,l]}),t[74]=D,t[75]=c,t[76]=l,t[77]=d):d=t[77],F=d}let L;t[78]===O?L=t[79]:(L=(0,P.jsx)(`div`,{className:`flex size-16 items-center justify-center rounded-full border bg-muted/40 text-muted-foreground`,children:O}),t[78]=O,t[79]=L);let R;t[80]===N?R=t[81]:(R=(0,P.jsx)(`p`,{className:`max-w-md text-balance text-base leading-6 text-foreground/90`,children:N}),t[80]=N,t[81]=R);let z;t[82]===F?z=t[83]:(z=(0,P.jsx)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-center`,children:F}),t[82]=F,t[83]=z);let B;return t[84]!==I||t[85]!==L||t[86]!==R||t[87]!==z?(B=(0,P.jsxs)(P.Fragment,{children:[L,R,I,z]}),t[84]=I,t[85]=L,t[86]=R,t[87]=z,t[88]=B):B=t[88],B}function Q(e){return e.replace(/^\/+|\/+$/g,``)}function $(e,t){if(t.kind===`folder`){if(T(e))return Q(t.path)===``;let n=D(e);return n!==null&&Q(n)===Q(t.path)}let n=D(e);return n===null?!1:E(n)===E(t.path)}function te(){let e=null,t=new Set,n=!1;function r(){for(let e of t)e()}function i(t){e!==t&&(e=t,r())}function a(){e!==null&&($(window.location.hash,e)||i(null))}function o(){n||typeof window>`u`||(n=!0,window.addEventListener(`hashchange`,a))}return{arm(e){o(),i(e)},clear(){i(null)},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dispose(){n&&typeof window<`u`&&(window.removeEventListener(`hashchange`,a),n=!1),i(null)}}}var ne=te();function re(e,t){if(e.contentRootDepth===void 0)return{...e,path:t,repositoryPath:t};let n=(e.repositoryPath??e.path).split(`/`).slice(0,e.contentRootDepth);return{...e,path:t,repositoryPath:[...n,...t===``?[]:t.split(`/`)].join(`/`)}}function ie(e,t){return e===null||e.kind!==`missing`||t===null||E(t.path)!==e.target?null:t}export{B as a,I as c,Z as i,re as n,V as o,ne as r,L as s,ie as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-SRAX5OIU-CoWcq_Cz.js";import{n as e,r as t,t as n}from"./chunk-Z3N5DIM6-_vHzKWKQ.js";export{n as default,e as en,t as kaa};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-YOTPTUD7-652A10gX.js";export{e as createPieServices};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{c as a,l as o}from"./dist-DsLZcVyZ.js";var s=e(n(),1),c=t(),l=`Progress`,u=100,[d,f]=a(l),[p,m]=d(l),h=s.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=v,...s}=e;(i||i===0)&&!x(i)&&console.error(C(`${i}`,`Progress`));let l=x(i)?i:u;r!==null&&!S(r,l)&&console.error(w(`${r}`,`Progress`));let d=S(r,l)?r:null,f=b(d)?a(d,l):void 0;return(0,c.jsx)(p,{scope:n,value:d,max:l,children:(0,c.jsx)(o.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":b(d)?d:void 0,"aria-valuetext":f,role:`progressbar`,"data-state":y(d,l),"data-value":d??void 0,"data-max":l,...s,ref:t})})});h.displayName=l;var g=`ProgressIndicator`,_=s.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=m(g,n);return(0,c.jsx)(o.div,{"data-state":y(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});_.displayName=g;function v(e,t){return`${Math.round(e/t*100)}%`}function y(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function b(e){return typeof e==`number`}function x(e){return b(e)&&!isNaN(e)&&e>0}function S(e,t){return b(e)&&!isNaN(e)&&e<=t&&e>=0}function C(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${u}\`.`}function w(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
|
-
- a positive number
|
|
3
|
-
- less than the value passed to \`max\` (or ${u} if no \`max\` prop is set)
|
|
4
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
|
-
|
|
6
|
-
Defaulting to \`null\`.`}var T=h,E=_,D=r();function O(e){let t=(0,D.c)(16),n,r,a,o,s;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5]):({className:n,value:s,max:a,indeterminateFillPercent:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s);let l=typeof a==`number`&&a>0?a:100,u=typeof s==`number`&&s>=0&&s<=l?s/l*100:r??0,d=Math.min(100,Math.max(0,u)),f;t[6]===n?f=t[7]:(f=i(`relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted`,n),t[6]=n,t[7]=f);let p=`translateX(-${100-d}%)`,m;t[8]===p?m=t[9]:(m=(0,c.jsx)(E,{"data-slot":`progress-indicator`,className:`size-full flex-1 bg-primary transition-all motion-reduce:transition-none`,style:{transform:p}}),t[8]=p,t[9]=m);let h;return t[10]!==a||t[11]!==o||t[12]!==f||t[13]!==m||t[14]!==s?(h=(0,c.jsx)(T,{"data-slot":`progress`,value:s,max:a,className:f,...o,children:m}),t[10]=a,t[11]=o,t[12]=f,t[13]=m,t[14]=s,t[15]=h):h=t[15],h}export{O as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e,f as t,l as n,p as r,s as i,u as a}from"./trace-api-18gcBe0u.js";var o=class e{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,n){let r=new e(this._entries);return r._entries.set(t,n),r}removeEntry(t){let n=new e(this._entries);return n._entries.delete(t),n}removeEntries(...t){let n=new e(this._entries);for(let e of t)n._entries.delete(e);return n}clear(){return new e}},s=Symbol(`BaggageEntryMetadata`),c=a.instance();function l(e={}){return new o(new Map(Object.entries(e)))}function u(e){return typeof e!=`string`&&(c.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=``),{__TYPE__:s,toString(){return e}}}var d={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},f={set(e,t,n){e!=null&&(e[t]=n)}},p=i.getInstance(),m=class{inject(e,t){}extract(e,t){return e}fields(){return[]}},h=n(`OpenTelemetry Baggage Key`);function g(e){return e.getValue(h)||void 0}function _(){return g(i.getInstance().active())}function v(e,t){return e.setValue(h,t)}function y(e){return e.deleteValue(h)}var b=`propagation`,x=new m,S=class n{constructor(){this.createBaggage=l,this.getBaggage=g,this.getActiveBaggage=_,this.setBaggage=v,this.deleteBaggage=y}static getInstance(){return this._instance||=new n,this._instance}setGlobalPropagator(e){return t(b,e,a.instance())}inject(e,t,n=f){return this._getGlobalPropagator().inject(e,t,n)}extract(e,t,n=d){return this._getGlobalPropagator().extract(e,t,n)}fields(){return this._getGlobalPropagator().fields()}disable(){r(b,a.instance())}_getGlobalPropagator(){return e(b)||x}}.getInstance();export{p as n,u as r,S as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-QBLGF6JB-Cv0vVCzu.js";export{e as createRadarServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-5TONJI2A-CrYz1k-D.js";export{e as createRailroadServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-5HE753X5-FuqeM3Lk.js";export{e as createRailroadAbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-U6XO7XAA-Cek9_Khm.js";export{e as createRailroadEbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-JG7HCLWE-Ccv3ZGae.js";export{e as createRailroadPegServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{Mn as n,Zn as r,a as i,z as a}from"./DocumentContext-C5MsfaP5.js";import{t as o}from"./react-f2sANaYj.js";import{n as s,r as c}from"./dist-Nvb76hAm.js";import{t as l}from"./compiler-runtime-BfE3aGVn.js";import{l as u,s as d}from"./local-menu-action-bus-CIYp0C2E.js";import{t as f}from"./utils-CPqDy6Hr.js";import{D as p,E as m,a as h,c as g,g as _,h as v,k as y,l as b,n as x,o as S,r as C,s as w,t as T,u as E}from"./SkillInstallMenu-BlJ3yvrO.js";import{t as D}from"./button-CA0dewJJ.js";import{i as O,n as k,t as A}from"./tooltip-DHXgxWLL.js";import{a as j,c as M,i as N,n as P,o as ee,r as F,s as te,t as ne}from"./dialog-HdfR4WGm.js";import{C as I,E as L,N as R,T as z,_ as B,c as V,d as H,f as U,g as W,i as G,l as K,m as q,n as J,p as Y,r as X,u as re,v as ie,w as ae}from"./terminal-cli-display-DgjEIipF.js";import{a as oe,d as se,f as ce,i as le,o as ue,p as de,u as fe}from"./dropdown-menu-CLgDYkh1.js";import{t as pe}from"./label-B5yNUINo.js";import{Bn as me,Gn as he,Hn as ge,Kn as _e,Ln as ve,Lo as ye,Mo as be,Rn as xe,Wn as Se,Xi as Ce,Xt as we,Zt as Te,bn as Ee,ct as De,dn as Oe,jo as ke,jt as Ae,ko as je,lt as Me,oo as Ne,qn as Pe,vn as Fe,xn as Ie,zn as Le}from"./dist-trrvycoA.js";import{n as Z}from"./dist-D81TFAXh.js";import{i as Re}from"./use-settings-route-BD8IIMFP.js";import{t as ze}from"./dist-XgwTV-oh2.js";import{f as Be,l as Ve,m as He,n as Ue,p as We,r as Ge,u as Ke}from"./documents-events-DqgIF3r-.js";import{h as qe}from"./use-apply-config-color-theme-IkrRwps0.js";import{t as Je}from"./parse-api-error-DsopQ8yv.js";import{n as Ye,t as Xe}from"./workspace-paths-CKUFX0v6.js";import{t as Ze}from"./use-workspace-BFQB2TMt.js";import{t as Qe}from"./createLucideIcon-Bhw2PmPp.js";import{t as $e}from"./arrow-up-right-CGe6dTck.js";import{t as et}from"./RegisteredAgentIcon-CP1iDML-.js";import{n as tt}from"./CopyButton-CKyZY1PL.js";import{n as nt,r as rt}from"./ManagedArtifactProperties-DCJD5dTU.js";import{t as it}from"./folder-open-BapQa7r-.js";import{t as at}from"./use-open-skill-Dg7SiZGY.js";import{t as ot}from"./list-plus-CT84Vd_h.js";import{t as st}from"./trash-2-Co21mefL.js";import{a as ct,c as lt,f as ut}from"./skill-scope-CdhbojXK.js";import{t as dt}from"./input-lp6-d0mX.js";import{J as ft,q as pt,x as mt}from"./navigation-targets-CN8Zdcbd.js";import{t as ht}from"./badge-BG5JKjNK.js";import{F as gt,P as _t,T as vt,a as yt,b as bt,h as xt,n as St,r as Ct,t as wt,u as Tt,w as Et}from"./skills-api-n0_XwDZz.js";import{n as Dt}from"./clipboard-adapter-DqemxSWT.js";import{t as Ot}from"./DiffView-B-B3fi5F.js";import{n as kt}from"./platform-labels-B2q9roOE.js";var Q=t(),$=e(o(),1),At=l();function jt(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 Mt(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=Je(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:ze._({id:`1vn0CI`})}}return!i||typeof i.status!=`string`?{ok:!1,reason:`parse-error`,message:ze._({id:`NoY1k4`})}:i.status===`failed`?{ok:!1,reason:`build-failed`,message:i.buildError??ze._({id:`MrUmCD`})}:{ok:!0,path:i.outputPath,handoffWarning:i.handoffError?.message}}}}function Nt(){if(typeof window>`u`)return null;let e=window.okDesktop?.skill;return e?jt(e):Mt()}var Pt=`ok:skill:cowork:installed`,Ft=`1`,It=250,Lt=`/api/skill/install-state`;function Rt(e){return`${Pt}:v${e}`}var zt=new Map;async function Bt(e={},t={}){let n=t.force?`__force__`:`__default__`,r=zt.get(n);if(r)return r;let i=Vt(e,t);return zt.set(n,i),i.finally(()=>{zt.get(n)===i&&zt.delete(n)}),i}async function Vt(e,t){let n=e.installer===void 0?Nt():e.installer,r=Ht(e.storage),i=e.fetchSnapshot??Wt,a=e.serverTimeoutMs??It,o=null;if(!t.force){try{o=await Gt(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=Rt(o?.currentVersion??e.fallbackSkillVersion??Ut());if(!t.force&&r?.getItem(s)===Ft)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,Ft)}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 Ht(e){if(e!==void 0)return e;if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function Ut(){return typeof window>`u`?`unknown`:window.okDesktop?.appVersion??`unknown`}async function Wt(){let e;try{e=await fetch(Lt,{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 Gt(e,t){return Promise.race([e,new Promise(e=>{setTimeout(()=>e(null),t)})])}function Kt(e){return Bt({},e)}function qt(){return Bt({},{force:!0})}async function Jt(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 Yt(e,t={}){let n=t.fetch??globalThis.fetch.bind(globalThis);switch(e.target){case`claude-cowork`:return Jt({target:`claude-cowork`,url:Fe({mode:`cowork`},e)},n);case`claude-code`:return Jt({target:`claude-code`,url:Fe({mode:`code`},e)},n);case`codex`:return Jt({target:`codex`,url:Ee(e)},n);case`cursor`:return Jt({target:`cursor`,url:Ie(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 Xt(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)}`)}}var Zt=`open-knowledge:agent-thread-launch`;function Qt(e,t=typeof window>`u`?new EventTarget:window){u({kind:`agent-thread`,...e},t)||t.dispatchEvent(new CustomEvent(Zt,{detail:e}))}function $t(e,t=typeof window>`u`?new EventTarget:window){let n=t=>{let n=t instanceof CustomEvent?t.detail:void 0;n&&typeof n.agentId==`string`&&e(n)};return t.addEventListener(Zt,n),()=>t.removeEventListener(Zt,n)}function en(e){if(!e.docName||!e.workspace)return null;let t=Xe(e.docName),{contentDir:n,pathSeparator:r}=e.workspace;return{docContext:{relativePath:t},projectDir:n,docPath:Ye(n,t,r)}}function tn(e){return e.workspace?.contentDir?{docContext:null,projectDir:e.workspace.contentDir,docPath:``}:null}function nn(e){return e.workspace?.contentDir?{docContext:null,createDescription:e.description,createScenario:e.scenario,createMentions:e.mentions,projectDir:e.workspace.contentDir,docPath:``}:null}function rn(e){return L(e.installUrl).then(()=>void 0)}function an(e){return!e.workspace?.contentDir||!e.folderRelativePath?null:{docContext:null,folderRelativePath:e.folderRelativePath,projectDir:e.workspace.contentDir,docPath:``}}function on(e){return!e.workspace?.contentDir||!e.skillName?null:{docContext:null,skill:{name:e.skillName,scope:e.scope},projectDir:e.workspace.contentDir,docPath:``}}function sn(e){if(!e.workspace?.contentDir)return null;let{contentDir:t,pathSeparator:n}=e.workspace;if(e.docName){let r=e.docRelativePath??Xe(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:Ye(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 cn(e){return`Opened in ${e}.`}function ln(e,t=1){return t>=3?ze._({id:`bi2C2s`,values:{displayName:e}}):t===2?ze._({id:`1J0c0X`,values:{displayName:e}}):ze._({id:`Xs7IcT`,values:{displayName:e}})}function un(e){return e>=3?null:e===2?ze._({id:`Xp94R1`}):ze._({id:`6gRgw8`})}function dn(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 fn(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 pn(e,t,n,r){return e.compose?Oe(fn(e.compose,t,n,r)):e.selection?Se({...e.selection,target:t,transport:r}):e.skill?he(e.skill.name,e.skill.scope,n):e.ask?ve(e.ask.relativePath,e.ask.instruction,n,t,r):Ce(e.docContext===null?e.folderRelativePath?ge(e.folderRelativePath,n,e.instruction,r):e.createDescription===void 0?Le(n,e.instruction,r):xe(e.createDescription,n,e.createScenario??`new-project`,e.createMentions??[],r):me(e.docContext.relativePath,n,e.instruction,r))}function mn(e,t){let n=typeof e.instruction==`string`&&e.instruction.trim()!==``;return e.compose!==void 0||e.createDescription!==void 0||n?`${De} ${pn(e,we[t].handoffTarget,!1,`terminal`)}`:_e(e.docContext?.relativePath??null)}function hn(e){let t=typeof e.instruction==`string`&&e.instruction.trim()!==``;return e.compose!==void 0||e.createDescription!==void 0||t?`${Me} ${pn(e,`claude-code`,!1,`terminal`)}`:Pe(e.docContext?.relativePath??null)}function gn(e){let t=e.docContext?.relativePath;return typeof t!=`string`||t===``?null:t.replace(/\.(md|mdx)$/,``)}function _n(e){let t=[e.compose?.instruction,e.selection?.instruction,e.ask?.instruction,e.createDescription,e.instruction];for(let e of t)if(typeof e==`string`&&e.trim()!==``)return e;return null}function vn(e,t){Qt({agentSource:t?.agent?.source??`registry`,agentId:t?.agent?.id??``,prompt:hn(e),docName:gn(e),titleHint:_n(e)})}async function yn(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(ze._({id:`wbpoGe`,values:{message:t}})),{ok:!1,reason:`dispatch-error`,detail:`install-error: ${t}`}}if(e.kind===`installed-now`)return n.toast.success(ze._({id:`PezM4_`})),{ok:!0};if(e.kind===`install-failed`){let t=e.message??e.reason;return n.toast.error(ze._({id:`wbpoGe`,values:{message:t}})),{ok:!1,reason:`dispatch-error`,detail:`install-failed: ${t}`}}}let i={target:e,projectDir:t.projectDir,docPath:t.docPath,prompt:pn(t,e,n.autoOpen,`url`)},a=await n.dispatchHandoff(i),o=n.isElectronHost()?`electron`:`web`,s=n.now().toISOString(),c=t.compose,l=dn(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(cn(u));else{let i=un(r),a=ln(u,r);i===null?n.toast.error(a):n.toast.error(a,{action:{label:i,onClick:()=>{yn(e,t,n,r+1)}}})}return a}function bn(e){return ae.find(t=>t.id===e)?.displayName??e}function xn(e=typeof window<`u`?window:void 0){return e?.okDesktop!=null}function Sn(){return{dispatchHandoff:Yt,recordHandoff:Xt,toast:{success:e=>{Z.success(e)},error:(e,t)=>{Z.error(e,t?{action:t.action}:void 0)}},now:()=>new Date,isElectronHost:()=>xn(),getDisplayName:bn,ensureCoworkSkillInstalled:Kt,autoOpen:!0}}function Cn(){let e=(0,At.c)(2),{merged:t}=qe(),n=t?.appearance?.preview?.autoOpen??!0,r;return e[0]===n?r=e[1]:(r={dispatch:(e,t)=>yn(e,t,{...Sn(),autoOpen:n}),reinstallCoworkSkill:qt},e[0]=n,e[1]=r),r}var wn=Qe(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),Tn=Qe(`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`}]]),En=Qe(`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`}]]);function Dn(e){let t=(0,At.c)(2),{displayName:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Q.jsx)(s,{id:`CZBqrX`,values:{displayName:n}}),t[0]=n,t[1]=r),r}function On(e){let t=(0,At.c)(2),{displayName:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Q.jsx)(s,{id:`1vczDE`,values:{displayName:n}}),t[0]=n,t[1]=r),r}function kn(e){let t=(0,At.c)(2),{agentName:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Q.jsx)(s,{id:`g4e0hS`,values:{agentName:n}}),t[0]=n,t[1]=r),r}function An(e){let t=(0,At.c)(23),{onAddProperty:n,className:r,problemCount:i,problemMessages:a}=e,o=i===void 0?0:i,{_:l}=c(),u=o>0,d;t[0]!==l||t[1]!==u||t[2]!==o?(d=l(u?{id:`3KOHFt`,values:{problemCount:o}}:{id:`81H_23`}),t[0]=l,t[1]=u,t[2]=o,t[3]=d):d=t[3];let p=d,m;t[4]===r?m=t[5]:(m=f(`relative`,r),t[4]=r,t[5]=m);let h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Q.jsx)(ot,{}),t[6]=h):h=t[6];let g;t[7]!==u||t[8]!==o?(g=u?(0,Q.jsx)(ht,{variant:`notification`,"aria-hidden":`true`,"data-testid":`add-properties-problem-badge`,className:`pointer-events-none absolute -top-0.5 -right-0.5 size-3.5 rounded-full p-0 font-sans text-[9px] leading-none tabular-nums`,children:o>9?`9+`:o}):null,t[7]=u,t[8]=o,t[9]=g):g=t[9];let _;t[10]===g?_=t[11]:(_=(0,Q.jsxs)(O,{children:[h,g]}),t[10]=g,t[11]=_);let v;t[12]!==p||t[13]!==n||t[14]!==m||t[15]!==_?(v=(0,Q.jsx)(D,{variant:`ghost`,size:`icon`,"aria-label":p,onClick:n,"data-testid":`add-properties-button`,className:m,asChild:!0,children:_}),t[12]=p,t[13]=n,t[14]=m,t[15]=_,t[16]=v):v=t[16];let y;t[17]!==u||t[18]!==a?(y=(0,Q.jsx)(k,{side:`bottom`,children:u?(0,Q.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,Q.jsx)(`span`,{className:`font-medium`,children:(0,Q.jsx)(s,{id:`AwrGuz`})}),a?.map(jn),(0,Q.jsx)(`span`,{className:`pt-0.5 opacity-70`,children:(0,Q.jsx)(s,{id:`yh5-4s`})})]}):(0,Q.jsx)(s,{id:`81H_23`})}),t[17]=u,t[18]=a,t[19]=y):y=t[19];let b;return t[20]!==v||t[21]!==y?(b=(0,Q.jsxs)(A,{children:[v,y]}),t[20]=v,t[21]=y,t[22]=b):b=t[22],b}function jn(e,t){return(0,Q.jsx)(`span`,{className:`opacity-90`,children:e},t)}function Mn(e){return e?ze._({id:`wTcjov`}):null}function Nn(e){let t=(0,At.c)(47),{_:r}=c(),i=a(),o=m(),l=R(),u=I();if(i)return null;let{input:f,installStates:p,dispatch:h}=e,g=f===null,_,v,y,b,x,S,C,w,T,E,D;if(t[0]!==r||t[1]!==h||t[2]!==f||t[3]!==g||t[4]!==p||t[5]!==u||t[6]!==l||t[7]!==o){let e=Mn(g),i;t[19]!==p||t[20]!==u?(i=e=>W(u,e.id,p[e.id]?.installed),t[19]=p,t[20]=u,t[21]=i):i=t[21];let a=z.filter(i),c;t[22]===u?c=t[23]:(c=e=>B(u,e.source,e.id,!0,e.supported),t[22]=u,t[23]=c);let d=l.filter(c),m=o?Te.filter(e=>ie(u,e,o.installedClis)):[];y=a.length>0,b=o!==null&&m.length>0,x=d.length>0,v=U,t[24]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsxs)(q,{children:[(0,Q.jsx)(n,{"aria-hidden":`true`}),(0,Q.jsx)(s,{id:`O7_W_a`})]}),t[24]=D):D=t[24],_=Y,S=`max-h-80`,C=x?(0,Q.jsxs)(V,{"aria-label":r({id:`vPKX2i`}),children:[(0,Q.jsxs)(re,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`RXEbZy`}),(0,Q.jsx)(G,{})]}),d.map(t=>{let n=t.name;return(0,Q.jsxs)(K,{onSelect:()=>{f!==null&&vn(f,{agent:{source:t.source,id:t.id}})},disabled:g,"data-testid":`empty-space-open-in-thread-${t.id}`,"aria-label":r(e?{id:`7Ag-Xu`,values:{agentName:n,hint:e}}:{id:`g4e0hS`,values:{agentName:n}}),children:[(0,Q.jsx)(et,{agentId:t.id,iconUrl:t.iconUrl,className:`size-4`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},`${t.source}:${t.id}`)})]}):null,t[25]!==y||t[26]!==b||t[27]!==x?(w=x&&(b||y)?(0,Q.jsx)(H,{}):null,t[25]=y,t[26]=b,t[27]=x,t[28]=w):w=t[28],T=b?(0,Q.jsxs)(V,{"aria-label":r({id:`ALhMYW`}),children:[(0,Q.jsx)(re,{children:(0,Q.jsx)(s,{id:`ALhMYW`})}),m.map(t=>{let{displayName:n}=we[t];return(0,Q.jsxs)(K,{onSelect:()=>{f!==null&&o.launchInTerminal(f,t)},disabled:g,"data-testid":`empty-space-open-in-terminal-${t}`,"aria-label":r(e?{id:`AIn2Yv`,values:{displayName:n,hint:e}}:{id:`QYfQdv`,values:{displayName:n}}),children:[(0,Q.jsx)(X,{id:J(t),"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,E=y?(0,Q.jsxs)(Q.Fragment,{children:[b?(0,Q.jsx)(H,{}):null,(0,Q.jsxs)(V,{"aria-label":r({id:`BwKH4d`}),children:[(0,Q.jsxs)(re,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`BwKH4d`}),(0,Q.jsx)($e,{"aria-hidden":`true`,className:`size-3`})]}),a.map(t=>{let n=!g,{displayName:i}=t,a=r(e?{id:`rl35Vz`,values:{displayName:i,hint:e}}:{id:`wHZ58m`,values:{displayName:i}});return(0,Q.jsxs)(K,{disabled:!n,onSelect:()=>{if(f){if(p[t.id]?.installed!==!0){rn(t);return}h(t.id,f)}},"data-testid":`empty-space-open-in-${t.id}`,"aria-label":a,children:[(0,Q.jsx)(X,{id:t.id,"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(Dn,{displayName:i})}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null,t[0]=r,t[1]=h,t[2]=f,t[3]=g,t[4]=p,t[5]=u,t[6]=l,t[7]=o,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x,t[13]=S,t[14]=C,t[15]=w,t[16]=T,t[17]=E,t[18]=D}else _=t[8],v=t[9],y=t[10],b=t[11],x=t[12],S=t[13],C=t[14],w=t[15],T=t[16],E=t[17],D=t[18];let O;t[29]!==y||t[30]!==b||t[31]!==x?(O=x||b||y?(0,Q.jsx)(H,{}):null,t[29]=y,t[30]=b,t[31]=x,t[32]=O):O=t[32];let k;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Q.jsx)(d,{"aria-hidden":`true`}),t[33]=k):k=t[33];let A;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsxs)(K,{onSelect:Re,"data-testid":`empty-space-open-in-settings`,children:[k,(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(s,{id:`jRAGrQ`})})]}),t[34]=A):A=t[34];let j;t[35]!==_||t[36]!==S||t[37]!==C||t[38]!==w||t[39]!==T||t[40]!==E||t[41]!==O?(j=(0,Q.jsxs)(_,{className:S,children:[C,w,T,E,O,A]}),t[35]=_,t[36]=S,t[37]=C,t[38]=w,t[39]=T,t[40]=E,t[41]=O,t[42]=j):j=t[42];let M;return t[43]!==v||t[44]!==D||t[45]!==j?(M=(0,Q.jsxs)(v,{children:[D,j]}),t[43]=v,t[44]=D,t[45]=j,t[46]=M):M=t[46],M}function Pn(e){return e?ze._({id:`wTcjov`}):null}function Fn(e){let t=(0,At.c)(48),{_:r}=c(),i=a(),o=m(),l=R(),u=I();if(i)return null;let{input:f,installStates:p,dispatch:h,onBeforeLaunch:g}=e,_=f===null,v,y,b,x,S,C,w,T,E,D,O;if(t[0]!==r||t[1]!==h||t[2]!==f||t[3]!==_||t[4]!==p||t[5]!==g||t[6]!==u||t[7]!==l||t[8]!==o){let e=Pn(_),i;t[20]!==p||t[21]!==u?(i=e=>W(u,e.id,p[e.id]?.installed),t[20]=p,t[21]=u,t[22]=i):i=t[22];let a=z.filter(i),c;t[23]===u?c=t[24]:(c=e=>B(u,e.source,e.id,!0,e.supported),t[23]=u,t[24]=c);let d=l.filter(c),m=o?Te.filter(e=>ie(u,e,o.installedClis)):[];b=a.length>0,x=o!==null&&m.length>0,S=d.length>0,y=se,t[25]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,Q.jsxs)(de,{children:[(0,Q.jsx)(n,{"aria-hidden":`true`}),(0,Q.jsx)(s,{id:`O7_W_a`})]}),t[25]=O):O=t[25],v=ce,C=`max-h-80`,w=S?(0,Q.jsxs)(le,{"aria-label":r({id:`vPKX2i`}),children:[(0,Q.jsxs)(ue,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`RXEbZy`}),(0,Q.jsx)(G,{})]}),d.map(t=>{let n=t.name;return(0,Q.jsxs)(oe,{onSelect:()=>{f!==null&&(g?.(),vn(f,{agent:{source:t.source,id:t.id}}))},disabled:_,"data-testid":`file-tree-open-in-thread-${t.id}`,"aria-label":r(e?{id:`7Ag-Xu`,values:{agentName:n,hint:e}}:{id:`g4e0hS`,values:{agentName:n}}),children:[(0,Q.jsx)(et,{agentId:t.id,iconUrl:t.iconUrl,className:`size-4`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},`${t.source}:${t.id}`)})]}):null,t[26]!==b||t[27]!==x||t[28]!==S?(T=S&&(x||b)?(0,Q.jsx)(fe,{}):null,t[26]=b,t[27]=x,t[28]=S,t[29]=T):T=t[29],E=x?(0,Q.jsxs)(le,{"aria-label":r({id:`ALhMYW`}),children:[(0,Q.jsx)(ue,{children:(0,Q.jsx)(s,{id:`ALhMYW`})}),m.map(t=>{let{displayName:n}=we[t];return(0,Q.jsxs)(oe,{onSelect:()=>{f!==null&&(g?.(),o.launchInTerminal(f,t))},disabled:_,"data-testid":`file-tree-open-in-terminal-${t}`,"aria-label":r(e?{id:`AIn2Yv`,values:{displayName:n,hint:e}}:{id:`QYfQdv`,values:{displayName:n}}),children:[(0,Q.jsx)(X,{id:J(t),"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,D=b?(0,Q.jsxs)(Q.Fragment,{children:[x?(0,Q.jsx)(fe,{}):null,(0,Q.jsxs)(le,{"aria-label":r({id:`BwKH4d`}),children:[(0,Q.jsxs)(ue,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`BwKH4d`}),(0,Q.jsx)($e,{"aria-hidden":`true`,className:`size-3`})]}),a.map(t=>{let n=!_,{displayName:i}=t,a=r(e?{id:`rl35Vz`,values:{displayName:i,hint:e}}:{id:`wHZ58m`,values:{displayName:i}});return(0,Q.jsxs)(oe,{disabled:!n,onSelect:()=>{if(f){if(g?.(),p[t.id]?.installed!==!0){rn(t);return}h(t.id,f)}},"data-testid":`file-tree-open-in-${t.id}`,"aria-label":a,children:[(0,Q.jsx)(X,{id:t.id,"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(Dn,{displayName:i})}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null,t[0]=r,t[1]=h,t[2]=f,t[3]=_,t[4]=p,t[5]=g,t[6]=u,t[7]=l,t[8]=o,t[9]=v,t[10]=y,t[11]=b,t[12]=x,t[13]=S,t[14]=C,t[15]=w,t[16]=T,t[17]=E,t[18]=D,t[19]=O}else v=t[9],y=t[10],b=t[11],x=t[12],S=t[13],C=t[14],w=t[15],T=t[16],E=t[17],D=t[18],O=t[19];let k;t[30]!==b||t[31]!==x||t[32]!==S?(k=S||x||b?(0,Q.jsx)(fe,{}):null,t[30]=b,t[31]=x,t[32]=S,t[33]=k):k=t[33];let A;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsx)(d,{"aria-hidden":`true`}),t[34]=A):A=t[34];let j;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Q.jsxs)(oe,{onSelect:Re,"data-testid":`file-tree-open-in-settings`,children:[A,(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(s,{id:`jRAGrQ`})})]}),t[35]=j):j=t[35];let M;t[36]!==v||t[37]!==C||t[38]!==w||t[39]!==T||t[40]!==E||t[41]!==D||t[42]!==k?(M=(0,Q.jsxs)(v,{className:C,children:[w,T,E,D,k,j]}),t[36]=v,t[37]=C,t[38]=w,t[39]=T,t[40]=E,t[41]=D,t[42]=k,t[43]=M):M=t[43];let N;return t[44]!==y||t[45]!==O||t[46]!==M?(N=(0,Q.jsxs)(y,{children:[O,M]}),t[44]=y,t[45]=O,t[46]=M,t[47]=N):N=t[47],N}var In=/^\.[A-Za-z0-9_-]+\/skills\/([^/]+)\/(.+)$/;function Ln(e){let t=be(e);if(t)return{scope:`project`,name:t.name,rel:t.rel};let n=je(e);if(n)return{scope:`global`,name:n.name,rel:n.rel};let r=ke(e);if(r?.kind===`skill`)return{scope:r.scope,name:r.name,rel:r.rel};let i=In.exec(e);return i?{scope:`project`,name:i[1],rel:i[2]}:null}function Rn(e,t,n){return e.filter(e=>{let r=mt(e);if(r.kind===`skill-file`)return r.scope===t&&r.name===n;if(r.kind!==`doc`)return!1;let i=Ln(r.docName);return i?.scope===t&&i.name===n})}function zn(e,t,n){let r=pt(t,n);return e.filter(e=>{let i=mt(e);return i.kind===`skill-file`?i.scope===t.scope&&i.name===t.name&&i.path===n:i.kind===`doc`&&i.docName===r})}function Bn(e,t,n){let r=Ln(e);if(!r||r.rel===null)return null;let i=t.find(e=>e.scope===r.scope&&e.name===r.name);if(!i||i.managed)return null;let a=`references/${r.rel}${n}`;return pt(i,a)===e?{skill:i,filePath:a}:null}function Vn(e,t,n=(e,t)=>Be(e,t)||We(e,t)){let r=new Map(t.map(e=>[`${e.scope}\u0000${e.name}`,e])),i=[],a=new Set;for(let t of e){let e=Ln(t);e!==null&&e.rel===null&&a.add(`${e.scope}\u0000${e.name}`)}for(let t of e){let e=Ln(t);if(!e||r.has(`${e.scope}\u0000${e.name}`))continue;let o=e.scope===`project`?`global`:`project`,s=r.get(`${o}\u0000${e.name}`);e.rel===null&&s!==void 0?i.push({kind:`retarget`,fromDocName:t,toDocName:ft(s)}):n(e.scope,e.name)||(s!==void 0&&!a.has(`${e.scope}\u0000${e.name}`)?(a.add(`${e.scope}\u0000${e.name}`),i.push({kind:`retarget`,fromDocName:t,toDocName:ft(s)})):i.push({kind:`close`,docName:t}))}return i}function Hn(){let e=(0,At.c)(15),{openTabs:t,closeDocument:n}=i(),r=nt(),a;e[0]===t?a=e[1]:(a=t.some(Wn),e[0]=t,e[1]=a);let o=a,s;e[2]===o?s=e[3]:(s={enabled:o},e[2]=o,e[3]=s);let c=gt(s),l=(0,$.useRef)(null),u;e[4]!==n||e[5]!==t||e[6]!==r||e[7]!==c.data||e[8]!==c.status?(u=()=>{if(c.status!==`ready`)return;let e=c.data,i=`${t.join(``)}\u0002${e.map(Un).sort().join(``)}\u0002${He()}`;if(l.current===i)return;l.current=i;let a=Vn(t,e);for(let e of a)e.kind===`retarget`?r(e.fromDocName,e.toDocName):n(e.docName)},e[4]=n,e[5]=t,e[6]=r,e[7]=c.data,e[8]=c.status,e[9]=u):u=e[9];let d;e[10]!==n||e[11]!==t||e[12]!==r||e[13]!==c?(d=[c,t,r,n],e[10]=n,e[11]=t,e[12]=r,e[13]=c,e[14]=d):d=e[14],(0,$.useEffect)(u,d)}function Un(e){return`${e.scope}\u0000${e.name}`}function Wn(e){return Ln(e)!==null}function Gn(e){let t=(0,At.c)(19),{skill:n,onOpenChange:r,onDeleted:a}=e,{_:o}=c(),{setSkillsSidebar:s,closeTabs:l,openTabs:u}=i(),[d,f]=(0,$.useState)(!1),p;t[0]!==o||t[1]!==l||t[2]!==a||t[3]!==r||t[4]!==u||t[5]!==s?(p=async function(e){s(!0),f(!0);let t=await St(e.scope,e.name);if(f(!1),!t.ok){let{error:e}=t;Z.error(o({id:`AtBdnD`,values:{error:e}}));return}Z.success(o({id:`h9QFb9`,values:{0:e.name}})),l(Rn(u,e.scope,e.name),{force:!0}),a(),r(!1)},t[0]=o,t[1]=l,t[2]=a,t[3]=r,t[4]=u,t[5]=s,t[6]=p):p=t[6];let m=p,h=n!==null,g;t[7]!==d||t[8]!==r?(g=e=>{!e&&!d&&r(!1)},t[7]=d,t[8]=r,t[9]=g):g=t[9];let y;t[10]!==o||t[11]!==d||t[12]!==m||t[13]!==n?(y=n?(0,Q.jsx)(v,{itemName:o({id:`ExUzM4`,values:{0:n.name}}),isSubmitting:d,onDelete:()=>m(n),customDescription:n.origin?.source&&/\/plugins\/(?:cache|marketplaces)\//.test(n.origin.source)?o({id:`WnsbUT`,values:{0:n.path}}):o({id:`E1Da_b`,values:{0:n.path}})}):null,t[10]=o,t[11]=d,t[12]=m,t[13]=n,t[14]=y):y=t[14];let b;return t[15]!==h||t[16]!==g||t[17]!==y?(b=(0,Q.jsx)(_,{open:h,onOpenChange:g,children:y}),t[15]=h,t[16]=g,t[17]=y,t[18]=b):b=t[18],b}function Kn(e){let t=e.split(`/`);return t.some(e=>e===``||e===`.`||e===`..`)||t.length===0||t.length===1&&t[0].toLowerCase()===`skill.md`?!1:!/\s/.test(e)}function qn(e){let t=(0,At.c)(66),{target:n,onOpenChange:r}=e,{_:a}=c(),{openTarget:o}=i(),l=(0,$.useId)(),[u,d]=(0,$.useState)(``),[f,p]=(0,$.useState)(!1),m;t[0]===n?m=t[1]:(m=()=>{n&&d(n.prefix??`references/`)},t[0]=n,t[1]=m);let h=n?.skill.scope,g=n?.skill.name,_=n?.prefix,v;if(t[2]!==h||t[3]!==g||t[4]!==_?(v=[h,g,_],t[2]=h,t[3]=g,t[4]=_,t[5]=v):v=t[5],(0,$.useEffect)(m,v),!n)return null;let y,b,x,S;t[6]!==u||t[7]!==f?(S=u.trim(),b=S===``||!Kn(S),y=!b&&!f,x=S.includes(`/`)?S.split(`/`).slice(0,-1).join(`/`):null,t[6]=u,t[7]=f,t[8]=y,t[9]=b,t[10]=x,t[11]=S):(y=t[8],b=t[9],x=t[10],S=t[11]);let C=x,w;t[12]!==a||t[13]!==y||t[14]!==r||t[15]!==o||t[16]!==n||t[17]!==S?(w=async function(){if(!n||!y)return;p(!0);let e=/\.mdx?$/i.test(S),t=await _t({scope:n.skill.scope,name:n.skill.name,path:S,content:e?`# ${S.split(`/`).pop()?.replace(/\.mdx?$/i,``)??``}\n`:``});if(p(!1),!t.ok){Z.error(a({id:`a_2_uB`,values:{0:t.error,trimmed:S}}));return}if(Z.success(a({id:`MXSt4t`,values:{0:t.path}})),e){let e=pt(n.skill,S);o({kind:`doc`,target:e,docName:e})}r(!1)},t[12]=a,t[13]=y,t[14]=r,t[15]=o,t[16]=n,t[17]=S,t[18]=w):w=t[18];let T=w,E;t[19]!==r||t[20]!==f?(E=e=>{!e&&!f&&r(!1)},t[19]=r,t[20]=f,t[21]=E):E=t[21];let O;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`wQvvZY`})}),t[22]=O):O=t[22];let k;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Q.jsxs)(te,{children:[O,(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`lM4c-I`})})]}),t[23]=k):k=t[23];let A;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsx)(s,{id:`I6gXOa`}),t[24]=A):A=t[24];let P;t[25]===l?P=t[26]:(P=(0,Q.jsx)(pe,{htmlFor:l,children:A}),t[25]=l,t[26]=P);let F;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>d(e.target.value),t[27]=F):F=t[27];let I=b&&S!==``,L;t[28]===T?L=t[29]:(L=e=>{e.key===`Enter`&&T()},t[28]=T,t[29]=L);let R;t[30]!==l||t[31]!==u||t[32]!==I||t[33]!==L?(R=(0,Q.jsx)(dt,{id:l,value:u,onChange:F,placeholder:`references/notes.md`,"aria-invalid":I,onKeyDown:L}),t[30]=l,t[31]=u,t[32]=I,t[33]=L,t[34]=R):R=t[34];let z;t[35]!==C||t[36]!==b||t[37]!==S?(z=b&&S!==``?(0,Q.jsx)(`p`,{className:`text-destructive text-xs`,children:(0,Q.jsx)(s,{id:`fVzizW`})}):C?(0,Q.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:(0,Q.jsx)(s,{id:`9lso1Y`,values:{folderPart:C},components:{0:(0,Q.jsx)(`span`,{className:`font-mono text-foreground/80`})}})}):null,t[35]=C,t[36]=b,t[37]=S,t[38]=z):z=t[38];let B;t[39]!==P||t[40]!==R||t[41]!==z?(B=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[P,R,z]}),t[39]=P,t[40]=R,t[41]=z,t[42]=B):B=t[42];let V;t[43]===r?V=t[44]:(V=()=>r(!1),t[43]=r,t[44]=V);let H;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,Q.jsx)(s,{id:`dEgA5A`}),t[45]=H):H=t[45];let U;t[46]!==f||t[47]!==V?(U=(0,Q.jsx)(D,{variant:`outline`,onClick:V,disabled:f,children:H}),t[46]=f,t[47]=V,t[48]=U):U=t[48];let W;t[49]===T?W=t[50]:(W=()=>void T(),t[49]=T,t[50]=W);let G=!y,K;t[51]===f?K=t[52]:(K=f?(0,Q.jsx)(s,{id:`E9bKSA`}):(0,Q.jsx)(s,{id:`hYgDIe`}),t[51]=f,t[52]=K);let q;t[53]!==W||t[54]!==G||t[55]!==K?(q=(0,Q.jsx)(D,{onClick:W,disabled:G,children:K}),t[53]=W,t[54]=G,t[55]=K,t[56]=q):q=t[56];let J;t[57]!==U||t[58]!==q?(J=(0,Q.jsxs)(ee,{children:[U,q]}),t[57]=U,t[58]=q,t[59]=J):J=t[59];let Y;t[60]!==B||t[61]!==J?(Y=(0,Q.jsxs)(N,{className:`sm:max-w-md`,children:[k,B,J]}),t[60]=B,t[61]=J,t[62]=Y):Y=t[62];let X;return t[63]!==Y||t[64]!==E?(X=(0,Q.jsx)(ne,{open:!0,onOpenChange:E,children:Y}),t[63]=Y,t[64]=E,t[65]=X):X=t[65],X}function Jn(e){let t=(0,At.c)(18),{target:n,onOpenChange:r}=e,{_:a}=c(),{setSkillsSidebar:o,closeTabs:s,openTabs:l}=i(),[u,d]=(0,$.useState)(!1),f;t[0]!==a||t[1]!==s||t[2]!==r||t[3]!==l||t[4]!==o?(f=async function(e){let{skill:t,filePath:n}=e;o(!0),d(!0);let i=await Ct({scope:t.scope,name:t.name,path:n});if(d(!1),!i.ok){Z.error(a({id:`CBT70t`,values:{0:i.error}}));return}if(!i.existed){Z.error(a({id:`q4efaG`,values:{filePath:n}})),r(!1);return}Z.success(a({id:`gOmloS`,values:{filePath:n}})),s(zn(l,t,n),{force:!0}),r(!1)},t[0]=a,t[1]=s,t[2]=r,t[3]=l,t[4]=o,t[5]=f):f=t[5];let p=f,m=n!==null,h;t[6]!==u||t[7]!==r?(h=e=>{!e&&!u&&r(!1)},t[6]=u,t[7]=r,t[8]=h):h=t[8];let g;t[9]!==a||t[10]!==u||t[11]!==p||t[12]!==n?(g=n?(0,Q.jsx)(v,{itemName:a({id:`wZPUJx`,values:{0:n.filePath}}),isSubmitting:u,onDelete:()=>p(n),customDescription:a({id:`ppzof_`,values:{0:ct(n.skill.path),1:n.filePath,2:n.skill.name}})}):null,t[9]=a,t[10]=u,t[11]=p,t[12]=n,t[13]=g):g=t[13];let y;return t[14]!==m||t[15]!==h||t[16]!==g?(y=(0,Q.jsx)(_,{open:m,onOpenChange:h,children:g}),t[14]=m,t[15]=h,t[16]=g,t[17]=y):y=t[17],y}function Yn(e){let t=(0,At.c)(64),{target:n,onOpenChange:r}=e,{_:i}=c(),a=nt(),o=(0,$.useId)(),[l,u]=(0,$.useState)(``),[d,f]=(0,$.useState)(!1),p;t[0]===n?p=t[1]:(p=()=>{n&&u(n.filePath)},t[0]=n,t[1]=p);let m=n?.skill.scope,h=n?.skill.name,g=n?.filePath,_;if(t[2]!==m||t[3]!==h||t[4]!==g?(_=[m,h,g],t[2]=m,t[3]=h,t[4]=g,t[5]=_):_=t[5],(0,$.useEffect)(p,_),!n)return null;let v,y,b;t[6]!==l||t[7]!==n.filePath?(y=l.trim(),b=y===n.filePath,v=y===``||!Kn(y),t[6]=l,t[7]=n.filePath,t[8]=v,t[9]=y,t[10]=b):(v=t[8],y=t[9],b=t[10]);let x=v,S=!x&&!b&&!d,C;t[11]!==i||t[12]!==S||t[13]!==r||t[14]!==a||t[15]!==n||t[16]!==y?(C=async function(){if(!n||!S)return;f(!0);let e=await Et({scope:n.skill.scope,name:n.skill.name,from:n.filePath,to:y});if(f(!1),!e.ok){Z.error(i({id:`11ukmX`,values:{0:e.error}}));return}e.fromDocName!==void 0&&e.toDocName!==void 0&&a(e.fromDocName,e.toDocName),Z.success(i({id:`XszXjc`,values:{0:e.to}})),r(!1)},t[11]=i,t[12]=S,t[13]=r,t[14]=a,t[15]=n,t[16]=y,t[17]=C):C=t[17];let w=C,T;t[18]!==r||t[19]!==d?(T=e=>{!e&&!d&&r(!1)},t[18]=r,t[19]=d,t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`yckias`})}),t[21]=E):E=t[21];let O;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,Q.jsxs)(te,{children:[E,(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`HzVAoz`})})]}),t[22]=O):O=t[22];let k;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Q.jsx)(s,{id:`I6gXOa`}),t[23]=k):k=t[23];let A;t[24]===o?A=t[25]:(A=(0,Q.jsx)(pe,{htmlFor:o,children:k}),t[24]=o,t[25]=A);let P;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(P=e=>u(e.target.value),t[26]=P):P=t[26];let F=x&&y!==``,I;t[27]===w?I=t[28]:(I=e=>{e.key===`Enter`&&w()},t[27]=w,t[28]=I);let L;t[29]!==o||t[30]!==l||t[31]!==F||t[32]!==I?(L=(0,Q.jsx)(dt,{id:o,value:l,onChange:P,"aria-invalid":F,onKeyDown:I}),t[29]=o,t[30]=l,t[31]=F,t[32]=I,t[33]=L):L=t[33];let R;t[34]!==x||t[35]!==y?(R=x&&y!==``?(0,Q.jsx)(`p`,{className:`text-destructive text-xs`,children:(0,Q.jsx)(s,{id:`fVzizW`})}):null,t[34]=x,t[35]=y,t[36]=R):R=t[36];let z;t[37]!==A||t[38]!==L||t[39]!==R?(z=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[A,L,R]}),t[37]=A,t[38]=L,t[39]=R,t[40]=z):z=t[40];let B;t[41]===r?B=t[42]:(B=()=>r(!1),t[41]=r,t[42]=B);let V;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,Q.jsx)(s,{id:`dEgA5A`}),t[43]=V):V=t[43];let H;t[44]!==d||t[45]!==B?(H=(0,Q.jsx)(D,{variant:`outline`,onClick:B,disabled:d,children:V}),t[44]=d,t[45]=B,t[46]=H):H=t[46];let U;t[47]===w?U=t[48]:(U=()=>void w(),t[47]=w,t[48]=U);let W=!S,G;t[49]===d?G=t[50]:(G=d?(0,Q.jsx)(s,{id:`tHKQ6j`}):(0,Q.jsx)(s,{id:`2wxgft`}),t[49]=d,t[50]=G);let K;t[51]!==U||t[52]!==W||t[53]!==G?(K=(0,Q.jsx)(D,{onClick:U,disabled:W,children:G}),t[51]=U,t[52]=W,t[53]=G,t[54]=K):K=t[54];let q;t[55]!==H||t[56]!==K?(q=(0,Q.jsxs)(ee,{children:[H,K]}),t[55]=H,t[56]=K,t[57]=q):q=t[57];let J;t[58]!==z||t[59]!==q?(J=(0,Q.jsxs)(N,{className:`sm:max-w-md`,children:[O,z,q]}),t[58]=z,t[59]=q,t[60]=J):J=t[60];let Y;return t[61]!==J||t[62]!==T?(Y=(0,Q.jsx)(ne,{open:!0,onOpenChange:T,children:J}),t[61]=J,t[62]=T,t[63]=Y):Y=t[63],Y}function Xn(e){let t=(0,At.c)(59),{target:n,onOpenChange:r}=e,{_:i}=c(),a=(0,$.useId)(),[o,l]=(0,$.useState)(null),[u,d]=(0,$.useState)(null),[f,p]=(0,$.useState)(!1),[m,h]=(0,$.useState)(!1),[g,_]=(0,$.useState)(``),[v,y]=(0,$.useState)(!1),b;t[0]===n?b=t[1]:(b=()=>{if(l(null),d(null),p(!1),h(!1),!n)return;let{skill:e,editor:t}=n,r=e.absolutePath?.slice(0,-`/${e.path}`.length)??null;if(r===null){p(!0);return}let i=`${r}/${e.path.replace(/\/SKILL\.mdx?$/i,``)}`,a=`${r}/${lt(t,e.scope)}/${e.name}`,o=new AbortController;for(let[t,n]of[[i,d],[a,l]])Tt({source:t,name:e.name},o.signal).then(e=>{o.signal.aborted||(e.ok?n(e.skillMd):p(!0))}).catch(()=>{o.signal.aborted||p(!0)});return()=>o.abort()},t[0]=n,t[1]=b);let x=n?.skill.scope,S=n?.skill.name,C=n?.editor,w;if(t[2]!==x||t[3]!==S||t[4]!==C?(w=[x,S,C],t[2]=x,t[3]=S,t[4]=C,t[5]=w):w=t[5],(0,$.useEffect)(b,w),!n)return null;let{skill:T,editor:E}=n,O;t[6]!==i||t[7]!==E||t[8]!==r||t[9]!==T.name||t[10]!==T.scope||t[11]!==n||t[12]!==g?(O=async function(e){if(!n)return;y(!0);let t=await vt({scope:T.scope,name:T.name,editor:E,action:e,...e===`rename`?{toName:g.trim()}:{}});if(y(!1),!t.ok){Z.error(i({id:`MIF36T`,values:{0:t.error}}));return}Z.success(i(e===`align`?{id:`QKgePK`,values:{editor:E}}:e===`make-source`?{id:`It9oAP`,values:{editor:E}}:{id:`b2ezG_`,values:{0:g.trim()}})),r(!1)},t[6]=i,t[7]=E,t[8]=r,t[9]=T.name,t[10]=T.scope,t[11]=n,t[12]=g,t[13]=O):O=t[13];let k=O,A,F;t[14]!==T.name||t[15]!==g?(F=g.trim(),A=F===``||!Ae.test(F)||F===T.name,t[14]=T.name,t[15]=g,t[16]=A,t[17]=F):(A=t[16],F=t[17]);let I=A,L;t[18]!==v||t[19]!==r?(L=e=>{!e&&!v&&r(!1)},t[18]=v,t[19]=r,t[20]=L):L=t[20];let R;t[21]!==E||t[22]!==T.name?(R=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`q8aCbb`,values:{0:T.name,editor:E}})}),t[21]=E,t[22]=T.name,t[23]=R):R=t[23];let z;t[24]===E?z=t[25]:(z=(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`QASTNu`,values:{editor:E}})}),t[24]=E,t[25]=z);let B;t[26]!==z||t[27]!==R?(B=(0,Q.jsxs)(te,{children:[R,z]}),t[26]=z,t[27]=R,t[28]=B):B=t[28];let V;t[29]!==u||t[30]!==o||t[31]!==f?(V=u!==null&&o!==null?(0,Q.jsx)(Ot,{oldContent:u,newContent:o,layout:`unified`}):f?(0,Q.jsx)(`div`,{className:`flex min-h-56 items-center justify-center px-6 text-center text-muted-foreground text-sm`,children:(0,Q.jsx)(s,{id:`5BlXTD`})}):(0,Q.jsx)(`div`,{className:`flex min-h-56 items-center justify-center text-muted-foreground text-sm`,children:(0,Q.jsx)(s,{id:`1V17kO`})}),t[29]=u,t[30]=o,t[31]=f,t[32]=V):V=t[32];let H;t[33]!==k||t[34]!==E||t[35]!==a||t[36]!==I||t[37]!==m||t[38]!==T.name||t[39]!==g||t[40]!==F?(H=m?(0,Q.jsxs)(`div`,{className:`mt-3 space-y-1.5`,children:[(0,Q.jsx)(pe,{htmlFor:a,children:(0,Q.jsx)(s,{id:`pSimwP`,values:{editor:E}})}),(0,Q.jsx)(dt,{id:a,value:g,onChange:e=>_(e.target.value),placeholder:`${T.name}-${E}`,"aria-invalid":I&&F!==``,onKeyDown:e=>{e.key===`Enter`&&!I&&k(`rename`)}})]}):null,t[33]=k,t[34]=E,t[35]=a,t[36]=I,t[37]=m,t[38]=T.name,t[39]=g,t[40]=F,t[41]=H):H=t[41];let U;t[42]!==V||t[43]!==H?(U=(0,Q.jsxs)(P,{className:`min-h-0 flex-1 overflow-auto`,children:[V,H]}),t[42]=V,t[43]=H,t[44]=U):U=t[44];let W;t[45]!==k||t[46]!==v||t[47]!==E||t[48]!==I||t[49]!==m||t[50]!==T.name?(W=(0,Q.jsx)(ee,{children:m?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(D,{variant:`outline`,onClick:()=>h(!1),disabled:v,children:(0,Q.jsx)(s,{id:`iH8pgl`})}),(0,Q.jsx)(D,{onClick:()=>void k(`rename`),disabled:v||I,children:(0,Q.jsx)(s,{id:`AT0e50`})})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(D,{variant:`outline`,onClick:()=>{_(`${T.name}-${E}`),h(!0)},disabled:v,children:(0,Q.jsx)(s,{id:`AT0e50`})}),(0,Q.jsx)(D,{variant:`outline`,onClick:()=>void k(`make-source`),disabled:v,children:(0,Q.jsx)(s,{id:`xWomUD`,values:{editor:E}})}),(0,Q.jsx)(D,{onClick:()=>void k(`align`),disabled:v,children:(0,Q.jsx)(s,{id:`PZn2LP`})})]})}),t[45]=k,t[46]=v,t[47]=E,t[48]=I,t[49]=m,t[50]=T.name,t[51]=W):W=t[51];let G;t[52]!==B||t[53]!==U||t[54]!==W?(G=(0,Q.jsxs)(N,{className:`flex max-h-[85vh] w-full max-w-3xl flex-col`,children:[B,U,W]}),t[52]=B,t[53]=U,t[54]=W,t[55]=G):G=t[55];let K;return t[56]!==G||t[57]!==L?(K=(0,Q.jsx)(ne,{open:!0,onOpenChange:L,children:G}),t[56]=G,t[57]=L,t[58]=K):K=t[58],K}function Zn(e){let t=(0,At.c)(75),{skill:n,existingNames:r,onOpenChange:i,onRenamed:a}=e,o=rt(),c=n!==null,l=(0,$.useId)(),[u,d]=(0,$.useState)(``),[f,p]=(0,$.useState)(!1),m;t[0]===n?m=t[1]:(m=()=>{n&&d(n.name)},t[0]=n,t[1]=m);let h=n?.scope,g=n?.name,_;if(t[2]!==h||t[3]!==g?(_=[h,g],t[2]=h,t[3]=g,t[4]=_):_=t[4],(0,$.useEffect)(m,_),!n)return null;let v,y,b,x,S,C;if(t[5]!==r||t[6]!==u||t[7]!==n.name){S=u.trim(),C=S===n.name;let e;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=/\s/,t[14]=e):e=t[14];let i;t[15]===u?i=t[16]:(i=e.test(u),t[15]=u,t[16]=i),v=i,x=S.length>64,y=S===``||!Ae.test(S)||x,b=!y&&!C&&r.has(S),t[5]=r,t[6]=u,t[7]=n.name,t[8]=v,t[9]=y,t[10]=b,t[11]=x,t[12]=S,t[13]=C}else v=t[8],y=t[9],b=t[10],x=t[11],S=t[12],C=t[13];let w=b,T=!y&&!w&&!C&&!f,E;t[17]!==T||t[18]!==i||t[19]!==a||t[20]!==o||t[21]!==n||t[22]!==S?(E=async function(){if(!n||!T)return;p(!0);let e=await o({scope:n.scope,name:n.name},S);p(!1),e.ok&&(a?.(S),i(!1))},t[17]=T,t[18]=i,t[19]=a,t[20]=o,t[21]=n,t[22]=S,t[23]=E):E=t[23];let O=E,k;t[24]===i?k=t[25]:(k=e=>e?null:i(!1),t[24]=i,t[25]=k);let A;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`dw_3cv`})}),t[26]=A):A=t[26];let P;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Q.jsxs)(te,{children:[A,(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`R9IDFz`})})]}),t[27]=P):P=t[27];let F;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Q.jsx)(s,{id:`6YtxFj`}),t[28]=F):F=t[28];let I;t[29]===l?I=t[30]:(I=(0,Q.jsx)(pe,{htmlFor:l,children:F}),t[29]=l,t[30]=I);let L;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>d(e.target.value),t[31]=L):L=t[31];let R;t[32]===O?R=t[33]:(R=e=>{e.key===`Enter`&&O()},t[32]=O,t[33]=R);let z=y||w,B=y&&S!==``||w?`${l}-error`:void 0,V;t[34]!==l||t[35]!==u||t[36]!==R||t[37]!==z||t[38]!==B?(V=(0,Q.jsx)(dt,{id:l,value:u,onChange:L,onKeyDown:R,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,maxLength:64,"aria-invalid":z,"aria-describedby":B,className:`font-mono`}),t[34]=l,t[35]=u,t[36]=R,t[37]=z,t[38]=B,t[39]=V):V=t[39];let H;t[40]!==w||t[41]!==v||t[42]!==l||t[43]!==y||t[44]!==x||t[45]!==S?(H=y&&S!==``?(0,Q.jsx)(`p`,{id:`${l}-error`,className:`text-xs text-destructive`,children:v?(0,Q.jsx)(s,{id:`iUwpZI`,components:{0:(0,Q.jsx)(`code`,{className:`font-mono`})}}):x?(0,Q.jsx)(s,{id:`lK9c4T`}):(0,Q.jsx)(s,{id:`A50vr3`,components:{0:(0,Q.jsx)(`code`,{className:`font-mono`})}})}):w?(0,Q.jsx)(`p`,{id:`${l}-error`,className:`text-xs text-destructive`,children:(0,Q.jsx)(s,{id:`YJ1BTp`})}):null,t[40]=w,t[41]=v,t[42]=l,t[43]=y,t[44]=x,t[45]=S,t[46]=H):H=t[46];let U;t[47]!==I||t[48]!==V||t[49]!==H?(U=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[I,V,H]}),t[47]=I,t[48]=V,t[49]=H,t[50]=U):U=t[50];let W;t[51]===i?W=t[52]:(W=()=>i(!1),t[51]=i,t[52]=W);let G;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,Q.jsx)(s,{id:`dEgA5A`}),t[53]=G):G=t[53];let K;t[54]!==f||t[55]!==W?(K=(0,Q.jsx)(D,{variant:`outline`,className:`font-mono uppercase`,onClick:W,disabled:f,children:G}),t[54]=f,t[55]=W,t[56]=K):K=t[56];let q;t[57]===O?q=t[58]:(q=()=>void O(),t[57]=O,t[58]=q);let J=!T,Y;t[59]===f?Y=t[60]:(Y=f?(0,Q.jsx)(s,{id:`tHKQ6j`}):(0,Q.jsx)(s,{id:`2wxgft`}),t[59]=f,t[60]=Y);let X;t[61]!==q||t[62]!==J||t[63]!==Y?(X=(0,Q.jsx)(D,{onClick:q,disabled:J,children:Y}),t[61]=q,t[62]=J,t[63]=Y,t[64]=X):X=t[64];let re;t[65]!==K||t[66]!==X?(re=(0,Q.jsxs)(ee,{children:[K,X]}),t[65]=K,t[66]=X,t[67]=re):re=t[67];let ie;t[68]!==U||t[69]!==re?(ie=(0,Q.jsxs)(N,{children:[P,U,re]}),t[68]=U,t[69]=re,t[70]=ie):ie=t[70];let ae;return t[71]!==c||t[72]!==ie||t[73]!==k?(ae=(0,Q.jsx)(ne,{open:c,onOpenChange:k,children:ie}),t[71]=c,t[72]=ie,t[73]=k,t[74]=ae):ae=t[74],ae}function Qn(){let e=(0,At.c)(7),{_:t}=c(),n=ut(),r=nt(),{setSkillsSidebar:a,openTabs:o}=i(),s=gt(),l;return e[0]!==t||e[1]!==o||e[2]!==r||e[3]!==n||e[4]!==a||e[5]!==s?(l=async(e,i)=>{if(i===e.scope)return!1;Ge(e.scope,e.name),Ue(e.scope,e.name);let c=await bt({name:e.name,fromScope:e.scope,toScope:i});if(Ve(e.scope,e.name),!c.ok)return Ke(e.scope,e.name),Z.error(t({id:`07eGJB`,values:{0:c.error}})),!1;Z.success(t({id:`yhI6P0`,values:{0:e.name,1:n[i]}}));let l=s.status===`ready`?s.data.find(t=>t.scope===e.scope&&t.name===e.name):void 0,u=o.map(er).filter(t=>{if(t.kind!==`doc`)return!1;let n=Ln(t.docName);return n?.scope===e.scope&&n.name===e.name}),d=u.find($n)??u[0],f=d?.kind===`doc`?d.docName:l?ft(l):e.scope===`global`?ye(e.scope,e.name):null,p=i===`project`&&c.path!==void 0?`${c.path.replace(/\/+$/,``)}/SKILL`:ye(i,e.name);try{f!==null&&r(f,p)}catch(e){console.error(`[skill-move-scope] retarget failed after a successful move`,e)}return a(!0),Ke(e.scope,e.name),!0},e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=a,e[5]=s,e[6]=l):l=e[6],l}function $n(e){return e.kind===`doc`&&Ln(e.docName)?.rel===null}function er(e){return mt(e)}function tr(e){let t=(0,At.c)(38),{target:n,onOpenChange:r}=e,i=ut(),a=Qn(),[o,c]=(0,$.useState)(!1);if(!n)return null;let{scope:l,name:u,toScope:d}=n,f;t[0]!==o||t[1]!==r?(f=e=>!e&&!o&&r(!1),t[0]=o,t[1]=r,t[2]=f):f=t[2];let p=i[d],m;t[3]===p?m=t[4]:(m=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`SXEdCq`,values:{0:p}})}),t[3]=p,t[4]=m);let h=i[l],g=i[d],_=i[d],v;t[5]!==u||t[6]!==h||t[7]!==g||t[8]!==_?(v={0:h,1:g,2:_,name:u},t[5]=u,t[6]=h,t[7]=g,t[8]=_,t[9]=v):v=t[9];let y;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(y={0:(0,Q.jsx)(`code`,{className:`font-mono`})},t[10]=y):y=t[10];let b;t[11]===v?b=t[12]:(b=(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`7bIiJ7`,values:v,components:y})}),t[11]=v,t[12]=b);let x;t[13]!==m||t[14]!==b?(x=(0,Q.jsxs)(te,{children:[m,b]}),t[13]=m,t[14]=b,t[15]=x):x=t[15];let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Q.jsx)(s,{id:`dEgA5A`}),t[16]=S):S=t[16];let C;t[17]===o?C=t[18]:(C=(0,Q.jsx)(F,{asChild:!0,children:(0,Q.jsx)(D,{variant:`outline`,disabled:o,children:S})}),t[17]=o,t[18]=C);let w;t[19]!==a||t[20]!==u||t[21]!==r||t[22]!==l||t[23]!==d?(w=async()=>{c(!0),await a({scope:l,name:u},d),c(!1),r(!1)},t[19]=a,t[20]=u,t[21]=r,t[22]=l,t[23]=d,t[24]=w):w=t[24];let T;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,Q.jsx)(s,{id:`QWdKwH`}),t[25]=T):T=t[25];let E;t[26]!==o||t[27]!==w?(E=(0,Q.jsx)(D,{"data-testid":`skill-scope-move-confirm`,disabled:o,onClick:w,children:T}),t[26]=o,t[27]=w,t[28]=E):E=t[28];let O;t[29]!==C||t[30]!==E?(O=(0,Q.jsxs)(ee,{children:[C,E]}),t[29]=C,t[30]=E,t[31]=O):O=t[31];let k;t[32]!==x||t[33]!==O?(k=(0,Q.jsxs)(N,{className:`sm:max-w-md`,children:[x,O]}),t[32]=x,t[33]=O,t[34]=k):k=t[34];let A;return t[35]!==f||t[36]!==k?(A=(0,Q.jsx)(ne,{open:!0,onOpenChange:f,children:k}),t[35]=f,t[36]=k,t[37]=A):A=t[37],A}function nr(){let e=(0,At.c)(50),{_:t}=c(),n=at(),[r,i]=(0,$.useState)(null),[a,o]=(0,$.useState)(null),[s,l]=(0,$.useState)(null),[u,d]=(0,$.useState)(null),[f,p]=(0,$.useState)(null),[m,h]=(0,$.useState)(null),[g,_]=(0,$.useState)(null),[v,y]=(0,$.useState)(null),b;e[0]===t?b=e[1]:(b=async function(e,n,r){y(e.name),Ge(e.scope,e.name);let i=await xt({scope:e.scope,name:e.name,...n?{targets:[...n]}:{},...r?.linkMode===void 0?{}:{linkMode:r.linkMode}});if(Ke(e.scope,e.name),y(null),!i.ok)return Z.error(t({id:`Mj8R8K`,values:{0:i.error}})),i;let a=rr,o=new Set(i.hosts),s=i.hosts.filter(t=>!e.hosts.includes(t)),c=e.hosts.filter(e=>!o.has(e)),l=e=>{let t=i.warningCodes.indexOf(e);return t>=0?i.warnings[t]:void 0},u=l(`no-targets`);if(u)return Z.warning(u),i;if(s.length>0){let e=l(`scripts-present`);e&&Z.warning(e);let t=l(`no-description`);t&&Z.warning(t)}return i.hosts.length===0?Z.success(t({id:`4pDZ2N`,values:{0:e.name}})):s.length>0&&c.length===0?Z.success(t({id:`PPFQ3o`,values:{0:e.name,1:a(s)}})):c.length>0&&s.length===0?Z.success(t({id:`OOIVJo`,values:{0:e.name,1:a(c)}})):s.length>0&&c.length>0?Z.success(t({id:`OxplNM`,values:{0:e.name,1:a(s),2:a(c)}})):Z.success(t({id:`wDgmsr`,values:{0:e.name,1:a(i.hosts)}})),i},e[0]=t,e[1]=b);let x=b,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=async function(e,t){if(t.length!==0){y(e.name),Ge(e.scope,e.name);for(let{target:n,mode:r}of t){let t=await wt({scope:e.scope,name:e.name,target:n,mode:r});if(!t.ok){Z.error(t.error);break}}Ke(e.scope,e.name),y(null)}},e[2]=S):S=e[2];let C=S,w;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=async function(e,t){y(e.name),Ge(e.scope,e.name);let n=await t();return Ke(e.scope,e.name),y(null),n},e[3]=w):w=e[3];let T=w,E;e[4]!==t||e[5]!==n?(E=async function(e,r){let i=await yt({scope:e.scope,name:e.name,existingNames:r});if(!i.ok){Z.error(t({id:`UPjaXD`,values:{0:e.name,1:i.error}}));return}Z.success(t({id:`0g7rCZ`,values:{0:i.name}})),n(e.scope,i.name)},e[4]=t,e[5]=n,e[6]=E):E=e[6];let D=E,O,k;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>{e||i(null)},k=()=>i(null),e[7]=O,e[8]=k):(O=e[7],k=e[8]);let A;e[9]===r?A=e[10]:(A=(0,Q.jsx)(Gn,{skill:r,onOpenChange:O,onDeleted:k}),e[9]=r,e[10]=A);let j=a?.skill??null,M=a?.existingNames??ar,N,P;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(P=e=>{e||o(null)},N=()=>o(null),e[11]=N,e[12]=P):(N=e[11],P=e[12]);let ee;e[13]!==j||e[14]!==M?(ee=(0,Q.jsx)(Zn,{skill:j,existingNames:M,onOpenChange:P,onRenamed:N}),e[13]=j,e[14]=M,e[15]=ee):ee=e[15];let F;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{e||l(null)},e[16]=F):F=e[16];let te;e[17]===s?te=e[18]:(te=(0,Q.jsx)(tr,{target:s,onOpenChange:F}),e[17]=s,e[18]=te);let ne;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(ne=e=>{e||d(null)},e[19]=ne):ne=e[19];let I;e[20]===u?I=e[21]:(I=(0,Q.jsx)(Yn,{target:u,onOpenChange:ne}),e[20]=u,e[21]=I);let L;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>{e||p(null)},e[22]=L):L=e[22];let R;e[23]===f?R=e[24]:(R=(0,Q.jsx)(Jn,{target:f,onOpenChange:L}),e[23]=f,e[24]=R);let z;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(z=e=>{e||h(null)},e[25]=z):z=e[25];let B;e[26]===m?B=e[27]:(B=(0,Q.jsx)(qn,{target:m,onOpenChange:z}),e[26]=m,e[27]=B);let V;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>{e||_(null)},e[28]=V):V=e[28];let H;e[29]===g?H=e[30]:(H=(0,Q.jsx)(Xn,{target:g,onOpenChange:V}),e[29]=g,e[30]=H);let U;e[31]!==ee||e[32]!==te||e[33]!==I||e[34]!==R||e[35]!==B||e[36]!==H||e[37]!==A?(U=(0,Q.jsxs)(Q.Fragment,{children:[A,ee,te,I,R,B,H]}),e[31]=ee,e[32]=te,e[33]=I,e[34]=R,e[35]=B,e[36]=H,e[37]=A,e[38]=U):U=e[38];let W=U,G,K,q,J,Y,X;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(e,t)=>o({skill:e,existingNames:t}),K=(e,t)=>l({scope:e.scope,name:e.name,toScope:t}),q=(e,t)=>d({skill:e,filePath:t}),J=(e,t)=>p({skill:e,filePath:t}),Y=(e,t)=>h(t===void 0?{skill:e}:{skill:e,prefix:t}),X=(e,t)=>_({skill:e,editor:t}),e[39]=G,e[40]=K,e[41]=q,e[42]=J,e[43]=Y,e[44]=X):(G=e[39],K=e[40],q=e[41],J=e[42],Y=e[43],X=e[44]);let re;return e[45]!==W||e[46]!==D||e[47]!==x||e[48]!==v?(re={installingName:v,install:x,convertLocations:C,runLocationWrite:T,duplicate:D,requestDelete:i,requestRename:G,requestScopeMove:K,requestFileRename:q,requestFileDelete:J,requestFileCreate:Y,requestForkResolve:X,dialogs:W},e[45]=W,e[46]=D,e[47]=x,e[48]=v,e[49]=re):re=e[49],re}function rr(e){return e.map(ir).join(`, `)}function ir(e){return Ne[e]??e}var ar=new Set;function or(e){let t=(0,At.c)(7),{absolutePath:n,menuKind:r}=e,i=r===void 0?`dropdown`:r,a=typeof window<`u`?window.okDesktop:void 0;if(!a||!n)return null;let o;t[0]===n?o=t[1]:(o=()=>void a.shell.showItemInFolder(n),t[0]=n,t[1]=o);let s,c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(it,{"aria-hidden":!0}),c=kt(a.platform),t[2]=s,t[3]=c):(s=t[2],c=t[3]);let l;return t[4]!==i||t[5]!==o?(l=(0,Q.jsxs)(S,{menuKind:i,onSelect:o,children:[s,c]}),t[4]=i,t[5]=o,t[6]=l):l=t[6],l}function sr(e){let t=(0,At.c)(68),{skill:n,filePath:r,actions:i,menuKind:a}=e,o=a===void 0?`dropdown`:a,{_:l}=c(),u;t[0]!==r||t[1]!==n.absolutePath?(u=n.absolutePath?`${ct(n.absolutePath)}/${r}`:void 0,t[0]=r,t[1]=n.absolutePath,t[2]=u):u=t[2];let d=u,f;t[3]===n.path?f=t[4]:(f=ct(n.path),t[3]=n.path,t[4]=f);let p=`${f}/${r}`,m;t[5]===l?m=t[6]:(m=async function(e){try{await Dt(e),Z.success(l({id:`SXCSQd`}))}catch{Z.error(l({id:`cRHuuI`}))}},t[5]=l,t[6]=m);let _=m,v;t[7]!==i||t[8]!==r||t[9]!==n?(v=()=>i.requestFileRename(n,r),t[7]=i,t[8]=r,t[9]=n,t[10]=v):v=t[10];let y,x;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)(En,{"aria-hidden":!0}),x=(0,Q.jsx)(s,{id:`2wxgft`}),t[11]=y,t[12]=x):(y=t[11],x=t[12]);let C;t[13]!==o||t[14]!==v?(C=(0,Q.jsxs)(S,{menuKind:o,onSelect:v,children:[y,x]}),t[13]=o,t[14]=v,t[15]=C):C=t[15];let T;t[16]!==d||t[17]!==o?(T=(0,Q.jsx)(or,{absolutePath:d,menuKind:o}),t[16]=d,t[17]=o,t[18]=T):T=t[18];let D,O;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsx)(tt,{"aria-hidden":!0}),O=(0,Q.jsx)(s,{id:`zd00pH`}),t[19]=D,t[20]=O):(D=t[19],O=t[20]);let k;t[21]===o?k=t[22]:(k=(0,Q.jsxs)(E,{menuKind:o,children:[D,O]}),t[21]=o,t[22]=k);let A;t[23]!==d||t[24]!==_||t[25]!==o?(A=d?(0,Q.jsx)(S,{menuKind:o,onSelect:()=>void _(d),children:(0,Q.jsx)(s,{id:`z2funE`})}):null,t[23]=d,t[24]=_,t[25]=o,t[26]=A):A=t[26];let j;t[27]!==_||t[28]!==p?(j=()=>void _(p),t[27]=_,t[28]=p,t[29]=j):j=t[29];let M;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Q.jsx)(s,{id:`xloBjn`}),t[30]=M):M=t[30];let N;t[31]!==o||t[32]!==j?(N=(0,Q.jsx)(S,{menuKind:o,onSelect:j,children:M}),t[31]=o,t[32]=j,t[33]=N):N=t[33];let P;t[34]!==o||t[35]!==A||t[36]!==N?(P=(0,Q.jsxs)(h,{menuKind:o,children:[A,N]}),t[34]=o,t[35]=A,t[36]=N,t[37]=P):P=t[37];let ee;t[38]!==o||t[39]!==P?(ee=(0,Q.jsx)(b,{menuKind:o,children:P}),t[38]=o,t[39]=P,t[40]=ee):ee=t[40];let F;t[41]!==o||t[42]!==k||t[43]!==ee?(F=(0,Q.jsxs)(g,{menuKind:o,children:[k,ee]}),t[41]=o,t[42]=k,t[43]=ee,t[44]=F):F=t[44];let te;t[45]!==o||t[46]!==F||t[47]!==C||t[48]!==T?(te=(0,Q.jsxs)(h,{menuKind:o,children:[C,T,F]}),t[45]=o,t[46]=F,t[47]=C,t[48]=T,t[49]=te):te=t[49];let ne;t[50]===o?ne=t[51]:(ne=(0,Q.jsx)(w,{menuKind:o}),t[50]=o,t[51]=ne);let I;t[52]!==i||t[53]!==r||t[54]!==n?(I=()=>i.requestFileDelete(n,r),t[52]=i,t[53]=r,t[54]=n,t[55]=I):I=t[55];let L,R;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Q.jsx)(st,{"aria-hidden":!0}),R=(0,Q.jsx)(s,{id:`cnGeoo`}),t[56]=L,t[57]=R):(L=t[56],R=t[57]);let z;t[58]!==o||t[59]!==I?(z=(0,Q.jsxs)(S,{menuKind:o,variant:`destructive`,onSelect:I,children:[L,R]}),t[58]=o,t[59]=I,t[60]=z):z=t[60];let B;t[61]!==o||t[62]!==z?(B=(0,Q.jsx)(h,{menuKind:o,children:z}),t[61]=o,t[62]=z,t[63]=B):B=t[63];let V;return t[64]!==te||t[65]!==ne||t[66]!==B?(V=(0,Q.jsxs)(Q.Fragment,{children:[te,ne,B]}),t[64]=te,t[65]=ne,t[66]=B,t[67]=V):V=t[67],V}function cr(e){let t=(0,At.c)(15),{skill:n,actions:r,existingNames:i,menuKind:a}=e,o=a===void 0?`dropdown`:a,s=Ze(),c=p().states,{dispatch:l}=Cn(),u=typeof window<`u`?window.okDesktop:void 0,d;t[0]!==n.name||t[1]!==n.scope||t[2]!==s?(d=on({skillName:n.name,scope:n.scope,workspace:s}),t[0]=n.name,t[1]=n.scope,t[2]=s,t[3]=d):d=t[3];let f=d,m;t[4]!==l||t[5]!==f||t[6]!==c||t[7]!==o?(m=o===`context`?(0,Q.jsx)(Nn,{input:f,installStates:c,dispatch:l}):(0,Q.jsx)(Fn,{input:f,installStates:c,isElectronHost:u!=null,dispatch:l}),t[4]=l,t[5]=f,t[6]=c,t[7]=o,t[8]=m):m=t[8];let h;return t[9]!==r||t[10]!==i||t[11]!==o||t[12]!==n||t[13]!==m?(h=(0,Q.jsx)(lr,{actions:r,existingNames:i,menuKind:o,skill:n,openWithAi:m}),t[9]=r,t[10]=i,t[11]=o,t[12]=n,t[13]=m,t[14]=h):h=t[14],h}function lr(e){let t=(0,At.c)(124),{actions:n,existingNames:i,menuKind:a,openWithAi:o,skill:l}=e,{_:u}=c(),d=ut(),f=C(l,n),p=l.absolutePath,m;t[0]===u?m=t[1]:(m=async function(e){try{await Dt(e),Z.success(u({id:`SXCSQd`}))}catch{Z.error(u({id:`cRHuuI`}))}},t[0]=u,t[1]=m);let _=m,v;t[2]!==p||t[3]!==a?(v=(0,Q.jsx)(or,{absolutePath:p,menuKind:a}),t[2]=p,t[3]=a,t[4]=v):v=t[4];let D,O;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsx)(tt,{"aria-hidden":!0}),O=(0,Q.jsx)(s,{id:`zd00pH`}),t[5]=D,t[6]=O):(D=t[5],O=t[6]);let k;t[7]===a?k=t[8]:(k=(0,Q.jsxs)(E,{menuKind:a,children:[D,O]}),t[7]=a,t[8]=k);let A;t[9]!==p||t[10]!==_||t[11]!==a?(A=p?(0,Q.jsx)(S,{menuKind:a,onSelect:()=>void _(p),children:(0,Q.jsx)(s,{id:`z2funE`})}):null,t[9]=p,t[10]=_,t[11]=a,t[12]=A):A=t[12];let j;t[13]!==_||t[14]!==l.path?(j=()=>void _(l.path),t[13]=_,t[14]=l.path,t[15]=j):j=t[15];let M;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Q.jsx)(s,{id:`xloBjn`}),t[16]=M):M=t[16];let N;t[17]!==a||t[18]!==j?(N=(0,Q.jsx)(S,{menuKind:a,onSelect:j,children:M}),t[17]=a,t[18]=j,t[19]=N):N=t[19];let P;t[20]!==a||t[21]!==A||t[22]!==N?(P=(0,Q.jsxs)(h,{menuKind:a,children:[A,N]}),t[20]=a,t[21]=A,t[22]=N,t[23]=P):P=t[23];let ee;t[24]!==a||t[25]!==P?(ee=(0,Q.jsx)(b,{menuKind:a,children:P}),t[24]=a,t[25]=P,t[26]=ee):ee=t[26];let F;t[27]!==a||t[28]!==ee||t[29]!==k?(F=(0,Q.jsxs)(g,{menuKind:a,children:[k,ee]}),t[27]=a,t[28]=ee,t[29]=k,t[30]=F):F=t[30];let te;t[31]!==a||t[32]!==o||t[33]!==F||t[34]!==v?(te=(0,Q.jsxs)(h,{menuKind:a,children:[v,o,F]}),t[31]=a,t[32]=o,t[33]=F,t[34]=v,t[35]=te):te=t[35];let ne;t[36]===a?ne=t[37]:(ne=(0,Q.jsx)(w,{menuKind:a}),t[36]=a,t[37]=ne);let I;t[38]!==n||t[39]!==i||t[40]!==l?(I=()=>void n.duplicate(l,i),t[38]=n,t[39]=i,t[40]=l,t[41]=I):I=t[41];let L,R;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Q.jsx)(r,{"aria-hidden":!0}),R=(0,Q.jsx)(s,{id:`euc6Ns`}),t[42]=L,t[43]=R):(L=t[42],R=t[43]);let z;t[44]!==a||t[45]!==I?(z=(0,Q.jsxs)(S,{menuKind:a,onSelect:I,children:[L,R]}),t[44]=a,t[45]=I,t[46]=z):z=t[46];let B;t[47]!==n||t[48]!==i||t[49]!==l?(B=()=>n.requestRename(l,i),t[47]=n,t[48]=i,t[49]=l,t[50]=B):B=t[50];let V,H;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,Q.jsx)(En,{"aria-hidden":!0}),H=(0,Q.jsx)(s,{id:`2wxgft`}),t[51]=V,t[52]=H):(V=t[51],H=t[52]);let U;t[53]!==a||t[54]!==B?(U=(0,Q.jsxs)(S,{menuKind:a,onSelect:B,children:[V,H]}),t[53]=a,t[54]=B,t[55]=U):U=t[55];let W;t[56]!==n||t[57]!==l?(W=()=>n.requestFileCreate(l),t[56]=n,t[57]=l,t[58]=W):W=t[58];let G,K;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,Q.jsx)(y,{"aria-hidden":!0}),K=(0,Q.jsx)(s,{id:`HdkSiO`}),t[59]=G,t[60]=K):(G=t[59],K=t[60]);let q;t[61]!==a||t[62]!==W?(q=(0,Q.jsxs)(S,{menuKind:a,onSelect:W,children:[G,K]}),t[61]=a,t[62]=W,t[63]=q):q=t[63];let J,Y;t[64]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,Q.jsx)(Tn,{"aria-hidden":!0}),Y=(0,Q.jsx)(s,{id:`TKQ7K-`}),t[64]=J,t[65]=Y):(J=t[64],Y=t[65]);let X;t[66]===a?X=t[67]:(X=(0,Q.jsxs)(E,{menuKind:a,children:[J,Y]}),t[66]=a,t[67]=X);let re;t[68]!==n||t[69]!==l?(re=e=>n.requestForkResolve(l,e),t[68]=n,t[69]=l,t[70]=re):re=t[70];let ie;t[71]!==f||t[72]!==a||t[73]!==l||t[74]!==re?(ie=(0,Q.jsx)(x,{toggles:f,skill:l,menuKind:a,onResolveFork:re}),t[71]=f,t[72]=a,t[73]=l,t[74]=re,t[75]=ie):ie=t[75];let ae;t[76]!==a||t[77]!==ie?(ae=(0,Q.jsx)(h,{menuKind:a,children:ie}),t[76]=a,t[77]=ie,t[78]=ae):ae=t[78];let oe;t[79]!==a||t[80]!==ae?(oe=(0,Q.jsx)(b,{menuKind:a,className:T,children:ae}),t[79]=a,t[80]=ae,t[81]=oe):oe=t[81];let se;t[82]!==a||t[83]!==X||t[84]!==oe?(se=(0,Q.jsxs)(g,{menuKind:a,children:[X,oe]}),t[82]=a,t[83]=X,t[84]=oe,t[85]=se):se=t[85];let ce;t[86]!==n||t[87]!==l?(ce=()=>n.requestScopeMove(l,l.scope===`project`?`global`:`project`),t[86]=n,t[87]=l,t[88]=ce):ce=t[88];let le;t[89]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,Q.jsx)(wn,{"aria-hidden":!0}),t[89]=le):le=t[89];let ue;t[90]!==d.global||t[91]!==d.project||t[92]!==l.scope?(ue=l.scope===`project`?(0,Q.jsx)(s,{id:`bpytj4`,values:{0:d.global}}):(0,Q.jsx)(s,{id:`bpytj4`,values:{0:d.project}}),t[90]=d.global,t[91]=d.project,t[92]=l.scope,t[93]=ue):ue=t[93];let de;t[94]!==a||t[95]!==ce||t[96]!==ue?(de=(0,Q.jsxs)(S,{menuKind:a,onSelect:ce,children:[le,ue]}),t[94]=a,t[95]=ce,t[96]=ue,t[97]=de):de=t[97];let fe;t[98]!==a||t[99]!==z||t[100]!==U||t[101]!==q||t[102]!==se||t[103]!==de?(fe=(0,Q.jsxs)(h,{menuKind:a,children:[z,U,q,se,de]}),t[98]=a,t[99]=z,t[100]=U,t[101]=q,t[102]=se,t[103]=de,t[104]=fe):fe=t[104];let pe;t[105]===a?pe=t[106]:(pe=(0,Q.jsx)(w,{menuKind:a}),t[105]=a,t[106]=pe);let me;t[107]!==n||t[108]!==l?(me=()=>n.requestDelete(l),t[107]=n,t[108]=l,t[109]=me):me=t[109];let he,ge;t[110]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Q.jsx)(st,{"aria-hidden":!0}),ge=(0,Q.jsx)(s,{id:`cnGeoo`}),t[110]=he,t[111]=ge):(he=t[110],ge=t[111]);let _e;t[112]!==a||t[113]!==me?(_e=(0,Q.jsxs)(S,{menuKind:a,variant:`destructive`,onSelect:me,children:[he,ge]}),t[112]=a,t[113]=me,t[114]=_e):_e=t[114];let ve;t[115]!==a||t[116]!==_e?(ve=(0,Q.jsx)(h,{menuKind:a,children:_e}),t[115]=a,t[116]=_e,t[117]=ve):ve=t[117];let ye;return t[118]!==te||t[119]!==ne||t[120]!==fe||t[121]!==pe||t[122]!==ve?(ye=(0,Q.jsxs)(Q.Fragment,{children:[te,ne,fe,pe,ve]}),t[118]=te,t[119]=ne,t[120]=fe,t[121]=pe,t[122]=ve,t[123]=ye):ye=t[123],ye}export{vn as C,$t as E,rn as S,Qt as T,an as _,tr as a,mn as b,Fn as c,kn as d,Dn as f,nn as g,sn as h,nr as i,Nn as l,wn as m,sr as n,Bn as o,On as p,or as r,Hn as s,cr as t,An as u,en as v,Cn as w,bn as x,tn as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-6OZAfZOy.js";import"./src-Cdq2Q5Qg.js";import"./chunk-I66GZJ75-BQ6MN9Gs.js";import"./chunk-NSK5VX7P-0SuNTpf5.js";import"./chunk-W5SLKNZC-BTOja7zZ.js";import"./chunk-UBXNYLIW-DI7nR2x5.js";import"./chunk-4I5QYGJK-D2VHB4_5.js";import"./chunk-WRU74C26-LsM5495h.js";import"./chunk-QR6OTTB3-BKyQaVhZ.js";import"./chunk-7BUUIJ7U-C4LcvRKI.js";import"./chunk-7Z6QIM7H-B56l8F1n.js";import"./chunk-J7OUQ5F2--OLmbKyE.js";import"./chunk-2GRJ4B5K-DkEfrxNK.js";import"./chunk-XXDRQBXY-HZnulEE8.js";import"./chunk-KBJHAD2P-DNPUMRvG.js";import{i as t,n,r,t as i}from"./chunk-5RXB4S5H-B7YwCkBe.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 +0,0 @@
|
|
|
1
|
-
import"./chunk-SRAX5OIU-CoWcq_Cz.js";import{i as e,n as t,r as n,t as r}from"./chunk-EIO257PC-DqCiBPM0.js";export{t as Commands,e as subsetToBase64,n as subsetToBinary,r as toBase64};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-6OZAfZOy.js";import"./src-Cdq2Q5Qg.js";import"./chunk-I66GZJ75-BQ6MN9Gs.js";import"./chunk-NSK5VX7P-0SuNTpf5.js";import"./chunk-ZIRB5QZD-MDehklKw.js";import"./chunk-W5SLKNZC-BTOja7zZ.js";import"./chunk-UBXNYLIW-DI7nR2x5.js";import"./chunk-4I5QYGJK-D2VHB4_5.js";import"./chunk-WRU74C26-LsM5495h.js";import"./chunk-QR6OTTB3-BKyQaVhZ.js";import"./chunk-7BUUIJ7U-C4LcvRKI.js";import"./chunk-7Z6QIM7H-B56l8F1n.js";import"./chunk-J7OUQ5F2--OLmbKyE.js";import"./chunk-2GRJ4B5K-DkEfrxNK.js";import"./chunk-XXDRQBXY-HZnulEE8.js";import"./chunk-KBJHAD2P-DNPUMRvG.js";import{r as t,t as n}from"./chunk-JQJVKLGR-B3k5EI6Z.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,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./__vite-browser-external-BobEXftM.js","./chunk-CYidjpOJ.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{a as n,c as r,d as i,f as a,i as o,l as s,n as c,o as l,p as u,r as d,t as f,u as p}from"./trace-api-18gcBe0u.js";import{n as m,r as ee,t as h}from"./propagation-api-PBYTadVM.js";var te=class{constructor(){}createGauge(e,t){return fe}createHistogram(e,t){return pe}createCounter(e,t){return de}createUpDownCounter(e,t){return me}createObservableGauge(e,t){return ge}createObservableCounter(e,t){return he}createObservableUpDownCounter(e,t){return _e}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},g=class{},ne=class extends g{add(e,t){}},re=class extends g{add(e,t){}},ie=class extends g{record(e,t){}},ae=class extends g{record(e,t){}},oe=class{addCallback(e){}removeCallback(e){}},se=class extends oe{},ce=class extends oe{},le=class extends oe{},ue=new te,de=new ne,fe=new ie,pe=new ae,me=new re,he=new se,ge=new ce,_e=new le;function ve(){return ue}var ye;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(ye||={});var be;(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(be||={});var _=p.instance(),xe=new class{getMeter(e,t,n){return ue}},Se=`metrics`,Ce=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalMeterProvider(e){return a(Se,e,p.instance())}getMeterProvider(){return i(Se)||xe}getMeter(e,t,n){return this.getMeterProvider().getMeter(e,t,n)}disable(){u(Se,p.instance())}}.getInstance(),we=class{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}},Te=class extends Error{code;name=`OTLPExporterError`;data;constructor(e,t,n){super(e),this.data=n,this.code=t}};function Ee(e){if(Number.isFinite(e)&&e>0)return e;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function De(e){if(e!=null)return()=>e}function Oe(e,t,n){return{timeoutMillis:Ee(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function ke(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:`none`}}var Ae=class{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw Error(`Concurrency Limit reached`);this._sendingPromises.push(e);let t=()=>{let t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}};function je(e){return new Ae(e.concurrencyLimit)}var Me=s(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function Ne(e){return e.setValue(Me,!0)}function Pe(e){return e.getValue(Me)===!0}var Fe=`baggage`,Ie=4096;function Le(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function Re(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=`;`+t.metadata.toString()),n})}function ze(e){if(!e)return;let t=e.indexOf(`;`),n=t===-1?e:e.substring(0,t),r=n.indexOf(`=`);if(r<=0)return;let i=n.substring(0,r).trim(),a=n.substring(r+1).trim();if(!i||!a)return;let o,s;try{o=decodeURIComponent(i),s=decodeURIComponent(a)}catch{return}let c;return t!==-1&&t<e.length-1&&(c=ee(e.substring(t+1))),{key:o,value:s,metadata:c}}function Be(e,t,n,r){let i=0;for(;i<e.length&&n<180;){let a=e.indexOf(`,`,i),o=a===-1?e.length:a,s=o-i;if(s<=4096){let a=ze(e.substring(i,o));if(a){let e=(n===0?0:1)+s;if(r+e>8192)break;t[a.key]=a.metadata?{value:a.value,metadata:a.metadata}:{value:a.value},n++,r+=e}}if(a===-1)break;i=a+1}return[n,r]}var Ve=class{inject(e,t,n){let r=h.getBaggage(e);if(!r||Pe(e))return;let i=Le(Re(r).filter(e=>e.length<=Ie).slice(0,180));i.length>0&&n.set(t,Fe,i)}extract(e,t,n){let r=n.get(t,Fe);if(!r)return e;let i={},a=0,o=0;if(Array.isArray(r))for(let e=0;e<r.length;e++)[a,o]=Be(r[e],i,a,o);else [a]=Be(r,i,a,o);return a===0?e:h.setBaggage(e,h.createBaggage(i))}fields(){return[Fe]}};function v(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!He(n)){_.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];if(!Ue(r)){_.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function He(e){return typeof e==`string`&&e!==``}function Ue(e){return e==null?!0:Array.isArray(e)?We(e):Ge(typeof e)}function We(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(Ge(e)){t=e;continue}return!1}return!1}}return!0}function Ge(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}function Ke(){return e=>{_.error(qe(e))}}function qe(e){return typeof e==`string`?e:JSON.stringify(Je(e))}function Je(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}var Ye=Ke();function y(e){try{Ye(e)}catch{}}var Xe=globalThis,Ze=`2.8.0`,Qe=`http.url`,$e=`http.user_agent`,et=Qe,tt=$e,nt=`deployment.environment.name`,rt=`error.type`,it=`exception.message`,at=`exception.stacktrace`,ot=`exception.type`,st=`http.request.method`,ct=`http.request.method_original`,lt=`http.response.status_code`,ut=`server.address`,dt=`server.port`,ft=`service.name`,pt=`service.version`,mt=`telemetry.sdk.language`,ht=`webjs`,gt=`telemetry.sdk.name`,_t=`telemetry.sdk.version`,vt=`url.full`,yt=`process.runtime.name`,bt={[gt]:`opentelemetry`,[yt]:`browser`,[mt]:ht,[_t]:Ze},b=performance,xt=9,St=10**6,x=10**xt;function S(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*St)]}function C(e){return Et(S(b.timeOrigin),S(typeof e==`number`?e:b.now()))}function w(e){if(wt(e))return e;if(typeof e==`number`)return e<b.timeOrigin?C(e):S(e);if(e instanceof Date)return S(e.getTime());throw TypeError(`Invalid input type`)}function Ct(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=x),[n,r]}function T(e){return e[0]*x+e[1]}function wt(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function Tt(e){return wt(e)||typeof e==`number`||e instanceof Date}function Et(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=x&&(n[1]-=x,n[0]+=1),n}var E;(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(E||={});var Dt=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[];let t=new Set;for(let e of this._propagators){let n=typeof e.fields==`function`?e.fields():[];for(let e of n)t.add(e)}this._fields=Array.from(t)}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){_.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){_.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}},Ot=`[_0-9a-z-*/]`,kt=`[a-z]${Ot}{0,255}`,At=`[a-z0-9]${Ot}{0,240}@[a-z]${Ot}{0,13}`,jt=RegExp(`^(?:${kt}|${At})$`),Mt=/^[ -~]{0,255}[!-~]$/,Nt=/,|=/;function Pt(e){return jt.test(e)}function Ft(e){return Mt.test(e)&&!Nt.test(e)}var It=32,Lt=512,Rt=`,`,zt=`=`,Bt=class e{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState=typeof e==`string`?e:``,this._length=this._rawTraceState.length}set(e,t){if(!Pt(e)||!Ft(t))return this;let n=this._getState(),r=n.get(e),i=this._length;if(typeof r==`string`?i+=t.length-r.length:i+=e.length+t.length+(n.size>0?2:1),i>Lt)return this;let a=new Map(n);return a.delete(e),a.set(e,t),this._fromState(a,i)}unset(e){let t=this._getState(),n=t.get(e);if(typeof n!=`string`)return this;let r=this._length-(e.length+n.length+1);t.size>1&&--r;let i=new Map(t);return i.delete(e),this._fromState(i,r)}get(e){return this._getState().get(e)}serialize(){let e=``,t=0;for(let n of this._getState())t>0&&(e=Rt+e),e=`${n[0]}${zt}${n[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(Rt),t=new Map,n=0;for(let r of e){let e=r.trim(),i=e.indexOf(zt);if(i===-1)continue;let a=e.slice(0,i),o=e.slice(i+1);if(!Pt(a)||!Ft(o))continue;let s=n+e.length+ +(t.size>0);if(!(s>Lt)&&(t.set(a,o),n=s,t.size>=It))break}return this._length=n,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(t,n){let r=Object.create(e.prototype);return r._internalState=t,r._length=n,r}},D=`traceparent`,Vt=`tracestate`,Ht=`00`,Ut=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function Wt(e){let t=Ut.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Gt=class{inject(e,t,n){let r=f.getSpanContext(e);if(!r||Pe(e)||!d(r))return;let i=`${Ht}-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||l.NONE).toString(16)}`;n.set(t,D,i),r.traceState&&n.set(t,Vt,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,D);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=Wt(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,Vt);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new Bt(typeof e==`string`?e:void 0)}return f.setSpanContext(e,a)}fields(){return[D,Vt]}},Kt=`[object Object]`,qt=`[object Null]`,Jt=`[object Undefined]`,Yt=Function.prototype.toString,Xt=Yt.call(Object),Zt=Object.getPrototypeOf,Qt=Object.prototype,$t=Qt.hasOwnProperty,O=Symbol?Symbol.toStringTag:void 0,en=Qt.toString;function tn(e){if(!nn(e)||rn(e)!==Kt)return!1;let t=Zt(e);if(t===null)return!0;let n=$t.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Yt.call(n)===Xt}function nn(e){return typeof e==`object`&&!!e}function rn(e){return e==null?e===void 0?Jt:qt:O&&O in Object(e)?an(e):on(e)}function an(e){let t=$t.call(e,O),n=e[O],r=!1;try{e[O]=void 0,r=!0}catch{}let i=en.call(e);return r&&(t?e[O]=n:delete e[O]),i}function on(e){return en.call(e)}var sn=20;function cn(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=un(t,e.shift(),0,n);return t}function ln(e){return k(e)?e.slice():e}function un(e,t,n=0,r){let i;if(!(n>sn)){if(n++,pn(e)||pn(t)||fn(t))i=ln(t);else if(k(e)){if(i=e.slice(),k(t))for(let e=0,n=t.length;e<n;e++)i.push(ln(t[e]));else if(A(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===`__proto__`||r===`constructor`||r===`prototype`||(i[r]=ln(t[r]))}}}else if(A(e))if(A(t)){if(!mn(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o];if(s===`__proto__`||s===`constructor`||s===`prototype`)continue;let c=t[s];if(pn(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(dn(e,s,r)||dn(t,s,r))delete i[s];else{if(A(a)&&A(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=un(i[s],c,n,r)}}}}else i=t;return i}}function dn(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function k(e){return Array.isArray(e)}function fn(e){return typeof e==`function`}function A(e){return!pn(e)&&!k(e)&&!fn(e)&&typeof e==`object`}function pn(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function mn(e,t){return!(!tn(e)||!tn(t))}function hn(e,t){return typeof t==`string`?e===t:!!e.match(t)}function gn(e,t){if(!t)return!1;for(let n of t)if(hn(e,n))return!0;return!1}var _n=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}},vn=class{_isCalled=!1;_deferred=new _n;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}};function yn(e){return Object.prototype.hasOwnProperty.call(e,`partialSuccess`)}function bn(){return{handleResponse(e){e==null||!yn(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||_.warn(`Received Partial Success response:`,JSON.stringify(e.partialSuccess))}}}var xn=class{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,t,n,r,i){this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=i,this._diagLogger=_.createComponentLogger({namespace:`OTLPExportDelegate`})}export(e,t){if(this._diagLogger.debug(`items to be sent`,e),this._promiseQueue.hasReachedLimit()){t({code:E.FAILED,error:Error(`Concurrent export limit reached`)});return}let n=this._serializer.serializeRequest(e);if(n==null){t({code:E.FAILED,error:Error(`Nothing to send`)});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(e=>{if(e.status===`success`){if(e.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn(`Export succeeded but could not deserialize response - is the response specification compliant?`,t,e.data)}t({code:E.SUCCESS});return}else if(e.status===`failure`&&e.error){t({code:E.FAILED,error:e.error});return}else e.status===`retryable`?t({code:E.FAILED,error:new Te(`Export failed with retryable status`)}):t({code:E.FAILED,error:new Te(`Export failed with unknown error`)})},e=>t({code:E.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug(`shutdown started`),await this.forceFlush(),this._transport.shutdown()}};function Sn(e,t){return new xn(e.transport,e.serializer,bn(),e.promiseHandler,t.timeout)}function Cn(e,t,n){return Sn({transport:n,serializer:t,promiseHandler:je(e)},{timeout:e.timeoutMillis})}function wn(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Tn(e){let t=new Uint8Array(e.length/2),n=0;for(let r=0;r<e.length;r+=2){let i=wn(e.charCodeAt(r)),a=wn(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}function En(e){let t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Dn(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}function On(e){return Dn(En(e))}function kn(e){return En(e).toString()}var An=typeof BigInt<`u`?kn:T;function jn(e){return e}function Mn(e){if(e!==void 0)return Tn(e)}var Nn={encodeHrTime:On,encodeSpanContext:Tn,encodeOptionalSpanContext:Mn};function Pn(e){if(e===void 0)return Nn;let t=e.useLongBits??!0,n=e.useHex??!1;return{encodeHrTime:t?On:An,encodeSpanContext:n?jn:Tn,encodeOptionalSpanContext:n?jn:Mn}}function Fn(e){let t={attributes:Ln(e.attributes),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==``&&(t.schemaUrl=n),t}function In(e){return{name:e.name,version:e.version}}function Ln(e){return Object.keys(e).map(t=>Rn(t,e[t]))}function Rn(e,t){return{key:e,value:zn(t)}}function zn(e){let t=typeof e;return t===`string`?{stringValue:e}:t===`number`?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t===`boolean`?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(zn)}}:t===`object`&&e!=null?{kvlistValue:{values:Object.entries(e).map(([e,t])=>Rn(e,t))}}:{}}function Bn(e,t){let n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Ln(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>Hn(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(e=>Vn(e,t)),droppedLinksCount:e.droppedLinksCount}}function Vn(e,t){return{attributes:e.attributes?Ln(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function Hn(e,t){return{attributes:e.attributes?Ln(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Un(e,t){return{resourceSpans:Gn(e,Pn(t))}}function Wn(e){let t=new Map;for(let n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));let r=`${n.instrumentationScope.name}@${n.instrumentationScope.version||``}:${n.instrumentationScope.schemaUrl||``}`,i=e.get(r);i||(i=[],e.set(r,i)),i.push(n)}return t}function Gn(e,t){let n=Wn(e),r=[],i=n.entries(),a=i.next();for(;!a.done;){let[e,n]=a.value,o=[],s=n.values(),c=s.next();for(;!c.done;){let e=c.value;if(e.length>0){let n=e.map(e=>Bn(e,t));o.push({scope:In(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=s.next()}let l=Fn(e),u={resource:l,scopeSpans:o,schemaUrl:l.schemaUrl};r.push(u),a=i.next()}return r}var Kn={serializeRequest:e=>{let t=Un(e,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(e))}},qn=5,Jn=1e3,Yn=5e3,Xn=1.5,Zn=.2;function Qn(){return 2*Zn*Math.random()-Zn}var $n=class{_transport;constructor(e){this._transport=e}retry(e,t,n){return new Promise((r,i)=>{setTimeout(()=>{this._transport.send(e,t).then(r,i)},n)})}async send(e,t){let n=Date.now()+t,r=await this._transport.send(e,t),i=qn,a=Jn;for(;r.status===`retryable`&&i>0;){i--;let t=Math.max(Math.min(a,Yn)+Qn(),0);a*=Xn;let o=r.retryInMillis??t,s=n-Date.now();if(o>s)return r;r=await this.retry(e,s,o)}return r}shutdown(){return this._transport.shutdown()}};function er(e){return new $n(e.transport)}function tr(e){return[429,502,503,504].includes(e)}function nr(e){if(e==null)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;let n=new Date(e).getTime()-Date.now();return n>=0?n:0}var rr=class{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(n=>{let r=new XMLHttpRequest;r.timeout=t,r.open(`POST`,this._parameters.url);let i=this._parameters.headers();Object.entries(i).forEach(([e,t])=>{r.setRequestHeader(e,t)}),r.ontimeout=e=>{n({status:`failure`,error:Error(`XHR request timed out`)})},r.onreadystatechange=()=>{r.status>=200&&r.status<=299?(_.debug(`XHR success`),n({status:`success`})):r.status&&tr(r.status)?n({status:`retryable`,retryInMillis:nr(r.getResponseHeader(`Retry-After`))}):r.status!==0&&n({status:`failure`,error:Error(`XHR request failed with non-retryable status`)})},r.onabort=()=>{n({status:`failure`,error:Error(`XHR request aborted`)})},r.onerror=()=>{n({status:`failure`,error:Error(`XHR request errored`)})},r.send(e)})}shutdown(){}};function ir(e){return new rr(e)}var ar=class{_params;constructor(e){this._params=e}send(e){return new Promise(t=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(_.debug(`SendBeacon success`),t({status:`success`})):t({status:`failure`,error:Error(`SendBeacon failed`)})})}shutdown(){}};function or(e){return new ar(e)}var sr=class{_parameters;constructor(e){this._parameters=e}async send(e,t){let n=new AbortController,r=setTimeout(()=>n.abort(),t);try{let t=!!globalThis.location,r=new URL(this._parameters.url),i=await fetch(r.href,{method:`POST`,headers:this._parameters.headers(),body:e,signal:n.signal,keepalive:t,mode:t?globalThis.location?.origin===r.origin?`same-origin`:`cors`:`no-cors`});return i.status>=200&&i.status<=299?(_.debug(`response success`),{status:`success`}):tr(i.status)?{status:`retryable`,retryInMillis:nr(i.headers.get(`Retry-After`))}:{status:`failure`,error:Error(`Fetch request failed with non-retryable status`)}}catch(e){return e?.name===`AbortError`?{status:`failure`,error:Error(`Fetch request timed out`,{cause:e})}:{status:`failure`,error:Error(`Fetch request errored`,{cause:e})}}finally{clearTimeout(r)}}shutdown(){}};function cr(e){return new sr(e)}function lr(e,t){return Cn(e,t,er({transport:ir(e)}))}function ur(e,t){return Cn(e,t,er({transport:cr(e)}))}function dr(e,t){return Cn(e,t,er({transport:or({url:e.url,blobType:e.headers()[`Content-Type`]})}))}function fr(e){return()=>{let t={};return Object.entries(e?.()??{}).forEach(([e,n])=>{n===void 0?_.warn(`Header "${e}" has invalid value (${n}) and will be ignored`):t[e]=String(n)}),t}}function pr(e,t,n){let r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function mr(e){if(e!=null)try{let t=globalThis.location?.href;return new URL(e,t).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function hr(n){return async r=>{let{Agent:i}=await t(()=>import(`./__vite-browser-external-BobEXftM.js`).then(t=>e(t.default)),__vite__mapDeps([0,1]),import.meta.url);return new i(n)}}function gr(e,t,n){return{...Oe(e,t,n),headers:pr(fr(e.headers),t.headers,n.headers),url:mr(e.url)??t.url??n.url,agentFactory:e.agentFactory??t.agentFactory??n.agentFactory}}function _r(e,t){return{...ke(),headers:()=>e,url:`http://localhost:4318/`+t,agentFactory:hr({keepAlive:!0})}}function vr(e,t,n){return gr({url:e.url,timeoutMillis:e.timeoutMillis,headers:De(e.headers),concurrencyLimit:e.concurrencyLimit},{},_r(n,t))}function yr(e,t,n,r){return br(e.headers)(vr(e,n,r),t)}function br(e){return!e&&typeof navigator.sendBeacon==`function`?dr:globalThis.fetch===void 0?lr:ur}var xr=class extends we{constructor(e={}){super(yr(e,Kn,`v1/traces`,{"Content-Type":`application/json`}))}},Sr=class{emit(e){}},Cr=new Sr,wr=new class{getLogger(e,t,n){return new Sr}},Tr=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Cr}},Er=class{getLogger(e,t,n){return this._getDelegateLogger(e,t,n)??new Tr(this,e,t,n)}_getDelegate(){return this._delegate??wr}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){return this._delegate?.getLogger(e,t,n)}},Dr=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{},j=Symbol.for(`io.opentelemetry.js.api.logs`),M=Dr;function Or(e,t,n){return r=>r===e?t:n}var kr=class e{constructor(){this._proxyLoggerProvider=new Er}static getInstance(){return this._instance||=new e,this._instance}setGlobalLoggerProvider(e){return M[j]?this.getLoggerProvider():(M[j]=Or(1,e,wr),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){return M[j]?.call(M,1)??this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete M[j],this._proxyLoggerProvider=new Er}}.getInstance();function Ar(e,t,n,r){for(let i=0,a=e.length;i<a;i++){let a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function jr(e){e.forEach(e=>e.disable())}function Mr(e){let t=e.tracerProvider||f.getTracerProvider(),n=e.meterProvider||Ce.getMeterProvider(),r=e.loggerProvider||kr.getLoggerProvider(),i=e.instrumentations?.flat()??[];return Ar(i,t,n,r),()=>{jr(i)}}var N=console.error.bind(console);function P(e,t,n){let r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}var Nr=(e,t,n)=>{if(!e||!e[t]){N(`no original function `+String(t)+` to wrap`);return}if(!n){N(`no wrapper function`),N(Error().stack);return}let r=e[t];if(typeof r!=`function`||typeof n!=`function`){N(`original object and wrapper must be functions`);return}let i=n(r,t);return P(i,`__original`,r),P(i,`__unwrap`,()=>{e[t]===i&&P(e,t,r)}),P(i,`__wrapped`,!0),P(e,t,i),i},Pr=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{N(`must provide one or more modules to patch`),N(Error().stack);return}if(!(t&&Array.isArray(t))){N(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{Nr(e,t,n)})})},Fr=(e,t)=>{if(!e||!e[t]){N(`no function to unwrap.`),N(Error().stack);return}let n=e[t];if(!n.__unwrap)N(`no original to unwrap to -- has `+String(t)+` already been unwrapped?`);else{n.__unwrap();return}},Ir=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{N(`must provide one or more modules to patch`),N(Error().stack);return}if(!(t&&Array.isArray(t))){N(`must provide one or more functions to unwrap on modules`);return}e.forEach(e=>{t.forEach(t=>{Fr(e,t)})})};function F(e){e&&e.logger&&(typeof e.logger==`function`?N=e.logger:N(`new logger isn't a function, not replacing`))}F.wrap=Nr,F.massWrap=Pr,F.unwrap=Fr,F.massUnwrap=Ir;var Lr=class{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=_.createComponentLogger({namespace:e}),this._tracer=f.getTracer(e,t),this._meter=Ce.getMeter(e,t),this._logger=kr.getLogger(e,t),this._updateMetricInstruments()}_wrap=Nr;_unwrap=Fr;_massWrap=Pr;_massUnwrap=Ir;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}},Rr=class extends Lr{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}};function I(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}function L(e){return typeof e==`function`&&typeof e.__original==`function`&&typeof e.__unwrap==`function`&&e.__wrapped===!0}var R;(function(e){e[e.STABLE=1]=`STABLE`,e[e.OLD=2]=`OLD`,e[e.DUPLICATE=3]=`DUPLICATE`})(R||={});function zr(e,t){let n=R.OLD,r=t?.split(`,`).map(e=>e.trim()).filter(e=>e!==``);for(let t of r??[])if(t.toLowerCase()===e+`/dup`){n=R.DUPLICATE;break}else t.toLowerCase()===e&&(n=R.STABLE);return n}var z;function Br(){if(z===void 0)try{let e=globalThis.process.argv0;z=e?`unknown_service:${e}`:`unknown_service`}catch{z=`unknown_service`}return z}var B=e=>typeof e==`object`&&!!e&&typeof e.then==`function`,Vr=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=Wr(t),r._asyncAttributesPending=t.filter(([e,t])=>B(t)).length>0,r}constructor(e,t){let n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(B(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=Wr(this._rawAttributes),this._schemaUrl=Gr(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,B(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&_.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes){if(B(n)){_.debug(`Unsettled resource attribute ${t} skipped`);continue}n!=null&&(e[t]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=Kr(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}};function Hr(e,t){return Vr.FromAttributeList(Object.entries(e),t)}function Ur(){return Hr({[ft]:Br(),[mt]:bt[mt],[gt]:bt[gt],[_t]:bt[_t]})}function Wr(e){return e.map(([e,t])=>B(t)?[e,t.catch(t=>{_.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function Gr(e){if(typeof e==`string`||e===void 0)return e;_.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function Kr(e,t){let n=e?.schemaUrl,r=t?.schemaUrl,i=n===void 0||n===``,a=r===void 0||r===``;if(i)return r;if(a||n===r)return n;_.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}var qr=`exception`,Jr=Symbol.for(`nodejs.util.inspect.custom`);function Yr(e){let t={};for(let[n,r]of e.getRawAttributes())typeof r?.then!=`function`&&r!=null&&(t[n]??=r);return t}function Xr(e,t,n,r,i){if(typeof n==`number`&&n<0){let t=`[${e}]`;return r?.stylize?r.stylize(t,`special`):t}return typeof i!=`function`||!r?t:`${e} ${i(t,{...r,depth:r.depth==null?r.depth:r.depth-1})}`}var Zr=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:c.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){let t=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=b.now(),this._performanceOffset=t-(this._performanceStartTime+b.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(let t of e.links)this.addLink(t);this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(t==null||this._isSpanEnded())return this;if(e.length===0)return _.warn(`Invalid attribute key: ${e}`),this;if(!Ue(t))return _.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return n!==void 0&&this._attributesCount>=n&&r?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++,this)}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;let{eventCountLimit:r}=this._spanLimits;if(r===0)return _.warn(`No events allowed.`),this._droppedEventsCount++,this;r!==void 0&&this.events.length>=r&&(this._droppedEventsCount===0&&_.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),Tt(t)&&(Tt(n)||(n=t),t=void 0);let i=v(t),{attributePerEventCountLimit:a}=this._spanLimits,o={},s=0,c=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(a!==void 0&&c>=a){s++;continue}o[e]=this._truncateToSize(t),c++}return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:s}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(t===0)return this._droppedLinksCount++,this;t!==void 0&&this.links.length>=t&&(this._droppedLinksCount===0&&_.debug(`Dropping extra links.`),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:n}=this._spanLimits,r=v(e.attributes),i={},a=0,o=0;for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;let t=r[e];if(n!==void 0&&o>=n){a++;continue}i[e]=this._truncateToSize(t),o++}let s={context:e.context};return o>0&&(s.attributes=i),a>0&&(s.droppedAttributesCount=a),this.links.push(s),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===c.UNSET||this.status.code===c.OK)return this;let t={code:e.code};return e.code===c.ERROR&&(typeof e.message==`string`?t.message=e.message:e.message!=null&&_.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){if(this._isSpanEnded()){_.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(e),this._duration=Ct(this.startTime,this.endTime),this._duration[0]<0&&(_.warn(`Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.`,this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&_.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&_.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e==`number`&&e<=b.now())return C(e+this._performanceOffset);if(typeof e==`number`)return S(e);if(e instanceof Date)return S(e.getTime());if(wt(e))return e;if(this._startTimeProvided)return S(Date.now());let t=b.now()-this._performanceStartTime;return Et(this.startTime,S(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e==`string`?n[it]=e:e&&(e.code?n[ot]=e.code.toString():e.name&&(n[ot]=e.name),e.message&&(n[it]=e.message),e.stack&&(n[at]=e.stack)),n[`exception.type`]||n[`exception.message`]?this.addEvent(qr,n,t):_.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);_.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(_.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}[Jr](e,t,n){return Xr(`SpanImpl`,{name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Yr(this.resource)}},e,t,n)}},V;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(V||={});var Qr=`otel.component.name`,$r=`otel.component.type`,ei=`otel.span.parent.origin`,ti=`otel.span.sampling_result`,ni=`otel.sdk.processor.span.processed`,ri=`otel.sdk.processor.span.queue.capacity`,ii=`otel.sdk.processor.span.queue.size`,ai=`otel.sdk.span.live`,oi=`otel.sdk.span.started`,si=`batching_span_processor`,ci=class{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(oi,{unit:`{span}`,description:`The number of created spans.`}),this.liveSpans=e.createUpDownCounter(ai,{unit:`{span}`,description:`The number of currently live spans.`})}startSpan(e,t){let n=ui(t);if(this.startedSpans.add(1,{[ei]:li(e),[ti]:n}),t===V.NOT_RECORD)return()=>{};let r={[ti]:n};return this.liveSpans.add(1,r),()=>{this.liveSpans.add(-1,r)}}};function li(e){return e?e.isRemote?`remote`:`local`:`none`}function ui(e){switch(e){case V.RECORD_AND_SAMPLED:return`RECORD_AND_SAMPLE`;case V.RECORD:return`RECORD_ONLY`;case V.NOT_RECORD:return`DROP`}}var di=`2.9.0`,fi=class{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t){this.instrumentationScope=e,this._sampler=t.sampler,this._spanLimits=t.spanLimits,this._resource=t.resource,this._idGenerator=t.idGenerator,this._spanProcessor=t.spanProcessor,this._tracerMetrics=new ci(t.meterProvider.getMeter(`@opentelemetry/sdk-trace`,di))}startSpan(e,t={},r=m.active()){t.root&&(r=f.deleteSpan(r));let i=f.getSpan(r);if(Pe(r))return _.debug(`Instrumentation suppressed, returning Noop Span`),f.wrapSpanContext(n);let a=i?.spanContext(),o=this._idGenerator.generateSpanId(),s,c,u;!a||!f.isSpanContextValid(a)?c=this._idGenerator.generateTraceId():(c=a.traceId,u=a.traceState,s=a);let d=t.kind??be.INTERNAL,p=(t.links??[]).map(e=>({context:e.context,attributes:v(e.attributes)})),ee=v(t.attributes),h=this._sampler.shouldSample(r,c,e,d,ee,p),te=this._tracerMetrics.startSpan(a,h.decision);u=h.traceState??u;let g=h.decision===ye.RECORD_AND_SAMPLED?l.SAMPLED:l.NONE,ne={traceId:c,spanId:o,traceFlags:g,traceState:u};if(h.decision===ye.NOT_RECORD)return _.debug(`Recording is off, propagating context in a non-recording span`),f.wrapSpanContext(ne);let re=v(Object.assign(ee,h.attributes));return new Zr({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:ne,name:e,kind:d,links:p,parentSpanContext:s,attributes:re,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:te})}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a??m.active(),c=this.startSpan(e,i,s),l=f.setSpan(s,c);return m.with(l,o,void 0,c)}[Jr](e,t,n){return Xr(`Tracer`,{instrumentationScope:this.instrumentationScope,resource:{attributes:Yr(this._resource)},spanLimits:this._spanLimits},e,t,n)}},pi=class{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{y(e||Error(`MultiSpanProcessor: forceFlush failed`)),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}},H=class{shouldSample(){return{decision:V.NOT_RECORD}}toString(){return`AlwaysOffSampler`}},U=class{shouldSample(){return{decision:V.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}},W=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||=(y(Error(`ParentBasedSampler must have a root sampler configured`)),new U),this._remoteParentSampled=e.remoteParentSampled??new U,this._remoteParentNotSampled=e.remoteParentNotSampled??new H,this._localParentSampled=e.localParentSampled??new U,this._localParentNotSampled=e.localParentNotSampled??new H}shouldSample(e,t,n,r,i,a){let o=f.getSpanContext(e);return!o||!d(o)?this._root.shouldSample(e,t,n,r,i,a):o.isRemote?o.traceFlags&l.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,a):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,a):o.traceFlags&l.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,a):this._localParentNotSampled.shouldSample(e,t,n,r,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}},mi=new Map,hi=class{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(e,t,n){let r=mi.get(e)??0;if(mi.set(e,r+1),this.standardAttrs={[$r]:e,[Qr]:`${e}/${r}`},this.droppedAttrs={...this.standardAttrs,[rt]:`queue_full`},this.processedSpans=t.createCounter(ni,{unit:`{span}`,description:`The number of spans for which the processing has finished, either successful or failed.`}),n){let{capacity:e,getQueueSize:r}=n;t.createUpDownCounter(ri,{unit:`{span}`,description:`The maximum number of spans the queue of a given instance of an SDK span processor can hold.`}).add(e,this.standardAttrs),this.queueSize=t.createObservableUpDownCounter(ii,{unit:`{span}`,description:`The number of spans in the queue of a given instance of an SDK span processor.`}),this.queueSizeCallback=e=>e.observe(r(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(e){this.processedSpans.add(e,this.droppedAttrs)}finishSpans(e,t){if(!t){this.processedSpans.add(e,this.standardAttrs);return}let n={...this.standardAttrs,[rt]:t.name};this.processedSpans.add(e,n)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}},gi=class{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e){this._exporter=e.exporter,this._maxExportBatchSize=e.maxExportBatchSize??512,this._maxQueueSize=e.maxQueueSize??2048,this._scheduledDelayMillis=e.scheduledDelayMillis??5e3,this._exportTimeoutMillis=e.exportTimeoutMillis??3e4,this._shutdownOnce=new vn(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_.warn(`BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize),this._metrics=new hi(si,e.selfObsMeterProvider?e.selfObsMeterProvider.getMeter(`@opentelemetry/sdk-trace`):ve(),{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&l.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>(this._metrics.shutdown(),this._exporter.shutdown()))}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&_.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++,this._metrics.dropSpans(1);return}this._droppedSpansCount>0&&(_.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);m.with(Ne(m.active()),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(r,i=>{clearTimeout(n),this._metrics.finishSpans(r.length,i.error),i.code===E.SUCCESS?e():t(i.error??Error(`BatchSpanProcessor: span export failed`))}),a=null;for(let e=0,t=r.length;e<t;e++){let t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(a??=[],a.push(t.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,e=>{y(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,y(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},_i=class extends gi{_visibilityChangeListener;_pageHideListener;constructor(e){super(e),this.onInit(e)}onInit(e){e.disableAutoFlushOnDocumentHide!==!0&&typeof document<`u`&&(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush().catch(e=>{y(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{y(e)})},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}onShutdown(){typeof document<`u`&&(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}},vi=16,yi=8,bi=new Uint8Array(vi),xi=new Uint8Array(yi),Si=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function Ci(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function wi(e){let t=``;for(let n=0;n<e.length;n++)t+=Si[e[n]];return t}var Ti=class{generateTraceId(){return Ci(bi),wi(bi)}generateSpanId(){return Ci(xi),wi(xi)}},G;(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(G||={});var Ei=class{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(e={}){this._forceFlushTimeoutMillis=e.forceFlushTimeoutMillis??3e4,this._resource=e.resource??Ur(),this._activeSpanProcessor=new pi(e.spanProcessors??[]),this._tracerOptions={resource:this._resource,sampler:e.sampler??new W({root:new U}),spanLimits:{attributeCountLimit:e.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:e.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:e.spanLimits?.eventCountLimit??128,linkCountLimit:e.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:e.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:e.spanLimits?.attributePerLinkCountLimit??128},idGenerator:e.idGenerator||new Ti,spanProcessor:this._activeSpanProcessor,meterProvider:e.meterProvider??{getMeter(){return ve()}}}}getTracer(e,t,n){let r=`${e}@${t||``}:${n?.schemaUrl||``}`;return this._tracers.has(r)||this._tracers.set(r,new fi({name:e,version:t,schemaUrl:n?.schemaUrl},this._tracerOptions)),this._tracers.get(r)}forceFlush(){let e=this._forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=G.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==G.timeout&&(r=G.resolved,n(r))}).catch(e=>{clearTimeout(i),r=G.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==G.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Jr](e,t,n){let r=this._activeSpanProcessor._spanProcessors;return Xr(`TracerProvider`,{resource:{attributes:Yr(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:r.map(e=>e.constructor?.name??`SpanProcessor`)},e,t,n)}},Di=class{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:o(t)&&this._accumulate(t)<this._upperBound?V.RECORD_AND_SAMPLED:V.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<32;n+=8){let r=0;for(let t=0;t<8;t++){let i=e.charCodeAt(n+t),a=i<58?i-48:i<71?i-55:i-87;r=r<<4|a}t=(t^r)>>>0}return t}},K;(function(e){e.AlwaysOff=`always_off`,e.AlwaysOn=`always_on`,e.ParentBasedAlwaysOff=`parentbased_always_off`,e.ParentBasedAlwaysOn=`parentbased_always_on`,e.ParentBasedTraceIdRatio=`parentbased_traceidratio`,e.TraceIdRatio=`traceidratio`})(K||={});var Oi=1;function ki(){return{sampler:Ai(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function Ai(){let e=K.ParentBasedAlwaysOn;switch(e){case K.AlwaysOn:return new U;case K.AlwaysOff:return new H;case K.ParentBasedAlwaysOn:return new W({root:new U});case K.ParentBasedAlwaysOff:return new W({root:new H});case K.TraceIdRatio:return new Di(ji());case K.ParentBasedTraceIdRatio:return new W({root:new Di(ji())});default:return _.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${K.ParentBasedAlwaysOn}".`),new W({root:new U})}}function ji(){return _.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Oi}.`),Oi}function Mi(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??1/0,Object.assign({},e,{spanLimits:t})}var Ni=class extends Ei{constructor(e={}){let t=cn({},ki(),Mi(e));delete t.generalLimits,super(t)}},Pi=class extends _i{constructor(e,t){t||={};for(let[e,n]of[[`maxExportBatchSize`,`OTEL_BSP_MAX_EXPORT_BATCH_SIZE`],[`maxQueueSize`,`OTEL_BSP_MAX_QUEUE_SIZE`],[`scheduledDelayMillis`,`OTEL_BSP_SCHEDULE_DELAY`],[`exportTimeoutMillis`,`OTEL_BSP_EXPORT_TIMEOUT`]])t[e];super({exporter:e,...t})}},Fi=class{_enabled=!1;_currentContext=r;_bindFunction(e=r,t){let n=this,i=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(i,`length`,{enumerable:!1,configurable:!0,writable:!1,value:t.length}),i}active(){return this._currentContext}bind(e,t){return e===void 0&&(e=this.active()),typeof t==`function`?this._bindFunction(e,t):t}disable(){return this._currentContext=r,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=r,this)}with(e,t,n,...i){let a=this._currentContext;this._currentContext=e||r;try{return t.call(n,...i)}finally{this._currentContext=a}}};function Ii(e){if(e!==null){if(e===void 0){let e=new Fi;e.enable(),m.setGlobalContextManager(e);return}e.enable(),m.setGlobalContextManager(e)}}function Li(e){if(e!==null){if(e===void 0){h.setGlobalPropagator(new Dt({propagators:[new Gt,new Ve]}));return}h.setGlobalPropagator(e)}}var Ri=class extends Ni{constructor(e={}){super(e)}register(e={}){f.setGlobalTracerProvider(this),Li(e.propagator),Ii(e.contextManager)}},q;(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(q||={});var zi=`http.response_content_length`,Bi=`http.response_content_length_uncompressed`;function J(e,t){return t in e}function Y(e,t,n,r=!0){if(J(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function Vi(e,t,n=!1,r,i){if(r===void 0&&(r=t[q.START_TIME]!==0),n||(Y(e,q.FETCH_START,t,r),Y(e,q.DOMAIN_LOOKUP_START,t,r),Y(e,q.DOMAIN_LOOKUP_END,t,r),Y(e,q.CONNECT_START,t,r),Y(e,q.SECURE_CONNECTION_START,t,r),Y(e,q.CONNECT_END,t,r),Y(e,q.REQUEST_START,t,r),Y(e,q.RESPONSE_START,t,r),Y(e,q.RESPONSE_END,t,r)),!i){let n=t[q.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(zi,n);let r=t[q.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(Bi,r)}}function Hi(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return`/`;let n=Wi(e,t);if(t&&n.indexOf(`@id`)>0)return n;let r=``;return e.parentNode&&(r+=Hi(e.parentNode,t)),r+=n,r}function Ui(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let n=Array.from(e.parentNode.childNodes);return n=n.filter(n=>{let r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName}),n.length>=1?n.indexOf(e)+1:0}function Wi(e,t){let n=e.nodeType,r=Ui(e),i;if(n===Node.ELEMENT_NODE){let n=e.getAttribute(`id`);if(t&&n)return`//*[@id="${n}"]`;i=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)i=`text()`;else if(n===Node.COMMENT_NODE)i=`comment()`;else return``;return i&&r>1?`/${i}[${r}]`:`/${i}`}var X;(function(e){e.DOCUMENT_LOAD=`documentLoad`,e.DOCUMENT_FETCH=`documentFetch`,e.RESOURCE_FETCH=`resourceFetch`})(X||={});var Gi=`0.49.0`,Ki=`@opentelemetry/instrumentation-document-load`,qi;(function(e){e.FIRST_PAINT=`firstPaint`,e.FIRST_CONTENTFUL_PAINT=`firstContentfulPaint`})(qi||={});var Ji=()=>{let e={},t=b.getEntriesByType?.(`navigation`)[0];if(t)Object.values(q).forEach(n=>{if(J(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}});else{let t=b.timing;t&&Object.values(q).forEach(n=>{if(J(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}})}return e},Yi={"first-paint":qi.FIRST_PAINT,"first-contentful-paint":qi.FIRST_CONTENTFUL_PAINT},Xi=e=>{let t=b.getEntriesByType?.(`paint`);t&&t.forEach(({name:t,startTime:n})=>{J(Yi,t)&&e.addEvent(Yi[t],n)})},Zi=class extends Rr{component=`document-load`;version=`1`;moduleName=this.component;constructor(e={}){super(Ki,Gi,e)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(e){let t=b.getEntriesByType?.(`resource`);t&&t.forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){let e=Array.from(document.getElementsByTagName(`meta`)).find(e=>e.getAttribute(`name`)===D),t=Ji(),n=e&&e.content||``;m.with(h.extract(r,{traceparent:n}),()=>{let e=this._startSpan(X.DOCUMENT_LOAD,q.FETCH_START,t);e&&(m.with(f.setSpan(m.active(),e),()=>{let e=this._startSpan(X.DOCUMENT_FETCH,q.FETCH_START,t);e&&(e.setAttribute(et,location.href),m.with(f.setSpan(m.active(),e),()=>{Vi(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,q.RESPONSE_END,t)}))}),e.setAttribute(et,location.href),e.setAttribute(tt,navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||(Y(e,q.FETCH_START,t),Y(e,q.UNLOAD_EVENT_START,t),Y(e,q.UNLOAD_EVENT_END,t),Y(e,q.DOM_INTERACTIVE,t),Y(e,q.DOM_CONTENT_LOADED_EVENT_START,t),Y(e,q.DOM_CONTENT_LOADED_EVENT_END,t),Y(e,q.DOM_COMPLETE,t),Y(e,q.LOAD_EVENT_START,t),Y(e,q.LOAD_EVENT_END,t)),this.getConfig().ignorePerformancePaintEvents||Xi(e),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,q.LOAD_EVENT_END,t))})}_endSpan(e,t,n){e&&(J(n,t)?e.end(n[t]):e.end())}_initResourceSpan(e,t){let n=this._startSpan(X.RESOURCE_FETCH,q.FETCH_START,e,t);n&&(n.setAttribute(et,e.name),Vi(n,e,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnResourceSpan(n,e,this.getConfig().applyCustomAttributesOnSpan?.resourceFetch),this._endSpan(n,q.RESPONSE_END,e))}_startSpan(e,t,n,r){if(J(n,t)&&typeof n[t]==`number`)return this.tracer.startSpan(e,{startTime:n[t]},r?f.setSpan(m.active(),r):void 0)}_waitForPageLoad(){window.document.readyState===`complete`?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener(`load`,this._onDocumentLoaded))}_addCustomAttributesOnSpan(e,t){t&&I(()=>t(e),e=>{e&&this._diag.error(`addCustomAttributesOnSpan`,e)},!0)}_addCustomAttributesOnResourceSpan(e,t,n){n&&I(()=>n(e,t),e=>{e&&this._diag.error(`addCustomAttributesOnResourceSpan`,e)},!0)}enable(){window.removeEventListener(`load`,this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener(`load`,this._onDocumentLoaded)}},Z;(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(Z||={});var Qi=`http.response_content_length`,$i=`http.response_content_length_uncompressed`,ea;function ta(){return ea||=document.createElement(`a`),ea}function na(e,t){return t in e}function Q(e,t,n,r=!0){if(na(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function ra(e,t,n=!1,r,i){if(r===void 0&&(r=t[Z.START_TIME]!==0),n||(Q(e,Z.FETCH_START,t,r),Q(e,Z.DOMAIN_LOOKUP_START,t,r),Q(e,Z.DOMAIN_LOOKUP_END,t,r),Q(e,Z.CONNECT_START,t,r),Q(e,Z.SECURE_CONNECTION_START,t,r),Q(e,Z.CONNECT_END,t,r),Q(e,Z.REQUEST_START,t,r),Q(e,Z.RESPONSE_START,t,r),Q(e,Z.RESPONSE_END,t,r)),!i){let n=t[Z.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(Qi,n);let r=t[Z.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute($i,r)}}function ia(e){return e.slice().sort((e,t)=>{let n=e[Z.FETCH_START],r=t[Z.FETCH_START];return n>r?1:n<r?-1:0})}function aa(){return typeof location<`u`?location.origin:void 0}function oa(e,t,n,r,i=new WeakSet,a){let o=la(e);e=o.toString();let s=ca(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};let c=ia(s);if(o.origin!==aa()&&c.length>1){let e=c[0],t=sa(c,e[Z.RESPONSE_END],n),r=e[Z.RESPONSE_END];return t[Z.FETCH_START]<r&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}else return{mainRequest:s[0]}}function sa(e,t,n){let r=T(n),i=T(w(t)),a=e[1],o,s=e.length;for(let t=1;t<s;t++){let n=e[t],s=T(w(n[Z.FETCH_START])),c=r-T(w(n[Z.RESPONSE_END]));s>=i&&(!o||c<o)&&(o=c,a=n)}return a}function ca(e,t,n,r,i,a){let o=T(t),s=T(n),c=r.filter(t=>{let n=T(w(t[Z.FETCH_START])),r=T(w(t[Z.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||`xmlhttprequest`)&&t.name===e&&n>=o&&r<=s});return c.length>0&&(c=c.filter(e=>!i.has(e))),c}function la(e){if(typeof URL==`function`)return new URL(e,typeof document<`u`?document.baseURI:typeof location<`u`?location.href:void 0);let t=ta();return t.href=e,t}function ua(e,t){let n=t||[];return(typeof n==`string`||n instanceof RegExp)&&(n=[n]),la(e).origin===aa()?!0:n.some(t=>hn(e,t))}var da;(function(e){e.COMPONENT=`component`,e.HTTP_STATUS_TEXT=`http.status_text`})(da||={});var fa=`http.host`,pa=`http.method`,ma=`http.request.body.size`,ha=`http.request_content_length_uncompressed`,ga=`http.scheme`,_a=`http.status_code`,va=`http.url`,ya=`http.user_agent`,ba=_.createComponentLogger({namespace:`@opentelemetry/opentelemetry-instrumentation-fetch/utils`});function xa(...e){if(e[0]instanceof URL||typeof e[0]==`string`){let t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){let{body:e,length:n}=Sa(t.body);return t.body=e,n}else return Promise.resolve(wa(t.body))}else{let t=e[0];return t?.body?t.clone().text().then(e=>Ea(e)):Promise.resolve()}}function Sa(e){if(!e.pipeThrough)return ba.warn(`Platform has ReadableStream but not pipeThrough!`),{body:e,length:Promise.resolve(void 0)};let t=0,n,r=new Promise(e=>{n=e}),i=new TransformStream({start(){},async transform(e,n){let r=await e;t+=r.byteLength,n.enqueue(e)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function Ca(e){return typeof Document<`u`&&e instanceof Document}function wa(e){if(Ca(e))return new XMLSerializer().serializeToString(document).length;if(typeof e==`string`)return Ea(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Da(e);if(e instanceof URLSearchParams)return Ea(e.toString());if(e.byteLength!==void 0)return e.byteLength;ba.warn(`unknown body type`)}var Ta=new TextEncoder;function Ea(e){return Ta.encode(e).byteLength}function Da(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function Oa(e){let t=ja(),n=e.toUpperCase();return n in t?n:`_OTHER`}var ka={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},Aa;function ja(){return Aa===void 0&&(Aa=ka),Aa}var Ma={"https:":`443`,"http:":`80`};function Na(e){let t=Number(e.port||Ma[e.protocol]);if(t&&!isNaN(t))return t}var Pa=`0.204.0`,Fa=300,Ia=typeof process==`object`&&process.release?.name===`node`,La=class extends Rr{component=`fetch`;version=Pa;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super(`@opentelemetry/instrumentation-fetch`,Pa,e),this._semconvStability=zr(`http`,e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let n=this.tracer.startSpan(`CORS Preflight`,{startTime:t[Z.FETCH_START]},f.setSpan(m.active(),e)),r=!(this._semconvStability&R.OLD);ra(n,t,this.getConfig().ignoreNetworkEvents,void 0,r),n.end(t[Z.RESPONSE_END])}_addFinalSpanAttributes(e,t){let n=la(t.url);if(this._semconvStability&R.OLD&&(e.setAttribute(_a,t.status),t.statusText!=null&&e.setAttribute(da.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(fa,n.host),e.setAttribute(ga,n.protocol.replace(`:`,``)),typeof navigator<`u`&&e.setAttribute(ya,navigator.userAgent)),this._semconvStability&R.STABLE){e.setAttribute(lt,t.status),e.setAttribute(ut,n.hostname);let r=Na(n);r&&e.setAttribute(dt,r)}}_addHeaders(e,t){if(!ua(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};h.inject(m.active(),e),Object.keys(e).length>0&&this._diag.debug(`headers inject skipped due to CORS policy`);return}if(e instanceof Request)h.inject(m.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else if(e.headers instanceof Headers)h.inject(m.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else if(e.headers instanceof Map)h.inject(m.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else{let t={};h.inject(m.active(),t),e.headers=Object.assign({},t,e.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(gn(e,this.getConfig().ignoreUrls)){this._diag.debug(`ignoring span as url matches ignored url`);return}let n=``,r={};if(this._semconvStability&R.OLD){let i=(t.method||`GET`).toUpperCase();n=`HTTP ${i}`,r[da.COMPONENT]=this.moduleName,r[pa]=i,r[va]=e}if(this._semconvStability&R.STABLE){let i=t.method,a=Oa(t.method||`GET`);n||=a,r[st]=a,a!==i&&(r[ct]=i),r[vt]=e}return this.tracer.startSpan(n,{kind:be.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(e,t,n){let r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType(`resource`)}let i=oa(t.spanUrl,t.startTime,n,r,this._usedResources,`fetch`);if(i.mainRequest){let t=i.mainRequest;this._markResourceAsUsed(t);let n=i.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&R.OLD);ra(e,t,this.getConfig().ignoreNetworkEvents,void 0,r)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){let r=S(Date.now()),i=C();this._addFinalSpanAttributes(e,n),this._semconvStability&R.STABLE&&n.status>=400&&(e.setStatus({code:c.ERROR}),e.setAttribute(rt,String(n.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(r)},Fa)}_patchConstructor(){return e=>{let t=this;return function(...n){let r=this,i=la(n[0]instanceof Request?n[0].url:String(n[0])).href,a=n[0]instanceof Request?n[0]:n[1]||{},o=t._createSpan(i,a);if(!o)return e.apply(this,n);let s=t._prepareSpanData(i);t.getConfig().measureRequestSize&&xa(...n).then(e=>{e&&(t._semconvStability&R.OLD&&o.setAttribute(ha,e),t._semconvStability&R.STABLE&&o.setAttribute(ma,e))}).catch(e=>{t._diag.warn(`getFetchBodyLength`,e)});function c(e,n){t._applyAttributesAfterFetch(e,a,n),t._endSpan(e,s,{status:n.status||0,statusText:n.message,url:i})}function l(e,n){t._applyAttributesAfterFetch(e,a,n),n.status>=200&&n.status<400?t._endSpan(e,s,n):t._endSpan(e,s,{status:n.status,statusText:n.statusText,url:i})}function u(e,t,n){try{let t=n.clone().body;if(t){let r=t.getReader(),i=()=>{r.read().then(({done:t})=>{t?l(e,n):i()},t=>{c(e,t)})};i()}else l(e,n)}finally{t(n)}}function d(e,t,n){try{c(e,n)}finally{t(n)}}return new Promise((n,s)=>m.with(f.setSpan(m.active(),o),()=>(t._addHeaders(a,i),t._callRequestHook(o,a),t._tasksCount++,e.apply(r,a instanceof Request?[a]:[i,a]).then(u.bind(r,o,n),d.bind(r,o,s)))))}}}_applyAttributesAfterFetch(e,t,n){let r=this.getConfig().applyCustomAttributesOnSpan;r&&I(()=>r(e,t,n),e=>{e&&this._diag.error(`applyCustomAttributesOnSpan`,e)},!0)}_callRequestHook(e,t){let n=this.getConfig().requestHook;n&&I(()=>n(e,t),e=>{e&&this._diag.error(`requestHook`,e)},!0)}_prepareSpanData(e){let t=C(),n=[];if(typeof PerformanceObserver!=`function`)return{entries:n,startTime:t,spanUrl:e};let r=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{t.initiatorType===`fetch`&&t.name===e&&n.push(t)})});return r.observe({entryTypes:[`resource`]}),{entries:n,observer:r,startTime:t,spanUrl:e}}enable(){if(Ia){this._diag.warn(`this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()`);return}L(fetch)&&(this._unwrap(Xe,`fetch`),this._diag.debug(`removing previous patch for constructor`)),this._wrap(Xe,`fetch`,this._patchConstructor())}disable(){Ia||(this._unwrap(Xe,`fetch`),this._usedResources=new WeakSet)}},$;(function(e){e.EVENT_TYPE=`event_type`,e.TARGET_ELEMENT=`target_element`,e.TARGET_XPATH=`target_xpath`,e.HTTP_URL=`http.url`})($||={});var Ra=`0.49.0`,za=`@opentelemetry/instrumentation-user-interaction`,Ba=`OT_ZONE_CONTEXT`,Va=`Navigation:`,Ha=[`click`];function Ua(){return!1}var Wa=class extends Rr{version=Ra;moduleName=`user-interaction`;_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super(za,Ra,e),this._eventNames=new Set(e?.eventNames??Ha),this._shouldPreventSpanCreation=typeof e?.shouldPreventSpanCreation==`function`?e.shouldPreventSpanCreation:Ua}init(){}_checkForTimeout(e,t){let n=this._spansData.get(t);n&&(e.source===`setTimeout`?n.hrTimeLastTimeout=C():e.source!==`Promise.then`&&e.source!==`setTimeout`&&(n.hrTimeLastTimeout=void 0))}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t,n){if(!(e instanceof HTMLElement)||!e.getAttribute||e.hasAttribute(`disabled`)||!this._allowEventName(t))return;let r=Hi(e,!0);try{let i=this.tracer.startSpan(t,{attributes:{[$.EVENT_TYPE]:t,[$.TARGET_ELEMENT]:e.tagName,[$.TARGET_XPATH]:r,[$.HTTP_URL]:window.location.href}},n?f.setSpan(m.active(),n):void 0);return this._shouldPreventSpanCreation(t,e,i)===!0?void 0:(this._spansData.set(i,{taskCount:0}),i)}catch(e){this._diag.error(`failed to start create new user interaction span`,e)}}_decrementTask(e){let t=this._spansData.get(e);t&&(t.taskCount--,t.taskCount===0&&this._tryToEndSpan(e,t.hrTimeLastTimeout))}_getCurrentSpan(e){let t=e.get(Ba);return t&&f.getSpan(t)}_incrementTask(e){let t=this._spansData.get(e);t&&t.taskCount++}addPatchedListener(e,t,n,r){let i=this._wrappedListeners.get(n);i||(i=new Map,this._wrappedListeners.set(n,i));let a=i.get(t);return a||(a=new Map,i.set(t,a)),a.has(e)?!1:(a.set(e,r),!0)}removePatchedListener(e,t,n){let r=this._wrappedListeners.get(n);if(!r)return;let i=r.get(t);if(!i)return;let a=i.get(e);return a&&(i.delete(e),i.size===0&&(r.delete(t),r.size===0&&this._wrappedListeners.delete(n))),a}_invokeListener(e,t,n){return typeof e==`function`?e.apply(t,n):e.handleEvent(n[0])}_patchAddEventListener(){let e=this;return t=>function(n,r,i){if(!r)return t.call(this,n,r,i);let a=i&&typeof i==`object`&&i.once,o=function(...t){let i,o=t[0],s=o?.target;o&&(i=e._eventsSpanMap.get(o)),a&&e.removePatchedListener(this,n,r);let c=e._createSpan(s,n,i);return c?(o&&e._eventsSpanMap.set(o,c),m.with(f.setSpan(m.active(),c),()=>{let n=e._invokeListener(r,this,t);return c.end(),n})):e._invokeListener(r,this,t)};if(e.addPatchedListener(this,n,r,o))return t.call(this,n,o,i)}}_patchRemoveEventListener(){let e=this;return t=>function(n,r,i){let a=e.removePatchedListener(this,n,r);return a?t.call(this,n,a,i):t.call(this,n,r,i)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_patchHistoryApi(){this._unpatchHistoryApi(),this._wrap(history,`replaceState`,this._patchHistoryMethod()),this._wrap(history,`pushState`,this._patchHistoryMethod()),this._wrap(history,`back`,this._patchHistoryMethod()),this._wrap(history,`forward`,this._patchHistoryMethod()),this._wrap(history,`go`,this._patchHistoryMethod())}_patchHistoryMethod(){let e=this;return t=>function(...n){let r=`${location.pathname}${location.hash}${location.search}`,i=t.apply(this,n),a=`${location.pathname}${location.hash}${location.search}`;return r!==a&&e._updateInteractionName(a),i}}_unpatchHistoryApi(){L(history.replaceState)&&this._unwrap(history,`replaceState`),L(history.pushState)&&this._unwrap(history,`pushState`),L(history.back)&&this._unwrap(history,`back`),L(history.forward)&&this._unwrap(history,`forward`),L(history.go)&&this._unwrap(history,`go`)}_updateInteractionName(e){let t=f.getSpan(m.active());t&&typeof t.updateName==`function`&&t.updateName(`${Va} ${e}`)}_patchZoneCancelTask(){let e=this;return t=>function(n){let r=Zone.current,i=e._getCurrentSpan(r);return i&&e._shouldCountTask(n,r)&&e._decrementTask(i),t.call(this,n)}}_patchZoneScheduleTask(){let e=this;return t=>function(n){let r=Zone.current,i=e._getCurrentSpan(r);return i&&e._shouldCountTask(n,r)&&(e._incrementTask(i),e._checkForTimeout(n,i)),t.call(this,n)}}_patchZoneRunTask(){let e=this;return t=>function(n,r,i){let a=(Array.isArray(i)&&i[0]instanceof Event?i[0]:void 0)?.target,o,s=this;if(a){if(o=e._createSpan(a,n.eventName),o)return e._incrementTask(o),s.run(()=>{try{return m.with(f.setSpan(m.active(),o),()=>{let e=Zone.current;return n._zone=e,t.call(e,n,r,i)})}finally{e._decrementTask(o)}})}else o=e._getCurrentSpan(s);try{return t.call(s,n,r,i)}finally{o&&e._shouldCountTask(n,s)&&e._decrementTask(o)}}}_shouldCountTask(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;let n=this._getCurrentSpan(t);return!n||!this._spansData.get(n)?!1:e.type===`macroTask`||e.type===`microTask`}_tryToEndSpan(e,t){e&&this._spansData.get(e)&&(e.end(t),this._spansData.delete(e))}enable(){let e=this._getZoneWithPrototype();this._diag.debug(`applying patch to`,this.moduleName,this.version,`zone:`,!!e),e?(L(e.prototype.runTask)&&(this._unwrap(e.prototype,`runTask`),this._diag.debug(`removing previous patch from method runTask`)),L(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,`scheduleTask`),this._diag.debug(`removing previous patch from method scheduleTask`)),L(e.prototype.cancelTask)&&(this._unwrap(e.prototype,`cancelTask`),this._diag.debug(`removing previous patch from method cancelTask`)),this._zonePatched=!0,this._wrap(e.prototype,`runTask`,this._patchZoneRunTask()),this._wrap(e.prototype,`scheduleTask`,this._patchZoneScheduleTask()),this._wrap(e.prototype,`cancelTask`,this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(e=>{L(e.addEventListener)&&(this._unwrap(e,`addEventListener`),this._diag.debug(`removing previous patch from method addEventListener`)),L(e.removeEventListener)&&(this._unwrap(e,`removeEventListener`),this._diag.debug(`removing previous patch from method removeEventListener`)),this._wrap(e,`addEventListener`,this._patchAddEventListener()),this._wrap(e,`removeEventListener`,this._patchRemoveEventListener())})),this._patchHistoryApi()}disable(){let e=this._getZoneWithPrototype();this._diag.debug(`removing patch from`,this.moduleName,this.version,`zone:`,!!e),e&&this._zonePatched?(L(e.prototype.runTask)&&this._unwrap(e.prototype,`runTask`),L(e.prototype.scheduleTask)&&this._unwrap(e.prototype,`scheduleTask`),L(e.prototype.cancelTask)&&this._unwrap(e.prototype,`cancelTask`)):this._getPatchableEventTargets().forEach(e=>{L(e.addEventListener)&&this._unwrap(e,`addEventListener`),L(e.removeEventListener)&&this._unwrap(e,`removeEventListener`)}),this._unpatchHistoryApi()}_getZoneWithPrototype(){return window.Zone}},Ga=`open-knowledge-app`,Ka=!1;function qa(){return{BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_VERSION:`0.58.9`}?.VITE_OTEL_COLLECTOR_URL??`http://localhost:14318`}function Ja(){if(Ka)return;Ka=!0;let e=null,t=!1;try{let n=qa(),r={BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_VERSION:`0.58.9`};e=new Ri({resource:Hr({[ft]:`open-knowledge-app`,[pt]:r?.VITE_APP_VERSION??`dev`,[nt]:r?.MODE??`dev`}),spanProcessors:[new Pi(new xr({url:`${n}/v1/traces`}),{maxExportBatchSize:50,scheduledDelayMillis:2e3})]}),e.register(),t=!0,Mr({instrumentations:[new Zi,new Wa({eventNames:[`click`,`submit`]}),new La({propagateTraceHeaderCorsUrls:[/^https?:\/\/localhost(:\d+)?\/api\//,/^https?:\/\/127\.0\.0\.1(:\d+)?\/api\//,/^\/api\//],clearTimingResources:!0})]}),console.info(`[otel] frontend telemetry initialized — OTLP/HTTP → ${n}/v1/traces`)}catch(n){console.warn(`[otel] frontend telemetry init failed — continuing without`,n),t&&e&&e.shutdown().catch(()=>{}),Ka=!1}}function Ya(){return f.getTracer(Ga)}export{Ya as getAppTracer,Ja as install};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./propagation-api-PBYTadVM.js";import{n}from"./startup-marks-BBwl9PAL.js";import{getAppTracer as r}from"./telemetry-impl-BFiE8Z2z.js";var i;function a(){if(!i)try{let a=typeof window<`u`?window.okDesktop?.config.startupTraceparent:void 0;if(!a)return;let o=t.extract(e.active(),{traceparent:a}),s=r().startSpan(`ok.app-startup`,void 0,o);i=s,n(e=>{try{s.end(e)}catch{}i=void 0})}catch{}}export{a as initStartupTrace};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-Bhw2PmPp.js";var t=e(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]);export{t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dist-ZfIywMZM.js","./chunk-CYidjpOJ.js","./w3c-keyname-Bw5giFqP.js","./dist-CB_NMgy4.js","./dist-BLe6Laue.js","./dist-CyQvb_hJ.js","./dist-8oXszleg.js","./dist-RP9GkCTw.js","./dist-THE2PCU5.js","./dist-CuMGVsog.js","./dist-DMk7rHfk.js","./dist-BJNERzM02.js","./dist-TdeurvvU.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./preload-helper-Chd9yIcd.js";var t=new Map;function n(e){let n=t.get(e);if(n)return n;let i=r(e);return t.set(e,i),i}async function r(t){switch(t){case`bash`:case`shell`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{shell:e}=await import(`./shell-BmuXbfbH.js`);return{shell:e}},[],import.meta.url)).shell);case`c`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{c:e}=await import(`./clike-D0HTSj3G.js`);return{c:e}},[],import.meta.url)).c);case`cpp`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{cpp:e}=await import(`./clike-D0HTSj3G.js`);return{cpp:e}},[],import.meta.url)).cpp);case`csharp`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{csharp:e}=await import(`./clike-D0HTSj3G.js`);return{csharp:e}},[],import.meta.url)).csharp);case`css`:case`less`:case`scss`:return(await e(async()=>{let{css:e}=await import(`./dist-CB_NMgy4.js`).then(e=>e.r);return{css:e}},__vite__mapDeps([3,1,0,2,4]),import.meta.url)).css().language;case`diff`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{diff:e}=await import(`./diff-D1tXr_3N.js`);return{diff:e}},[],import.meta.url)).diff);case`gherkin`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{gherkin:e}=await import(`./gherkin-qTr9I9RT.js`);return{gherkin:e}},[],import.meta.url)).gherkin);case`go`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{go:e}=await import(`./go-C89M6Tnn.js`);return{go:e}},[],import.meta.url)).go);case`ini`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{properties:e}=await import(`./properties-Cu9oAWIy.js`);return{properties:e}},[],import.meta.url)).properties);case`java`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{java:e}=await import(`./clike-D0HTSj3G.js`);return{java:e}},[],import.meta.url)).java);case`javascript`:return(await e(async()=>{let{javascript:e}=await import(`./dist-CyQvb_hJ.js`).then(e=>e.t);return{javascript:e}},__vite__mapDeps([5,1,6,0,2,4]),import.meta.url)).javascript().language;case`json`:return(await e(async()=>{let{json:e}=await import(`./dist-RP9GkCTw.js`).then(e=>e.t);return{json:e}},__vite__mapDeps([7,1,0,2,4]),import.meta.url)).json().language;case`kotlin`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{kotlin:e}=await import(`./clike-D0HTSj3G.js`);return{kotlin:e}},[],import.meta.url)).kotlin);case`lua`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{lua:e}=await import(`./lua-BDdZkU6-.js`);return{lua:e}},[],import.meta.url)).lua);case`markdown`:return(await e(async()=>{let{markdown:e}=await import(`./dist-THE2PCU5.js`).then(e=>e.t);return{markdown:e}},__vite__mapDeps([8,1,6,0,2,9,3,4,5]),import.meta.url)).markdown().language;case`objectivec`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{objectiveC:e}=await import(`./clike-D0HTSj3G.js`);return{objectiveC:e}},[],import.meta.url)).objectiveC);case`perl`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{perl:e}=await import(`./perl-CH_ML9FS.js`);return{perl:e}},[],import.meta.url)).perl);case`python`:return(await e(async()=>{let{python:e}=await import(`./dist-DMk7rHfk.js`);return{python:e}},__vite__mapDeps([10,6,0,1,2,4]),import.meta.url)).python().language;case`r`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{r:e}=await import(`./r-BhELqv5F.js`);return{r:e}},[],import.meta.url)).r);case`ruby`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{ruby:e}=await import(`./ruby-Wd_f1AJm.js`);return{ruby:e}},[],import.meta.url)).ruby);case`rust`:return(await e(async()=>{let{rust:e}=await import(`./dist-BJNERzM02.js`);return{rust:e}},__vite__mapDeps([11,0,1,2,4]),import.meta.url)).rust().language;case`sql`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{standardSQL:e}=await import(`./sql-C7H020ne.js`);return{standardSQL:e}},[],import.meta.url)).standardSQL);case`swift`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{swift:e}=await import(`./swift-Dj6qhJqd.js`);return{swift:e}},[],import.meta.url)).swift);case`typescript`:return(await e(async()=>{let{javascript:e}=await import(`./dist-CyQvb_hJ.js`).then(e=>e.t);return{javascript:e}},__vite__mapDeps([5,1,6,0,2,4]),import.meta.url)).javascript({typescript:!0,jsx:!0}).language;case`html`:case`xml`:return(await e(async()=>{let{html:e}=await import(`./dist-CuMGVsog.js`).then(e=>e.t);return{html:e}},__vite__mapDeps([9,1,3,0,2,4,5,6]),import.meta.url)).html().language;case`yaml`:return(await e(async()=>{let{yaml:e}=await import(`./dist-TdeurvvU.js`).then(e=>e.t);return{yaml:e}},__vite__mapDeps([12,1,0,2,4]),import.meta.url)).yaml().language;default:return null}}async function i(t,r){if(t===`canvas`)return(await e(async()=>{let{json:e}=await import(`./dist-RP9GkCTw.js`).then(e=>e.t);return{json:e}},__vite__mapDeps([7,1,0,2,4]),import.meta.url)).json().language;if(r){let e=await n(r);if(e)return e}return t===`toml`?(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-ZfIywMZM.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{toml:e}=await import(`./toml-BgTQFVve.js`);return{toml:e}},[],import.meta.url)).toml):null}export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{n as r}from"./dist-D81TFAXh.js";import{t as i}from"./dist-XgwTV-oh2.js";var a=e(t(),1),o=n(),s=`ok-acp-agent-settings-v1`;function c(e){return`${e.source}:${e.id}`}function l(){try{let e=localStorage.getItem(s);if(e===null)return{};let t=JSON.parse(e);return typeof t==`object`&&t?t:{}}catch{return{}}}function u(e){try{localStorage.setItem(s,JSON.stringify(e))}catch(e){console.warn(`[acp-settings] could not persist agent settings`,e)}}function d(e,t,n){let r=l(),i=r[e]??{};r[e]={...i,config:{...i.config,[t]:n}},u(r)}function f(e){let t=l()[e]?.config;if(typeof t!=`object`||!t)return;let n={};for(let[e,r]of Object.entries(t))(typeof r==`string`||typeof r==`boolean`)&&(n[e]=r);return Object.keys(n).length>0?n:void 0}function p(e,t){if(t===``)return;let n=l();n[e]={...n[e]??{},modeId:t},u(n)}function m(e){let t=l()[e]?.modeId;return typeof t==`string`&&t!==``?t:void 0}var h=64e3;function g(e){if(typeof e!=`object`||!e)return null;let t=e;return t.type===`text`&&typeof t.text==`string`?t.text:null}function _(e){return e!==null&&(e.reason===`connect`||e.reason===`session-setup`||e.reason===`auth-required`)}var v=class{items=[];plan=[];turnActive=!1;tokenUsage=null;terminals={};toolCallIndex=new Map;permissionIndex=new Map;permissionByToolCall=new Map;permissionsByToolCall={};messageIndex=new Map;runtimeConsentIndex=new Map;lastConsentIndex=null;appliedCount=0;dirty=!1;snapshot={items:[],plan:[],turnActive:!1,tokenUsage:null,terminals:{},permissionsByToolCall:{}};sync(e){e.length<this.appliedCount&&this.reset();for(let t=this.appliedCount;t<e.length;t++)this.applyEvent(e[t]);return this.appliedCount=e.length,this.dirty&&=(this.snapshot={items:[...this.items],plan:this.plan,turnActive:this.turnActive,tokenUsage:this.tokenUsage,terminals:{...this.terminals},permissionsByToolCall:{...this.permissionsByToolCall}},!1),this.snapshot}reset(){this.items=[],this.plan=[],this.turnActive=!1,this.tokenUsage=null,this.terminals={},this.toolCallIndex=new Map,this.permissionIndex=new Map,this.permissionByToolCall=new Map,this.permissionsByToolCall={},this.messageIndex=new Map,this.runtimeConsentIndex=new Map,this.lastConsentIndex=null,this.appliedCount=0,this.dirty=!0}applyEvent(e){switch(this.dirty=!0,e.kind){case`user_message`:{let t={kind:`message`,role:`user`,text:e.content,messageId:`user-${this.items.length}`};e.attachments!==void 0&&e.attachments.length>0&&(t.attachments=e.attachments),this.items.push(t),this.messageIndex.clear();break}case`turn_started`:this.turnActive=!0;break;case`turn_ended`:this.turnActive=!1,this.messageIndex.clear();break;case`status`:if(e.status===`exited`&&(this.turnActive=!1),this.lastConsentIndex!==null){let t=this.items[this.lastConsentIndex];t?.kind===`runtime_consent`&&t.install===`running`&&(e.status===`spawning`||e.status===`ready`||e.status===`running`?this.items[this.lastConsentIndex]={...t,install:`done`}:(e.status===`error`||e.status===`exited`)&&(this.items[this.lastConsentIndex]={...t,install:`failed`}))}if(e.status===`ready`)for(let e=0;e<this.items.length;e+=1){let t=this.items[e];t?.kind===`notice`&&t.superseded!==!0&&_(t.failure)&&(this.items[e]={...t,superseded:!0})}if((e.status===`error`||e.status===`auth_required`)&&(e.failure!==void 0||(e.detail??``)!==``)){let t={kind:`notice`,text:e.detail??``,tone:e.status===`error`?`error`:`info`,failure:e.failure??null,attempts:1},n=this.items[this.items.length-1];n?.kind===`notice`&&n.superseded!==!0&&S(n,t)?this.items[this.items.length-1]={...n,attempts:n.attempts+1}:this.items.push(t)}break;case`permission_request`:{let t=e.toolCall.toolCallId??null,n={kind:`permission`,requestId:e.requestId,title:e.toolCall.title??i._({id:`Ya3PlJ`}),toolKind:e.toolCall.kind??`other`,options:e.options,resolved:null,toolCallId:t,mergedIntoToolCall:t!==null&&this.toolCallIndex.has(t)};this.permissionIndex.set(e.requestId,this.items.length),t!==null&&(this.permissionByToolCall.set(t,this.items.length),this.permissionsByToolCall[t]=n),this.items.push(n);break}case`permission_resolved`:{let t=this.permissionIndex.get(e.requestId);if(t===void 0)break;let n=this.items[t];if(n.kind!==`permission`)break;let r={...n,resolved:{optionId:e.optionId,auto:e.auto}};this.items[t]=r,r.toolCallId!==null&&(this.permissionsByToolCall[r.toolCallId]=r);break}case`runtime_consent_request`:this.runtimeConsentIndex.set(e.requestId,this.items.length),this.lastConsentIndex=this.items.length,this.items.push({kind:`runtime_consent`,requestId:e.requestId,runtime:e.runtime,displayName:e.displayName,provides:e.provides,version:e.version,approxSizeMB:e.approxSizeMB,sourceHost:e.sourceHost,agentName:e.agentName,reason:e.reason??`missing`,resolved:null,install:null,progress:null});break;case`runtime_consent_resolved`:{let t=this.runtimeConsentIndex.get(e.requestId);if(t===void 0)break;let n=this.items[t];if(n.kind!==`runtime_consent`)break;this.items[t]={...n,resolved:e.decision,install:e.decision===`granted`?`running`:null};break}case`runtime_install_progress`:{if(this.lastConsentIndex===null)break;let t=this.items[this.lastConsentIndex];if(t===void 0||t.kind!==`runtime_consent`)break;this.items[this.lastConsentIndex]={...t,progress:{receivedBytes:e.receivedBytes??0,totalBytes:e.totalBytes??null}};break}case`terminal_created`:this.terminals[e.terminalId]={terminalId:e.terminalId,command:e.command,args:e.args,output:``,truncated:!1,exit:null};break;case`terminal_output`:{let t=this.terminals[e.terminalId];if(t===void 0)break;let n=t.output+e.chunk,r=t.truncated;n.length>h&&(n=n.slice(-h),r=!0),this.terminals[e.terminalId]={...t,output:n,truncated:r};break}case`terminal_exit`:{let t=this.terminals[e.terminalId];if(t===void 0)break;this.terminals[e.terminalId]={...t,exit:{exitCode:e.exitCode,signal:e.signal}};break}case`session_update`:this.applyUpdate(e.update);break;default:break}}mergePermissionInto(e){let t=this.permissionByToolCall.get(e);if(t===void 0)return;let n=this.items[t];if(n===void 0||n.kind!==`permission`||n.mergedIntoToolCall)return;let r={...n,mergedIntoToolCall:!0};this.items[t]=r,this.permissionsByToolCall[e]=r}pushMessageChunk(e,t,n){let r=`${e}:${t}`,i=this.messageIndex.get(r);if(i!==void 0&&i===this.items.length-1){let e=this.items[i];this.items[i]={...e,text:e.text+n};return}this.messageIndex.set(r,this.items.length),this.items.push({kind:`message`,role:e,text:n,messageId:t})}applyUpdate(e){switch(e.sessionUpdate){case`agent_message_chunk`:{let t=g(e.content);t!==null&&this.pushMessageChunk(`agent`,b(e),t);break}case`agent_thought_chunk`:{let t=g(e.content);t!==null&&this.pushMessageChunk(`thought`,b(e),t);break}case`user_message_chunk`:{let t=g(e.content);t!==null&&this.pushMessageChunk(`user`,b(e),t);break}case`tool_call`:{let t={kind:`tool_call`,toolCallId:e.toolCallId,title:e.title??i._({id:`EvIJVD`}),toolKind:e.kind??`other`,status:e.status??`pending`,diffs:[],terminalIds:[],content:[],locations:x(e.locations),rawInput:e.rawInput};C(t,e.content),this.toolCallIndex.set(e.toolCallId,this.items.length),this.items.push(t),this.mergePermissionInto(e.toolCallId);break}case`tool_call_update`:{let t=this.toolCallIndex.get(e.toolCallId);if(t===void 0)break;let n=this.items[t];if(n.kind!==`tool_call`)break;let r={...n,diffs:[...n.diffs],terminalIds:[...n.terminalIds],content:[...n.content]};e.status&&(r.status=e.status),e.title&&(r.title=e.title),e.locations&&(r.locations=x(e.locations));let i=e.rawInput;i!==void 0&&(r.rawInput=i),C(r,e.content),this.items[t]=r;break}case`plan`:{let t=e.entries;Array.isArray(t)&&(this.plan=t.map(e=>e).filter(e=>typeof e.content==`string`).map(e=>({content:e.content,priority:typeof e.priority==`string`?e.priority:void 0,status:typeof e.status==`string`?e.status:void 0})));break}case`usage_update`:{let t=e;this.tokenUsage={used:typeof t.used==`number`?t.used:void 0,size:typeof t.size==`number`?t.size:void 0};break}default:{let t=e.usage;t!==void 0&&(this.tokenUsage={used:t.used,size:t.size});break}}}};function y(e){let t=e.resolved;if(t===null)return null;if(t.optionId===null)return t.auto?{kind:`dismissed`}:{kind:`denied`,auto:!1,optionName:null};let n=e.options.find(e=>e.optionId===t.optionId);if(n===void 0)return{kind:`dismissed`};let r=n.kind.startsWith(`reject`),i=n.kind.startsWith(`allow`);return!r&&!i?{kind:`dismissed`}:{kind:r?`denied`:`approved`,auto:t.auto,optionName:n.name}}function b(e){let t=e.messageId;return typeof t==`string`?t:`default`}function x(e){return Array.isArray(e)?e.map(e=>e).filter(e=>typeof e.path==`string`).map(e=>({path:e.path,line:typeof e.line==`number`?e.line:void 0})):[]}function S(e,t){return!(e.tone!==t.tone||e.text!==t.text||e.failure===null!=(t.failure===null)||e.failure!==null&&t.failure!==null&&(e.failure.reason!==t.failure.reason||(e.failure.agentMessage??``)!==(t.failure.agentMessage??``)||(e.failure.machineDetail??``)!==(t.failure.machineDetail??``)))}function C(e,t){if(Array.isArray(t))for(let n of t){let t=n;if(t.type===`diff`&&typeof t.path==`string`&&typeof t.newText==`string`)e.diffs.push({path:t.path,oldText:typeof t.oldText==`string`?t.oldText:null,newText:t.newText});else if(t.type===`terminal`&&typeof t.terminalId==`string`)e.terminalIds.includes(t.terminalId)||e.terminalIds.push(t.terminalId);else if(t.type===`content`){let n=g(t.content);n!==null&&e.content.push(n)}else{let n=g(t);n!==null&&e.content.push(n)}}}var w=500,T=15e3,E=3e4,D=9e4,O=9e4,k=18e4,A=8e3,j=1e4,M=class extends Error{code;constructor(e,t){super(t),this.name=`ThreadResumeError`,this.code=e}},N=class extends Error{constructor(){super(`agent-thread channel is not connected`),this.name=`ThreadChannelUnavailableError`}},P=class{url=null;ws=null;reconnectDelay=w;reconnectTimer=null;threads=new Map;listeners=new Set;pendingCreates=new Map;pendingResumes=new Map;pendingRetries=new Map;pendingAuths=new Map;pendingQueueEdits=new Map;openedArchived=new Set;reqCounter=0;status=`idle`;version=0;setUrl(e){e!==this.url&&(this.url=e,this.teardownSocket(),e===null?this.setStatus(`idle`):this.connect())}subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));threadsSnapshot=[];threadsSnapshotVersion=-1;getThreads=()=>(this.threadsSnapshotVersion!==this.version&&(this.threadsSnapshot=[...this.threads.values()].map(e=>e.info).sort((e,t)=>e.createdAt-t.createdAt),this.threadsSnapshotVersion=this.version),this.threadsSnapshot);openTabsSnapshot=[];openTabsSnapshotVersion=-1;getOpenTabs=()=>(this.openTabsSnapshotVersion!==this.version&&(this.openTabsSnapshot=[...this.threads.values()].map(e=>e.info).filter(e=>e.archived!==!0||this.openedArchived.has(e.threadId)).sort((e,t)=>e.createdAt-t.createdAt),this.openTabsSnapshotVersion=this.version),this.openTabsSnapshot);archivedSnapshot=[];archivedSnapshotVersion=-1;getArchivedThreads=()=>(this.archivedSnapshotVersion!==this.version&&(this.archivedSnapshot=[...this.threads.values()].map(e=>e.info).filter(e=>e.archived===!0).sort((e,t)=>t.lastActivityAt-e.lastActivityAt),this.archivedSnapshotVersion=this.version),this.archivedSnapshot);getThread=e=>this.threads.get(e)??null;modelBuilders=new Map;getThreadModel=e=>{let t=this.threads.get(e);if(t===void 0)return null;let n=this.modelBuilders.get(e);return n===void 0&&(n=new v,this.modelBuilders.set(e,n)),n.sync(t.events)};getConnectionStatus=()=>this.status;async createThread(e){this.connectNow(),await this.waitForOpen(A),this.reqCounter+=1;let t=`create-${this.reqCounter}`,n=new Promise((e,n)=>{let r=setTimeout(()=>{this.pendingCreates.delete(t),n(Error(`thread creation timed out`))},E);this.pendingCreates.set(t,{resolve:e,reject:n,timer:r})}),r=c(e.agent),i=f(r),a=m(r),o=i!==void 0||a!==void 0?{...i===void 0?{}:{config:i},...a===void 0?{}:{modeId:a}}:void 0;return this.send({op:`create`,reqId:t,...e,...o===void 0?{}:{settings:o}}),n}prompt(e,t,n){let r=t.trim(),i=n!==void 0&&n.length>0;r===``&&!i||(this.reqCounter+=1,this.send({op:`prompt`,threadId:e,reqId:`prompt-${this.reqCounter}`,content:r,...i?{attachments:n}:{}}))}steer(e,t,n){let r=t.trim(),i=n!==void 0&&n.length>0;r===``&&!i||(this.reqCounter+=1,this.send({op:`steer`,threadId:e,reqId:`steer-${this.reqCounter}`,content:r,...i?{attachments:n}:{}}))}editQueued(e,t,n){let r=n.trim();if(r===``)return Promise.resolve();this.reqCounter+=1;let i=`queue-edit-${this.reqCounter}`,a=new Promise((e,t)=>{let n=setTimeout(()=>{this.pendingQueueEdits.delete(i),e()},j);this.pendingQueueEdits.set(i,{resolve:e,reject:t,timer:n})});return this.send({op:`queue_edit`,threadId:e,id:t,content:r,reqId:i}),a}holdQueued(e,t,n){this.send({op:`queue_hold`,threadId:e,id:t,held:n})}removeQueued(e,t){this.send({op:`queue_remove`,threadId:e,id:t})}respondPermission(e,t,n){this.send({op:`permission_response`,threadId:e,requestId:t,outcome:n})}respondRuntimeConsent(e,t,n){this.send({op:`runtime_consent_response`,threadId:e,requestId:t,outcome:n})}cancel(e){this.send({op:`cancel`,threadId:e})}setMode(e,t){this.send({op:`set_mode`,threadId:e,modeId:t})}renameThread(e,t){let n=t.trim();n!==``&&this.send({op:`rename`,threadId:e,title:n})}setConfigOption(e,t,n){this.send({op:`set_config_option`,threadId:e,configId:t,value:n})}closeThread(e){let t=this.threads.get(e);if(t?.info.archived===!0){this.send({op:`unsubscribe`,threadId:e}),this.openedArchived.delete(e),this.modelBuilders.delete(e),this.threads.set(e,{info:t.info,events:[],lastSeq:-1}),this.bump();return}this.send({op:`close`,threadId:e}),this.openedArchived.delete(e),this.modelBuilders.delete(e),this.threads.delete(e)&&this.bump()}openArchivedThread(e){let t=this.threads.get(e);t===void 0||t.info.archived!==!0||this.openedArchived.has(e)||(this.openedArchived.add(e),this.send({op:`subscribe`,threadId:e,sinceSeq:t.lastSeq+1}),this.bump())}deleteThread(e){this.send({op:`delete`,threadId:e}),this.openedArchived.delete(e),this.modelBuilders.delete(e),this.threads.delete(e)&&this.bump()}async resumeThread(e,t,n){this.connectNow(),await this.waitForOpen(A),this.reqCounter+=1;let r=`resume-${this.reqCounter}`,i=new Promise((e,t)=>{let n=setTimeout(()=>{this.pendingResumes.delete(r),t(new M(`timeout`,`resume timed out`))},D);this.pendingResumes.set(r,{resolve:e,reject:t,timer:n})});return this.send({op:`resume`,threadId:e,reqId:r,prompt:t,...n!==void 0&&n.length>0?{attachments:n}:{}}),i}async retryThread(e){this.connectNow(),await this.waitForOpen(A),this.reqCounter+=1;let t=`retry-${this.reqCounter}`,n=new Promise((e,n)=>{let r=setTimeout(()=>{this.pendingRetries.delete(t),n(Error(`retry timed out`))},O);this.pendingRetries.set(t,{resolve:e,reject:n,timer:r})});return this.send({op:`retry`,threadId:e,reqId:t}),n}async authenticateThread(e,t){this.connectNow(),await this.waitForOpen(A),this.reqCounter+=1;let n=`authenticate-${this.reqCounter}`,r=new Promise((e,t)=>{let r=setTimeout(()=>{this.pendingAuths.delete(n),t(Error(`sign-in timed out`))},k);this.pendingAuths.set(n,{resolve:e,reject:t,timer:r})});return this.send({op:`authenticate`,threadId:e,reqId:n,methodId:t}),r}connectNow(){this.url===null||this.ws!==null||(this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.reconnectDelay=w,this.connect())}waitForOpen(e){return this.ws!==null&&this.ws.readyState===WebSocket.OPEN?Promise.resolve():new Promise((t,n)=>{let r=e=>{clearTimeout(a),i(),e?t():n(new N)},i=this.subscribe(()=>{this.ws!==null&&this.ws.readyState===WebSocket.OPEN&&r(!0)}),a=setTimeout(()=>r(!1),e)})}connect(){if(this.url===null)return;this.setStatus(`connecting`);let e;try{e=new WebSocket(this.url)}catch{this.scheduleReconnect();return}this.ws=e,e.onopen=()=>{if(this.ws===e){this.reconnectDelay=w,this.setStatus(`open`),this.send({op:`list`});for(let[e,t]of this.threads)t.info.archived===!0&&!this.openedArchived.has(e)||this.send({op:`subscribe`,threadId:e,sinceSeq:t.lastSeq+1})}},e.onmessage=t=>{if(this.ws!==e||typeof t.data!=`string`)return;let n;try{n=JSON.parse(t.data)}catch{return}this.handleFrame(n)},e.onclose=()=>{this.ws===e&&(this.ws=null,this.setStatus(`closed`),this.scheduleReconnect())},e.onerror=()=>{}}teardownSocket(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null);for(let e of this.pendingCreates.values())clearTimeout(e.timer),e.reject(new N);this.pendingCreates.clear();for(let e of this.pendingResumes.values())clearTimeout(e.timer),e.reject(new N);this.pendingResumes.clear();for(let e of this.pendingRetries.values())clearTimeout(e.timer),e.reject(new N);this.pendingRetries.clear();for(let e of this.pendingAuths.values())clearTimeout(e.timer),e.reject(new N);this.pendingAuths.clear();for(let e of this.pendingQueueEdits.values())clearTimeout(e.timer),e.resolve();this.pendingQueueEdits.clear();let e=this.ws;if(this.ws=null,e!==null)try{e.close()}catch{}}scheduleReconnect(){if(this.url===null||this.reconnectTimer!==null)return;let e=this.reconnectDelay;this.reconnectDelay=Math.min(this.reconnectDelay*2,T),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},e)}send(e){let t=this.ws;if(!(t===null||t.readyState!==WebSocket.OPEN))try{t.send(JSON.stringify(e))}catch{}}handleFrame(e){switch(e.op){case`created`:{let t=this.pendingCreates.get(e.reqId);t!==void 0&&(this.pendingCreates.delete(e.reqId),clearTimeout(t.timer),t.resolve(e.info)),this.upsertInfo(e.info);return}case`threads`:{let t=new Set;for(let n of e.threads){t.add(n.threadId);let e=this.threads.has(n.threadId);this.upsertInfo(n),!e&&n.archived!==!0&&this.send({op:`subscribe`,threadId:n.threadId,sinceSeq:0})}let n=!1;for(let e of Array.from(this.threads.keys()))t.has(e)||(this.threads.delete(e),this.modelBuilders.delete(e),this.openedArchived.delete(e),n=!0);n&&this.bump();return}case`resumed`:{let t=this.pendingResumes.get(e.reqId);t!==void 0&&(this.pendingResumes.delete(e.reqId),clearTimeout(t.timer),t.resolve(e.info)),this.upsertInfo(e.info);return}case`retried`:{let t=this.pendingRetries.get(e.reqId);t!==void 0&&(this.pendingRetries.delete(e.reqId),clearTimeout(t.timer),t.resolve(e.info)),this.upsertInfo(e.info);return}case`authenticated`:{let t=this.pendingAuths.get(e.reqId);t!==void 0&&(this.pendingAuths.delete(e.reqId),clearTimeout(t.timer),t.resolve(e.info)),this.upsertInfo(e.info);return}case`subscribed`:this.upsertInfo(e.info);return;case`queue_edited`:{let t=this.pendingQueueEdits.get(e.reqId);t!==void 0&&(this.pendingQueueEdits.delete(e.reqId),clearTimeout(t.timer),t.resolve());return}case`info`:this.upsertInfo(e.info);return;case`event`:this.appendEvents(e.threadId,e.seq,[e.event]);return;case`events`:this.appendEvents(e.threadId,e.fromSeq,e.events);return;case`error`:if(e.reqId!==void 0){let t=this.pendingCreates.get(e.reqId);if(t!==void 0){this.pendingCreates.delete(e.reqId),clearTimeout(t.timer),t.reject(Error(e.message));return}let n=this.pendingResumes.get(e.reqId);if(n!==void 0){this.pendingResumes.delete(e.reqId),clearTimeout(n.timer),n.reject(new M(e.code,e.message));return}let a=this.pendingRetries.get(e.reqId);if(a!==void 0){this.pendingRetries.delete(e.reqId),clearTimeout(a.timer),a.reject(Error(e.message));return}let o=this.pendingAuths.get(e.reqId);if(o!==void 0){this.pendingAuths.delete(e.reqId),clearTimeout(o.timer),o.reject(Error(e.message));return}let s=this.pendingQueueEdits.get(e.reqId);if(s!==void 0){this.pendingQueueEdits.delete(e.reqId),clearTimeout(s.timer),s.reject(Error(e.message));return}if(e.reqId.startsWith(`prompt-`)||e.reqId.startsWith(`steer-`)){r.error(i._({id:`XNBGZw`,values:{0:e.message}}));return}}console.warn(`[agent-threads] server error frame:`,e.code,e.message);return;default:return}}appendEvents(e,t,n){let r=this.threads.get(e);if(r===void 0||n.length===0)return;let i=Math.max(r.lastSeq+1-t,0);if(i>=n.length)return;let a=i===0?n:n.slice(i),o=r.info;for(let e of a)o=F(o,e);this.threads.set(e,{info:o,events:[...r.events,...a],lastSeq:t+n.length-1}),this.bump()}upsertInfo(e){let t=this.threads.get(e.threadId);t===void 0?this.threads.set(e.threadId,{info:e,events:[],lastSeq:-1}):e.archived===!0&&t.info.archived!==!0?(this.openedArchived.delete(e.threadId),this.modelBuilders.delete(e.threadId),this.threads.set(e.threadId,{info:e,events:[],lastSeq:-1})):this.threads.set(e.threadId,{...t,info:e}),this.bump()}setStatus(e){this.status!==e&&(this.status=e,this.bump())}bump(){this.version+=1;for(let e of this.listeners)e()}};function F(e,t){switch(t.kind){case`status`:return{...e,status:t.status,lastActivityAt:t.ts};case`title_changed`:return{...e,title:t.title,lastActivityAt:t.ts};default:return{...e,lastActivityAt:t.ts}}}var I=new P;function L(){return I}function R(){return(0,a.useSyncExternalStore)(I.subscribe,I.getOpenTabs,I.getOpenTabs)}function z(){return(0,a.useSyncExternalStore)(I.subscribe,I.getArchivedThreads,I.getArchivedThreads)}function B(e){let t=(0,o.c)(2),n;t[0]===e?n=t[1]:(n=()=>I.getThread(e),t[0]=e,t[1]=n);let r=n;return(0,a.useSyncExternalStore)(I.subscribe,r,r)}function V(e){let t=(0,o.c)(2),n;t[0]===e?n=t[1]:(n=()=>I.getThreadModel(e),t[0]=e,t[1]=n);let r=n;return(0,a.useSyncExternalStore)(I.subscribe,r,r)}function H(){return(0,a.useSyncExternalStore)(I.subscribe,I.getConnectionStatus,I.getConnectionStatus)}function U(e){if(e===null)return null;try{let t=new URL(e);return t.pathname=`/collab/thread`,t.search=``,t.toString()}catch{return null}}export{B as a,z as c,c as d,d as f,U as i,R as l,M as n,H as o,p,L as r,V as s,N as t,y as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-CQNSW5MT-B89oo6uQ.js";export{e as createTreeViewServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-DTbPJftr.js";import{n as e}from"./chunk-R7FJI6CG-DpvHn4ee.js";export{e as createTreemapServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./DocumentContext-C5MsfaP5.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{Lo as n}from"./dist-trrvycoA.js";import{n as r}from"./dist-D81TFAXh.js";import{t as i}from"./dist-XgwTV-oh2.js";import{t as a}from"./createLucideIcon-Bhw2PmPp.js";import{S as o,f as s,x as c}from"./doc-paths-DFa3HIzr.js";import{J as l}from"./navigation-targets-CN8Zdcbd.js";import{F as u,_ as d}from"./skills-api-n0_XwDZz.js";var f=a(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),p=t(),m=null,h=new Set;function g(){return m}function _(e){return h.add(e),()=>{h.delete(e)}}function v(){for(let e of h)e()}function y(e){m!==null&&m.scope===e.scope&&m.name===e.name||(m=e,v())}function b(){m!==null&&(m=null,v())}function x(){let t=(0,p.c)(5),{openTarget:a,setSkillsSidebar:f}=e(),m=u(),h;return t[0]!==a||t[1]!==f||t[2]!==m.data||t[3]!==m.status?(h=(e,t,u)=>{let p=e=>{a({kind:`doc`,target:e,docName:e},u?.replaceActive?{tabBehavior:`replace-active`}:void 0),f(!0);let t=s(e);u?.replaceHistory?o(t):c(t)},h=m.status===`ready`?m.data.find(n=>n.scope===e&&n.name===t):void 0;if(h?.ignored===!0&&h.managed!==!0){y({scope:h.scope,name:h.name});return}if(h)return p(l(h));if(e===`project`&&u?.path)return p(u.path.replace(/\.mdx?$/i,``));if(e===`global`)return p(n(e,t));(async()=>{try{let n=await d(`project`);if(!n.ok){r.error(i._({id:`IO8REi`,values:{0:n.error,name:t}}));return}let a=n.skills.find(n=>n.scope===e&&n.name===t);if(!a){r.error(i._({id:`9uRLEH`,values:{name:t}}));return}p(l(a))}catch(e){let n=e;r.error(i._({id:`IO8REi`,values:{0:n instanceof Error?n.message:String(n),name:t}}))}})()},t[0]=a,t[1]=f,t[2]=m.data,t[3]=m.status,t[4]=h):h=t[4],h}export{_ as a,y as i,b as n,f as o,g as r,x as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{Ro as i}from"./dist-trrvycoA.js";import{n as a}from"./dist-D81TFAXh.js";import{C as o,D as s,F as c}from"./skills-api-n0_XwDZz.js";var l=r(),u=e(t(),1);function d(e,t,n){let r=(0,l.c)(13),[i,a]=(0,u.useState)(!1),[s,c]=(0,u.useState)(!1),[d,p]=(0,u.useState)(0),m;r[0]!==n||r[1]!==t||r[2]!==e?(m=()=>{if(!n){a(!1);return}let r=!1;return o({scope:e,name:t,dryRun:!0}).then(e=>{r||(a(e.ok&&e.updated===!0),c(e.ok&&e.gitTracked===!0))}),()=>{r=!0}},r[0]=n,r[1]=t,r[2]=e,r[3]=m):m=r[3];let h;r[4]!==n||r[5]!==t||r[6]!==d||r[7]!==e?(h=[e,t,n,d],r[4]=n,r[5]=t,r[6]=d,r[7]=e,r[8]=h):h=r[8],(0,u.useEffect)(m,h);let g;r[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>p(f),r[9]=g):g=r[9];let _;return r[10]!==i||r[11]!==s?(_={available:i,gitTracked:s,recheck:g},r[10]=i,r[11]=s,r[12]=_):_=r[12],_}function f(e){return e+1}function p(e,t){return e.publisher?i(e.source,e.skill??t)?.skillsUrl??null:null}function m(e){let t=e.trim();if(/^https?:\/\//i.test(t))return t.includes(`github.com`)?t.replace(/\.git$/,``):null;if(/^(?:\.|\/|~|file:|git@)/.test(t))return null;let n=/^([\w.-]+)\/([\w.-]+?)(?:\.git)?(?:\/.*)?$/.exec(t);return n?`https://github.com/${n[1]}/${n[2]}`:null}function h(e,t){return p(e,t)??e.marketplaceUrl??m(e.source)}var g=new Set;function _(e){if(!e)return!1;if(e.autoUpdate!==void 0)return e.autoUpdate;let t=e.source.trim();return t.startsWith(`/`)||t.startsWith(`.`)||t.startsWith(`~`)||t.startsWith(`file://`)||/^[A-Za-z]:[\\/]/.test(t)||t.startsWith(`\\\\`)}function v(e){let t=(0,l.c)(33),{scope:r,name:i}=e,{_:f}=n(),p=c(),m=p.status===`ready`?p.data.find(e=>e.scope===r&&e.name===i):void 0,v=m?.origin??null,y=v?/^adopt:(.+)$/.exec(v.source):null,b=y?y[1].charAt(0).toUpperCase()+y[1].slice(1):null,x=!!v&&!b,{available:S,gitTracked:C,recheck:w}=d(r,i,x),[T,E]=(0,u.useState)(!1),[D,O]=(0,u.useState)(!1),k=_(v),A=m?.modified??!1,j;t[0]!==f||t[1]!==i||t[2]!==w||t[3]!==r?(j=async function(){E(!0);let e=await o({scope:r,name:i});if(E(!1),!e.ok){a.error(f({id:`AYoYhU`,values:{0:e.error}}));return}e.updated?a.success(f({id:`YS9mSt`,values:{0:e.source,name:i}})):a.success(f({id:`ah_ekO`,values:{name:i}}));for(let t of e.warnings)a.warning(t);w()},t[0]=f,t[1]=i,t[2]=w,t[3]=r,t[4]=j):j=t[4];let M=j;(0,u.useEffect)(()=>{if(!S||!k||A||T||C)return;let e=`${r}:${i}`;g.has(e)||(g.add(e),M())});let N;t[5]!==f||t[6]!==i||t[7]!==r?(N=async function(){let e=await o({scope:r,name:i,dryRun:!0});return e.ok?!e.updated||e.upstreamBody===void 0?(a.success(f({id:`ah_ekO`,values:{name:i}})),null):{localBody:e.localBody??``,upstreamBody:e.upstreamBody}:(a.error(f({id:`AYoYhU`,values:{0:e.error}})),null)},t[5]=f,t[6]=i,t[7]=r,t[8]=N):N=t[8];let P=N,F;t[9]!==f||t[10]!==i?(F=async function(){O(!0);let e=await s({name:i});if(O(!1),!e.ok){a.error(f({id:`RO9IbI`,values:{0:e.error}}));return}a.success(f({id:`BhLPRk`,values:{name:i}}));for(let t of e.warnings)a.warning(t)},t[9]=f,t[10]=i,t[11]=F):F=t[11];let I=F,L=v?/\/plugins\/cache\/[^/]+\/([^/]+)\//.exec(v.source)??/\/plugins\/marketplaces\/([^/]+)\//.exec(v.source):null,R=v?b?f({id:`e6dMJT`,values:{harnessLabel:b}}):L?f({id:`xBFg6z`,values:{0:L[1]}}):v.source:null,z=v?new Date(v.importedAt):null,B=z&&!Number.isNaN(z.getTime())?z.toLocaleDateString(void 0,{year:`numeric`,month:`short`,day:`numeric`}):v?.importedAt??null,V=v?h(v,i):null,H=B?f({id:`9J8xNg`,values:{importedLabel:B}}):null,U;t[12]!==f||t[13]!==i||t[14]!==r?(U=async e=>{let t=await o({scope:r,name:i,setAutoUpdate:e});if(!t.ok){a.error(f({id:`fMsFdZ`,values:{0:t.error}}));return}a.success(f(e?{id:`UNwKSz`,values:{name:i}}:{id:`HAvHev`,values:{name:i}}))},t[12]=f,t[13]=i,t[14]=r,t[15]=U):U=t[15];let W=m?.revertable??!1,G;return t[16]!==k||t[17]!==x||t[18]!==R||t[19]!==C||t[20]!==A||t[21]!==v||t[22]!==P||t[23]!==M||t[24]!==T||t[25]!==I||t[26]!==D||t[27]!==V||t[28]!==H||t[29]!==U||t[30]!==W||t[31]!==S?(G={origin:v,github:V,displaySource:R,importedTitle:H,canReimport:x,updateAvailable:S,modified:A,autoUpdate:k,gitTracked:C,setAutoUpdate:U,revertable:W,reimport:M,reimporting:T,previewUpdate:P,revert:I,reverting:D},t[16]=k,t[17]=x,t[18]=R,t[19]=C,t[20]=A,t[21]=v,t[22]=P,t[23]=M,t[24]=T,t[25]=I,t[26]=D,t[27]=V,t[28]=H,t[29]=U,t[30]=W,t[31]=S,t[32]=G):G=t[32],G}export{v as t};
|