@inkeep/open-knowledge 0.89.0-beta.3 → 0.89.0

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.
Files changed (108) hide show
  1. package/dist/{cli-C1kDGHp-.mjs → cli-yYnxupAx.mjs} +6 -6
  2. package/dist/cli.mjs +1 -1
  3. package/dist/constants-Ck7TMe1o.mjs +1 -0
  4. package/dist/{dist-8R56vWE-.mjs → dist-Bvds2-Dr.mjs} +1 -1
  5. package/dist/{dist-Bi-hqCKx.mjs → dist-Czh3kWim.mjs} +1 -1
  6. package/dist/index.mjs +1 -1
  7. package/dist/{init-CT-0dkR1.mjs → init-Co0B8fAY.mjs} +2 -2
  8. package/dist/init-KbgIWN_X.mjs +1 -0
  9. package/dist/{launch-json-removal-CxenIfKM.mjs → launch-json-removal-BBE7KcYd.mjs} +1 -1
  10. package/dist/loader-C41RVhNv.mjs +1 -0
  11. package/dist/{loader-B11Bjam_.mjs → loader-H5K0WcFD.mjs} +1 -1
  12. package/dist/{open-browser-zFYM6iXO.mjs → open-browser-DOHM8swn.mjs} +1 -1
  13. package/dist/preview-CCFk8xuq.mjs +1 -0
  14. package/dist/{preview-BDAPdgTq.mjs → preview-CdZP4mUC.mjs} +1 -1
  15. package/dist/public/assets/{AccountSection-CrkZT41a.js → AccountSection-D2ms1Zdx.js} +1 -1
  16. package/dist/public/assets/{ActivityModeContent-df0sXo-d.js → ActivityModeContent-1FNL8rlD.js} +1 -1
  17. package/dist/public/assets/{AddPropertiesButton-CEzF7e2m.js → AddPropertiesButton-nT32ZO2n.js} +1 -1
  18. package/dist/public/assets/{AgentDiffPane-D9gp6kre.js → AgentDiffPane-B3K5eI6l.js} +1 -1
  19. package/dist/public/assets/{AttachmentsSection-CQpLMhaE.js → AttachmentsSection-NW7Zy5E5.js} +1 -1
  20. package/dist/public/assets/{CodeMirrorPropInput-46LVt6aZ.js → CodeMirrorPropInput-BGEORZYm.js} +1 -1
  21. package/dist/public/assets/{ContentRulesSection-BR_2hs58.js → ContentRulesSection-iAMLgmiA.js} +1 -1
  22. package/dist/public/assets/{DocumentContext-D-MSOFOj.js → DocumentContext-D5ddMBdz.js} +3 -3
  23. package/dist/public/assets/{EditorModeToggle-Gd6N38U8.js → EditorModeToggle-DLFzjyY1.js} +1 -1
  24. package/dist/public/assets/{ExcalidrawDocEditor-jTkPavqp.js → ExcalidrawDocEditor-BqIyJICQ.js} +1 -1
  25. package/dist/public/assets/FeedbackForm-CVa-m52e.js +1 -0
  26. package/dist/public/assets/{ImportSkillDialog-D57QKVid.js → ImportSkillDialog-D56R13mu.js} +1 -1
  27. package/dist/public/assets/{LinkPreviewsSection-fGViRRH1.js → LinkPreviewsSection-DyRo4Efx.js} +1 -1
  28. package/dist/public/assets/{LintConfigEditor-BDLlxJj3.js → LintConfigEditor-BBnUWudA.js} +1 -1
  29. package/dist/public/assets/{LintingSection-BG7IRZLX.js → LintingSection-B-uzZ9Bc.js} +1 -1
  30. package/dist/public/assets/{ManagedArtifactProperties-yoK56zu8.js → ManagedArtifactProperties-BIU3xbtl.js} +1 -1
  31. package/dist/public/assets/ManagedArtifactProperties-DW9mu40D.js +1 -0
  32. package/dist/public/assets/Mermaid-DH1HLMlB.js +2 -0
  33. package/dist/public/assets/{MermaidDocEditor-Bfru3lY6.js → MermaidDocEditor-D12M9IqV.js} +1 -1
  34. package/dist/public/assets/{NetworkAccessSection-C9rU15pv.js → NetworkAccessSection-VgCFb86y.js} +1 -1
  35. package/dist/public/assets/{PropertyDisplayRow-BnO35Lfh.js → PropertyDisplayRow-DGbGecmn.js} +1 -1
  36. package/dist/public/assets/{PublishToGitHubDialog-BfXsLwQs.js → PublishToGitHubDialog-D-68KN63.js} +1 -1
  37. package/dist/public/assets/{SchemaConfigEditor-Dg2_TCdQ.js → SchemaConfigEditor-uzC6WrLD.js} +1 -1
  38. package/dist/public/assets/{SearchSection-CsDa0MlU.js → SearchSection-DFXxnnam.js} +1 -1
  39. package/dist/public/assets/{SessionsHost-BFx8kjc7.js → SessionsHost-BBbpaIHY.js} +2 -2
  40. package/dist/public/assets/{SettingsDialogBody-BBZc38Gf.js → SettingsDialogBody-C_KbjExl.js} +2 -2
  41. package/dist/public/assets/{ShareReceiveMissDialog-DenlatVX.js → ShareReceiveMissDialog-DF55J63R.js} +1 -1
  42. package/dist/public/assets/{SkillToolbarControls-CYPOrN6w.js → SkillToolbarControls-CHgloSWN.js} +1 -1
  43. package/dist/public/assets/{SourceEditor-DUAmLYhp.js → SourceEditor-D3WLeglc.js} +1 -1
  44. package/dist/public/assets/{SpellingSettings-Dd69GxTK.js → SpellingSettings-DpMhK41P.js} +1 -1
  45. package/dist/public/assets/{SyncSection-Di5Zttem.js → SyncSection-C0MD5lpt.js} +1 -1
  46. package/dist/public/assets/{SyncStatusBadge-CHSoWWDG.js → SyncStatusBadge-c02zjTpr.js} +1 -1
  47. package/dist/public/assets/{TerminalPanel-LjBUjgpU.js → TerminalPanel-zhcx1hBA.js} +1 -1
  48. package/dist/public/assets/{TerminalSection-GNYB5U9Y.js → TerminalSection-G-h85PG2.js} +1 -1
  49. package/dist/public/assets/{TerminalWindowApp-CJVxDVvY.js → TerminalWindowApp-CEUXw-cF.js} +1 -1
  50. package/dist/public/assets/{TextDocEditor-CMkgPIn3.js → TextDocEditor-CwE-SWiH.js} +1 -1
  51. package/dist/public/assets/{ThemePluginSection-BvzKQgAy.js → ThemePluginSection-DTQ7sQi5.js} +1 -1
  52. package/dist/public/assets/{ThreadView-DYUcsrIT.js → ThreadView-BdG67s49.js} +1 -1
  53. package/dist/public/assets/{TimelineDiffPane-CBhimexd.js → TimelineDiffPane-CMM7hZCr.js} +1 -1
  54. package/dist/public/assets/{client-version-zPB5YPBd.js → client-version-35RXHswx.js} +1 -1
  55. package/dist/public/assets/{comment-chips-CwJQiMCZ.js → comment-chips-CFb0UyD0.js} +1 -1
  56. package/dist/public/assets/{config-provider-Dmu1kANQ.js → config-provider-Ay_xbGUl.js} +1 -1
  57. package/dist/public/assets/config-schema-B-G3CmF9.js +1 -0
  58. package/dist/public/assets/{css-color-to-hex-CWNe6sew.js → css-color-to-hex-BS2pwUpd.js} +1 -1
  59. package/dist/public/assets/{doc-undo-manager-CLZOAdvr.js → doc-undo-manager-DC-vVyaJ.js} +1 -1
  60. package/dist/public/assets/{field-controls-lpcOn5ho.js → field-controls-D8pFIo2I.js} +1 -1
  61. package/dist/public/assets/field-controls-DdToTHHk.js +1 -0
  62. package/dist/public/assets/{globals-BYBEZgiX.css → globals-m_KFV1Tp.css} +1 -1
  63. package/dist/public/assets/index-YKdrUiR0.js +2209 -0
  64. package/dist/public/assets/{lint-config-client-B7GJyltx.js → lint-config-client-DT6tLnal.js} +1 -1
  65. package/dist/public/assets/{lint-plugins-a7Syueff.js → lint-plugins-DPhL1P_s.js} +1 -1
  66. package/dist/public/assets/{markdown-lint-DYkBgJHq.js → markdown-lint-BQVK9PNE.js} +1 -1
  67. package/dist/public/assets/{markdownlint-rule-browser-DwBeBBtP.js → markdownlint-rule-browser-Ezxrc6Kb.js} +1 -1
  68. package/dist/public/assets/{pending-receive-nav-store-DDeGYeMv.js → pending-receive-nav-store-DfQJ7mnt.js} +1 -1
  69. package/dist/public/assets/{preferred-session-events-CAxyV24C.js → preferred-session-events-BdyZKf2v.js} +1 -1
  70. package/dist/public/assets/{progress-BvFK-kXf.js → progress-2pdCpl5R.js} +1 -1
  71. package/dist/public/assets/{saved-themes-client-BNonffrJ.js → saved-themes-client-DLguKzSj.js} +1 -1
  72. package/dist/public/assets/{schema-section-BaTjzAhd.js → schema-section-DrnHDoC0.js} +1 -1
  73. package/dist/public/assets/{selection-context-B-AaPD6L.js → selection-context-C-d7_McB.js} +1 -1
  74. package/dist/public/assets/{src-Bh79kCxy.js → src-Cn-w9bM1.js} +1 -1
  75. package/dist/public/assets/{telemetry-impl-DKGuk3yv.js → telemetry-impl-CLwTErfl.js} +1 -1
  76. package/dist/public/assets/{telemetry-startup-B6sjhVXH.js → telemetry-startup-dkKNw0WV.js} +1 -1
  77. package/dist/public/assets/{typing-burst-detector-E4B60o_t.js → typing-burst-detector-CMelnZH4.js} +1 -1
  78. package/dist/public/assets/{uninstall-Bt5VPk7V.js → uninstall-C3756IvU.js} +1 -1
  79. package/dist/public/assets/{use-activity-panel-DWkUkn01.js → use-activity-panel-iyoGvDbd.js} +1 -1
  80. package/dist/public/assets/{use-apply-config-color-theme-UYP8FtjI.js → use-apply-config-color-theme-CUQffyxt.js} +1 -1
  81. package/dist/public/assets/{use-live-xterm-theme-BEAKdQrK.js → use-live-xterm-theme-DpVou4uT.js} +1 -1
  82. package/dist/public/assets/{use-open-skill-CHqhU2hB.js → use-open-skill-MDkicapn.js} +1 -1
  83. package/dist/public/assets/{use-terminal-enabled-C1Q28oRs.js → use-terminal-enabled-BU5Pay5o.js} +1 -1
  84. package/dist/public/assets/{use-timeline-entry-diff-B_FSezdL.js → use-timeline-entry-diff-DgTcCvCt.js} +1 -1
  85. package/dist/public/index.html +28 -28
  86. package/dist/public/uninstall.html +3 -3
  87. package/dist/{registry-probes-Bs2Y-tDx.mjs → registry-probes-DQ7KVZe7.mjs} +1 -1
  88. package/dist/{removal-file-path-Czu3aQwC.mjs → removal-file-path-DqKgnl_m.mjs} +1 -1
  89. package/dist/{repair-launch-json-B_NEqwce.mjs → repair-launch-json-DtUTcouv.mjs} +1 -1
  90. package/dist/{repair-mcp-configs-Bd-ZMDKG.mjs → repair-mcp-configs-Dp7-Q9ne.mjs} +1 -1
  91. package/dist/src-CIEfmsM4.mjs +1 -0
  92. package/dist/{src-D8oGRsI6.mjs → src-CftsTbMe.mjs} +1 -1
  93. package/dist/start-D9UvhnXq.mjs +1 -0
  94. package/dist/{start-1QY4b85_.mjs → start-wqreNdxN.mjs} +3 -3
  95. package/package.json +4 -4
  96. package/dist/constants-CjnIgnO-.mjs +0 -1
  97. package/dist/init-7VoxLVoM.mjs +0 -1
  98. package/dist/loader-CsH1oCHK.mjs +0 -1
  99. package/dist/preview-C8Djkpq1.mjs +0 -1
  100. package/dist/public/assets/FeedbackForm-CUAjVInA.js +0 -1
  101. package/dist/public/assets/ManagedArtifactProperties-6BY99bTe.js +0 -1
  102. package/dist/public/assets/Mermaid-Cd21uwyp.js +0 -2
  103. package/dist/public/assets/config-schema-DVLRpubh.js +0 -1
  104. package/dist/public/assets/field-controls-CijrX0Ja.js +0 -1
  105. package/dist/public/assets/index-BFdMN7No.js +0 -2209
  106. package/dist/src-CpEKp845.mjs +0 -1
  107. package/dist/start-DnQbtDIJ.mjs +0 -1
  108. /package/dist/public/assets/{globals-sf_u41AH.js → globals-B0TGTCQa.js} +0 -0
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-Ckx7jZHN.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-nJaICi16.js","./createLucideIcon-DdBzwsHe.js","./spinner-Bx8xD6f8.js","./SettingsSectionHeader-2iTSJQHd.js","./tooltip-BjuCvy5N.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./badge-DcyFOLs8.js","./dist-BsJYDohW.js","./external-link-DxgIpECR.js","./button-DzgjsZzC.js","./SharingSection-CiouM8fc.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-BGzUo_18.js","./ConfigSharingInfoTooltip-CJywmyrk.js","./info-CyR0W2SK.js","./skeleton-2Ewnato7.js","./channel-cli-copy-Dpm61j4V.js","./constants-product-BVSOzxVs.js","./AccountSection-CrkZT41a.js","./SyncStatusBadge-CHSoWWDG.js","./config-provider-Dmu1kANQ.js","./trace-api-nQInEDYS.js","./status-CUwkWWLj.js","./dist-PQ5KMVDh.js","./schemas-api-CqmliOdH.js","./schemas-CxFhJLAM.js","./_envelope-DuFpUEag-Beu481Zb.js","./share-D-LUU2aX-rZ2lBHef.js","./util-doc-name-DRKmy6g9.js","./constants-cc1-Bt4QPTUe.js","./constants-github-B7yhDvQc.js","./doc-extensions-CcO7K8uD-DG9uHV54.js","./logging-renderer-log-CqIZVUIQ.js","./skill-targets-schema-DIfTaAkM.js","./constants-editors-DmmORwNP.js","./use-apply-config-language-atbAm0cM.js","./preload-helper-Chd9yIcd.js","./dist-C_FzPxEX2.js","./messages-BneNCe6E.js","./client-version-zPB5YPBd.js","./css-color-to-hex-CWNe6sew.js","./use-apply-config-color-theme-UYP8FtjI.js","./use-apply-config-theme-CYFG76sS.js","./saved-themes-client-BNonffrJ.js","./constants-upload-DZP-sCdl.js","./select-BsDvTs6I.js","./es2015-Dtr4fzLT.js","./check-B2OLRY33.js","./chevron-down-CEv6N8LG.js","./collapsible-BKbszYZV.js","./arrow-up-BGHhPj4y.js","./chevron-right-Bofu4lib.js","./settings-2-DoBlNQMk.js","./git-merge-VDBzSZBV.js","./refresh-cw-BVQchE6b.js","./terminal-B38K-KMo.js","./triangle-alert-DFWRwfH7.js","./DisclosureWarning-P2FKhrj3.js","./terminal-command-events-coVvkJmV.js","./handoff-DsHaP2rA.js","./dialog-CAxu_6pu.js","./electron-drag-strip-D9GZhMg_.js","./x-wldAHzfP.js","./popover-Dxc5JyiN.js","./dist-Cj3Bpren.js","./use-conflicts-DBMds-hY.js","./documents-events-C1uYbecE.js","./schemas-cc1-DAVdMZdU.js","./config-errors-d-4C2SfD.js","./use-git-sync-status-DB3RSBj5.js","./doc-hash-BT2I193z.js","./reveal-editor-CoucRZz8.js","./use-settings-route-BGtkup9E.js","./keyboard-shortcuts-D5fo2XHL.js","./dist-Dc8tD1th.js","./w3c-keyname-C7Rznu6R.js","./trash-2-Blf9Cydx.js","./AuthModal-CEKKOx6U.js","./copy-DpWa6i2v.js","./input-CgydZJoC.js","./auth-state-cache-MEl9L_dR.js","./AgentConnectionsSection-t6Fpnhjm.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-uXi2oPSE.js","./cursor-pH0WlPzE.js","./agent-registry-UV4Vx43J.js","./search-BoiwnBpA.js","./TerminalLaunchContext-yfig3-dd.js","./agent-connections-7HpNzYjL.js","./alert-dialog-Mwvu63aS.js","./checkbox-CKD8LETI.js","./minus-DdRxss3A.js","./folder-QqUoFRPR.js","./monitor-IXzxTnmk.js","./sparkles-lfxw6YO9.js","./AgentIconCluster-B9rTFji5.js","./OpenInAgentMenuItem-N6xIhi4p.js","./dropdown-menu-DH6UNmuX.js","./dist-C0nuYMFu.js","./dist-d2WYntJB.js","./copilot-CmkvU8CH.js","./utils-random-uuid-CE1X6bNM.js","./mascot-outline-CtS592mc.js","./field-DtEiTjHS.js","./separator-D7s_9ZwH.js","./tool-list-format-ahklHT7Z.js","./constants-skills-Coq7kn_k.js","./bool-pref-pcNhKZb_.js","./storage-scope-BDcuM4d_.js","./bridge-B2_zG6bo.js","./structural-freshness-C6rR7cV3-VXiZX15w.js","./terminal-cli-display-CHuCou07.js","./settings-section-labels-Dxz-paTy.js","./catalog-C1Qnqxzu.js","./use-workspace-BTtr5NT8.js","./AttachmentsSection-CQpLMhaE.js","./field-controls-lpcOn5ho.js","./toggle-group-aEGkM0EG.js","./circle-alert-eBm4JPxY.js","./ThemePicker-pc5gwEur.js","./plus-CXQ-oViZ.js","./rotate-ccw-DeMl2ou7.js","./form-CRIbPJu7.js","./textarea-DkcNoPBJ.js","./config-schema-DVLRpubh.js","./config-validation-events-88awVkQh.js","./ContentRulesSection-BR_2hs58.js","./markdown-lint-DYkBgJHq.js","./lib-CZXZ01YL.js","./ccount-s_UaBrax.js","./syntax-UjZu5532.js","./markdownit-B0tzyo4f.js","./field-controls-CijrX0Ja.js","./HotkeysSection-DFkUTrJc.js","./settings-host-gates-mRhjEC1s.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-It1Oo7dY.js","./InstallInClaudeDesktopDialog-CRXgqpq1.js","./arrow-right-NOQZeKIW.js","./circle-check-nK1yRBIw.js","./download-BouT3__0.js","./LinkPreviewsSection-fGViRRH1.js","./LintingSection-BG7IRZLX.js","./CodeMirrorPropInput-46LVt6aZ.js","./dist-W5hM-kQ3.js","./dist-CoJBCixp.js","./dist-BtC2yORW.js","./dist-B1rPVlDX.js","./dist-OHM7P10P.js","./dist-ldcsP3Wx.js","./dist-kajsw8zD.js","./dist-CNHpRWc3.js","./dist-OiK6QmuG.js","./dist-DLTuJxuQ2.js","./stex-CmWau-0j.js","./lib-Csk2IQWH.js","./space-separated-tokens-B2o5P1Kh.js","./trim-lines-CzojgEjk.js","./folder-open-COGOeTzI.js","./with-selector-zVo3Fruj.js","./navigation-targets-Cu84E97-.js","./file-tree-utils-w-NVNUx5.js","./doc-paths-C1iU3JM4.js","./cm-theme-DpKmjLo0.js","./desktop-bridge-D6pSqrSU.js","./page-list-cache-duzt_bxz.js","./documents-fetch-ZX1mUge_.js","./note-window-mode-CI3Yju9B.js","./DocumentContext-D-MSOFOj.js","./propagation-api-dgM6YInk.js","./context-api-CMjojwfb.js","./lib-o_ZJ5rsY.js","./lib-D3PsW6H5.js","./lib-DxyUjQpt.js","./git-branch-CeTudSak.js","./Mermaid-Cd21uwyp.js","./maximize-2-DjzhPUDZ.js","./ime-composition-CNKa_WNE.js","./prop-types-ZtKgQMRh.js","./hash-C4CJQURT.js","./local-menu-action-bus-Dyh2UJJF.js","./paperclip-FfP_WlTp.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-BT2YHECh.js","./PageListContext-NRWi1wh0.js","./parse-api-error-CeEVOj25.js","./startup-marks-C403iSh4.js","./perf-CYJlqBBt.js","./diagnostic-breadcrumb-Mg7sdCfQ.js","./file-tree-rename-validation-BZbYm35X.js","./use-collab-url-DbvOg54A.js","./api-config-C0OrJP9L.js","./excalidraw-scene-Dgb0SaoB.js","./known-skill-dirs-CErGS26P.js","./single-file-mode-DURp6aom.js","./skill-scope-DjqrCXkR.js","./skills-api-D9_3ttAz.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-CtDE2R0v.js","./square-pen-DU3t-IcD.js","./DeleteConfirmationDialog-CN6XZx5m.js","./SkillPluginBundleDialog-fDl9XkF_.js","./SkillInstallMenu-DHtst-Z3.js","./ChangedOutsideBadge-BeJ4Reff.js","./context-menu-DFxnhV9i.js","./dist-BzicVdNV.js","./use-skills-CHU2m8ND.js","./use-skill-targets--mN_luk9.js","./markdownlint-rule-browser-DwBeBBtP.js","./tag-pill-input-DFLCUQhM.js","./lint-config-client-B7GJyltx.js","./use-open-skill-CHqhU2hB.js","./open-managed-artifact-tab-BcMHQbeA.js","./schema-fields-view-intent-CfSR46vf.js","./NetworkAccessSection-C9rU15pv.js","./restart-collab-server-CHNPKri_.js","./OkignoreSection-BDDJUSqF.js","./sortable.esm-CnIkmeTY.js","./grip-vertical-DNbkgWZL.js","./config-ignore-nested-error-events-BbuOaRMz.js","./save-held-message-D5H7vOp3.js","./ProjectTemplatesSection-Vt0-ODLw.js","./TemplateRow-DGghua5F.js","./file-plus-DKxOZh2k.js","./folder-config-api-C6LhS3Cf.js","./SearchSection-CsDa0MlU.js","./use-semantic-search-status-Dd4pXwms.js","./SkillsManagerSection-B0O776zf.js","./SlidesPluginSection-B_E2apho.js","./input-group-CBuVp6zh.js","./SyncSection-Di5Zttem.js","./PublishToGitHubDialog-BfXsLwQs.js","./clipboard-adapter-FO6gFDPG.js","./TerminalSection-GNYB5U9Y.js","./use-terminal-enabled-C1Q28oRs.js","./ThemePluginSection-BvzKQgAy.js","./schema-section-BaTjzAhd.js","./settings-fields-DaMWswre.js","./lint-plugins-a7Syueff.js","./OkCliPathRow-D2xYoRyE.js","./SpellingSettings-Dd69GxTK.js"])))=>i.map(i=>d[i]);
2
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-DFWRwfH7.js";import{t as c}from"./lazy-with-preload-D3RC_59J.js";import{n as l,r as u,t as d}from"./alert-BEwM2iOp.js";import{r as f}from"./settings-host-gates-mRhjEC1s.js";import{n as p}from"./settings-fields-DaMWswre.js";import{t as m}from"./SettingsSectionHeader-2iTSJQHd.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-Ckx7jZHN.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-CiouM8fc.js`);return{SharingSection:e}},__vite__mapDeps([27,1,2,3,4,28,6,7,8,29,30,13,14,9,10,11,31,32,19,20,21,22,33,16,18,15,23,24,25,26,34,35,36]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-CrkZT41a.js`);return{AccountSection:e}},__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,57,58,59,60,61,62,63,64,20,21,14,29,22,65,19,13,16,66,67,68,69,15,70,71,72,17,73,74,75,76,77,78,23,24,26,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,25,18,34,99,35]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-t6Fpnhjm.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([100,1,56,2,3,4,12,6,7,8,13,14,9,10,11,101,16,15,102,103,104,43,44,45,46,47,48,49,50,51,52,53,36,78,66,17,105,75,106,107,108,80,22,65,26,24,109,110,5,19,20,21,111,33,112,113,81,114,115,116,117,118,29,30,70,42,119,120,121,23,79,122,123,124,125,126,127,128,129,130,18,25,131,98,132,133]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-CQpLMhaE.js`);return{AttachmentsSection:e}},__vite__mapDeps([134,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,135,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,12,136,30,24,137,138,28,112,139,140,95,75,141,5,26,79,80,81,122,123,98,34,142,87,143,18,15,23,25,144]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-BR_2hs58.js`);return{ContentRulesSection:e}},__vite__mapDeps([145,39,1,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,5,12,146,147,148,149,150,18,15,23,24,25,87]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-CijrX0Ja.js`);return{SectionSkeleton:e}},__vite__mapDeps([151,135,1,2,3,4,40,64,20,21,6,7,8,14,29,22,65,19,9,10,11,13,16,66,67,12,136,30,24,137,138,28,112,61,42,139,140,95,75,141,5,31,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-DFkUTrJc.js`);return{HotkeysSection:e}},__vite__mapDeps([152,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,153,154,92,93,94]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-It1Oo7dY.js`);return{IntegrationsSection:e}},__vite__mapDeps([155,1,2,3,4,156,16,157,158,97,159,17,9,10,11,31,8,26,7,24,79,80,6,22,65,81,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-fGViRRH1.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([160,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,79,80,65,81,87]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-BG7IRZLX.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,34,209,210,211,92,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,228,229,230,231,232,91]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-BG7IRZLX.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,34,209,210,211,92,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,228,229,230,231,232,91]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-BG7IRZLX.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,34,209,210,211,92,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,228,229,230,231,232,91]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-C9rU15pv.js`);return{NetworkAccessSection:e}},__vite__mapDeps([233,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,108,6,7,80,22,65,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,98,35,234,87,143]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-BDDJUSqF.js`);return{OkignoreSection:e}},__vite__mapDeps([235,1,236,8,4,2,3,19,20,21,6,7,14,22,9,10,11,66,16,237,75,81,31,203,56,179,180,48,47,181,63,50,184,85,86,44,87,36,185,204,205,206,207,51,18,15,23,24,25,238,26,98,34,144,239]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-Vt0-ODLw.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([240,1,2,3,4,139,16,9,241,56,108,6,7,8,80,22,65,26,24,11,10,116,117,118,20,21,14,29,30,66,70,242,95,81,31,43,44,45,46,47,48,49,50,51,52,53,36,219,17,79,122,5,123,98,142,85,86,87,243,204,18,19,15,23,25,34,231,89,91,92,93,94]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-CsDa0MlU.js`);return{SearchSection:e}},__vite__mapDeps([244,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,68,6,7,12,13,14,10,11,70,16,245,85,86,87,18,19,20,21,22,15,23,24,25,26,79,80,65,81,122,5,123,98,143]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-B0O776zf.js`);return{SkillsManagerSection:e}},__vite__mapDeps([246,1,2,3,4,108,6,7,8,80,22,65,9,26,24,11,10,16,157,116,117,118,20,21,14,29,30,66,70,97,95,31,114,19,111,113,115,42,103,119,120,121,53,36,222,18,15,23,25,79,81,98,34,226,56,43,44,45,46,47,48,49,50,51,52,85,86,87,204,215,225,212,231,89,206,207,214,125,124]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-B_E2apho.js`);return{SlidesPluginSection:e}},__vite__mapDeps([247,1,2,3,4,15,16,74,9,202,19,20,21,6,7,8,14,22,10,11,66,97,26,24,77,78,45,44,46,47,18,23,25,248,98,142,91,92,93,94]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-Di5Zttem.js`);return{SyncSection:e}},__vite__mapDeps([249,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,68,136,30,24,38,69,15,70,71,72,17,73,74,75,76,77,78,23,26,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,25,250,5,28,187,163,164,165,166,167,168,169,170,171,172,173,162,147,148,174,175,176,149,177,95,178,179,180,181,182,183,184,185,186,129,188,189,12,190,128,191,192,193,194,157,195,137,158,159,196,197,198,33,110,199,200,139,105,113,201,202,203,204,205,206,207,208,154,34,209,210,211,212,213,214,125,215,127,133,120,216,122,123,142,251,18]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-GNYB5U9Y.js`);return{TerminalSection:e}},__vite__mapDeps([252,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,253,87,35]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-BvzKQgAy.js`);return{ThemePluginSection:e}},__vite__mapDeps([254,1,2,3,4,5,6,7,8,9,10,11,15,16,42,31,43,44,45,46,47,48,49,50,51,52,53,36,255,141,135,40,64,20,21,14,29,22,65,19,13,66,67,12,136,30,24,137,138,28,112,61,139,140,95,75,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143,18,23,25,144,239,256]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-a7Syueff.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([257,217,16,1,4,161,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,34,209,210,211,92,212,90,213,214,125,215,127,133,120,216,146,150,15,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,228,229,230,231,232,91]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=c(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-BaTjzAhd.js`),__vite__mapDeps([255,1,2,3,4,141,7,5,6,8,9,10,11,31,135,40,64,20,21,14,29,22,65,19,13,16,66,67,12,136,30,24,137,138,28,112,61,42,139,140,95,75,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143,18,15,23,25,144,239]),import.meta.url),t(()=>import(`./OkCliPathRow-D2xYoRyE.js`),__vite__mapDeps([258,1,2,3,4,109,6,7,8,13,14,66,16,110,9,10,11,5,19,20,21,22,33,31,26,24,35,36]),import.meta.url),t(()=>import(`./SpellingSettings-Dd69GxTK.js`),__vite__mapDeps([259,1,21,20,6,7,4,8,3,14,56,2,12,13,9,10,11,19,22,66,16,140,81,31,178,135,40,64,29,65,67,136,30,24,137,138,28,112,61,42,139,95,75,141,5,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,122,123,98,34,142,54,55,57,60,62,63,87,143,153]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(u,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(d,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-Ckx7jZHN.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-nJaICi16.js","./createLucideIcon-DdBzwsHe.js","./spinner-Bx8xD6f8.js","./SettingsSectionHeader-2iTSJQHd.js","./tooltip-BjuCvy5N.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./badge-DcyFOLs8.js","./dist-BsJYDohW.js","./external-link-DxgIpECR.js","./button-DzgjsZzC.js","./SharingSection-CiouM8fc.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-BGzUo_18.js","./ConfigSharingInfoTooltip-CJywmyrk.js","./info-CyR0W2SK.js","./skeleton-2Ewnato7.js","./channel-cli-copy-Dpm61j4V.js","./constants-product-BVSOzxVs.js","./AccountSection-D2ms1Zdx.js","./SyncStatusBadge-c02zjTpr.js","./config-provider-Ay_xbGUl.js","./trace-api-nQInEDYS.js","./status-CUwkWWLj.js","./dist-PQ5KMVDh.js","./schemas-api-CqmliOdH.js","./schemas-CxFhJLAM.js","./_envelope-DuFpUEag-Beu481Zb.js","./share-D-LUU2aX-rZ2lBHef.js","./util-doc-name-DRKmy6g9.js","./constants-cc1-Bt4QPTUe.js","./constants-github-B7yhDvQc.js","./doc-extensions-CcO7K8uD-DG9uHV54.js","./logging-renderer-log-CqIZVUIQ.js","./skill-targets-schema-DIfTaAkM.js","./constants-editors-DmmORwNP.js","./use-apply-config-language-atbAm0cM.js","./preload-helper-Chd9yIcd.js","./dist-C_FzPxEX2.js","./messages-BneNCe6E.js","./client-version-35RXHswx.js","./css-color-to-hex-BS2pwUpd.js","./use-apply-config-color-theme-CUQffyxt.js","./use-apply-config-theme-CYFG76sS.js","./saved-themes-client-DLguKzSj.js","./constants-upload-DZP-sCdl.js","./select-BsDvTs6I.js","./es2015-Dtr4fzLT.js","./check-B2OLRY33.js","./chevron-down-CEv6N8LG.js","./collapsible-BKbszYZV.js","./arrow-up-BGHhPj4y.js","./chevron-right-Bofu4lib.js","./settings-2-DoBlNQMk.js","./git-merge-VDBzSZBV.js","./refresh-cw-BVQchE6b.js","./terminal-B38K-KMo.js","./triangle-alert-DFWRwfH7.js","./DisclosureWarning-P2FKhrj3.js","./terminal-command-events-coVvkJmV.js","./handoff-DsHaP2rA.js","./dialog-CAxu_6pu.js","./electron-drag-strip-D9GZhMg_.js","./x-wldAHzfP.js","./popover-Dxc5JyiN.js","./dist-Cj3Bpren.js","./use-conflicts-DBMds-hY.js","./documents-events-C1uYbecE.js","./schemas-cc1-DAVdMZdU.js","./config-errors-d-4C2SfD.js","./use-git-sync-status-DB3RSBj5.js","./doc-hash-BT2I193z.js","./reveal-editor-CoucRZz8.js","./use-settings-route-BGtkup9E.js","./keyboard-shortcuts-D5fo2XHL.js","./dist-Dc8tD1th.js","./w3c-keyname-C7Rznu6R.js","./trash-2-Blf9Cydx.js","./AuthModal-CEKKOx6U.js","./copy-DpWa6i2v.js","./input-CgydZJoC.js","./auth-state-cache-MEl9L_dR.js","./AgentConnectionsSection-t6Fpnhjm.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-uXi2oPSE.js","./cursor-pH0WlPzE.js","./agent-registry-UV4Vx43J.js","./search-BoiwnBpA.js","./TerminalLaunchContext-yfig3-dd.js","./agent-connections-7HpNzYjL.js","./alert-dialog-Mwvu63aS.js","./checkbox-CKD8LETI.js","./minus-DdRxss3A.js","./folder-QqUoFRPR.js","./monitor-IXzxTnmk.js","./sparkles-lfxw6YO9.js","./AgentIconCluster-B9rTFji5.js","./OpenInAgentMenuItem-N6xIhi4p.js","./dropdown-menu-DH6UNmuX.js","./dist-C0nuYMFu.js","./dist-d2WYntJB.js","./copilot-CmkvU8CH.js","./utils-random-uuid-CE1X6bNM.js","./mascot-outline-CtS592mc.js","./field-DtEiTjHS.js","./separator-D7s_9ZwH.js","./tool-list-format-ahklHT7Z.js","./constants-skills-Coq7kn_k.js","./bool-pref-pcNhKZb_.js","./storage-scope-BDcuM4d_.js","./bridge-B2_zG6bo.js","./structural-freshness-C6rR7cV3-VXiZX15w.js","./terminal-cli-display-CHuCou07.js","./settings-section-labels-Dxz-paTy.js","./catalog-C1Qnqxzu.js","./use-workspace-BTtr5NT8.js","./AttachmentsSection-NW7Zy5E5.js","./field-controls-D8pFIo2I.js","./toggle-group-aEGkM0EG.js","./circle-alert-eBm4JPxY.js","./ThemePicker-pc5gwEur.js","./plus-CXQ-oViZ.js","./rotate-ccw-DeMl2ou7.js","./form-CRIbPJu7.js","./textarea-DkcNoPBJ.js","./config-schema-B-G3CmF9.js","./config-validation-events-88awVkQh.js","./ContentRulesSection-iAMLgmiA.js","./markdown-lint-BQVK9PNE.js","./lib-CZXZ01YL.js","./ccount-s_UaBrax.js","./syntax-UjZu5532.js","./markdownit-B0tzyo4f.js","./field-controls-DdToTHHk.js","./HotkeysSection-DFkUTrJc.js","./settings-host-gates-mRhjEC1s.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-It1Oo7dY.js","./InstallInClaudeDesktopDialog-CRXgqpq1.js","./arrow-right-NOQZeKIW.js","./circle-check-nK1yRBIw.js","./download-BouT3__0.js","./LinkPreviewsSection-DyRo4Efx.js","./LintingSection-B-uzZ9Bc.js","./CodeMirrorPropInput-BGEORZYm.js","./dist-W5hM-kQ3.js","./dist-CoJBCixp.js","./dist-BtC2yORW.js","./dist-B1rPVlDX.js","./dist-OHM7P10P.js","./dist-ldcsP3Wx.js","./dist-kajsw8zD.js","./dist-CNHpRWc3.js","./dist-OiK6QmuG.js","./dist-DLTuJxuQ2.js","./stex-CmWau-0j.js","./lib-Csk2IQWH.js","./space-separated-tokens-B2o5P1Kh.js","./trim-lines-CzojgEjk.js","./folder-open-COGOeTzI.js","./with-selector-zVo3Fruj.js","./navigation-targets-Cu84E97-.js","./file-tree-utils-w-NVNUx5.js","./doc-paths-C1iU3JM4.js","./cm-theme-DpKmjLo0.js","./desktop-bridge-D6pSqrSU.js","./page-list-cache-duzt_bxz.js","./documents-fetch-ZX1mUge_.js","./note-window-mode-CI3Yju9B.js","./DocumentContext-D5ddMBdz.js","./propagation-api-dgM6YInk.js","./context-api-CMjojwfb.js","./lib-o_ZJ5rsY.js","./lib-D3PsW6H5.js","./lib-DxyUjQpt.js","./git-branch-CeTudSak.js","./Mermaid-DH1HLMlB.js","./maximize-2-DjzhPUDZ.js","./ime-composition-CNKa_WNE.js","./prop-types-ZtKgQMRh.js","./hash-C4CJQURT.js","./local-menu-action-bus-Dyh2UJJF.js","./paperclip-FfP_WlTp.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-BT2YHECh.js","./PageListContext-NRWi1wh0.js","./parse-api-error-CeEVOj25.js","./startup-marks-C403iSh4.js","./perf-CYJlqBBt.js","./diagnostic-breadcrumb-Mg7sdCfQ.js","./file-tree-rename-validation-BZbYm35X.js","./use-collab-url-DbvOg54A.js","./api-config-C0OrJP9L.js","./excalidraw-scene-Dgb0SaoB.js","./known-skill-dirs-CErGS26P.js","./single-file-mode-DURp6aom.js","./skill-scope-DjqrCXkR.js","./skills-api-D9_3ttAz.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-CtDE2R0v.js","./square-pen-DU3t-IcD.js","./DeleteConfirmationDialog-CN6XZx5m.js","./SkillPluginBundleDialog-fDl9XkF_.js","./SkillInstallMenu-DHtst-Z3.js","./ChangedOutsideBadge-BeJ4Reff.js","./context-menu-DFxnhV9i.js","./dist-BzicVdNV.js","./use-skills-CHU2m8ND.js","./use-skill-targets--mN_luk9.js","./markdownlint-rule-browser-Ezxrc6Kb.js","./tag-pill-input-DFLCUQhM.js","./lint-config-client-DT6tLnal.js","./use-open-skill-MDkicapn.js","./open-managed-artifact-tab-BcMHQbeA.js","./schema-fields-view-intent-CfSR46vf.js","./NetworkAccessSection-VgCFb86y.js","./restart-collab-server-CHNPKri_.js","./OkignoreSection-BDDJUSqF.js","./sortable.esm-CnIkmeTY.js","./grip-vertical-DNbkgWZL.js","./config-ignore-nested-error-events-BbuOaRMz.js","./save-held-message-D5H7vOp3.js","./ProjectTemplatesSection-Vt0-ODLw.js","./TemplateRow-DGghua5F.js","./file-plus-DKxOZh2k.js","./folder-config-api-C6LhS3Cf.js","./SearchSection-DFXxnnam.js","./use-semantic-search-status-Dd4pXwms.js","./SkillsManagerSection-B0O776zf.js","./SlidesPluginSection-B_E2apho.js","./input-group-CBuVp6zh.js","./SyncSection-C0MD5lpt.js","./PublishToGitHubDialog-D-68KN63.js","./clipboard-adapter-FO6gFDPG.js","./TerminalSection-G-h85PG2.js","./use-terminal-enabled-BU5Pay5o.js","./ThemePluginSection-DTQ7sQi5.js","./schema-section-DrnHDoC0.js","./settings-fields-DaMWswre.js","./lint-plugins-DPhL1P_s.js","./OkCliPathRow-D2xYoRyE.js","./SpellingSettings-DpMhK41P.js"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-DFWRwfH7.js";import{t as c}from"./lazy-with-preload-D3RC_59J.js";import{n as l,r as u,t as d}from"./alert-BEwM2iOp.js";import{r as f}from"./settings-host-gates-mRhjEC1s.js";import{n as p}from"./settings-fields-DaMWswre.js";import{t as m}from"./SettingsSectionHeader-2iTSJQHd.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-Ckx7jZHN.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-CiouM8fc.js`);return{SharingSection:e}},__vite__mapDeps([27,1,2,3,4,28,6,7,8,29,30,13,14,9,10,11,31,32,19,20,21,22,33,16,18,15,23,24,25,26,34,35,36]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-D2ms1Zdx.js`);return{AccountSection:e}},__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,57,58,59,60,61,62,63,64,20,21,14,29,22,65,19,13,16,66,67,68,69,15,70,71,72,17,73,74,75,76,77,78,23,24,26,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,25,18,34,99,35]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-t6Fpnhjm.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([100,1,56,2,3,4,12,6,7,8,13,14,9,10,11,101,16,15,102,103,104,43,44,45,46,47,48,49,50,51,52,53,36,78,66,17,105,75,106,107,108,80,22,65,26,24,109,110,5,19,20,21,111,33,112,113,81,114,115,116,117,118,29,30,70,42,119,120,121,23,79,122,123,124,125,126,127,128,129,130,18,25,131,98,132,133]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-NW7Zy5E5.js`);return{AttachmentsSection:e}},__vite__mapDeps([134,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,135,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,12,136,30,24,137,138,28,112,139,140,95,75,141,5,26,79,80,81,122,123,98,34,142,87,143,18,15,23,25,144]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-iAMLgmiA.js`);return{ContentRulesSection:e}},__vite__mapDeps([145,39,1,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,5,12,146,147,148,149,150,18,15,23,24,25,87]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-DdToTHHk.js`);return{SectionSkeleton:e}},__vite__mapDeps([151,135,1,2,3,4,40,64,20,21,6,7,8,14,29,22,65,19,9,10,11,13,16,66,67,12,136,30,24,137,138,28,112,61,42,139,140,95,75,141,5,31,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-DFkUTrJc.js`);return{HotkeysSection:e}},__vite__mapDeps([152,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,153,154,92,93,94]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-It1Oo7dY.js`);return{IntegrationsSection:e}},__vite__mapDeps([155,1,2,3,4,156,16,157,158,97,159,17,9,10,11,31,8,26,7,24,79,80,6,22,65,81,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-DyRo4Efx.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([160,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,79,80,65,81,87]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-B-uzZ9Bc.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,34,209,210,211,92,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,228,229,230,231,232,91]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-B-uzZ9Bc.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,34,209,210,211,92,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,228,229,230,231,232,91]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-B-uzZ9Bc.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,34,209,210,211,92,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,228,229,230,231,232,91]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-VgCFb86y.js`);return{NetworkAccessSection:e}},__vite__mapDeps([233,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,108,6,7,80,22,65,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,98,35,234,87,143]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-BDDJUSqF.js`);return{OkignoreSection:e}},__vite__mapDeps([235,1,236,8,4,2,3,19,20,21,6,7,14,22,9,10,11,66,16,237,75,81,31,203,56,179,180,48,47,181,63,50,184,85,86,44,87,36,185,204,205,206,207,51,18,15,23,24,25,238,26,98,34,144,239]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-Vt0-ODLw.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([240,1,2,3,4,139,16,9,241,56,108,6,7,8,80,22,65,26,24,11,10,116,117,118,20,21,14,29,30,66,70,242,95,81,31,43,44,45,46,47,48,49,50,51,52,53,36,219,17,79,122,5,123,98,142,85,86,87,243,204,18,19,15,23,25,34,231,89,91,92,93,94]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-DFXxnnam.js`);return{SearchSection:e}},__vite__mapDeps([244,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,68,6,7,12,13,14,10,11,70,16,245,85,86,87,18,19,20,21,22,15,23,24,25,26,79,80,65,81,122,5,123,98,143]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-B0O776zf.js`);return{SkillsManagerSection:e}},__vite__mapDeps([246,1,2,3,4,108,6,7,8,80,22,65,9,26,24,11,10,16,157,116,117,118,20,21,14,29,30,66,70,97,95,31,114,19,111,113,115,42,103,119,120,121,53,36,222,18,15,23,25,79,81,98,34,226,56,43,44,45,46,47,48,49,50,51,52,85,86,87,204,215,225,212,231,89,206,207,214,125,124]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-B_E2apho.js`);return{SlidesPluginSection:e}},__vite__mapDeps([247,1,2,3,4,15,16,74,9,202,19,20,21,6,7,8,14,22,10,11,66,97,26,24,77,78,45,44,46,47,18,23,25,248,98,142,91,92,93,94]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-C0MD5lpt.js`);return{SyncSection:e}},__vite__mapDeps([249,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,68,136,30,24,38,69,15,70,71,72,17,73,74,75,76,77,78,23,26,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,25,250,5,28,187,163,164,165,166,167,168,169,170,171,172,173,162,147,148,174,175,176,149,177,95,178,179,180,181,182,183,184,185,186,129,188,189,12,190,128,191,192,193,194,157,195,137,158,159,196,197,198,33,110,199,200,139,105,113,201,202,203,204,205,206,207,208,154,34,209,210,211,212,213,214,125,215,127,133,120,216,122,123,142,251,18]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-G-h85PG2.js`);return{TerminalSection:e}},__vite__mapDeps([252,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,253,87,35]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-DTQ7sQi5.js`);return{ThemePluginSection:e}},__vite__mapDeps([254,1,2,3,4,5,6,7,8,9,10,11,15,16,42,31,43,44,45,46,47,48,49,50,51,52,53,36,255,141,135,40,64,20,21,14,29,22,65,19,13,66,67,12,136,30,24,137,138,28,112,61,139,140,95,75,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143,18,23,25,144,239,256]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-DPhL1P_s.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([257,217,16,1,4,161,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,34,209,210,211,92,212,90,213,214,125,215,127,133,120,216,146,150,15,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,228,229,230,231,232,91]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=c(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-DrnHDoC0.js`),__vite__mapDeps([255,1,2,3,4,141,7,5,6,8,9,10,11,31,135,40,64,20,21,14,29,22,65,19,13,16,66,67,12,136,30,24,137,138,28,112,61,42,139,140,95,75,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143,18,15,23,25,144,239]),import.meta.url),t(()=>import(`./OkCliPathRow-D2xYoRyE.js`),__vite__mapDeps([258,1,2,3,4,109,6,7,8,13,14,66,16,110,9,10,11,5,19,20,21,22,33,31,26,24,35,36]),import.meta.url),t(()=>import(`./SpellingSettings-DpMhK41P.js`),__vite__mapDeps([259,1,21,20,6,7,4,8,3,14,56,2,12,13,9,10,11,19,22,66,16,140,81,31,178,135,40,64,29,65,67,136,30,24,137,138,28,112,61,42,139,95,75,141,5,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,122,123,98,34,142,54,55,57,60,62,63,87,143,153]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(u,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(d,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
@@ -1 +1 @@
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{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-DDeGYeMv.js";import{t as l}from"./miss-dialog-store-CsiJb9Ou.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-CAxu_6pu.js";import{d as h,u as g}from"./doc-hash-BT2I193z.js";var _=r(),v=e(n(),1),y=t();function b(e){let t=e.split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:e}function x(){let e=(0,_.c)(2),t=(0,v.useSyncExternalStore)(l.subscribe,l.getSnapshot,S);if(t===null)return null;let n;return e[0]===t?n=e[1]:(n=(0,y.jsx)(C,{nav:t},t.path),e[0]=t,e[1]=n),n}function S(){return null}function C(e){let t=(0,_.c)(28),{nav:n}=e,{state:r,refetch:v}=s(n),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=function(){l.dismiss()},t[0]=x):x=t[0];let S=x,C;t[1]===n.path?C=t[2]:(C=function(){window.location.hash=h(i(n.path)),S()},t[1]=n.path,t[2]=C);let w=C,T;t[3]===n?T=t[4]:(T=function(e){c.arm(o(n,e)),window.location.hash=n.kind===`folder`?h(e):g(e),S()},t[3]=n,t[4]=T);let E=T,D;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>{e||S()},t[5]=D):D=t[5];let O=r.phase,k=r.phase===`resolved`?r.resolution.verdict:void 0,A;t[6]===n.path?A=t[7]:(A=b(n.path),t[6]=n.path,t[7]=A);let j;t[8]===A?j=t[9]:(j=(0,y.jsx)(p,{children:(0,y.jsx)(u,{className:`truncate`,children:A})}),t[8]=A,t[9]=j);let M=r.phase===`pending`?`flex flex-col items-center justify-center gap-3 py-6 text-center text-sm text-muted-foreground`:`flex flex-col items-center justify-center gap-6 py-2 text-center`,N;t[10]!==n.path||t[11]!==E?(N=()=>E(n.path),t[10]=n.path,t[11]=E,t[12]=N):N=t[12];let P;t[13]!==w||t[14]!==n||t[15]!==E||t[16]!==v||t[17]!==r||t[18]!==N?(P=(0,y.jsx)(a,{nav:n,state:r,onBrowseFolder:w,onOpenRenamed:E,onEnableAutoSync:S,onSyncCompleted:v,onPullApplied:N}),t[13]=w,t[14]=n,t[15]=E,t[16]=v,t[17]=r,t[18]=N,t[19]=P):P=t[19];let F;t[20]!==P||t[21]!==M?(F=(0,y.jsx)(f,{className:M,children:P}),t[20]=P,t[21]=M,t[22]=F):F=t[22];let I;return t[23]!==r.phase||t[24]!==F||t[25]!==k||t[26]!==j?(I=(0,y.jsx)(m,{open:!0,onOpenChange:D,children:(0,y.jsxs)(d,{className:`sm:max-w-md`,"data-testid":`share-receive-miss-dialog`,"data-phase":O,"data-verdict":k,children:[j,F]})}),t[23]=r.phase,t[24]=F,t[25]=k,t[26]=j,t[27]=I):I=t[27],I}export{x as ShareReceiveMissDialog};
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{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-DfQJ7mnt.js";import{t as l}from"./miss-dialog-store-CsiJb9Ou.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-CAxu_6pu.js";import{d as h,u as g}from"./doc-hash-BT2I193z.js";var _=r(),v=e(n(),1),y=t();function b(e){let t=e.split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:e}function x(){let e=(0,_.c)(2),t=(0,v.useSyncExternalStore)(l.subscribe,l.getSnapshot,S);if(t===null)return null;let n;return e[0]===t?n=e[1]:(n=(0,y.jsx)(C,{nav:t},t.path),e[0]=t,e[1]=n),n}function S(){return null}function C(e){let t=(0,_.c)(28),{nav:n}=e,{state:r,refetch:v}=s(n),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=function(){l.dismiss()},t[0]=x):x=t[0];let S=x,C;t[1]===n.path?C=t[2]:(C=function(){window.location.hash=h(i(n.path)),S()},t[1]=n.path,t[2]=C);let w=C,T;t[3]===n?T=t[4]:(T=function(e){c.arm(o(n,e)),window.location.hash=n.kind===`folder`?h(e):g(e),S()},t[3]=n,t[4]=T);let E=T,D;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>{e||S()},t[5]=D):D=t[5];let O=r.phase,k=r.phase===`resolved`?r.resolution.verdict:void 0,A;t[6]===n.path?A=t[7]:(A=b(n.path),t[6]=n.path,t[7]=A);let j;t[8]===A?j=t[9]:(j=(0,y.jsx)(p,{children:(0,y.jsx)(u,{className:`truncate`,children:A})}),t[8]=A,t[9]=j);let M=r.phase===`pending`?`flex flex-col items-center justify-center gap-3 py-6 text-center text-sm text-muted-foreground`:`flex flex-col items-center justify-center gap-6 py-2 text-center`,N;t[10]!==n.path||t[11]!==E?(N=()=>E(n.path),t[10]=n.path,t[11]=E,t[12]=N):N=t[12];let P;t[13]!==w||t[14]!==n||t[15]!==E||t[16]!==v||t[17]!==r||t[18]!==N?(P=(0,y.jsx)(a,{nav:n,state:r,onBrowseFolder:w,onOpenRenamed:E,onEnableAutoSync:S,onSyncCompleted:v,onPullApplied:N}),t[13]=w,t[14]=n,t[15]=E,t[16]=v,t[17]=r,t[18]=N,t[19]=P):P=t[19];let F;t[20]!==P||t[21]!==M?(F=(0,y.jsx)(f,{className:M,children:P}),t[20]=P,t[21]=M,t[22]=F):F=t[22];let I;return t[23]!==r.phase||t[24]!==F||t[25]!==k||t[26]!==j?(I=(0,y.jsx)(m,{open:!0,onOpenChange:D,children:(0,y.jsxs)(d,{className:`sm:max-w-md`,"data-testid":`share-receive-miss-dialog`,"data-phase":O,"data-verdict":k,children:[j,F]})}),t[23]=r.phase,t[24]=F,t[25]=k,t[26]=j,t[27]=I):I=t[27],I}export{x as ShareReceiveMissDialog};
@@ -1 +1 @@
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"./utils-CPqDy6Hr.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./select-BsDvTs6I.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-CEzF7e2m.js";import{a as y,h as b,r as x,t as S,u as C}from"./dropdown-menu-DH6UNmuX.js";import{n as w}from"./file-plus-DKxOZh2k.js";import{t as T}from"./list-plus-CYMJBvrm.js";import{p as E,t as D}from"./skill-scope-DjqrCXkR.js";var O=a(),k=t();function A(e){let t=(0,O.c)(21),{value:n,onRequestMove:a,disabled:m,triggerClassName:h}=e,{_:g}=i(),_=E(),v;t[0]===a?v=t[1]:(v=e=>a(e),t[0]=a,t[1]=v);let y;t[2]===g?y=t[3]:(y=g({id:`oCHfGC`}),t[2]=g,t[3]=y);let b;t[4]===h?b=t[5]:(b=o(`w-auto gap-1 text-xs font-mono uppercase`,h),t[4]=h,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,k.jsx)(f,{}),t[6]=x):x=t[6];let S;t[7]!==y||t[8]!==b?(S=(0,k.jsx)(u,{size:`sm`,"aria-label":y,"data-testid":`skill-level-select`,className:b,children:x}),t[7]=y,t[8]=b,t[9]=S):S=t[9];let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,k.jsx)(s,{children:(0,k.jsx)(r,{id:`oCHfGC`})}),t[10]=C):C=t[10];let w;t[11]===_?w=t[12]:(w=D.map(e=>(0,k.jsx)(c,{value:e,children:_[e]},e)),t[11]=_,t[12]=w);let T;t[13]===w?T=t[14]:(T=(0,k.jsx)(l,{align:`end`,children:(0,k.jsxs)(d,{children:[C,w]})}),t[13]=w,t[14]=T);let A;return t[15]!==m||t[16]!==v||t[17]!==S||t[18]!==T||t[19]!==n?(A=(0,k.jsxs)(p,{value:n,onValueChange:v,disabled:m,children:[S,T]}),t[15]=m,t[16]=v,t[17]=S,t[18]=T,t[19]=n,t[20]=A):A=t[20],A}var j=e(n(),1);function M(e){let t=(0,O.c)(12),{scope:n,name:r}=e,[i,a]=(0,j.useState)(null),o;t[0]===n?o=t[1]:(o=e=>{e!==n&&a(e)},t[0]=n,t[1]=o);let s;t[2]!==r||t[3]!==i||t[4]!==n?(s=i?{scope:n,name:r,toScope:i}:null,t[2]=r,t[3]=i,t[4]=n,t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>!e&&a(null),t[6]=c):c=t[6];let l;t[7]===s?l=t[8]:(l=(0,k.jsx)(h,{target:s,onOpenChange:c}),t[7]=s,t[8]=l);let u;return t[9]!==o||t[10]!==l?(u={requestMove:o,dialog:l},t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function N(e){let t=(0,O.c)(41),{scope:n,name:a,showAddPropertyButton:o,onAddProperty:s,problemCount:c,problemMessages:l}=e,{_:u}=i(),d;t[0]!==a||t[1]!==n?(d={scope:n,name:a},t[0]=a,t[1]=n,t[2]=d):d=t[2];let f=M(d),p;t[3]!==f.requestMove||t[4]!==n?(p=(0,k.jsx)(A,{value:n,onRequestMove:f.requestMove,triggerClassName:`hidden @xl/toolbar:flex`}),t[3]=f.requestMove,t[4]=n,t[5]=p):p=t[5];let h;t[6]!==a||t[7]!==n?(h=(0,k.jsx)(_,{scope:n,name:a}),t[6]=a,t[7]=n,t[8]=h):h=t[8];let E;t[9]!==p||t[10]!==h?(E=(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,h]}),t[9]=p,t[10]=h,t[11]=E):E=t[11];let D;t[12]!==s||t[13]!==c||t[14]!==l||t[15]!==o?(D=o?(0,k.jsx)(v,{onAddProperty:s,problemCount:c,problemMessages:l,className:`hidden @xl/toolbar:inline-flex`}):null,t[12]=s,t[13]=c,t[14]=l,t[15]=o,t[16]=D):D=t[16];let j;t[17]===u?j=t[18]:(j=u({id:`Yzs3QX`}),t[17]=u,t[18]=j);let N;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,k.jsx)(w,{className:`size-4`,"aria-hidden":!0}),t[19]=N):N=t[19];let P;t[20]===j?P=t[21]:(P=(0,k.jsx)(b,{asChild:!0,children:(0,k.jsx)(m,{variant:`ghost`,size:`icon`,"aria-label":j,"data-testid":`skill-toolbar-overflow`,className:`@xl/toolbar:hidden`,children:N})}),t[20]=j,t[21]=P);let F;t[22]===f?F=t[23]:(F=e=>f.requestMove(e),t[22]=f,t[23]=F);let I;t[24]!==n||t[25]!==F?(I=(0,k.jsx)(g,{value:n,onSelect:F}),t[24]=n,t[25]=F,t[26]=I):I=t[26];let L;t[27]!==s||t[28]!==o?(L=o?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{}),(0,k.jsxs)(y,{onSelect:s,children:[(0,k.jsx)(T,{}),(0,k.jsx)(r,{id:`81H_23`})]})]}):null,t[27]=s,t[28]=o,t[29]=L):L=t[29];let R;t[30]!==I||t[31]!==L?(R=(0,k.jsxs)(x,{align:`end`,className:`min-w-44`,children:[I,L]}),t[30]=I,t[31]=L,t[32]=R):R=t[32];let z;t[33]!==R||t[34]!==P?(z=(0,k.jsxs)(S,{children:[P,R]}),t[33]=R,t[34]=P,t[35]=z):z=t[35];let B;return t[36]!==f.dialog||t[37]!==z||t[38]!==E||t[39]!==D?(B=(0,k.jsxs)(k.Fragment,{children:[E,D,z,f.dialog]}),t[36]=f.dialog,t[37]=z,t[38]=E,t[39]=D,t[40]=B):B=t[40],B}export{N as SkillToolbarControls};
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"./utils-CPqDy6Hr.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./select-BsDvTs6I.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-nT32ZO2n.js";import{a as y,h as b,r as x,t as S,u as C}from"./dropdown-menu-DH6UNmuX.js";import{n as w}from"./file-plus-DKxOZh2k.js";import{t as T}from"./list-plus-CYMJBvrm.js";import{p as E,t as D}from"./skill-scope-DjqrCXkR.js";var O=a(),k=t();function A(e){let t=(0,O.c)(21),{value:n,onRequestMove:a,disabled:m,triggerClassName:h}=e,{_:g}=i(),_=E(),v;t[0]===a?v=t[1]:(v=e=>a(e),t[0]=a,t[1]=v);let y;t[2]===g?y=t[3]:(y=g({id:`oCHfGC`}),t[2]=g,t[3]=y);let b;t[4]===h?b=t[5]:(b=o(`w-auto gap-1 text-xs font-mono uppercase`,h),t[4]=h,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,k.jsx)(f,{}),t[6]=x):x=t[6];let S;t[7]!==y||t[8]!==b?(S=(0,k.jsx)(u,{size:`sm`,"aria-label":y,"data-testid":`skill-level-select`,className:b,children:x}),t[7]=y,t[8]=b,t[9]=S):S=t[9];let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,k.jsx)(s,{children:(0,k.jsx)(r,{id:`oCHfGC`})}),t[10]=C):C=t[10];let w;t[11]===_?w=t[12]:(w=D.map(e=>(0,k.jsx)(c,{value:e,children:_[e]},e)),t[11]=_,t[12]=w);let T;t[13]===w?T=t[14]:(T=(0,k.jsx)(l,{align:`end`,children:(0,k.jsxs)(d,{children:[C,w]})}),t[13]=w,t[14]=T);let A;return t[15]!==m||t[16]!==v||t[17]!==S||t[18]!==T||t[19]!==n?(A=(0,k.jsxs)(p,{value:n,onValueChange:v,disabled:m,children:[S,T]}),t[15]=m,t[16]=v,t[17]=S,t[18]=T,t[19]=n,t[20]=A):A=t[20],A}var j=e(n(),1);function M(e){let t=(0,O.c)(12),{scope:n,name:r}=e,[i,a]=(0,j.useState)(null),o;t[0]===n?o=t[1]:(o=e=>{e!==n&&a(e)},t[0]=n,t[1]=o);let s;t[2]!==r||t[3]!==i||t[4]!==n?(s=i?{scope:n,name:r,toScope:i}:null,t[2]=r,t[3]=i,t[4]=n,t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>!e&&a(null),t[6]=c):c=t[6];let l;t[7]===s?l=t[8]:(l=(0,k.jsx)(h,{target:s,onOpenChange:c}),t[7]=s,t[8]=l);let u;return t[9]!==o||t[10]!==l?(u={requestMove:o,dialog:l},t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function N(e){let t=(0,O.c)(41),{scope:n,name:a,showAddPropertyButton:o,onAddProperty:s,problemCount:c,problemMessages:l}=e,{_:u}=i(),d;t[0]!==a||t[1]!==n?(d={scope:n,name:a},t[0]=a,t[1]=n,t[2]=d):d=t[2];let f=M(d),p;t[3]!==f.requestMove||t[4]!==n?(p=(0,k.jsx)(A,{value:n,onRequestMove:f.requestMove,triggerClassName:`hidden @xl/toolbar:flex`}),t[3]=f.requestMove,t[4]=n,t[5]=p):p=t[5];let h;t[6]!==a||t[7]!==n?(h=(0,k.jsx)(_,{scope:n,name:a}),t[6]=a,t[7]=n,t[8]=h):h=t[8];let E;t[9]!==p||t[10]!==h?(E=(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,h]}),t[9]=p,t[10]=h,t[11]=E):E=t[11];let D;t[12]!==s||t[13]!==c||t[14]!==l||t[15]!==o?(D=o?(0,k.jsx)(v,{onAddProperty:s,problemCount:c,problemMessages:l,className:`hidden @xl/toolbar:inline-flex`}):null,t[12]=s,t[13]=c,t[14]=l,t[15]=o,t[16]=D):D=t[16];let j;t[17]===u?j=t[18]:(j=u({id:`Yzs3QX`}),t[17]=u,t[18]=j);let N;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,k.jsx)(w,{className:`size-4`,"aria-hidden":!0}),t[19]=N):N=t[19];let P;t[20]===j?P=t[21]:(P=(0,k.jsx)(b,{asChild:!0,children:(0,k.jsx)(m,{variant:`ghost`,size:`icon`,"aria-label":j,"data-testid":`skill-toolbar-overflow`,className:`@xl/toolbar:hidden`,children:N})}),t[20]=j,t[21]=P);let F;t[22]===f?F=t[23]:(F=e=>f.requestMove(e),t[22]=f,t[23]=F);let I;t[24]!==n||t[25]!==F?(I=(0,k.jsx)(g,{value:n,onSelect:F}),t[24]=n,t[25]=F,t[26]=I):I=t[26];let L;t[27]!==s||t[28]!==o?(L=o?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{}),(0,k.jsxs)(y,{onSelect:s,children:[(0,k.jsx)(T,{}),(0,k.jsx)(r,{id:`81H_23`})]})]}):null,t[27]=s,t[28]=o,t[29]=L):L=t[29];let R;t[30]!==I||t[31]!==L?(R=(0,k.jsxs)(x,{align:`end`,className:`min-w-44`,children:[I,L]}),t[30]=I,t[31]=L,t[32]=R):R=t[32];let z;t[33]!==R||t[34]!==P?(z=(0,k.jsxs)(S,{children:[P,R]}),t[33]=R,t[34]=P,t[35]=z):z=t[35];let B;return t[36]!==f.dialog||t[37]!==z||t[38]!==E||t[39]!==D?(B=(0,k.jsxs)(k.Fragment,{children:[E,D,z,f.dialog]}),t[36]=f.dialog,t[37]=z,t[38]=E,t[39]=D,t[40]=B):B=t[40],B}export{N as SkillToolbarControls};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{Bn as n,Cn as r,Gt as i,Jt as a,K as o,Q as s,Qt as c,U as l,Vn as u,Y as ee,in as d,lr as te,pr as f,q as ne,qt as p,rn as m,wt as re,xn as ie}from"./DocumentContext-D-MSOFOj.js";import{t as h}from"./react-f2sANaYj.js";import{r as ae}from"./dist-Nvb76hAm.js";import{n as oe}from"./dist-PQ5KMVDh.js";import{t as g}from"./compiler-runtime-BfE3aGVn.js";import{_t as _}from"./schemas-api-CqmliOdH.js";import{i as se}from"./use-apply-config-theme-CYFG76sS.js";import{T as ce,b as v,c as le,n as ue,o as y,r as de,t as fe,v as b,w as pe}from"./typing-burst-detector-E4B60o_t.js";import{Q as me,Vn as x,a as he,gt as S,i as ge,mt as C,o as _e,x as w,zn as ve}from"./CodeMirrorPropInput-46LVt6aZ.js";import{a as T,i as E}from"./constants-skills-Coq7kn_k.js";import{t as ye}from"./diagnostic-breadcrumb-Mg7sdCfQ.js";import{n as D}from"./perf-CYJlqBBt.js";import{m as be}from"./config-provider-Dmu1kANQ.js";import{$ as O,At as k,Ct as A,E as j,J as M,K as N,Mt as P,N as F,Nt as I,Tt as xe,X as L,at as R,b as z,et as B,ft as Se,g as V,l as H,lt as Ce,ot as U,pt as W,st as G,tt as K,ut as q,v as J,wt as Y}from"./dist-CoJBCixp.js";import{a as we,i as Te}from"./cm-theme-DpKmjLo0.js";import{i as Ee,t as X}from"./dist-W5hM-kQ3.js";import{i as Z,n as Q,o as De,r as Oe}from"./dist-kajsw8zD.js";import{o as ke,r as Ae}from"./selection-context-B-AaPD6L.js";import{C as je,D as Me,t as Ne}from"./markdown-lint-DYkBgJHq.js";import{l as Pe}from"./lint-config-client-B7GJyltx.js";import{a as Fe,i as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve}from"./dist-DMhg0Xyd.js";import{n as He,t as Ue}from"./src-Bh79kCxy.js";var $=e(h(),1),We=g();function Ge(){let e=m();return e===null?null:new Set(e.keys())}function Ke(e,t,n){let r=[],a=F(e);if(n!=null){let i=[];for(let{from:e,to:n}of t)a.iterate({from:e,to:n,enter(e){if(e.name===`InlineCode`||e.name===`FencedCode`)return i.push({from:e.from,to:e.to}),!1}});let o=(e,t)=>i.some(n=>e>=n.from&&t<=n.to);for(let{from:i,to:a}of t){let t=e.doc.sliceString(i,a);E.lastIndex=0;for(let e=E.exec(t);e!==null;e=E.exec(t)){let t=e[2];if(!T(t))continue;let a=i+(e.index??0)+e[1].length,s=a+t.length+1;o(a,s)||r.push(N.mark({class:n.has(t)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":t}}).range(a,s))}}}for(let{from:o,to:s}of t)a.iterate({from:o,to:s,enter(t){if(t.name!==`InlineCode`)return;let a=e.doc.sliceString(t.from,t.to),o=a.length-a.replace(/^`+/,``).length,s=a.length-a.replace(/`+$/,``).length,c=a.slice(o,a.length-s),l=/^\/([a-z0-9][a-z0-9-]{1,63})$/.exec(c)?.[1];if(l!==void 0&&T(l)&&n!=null)return r.push(N.mark({class:n.has(l)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":l}}).range(t.from+o,t.to-s)),!1;let u=i.exec(c);if(u)return r.push(N.mark({class:`cm-skill-path-link`,attributes:{"data-skill-path":u[1]}}).range(t.from+o,t.to-s)),!1}});return r.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),N.set(r)}function qe(e){let t=a(e);return t===null?[]:[L.fromClass(class{decorations;constructor(e){this.decorations=Ke(e.state,e.visibleRanges,Ge())}update(e){(e.docChanged||e.viewportChanged||F(e.startState)!==F(e.state))&&(this.decorations=Ke(e.view.state,e.view.visibleRanges,Ge()))}},{decorations:e=>e.decorations}),M.domEventHandlers({mousedown(n){let r=n.target?.closest?.(`[data-skill-ref]`),i=r instanceof HTMLElement?r.dataset.skillRef:void 0;if(i!==void 0){n.preventDefault();let e=m()?.get(i);return e===void 0?c():window.location.hash=d(i,e),!0}let a=n.target?.closest?.(`.cm-skill-path-link`),o=a instanceof HTMLElement?a.dataset.skillPath:void 0;return o===void 0?!1:(n.preventDefault(),window.location.hash=p(t,e,o),!0)}})]}var Je=N.line({attributes:{dir:`auto`}});function Ye(e){let t=new k;for(let n of e.visibleRanges)for(let r=n.from;r<=n.to;){let n=e.state.doc.lineAt(r);t.add(n.from,n.from,Je),r=n.to+1}return t.finish()}var Xe=L.fromClass(class{decorations;constructor(e){this.decorations=Ye(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=Ye(e.view))}},{decorations:e=>e.decorations}),Ze=[M.perLineTextDirection.of(!0),Xe],Qe=new Set([`Link`,`Image`,`HTMLTag`,`HTMLBlock`]),$e=`cm-lint-local-target`;function et(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function tt(e,t){let n=V(e,t+1,100);if(n){let e=n.resolveInner(t,1);for(;e;){if(Qe.has(e.name))return{from:e.from,to:e.to};e=e.parent}}return{from:t,to:t}}function nt(e){return e===`error`?`error`:e===`info`?`info`:`warning`}function rt(e,t){let n=e.doc,r=[];for(let i of t){if(i.source!==`links`)continue;let t=tt(e,et(n,i.range.start));r.push({from:t.from,to:Math.max(t.to,t.from),severity:nt(i.severity),message:v(i),source:`${i.source}/${i.code}`,markClass:$e})}return r}var it=P.define();function at(e){let t={findings:[]};return[Ie(e=>C()?rt(e.state,t.findings):[],{delay:300,needsRefresh:e=>e.transactions.some(e=>e.effects.some(e=>e.is(it)))}),L.define(n=>{let r=e=>{t.findings=e,n.dispatch({effects:it.of(null)}),Ve(n)},i=b(e,e=>{e.status===`loaded`&&r(e.findings)}),a=S(()=>r(t.findings));return{destroy(){i(),a()}}})]}function ot(e,t){return e.enabled?[Le(),Ie(async n=>ct(n.state.doc,await je(n.state.doc.toString(),e,t)),{delay:600})]:[]}function st(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function ct(e,t){let n=[];for(let r of t){let t=st(e,r.range.start),i=st(e,r.range.end),a={from:t,to:Math.max(i,t),severity:r.severity,message:r.message,source:`${r.source}/${r.code}`},o=lt(r);o&&(a.actions=[o]),n.push(a)}return n}function lt(e){let t=e.fixes;return!t||t.length===0?null:{name:`Fix`,apply(e){let n=e.state.doc;e.dispatch({changes:t.map(e=>({from:st(n,e.range.start),to:st(n,e.range.end),insert:e.newText})),userEvent:`input.complete`})}}}var ut=[q(),U(),G(),J(),B(),K(),xe.allowMultipleSelections.of(!0),j(),H(),Oe(),Q(),W(),O(),R(),Fe(),Ce.of([...Z,...X,...Be,...z,...De,...ze])],dt=N.mark({class:`cm-link-ref-broken`}),ft=/^\s{0,3}\[([^\]]+)\]:\s/,pt=/\[([^\]]*)\]\[([^\]]*)\]/g,mt=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function ht(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function gt(e){let t=[];return F(e).iterate({enter(e){if(mt.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function _t(e){let t=new Set,n=[],r=e.doc,i=gt(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if(ht(n.from,i))continue;let a=ft.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!ht(t.from,i)&&!ft.test(t.text))for(pt.lastIndex=0;;){let e=pt.exec(t.text);if(!e)break;let r=t.from+e.index;if(ht(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(dt.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),N.set(a)}var vt=I.define({create(e){return _t(e)},update(e,t){return t.docChanged?_t(t.state):e},provide:e=>M.decorations.from(e)}),yt=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,bt=N.mark({class:`cm-del`}),xt=N.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),St=N.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function Ct(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function wt(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(!_.test(t.text))return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(_.test(r.text))return{from:t.from,to:r.to}}return null}function Tt(e,t){let n=[],r=F(e),i=wt(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(bt.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=yt.exec(r.text),a=i?i[1].length:2,o=N.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=Ct(r.text),a=N.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(xt.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(St.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(St.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),N.set(n)}var Et=class{decorations;constructor(e){this.decorations=Tt(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||F(e.startState)!==F(e.state))&&(this.decorations=Tt(e.view.state,e.view.visibleRanges))}},Dt=L.fromClass(Et,{decorations:e=>e.decorations});function Ot(){return[Dt,vt]}function kt(e,t){let n=e.trackedOrigins;return n.has(t)?!0:t?n.has(t.constructor):!1}function At(e){let{docName:t,ytext:n,undoManager:r}=e,i=!1,a=!1,o=!1,s=(e,t)=>{i||kt(r,t.origin)||(a=!0)};return n.observe(s),{setSourceModeActive(e){if(!o&&e!==i){if(!e){i=!1,r.stopCapturing();return}a&&(r.clear(),D(`ok/source-undo/flip-clear`,{docName:t})),a=!1,i=!0}},destroy(){o||(o=!0,n.unobserve(s))}}}var jt=new WeakMap;function Mt(e){return L.define(t=>{let n=At(e);return jt.set(t,n),{destroy(){n.destroy()}}})}function Nt(e,t){let n=jt.get(e);if(!n)throw Error(`createSourceUndoFlipExtension is not installed on this EditorView`);n.setSourceModeActive(t)}var Pt=t(),Ft=P.define();function It(e,t){try{Nt(t.view,!1)}finally{try{u(t)}finally{x(e,t.view)}}}function Lt(e,t,n){let r=y(e.state.doc),i=r[t.index],a={docName:n,mode:`source`,index:t.index,sourceHeadingCount:r.length};if(!i)return ye(ue,{...a,outcome:`no-target`}),!1;let o=f(n,`outline`,()=>{e.dispatch({selection:Y.cursor(i.from),effects:M.scrollIntoView(i.from,{y:`start`})}),e.focus()});return ye(ue,{...a,outcome:o?`scrolled`:`declined`,targetLine:e.state.doc.lineAt(i.from).number}),o}function Rt(e,t,n,r){requestAnimationFrame(()=>{if(!n())return;let i=e.state.doc,a=Math.min(t.offset,i.length);f(r,`raw-mdx`,()=>{e.dispatch({selection:Y.cursor(a),effects:M.scrollIntoView(a,{y:`center`})}),e.focus()})})}function zt(e,t,n){let r=e.state.doc,i=Math.min(Math.max(t.line,1),r.lines),a=r.line(i),o=Math.min(a.from+Math.max(0,t.column-1),a.to);return f(n,`problems-row`,()=>{e.dispatch({selection:Y.cursor(o),effects:M.scrollIntoView(o,{y:`start`})}),e.focus()})}function Bt(e){let t=(0,We.c)(57),{docName:i,ytext:a,provider:c,placeholder:u,isSourceModeActive:d}=e,f=(0,$.useRef)(null),p=(0,$.useRef)(null),[m,h]=(0,$.useState)(null);if(m)throw m;let{resolvedTheme:g}=oe(),{_}=ae(),v;t[0]===_?v=t[1]:(v=_({id:`xbdtfY`}),t[0]=_,t[1]=v);let y=v,{merged:b}=se(),me=(0,$.useRef)(d),x=b?.editor?.wordWrap??!0,{data:S}=Pe(i),C;t[2]!==S?.effective||t[3]!==b?(C=S?.effective??(b?.contentRules?Me(b.contentRules):Ne),t[2]=S?.effective,t[3]=b,t[4]=C):C=t[4];let w=C,T;t[5]===w?T=t[6]:(T=JSON.stringify(w),t[5]=w,t[6]=T);let E=T,D=(0,$.useRef)(null),O;t[7]!==y||t[8]!==i||t[9]!==d||t[10]!==w||t[11]!==u||t[12]!==c||t[13]!==g||t[14]!==x||t[15]!==a?(O=()=>{let e=f.current;if(!e)return;let t=c.configuration.name??``,o,l=Ht;try{o=n({docName:t,container:e,sizeStats:{viewCount:0,bytes:a.length},factory:e=>{let n=null,o=new be(a);try{let ee=re({ydoc:c.document,ytext:a,docName:t}),d=new A,f=new A,ne=new A,p=new A,m=new M({state:xe.create({doc:a.toString(),extensions:[Te(y),ut,Ze,Re({scrollToMatch:e=>te(t,`find-match`)?M.scrollIntoView(e,{y:`start`}):Ft.of(null)}),Ce.of([Ee]),Ue(a,c.awareness,{undoManager:o}),Ce.of(He),Mt({docName:t,ytext:a,undoManager:o}),...ge({themeCompartment:d,resolvedTheme:g,ydoc:c.document,wordWrapCompartment:f,wordWrap:x,currentDocName:t}),Ot(),qe(t),s(),p.of(ot(w,i)),at(i),ee,M.updateListener.of(e=>{ie(e)&&r(t)}),M.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,pe(t,`source`,ce(e.view)),Ae(t,`source`,ke(e.view,t))},120))}),ne.of(Se(u??``)),M.theme({"&":{height:`100%`}}),M.scrollMargins.of(Vt)]}),parent:e});pe(t,`source`,ce(m)),Ae(t,`source`,ke(m,t));let h=m.contentDOM;return h.addEventListener(`keydown`,l),h.addEventListener(`paste`,l),h.addEventListener(`drop`,l),h.addEventListener(`cut`,l),{view:m,ydoc:c.document,ytext:a,provider:c,undoManager:o,themeCompartment:d,wordWrapCompartment:f,placeholderCompartment:ne,lintCompartment:p}}catch(e){let t=e;throw o.destroy(),t}}}),D.current=o,p.current=o.view,Nt(o.view,d),ve(i,o.view,`sourceEditor`),fe()&&o.view.focus()}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),D.current=null,p.current=null,h(t instanceof Error?t:Error(String(t)))}return()=>{let e=D.current;D.current=null,p.current=null,e&&It(i,e)}},t[7]=y,t[8]=i,t[9]=d,t[10]=w,t[11]=u,t[12]=c,t[13]=g,t[14]=x,t[15]=a,t[16]=O):O=t[16];let k;t[17]!==c||t[18]!==a?(k=[a,c],t[17]=c,t[18]=a,t[19]=k):k=t[19],(0,$.useEffect)(O,k);let j,N;t[20]===d?(j=t[21],N=t[22]):(j=()=>{me.current=d;let e=p.current;e&&Nt(e,d)},N=[d],t[20]=d,t[21]=j,t[22]=N),(0,$.useEffect)(j,N);let P,F;t[23]===i?(P=t[24],F=t[25]):(P=()=>{},F=[i],t[23]=i,t[24]=P,t[25]=F),(0,$.useEffect)(P,F);let I,L;t[26]===g?(I=t[27],L=t[28]):(I=()=>{let e=D.current;e&&e.view.dispatch({effects:e.themeCompartment.reconfigure(g===`dark`?he:_e)})},L=[g],t[26]=g,t[27]=I,t[28]=L),(0,$.useEffect)(I,L);let R,z;t[29]===x?(R=t[30],z=t[31]):(R=()=>{let e=D.current;e&&e.view.dispatch({effects:e.wordWrapCompartment.reconfigure(x?M.lineWrapping:[])})},z=[x],t[29]=x,t[30]=R,t[31]=z),(0,$.useEffect)(R,z);let B,V;t[32]===u?(B=t[33],V=t[34]):(B=()=>{let e=D.current;e&&e.view.dispatch({effects:e.placeholderCompartment.reconfigure(Se(u??``))})},V=[u],t[32]=u,t[33]=B,t[34]=V),(0,$.useEffect)(B,V);let H,U;t[35]===y?(H=t[36],U=t[37]):(H=()=>{let e=D.current;e&&we(e.view,y)},U=[y],t[35]=y,t[36]=H,t[37]=U),(0,$.useEffect)(H,U);let W;t[38]!==i||t[39]!==w?(W=()=>{let e=D.current;e&&e.view.dispatch({effects:e.lintCompartment.reconfigure(ot(w,i))})},t[38]=i,t[39]=w,t[40]=W):W=t[40];let G;t[41]===E?G=t[42]:(G=[E],t[41]=E,t[42]=G),(0,$.useEffect)(W,G);let K,q;t[43]!==i||t[44]!==d?(K=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==i||t.mode!==`source`||!d)return;let n=p.current;if(!n){ye(ue,{docName:i,mode:`source`,index:t.index,outcome:`no-view`});return}Lt(n,t,i)&&t.onNavigated?.(n.contentDOM),o(i)};return window.addEventListener(de,e),()=>window.removeEventListener(de,e)},q=[i,d],t[43]=i,t[44]=d,t[45]=K,t[46]=q):(K=t[45],q=t[46]),(0,$.useEffect)(K,q);let J,Y;t[47]!==i||t[48]!==d?(J=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==i||!d)return;let n=p.current;n&&zt(n,t,i)&&(o(i),t.onNavigated?.(n.contentDOM))};return window.addEventListener(le,e),()=>window.removeEventListener(le,e)},Y=[i,d],t[47]=i,t[48]=d,t[49]=J,t[50]=Y):(J=t[49],Y=t[50]),(0,$.useEffect)(J,Y);let X,Z;t[51]!==i||t[52]!==d||t[53]!==c?(X=()=>{if(!d)return;let e=p.current;if(!e)return;let t=ee(i);if(!t)return;if(t.kind!==`selection-offset`){ne(i),t.kind===`outline`?Lt(e,t.detail,i)&&t.detail.onNavigated?.(e.contentDOM):t.kind===`lint`?zt(e,t.detail,i)&&t.detail.onNavigated?.(e.contentDOM):t.kind===`raw-mdx`&&Rt(e,t.detail,()=>me.current,i);return}let n=!1,r=null;return queueMicrotask(()=>{if(n)return;let t=ee(i);t?.kind===`selection-offset`&&(r=l({view:e,docName:i,navigation:t,ydoc:c.document,transition:{from:`wysiwyg`,to:`source`}}),r&&ne(i))}),()=>{n=!0,r?.cancel(`mode-flip`)}},Z=[i,d,c],t[51]=i,t[52]=d,t[53]=c,t[54]=X,t[55]=Z):(X=t[54],Z=t[55]),(0,$.useEffect)(X,Z);let Q;return t[56]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,Pt.jsx)(`div`,{ref:f,className:`source-editor h-full pb-3`}),t[56]=Q):Q=t[56],Q}function Vt(){return{top:w()}}function Ht(){return me()}export{Bt as SourceEditor,Rt as applyRawMdxNavigation};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{Bn as n,Cn as r,Gt as i,Jt as a,K as o,Q as s,Qt as c,U as l,Vn as u,Y as ee,in as d,lr as te,pr as f,q as ne,qt as p,rn as m,wt as re,xn as ie}from"./DocumentContext-D5ddMBdz.js";import{t as h}from"./react-f2sANaYj.js";import{r as ae}from"./dist-Nvb76hAm.js";import{n as oe}from"./dist-PQ5KMVDh.js";import{t as g}from"./compiler-runtime-BfE3aGVn.js";import{_t as _}from"./schemas-api-CqmliOdH.js";import{i as se}from"./use-apply-config-theme-CYFG76sS.js";import{T as ce,b as v,c as le,n as ue,o as y,r as de,t as fe,v as b,w as pe}from"./typing-burst-detector-CMelnZH4.js";import{Q as me,Vn as x,a as he,gt as S,i as ge,mt as C,o as _e,x as w,zn as ve}from"./CodeMirrorPropInput-BGEORZYm.js";import{a as T,i as E}from"./constants-skills-Coq7kn_k.js";import{t as ye}from"./diagnostic-breadcrumb-Mg7sdCfQ.js";import{n as D}from"./perf-CYJlqBBt.js";import{m as be}from"./config-provider-Ay_xbGUl.js";import{$ as O,At as k,Ct as A,E as j,J as M,K as N,Mt as P,N as F,Nt as I,Tt as xe,X as L,at as R,b as z,et as B,ft as Se,g as V,l as H,lt as Ce,ot as U,pt as W,st as G,tt as K,ut as q,v as J,wt as Y}from"./dist-CoJBCixp.js";import{a as we,i as Te}from"./cm-theme-DpKmjLo0.js";import{i as Ee,t as X}from"./dist-W5hM-kQ3.js";import{i as Z,n as Q,o as De,r as Oe}from"./dist-kajsw8zD.js";import{o as ke,r as Ae}from"./selection-context-C-d7_McB.js";import{C as je,D as Me,t as Ne}from"./markdown-lint-BQVK9PNE.js";import{l as Pe}from"./lint-config-client-DT6tLnal.js";import{a as Fe,i as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve}from"./dist-DMhg0Xyd.js";import{n as He,t as Ue}from"./src-Cn-w9bM1.js";var $=e(h(),1),We=g();function Ge(){let e=m();return e===null?null:new Set(e.keys())}function Ke(e,t,n){let r=[],a=F(e);if(n!=null){let i=[];for(let{from:e,to:n}of t)a.iterate({from:e,to:n,enter(e){if(e.name===`InlineCode`||e.name===`FencedCode`)return i.push({from:e.from,to:e.to}),!1}});let o=(e,t)=>i.some(n=>e>=n.from&&t<=n.to);for(let{from:i,to:a}of t){let t=e.doc.sliceString(i,a);E.lastIndex=0;for(let e=E.exec(t);e!==null;e=E.exec(t)){let t=e[2];if(!T(t))continue;let a=i+(e.index??0)+e[1].length,s=a+t.length+1;o(a,s)||r.push(N.mark({class:n.has(t)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":t}}).range(a,s))}}}for(let{from:o,to:s}of t)a.iterate({from:o,to:s,enter(t){if(t.name!==`InlineCode`)return;let a=e.doc.sliceString(t.from,t.to),o=a.length-a.replace(/^`+/,``).length,s=a.length-a.replace(/`+$/,``).length,c=a.slice(o,a.length-s),l=/^\/([a-z0-9][a-z0-9-]{1,63})$/.exec(c)?.[1];if(l!==void 0&&T(l)&&n!=null)return r.push(N.mark({class:n.has(l)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":l}}).range(t.from+o,t.to-s)),!1;let u=i.exec(c);if(u)return r.push(N.mark({class:`cm-skill-path-link`,attributes:{"data-skill-path":u[1]}}).range(t.from+o,t.to-s)),!1}});return r.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),N.set(r)}function qe(e){let t=a(e);return t===null?[]:[L.fromClass(class{decorations;constructor(e){this.decorations=Ke(e.state,e.visibleRanges,Ge())}update(e){(e.docChanged||e.viewportChanged||F(e.startState)!==F(e.state))&&(this.decorations=Ke(e.view.state,e.view.visibleRanges,Ge()))}},{decorations:e=>e.decorations}),M.domEventHandlers({mousedown(n){let r=n.target?.closest?.(`[data-skill-ref]`),i=r instanceof HTMLElement?r.dataset.skillRef:void 0;if(i!==void 0){n.preventDefault();let e=m()?.get(i);return e===void 0?c():window.location.hash=d(i,e),!0}let a=n.target?.closest?.(`.cm-skill-path-link`),o=a instanceof HTMLElement?a.dataset.skillPath:void 0;return o===void 0?!1:(n.preventDefault(),window.location.hash=p(t,e,o),!0)}})]}var Je=N.line({attributes:{dir:`auto`}});function Ye(e){let t=new k;for(let n of e.visibleRanges)for(let r=n.from;r<=n.to;){let n=e.state.doc.lineAt(r);t.add(n.from,n.from,Je),r=n.to+1}return t.finish()}var Xe=L.fromClass(class{decorations;constructor(e){this.decorations=Ye(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=Ye(e.view))}},{decorations:e=>e.decorations}),Ze=[M.perLineTextDirection.of(!0),Xe],Qe=new Set([`Link`,`Image`,`HTMLTag`,`HTMLBlock`]),$e=`cm-lint-local-target`;function et(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function tt(e,t){let n=V(e,t+1,100);if(n){let e=n.resolveInner(t,1);for(;e;){if(Qe.has(e.name))return{from:e.from,to:e.to};e=e.parent}}return{from:t,to:t}}function nt(e){return e===`error`?`error`:e===`info`?`info`:`warning`}function rt(e,t){let n=e.doc,r=[];for(let i of t){if(i.source!==`links`)continue;let t=tt(e,et(n,i.range.start));r.push({from:t.from,to:Math.max(t.to,t.from),severity:nt(i.severity),message:v(i),source:`${i.source}/${i.code}`,markClass:$e})}return r}var it=P.define();function at(e){let t={findings:[]};return[Ie(e=>C()?rt(e.state,t.findings):[],{delay:300,needsRefresh:e=>e.transactions.some(e=>e.effects.some(e=>e.is(it)))}),L.define(n=>{let r=e=>{t.findings=e,n.dispatch({effects:it.of(null)}),Ve(n)},i=b(e,e=>{e.status===`loaded`&&r(e.findings)}),a=S(()=>r(t.findings));return{destroy(){i(),a()}}})]}function ot(e,t){return e.enabled?[Le(),Ie(async n=>ct(n.state.doc,await je(n.state.doc.toString(),e,t)),{delay:600})]:[]}function st(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function ct(e,t){let n=[];for(let r of t){let t=st(e,r.range.start),i=st(e,r.range.end),a={from:t,to:Math.max(i,t),severity:r.severity,message:r.message,source:`${r.source}/${r.code}`},o=lt(r);o&&(a.actions=[o]),n.push(a)}return n}function lt(e){let t=e.fixes;return!t||t.length===0?null:{name:`Fix`,apply(e){let n=e.state.doc;e.dispatch({changes:t.map(e=>({from:st(n,e.range.start),to:st(n,e.range.end),insert:e.newText})),userEvent:`input.complete`})}}}var ut=[q(),U(),G(),J(),B(),K(),xe.allowMultipleSelections.of(!0),j(),H(),Oe(),Q(),W(),O(),R(),Fe(),Ce.of([...Z,...X,...Be,...z,...De,...ze])],dt=N.mark({class:`cm-link-ref-broken`}),ft=/^\s{0,3}\[([^\]]+)\]:\s/,pt=/\[([^\]]*)\]\[([^\]]*)\]/g,mt=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function ht(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function gt(e){let t=[];return F(e).iterate({enter(e){if(mt.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function _t(e){let t=new Set,n=[],r=e.doc,i=gt(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if(ht(n.from,i))continue;let a=ft.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!ht(t.from,i)&&!ft.test(t.text))for(pt.lastIndex=0;;){let e=pt.exec(t.text);if(!e)break;let r=t.from+e.index;if(ht(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(dt.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),N.set(a)}var vt=I.define({create(e){return _t(e)},update(e,t){return t.docChanged?_t(t.state):e},provide:e=>M.decorations.from(e)}),yt=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,bt=N.mark({class:`cm-del`}),xt=N.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),St=N.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function Ct(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function wt(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(!_.test(t.text))return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(_.test(r.text))return{from:t.from,to:r.to}}return null}function Tt(e,t){let n=[],r=F(e),i=wt(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(bt.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=yt.exec(r.text),a=i?i[1].length:2,o=N.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=Ct(r.text),a=N.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(xt.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(St.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(St.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),N.set(n)}var Et=class{decorations;constructor(e){this.decorations=Tt(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||F(e.startState)!==F(e.state))&&(this.decorations=Tt(e.view.state,e.view.visibleRanges))}},Dt=L.fromClass(Et,{decorations:e=>e.decorations});function Ot(){return[Dt,vt]}function kt(e,t){let n=e.trackedOrigins;return n.has(t)?!0:t?n.has(t.constructor):!1}function At(e){let{docName:t,ytext:n,undoManager:r}=e,i=!1,a=!1,o=!1,s=(e,t)=>{i||kt(r,t.origin)||(a=!0)};return n.observe(s),{setSourceModeActive(e){if(!o&&e!==i){if(!e){i=!1,r.stopCapturing();return}a&&(r.clear(),D(`ok/source-undo/flip-clear`,{docName:t})),a=!1,i=!0}},destroy(){o||(o=!0,n.unobserve(s))}}}var jt=new WeakMap;function Mt(e){return L.define(t=>{let n=At(e);return jt.set(t,n),{destroy(){n.destroy()}}})}function Nt(e,t){let n=jt.get(e);if(!n)throw Error(`createSourceUndoFlipExtension is not installed on this EditorView`);n.setSourceModeActive(t)}var Pt=t(),Ft=P.define();function It(e,t){try{Nt(t.view,!1)}finally{try{u(t)}finally{x(e,t.view)}}}function Lt(e,t,n){let r=y(e.state.doc),i=r[t.index],a={docName:n,mode:`source`,index:t.index,sourceHeadingCount:r.length};if(!i)return ye(ue,{...a,outcome:`no-target`}),!1;let o=f(n,`outline`,()=>{e.dispatch({selection:Y.cursor(i.from),effects:M.scrollIntoView(i.from,{y:`start`})}),e.focus()});return ye(ue,{...a,outcome:o?`scrolled`:`declined`,targetLine:e.state.doc.lineAt(i.from).number}),o}function Rt(e,t,n,r){requestAnimationFrame(()=>{if(!n())return;let i=e.state.doc,a=Math.min(t.offset,i.length);f(r,`raw-mdx`,()=>{e.dispatch({selection:Y.cursor(a),effects:M.scrollIntoView(a,{y:`center`})}),e.focus()})})}function zt(e,t,n){let r=e.state.doc,i=Math.min(Math.max(t.line,1),r.lines),a=r.line(i),o=Math.min(a.from+Math.max(0,t.column-1),a.to);return f(n,`problems-row`,()=>{e.dispatch({selection:Y.cursor(o),effects:M.scrollIntoView(o,{y:`start`})}),e.focus()})}function Bt(e){let t=(0,We.c)(57),{docName:i,ytext:a,provider:c,placeholder:u,isSourceModeActive:d}=e,f=(0,$.useRef)(null),p=(0,$.useRef)(null),[m,h]=(0,$.useState)(null);if(m)throw m;let{resolvedTheme:g}=oe(),{_}=ae(),v;t[0]===_?v=t[1]:(v=_({id:`xbdtfY`}),t[0]=_,t[1]=v);let y=v,{merged:b}=se(),me=(0,$.useRef)(d),x=b?.editor?.wordWrap??!0,{data:S}=Pe(i),C;t[2]!==S?.effective||t[3]!==b?(C=S?.effective??(b?.contentRules?Me(b.contentRules):Ne),t[2]=S?.effective,t[3]=b,t[4]=C):C=t[4];let w=C,T;t[5]===w?T=t[6]:(T=JSON.stringify(w),t[5]=w,t[6]=T);let E=T,D=(0,$.useRef)(null),O;t[7]!==y||t[8]!==i||t[9]!==d||t[10]!==w||t[11]!==u||t[12]!==c||t[13]!==g||t[14]!==x||t[15]!==a?(O=()=>{let e=f.current;if(!e)return;let t=c.configuration.name??``,o,l=Ht;try{o=n({docName:t,container:e,sizeStats:{viewCount:0,bytes:a.length},factory:e=>{let n=null,o=new be(a);try{let ee=re({ydoc:c.document,ytext:a,docName:t}),d=new A,f=new A,ne=new A,p=new A,m=new M({state:xe.create({doc:a.toString(),extensions:[Te(y),ut,Ze,Re({scrollToMatch:e=>te(t,`find-match`)?M.scrollIntoView(e,{y:`start`}):Ft.of(null)}),Ce.of([Ee]),Ue(a,c.awareness,{undoManager:o}),Ce.of(He),Mt({docName:t,ytext:a,undoManager:o}),...ge({themeCompartment:d,resolvedTheme:g,ydoc:c.document,wordWrapCompartment:f,wordWrap:x,currentDocName:t}),Ot(),qe(t),s(),p.of(ot(w,i)),at(i),ee,M.updateListener.of(e=>{ie(e)&&r(t)}),M.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,pe(t,`source`,ce(e.view)),Ae(t,`source`,ke(e.view,t))},120))}),ne.of(Se(u??``)),M.theme({"&":{height:`100%`}}),M.scrollMargins.of(Vt)]}),parent:e});pe(t,`source`,ce(m)),Ae(t,`source`,ke(m,t));let h=m.contentDOM;return h.addEventListener(`keydown`,l),h.addEventListener(`paste`,l),h.addEventListener(`drop`,l),h.addEventListener(`cut`,l),{view:m,ydoc:c.document,ytext:a,provider:c,undoManager:o,themeCompartment:d,wordWrapCompartment:f,placeholderCompartment:ne,lintCompartment:p}}catch(e){let t=e;throw o.destroy(),t}}}),D.current=o,p.current=o.view,Nt(o.view,d),ve(i,o.view,`sourceEditor`),fe()&&o.view.focus()}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),D.current=null,p.current=null,h(t instanceof Error?t:Error(String(t)))}return()=>{let e=D.current;D.current=null,p.current=null,e&&It(i,e)}},t[7]=y,t[8]=i,t[9]=d,t[10]=w,t[11]=u,t[12]=c,t[13]=g,t[14]=x,t[15]=a,t[16]=O):O=t[16];let k;t[17]!==c||t[18]!==a?(k=[a,c],t[17]=c,t[18]=a,t[19]=k):k=t[19],(0,$.useEffect)(O,k);let j,N;t[20]===d?(j=t[21],N=t[22]):(j=()=>{me.current=d;let e=p.current;e&&Nt(e,d)},N=[d],t[20]=d,t[21]=j,t[22]=N),(0,$.useEffect)(j,N);let P,F;t[23]===i?(P=t[24],F=t[25]):(P=()=>{},F=[i],t[23]=i,t[24]=P,t[25]=F),(0,$.useEffect)(P,F);let I,L;t[26]===g?(I=t[27],L=t[28]):(I=()=>{let e=D.current;e&&e.view.dispatch({effects:e.themeCompartment.reconfigure(g===`dark`?he:_e)})},L=[g],t[26]=g,t[27]=I,t[28]=L),(0,$.useEffect)(I,L);let R,z;t[29]===x?(R=t[30],z=t[31]):(R=()=>{let e=D.current;e&&e.view.dispatch({effects:e.wordWrapCompartment.reconfigure(x?M.lineWrapping:[])})},z=[x],t[29]=x,t[30]=R,t[31]=z),(0,$.useEffect)(R,z);let B,V;t[32]===u?(B=t[33],V=t[34]):(B=()=>{let e=D.current;e&&e.view.dispatch({effects:e.placeholderCompartment.reconfigure(Se(u??``))})},V=[u],t[32]=u,t[33]=B,t[34]=V),(0,$.useEffect)(B,V);let H,U;t[35]===y?(H=t[36],U=t[37]):(H=()=>{let e=D.current;e&&we(e.view,y)},U=[y],t[35]=y,t[36]=H,t[37]=U),(0,$.useEffect)(H,U);let W;t[38]!==i||t[39]!==w?(W=()=>{let e=D.current;e&&e.view.dispatch({effects:e.lintCompartment.reconfigure(ot(w,i))})},t[38]=i,t[39]=w,t[40]=W):W=t[40];let G;t[41]===E?G=t[42]:(G=[E],t[41]=E,t[42]=G),(0,$.useEffect)(W,G);let K,q;t[43]!==i||t[44]!==d?(K=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==i||t.mode!==`source`||!d)return;let n=p.current;if(!n){ye(ue,{docName:i,mode:`source`,index:t.index,outcome:`no-view`});return}Lt(n,t,i)&&t.onNavigated?.(n.contentDOM),o(i)};return window.addEventListener(de,e),()=>window.removeEventListener(de,e)},q=[i,d],t[43]=i,t[44]=d,t[45]=K,t[46]=q):(K=t[45],q=t[46]),(0,$.useEffect)(K,q);let J,Y;t[47]!==i||t[48]!==d?(J=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==i||!d)return;let n=p.current;n&&zt(n,t,i)&&(o(i),t.onNavigated?.(n.contentDOM))};return window.addEventListener(le,e),()=>window.removeEventListener(le,e)},Y=[i,d],t[47]=i,t[48]=d,t[49]=J,t[50]=Y):(J=t[49],Y=t[50]),(0,$.useEffect)(J,Y);let X,Z;t[51]!==i||t[52]!==d||t[53]!==c?(X=()=>{if(!d)return;let e=p.current;if(!e)return;let t=ee(i);if(!t)return;if(t.kind!==`selection-offset`){ne(i),t.kind===`outline`?Lt(e,t.detail,i)&&t.detail.onNavigated?.(e.contentDOM):t.kind===`lint`?zt(e,t.detail,i)&&t.detail.onNavigated?.(e.contentDOM):t.kind===`raw-mdx`&&Rt(e,t.detail,()=>me.current,i);return}let n=!1,r=null;return queueMicrotask(()=>{if(n)return;let t=ee(i);t?.kind===`selection-offset`&&(r=l({view:e,docName:i,navigation:t,ydoc:c.document,transition:{from:`wysiwyg`,to:`source`}}),r&&ne(i))}),()=>{n=!0,r?.cancel(`mode-flip`)}},Z=[i,d,c],t[51]=i,t[52]=d,t[53]=c,t[54]=X,t[55]=Z):(X=t[54],Z=t[55]),(0,$.useEffect)(X,Z);let Q;return t[56]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,Pt.jsx)(`div`,{ref:f,className:`source-editor h-full pb-3`}),t[56]=Q):Q=t[56],Q}function Vt(){return{top:w()}}function Ht(){return me()}export{Bt as SourceEditor,Rt as applyRawMdxNavigation};