@opensumi/cli-engine 3.9.1-next-1755767441.0 → 3.9.1-next-1756901517.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.
@@ -33520,7 +33520,7 @@ your modifications. Are you sure to regenerate?`,"aiNative.resolve.conflict.mess
33520
33520
 
33521
33521
  \u662F\u5426\u8981\u9000\u51FA?`,"authentication.signOutMessageSimple":"\u662F\u5426\u8981\u9000\u51FA {0}?","authentication.useOtherAccount":"\u4F7F\u7528\u5176\u4ED6\u8D26\u6237\u767B\u5F55","authentication.selectAccount":"\u6269\u5C55 '{0}' \u5C06\u8981\u8BBF\u95EE {1} \u8D26\u6237","authentication.getSessionPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u8D26\u6237\u7ED9 '{0}' \u4F7F\u7528","authentication.confirmAuthenticationAccess":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 '{2}' \u8BBF\u95EE {1}","authentication.confirmLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u767B\u5F55","authentication.confirmReLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u518D\u6B21\u767B\u5F55","authentication.signInRequests":"\u767B\u5F55 {0}","authentication.signOut":"\u9000\u51FA {0}","authentication.noAccounts":"\u76EE\u524D\u6CA1\u6709\u767B\u5F55\u4EFB\u4F55\u8D26\u6237","authentication.signedOut":"\u6210\u529F\u9000\u51FA","refactoring-changes.ask.1.create":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.copy":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.move":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.delete":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.create":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.copy":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.move":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.delete":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.msg.showPreview":"\u663E\u793A\u9884\u89C8","refactoring-changes.msg.skipChanges":"\u8DF3\u8FC7\u66F4\u6539","keyboard.chooseKeyboardLayout":"\u9009\u62E9\u5E03\u5C40\u6587\u4EF6\u914D\u7F6E","keyboard.autoDetect.label":"\u81EA\u52A8\u68C0\u6D4B","keyboard.autoDetect.description":"\uFF08\u5F53\u524D\uFF1A'{0} '\uFF09","keyboard.autoDetect.detail":"\u5C1D\u8BD5\u901A\u8FC7\u6D4F\u89C8\u5668\u53CA\u6309\u952E\u4FE1\u606F\u8FDB\u884C\u5E03\u5C40\u81EA\u52A8\u68C0\u6D4B","editor.configuration.suggest.filterGraceful":"\u63A7\u5236\u5BF9\u5EFA\u8BAE\u7684\u7B5B\u9009\u548C\u6392\u5E8F\u662F\u5426\u8003\u8651\u5C0F\u7684\u62FC\u5199\u9519\u8BEF\u3002","editor.configuration.suggest.insertMode":"\u63A7\u5236\u63A5\u53D7\u8865\u5168\u65F6\u662F\u5426\u8986\u76D6\u5355\u8BCD\u3002\u8BF7\u6CE8\u610F\uFF0C\u8FD9\u53D6\u51B3\u4E8E\u6269\u5C55\u9009\u62E9\u4F7F\u7528\u6B64\u529F\u80FD\u3002","editor.configuration.suggest.insertMode.insert":"\u63D2\u5165\u5EFA\u8BAE\u800C\u4E0D\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.insertMode.replace":"\u63D2\u5165\u5EFA\u8BAE\u5E76\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.localityBonus":"\u63A7\u5236\u6392\u5E8F\u65F6\u662F\u5426\u9996\u9009\u5149\u6807\u9644\u8FD1\u7684\u5B57\u8BCD\u3002","editor.configuration.suggest.maxVisibleSuggestions.dep":"\u6B64\u8BBE\u7F6E\u5DF2\u5F03\u7528\u3002\u73B0\u5728\u53EF\u4EE5\u8C03\u6574\u5EFA\u8BAE\u5C0F\u7EC4\u4EF6\u7684\u5927\u5C0F\u3002","editor.configuration.suggest.preview":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u9884\u89C8\u5EFA\u8BAE\u7ED3\u679C\u3002","editor.configuration.suggest.shareSuggestSelections":"\u63A7\u5236\u662F\u5426\u5728\u591A\u4E2A\u5DE5\u4F5C\u533A\u548C\u7A97\u53E3\u95F4\u5171\u4EAB\u8BB0\u5FC6\u7684\u5EFA\u8BAE\u9009\u9879(\u9700\u8981 `#editor.suggestSelection#`)\u3002","editor.configuration.suggest.showIcons":"\u63A7\u5236\u662F\u5426\u5728\u5EFA\u8BAE\u4E2D\u663E\u793A\u6216\u9690\u85CF\u56FE\u6807\u3002","editor.configuration.suggest.showInlineDetails":"\u63A7\u5236\u5EFA\u8BAE\u8BE6\u7EC6\u4FE1\u606F\u662F\u968F\u6807\u7B7E\u4E00\u8D77\u663E\u793A\u8FD8\u662F\u4EC5\u663E\u793A\u5728\u8BE6\u7EC6\u4FE1\u606F\u5C0F\u7EC4\u4EF6\u4E2D","editor.configuration.suggest.showStatusBar":"\u63A7\u5236\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u5E95\u90E8\u7684\u72B6\u6001\u680F\u7684\u53EF\u89C1\u6027\u3002","editor.configuration.suggest.snippetsPreventQuickSuggestions":"\u63A7\u5236\u6D3B\u52A8\u4EE3\u7801\u6BB5\u662F\u5426\u963B\u6B62\u5FEB\u901F\u5EFA\u8BAE\u3002","editor.configuration.suggestFontSize":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u5B57\u53F7\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.fontSize#` \u7684\u503C\u3002","editor.configuration.suggestLineHeight":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u884C\u9AD8\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.lineHeight#` \u7684\u503C\u3002\u6700\u5C0F\u503C\u4E3A 8\u3002","editor.configuration.suggestOnTriggerCharacters":"\u63A7\u5236\u5728\u952E\u5165\u89E6\u53D1\u5B57\u7B26\u540E\u662F\u5426\u81EA\u52A8\u663E\u793A\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnterSmart":"\u4EC5\u5728\u5EFA\u8BAE\u505A\u51FA\u6587\u672C\u66F4\u6539\u65F6\uFF0C\u624D\u4F7F\u7528 `Enter` \u63A5\u53D7\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnter":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728 `Tab` \u952E\u4E4B\u5916\uFF0C\u8FD8\u4F7F\u7528 `Enter` \u952E\u6765\u63A5\u53D7\u5EFA\u8BAE\u3002\u8FD9\u6709\u52A9\u4E8E\u907F\u514D\u5728\u63D2\u5165\u65B0\u884C\u6216\u63A5\u53D7\u5EFA\u8BAE\u4E4B\u95F4\u7684\u6B67\u4E49\u3002","editor.configuration.acceptSuggestionOnCommitCharacter":"\u63A7\u5236\u662F\u5426\u5728\u4F7F\u7528\u63D0\u4EA4\u5B57\u7B26\u65F6\u63A5\u53D7\u5EFA\u8BAE\u3002\u4F8B\u5982\uFF0C\u5728 JavaScript \u4E2D\uFF0C\u5206\u53F7 (`;`) \u662F\u4E00\u4E2A\u63D0\u4EA4\u5B57\u7B26\uFF0C\u53EF\u4EE5\u63A5\u53D7\u4E00\u4E2A\u5EFA\u8BAE\u5E76\u952E\u5165\u8BE5\u5B57\u7B26\u3002","editor.configuration.snippetSuggestions.top":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u9876\u90E8\u3002","editor.configuration.snippetSuggestions.bottom":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u5E95\u90E8\u3002","editor.configuration.snippetSuggestions.inline":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u6DF7\u5408\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u4E2D\u95F4\u3002","editor.configuration.snippetSuggestions.none":"\u4E0D\u5C55\u793A\u4EE3\u7801\u7247\u6BB5\u5EFA\u8BAE\u3002","editor.configuration.snippetSuggestions":"\u63A7\u5236\u4EE3\u7801\u7247\u6BB5\u662F\u5426\u4E0E\u5176\u4ED6\u5EFA\u8BAE\u4E00\u540C\u663E\u793A\u4EE5\u53CA\u5B83\u4EEC\u7684\u6392\u5E8F\u65B9\u5F0F\u3002","editor.configuration.wordBasedSuggestions":"\u63A7\u5236\u662F\u5426\u6839\u636E\u6587\u6863\u4E2D\u7684\u5B57\u8BCD\u8BA1\u7B97\u81EA\u52A8\u8865\u5168\u5217\u8868\u3002","editor.configuration.suggestSelection":"\u63A7\u5236\u5728\u5EFA\u8BAE\u5217\u8868\u4E2D\u5982\u4F55\u9884\u5148\u9009\u62E9\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.first":"\u59CB\u7EC8\u9009\u62E9\u7B2C\u4E00\u4E2A\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.recentlyUsed":"\u9009\u62E9\u6700\u8FD1\u7684\u5EFA\u8BAE\uFF0C\u9664\u975E\u8FDB\u4E00\u6B65\u952E\u5165\u9009\u62E9\u5176\u4ED6\u9879\u3002\u4F8B\u5982 `console. -> console.log`\uFF0C\u56E0\u4E3A\u6700\u8FD1\u8865\u5168\u8FC7 `log`\u3002","editor.configuration.suggestSelection.recentlyUsedByPrefix":"\u6839\u636E\u4E4B\u524D\u8865\u5168\u8FC7\u7684\u5EFA\u8BAE\u7684\u524D\u7F00\u6765\u8FDB\u884C\u9009\u62E9\u3002\u4F8B\u5982\uFF0C`co -> console`\u3001`con -> const`\u3002","editor.configuration.tabCompletion":"\u542F\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.off":"\u7981\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.on":"\u5728\u6309\u4E0B Tab \u952E\u65F6\u8FDB\u884C Tab \u8865\u5168\uFF0C\u5C06\u63D2\u5165\u6700\u4F73\u5339\u914D\u5EFA\u8BAE\u3002","editor.configuration.tabCompletion.onlySnippets":'\u5728\u524D\u7F00\u5339\u914D\u65F6\u8FDB\u884C Tab \u8865\u5168\u3002\u5728 "quickSuggestions" \u672A\u542F\u7528\u65F6\u4F53\u9A8C\u6700\u597D\u3002',"editor.configuration.editor.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.editor.guides.bracketPairsHorizontal":"\u63A7\u5236\u662F\u5426\u542F\u7528\u6C34\u5E73\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.renderLineHighlight":"\u63A7\u5236\u7F16\u8F91\u5668\u7684\u5F53\u524D\u884C\u8FDB\u884C\u9AD8\u4EAE\u663E\u793A\u7684\u65B9\u5F0F\u3002","editor.configuration.renderLineHighlight.all":"\u540C\u65F6\u7A81\u51FA\u663E\u793A\u5BFC\u822A\u7EBF\u548C\u5F53\u524D\u884C\u3002","editor.configuration.renderLineHighlightOnlyWhenFocus":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u4EC5\u5728\u7126\u70B9\u5728\u7F16\u8F91\u5668\u65F6\u7A81\u51FA\u663E\u793A\u5F53\u524D\u884C\u3002","editor.configuration.codeLens":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A CodeLens\u3002","editor.configuration.suggest.showClasss":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7C7B\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showColors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstants":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5E38\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstructors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6784\u9020\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showCustomcolors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u81EA\u5B9A\u4E49\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showDeprecated":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5DF2\u542F\u7528\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEnumMembers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "enumMember" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showEnums":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u679A\u4E3E\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEvents":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u4E8B\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFields":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5B57\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFiles":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFolders":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u5939\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFunctions":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showInterfaces":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u63A5\u53E3\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showIssues":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u95EE\u9898"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showKeywords":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5173\u952E\u5B57\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showMethods":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u65B9\u6CD5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showModules":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6A21\u5757\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showOperators":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u64CD\u4F5C\u7B26\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showPropertys":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5C5E\u6027\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showReferences":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53C2\u8003\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showSnippets":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7247\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showStructs":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7ED3\u6784\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTexts":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u672C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTypeParameters":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "typeParameter" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showUnits":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5355\u4F4D\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showUsers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u7528\u6237"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showValues":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u503C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showVariables":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53D8\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.maxVisibleSuggestions":"\u63A7\u5236 IntelliSense \u5728\u663E\u793A\u6EDA\u52A8\u6761\u4E4B\u524D\u5C06\u663E\u793A\u7684\u5EFA\u8BAE\u6570\u91CF\uFF08\u6700\u591A 15 \u4E2A\uFF09\u3002","editor.configuration.suggest.details.visible":"\u63A7\u5236\u7F16\u8F91\u5668\u4EE3\u7801\u8865\u5168\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u8BE6\u60C5\u4FE1\u606F","editor.configuration.suggest.filtered":"\u63A7\u5236\u662F\u5426\u5E94\u4ECE IntelliSense \u4E2D\u8FC7\u6EE4\u6389\u67D0\u4E9B\u5EFA\u8BAE\u7C7B\u578B\u3002\u53EF\u4EE5\u5728\u6B64\u5904\u627E\u5230\u4E00\u4EFD\u5EFA\u8BAE\u7C7B\u578B\u5217\u8868: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions.","editor.configuration.suggest.filtered.method":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `method` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.function":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `function` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constructor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constructor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.field":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `field` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.variable":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `variable` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.class":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `class` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.struct":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `struct` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.interface":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `interface` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.module":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `module` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.property":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `property` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.event":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `event` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.operator":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `operator` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.unit":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `unit` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.value":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `value` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constant":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constant` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enum":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enum` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enumMember":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enumMember` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.keyword":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `keyword` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.text":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `text` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.color":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `color` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.file":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `file` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.reference":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `reference` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.customcolor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `customcolor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.folder":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `folder` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.typeParameter":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `typeParameter` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.snippet":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `snippet` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.editor.gotoLocation.multiple":'\u63A7\u5236 "\u8F6C\u5230" \u547D\u4EE4\uFF08\u4F8B\u5982\u8F6C\u5230\u5B9A\u4E49\uFF09\u5728\u5B58\u5728\u591A\u4E2A\u76EE\u6807\u4F4D\u7F6E\u65F6\u7684\u884C\u4E3A\u3002',"editor.configuration.gotoLocation.multiple.peek":"\u5728\u901F\u89C8\u89C6\u56FE(Peek View)\u4E2D\u663E\u793A\u7ED3\u679C\u3002(\u9ED8\u8BA4)","editor.configuration.gotoLocation.multiple.gotoAndPeek":"\u8F6C\u5230\u4E3B\u7ED3\u679C\u5E76\u663E\u793A\u901F\u89C8\u89C6\u56FE(Peek View)\u3002","editor.configuration.gotoLocation.multiple.goto":"\u8F6C\u5230\u4E3B\u7ED3\u679C\uFF0C\u5E76\u5BF9\u5176\u4ED6\u7ED3\u679C\u542F\u7528\u65E0\u901F\u89C8\u5BFC\u822A","editor.configuration.experimental.stickyScroll.enabled":"\u5728\u7F16\u8F91\u5668\u9876\u90E8\u7684\u6EDA\u52A8\u8FC7\u7A0B\u4E2D\u663E\u793A\u5D4C\u5957\u7684\u5F53\u524D\u4F5C\u7528\u57DF\u3002","editor.configuration.maxTokenizationLineLength":"\u7531\u4E8E\u6027\u80FD\u539F\u56E0\uFF0C\u8D85\u8FC7\u8FD9\u4E2A\u957F\u5EA6\u7684\u884C\u5C06\u4E0D\u4F1A\u88AB\u6807\u8BC6\u3002","editor.configuration.codeActionsOnSave.organizeImports":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u6574\u7406\u5BFC\u5165\uFF08Import\uFF09\u8BED\u53E5\u3002","editor.configuration.codeActionsOnSave.fixAll":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u8FD0\u884C\u81EA\u52A8\u4FEE\u590D\u64CD\u4F5C\u3002","editor.configuration.codeActionsOnSave":"\u5728\u4FDD\u5B58\u65F6\u8FD0\u884C\u7684\u4EE3\u7801\u64CD\u4F5C\u7C7B\u578B","editor.configuration.codeActionsOnSaveTimeout":"\u5728\u6B64\u8D85\u65F6\u65F6\u95F4(\u6BEB\u79D2)\u4E4B\u540E\u4EE3\u7801\u64CD\u4F5C\u5C06\u88AB\u53D6\u6D88\u3002","editor.configuration.codeActionsOnSaveNotification":"\u4EE3\u7801\u64CD\u4F5C\u6267\u884C\u65F6\u662F\u5426\u5C55\u793A\u901A\u77E5\u4FE1\u606F","editor.configuration.quickSuggestionsDelay":"\u63A7\u5236\u663E\u793A\u667A\u80FD\u63D0\u793A\u7684\u5EF6\u8FDF\u65F6\u957F (\u6BEB\u79D2)\u3002","editor.configuration.tabSize":"\u63A7\u5236 Tab \u7F29\u8FDB\u7B49\u4E8E\u7684\u7A7A\u683C\u6570\u3002\u82E5\u542F\u7528 `#editor.detectIndentation#`\uFF0C\u8BE5\u8BBE\u7F6E\u53EF\u80FD\u4F1A\u88AB\u8986\u76D6","editor.configuration.fontWeight":'\u63A7\u5236\u5B57\u4F53\u7C97\u7EC6\uFF0C\u63A5\u6536 "normal" \u548C "bold" \u5173\u952E\u8BCD\u6216\u8005 1 \u5230 1000 \u6570\u503C\u3002',"editor.configuration.largeFileSize":"\u63A7\u5236\u8D85\u5927\u6587\u4EF6\u7684\u81EA\u5B9A\u4E49\u4F53\u79EF\u3002(\u5355\u4F4D\uFF1AB)","editor.configuration.preferredFormatter":"\u914D\u7F6E\u4F18\u5148\u4F7F\u7528\u7684\u683C\u5F0F\u5316\u5668\u3002","editor.configuration.wrapTab":"\u63A7\u5236\u5F53\u7F16\u8F91\u5668 Tab \u8D85\u8FC7\u53EF\u7528\u7A7A\u95F4\u65F6\uFF0C\u662F\u5426\u4F7F\u7528\u6362\u884C\u6765\u4EE3\u66FF\u6EDA\u52A8\u6A21\u5F0F\u3002","editor.configuration.enablePreviewFromCodeNavigation":"\u63A7\u5236\u5F53\u4EE3\u7801\u5BFC\u822A\u4ECE\u5176\u51FA\u53D1\u65F6\uFF0C\u7F16\u8F91\u5668\u662F\u5426\u4ECD\u5904\u4E8E\u9884\u89C8\u6A21\u5F0F\u3002","editor.configuration.formatOnSaveTimeout":"\u63A7\u5236\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.formatOnSave#` \u542F\u7528\u65F6\u751F\u6548\u3002","editor.configuration.inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","editor.configuration.inlineSuggest.showToolbar":"\u63A7\u5236\u4F55\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.always":"\u6BCF\u5F53\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u65F6\uFF0C\u5C31\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.onHover":"\u5C06\u9F20\u6807\u60AC\u505C\u5728\u5185\u8054\u5EFA\u8BAE\u4E0A\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.never":"\u6C38\u4E0D\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.hover.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u63D0\u793A\u3002","editor.configuration.hover.delay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u663E\u793A\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002","editor.configuration.hover.sticky":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u662F\u5426\u5728\u9F20\u6807\u60AC\u505C\u65F6\u4FDD\u6301\u53EF\u89C1\u3002","editor.configuration.hover.hidingDelay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u9690\u85CF\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u9700\u8981 `editor.hover.sticky` \u8BBE\u7F6E\u4E3A true \u65F6\u751F\u6548\u3002","editor.configuration.hover.above":"\u4F18\u5148\u663E\u793A\u4EE3\u7801\u63D0\u793A\u5728\u884C\u4E0A\u65B9\uFF0C\u5982\u679C\u884C\u6709\u7A7A\u95F4\u3002","editor.configuration.autoSave":"\u63A7\u5236\u5982\u4F55\u81EA\u52A8\u4FDD\u5B58\u6587\u4EF6\u3002","editor.configuration.formatOnSave":"\u5728\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u6587\u4EF6","editor.configuration.formatOnType":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5728\u952E\u5165\u540E\u81EA\u52A8\u683C\u5F0F\u5316\u8BE5\u884C\u3002","editor.configuration.formatOnPaste":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u81EA\u52A8\u683C\u5F0F\u5316\u7C98\u8D34\u7684\u5185\u5BB9\u3002\u9700\u8981\u5F53\u524D\u6587\u4EF6\u6709\u4E00\u4E2A\u683C\u5F0F\u5316\u5DE5\u5177\u5E76\u4E14\u8BE5\u683C\u5F0F\u5316\u683C\u5C40\u5FC5\u987B\u80FD\u591F\u5728\u6587\u6863\u4E2D\u683C\u5F0F\u5316\u4E00\u4E2A\u8303\u56F4\u3002","editor.configuration.autoIndent":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728\u7528\u6237\u952E\u5165\u3001\u7C98\u8D34\u6216\u79FB\u52A8\u884C\u65F6\u81EA\u52A8\u8C03\u6574\u7F29\u8FDB\u3002\u5FC5\u987B\u63D0\u4F9B\u5E26\u6709\u8BE5\u8BED\u8A00\u7F29\u8FDB\u89C4\u5219\u7684\u6269\u5C55\u3002","editor.configuration.autoSaveDelay":"\u63A7\u5236\u81EA\u52A8\u4FDD\u5B58\u7684\u5EF6\u8FDF\u65F6\u957F\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.autoSave#` \u8BBE\u7F6E\u4E3A\u201C\u7F16\u8F91\u540E\u81EA\u52A8\u4FDD\u5B58\u201D\u65F6\u751F\u6548\u3002","editor.configuration.askIfDiff":"\u4FDD\u5B58\u6587\u4EF6\u65F6\u5982\u679C\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u8F83\u65B0\uFF0C\u8FDB\u884C\u63D0\u793A\u624B\u52A8\u89E3\u51B3\u4FDD\u5B58\u51B2\u7A81\u3002","editor.configuration.forceReadOnly":"\u662F\u5426\u542F\u7528 \u53EA\u8BFB\u6A21\u5F0F","editor.configuration.bracketPairColorization.enabled":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u7740\u8272\u3002\u4F7F\u7528 \u201Cworkbench.colorCustomizations\u201D \u66FF\u4EE3\u62EC\u53F7\u7A81\u51FA\u663E\u793A\u989C\u8272\u3002","editor.configuration.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.mouseBackForwardToNavigate":"\u5141\u8BB8\u4F7F\u7528\u9F20\u6807\u6309\u94AE 4 \u548C 5 \u6765\u6267\u884C\u547D\u4EE4\u201CGo Back\u201D\u548C\u201CGo Forward\u201D\u3002","editor.configuration.previewMode":"\u4F7F\u7528\u9884\u89C8\u6A21\u5F0F\u6253\u5F00","editor.configuration.tokenColorCustomizations":"\u8986\u76D6\u5F53\u524D\u6240\u9009\u989C\u8272\u4E3B\u9898\u4E2D\u7684\u7F16\u8F91\u5668\u989C\u8272\u548C\u5B57\u4F53\u6837\u5F0F","editor.configuration.workbench.editorAssociations":'\u5C06 glob \u6A21\u5F0F\u914D\u7F6E\u5230\u7F16\u8F91\u5668(\u4F8B\u5982 `"*\u5341\u516D\u8FDB\u5236": "hexEditor.hexEdit"`)\u3002\u8FD9\u4E9B\u4F18\u5148\u987A\u5E8F\u9AD8\u4E8E\u9ED8\u8BA4\u884C\u4E3A\u3002',"editor.configuration.guides.indentation":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u663E\u793A\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.guides.highlightActiveIndentation":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u7F16\u8F91\u5668\u4E2D\u6D3B\u52A8\u7684\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.trimAutoWhitespace":"\u5220\u9664\u81EA\u52A8\u63D2\u5165\u7684\u5C3E\u968F\u7A7A\u767D\u7B26\u53F7\u3002","editor.configuration.unicodeHighlight.ambiguousCharacters":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u53EF\u80FD\u4E0E\u57FA\u672C ASCII \u5B57\u7B26\u6DF7\u6DC6\u7684\u5B57\u7B26\uFF0C\u4F46\u5F53\u524D\u7528\u6237\u533A\u57DF\u8BBE\u7F6E\u4E2D\u5E38\u89C1\u7684\u5B57\u7B26\u9664\u5916\u3002","editor.configuration.lightbulb.enabled":"\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.off":"\u7981\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.onCode":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.on":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u6216\u5728\u7A7A\u7684\u884C\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","diffEditor.configuration.renderSideBySide":"\u63A7\u5236\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u663E\u793A\u65B9\u5F0F\u3002","diffEditor.configuration.ignoreTrimWhitespace":"\u542F\u7528\u540E\uFF0C\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u524D\u5BFC\u548C\u5C3E\u968F\u7A7A\u767D\u5B57\u7B26\u5C06\u4F1A\u5FFD\u7565","diffEditor.action.toggleCollapseUnchangedRegions":"\u6298\u53E0\u672A\u66F4\u6539\u7684\u4EE3\u7801\u533A\u57DF","multiDiffEditor.action.collapseFiles":"\u6298\u53E0\u6240\u6709\u6587\u4EF6","multiDiffEditor.action.expandFiles":"\u5C55\u5F00\u6240\u6709\u6587\u4EF6","inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","view.component.renderedError":"\u89C6\u56FE\u7EC4\u4EF6\u6E32\u67D3\u5F02\u5E38","view.component.tryAgain":"\u91CD\u65B0\u52A0\u8F7D","test.title":"\u6D4B\u8BD5\u7BA1\u7406\u5668","test.result.runFinished":"\u6D4B\u8BD5\u8FD0\u884C\u5B8C\u6210\u4E8E {0}","test.task.unnamed":"\u672A\u547D\u540D\u4EFB\u52A1","test.results":"\u6D4B\u8BD5\u7ED3\u679C","menu.missing.command":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4\u4E0D\u5B58\u5728\uFF1A{1}","menu.missing.altCommand":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4(altCommand)\u4E0D\u5B58\u5728\uFF1A{1}","menu.dupe.command":"\u83DC\u5355{0} command({1}) \u548C alt({2}) \u6CE8\u518C\u91CD\u590D","command.category.developerTools":"\u5F00\u53D1\u4EBA\u5458\u5DE5\u5177","connection.start.rtt":"\u67E5\u770B\u901A\u4FE1\u5EF6\u8FDF","connection.stop.rtt":"\u5173\u95ED\u901A\u4FE1\u5EF6\u8FDF\u68C0\u67E5","debug.terminal.label":"\u521B\u5EFA Javascript Debug Terminal","debug.terminal.title":"\u8C03\u8BD5\u8FDB\u7A0B","workbench.action.tasks.runTask":"\u8FD0\u884C\u4EFB\u52A1","workbench.action.tasks.reRunTask":"\u6267\u884C\u4E0A\u6B21\u8FD0\u884C\u7684\u4EFB\u52A1","workbench.action.tasks.restartTask":"\u91CD\u65B0\u5F00\u59CB\u8FD0\u884C\u4E2D\u7684\u4EFB\u52A1","workbench.action.tasks.terminate":"\u7EC8\u6B62\u4EFB\u52A1","workbench.action.tasks.showTasks":"\u5C55\u793A\u4EFB\u52A1","workbench.action.tasks.showLog":"\u5C55\u793A\u4EFB\u52A1\u65E5\u5FD7","task.contribute":"\u8D21\u732E","task.cannotFindTask":"\u672A\u627E\u5230 {0} \u7684\u4EFB\u52A1\uFF0C\u6309\u56DE\u8F66\u952E\u8FD4\u56DE","comment.reply.count":"{0} \u4E2A\u8BC4\u8BBA","comment.reply.lastReply":"\u6700\u540E\u7531 {0} \u8BC4\u8BBA","walkthroughs.welcome":"\u6B22\u8FCE\u4F7F\u7528","walkthroughs.get.started":"\u6253\u5F00 `\u5165\u95E8` \u6F14\u793A","mergeEditor.reset":"\u91CD\u7F6E","mergeEditor.workbench.tab.name":"\u6B63\u5728\u5408\u5E76: {0}","mergeEditor.conflict.action.apply.confirm.title":"\u5F53\u524D\u6587\u4EF6\u8FD8\u6709\u672A\u5904\u7406\u7684\u51B2\u7A81\u6216\u53D8\u66F4\uFF0C\u662F\u5426\u5E94\u7528\u5E76\u4FDD\u5B58\u66F4\u6539\uFF1F","mergeEditor.conflict.action.apply.confirm.continue":"\u7EE7\u7EED\u5408\u5E76","mergeEditor.conflict.action.apply.confirm.complete":"\u786E\u8BA4\u4FDD\u5B58\u5E76\u66F4\u6539","mergeEditor.action.button.apply":"\u5E94\u7528\u66F4\u6539","mergeEditor.action.button.apply-and-stash":"\u5E94\u7528\u5E76\u6682\u5B58","mergeEditor.action.button.accept.left":"\u63A5\u53D7\u5DE6\u8FB9","mergeEditor.action.button.accept.right":"\u63A5\u53D7\u53F3\u8FB9","mergeEditor.open.3way":"3-way \u7F16\u8F91\u5668","mergeEditor.conflict.prev":"\u4E0A\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.next":"\u4E0B\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.ai.resolve.all":"AI \u89E3\u51B3","mergeEditor.conflict.ai.resolve.all.stop":"\u5168\u90E8\u505C\u6B62","mergeEditor.open.tradition":"\u6587\u672C\u7F16\u8F91\u5668","workbench.quickOpen.preserveInput":"\u662F\u5426\u5728 QuickOpen \u7684\u8F93\u5165\u6846\uFF08\u5305\u62EC\u547D\u4EE4\u9762\u677F\uFF09\u4E2D\u4FDD\u7559\u4E0A\u6B21\u8F93\u5165\u7684\u5185\u5BB9","aiNative.chat.ai.assistant.name":"AI \u7814\u53D1\u52A9\u624B","aiNative.chat.input.placeholder.default":"\u53EF\u4EE5\u95EE\u6211\u4EFB\u4F55\u95EE\u9898\uFF0C\u8F93\u5165 @ \u53EF\u5F15\u7528\u5185\u5BB9","aiNative.chat.stop.immediately":"\u6211\u5148\u4E0D\u60F3\u4E86\uFF0C\u6709\u9700\u8981\u53EF\u4EE5\u968F\u65F6\u95EE\u6211","aiNative.chat.error.response":"\u5F53\u524D\u4E0E\u6211\u4E92\u52A8\u7684\u4EBA\u592A\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF0C\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u652F\u6301","aiNative.chat.code.insert":"\u63D2\u5165\u4EE3\u7801","aiNative.chat.code.copy":"\u590D\u5236\u4EE3\u7801","aiNative.chat.code.copy.success":"\u590D\u5236\u6210\u529F","aiNative.chat.expand.unfullscreen":"\u6536\u8D77","aiNative.chat.expand.fullescreen":"\u5C55\u5F00\u5168\u5C4F","aiNative.chat.enter.send":"Enter \u53D1\u9001","aiNative.chat.defaultContextFile":"\u5F53\u524D\u6587\u4EF6","aiNative.chat.defaultContextFolder":"\u5F53\u524D\u6587\u4EF6\u5939","aiNative.chat.thinking":"\u6DF1\u5EA6\u601D\u8003","aiNative.chat.imageUpload":"\u4E0A\u4F20\u56FE\u7247","aiNative.chat.clearContext":"\u6E05\u7A7A\u4E0A\u4E0B\u6587","aiNative.chat.context.description":"\u5171 {0} \u4E2A\u5F15\u7528","aiNative.chat.context.clear":"\u70B9\u51FB\u6E05\u7A7A\u5F15\u7528","aiNative.chat.context.title":"\u4E0A\u4E0B\u6587","aiNative.chat.context.title.empty":"\u6682\u65E0\u4E0A\u4E0B\u6587","aiNative.chat.modelSelector.disableTip":"\u5982\u9700\u5207\u6362\u6A21\u578B\uFF0C\u8BF7\u65B0\u5EFA\u6216\u6E05\u7A7A\u4F1A\u8BDD","aiNative.inline.chat.operate.chat.title":"Chat({0})","aiNative.inline.chat.operate.check.title":"\u91C7\u7EB3","aiNative.inline.chat.operate.thumbsup.title":"\u8D5E","aiNative.inline.chat.operate.thumbsdown.title":"\u8E29","aiNative.inline.chat.operate.loading.cancel":"\u6309 ESC \u53D6\u6D88","aiNative.inline.chat.input.placeholder.default":"\u8BF7\u8F93\u5165\u4F60\u7684\u610F\u56FE...(\u2191\u2193 \u5207\u6362\u5386\u53F2)","aiNative.inline.chat.generating.canceled":"Inline Chat \u5DF2\u505C\u6B62\u751F\u6210","aiNative.inline.hint.widget.placeholder":"\u6309 {0} \u5524\u8D77 Inline Chat","aiNative.inline.problem.fix.title":"AI \u4FEE\u590D","aiNative.inline.diff.accept":"\u91C7\u7EB3","aiNative.inline.diff.reject":"\u62D2\u7EDD","aiNative.chat.view-changes":"\u67E5\u770B\u6539\u52A8","aiNative.resolve.conflict.dialog.afresh":"\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u751F\u6210\u5417\uFF1F","aiNative.resolve.conflict.dialog.detection":`\u68C0\u6D4B\u5230\u60A8\u5DF2\u505A\u4E86\u4FEE\u6539\uFF0C\u91CD\u65B0\u751F\u6210\u4F1A\u8986\u76D6\u6389
33522
33522
  \u60A8\u4FEE\u6539\u7684\u90E8\u5206\uFF0C\u662F\u5426\u786E\u8BA4\u8FDB\u884C\u91CD\u65B0\u751F\u6210\u3002`,"aiNative.resolve.conflict.message.not.processed.yet":"AI \u5DF2\u5904\u7406 {0} \u5904\u51B2\u7A81\uFF0C{1} \u5904\u51B2\u7A81\u6682\u672A\u5904\u7406\uFF08\u4ECD\u6807\u8BB0\u4E3A\u9EC4\u8272\u90E8\u5206\uFF09\uFF0C\u9700\u4EBA\u5DE5\u5904\u7406","aiNative.operate.discard.title":"\u4E22\u5F03","aiNative.operate.afresh.title":"\u91CD\u65B0\u751F\u6210","aiNative.operate.stop.title":"\u505C\u6B62","aiNative.operate.close.title":"\u5173\u95ED","aiNative.operate.clear.title":"\u6E05\u7A7A","aiNative.operate.tools.title":"MCP \u5DE5\u5177","aiNative.operate.newChat.title":"\u65B0\u5EFA\u804A\u5929","aiNative.operate.chatHistory.title":"\u804A\u5929\u5386\u53F2","aiNative.operate.chatHistory.searchPlaceholder":"\u8BF7\u641C\u7D22...","aiNative.operate.chatHistory.edit":"\u7F16\u8F91","aiNative.operate.chatHistory.delete":"\u5220\u9664","aiNative.chat.welcome.loading.text":"\u521D\u59CB\u5316\u4E2D...","aiNative.chat.ai.assistant.limit.message":"{0} \u6761\u6700\u65E9\u7684\u6D88\u606F\u56E0\u8F93\u5165 Tokens \u9650\u5236\u800C\u88AB\u4E22\u5F03","aiNative.inlineDiff.acceptAll":"\u63A5\u53D7\u5168\u90E8","aiNative.inlineDiff.rejectAll":"\u62D2\u7EDD\u5168\u90E8","aiNative.inlineDiff.reveal":"\u5728\u804A\u5929\u4E2D\u5C55\u793A","aiNative.inlineDiff.up":"\u4E0A\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.down":"\u4E0B\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.right":"\u4E0B\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.left":"\u4E0A\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.noMoreChangesUp":"\u9876\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.inlineDiff.noMoreChangesDown":"\u5E95\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.chat.session.max":"\u6700\u591A\u53EA\u80FD\u521B\u5EFA {0} \u4E2A\u804A\u5929","preference.ai.native.inlineChat.title":"Inline Chat","preference.ai.native.chat.title":"Chat","preference.ai.native.interface.quick.title":"\u63A5\u53E3\u5FEB\u901F\u8DF3\u8F6C","preference.ai.native.interface.quick.navigation":"\u70B9\u51FB\u7F16\u8F91\u5668\u5DE6\u4FA7\u56FE\u6807\u5FEB\u901F\u8DF3\u8F6C\u5230\u63A5\u53E3\u5B9E\u73B0","preference.ai.native.interface.quick.navigation.hover":"\u8DF3\u8F6C\u5230\u5B9E\u73B0","preference.ai.native.inlineChat.auto.visible":"\u662F\u5426\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u81EA\u52A8\u663E\u793A Inline Chat?","preference.ai.native.inlineChat.codeAction.enabled":"\u662F\u5426\u542F\u7528\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u663E\u793A Inline Chat \u76F8\u5173\u7684 Code Actions?","preference.ai.native.chat.visible.type":"\u63A7\u5236 Chat \u9762\u677F\u9ED8\u8BA4\u7684\u5C55\u793A\u65B9\u5F0F","preference.ai.native.inlineDiff.preview.mode":"Inline Diff \u7684\u9884\u89C8\u6A21\u5F0F","preference.ai.native.inlineDiff.preview.mode.sideBySide":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u5DE6\u53F3 diff \u9762\u677F\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.inlineDiff.preview.mode.inlineLive":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u6D41\u5F0F\u6E32\u67D3\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.intelligentCompletions.title":"\u667A\u80FD\u8865\u5168","preference.ai.native.intelligentCompletions.promptEngineering.enabled":"\u662F\u5426\u542F\u7528\u63D0\u793A\u8BCD\u5DE5\u7A0B\uFF0C\u4E00\u4E9B LLM \u6A21\u578B\u5728\u63D0\u793A\u8BCD\u5DE5\u7A0B\u4E0A\u53EF\u80FD\u8868\u73B0\u4E0D\u4F73\u3002","preference.ai.native.intelligentCompletions.debounceTime":"\u667A\u80FD\u8865\u5168\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09","preference.ai.native.intelligentCompletions.cache.enabled":"\u662F\u5426\u542F\u7528\u667A\u80FD\u8865\u5168\u7684\u7F13\u5B58","preference.ai.native.intelligentCompletions.alwaysVisible":"\u662F\u5426\u603B\u662F\u5C55\u793A\u667A\u80FD\u8865\u5168","preference.ai.native.codeEdits.title":"\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lintErrors":"\u662F\u5426\u5728\u53D1\u751F Lint Error \u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lineChange":"\u662F\u5426\u5728\u5149\u6807\u884C\u53F7\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.typing":"\u662F\u5426\u5728\u5185\u5BB9\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.renderType":"\u667A\u80FD\u6539\u5199\u6E32\u67D3\u65B9\u5F0F","preference.ai.native.globalRules.description":"\u8FD9\u4E9B\u89C4\u5219\u5C06\u53D1\u9001\u5230\u6240\u6709\u804A\u5929\u3001Agent \u4E2D\u3002","preference.ai.native.chat.system.prompt":"\u9ED8\u8BA4\u804A\u5929\u7CFB\u7EDF\u63D0\u793A\u8BCD","webview.webviewTagUnavailable":"\u975E Electron \u73AF\u5883\u4E0D\u652F\u6301 webview \u6807\u7B7E\uFF0C\u8BF7\u4F7F\u7528 iframe \u6807\u7B7E","notebook.kernel.panel.empty":"\u6682\u65E0\u5185\u5BB9","notebook.kernel.panel.title":"\u8FD0\u884C\u7684\u7EC8\u7AEF\u548C\u5185\u6838","notebook.kernel.panel.opened.pages":"\u5DF2\u5F00\u542F\u7684\u6807\u7B7E\u9875","notebook.kernel.panel.running.kernels":"\u8FD0\u884C\u7684\u5185\u6838","notebook.kernel.close.all.confirmation":"\u4F60\u786E\u5B9A\u8981\u5173\u95ED\u5168\u90E8\u5417\uFF1F","notebook.variable.panel.title":"\u53D8\u91CF\u68C0\u67E5\u5668","notebook.variable.panel.unsupported":"\u8BE5\u6587\u4EF6\u683C\u5F0F\u6682\u4E0D\u652F\u6301\u53D8\u91CF\u68C0\u67E5","notebook.variable.panel.refresh.success":"\u53D8\u91CF\u5237\u65B0\u6210\u529F","notebook.variable.panel.refresh.error":"\u53D8\u91CF\u5237\u65B0\u5931\u8D25","notebook.variable.panel.search.placeholder":"\u8BF7\u8F93\u5165\u53D8\u91CF\u540D\u79F0\u641C\u7D22","notebook.variable.panel.show.detail":"\u67E5\u770B\u8BE6\u60C5",...r.browserViews,...o.editorLocalizations,...l.zhCN,"preference.ai.native.llm.apiSettings.title":"\u5927\u6A21\u578B API \u8BBE\u7F6E","preference.ai.native.llm.model.id":"\u6A21\u578B ID","preference.ai.native.deepseek.apiKey":"Deepseek API \u5BC6\u94A5","preference.ai.native.deepseek.apiKey.description":"Deepseek \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey":"Anthropic API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey.description":"Anthropic \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.apiKey":"OpenAI API \u5BC6\u94A5","preference.ai.native.openai.apiKey.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.baseURL":"OpenAI Base URL","preference.ai.native.openai.baseURL.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 Base URL","preference.ai.native.contextWindow":"\u4E0A\u4E0B\u6587\u7A97\u53E3","preference.ai.native.contextWindow.description":"\u4E0A\u4E0B\u6587\u7A97\u53E3\u7684\u6700\u5927Token\u6570","preference.ai.native.maxTokens":"\u6700\u5927\u8F93\u51FA","preference.ai.native.maxTokens.description":"\u6700\u5927\u8F93\u51FAToken\u6570","preference.ai.native.mcp.settings.title":"MCP \u670D\u52A1\u5668\u8BBE\u7F6E","preference.ai.native.mcp.servers":"MCP \u670D\u52A1\u5668","preference.ai.native.mcp.servers.description":"\u914D\u7F6E MCP (Model Context Protocol) \u670D\u52A1\u5668","preference.ai.native.mcp.servers.name.description":"MCP \u670D\u52A1\u5668\u540D\u79F0","preference.ai.native.mcp.servers.command.description":"\u542F\u52A8 MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4","preference.ai.native.mcp.servers.args.description":"MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4\u884C\u53C2\u6570","preference.ai.native.mcp.servers.env.description":"MCP \u670D\u52A1\u5668\u7684\u73AF\u5883\u53D8\u91CF","preference.ai.native.mcp.servers.type.description":"MCP \u670D\u52A1\u5668\u8FDE\u63A5\u7C7B\u578B","preference.ai.native.mcp.servers.type.stdio":"Stdio \u8FDE\u63A5","preference.ai.native.mcp.servers.type.sse":"SSE \u8FDE\u63A5","ai.native.mcp.terminal.command":"\u547D\u4EE4","ai.native.mcp.terminal.output":"\u8F93\u51FA","ai.native.mcp.terminal.allow-question":"\u662F\u5426\u5141\u8BB8\u8FD0\u884C\u547D\u4EE4?","ai.native.mcp.terminal.allow":"\u5141\u8BB8","ai.native.mcp.terminal.deny":"\u62D2\u7EDD","ai.native.rules.title":"\u89C4\u5219","ai.native.rules.description":"\u89C4\u5219\u5141\u8BB8\u4F60\u4E3A Agent \u63D0\u4F9B System \u7EA7\u522B\u7684\u5F15\u5BFC\u3002","ai.native.rules.addRule.title":"\u6DFB\u52A0\u89C4\u5219","ai.native.rules.userRules.title":"\u7528\u6237\u89C4\u5219","ai.native.rules.userRules.description":"\u7528\u6237\u89C4\u5219\u5141\u8BB8\u4F60\u4E3A Agent \u63D0\u4F9B\u5F15\u5BFC\u3002","ai.native.rules.userRules.placeholder":"\u5982\uFF0C\u59CB\u7EC8\u4F7F\u7528\u4E2D\u6587\u56DE\u7B54...","ai.native.rules.projectRules.title":"\u9879\u76EE\u89C4\u5219","ai.native.rules.projectRules.description":"\u9879\u76EE\u89C4\u5219\u5141\u8BB8\u4F60\u4E3A Agent \u63D0\u4F9B\u5F15\u5BFC\u3002","ai.native.rules.projectRules.noUsed":"\u8BE5\u89C4\u5219\u53EF\u80FD\u6C38\u8FDC\u4E0D\u4F1A\u88AB\u4F7F\u7528\uFF0C\u56E0\u4E3A\u5B83\u6CA1\u6709\u63CF\u8FF0\u6216\u81EA\u52A8\u9644\u4EF6","ai.native.rules.projectRules.newRule":"\u65B0\u5EFA\u89C4\u5219","ai.native.rules.projectRules.newRule.placeholder":"\u8BF7\u8F93\u5165\u89C4\u5219\u540D\u79F0","ai.native.rules.projectRules.empty":"\u6682\u65E0\u53D1\u73B0\u4EFB\u4F55\u89C4\u5219","ai.native.terminal.autorun":"\u7EC8\u7AEF\u547D\u4EE4\u81EA\u52A8\u6267\u884C\u7B56\u7565","ai.native.terminal.autorun.description":"Agent\u7EC8\u7AEF\u547D\u4EE4\u7684\u81EA\u52A8\u6267\u884C\u7B56\u7565\u3002`off` \u8868\u793A\u6C38\u8FDC\u4E0D\u81EA\u52A8\u6267\u884C\uFF0C`auto` \u8868\u793A\u6A21\u578B\u5C06\u6839\u636E\u547D\u4EE4\u51B3\u5B9A\u662F\u5426\u81EA\u52A8\u6267\u884C\uFF08\u53EA\u9002\u7528\u4E8E\u9AD8\u7EA7\u6A21\u578B\uFF09\uFF0C`always` \u8868\u793A\u6C38\u8FDC\u81EA\u52A8\u6267\u884C\u3002","ai.native.terminal.autorun.denied":"\u9ED8\u8BA4\u60C5\u51B5\u4E0B\u62D2\u7EDD\u81EA\u52A8\u8FD0\u884C","ai.native.terminal.autorun.question":"\u5E0C\u671B\u81EA\u52A8\u8FD0\u884C?","ai.native.terminal.autorun.command":"\u70B9\u51FB\u66F4\u6539\u547D\u4EE4\u81EA\u52A8\u6267\u884C\u7B56\u7565.","ai.native.terminal.autorun.always":"\u59CB\u7EC8\u5141\u8BB8","ai.native.terminal.autorun.auto":"\u6A21\u578B\u81EA\u52A8\u6267\u884C","ai.native.terminal.autorun.off":"\u7981\u6B62\u81EA\u52A8\u6267\u884C","ai.native.terminal.autorun.running":"\u547D\u4EE4\u6267\u884C\u4E2D...","ai.native.mcp.name":"\u540D\u79F0:","ai.native.mcp.command":"\u547D\u4EE4:","ai.native.mcp.args":"\u53C2\u6570:","ai.native.mcp.env":"\u73AF\u5883\u53D8\u91CF:","ai.native.mcp.type":"\u7C7B\u578B:","ai.native.mcp.stdio":"Command","ai.native.mcp.sse":"SSE","ai.native.mcp.buttonSave":"\u6DFB\u52A0","ai.native.mcp.buttonUpdate":"\u66F4\u65B0","ai.native.mcp.buttonCancel":"\u53D6\u6D88","ai.native.mcp.addMCPServer.title":"\u6DFB\u52A0 MCP \u670D\u52A1\u5668","ai.native.mcp.editMCPServer.title":"\u7F16\u8F91 MCP \u670D\u52A1\u5668","ai.native.mcp.url.placeHolder":"\u8F93\u5165 SSE URL","ai.native.mcp.command.placeHolder":"\u8F93\u5165\u547D\u4EE4","ai.native.mcp.args.placeHolder":"\u8FD0\u884C\u53C2\u6570","ai.native.mcp.env.placeHolder":"KEY=value\uFF08\u6BCF\u884C\u4E00\u4E2A\uFF09","ai.native.mcp.name.placeHolder":"\u670D\u52A1\u5668\u540D\u79F0","ai.native.mcp.type.builtin":"\u5185\u7F6E","ai.native.mcp.type.sse":"SSE","ai.native.mcp.type.stdio":"\u547D\u4EE4","ai.native.mcp.serverNameExists":'\u670D\u52A1\u540D\u79F0 "{0}" \u5DF2\u5B58\u5728',"ai.native.mcp.name.isRequired":"\u670D\u52A1\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.command.isRequired":"\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.url.isRequired":"SSE URL \u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.manage.connections":"\u7BA1\u7406\u4F60\u7684 MCP \u670D\u52A1\u5668\u8FDE\u63A5","ai.native.mcp.enabled":"\u5DF2\u542F\u7528","ai.native.mcp.disabled":"\u5DF2\u7981\u7528","ai.native.mcp.enable.title":"\u542F\u52A8\u8BE5\u670D\u52A1","ai.native.mcp.disable.title":"\u505C\u6B62\u8BE5\u670D\u52A1","ai.native.mcp.config.title":"MCP \u914D\u7F6E","ai.native.mcp.tool.arguments":"\u53C2\u6570","ai.native.mcp.tool.results":"\u8FD4\u56DE","ai.native.mcp.tool.action.edit":"\u4FEE\u6539","ai.native.mcp.tool.action.delete":"\u5220\u9664","ai.native.mcp.tool.action.sync":"\u540C\u6B65"}}},10199:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(32581),t)},21774:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(25067),_=e(48644),v=e(85448);let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.IKeymapService,useClass:v.KeymapService},_.KeymapsContribution]}};t.KeymapsModule=m,t.KeymapsModule=m=n.__decorate([(0,r.Injectable)()],m)},2312:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsParser=t.keymapsSchema=void 0;const n=e(85608),r=n.__importDefault(e(82174)),o=n.__importStar(e(23304)),l=e(76003);t.keymapsSchema={type:"array",items:{type:"object",properties:{key:{type:"string"},keybinding:{type:"string",deprecated:!0},command:{type:"string"},context:{type:"string"},when:{type:"string"},args:{}},required:["command"],optional:["key","keybinding","when","args"],additionalProperties:!1}};let _=class{constructor(){this.validate=new r.default({jsonPointers:!0}).compile(t.keymapsSchema)}parse(m,p){const s=o.stripComments(m),g=p?[]:void 0,a=o.parse(s,g);if(g&&p)for(const h of g)p.push(`${this.printParseErrorCode(h.error)} at ${h.offset} offset of ${h.length} length`);if(this.validate(a))return a;if(p&&this.validate.errors)for(const h of this.validate.errors)p.push(`${h.message} at ${h.dataPath}`);return[]}printParseErrorCode(m){return o.printParseErrorCode(m)}};t.KeymapsParser=_,t.KeymapsParser=_=n.__decorate([(0,l.Injectable)(),n.__metadata("design:paramtypes",[])],_)},48644:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsContribution=t.KEYMAP_COMMANDS=t.KeymapsContextMenu=t.KeymapsResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(57517),v=e(42933),m=e(97821),p=e(25067),s=e(34879),g="keymaps-preview";let a=class extends o.WithEventBus{constructor(){super(),this.scheme=p.KEYMAPS_SCHEME}provideResource(f){return{supportsRevive:!0,name:(0,o.localize)("keymaps.tab.name"),icon:(0,o.getIcon)("setting"),uri:f}}provideResourceSubname(f,d){return null}async shouldCloseResource(f,d){return!0}};t.KeymapsResourceProvider=a,t.KeymapsResourceProvider=a=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],a);var h;(function(E){E.KEYMAPS="2_keymaps"})(h||(t.KeymapsContextMenu=h={}));var u;(function(E){const f="keymaps";E.OPEN_SOURCE_FILE={id:"keymaps.open.source",label:"%keymaps.editorTitle.openSource%",category:f}})(u||(t.KEYMAP_COMMANDS=u={}));let c=class{registerCommands(f){f.registerCommand(o.COMMON_COMMANDS.OPEN_KEYMAPS,{isEnabled:()=>!0,execute:async()=>{await this.keymapService.open()}}),f.registerCommand(u.OPEN_SOURCE_FILE,{execute:async()=>{this.keymapService.openResource()}}),f.registerCommand(o.KEYBOARD_COMMANDS.CHOOSE_KEYBOARD_LAYOUT,{execute:()=>{this.chooseLayout()}})}registerMenus(f){f.registerMenuItem(l.MenuId.SettingsIconMenu,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,group:h.KEYMAPS}),f.registerMenuItem(l.MenuId.EditorTitle,{command:u.OPEN_SOURCE_FILE.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:`resourceScheme == ${p.KEYMAPS_SCHEME}`}),f.registerMenuItem(l.MenuId.EditorTitle,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:"resourceFilename =~ /keymaps.json/"})}registerKeybindings(f){f.registerKeybinding({command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,keybinding:"ctrlcmd+K ctrlcmd+S"})}onStart(){this.keymapService.init()}registerResource(f){f.registerResourceProvider(this.keymapsResourceProvider)}registerEditorComponent(f){f.registerEditorComponent({component:s.KeymapsView,uid:g,scheme:p.KEYMAPS_SCHEME}),f.registerEditorComponentResolver(p.KEYMAPS_SCHEME,(d,y,b)=>{b([{type:_.EditorOpenType.component,componentId:g}])})}async chooseLayout(){const f=this.layoutProvider.currentLayoutData,d={label:(0,o.localize)("keyboard.autoDetect.label"),description:f&&this.layoutProvider.currentLayoutSource!=="user-choice"?(0,o.formatLocalize)("keyboard.autoDetect.description",(0,o.getKeyboardLayoutId)(f.layout)):void 0,detail:(0,o.localize)("keyboard.autoDetect.detail"),value:"autodetect"},y=this.layoutProvider.allLayoutData.map(S=>this.toQuickPickValue(S,f===S));let b;b=[d,...y];const A=await this.quickPickService.show(b,{placeholder:"Choose a keyboard layout"});if(A)return this.layoutProvider.setLayoutData(A)}toQuickPickValue(f,d){return{label:(0,o.getKeyboardLayoutId)(f.layout),value:f}}};t.KeymapsContribution=c,n.__decorate([(0,r.Autowired)(m.QuickPickService),n.__metadata("design:type",Object)],c.prototype,"quickPickService",void 0),n.__decorate([(0,r.Autowired)(o.KeyboardNativeLayoutService),n.__metadata("design:type",Object)],c.prototype,"layoutProvider",void 0),n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],c.prototype,"filesystem",void 0),n.__decorate([(0,r.Autowired)(a),n.__metadata("design:type",a)],c.prototype,"keymapsResourceProvider",void 0),n.__decorate([(0,r.Autowired)(p.IKeymapService),n.__metadata("design:type",Object)],c.prototype,"keymapService",void 0),t.KeymapsContribution=c=n.__decorate([(0,o.Domain)(o.CommandContribution,o.KeybindingContribution,o.ClientAppContribution,_.BrowserEditorContribution,l.MenuContribution)],c)},85448:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapService=void 0;const r=e(85608),o=r.__importStar(e(39050)),l=e(76003),_=e(41869),v=e(68969),m=e(14951),p=e(25067),s=e(2312);let g=n=class{constructor(){this.keymapChangeEmitter=new _.Emitter,this.convertKeySequence=[],this.toUnregisterUserKeybindingMap=new Map,this.toRestoreDefaultKeybindingMap=new Map,this.searchDelayer=new _.ThrottledDelayer(n.DEFAULT_SEARCH_DELAY),this.disposableCollection=new _.DisposableCollection,this._whenReadyDeferred=new _.Deferred,this.fuzzyOptions={pre:"<match>",post:"</match>"},this.reconcileQueue=new _.Throttler,this.keybindings=[],this.updateKeybindings=()=>{this.currentSearchValue?this.doSearchKeybindings(this.currentSearchValue):(0,_.runWhenIdle)(()=>{this.keybindings=this.getKeybindingItems(),this.keymapChangeEmitter.fire(this.keybindings)})},this.setKeybinding=(h,u)=>this.progressService.withProgress({location:_.ProgressLocation.Notification},c=>new Promise((E,f)=>{c.report({message:(0,_.localize)("keymaps.keybinding.loading"),increment:0,total:100});const d=this.storeKeybindings||[];let y=!1;for(const b of d){const A={when:b.when,command:b.command,keybinding:b.key};if(b.command===u.command){y=!0,this.unregisterUserKeybinding(A);const S=this.toUniqueKey(h),D=this.toRestoreDefaultKeybindingMap.get(S);if(D){const I=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(I,D)}b.key=u.keybinding,this.registerUserKeybinding({...A,priority:_.KeybindingWeight.WorkbenchContrib*100})}}if(!y){const b=this.keybindings.find(S=>S.id===u.command&&this.getRaw(S.when)===u.when);if(b&&b.keybinding){this.unregisterDefaultKeybinding({when:this.getRaw(b.when),command:b.id,keybinding:this.getRaw(b.keybinding)});const S=this.toUniqueKey(h),D=this.toRestoreDefaultKeybindingMap.get(S);if(D){const I=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(I,D)}}const A={when:this.getWhen(u),command:u.command,key:u.keybinding};d.push(A),this.registerUserKeybinding(u)}return this.saveKeybinding(d).then(()=>{E(void 0),c.report({message:(0,_.localize)("keymaps.keybinding.success"),increment:99})}).catch(b=>{f(b),c.report({message:(0,_.localize)("keymaps.keybinding.fail"),increment:99})}).finally(()=>{setTimeout(()=>{c.report({increment:100})},3e3)})}),()=>{}),this.covert=h=>this.keybindingService.convert(h," "),this.clearCovert=()=>this.keybindingService.clearConvert(),this.resetKeybinding=async h=>{if(!this.resource)return;const c=this.storeKeybindings.filter(E=>E.command!==h.command);return this.unregisterUserKeybinding(h),this.restoreDefaultKeybinding(h),this.saveKeybinding(c)},this.fixed=async()=>{this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!1})},this.searchKeybindings=h=>{this.currentSearchValue=h,this.searchDelayer.isTriggered()||this.searchDelayer.cancel(),this.searchDelayer.trigger(async()=>{this.doSearchKeybindings(this.currentSearchValue)})},this.isSearching=!1,this.doSearchKeybindings=h=>{h?this.isSearching=!0:this.isSearching=!1;const u=this.getKeybindingItems(),c=[];u.forEach(E=>{const f=["id","command","keybinding","when","context","source"];let d=!1;for(const y of f){const b=E[y];if(b){const A=o.match(h,b,this.fuzzyOptions);if(A)E[y]=A.rendered,d=!0;else if(y==="keybinding"){const S=h.split("+"),D=b.split(" "),I=[0];let w=[];D.length>1?D.forEach(M=>{const O=M.split("+");I.push(O.length+I[-1]),w.push(...O)}):w=b.split("+"),I.shift();const T=[...w];let R=0;if(S.forEach(M=>{let O={rendered:"",score:0},x=-1;if(b){w.forEach(F=>{const L=o.match(M,F,this.fuzzyOptions);L&&L.score>O.score&&(O=L,x=T.indexOf(F))});const k=O.rendered;k&&(x>-1&&(T[x]=k),w.splice(x,1,""),R+=1)}}),R===S.length){if(I.length>0){const M="";T.forEach((O,x)=>{x===0?M.concat(O):I.indexOf(x)!==-1?M.concat(" "+O):M.concat("+"+O)}),E[y]=M}E[y]=T.join("+"),d=!0}}}}d&&c.push(E)}),this.keybindings=c,this.keymapChangeEmitter.fire(this.keybindings)},this.validateKeybinding=(h,u)=>{if(!u)return(0,_.localize)("keymaps.keybinding.require");try{const c={command:this.isSearching?this.getRaw(h.command):h.command,when:this.isSearching?this.getRaw(h.when):h.when,keybinding:this.isSearching?this.getRaw(u):u};return h.keybinding===u?" ":this.keybindingRegistry.validateKeybindingInScope(c)}catch(c){return c}},this.detectKeybindings=(h,u)=>{if(!u)return[];try{if(h.keybinding===u)return[];const c=this.keybindings.filter(E=>this.getRaw(E.keybinding)===u);if(c.length>0)return c.map(E=>{const f=this.commandRegistry.getCommand(this.getRaw(E.command)),d=this.storeKeybindings.find(y=>f&&y.command===f.id);return E.when=this.getRaw(E.when),E.keybinding=this.getRaw(E.keybinding),{id:f?f.id:this.getRaw(E.command),command:(f?f.label||f.id:E.command)||"",when:this.keybindingService.convertMonacoWhen(E.when),keybinding:this.getRaw(E.keybinding),source:d?this.getScope(_.KeybindingScope.USER):this.getScope(_.KeybindingScope.DEFAULT)}})}catch(c){this.logger.error(c)}return[]}}get onDidKeymapChanges(){return this.keymapChangeEmitter.event}get storeKeybindings(){return this._storeKeybindings&&this._storeKeybindings.map(h=>({...h,command:this.getValidateCommand(h.command),key:h.key||h.keybinding}))}set storeKeybindings(h){this._storeKeybindings=h}get whenReady(){return this._whenReadyDeferred.promise}async init(){await this.reconcile();const h=await this.filesystem.watchFileChanges(n.KEYMAP_FILE_URI);this.disposableCollection.push(h),h.onFilesChanged(()=>{this.reconcileQueue.queue(this.reconcile.bind(this))}),this._whenReadyDeferred.resolve()}async openResource(){if(!this.resource||!this.resource.uri)return;const h=await this.resource.uri;if(!h)return;if(!await this.filesystem.access(h)){const c=await this.filesystem.createFile(h),E=await this.filesystem.setContent(c,`{
33523
- }`);this.resource=E||void 0}h&&this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI(h),{preview:!1})}disposeRegistedKeybinding(){for(const[,h]of this.toUnregisterUserKeybindingMap)h.dispose();for(const[,h]of this.toRestoreDefaultKeybindingMap)h.dispose()}dispose(){this.disposeRegistedKeybinding(),this.disposableCollection.dispose()}getValidateCommand(h){return h.replace(/^monaco.editor/,"editor")}async reconcile(h){const u=n.KEYMAP_FILE_URI.toString();this.resource=await this.filesystem.getFileStat(u),this.resource||(this.resource=await this.filesystem.createFile(u,{content:JSON.stringify([])}));const E=(h?h.slice(0):await this.parseKeybindings()).map(y=>({when:y.when,command:this.getValidateCommand(y.command),keybinding:y.key||y.keybinding})),f=[],d=[];this.disposeRegistedKeybinding(),E.forEach(y=>{y.command.startsWith("-")?d.push(y):f.push(y)}),f.map(y=>{this.unregisterDefaultKeybinding(y,!0),this.registerUserKeybinding(y)}),d.map(y=>{y.command=y.command.slice(1),this.unregisterDefaultKeybinding(y,!0)})}unregisterUserKeybinding(h){const u=this.toUniqueKey(h);if(this.toUnregisterUserKeybindingMap.has(u)){const c=this.toUnregisterUserKeybindingMap.get(u);c?.dispose(),this.toUnregisterUserKeybindingMap.delete(u)}}registerUserKeybinding(h){const u=this.toUniqueKey(h);this.toUnregisterUserKeybindingMap.set(u,this.keybindingRegistry.registerKeybinding(h,_.KeybindingScope.USER))}unregisterDefaultKeybinding(h,u=!1){if(u)this.keybindingRegistry.getKeybindingsForCommand(h.command).map(E=>{const f={...h,keybinding:E.keybinding};this.keybindingRegistry.unregisterKeybinding(f);const d=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(d,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(f)}))});else{this.keybindingRegistry.unregisterKeybinding(h);const c=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(c,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(h)}))}}restoreDefaultKeybinding(h){const u=this.toUniqueKey(h),c=this.toRestoreDefaultKeybindingMap.get(u);c&&(c?.dispose(),this.toRestoreDefaultKeybindingMap.delete(u))}toUniqueKey(h){return`${h.command}${h.when?`-${h.when}`:"-"}${h.keybinding?`-${h.keybinding}`:"-"}`}async parseKeybindings(){try{const h=await this.resource;if(!h)return[];const{content:u}=await this.filesystem.readFile(h.uri);this.storeKeybindings=this.parser.parse(u.toString())}catch(h){this.logger.warn(`ParseKeybindings fail: ${h.stack}`),this.storeKeybindings=[]}return this.storeKeybindings}async saveKeybinding(h){this.storeKeybindings=h,this.updateKeybindings(),this.resource||(this.resource=await this.filesystem.createFile(n.KEYMAP_FILE_URI.toString()));const u=await this.filesystem.setContent(this.resource,JSON.stringify(h,void 0,2));this.resource=u||void 0}async getKeybindings(){return this.storeKeybindings.map(h=>({command:h.command,keybinding:h.key,when:h.when,args:h.args}))}async open(){this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!0})}getWhen(h){return h?this.keybindingService.convertMonacoWhen(h.when):""}getScope(h){return h===_.KeybindingScope.DEFAULT?(0,_.localize)("keymaps.source.default"):h===_.KeybindingScope.USER?(0,_.localize)("keymaps.source.user"):h===_.KeybindingScope.WORKSPACE?(0,_.localize)("keymaps.source.workspace"):""}getKeybindingItems(){const h=this.commandRegistry.getCommands(),u=[];for(const b of h){const A=this.keybindingRegistry.getKeybindingsForCommand(b.id);!A||!A.length?b.label&&u.push({id:b.id,command:b.label,hasCommandLabel:!0}):A.forEach(S=>{let D;if(this.storeKeybindings){const I=this.storeKeybindings.find(w=>b&&w.command===b.id);D={id:b.id,command:b.label||b.id,keybinding:I?I.key:S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:I?this.getWhen(I):this.getWhen(A&&S),source:I?this.getScope(_.KeybindingScope.USER):this.getScope(_.KeybindingScope.DEFAULT),hasCommandLabel:!!b.label}}else D={id:b.id,command:b.label||b.id,keybinding:A&&S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:this.getWhen(A&&S),source:A&&S&&typeof S.scope<"u"?this.getScope(S.scope):"",hasCommandLabel:!!b.label};u.push(D)})}const c=u.sort((b,A)=>this.compareItem(b,A)),E=c.filter(b=>!!b.keybinding),f=c.filter(b=>!b.keybinding&&b.hasCommandLabel),d=E.filter(b=>b.hasCommandLabel),y=E.filter(b=>!b.hasCommandLabel);return[...d,...y,...f]}compareItem(h,u){return h&&u?h.source===u.source?h.command.toLowerCase().localeCompare(u.command.toLowerCase()):h.source===this.getScope(_.KeybindingScope.USER)?-1:1:0}getRaw(h){return h?h.replace(new RegExp(/<(\/)?match>/gi),""):""}};t.KeymapService=g,g.DEFAULT_SEARCH_DELAY=100,g.KEYMAP_FILE_URI=new _.URI().withScheme(_.Schemes.userStorage).withPath(p.KEYMAPS_FILE_NAME),r.__decorate([(0,l.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keyBindingRegistry",void 0),r.__decorate([(0,l.Autowired)(s.KeymapsParser),r.__metadata("design:type",s.KeymapsParser)],g.prototype,"parser",void 0),r.__decorate([(0,l.Autowired)(_.CommandService),r.__metadata("design:type",Object)],g.prototype,"commandService",void 0),r.__decorate([(0,l.Autowired)(_.CommandRegistry),r.__metadata("design:type",Object)],g.prototype,"commandRegistry",void 0),r.__decorate([(0,l.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keybindingRegistry",void 0),r.__decorate([(0,l.Autowired)(_.KeybindingService),r.__metadata("design:type",Object)],g.prototype,"keybindingService",void 0),r.__decorate([(0,l.Autowired)(m.IFileServiceClient),r.__metadata("design:type",Object)],g.prototype,"filesystem",void 0),r.__decorate([(0,l.Autowired)(_.ILogger),r.__metadata("design:type",Object)],g.prototype,"logger",void 0),r.__decorate([(0,l.Autowired)(v.IProgressService),r.__metadata("design:type",Object)],g.prototype,"progressService",void 0),t.KeymapService=g=n=r.__decorate([(0,l.Injectable)()],g)},34879:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(25067),m=n.__importDefault(e(78541)),p=()=>{const{keybindings:s,searchKeybindings:g,validateKeybinding:a,detectKeybindings:h,setKeybinding:u,resetKeybinding:c,getRaw:E,getScope:f,covert:d,clearCovert:y,fixed:b,onDidKeymapChanges:A,updateKeybindings:S}=(0,_.useInjectable)(v.IKeymapService),[D,I]=o.default.useState(!1),[w,T]=o.default.useState(""),[R,M]=o.default.useState(s),O=({data:Q,index:G})=>{const{id:Z,command:$,when:V,source:H,keybinding:K}=Q,[Y,X]=o.default.useState(!1),[re,oe]=o.default.useState(K||""),[he,me]=o.default.useState(!1),[q,be]=o.default.useState(),[ge,te]=o.default.useState([]),fe=()=>{he||(b(),me(!0)),y(),oe(E(K)),X(!0)},Oe=We=>{const pe=a(Q,We);pe?pe!==" "?be({message:pe,type:l.VALIDATE_TYPE.ERROR}):X(!1):(u({command:E(Z),when:E(V)||"",keybinding:E(K)},{command:E(Z),when:E(V)||"",keybinding:We}),X(!1),y())},Pe=()=>{X(!1)},Me=We=>{We.stopPropagation(),We.preventDefault();const{key:pe}=_.KeyCode.createKeyCode(We.nativeEvent),ie=We.nativeEvent.shiftKey||We.nativeEvent.metaKey||We.nativeEvent.altKey||We.nativeEvent.ctrlKey;pe&&_.Key.ENTER.keyCode===pe.keyCode&&!ie?re&&Oe(re):oe(d(We.nativeEvent))},Be=()=>{const We=()=>{be(void 0),re&&oe(""),y()},pe=ie=>{ie.stopPropagation(),ie.preventDefault()};return o.default.createElement("div",{className:m.default.keybinding_optional_actions,onMouseDown:pe},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:We,title:(0,_.localize)("keymaps.action.clear")}))},De=()=>o.default.createElement("div",{className:m.default.keybinding_key_input_placeholder},"\u23CE"),_e=We=>{const pe=ie=>{ie.preventDefault(),he||(b(),me(!0)),c({command:E(Z),when:E(V)||"",keybinding:re})};if(We&&E(We)===f(_.KeybindingScope.USER))return o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("rollback"),m.default.keybinding_inline_action),onClick:pe,title:(0,_.localize)("keymaps.action.reset")})},ke=()=>{if(!q&&ge.length>0)return o.default.createElement("div",{className:m.default.keybinding_detective_messages},o.default.createElement("div",{className:m.default.keybinding_detective_messages_label},(0,_.formatLocalize)("keymaps.keybinding.duplicate",ge.length)),o.default.createElement("ul",{className:m.default.keybinding_detective_messages_container},ge.map((We,pe)=>o.default.createElement("li",{className:m.default.keybinding_detective_messages_item,key:`${We.id}_${pe}`,title:`${We.command}-${We.when}`},o.default.createElement("div",{className:m.default.title},(0,_.localize)("keymaps.header.command.title"),": ",E(We.command)||"-"),o.default.createElement("div",{className:m.default.description},o.default.createElement("div",{style:{marginRight:4}},(0,_.localize)("keymaps.header.source.title"),": ",E(We.source)||"-"),o.default.createElement("div",null,(0,_.localize)("keymaps.header.when.title"),": ",E(We.when)||"\u2014"))))))},Te=()=>{if(Y)return o.default.createElement("div",{className:m.default.keybinding_key_input_container},Be(),o.default.createElement(l.ValidateInput,{placeholder:(0,_.localize)("keymaps.edit.placeholder"),validateMessage:q,className:m.default.keybinding_key_input,size:"small",autoFocus:!0,name:_.NO_KEYBINDING_NAME,value:re,onKeyDown:Me,onBlur:Pe}),De(),ke());{const We=K?.split(" ");return o.default.createElement("div",{className:m.default.keybinding_key,title:E(K),onDoubleClick:fe},o.default.createElement("div",{className:m.default.keybinding_action,onClick:fe},o.default.createElement("span",{className:(0,r.default)(K?(0,_.getIcon)("edit"):(0,_.getIcon)("plus"),m.default.keybinding_inline_action),title:K?(0,_.localize)("keymaps.action.edit"):(0,_.localize)("keymaps.action.add")}),_e(H)),We&&We[0]?We.map((pe,ie)=>{const le=pe.split("+");return o.default.createElement("div",{className:m.default.keybinding_key_block,key:`${pe}_${ie}`},le.map((Se,ye)=>o.default.createElement("div",{className:m.default.keybinding_key_item,key:`${Se}_${ye}`,dangerouslySetInnerHTML:{__html:Se||""}})))}):"\u2014")}};return(0,o.useEffect)(()=>{q&&be(void 0),te(re&&Y?h(Q,re):[])},[re]),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item,G%2===1&&m.default.odd)},o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box,m.default.keybinding_command)},o.default.createElement("div",{className:m.default.command_name,title:E($),dangerouslySetInnerHTML:{__html:$}}),o.default.createElement("div",{className:(0,r.default)(m.default.limit_warp,m.default.command_id),title:E(Z),dangerouslySetInnerHTML:{__html:(0,_.formatLocalize)("keymaps.commandId.title",Z)}})),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box)},Te()),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{className:m.default.limit_warp,title:E(V||"\u2014"),dangerouslySetInnerHTML:{__html:V||"\u2014"}})),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{title:E(H),dangerouslySetInnerHTML:{__html:H||""}})))},x=()=>{const Q=()=>{I(!D)};return o.default.createElement("div",{className:m.default.search_inline_action},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("keyboard"),m.default.search_inline_action_icon,D&&m.default.active),onClick:Q}))},k=(0,o.useCallback)(Q=>{T(Q),g(Q)},[w]),F=Q=>{if(!D){const G=Q.target&&Q.target.value?Q.target.value.toLocaleLowerCase():"";k(G)}},L=Q=>{if(D){Q.stopPropagation(),Q.preventDefault();const{key:G}=_.KeyCode.createKeyCode(Q.nativeEvent);if(G&&_.Key.ENTER.keyCode===G.keyCode)return;k(d(Q.nativeEvent))}},N=()=>{w&&(T(""),g("")),y()},U=()=>o.default.createElement("div",{className:m.default.keybinding_optional_actions},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:N,title:(0,_.localize)("keymaps.action.reset")})),W=()=>o.default.createElement("div",{className:m.default.search_container},o.default.createElement(l.Input,{className:m.default.search_input,placeholder:(0,_.localize)(D?"keymaps.search.keyboard.placeholder":"keymaps.search.placeholder"),type:"text",value:w,name:_.NO_KEYBINDING_NAME,onChange:F,onKeyDown:L,addonBefore:x()}),U()),j=(0,o.useMemo)(()=>{const Q=[{title:(0,_.localize)("keymaps.header.command.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.keybinding.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.when.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.source.title"),classname:m.default.keybinding_header_item}];return o.default.createElement("div",{className:m.default.keybinding_header},Q.map((G,Z)=>o.default.createElement("div",{className:G.classname,key:`${G.title}_${Z}`},G.title)))},[]);return(0,o.useEffect)(()=>{const Q=A(G=>{M(G)});return S(),()=>{Q.dispose()}},[]),o.default.createElement("div",{className:m.default.keybinding_container},o.default.createElement("div",{className:m.default.keybinding_searchbar},W()),o.default.createElement("div",{className:m.default.keybinding_body},j,o.default.createElement("div",{className:m.default.keybinding_list},o.default.createElement(l.RecycleList,{itemHeight:40,data:R,template:O,className:m.default.keybinding_list_container}))))};t.KeymapsView=p},79312:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEYMAPS_FILE_NAME=t.KEYMAPS_SCHEME=void 0,t.KEYMAPS_SCHEME="keymaps",t.KEYMAPS_FILE_NAME="keymaps.json"},25067:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(79312),t),n.__exportStar(e(88811),t)},88811:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IKeymapService=void 0,t.IKeymapService=Symbol("IKeymapService")},83507:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogModule=t.LogServiceClient=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(47548),_=e(49187);n.__exportStar(e(47548),t);var v=e(1700);Object.defineProperty(t,"LogServiceClient",{enumerable:!0,get:function(){return v.LogServiceClient}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.ILoggerManagerClient,useClass:_.LoggerManagerClient}],this.backServices=[{servicePath:l.LogServiceForClientPath,clientToken:l.ILoggerManagerClient}]}};t.LogModule=m,t.LogModule=m=n.__decorate([(0,r.Injectable)()],m)},49187:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerManagerClient=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(47548),_=e(1700);let v=class{constructor(){this.logLevelChangeEmitter=new o.Emitter}getLogger(p,s){const g=new _.LogServiceClient(p);return g.setup(this.logServiceForClient,s),g}getBrowserLogger(p){return new _.LogServiceClient(p)}async getLogFolder(){return await this.logServiceForClient.getLogFolder()}async setGlobalLogLevel(p){return await this.logServiceForClient.setGlobalLogLevel(p)}async getGlobalLogLevel(){return await this.logServiceForClient.getGlobalLogLevel()}async dispose(){return this.logLevelChangeEmitter.dispose(),await this.logServiceForClient.disposeAll()}get onDidChangeLogLevel(){return this.logLevelChangeEmitter.event}onDidLogLevelChanged(p){this.logLevelChangeEmitter.fire(p)}};t.LoggerManagerClient=v,n.__decorate([(0,r.Autowired)(l.LogServiceForClientPath),n.__metadata("design:type",Object)],v.prototype,"logServiceForClient",void 0),t.LoggerManagerClient=v=n.__decorate([(0,r.Injectable)()],v)},1700:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogServiceClient=void 0;const n=e(43718),r=e(47548);class o{constructor(_){this.level=r.LogLevel.Verbose,this.ready=new n.Deferred,this.namespace=_,this.debugLog=new r.DebugLog(_)}async setup(_,v){this.logServiceForClient=_,this.pid=v;const m=await this.logServiceForClient.getGlobalLogLevel();this.level=m,this.ready.resolve()}async getLevel(){return this.logServiceForClient?await this.logServiceForClient.getLevel(this.namespace):this.level}async setLevel(_){this.level=_,this.logServiceForClient&&await this.logServiceForClient.setLevel(this.namespace,_)}async verbose(..._){this.debugLog.verbose(..._),this.logServiceForClient&&await this.logServiceForClient.verbose(this.namespace,(0,r.format)(_),this.pid)}async debug(..._){this.debugLog.debug(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Debug)&&await this.logServiceForClient.debug(this.namespace,(0,r.format)(_),this.pid))}async log(..._){this.debugLog.log(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Info)&&await this.logServiceForClient.log(this.namespace,(0,r.format)(_),this.pid))}async warn(..._){this.debugLog.warn(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Warning)&&await this.logServiceForClient.warn(this.namespace,(0,r.format)(_),this.pid))}async error(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Error)&&await this.logServiceForClient.error(this.namespace,(0,r.format)(_),this.pid))}async critical(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Critical)&&await this.logServiceForClient.critical(this.namespace,(0,r.format)(_),this.pid))}async dispose(){this.debugLog.destroy(),this.logServiceForClient&&await this.logServiceForClient.disposeLogger(this.namespace)}}t.LogServiceClient=o},47548:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(4892),t),n.__exportStar(e(46196),t)},46196:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogServiceForClient=void 0,t.format=e,t.ILogServiceForClient=Symbol("LogServiceForClient");function e(n){let r="";for(let o=0;o<n.length;o++){let l=n[o];if(l instanceof Error){const _=Array.prototype.slice.call(arguments);_[0]=l.stack,l=e(_)}else if(typeof l=="object")try{l=JSON.stringify(l)}catch{}else if(typeof l=="symbol")try{l=l.toString()}catch{}r+=(o>0?" ":"")+l}return r}},73344:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(47548),t)},9522:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionServiceFactory=t.AccordionService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=n.__importDefault(e(46343)),l=e(76003),_=e(41869),v=e(81878),m=e(71707),p=e(95416),s=e(93899),g=e(68969),a=e(28423),h=e(17793);let u=class extends _.WithEventBus{get views(){return this.viewsObservable.get()}get state(){return this.stateObservable.get()}set alignment(E){this._alignment!==E&&(this._alignment=E,this.doUpdateResize())}constructor(E,f){super(),this.containerId=E,this.noRestore=f,this.forceRevealContextKeys=new Map,this.viewWhenContextkeys=new Set,this.appendedViewSet=new Set,this.viewsWithContextKey=new Set,this.viewsObservable=(0,a.observableValue)(this,[]),this.stateObservable=(0,a.observableValue)(this,{}),this.visibleViews=(0,a.derived)(this,d=>{const y=this.viewsObservable.read(d);return this.stateObservable.read(d),y.filter(b=>!this.getViewState(b.id).hidden)}),this.rendered=!1,this.menuId=`${s.MenuId.AccordionContext}/${this.containerId}`,this.toDispose=new Map,this.didChangeViewTitleEmitter=this.registerDispose(new _.Emitter),this.onDidChangeViewTitle=this.didChangeViewTitleEmitter.event,this.beforeAppendViewEmitter=this.registerDispose(new _.Emitter),this.onBeforeAppendViewEvent=this.beforeAppendViewEmitter.event,this.afterAppendViewEmitter=this.registerDispose(new _.Emitter),this.onAfterAppendViewEvent=this.afterAppendViewEmitter.event,this.afterDisposeViewEmitter=this.registerDispose(new _.Emitter),this.onAfterDisposeViewEvent=this.afterDisposeViewEmitter.event,this._alignment="vertical",this.doUpdateResize=(0,r.default)(()=>{var d,y;let b;if(Object.keys(this.state).forEach(A=>{this.state[A].hidden||this.state[A].collapsed||(b?(this.state[A].size||0)>(this.state[b].size||0)&&(b=A):b=A)}),b&&this.splitPanelService.isVisible&&this.expandedViews.length>1&&!((d=this.splitPanelService.rootNode)===null||d===void 0)&&d.clientHeight){const A=((y=this.splitPanelService.rootNode)===null||y===void 0?void 0:y.clientHeight)-this.getPanelFullHeight();if(A){const S=this.state;S[b].size+=A,(0,a.transaction)(D=>{this.stateObservable.set({...S},D)}),this.toggleOpen(b,!1)}}},16),this.storeState=()=>{this.noRestore||!this.rendered||this.layoutState.setState(p.LAYOUT_STATE.getContainerSpace(this.containerId),this.state)},this.handleSectionClick=(d,y,b)=>{this.doToggleOpen(d,y,b)},this.handleContextMenu=(d,y)=>{d.preventDefault();const b=this.ctxMenuService.createMenu({id:this.menuId,config:{args:[{viewId:y}]},contextKeyService:y?this.viewContextKeyRegistry.getContextKeyService(y):void 0}),A=b.getGroupedMenuNodes();b.dispose(),this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:d.clientX,y:d.clientY}})},this.addDispose((0,a.recomputeInitiallyAndOnChange)(this.visibleViews)),this.splitPanelService=this.splitPanelManager.getService(E),this.addDispose(this.splitPanelService),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithSection",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,_.localize)("layout.view.hide","Hide")},group:"0_global",when:"triggerWithSection == true"}),this.viewContextKeyRegistry.afterContextKeyServiceRegistered(this.containerId,d=>{this.topViewKey=d.createKey("view",E),setTimeout(()=>{this.popViewKeyIfOnlyOneViewVisible()})}),this.addDispose(_.Event.debounce(this.contextKeyService.onDidChangeContext,(d,y)=>d||y.payload.affectsSome(this.viewWhenContextkeys),50)(d=>d&&this.handleContextKeyChange(),this)),this.splitPanelService.whenReady.then(()=>{this.listenWindowResize()})}updateViewTitle(E,f){const d=this.views.find(y=>y.id===E);d?(d.name=f,this.didChangeViewTitleEmitter.fire({id:E,title:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion title`)}updateViewDesciption(E,f){const d=this.views.find(y=>y.id===E);d?(d.description=f,this.didChangeViewTitleEmitter.fire({id:E,description:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion description`)}updateViewMessage(E,f){const d=this.views.find(y=>y.id===E);d?(d.message=f,this.didChangeViewTitleEmitter.fire({id:E,message:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}updateViewBadge(E,f){const d=this.views.find(y=>y.id===E);d?(d.badge=f,this.didChangeViewTitleEmitter.fire({id:E,badge:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}tryUpdateResize(){this.doUpdateResize()}restoreState(){if(this.noRestore)return;const E={};this.visibleViews.get().forEach(d=>E[d.id]={collapsed:!1,hidden:!1});const f=this.layoutState.getState(p.LAYOUT_STATE.getContainerSpace(this.containerId),E);(0,o.default)(f,E)||(0,a.transaction)(d=>{this.stateObservable.set({...f},d)}),this.popViewKeyIfOnlyOneViewVisible(),this.splitPanelService.whenReady.then(()=>{this.restoreSize(),this.rendered=!0})}restoreSize(){var E;let f=((E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight)||0,d;if(this.visibleViews.get().forEach((y,b)=>{const A=this.state[y.id];A.collapsed?(this.setSize(b,0,!1,!0),f-=this.headerSize):!A.collapsed&&A.size&&(this.setSize(b,A.size,!1,!0),f-=A.size,d=b)}),d){const y=this.visibleViews.get()[d];this.setSize(d,this.state[y.id].size+f)}}initConfig(E){const{headerSize:f,minSize:d}=E;this.headerSize=f,this.minSize=d}registerContextService(E){let f=this.viewContextKeyRegistry.getContextKeyService(E);return f||(f=this.contextKeyService.createScoped(),f.createKey("view",E),this.viewContextKeyRegistry.registerContextKeyService(E,f)),f}getSectionToolbarMenu(E){const f=this.registerContextService(E),d=this.menuService.createMenu(s.MenuId.ViewTitle,f),y=this.views.find(b=>b.id===E);return y&&(y.titleMenu=d),d}updateView(E){(0,a.transaction)(f=>{const d=this.views;if(E.priority){const y=d.findIndex(b=>(b.priority||0)<(E.priority||0));d.splice(y===-1?d.length:y,0,E),this.viewsObservable.set([...d],f)}else this.viewsObservable.set([...d,E],f)})}appendView(E,f){if(this.appendedViewSet.has(E.id)&&!f)return;const d=new _.DisposableCollection;d.push(this.progressService.registerProgressIndicator(E.id));const y=this.views.findIndex(b=>b.id===E.id);if(y!==-1){(0,a.transaction)(b=>{const A=this.views;A[y]=Object.assign({},A[y],E),this.viewsObservable.set([...A],b)});return}if(E.when){this.viewsWithContextKey.add(E);const b=this.createRevealContextKey(E.id);if(this.fillKeysInWhenExpr(this.viewWhenContextkeys,E.when),!this.contextKeyService.match(E.when)&&!this.contextKeyService.match(b))return;this.appendedViewSet.add(E.id)}this.beforeAppendViewEmitter.fire(E.id),this.updateView(E),this.registerContextService(E.id),d.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(E.id,d),label:(E.name||E.id).toUpperCase()},group:"1_widgets"})),this.toDispose.set(E.id,d),this.popViewKeyIfOnlyOneViewVisible(),this.afterAppendViewEmitter.fire(E.id)}disposeView(E){const f=this.views.findIndex(y=>y.id===E);f>-1&&(0,a.transaction)(y=>{const b=this.views;b.splice(f,1),this.viewsObservable.set([...b],y)});const d=this.toDispose.get(E);d&&d.dispose(),this.appendedViewSet.delete(E),this.popViewKeyIfOnlyOneViewVisible(),this.afterDisposeViewEmitter.fire(E)}revealView(E){const f=this.forceRevealContextKeys.get(E);f&&f.key.set(!0)}disposeAll(){(0,a.transaction)(E=>{this.viewsObservable.set([],E)}),this.toDispose.forEach(E=>{E.dispose()})}onResize(E){if(E.payload.slotLocation&&this.state[E.payload.slotLocation]){const f=E.payload.slotLocation;_.fastdom.measureAtNextFrame(()=>{const d=document.getElementById(f);if(d){const y=this.state;y[f].size=d.clientHeight,(0,a.transaction)(b=>{this.stateObservable.set({...y},b)}),this.storeState()}})}}getPanelFullHeight(E){return Object.keys(this.state).filter(f=>this.views.find(d=>d.id===f)&&f!==E).reduce((f,d)=>f+(this.state[d].collapsed?this.headerSize:this.state[d].hidden?0:this.state[d].size),0)}listenWindowResize(){window.addEventListener("resize",this.doUpdateResize),this.addDispose({dispose:()=>window.removeEventListener("resize",this.doUpdateResize)})}createRevealContextKey(E){const f=`forceShow.${E}`;return this.forceRevealContextKeys.set(E,{when:`${f} == true`,key:this.contextKeyService.createKey(f,!1)}),this.viewWhenContextkeys.add(f),`${f} == true`}registerGlobalToggleCommand(){const E=`view-container.hide.${this.containerId}`;return this.commandRegistry.registerCommand({id:E},{execute:({viewId:f})=>{this.doToggleView(f)},isEnabled:()=>this.visibleViews.get().length>1}),E}registerVisibleToggleCommand(E,f){const d=`view-container.hide.${E}`;return f.push(this.commandRegistry.registerCommand({id:d},{execute:({forceShow:y}={})=>{this.doToggleView(E,y)},isToggled:()=>!this.getViewState(E).hidden,isEnabled:()=>this.getViewState(E).hidden||this.visibleViews.get().length>1})),d}doToggleView(E,f){const d=this.getViewState(E);let y;f===void 0?y=!d.hidden:y=!f,d.hidden=y,this.updateViewState(E,d),this.popViewKeyIfOnlyOneViewVisible(),this.storeState()}popViewKeyIfOnlyOneViewVisible(){if(!this.topViewKey)return;const E=this.visibleViews.get();E.length===1?this.topViewKey.set(E[0].id):this.topViewKey.reset()}toggleViewVisibility(E,f){this.doToggleView(E,f)}get expandedViews(){return this.views.filter(E=>{const f=this.state[E.id];return!f||f&&!f.hidden&&!f.collapsed})}toggleOpen(E,f){const d=this.visibleViews.get().findIndex(y=>y.id===E);d>-1&&this.doToggleOpen(E,f,d,!0)}getViewState(E){let f=this.state[E];const d=this.views.find(y=>y.id===E);return f||(this.updateViewState(E,{collapsed:d?.collapsed||!1,hidden:d?.hidden||!1}),f=this.state[E]),f}updateViewState(E,f){const d=this.state;d[E]=f,(0,a.transaction)(y=>{this.stateObservable.set({...d},y)})}doToggleOpen(E,f,d,y){const b=this.getViewState(E);this.updateViewState(E,{...b,collapsed:f});const A=this._alignment==="horizontal";let S;if(f)S=this.setSizeByAlignment(d,0,!1,y,A);else{const D=this.expandedViews.length===1?this.getAvailableSizeByAlignment(A):b.size||this.minSize;S=this.setSizeByAlignment(d,D,!1,y,A)}this.adjustAdjacentViews(d,S,y,A),this.eventBus.fire(new h.ViewCollapseChangedEvent({viewId:E,collapsed:f}))}setSizeByAlignment(E,f,d,y,b){return b?this.setSizeHorizontal(E,f,d,y):this.setSize(E,f,d,y)}getAvailableSizeByAlignment(E){return E?this.getAvailableSizeHorizontal():this.getAvailableSize()}adjustAdjacentViews(E,f,d,y){const b=this.visibleViews.get();for(let A=b.length-1;A>E;A--)this.getViewState(b[A].id).collapsed!==!0?f=this.setSizeByAlignment(A,f,!0,d,y):this.setSizeByAlignment(A,0,!1,d,y);for(let A=E-1;A>=0;A--)(this.state[b[A].id]||{}).collapsed!==!0?f=this.setSizeByAlignment(A,f,!0,d,y):this.setSizeByAlignment(A,0,!1,d,y)}setSize(E,f,d,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientHeight,D=this.splitPanelService.panels[E];if(!D)return 0;y||D.classList.add("resize-ease"),!f&&!d?(f=this.headerSize,D.classList.add(v.RESIZE_LOCK)):D.classList.remove(v.RESIZE_LOCK);const I=D.clientHeight,w=this.getViewState(A.id);let T=f;if(d&&(T=Math.max(I-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(T+E*this.minSize>S)T-=T+E*this.minSize-S;else{const R=this.getPanelFullHeight(A.id);T+R<S&&(T+=S-(T+R))}if(this.rendered){let R;f===this.headerSize?R=I:R=T,R!==this.headerSize&&(w.size=R)}return this.storeState(),w.nextSize=T,y||setTimeout(()=>{D.classList.remove("resize-ease")},200),d?T-(I-f):f-I}getAvailableSize(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}setSizeHorizontal(E,f,d,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientWidth,D=this.splitPanelService.panels[E];if(!D)return 0;y||D.classList.add("resize-ease-horizontal"),!f&&!d?(f=this.headerSize,D.classList.add(v.RESIZE_LOCK)):D.classList.remove(v.RESIZE_LOCK);const I=D.clientWidth,w=this.getViewState(A.id);let T=f;if(d&&(T=Math.max(I-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(T+E*this.minSize>S)T-=T+E*this.minSize-S;else{const R=this.getPanelFullWidthHorizontal(A.id);T+R<S&&(T+=S-(T+R))}if(this.rendered){let R;f===this.headerSize?R=I:R=T,R!==this.headerSize&&(w.size=R)}return this.storeState(),w.nextSize=T,y||setTimeout(()=>{D.classList.remove("resize-ease-horizontal")},200),d?T-(I-f):f-I}getAvailableSizeHorizontal(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientWidth;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}getPanelFullWidthHorizontal(E){return Object.keys(this.state).filter(f=>this.views.find(d=>d.id===f)&&f!==E).reduce((f,d)=>f+(this.state[d].collapsed?this.headerSize:this.state[d].hidden?0:this.state[d].size),0)}handleContextKeyChange(){Array.from(this.viewsWithContextKey.values()).forEach(E=>{this.contextKeyService.match(E.when)||this.contextKeyService.match(this.forceRevealContextKeys.get(E.id).when)?this.appendView(E):this.disposeView(E.id)})}fillKeysInWhenExpr(E,f){this.contextKeyService.getKeysInWhen(f).forEach(y=>{E.add(y)})}};t.AccordionService=u,n.__decorate([(0,l.Autowired)(),n.__metadata("design:type",m.SplitPanelManager)],u.prototype,"splitPanelManager",void 0),n.__decorate([(0,l.Autowired)(s.AbstractMenuService),n.__metadata("design:type",s.AbstractMenuService)],u.prototype,"menuService",void 0),n.__decorate([(0,l.Autowired)(s.AbstractContextMenuService),n.__metadata("design:type",s.AbstractContextMenuService)],u.prototype,"ctxMenuService",void 0),n.__decorate([(0,l.Autowired)(s.IMenuRegistry),n.__metadata("design:type",s.IMenuRegistry)],u.prototype,"menuRegistry",void 0),n.__decorate([(0,l.Autowired)(_.CommandRegistry),n.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),n.__decorate([(0,l.Autowired)(s.ICtxMenuRenderer),n.__metadata("design:type",s.ICtxMenuRenderer)],u.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,l.Autowired)(),n.__metadata("design:type",_.ViewContextKeyRegistry)],u.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,l.Autowired)(_.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),n.__decorate([(0,l.Autowired)(p.LayoutState),n.__metadata("design:type",p.LayoutState)],u.prototype,"layoutState",void 0),n.__decorate([(0,l.Autowired)(g.IProgressService),n.__metadata("design:type",Object)],u.prototype,"progressService",void 0),n.__decorate([(0,l.Autowired)(_.ILogger),n.__metadata("design:type",Object)],u.prototype,"logger",void 0),n.__decorate([(0,_.OnEvent)(_.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.ResizeEvent]),n.__metadata("design:returntype",void 0)],u.prototype,"onResize",null),t.AccordionService=u=n.__decorate([(0,l.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Boolean])],u),t.AccordionServiceFactory=Symbol("AccordionServiceFactory")},70936:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Panel=t.AccordionContainer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(1149),m=e(43718),p=e(9522),s=e(95867),g=({alignment:h="vertical",views:u,containerId:c,headerSize:E=24,minSize:f=120,className:d,noRestore:y,style:b})=>{const A=(0,l.useInjectable)(v.LayoutViewSizeConfig),S=(0,l.useInjectable)(p.AccordionServiceFactory)(c,y);S.alignment=h;const D=(0,l.useAutorun)(S.visibleViews);(0,l.useAutorun)(S.stateObservable);const I=(0,o.useMemo)(()=>E||A.accordionHeaderSizeHeight,[E]);return o.default.useEffect(()=>{if(u.length)for(const w of u)S.appendView(w)},[u]),o.default.useEffect(()=>{S.initConfig({headerSize:I,minSize:f})},[]),o.default.createElement(_.SplitPanel,{className:(0,r.default)(d,{horizontal:h==="horizontal"}),style:b,headerSize:E,dynamicTarget:!0,id:c,resizeKeep:!1,direction:h==="horizontal"?"left-to-right":"top-to-bottom"},D.map((w,T)=>{const R=S.getViewState(w.id),M=w.titleMenu||S.getSectionToolbarMenu(w.id),{collapsed:O,nextSize:x}=R;return o.default.createElement(s.AccordionSection,{noHeader:D.length===1,onItemClick:()=>{S.handleSectionClick(w.id,!O,T)},onContextMenuHandler:S.handleContextMenu,alignment:h,header:w.name&&(0,m.replaceLocalizePlaceholder)(w.name)||w.id,viewId:w.id,key:w.id,message:w.message,description:w.description,badge:w.badge,title:w.name,expanded:!O,accordionService:S,index:T,headerSize:E,minSize:E,initialProps:w.initialProps,titleMenu:M,titleMenuContext:w.titleMenuContext,savedSize:O?E:x,flex:w.weight||1},w.component)}))};t.AccordionContainer=g,t.AccordionContainer.displayName="AccordionContainer";const a=({children:h})=>o.default.createElement("div",null,h);t.Panel=a,t.Panel.displayName="Panel"},95867:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionSection=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(41869),_=e(25918),v=e(93899),m=e(68969),p=e(68974),s=e(69589),g=e(52416),a=n.__importDefault(e(81388)),h={tabIndex:0},u=({header:c,description:E,message:f,headerClass:d,onItemClick:y,noHeader:b,children:A,badge:S,headerSize:D,viewId:I,initialProps:w,titleMenu:T,titleMenuContext:R,expanded:M,accordionService:O,onContextMenuHandler:x,alignment:k})=>{const F=(0,l.useInjectable)(g.IIconService),L=(0,l.useDesignStyles)(a.default.actions_wrap,"actions_wrap"),N=(0,l.useDesignStyles)(a.default.kt_split_panel,"kt_split_panel"),U=(0,l.useDesignStyles)(a.default.kt_split_panel_header,"kt_split_panel_header"),W=(0,l.useDesignStyles)(a.default.kt_split_panel_body,"kt_split_panel_body"),j=(0,l.useDesignStyles)(a.default.section_badge,"section_badge"),Q=o.default.useRef(null),[G,Z]=o.default.useState({header:c,description:E,message:f,badge:S});o.default.useEffect(()=>{const oe=O.onDidChangeViewTitle(({id:he,title:me,description:q,message:be,badge:ge})=>{let te=!1;const fe={...G};I===he&&me&&me!==G.header&&(fe.header=me,te=!0),I===he&&ge!==G.badge&&(fe.badge=ge,te=!0),I===he&&q&&q!==G.description&&(fe.description=q,te=!0),I===he&&be&&be!==G.message&&(fe.message=be,te=!0),te&&Z(fe)});return()=>{oe.dispose()}},[]);const $=o.default.useCallback(()=>{y()},[y]),V=o.default.useMemo(()=>({overflow:M?"auto":"hidden"}),[M]),H=(0,l.useViewState)(I,Q,!0),Y=(0,l.useInjectable)(m.IProgressService).getIndicator(I),X=A,re=o.default.useMemo(()=>M?`${D}px`:k==="horizontal"?"100%":`${D}px`,[M,D,k]);return o.default.createElement("div",{className:(0,r.default)(N,{horizontal:k==="horizontal"}),"data-view-id":I,draggable:!1},!b&&o.default.createElement("div",{...h,className:(0,r.default)(U,d),onClick:$,onContextMenu:oe=>x(oe,I),style:{height:re,lineHeight:re}},o.default.createElement("div",{className:a.default.label_wrap},o.default.createElement("i",{className:(0,r.default)((0,l.getIcon)("arrow-down"),a.default.arrow_icon,M?"":a.default.kt_mod_collapsed)}),o.default.createElement("div",{className:a.default.section_label,style:{lineHeight:D+"px"}},G.header),G.description&&o.default.createElement("div",{className:a.default.section_description,style:{lineHeight:D+"px"}},typeof G.description=="string"?(0,s.transformLabelWithCodicon)(G.description,{},F.fromString.bind(F)):G.description),G.badge&&o.default.createElement("div",{className:j},typeof G.badge=="string"?G.badge:G.badge.value)),M&&T&&o.default.createElement("div",{className:L},(0,v.isIMenu)(T)?o.default.createElement(_.InlineActionBar,{menus:T,context:R}):o.default.createElement(_.InlineMenuBar,{menus:T,context:R}))),o.default.createElement("div",{className:(0,r.default)([W,{[a.default.hide]:!M}]),style:V,ref:Q},o.default.createElement(p.ProgressBar,{className:a.default.progressBar,progressModel:Y?.progressModel}),o.default.createElement(l.ErrorBoundary,null,G.message&&o.default.createElement("div",{className:a.default.kt_split_panel_message},G.message),o.default.createElement(X,{...w,viewState:{height:H.height-(G.message?22:0),width:H.width}}))))};t.AccordionSection=u},91527:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(752),_=n.__importDefault(e(81388));t.TitleBar=r.default.memo(v=>{const m=(0,o.useDesignStyles)(_.default.titlebar,"titlebar"),p=(0,o.useInjectable)(l.TabbarServiceFactory)(v.side),s=r.default.useCallback(a=>{v.containerId&&v.side&&p.handleDragStart(a,v.containerId)},[v.containerId,v.side,p]),g=r.default.useCallback(a=>{p.handleDragEnd(a)},[p]);return r.default.createElement("div",{className:m,style:{height:v.height}},!v.draggable&&r.default.createElement("h1",null,v.title),!!v.draggable&&r.default.createElement("h1",{draggable:!0,style:{cursor:"pointer"},onDragStart:s,onDragEnd:g},v.title),v.menubar||null)}),t.TitleBar.displayName="TitleBar"},75053:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RETRACT_PANEL_COMMAND=t.EXPAND_PANEL_COMMAND=t.IS_VISIBLE_PANEL_COMMAND=t.IS_VISIBLE_EXTEND_VIEW_COMMAND=t.IS_VISIBLE_VIEW_COMMAND=t.TOGGLE_PANEL_COMMAND=t.TOGGLE_EXTEND_VIEW_COMMAND=t.TOGGLE_VIEW_COMMAND=t.WORKBENCH_ACTION_CLOSEPANEL=t.WORKBENCH_ACTION_CLOSESIDECAR=t.RETRACT_BOTTOM_PANEL=t.EXPAND_BOTTOM_PANEL=t.IS_VISIBLE_RIGHT_PANEL_COMMAND=t.IS_VISIBLE_LEFT_PANEL_COMMAND=t.IS_VISIBLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_RIGHT_PANEL_COMMAND=t.TOGGLE_LEFT_PANEL_COMMAND=void 0;const n=e(41869);t.TOGGLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.toggle",delegate:"main-layout.view.toggle"},t.TOGGLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.toggle",delegate:"main-layout.extend-view.toggle"},t.TOGGLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.toggle",delegate:"main-layout.panel.toggle"},t.IS_VISIBLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.is-visible",delegate:"main-layout.panel.is-visible"},t.IS_VISIBLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.is-visible",delegate:"main-layout.view.is-visible"},t.IS_VISIBLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.is-visible",delegate:"main-layout.extend-view.is-visible"},t.EXPAND_BOTTOM_PANEL={id:"main-layout.bottom-panel.expand",delegate:"main-layout.panel.expand"},t.RETRACT_BOTTOM_PANEL={id:"main-layout.bottom-panel.retract",delegate:"main-layout.panel.retract"},t.WORKBENCH_ACTION_CLOSESIDECAR={id:"workbench.action.closeSidebar",label:"%main-layout.sidebar.hide%"},t.WORKBENCH_ACTION_CLOSEPANEL={id:"workbench.action.closePanel"},t.TOGGLE_VIEW_COMMAND={id:"main-layout.view.toggle",label:"%main-layout.view.toggle%"},t.TOGGLE_EXTEND_VIEW_COMMAND={id:"main-layout.extend-view.toggle",label:"%main-layout.extend-view.toggle%"},t.TOGGLE_PANEL_COMMAND={id:"main-layout.panel.toggle",iconClass:(0,n.getIcon)("minus"),label:"%main-layout.panel.toggle%"},t.IS_VISIBLE_VIEW_COMMAND={id:"main-layout.view.is-visible"},t.IS_VISIBLE_EXTEND_VIEW_COMMAND={id:"main-layout.extend-view.is-visible"},t.IS_VISIBLE_PANEL_COMMAND={id:"main-layout.panel.is-visible"},t.EXPAND_PANEL_COMMAND={id:"main-layout.panel.expand",label:"%layout.tabbar.expand%",iconClass:(0,n.getIcon)("expand")},t.RETRACT_PANEL_COMMAND={id:"main-layout.panel.retract",label:"%layout.tabbar.retract%",iconClass:(0,n.getIcon)("shrink")}},25072:(P,t,e)=>{"use strict";var n;n={value:!0},t.s=void 0;const r=e(41869),o=e(17793);t.s={[r.SlotLocation.top]:{modules:["@opensumi/ide-menu-bar"]},[r.SlotLocation.action]:{modules:["@opensumi/ide-toolbar-action"]},[r.SlotLocation.view]:{modules:[o.DROP_VIEW_CONTAINER,"@opensumi/ide-explorer","@opensumi/ide-search","@opensumi/ide-scm","@opensumi/ide-debug","@opensumi/ide-extension-manager","@opensumi/ide-notebook"]},[r.SlotLocation.extendView]:{modules:[o.DROP_EXTEND_VIEW_CONTAINER]},[r.SlotLocation.main]:{modules:["@opensumi/ide-editor"]},[r.SlotLocation.panel]:{modules:[o.DROP_PANEL_CONTAINER,"@opensumi/ide-terminal-next","@opensumi/ide-output","debug-console","@opensumi/ide-markers"]},[r.SlotLocation.statusBar]:{modules:["@opensumi/ide-status-bar"]},[r.SlotLocation.extra]:{modules:["breadcrumb-menu"]}}},45395:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelDropArea=t.ExtendViewDropArea=t.ViewDropArea=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(17793),_=n.__importDefault(e(36623)),v=g=>{const{location:a}=g,h=(0,o.useInjectable)(l.IMainLayoutService),u=r.default.useCallback(c=>{var E;const f=(E=c.dataTransfer)===null||E===void 0?void 0:E.getData("containerId");h.moveContainerTo(f,a),h.hideDropArea()},[h,a]);return r.default.createElement("div",{className:_.default.drop_area,onDrop:u,onDragOver:c=>{c.preventDefault()}},(0,o.localize)("main-layout.drop-area.tip"))},m=()=>r.default.createElement(v,{location:o.SlotLocation.view});t.ViewDropArea=m;const p=()=>r.default.createElement(v,{location:o.SlotLocation.extendView});t.ExtendViewDropArea=p;const s=()=>r.default.createElement(v,{location:o.SlotLocation.panel});t.PanelDropArea=s},7480:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(17793),_=e(9522),v=e(22537),m=e(53576),p=e(752),s=e(58296);let g=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[m.MainLayoutModuleContribution,{token:l.IMainLayoutService,useClass:v.LayoutService},{token:l.IViewsRegistry,useClass:s.ViewsRegistry},{token:p.TabbarServiceFactory,useFactory:p.TabbarServiceFactoryFn},{token:_.AccordionServiceFactory,useFactory:h=>(u,c)=>h.get(l.IMainLayoutService).getAccordionService(u,c)}],this.contributionProvider=l.MainLayoutContribution}};t.MainLayoutModule=g,t.MainLayoutModule=g=n.__decorate([(0,r.Injectable)()],g)},5567:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoFocusedInput=void 0;const r=e(85608).__importStar(e(14041)),o=e(97267),l=e(48560),_=e(17793),v=({containerId:m,...p})=>{const s=(0,l.useInjectable)(_.IMainLayoutService),g=(0,r.useRef)(null),a=r.default.useCallback(()=>{g&&g.current&&queueMicrotask(()=>{var h;return(h=g.current)===null||h===void 0?void 0:h.focus()})},[g.current]);return(0,r.useEffect)(()=>{a();const h=s.getTabbarHandler(m),u=h?.onActivate(a);return()=>{u?.dispose()}},[s]),r.default.createElement(o.Input,{ref:g,...p})};t.AutoFocusedInput=v},22537:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(81878),v=e(95416),m=e(93899),p=e(43718),s=e(28423),g=e(52416),a=e(17793),h=e(9522),u=e(752),c=e(58999),E={[l.SlotLocation.view]:{currentId:void 0,size:void 0},[l.SlotLocation.extendView]:{currentId:"",size:void 0},[l.SlotLocation.panel]:{currentId:void 0,size:void 0},containerLocations:{}};let f=class extends l.WithEventBus{constructor(){super(...arguments),this.handleMap=new Map,this.tabbarServices=new Map,this.accordionServices=new Map,this.pendingViewsMap=new Map,this.viewToContainerMap=new Map,this.disposableMap=new Map,this.state={},this.isRestoring=new Set,this.customViews=new Map,this.debug=(0,p.getDebugLogger)(),this.viewReady=new p.Deferred,this.restoreTabbarService=async y=>{this.state=(0,_.fixLayout)(this.layoutState.getState(v.LAYOUT_STATE.MAIN,E));const{currentId:b,size:A}=this.state[y.location]||{};if(y.prevSize=A,this.state.containerLocations){for(const[D,I]of Object.entries(this.state.containerLocations))if(I===y.location&&!this.isDropContainer(D)){const w=this.findTabbarServiceByContainerId(D);w&&w.location!==y.location?this.moveContainerTo(D,y.location):(delete this.state.containerLocations[D],this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state))}}const S=this.getDefaultContainer(y);this.restoreContainerId(y,b,S)},this.holdTabbarComponent=new Map,this.tabbarUpdateSet=new Set}didMount(){for(const[b,A]of this.pendingViewsMap.entries())A.forEach(({view:S,props:D})=>{this.collectViewComponent(S,b,D)});for(const b of this.contributions.getContributions())b.onDidRender&&b.onDidRender();const y=[];this.tabbarServices.forEach(b=>{l.slotRendererRegistry.isTabbar(b.location)&&b.containersMap.size>0&&y.push(b.viewReady.promise)}),Promise.all(y).then(()=>{this.viewReady.resolve()})}storeState(y,b){this.isRestoring.has(y.location)||(this.state[y.location]={currentId:b,size:y.prevSize},this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state))}onThemeChange(y){var b,A,S,D,I;const w=y.payload.theme;localStorage.setItem("theme",JSON.stringify({menuBarBackground:(b=w.getColor("kt.menubar.background"))===null||b===void 0?void 0:b.toString(),sideBarBackground:(A=w.getColor("sideBar.background"))===null||A===void 0?void 0:A.toString(),editorBackground:(S=w.getColor("editor.background"))===null||S===void 0?void 0:S.toString(),panelBackground:(D=w.getColor("panel.background"))===null||D===void 0?void 0:D.toString(),statusBarBackground:(I=w.getColor("statusBar.background"))===null||I===void 0?void 0:I.toString()}))}getDefaultContainer(y){var b,A,S,D;const I=this.appConfig.defaultPanels,w=I&&I[y.location];if(I&&w!==void 0){if(!w)return"";if(y.containersMap.has(w))return w;const T=this.componentRegistry.getComponentRegistryInfo(w);if(T&&((A=(b=this.appConfig.layoutConfig[y.location])===null||b===void 0?void 0:b.modules)===null||A===void 0?void 0:A.includes(w)))return T.options.containerId;this.logger.warn(`[defaultPanels] No \`${w}\` view found!`)}return(D=(S=y.visibleContainers[0])===null||S===void 0?void 0:S.options)===null||D===void 0?void 0:D.containerId}restoreContainerId(y,b,A){if((0,p.isUndefined)(b)){(0,p.isUndefined)(A)?y.updateNextContainerId():y.updateCurrentContainerId(A);return}if(b&&!this.isDropContainer(b)){if(y.containersMap.has(b)){y.updateCurrentContainerId(b);return}y.updateCurrentContainerId(A||""),y.updateNextContainerId(b);return}(b===""||this.isDropContainer(b))&&y.updateCurrentContainerId("")}findTabbarServiceByContainerId(y){let b;for(const A of this.tabbarServices.values())if(A.containersMap.has(y)){b=A;break}return b}moveContainerTo(y,b){var A;const S=this.findTabbarServiceByContainerId(y);if(!S){this.logger.error(`cannot find container: ${y}`);return}const D=S.getContainer(y);if(!D){this.logger.error(`cannot find container: ${y}`);return}if(((A=D.options)===null||A===void 0?void 0:A.draggable)===!1){this.logger.warn(`container: ${y} is not draggable`);return}const I=this.getTabbarService(b);S.removeContainer(y),(!S.visibleContainers.length||S.currentContainerId.get()===y)&&this.toggleSlot(S.location,!1),I.dynamicAddContainer(y,D);const w=this.injector.get(c.TabBarHandler,[y,this.getTabbarService(I.location)]);this.handleMap.set(y,w),this.state.containerLocations||(this.state.containerLocations={}),this.state.containerLocations[y]=b}showDropAreaForContainer(y){const b=this.findTabbarServiceByContainerId(y),A=this.tabbarServices.get(l.SlotLocation.panel),S=this.tabbarServices.get(l.SlotLocation.extendView),D=this.tabbarServices.get(l.SlotLocation.view);if(!b){this.logger.error(`cannot find container: ${y}`);return}const I={[l.SlotLocation.extendView]:[A,D],[l.SlotLocation.panel]:[S,D],[l.SlotLocation.view]:[A,S]},w={[l.SlotLocation.panel]:a.DROP_PANEL_CONTAINER,[l.SlotLocation.extendView]:a.DROP_EXTEND_VIEW_CONTAINER,[l.SlotLocation.view]:a.DROP_VIEW_CONTAINER};(0,s.transaction)(T=>{var R;(R=I[b?.location])===null||R===void 0||R.forEach(M=>{M?.updateCurrentContainerId(w[M?.location],T)})})}hideDropArea(){const y=this.tabbarServices.get(l.SlotLocation.panel),b=this.tabbarServices.get(l.SlotLocation.extendView),A=this.tabbarServices.get(l.SlotLocation.view);(0,s.transaction)(S=>{y?.currentContainerId.get()===a.DROP_PANEL_CONTAINER&&y.updateCurrentContainerId(y.previousContainerId||"",S),b?.currentContainerId.get()===a.DROP_EXTEND_VIEW_CONTAINER&&b.updateCurrentContainerId(b.previousContainerId||"",S),A?.currentContainerId.get()===a.DROP_VIEW_CONTAINER&&A.updateCurrentContainerId(A.previousContainerId||"",S)})}isVisible(y){return!!this.getTabbarService(y).currentContainerId.get()}isViewVisible(y){const b=this.getTabbarHandler(y);if(!b||!b.isActivated())return!1;const A=b.accordionService.getViewState(y);return!A.collapsed&&!A.hidden}toggleSlot(y,b,A){var S;const D=this.getTabbarService(y);if(!D){this.debug.error(`Unable to switch panels because no TabbarService corresponding to \`${y}\` was found.`);return}b===!0?D.updateCurrentContainerId(this.findNonDropContainerId(D)):b===!1?D.updateCurrentContainerId(""):D.updateCurrentContainerId(D.currentContainerId.get()?"":this.findNonDropContainerId(D)),D.currentContainerId.get()&&A&&((S=D.resizeHandle)===null||S===void 0||S.setSize(A))}isDropContainer(y){return[a.DROP_PANEL_CONTAINER,a.DROP_EXTEND_VIEW_CONTAINER,a.DROP_VIEW_CONTAINER].includes(y)}findNonDropContainerId(y){const b=y.currentContainerId.get();if(b&&!this.isDropContainer(b))return b;if(y.previousContainerId&&!this.isDropContainer(y.previousContainerId))return y.previousContainerId;for(const A of y.containersMap.keys())if(!this.isDropContainer(A))return A;return""}getTabbarService(y){const b=this.tabbarServices.get(y)||this.injector.get(u.TabbarService,[y]);if(!this.tabbarServices.get(y)){b.addDispose(b.onCurrentChange(({currentId:S})=>{if(this.storeState(b,S),this.eventBus.fire(new l.ExtensionActivateEvent({topic:"onView",data:S})),S&&a.SUPPORT_ACCORDION_LOCATION.has(b.location)){const D=this.getAccordionService(S);D?.tryUpdateResize(),D?.expandedViews.forEach(I=>{this.eventBus.fire(new l.ExtensionActivateEvent({topic:"onView",data:I.id}))})}})),b.viewReady.promise.then(()=>(this.isRestoring.add(b.location),b.restoreState())).then(()=>this.restoreTabbarService(b)).then(()=>{this.isRestoring.delete(b.location)}).catch(S=>{this.isRestoring.delete(b.location),this.logger.error(`[TabbarService:${y}] restore state error`,S)});const A=(0,r.default)(()=>this.storeState(b,b.currentContainerId.get()),100);if(b.addDispose(b.onSizeChange(A)),y===l.SlotLocation.panel){const S=(0,r.default)(()=>void this.bottomExpanded,100);b.addDispose(b.onSizeChange(()=>S))}this.tabbarServices.set(y,b)}return b}getAllAccordionService(){return this.accordionServices}getAccordionService(y,b){let A=this.accordionServices.get(y);return A||(A=this.injector.get(h.AccordionService,[y,b]),this.accordionServices.set(y,A)),A}getTabbarHandler(y){let b=this.doGetTabbarHandler(y);if(!b){const A=this.viewToContainerMap.get(y);A?b=this.doGetTabbarHandler(A||""):this.debug.warn(`${y} view tabbar not found.`)}return b}getContainer(y){for(const b of this.tabbarServices.values()){const A=b.getContainer(y);if(A)return A}}getExtraTopMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarTopExtra})}getExtraMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarExtra})}doGetTabbarHandler(y){let b=this.handleMap.get(y);if(!b){let A;for(const S of this.tabbarServices.values())if(S.getContainer(y)){A=S.location;break}A&&(b=this.injector.get(c.TabBarHandler,[y,this.getTabbarService(A)]),this.handleMap.set(y,b))}return b}collectTabbarComponent(y,b,A,S){if(S&&this.debug.warn("collectTabbarComponent api warning: Please move react component into options.component!"),A=this.mapSideToLocation(A),b.hideIfEmpty&&!y.length&&!b.component){this.holdTabbarComponent.set(b.containerId,{views:y,options:b,side:A}),this.tabbarUpdateSet.has(b.containerId)&&this.tryUpdateTabbar(b.containerId);const I=this.getAccordionService(b.containerId);return I.addDispose(I.onBeforeAppendViewEvent(()=>{this.tryUpdateTabbar(b.containerId)})),I.addDispose(I.onAfterDisposeViewEvent(()=>{I.views.length===0&&(this.disposeContainer(b.containerId),this.holdTabbarComponent.set(b.containerId,{views:y,options:b,side:A}))})),b.containerId}return this.getTabbarService(A).registerContainer(b.containerId,{views:y,options:b}),y.forEach(I=>{this.viewToContainerMap.set(I.id,b.containerId)}),b.containerId}mapSideToLocation(y){switch(y){case"left":return l.SlotLocation.view;case"right":return l.SlotLocation.extendView;case"bottom":return l.SlotLocation.panel;default:return y}}getViewAccordionService(y){const b=this.viewToContainerMap.get(y);if(b)return this.getAccordionService(b)}collectViewComponent(y,b,A={},S){this.customViews.set(y.id,y),this.viewToContainerMap.set(y.id,b);const D=this.getAccordionService(b);return A&&(y.initialProps=A),D.appendView(y,S?.isReplace),D.views.length===1&&(this.tabbarUpdateSet.add(b),this.tryUpdateTabbar(b)),S?.fromExtension&&this.disposableMap.set(y.id,this.commandRegistry.registerCommand({id:`${y.id}.focus`},{execute:async()=>(await this.ensureViewReady(y.id),this.commandService.executeCommand(`workbench.view.extension.${b}`,{forceShow:!0}))})),b}ensureViewReady(y){const b=this.viewToContainerMap.get(y),A=new p.Deferred,S=this.getAccordionService(b);return S.visibleViews.get().find(D=>D.id===y)?A.resolve():S.addDispose(S.onAfterAppendViewEvent(D=>{D===y&&A.resolve()})),A.promise}tryUpdateTabbar(y){const b=this.holdTabbarComponent.get(y);b&&(this.getTabbarService(b.side).registerContainer(y,{views:b.views,options:b.options}),this.tabbarUpdateSet.delete(y),this.holdTabbarComponent.delete(y))}replaceViewComponent(y,b){const A=this.viewToContainerMap.get(y.id);if(!A){this.debug.warn(`The container corresponding to \`${y.id}\` was not found, please check the incoming parameters!`);return}const S=this.customViews.get(y.id);S&&(y=Object.assign(S,y)),this.collectViewComponent(y,A,b,{isReplace:!0})}disposeViewComponent(y){const b=this.disposableMap.get(y);b&&b.dispose();const A=this.viewToContainerMap.get(y);if(!A){this.debug.warn(`The container corresponding to \`${y}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(A).disposeView(y)}revealView(y){const b=this.viewToContainerMap.get(y);if(!b){this.debug.warn(`The container corresponding to \`${y}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(b).revealView(y)}disposeContainer(y){let b;for(const A of this.tabbarServices.values())if(A.getContainer(y)){b=A.location;break}b?this.getTabbarService(b).disposeContainer(y):this.debug.warn(`The Tabbar to the \`${y}\` was not found.`)}expandBottom(y){const b=this.getTabbarService(l.SlotLocation.panel);b.currentContainerId.get()||b.updateCurrentContainerId(b.currentContainerId.get()||b.previousContainerId||b.containersMap.keys().next().value),b.doExpand(y),this.contextKeyService.createKey("bottomFullExpanded",b.isExpanded)}get bottomExpanded(){const y=this.getTabbarService(l.SlotLocation.panel);return this.contextKeyService.createKey("bottomFullExpanded",y.isExpanded),y.isExpanded}};t.LayoutService=f,n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],f.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(a.MainLayoutContribution),n.__metadata("design:type",Object)],f.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],f.prototype,"menus",void 0),n.__decorate([(0,o.Autowired)(l.CommandRegistry),n.__metadata("design:type",Object)],f.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(l.CommandService),n.__metadata("design:type",Object)],f.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",v.LayoutState)],f.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(l.AppConfig),n.__metadata("design:type",Object)],f.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(l.IContextKeyService),n.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(l.ComponentRegistry),n.__metadata("design:type",Object)],f.prototype,"componentRegistry",void 0),n.__decorate([(0,o.Autowired)(l.ILogger),n.__metadata("design:type",Object)],f.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],f.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(m.AbstractContextMenuService),n.__metadata("design:type",m.AbstractContextMenuService)],f.prototype,"contextmenuService",void 0),n.__decorate([(0,l.OnEvent)(g.ThemeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[g.ThemeChangedEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onThemeChange",null),t.LayoutService=f=n.__decorate([(0,o.Injectable)()],f)},53576:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModuleContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(30144),_=e(68456),v=e(95416),m=e(93899),p=e(43718),s=e(92323),g=e(17793),a=e(75053),h=e(45395),u=e(68988),c=e(19951);let E=class extends p.WithEventBus{async initialize(){await this.layoutState.initStorage();const d=this.contributionProvider.getContributions();for(const A of d)A.registerComponent&&A.registerComponent(this.componentRegistry);const y=this.rendererContributionProvider.getContributions();for(const A of y)A.registerRenderer&&A.registerRenderer(o.slotRendererRegistry);const b=this.toolBarContributionProvider.getContributions();for(const A of b)A.registerToolbarItems&&A.registerToolbarItems(this.toolBarRegistry)}registerComponent(d){d.register(g.DROP_EXTEND_VIEW_CONTAINER,[],{component:h.ExtendViewDropArea,hideTab:!0,containerId:g.DROP_EXTEND_VIEW_CONTAINER}),d.register(g.DROP_PANEL_CONTAINER,[],{component:h.PanelDropArea,hideTab:!0,containerId:g.DROP_PANEL_CONTAINER}),d.register(g.DROP_VIEW_CONTAINER,[],{component:h.ViewDropArea,hideTab:!0,containerId:g.DROP_VIEW_CONTAINER})}async onStart(){this.registerSideToggleKey()}async onDidStart(){this.mainLayoutService.didMount()}registerRenderer(d){d.registerSlotRenderer(o.SlotLocation.extendView,c.RightTabRenderer,{isLatter:!0,supportedActions:{accordion:!0}}),d.registerSlotRenderer(o.SlotLocation.view,c.LeftTabRenderer,{supportedActions:{accordion:!0}}),d.registerSlotRenderer(o.SlotLocation.panel,c.BottomTabRenderer,{isLatter:!0,supportedActions:{expand:!0,toggle:!0}})}registerCommands(d){d.registerCommand(a.TOGGLE_VIEW_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.view,y,b)}}),d.registerCommand(a.TOGGLE_EXTEND_VIEW_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.extendView,y,b)}}),d.registerCommand(a.TOGGLE_PANEL_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.panel,y,b)}}),d.registerCommand(a.IS_VISIBLE_VIEW_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.view)}),d.registerCommand(a.IS_VISIBLE_EXTEND_VIEW_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.extendView)}),d.registerCommand(a.IS_VISIBLE_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.panel)}),d.registerCommand(a.TOGGLE_LEFT_PANEL_COMMAND),d.registerCommand(a.TOGGLE_RIGHT_PANEL_COMMAND),d.registerCommand(a.TOGGLE_BOTTOM_PANEL_COMMAND),d.registerCommand(a.EXPAND_BOTTOM_PANEL),d.registerCommand(a.RETRACT_BOTTOM_PANEL),d.registerCommand(a.IS_VISIBLE_LEFT_PANEL_COMMAND),d.registerCommand(a.IS_VISIBLE_RIGHT_PANEL_COMMAND),d.registerCommand(a.IS_VISIBLE_BOTTOM_PANEL_COMMAND),d.registerCommand(a.WORKBENCH_ACTION_CLOSESIDECAR,{execute:()=>Promise.all([this.mainLayoutService.toggleSlot(o.SlotLocation.view,!1),this.mainLayoutService.toggleSlot(o.SlotLocation.extendView,!1)])}),d.registerCommand(a.WORKBENCH_ACTION_CLOSEPANEL,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.panel,!1)}}),d.registerCommand({id:"view.outward.right-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!1)}}),d.registerCommand({id:"view.outward.right-panel.show"},{execute:y=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!0,y)}}),d.registerCommand({id:"view.outward.left-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!1)}}),d.registerCommand({id:"view.outward.left-panel.show"},{execute:y=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!0,y)}}),d.registerCommand({id:o.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id},{execute:()=>{this.commandService.executeCommand(a.TOGGLE_RIGHT_PANEL_COMMAND.id,!1),this.commandService.executeCommand(a.TOGGLE_LEFT_PANEL_COMMAND.id,!1)}}),d.registerCommand(o.LAYOUT_COMMANDS.OPEN_VIEW,{execute:()=>{this.commandService.executeCommand(o.QUICK_OPEN_COMMANDS.OPEN_VIEW.id)}})}registerMenus(d){d.registerMenuItem(m.MenuId.ActivityBarExtra,{submenu:m.MenuId.SettingsIconMenu,iconClass:(0,o.getIcon)("setting"),label:(0,p.localize)("layout.tabbar.setting"),order:1,group:"navigation"}),Object.entries({[o.SlotLocation.view]:[l.EXPLORER_CONTAINER_ID,l.SEARCH_CONTAINER_ID,l.SCM_CONTAINER_ID,l.DEBUG_CONTAINER_ID,l.EXTENSION_CONTAINER_ID],[o.SlotLocation.panel]:[l.MARKER_CONTAINER_ID,l.OUTPUT_CONTAINER_ID,l.DEBUG_CONSOLE_CONTAINER_ID,l.TERMINAL_CONTAINER_ID]}).forEach(([y,b],A)=>{const S=this.mainLayoutService.getTabbarService(y);S.viewReady.promise.then(()=>{b.forEach(D=>{var I,w;const T=S.getContainer(D);T&&d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:`container.toggle.${D}`,label:(w=(I=T.options)===null||I===void 0?void 0:I.title)!==null&&w!==void 0?w:D},group:`${3+A}_${y}`})})})}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_VIEW_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_EXTEND_VIEW_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_PANEL_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.EXPAND_PANEL_COMMAND,group:"5_panel",when:"!bottomFullExpanded"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.RETRACT_PANEL_COMMAND,group:"5_panel",when:"bottomFullExpanded"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:o.EDITOR_COMMANDS.TOGGLE_WORD_WRAP.id,label:"%preference.editor.wordWrap%"},group:"6_capability",toggledWhen:"config.editor.wordWrap == on"})}registerSideToggleKey(){this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+b",command:a.TOGGLE_VIEW_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+alt+b",command:a.TOGGLE_EXTEND_VIEW_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+j",command:a.TOGGLE_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:a.EXPAND_PANEL_COMMAND.id,when:"!bottomFullExpanded"}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:a.RETRACT_PANEL_COMMAND.id,when:"bottomFullExpanded"})}registerQuickOpenHandlers(d){d.registerHandler(this.quickOpenViewHandler,{title:(0,p.localize)("layout.action.openView"),commandId:o.LAYOUT_COMMANDS.QUICK_OPEN_VIEW.id,order:5,hideTab:!0})}};t.MainLayoutModuleContribution=E,n.__decorate([(0,r.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],E.prototype,"mainLayoutService",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],E.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(p.IEventBus),n.__metadata("design:type",Object)],E.prototype,"eventBus",void 0),n.__decorate([(0,r.Autowired)(_.ComponentContribution),n.__metadata("design:type",Object)],E.prototype,"contributionProvider",void 0),n.__decorate([(0,r.Autowired)(o.SlotRendererContribution),n.__metadata("design:type",Object)],E.prototype,"rendererContributionProvider",void 0),n.__decorate([(0,r.Autowired)(_.ComponentRegistry),n.__metadata("design:type",Object)],E.prototype,"componentRegistry",void 0),n.__decorate([(0,r.Autowired)(s.CommandService),n.__metadata("design:type",Object)],E.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",v.LayoutState)],E.prototype,"layoutState",void 0),n.__decorate([(0,r.Autowired)(_.TabBarToolbarContribution),n.__metadata("design:type",Object)],E.prototype,"toolBarContributionProvider",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",_.ToolbarRegistry)],E.prototype,"toolBarRegistry",void 0),n.__decorate([(0,r.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],E.prototype,"keybindingRegistry",void 0),n.__decorate([(0,r.Autowired)(u.ViewQuickOpenHandler),n.__metadata("design:type",u.ViewQuickOpenHandler)],E.prototype,"quickOpenViewHandler",void 0),t.MainLayoutModuleContribution=E=n.__decorate([(0,p.Domain)(s.CommandContribution,o.ClientAppContribution,o.SlotRendererContribution,m.MenuContribution,o.QuickOpenContribution,_.ComponentContribution)],E)},68988:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewQuickOpenItem=t.ContainerQuickOpenItem=t.ViewQuickOpenHandler=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(74404),_=e(17793);let v=class{constructor(){this.prefix="view ",this.description=(0,o.localize)("layout.action.openView")}getModel(){return{onType:(g,a)=>a(this.getViewQuickOpenItems())}}getViewQuickOpenItems(){var g;const a=this.layoutService.getAllAccordionService(),h=Array.from(a.keys());let u=[];u=u.concat(h.map((c,E)=>this.injector.get(m,[c,{groupLabel:E===0?(0,o.localize)("layout.openView.containerTitle"):"",showBorder:!1}])));for(const c of h){const E=(g=a.get(c))===null||g===void 0?void 0:g.views;if(E)for(let f=0,d=E.length;f<d;f++)u.push(this.injector.get(p,[c,E[f],{groupLabel:f===0?(0,o.formatLocalize)("layout.openView.viewTitle",String(c).toUpperCase()):"",showBorder:!1}]))}return u}getOptions(){return{}}onClose(){}};t.ViewQuickOpenHandler=v,n.__decorate([(0,r.Autowired)(l.PrefixQuickOpenService),n.__metadata("design:type",Object)],v.prototype,"quickOpenService",void 0),n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],v.prototype,"injector",void 0),t.ViewQuickOpenHandler=v=n.__decorate([(0,r.Injectable)()],v);let m=class extends l.QuickOpenItem{constructor(g,a){super(a),this.containerId=g,this.options=a}getLabel(){return String(this.containerId).toLocaleUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==l.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a?.activate(),!0}};t.ContainerQuickOpenItem=m,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],m.prototype,"layoutService",void 0),t.ContainerQuickOpenItem=m=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],m);let p=class extends l.QuickOpenItem{constructor(g,a,h){super(h),this.containerId=g,this.view=a,this.options=h}getLabel(){var g;return(g=this.view.name)===null||g===void 0?void 0:g.toUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==l.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a&&(a.activate(),a.isCollapsed(this.view.id)&&a?.setCollapsed(this.view.id,!1)),!0}};t.ViewQuickOpenItem=p,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],p.prototype,"layoutService",void 0),t.ViewQuickOpenItem=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object,Object])],p)},58999:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabBarHandler=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(17793),_=e(752);let v=class{constructor(p,s){this.containerId=p,this.tabbarService=s,this.onActivateEmitter=new o.Emitter,this.onActivate=this.onActivateEmitter.event,this.onInActivateEmitter=new o.Emitter,this.onInActivate=this.onInActivateEmitter.event,this.onCollapseEmitter=new o.Emitter,this.onCollapse=this.onCollapseEmitter.event,this.isVisible=!1,this.accordionService=this.layoutService.getAccordionService(this.containerId),s.currentContainerId.get()===this.containerId&&(this.onActivateEmitter.fire(),this.isVisible=!0),this.tabbarService.onCurrentChange(g=>{g.currentId===this.containerId?(this.onActivateEmitter.fire(),this.isVisible=!0):g.previousId===this.containerId&&(this.onInActivateEmitter.fire(),this.isVisible=!1)})}dispose(){this.tabbarService.containersMap.delete(this.containerId),this.tabbarService.disposeContainer(this.containerId)}disposeView(p){this.layoutService.disposeViewComponent(p)}activate(){this.tabbarService.updateCurrentContainerId(this.containerId)}deactivate(){this.tabbarService.updateCurrentContainerId("")}isActivated(){return this.tabbarService.currentContainerId.get()===this.containerId}show(){this.tabbarService.showContainer(this.containerId)}hide(){this.tabbarService.hideContainer(this.containerId)}setTitleComponent(p,s){const g=this.tabbarService.getContainer(this.containerId);g&&g.options&&(g.options.titleProps=s,g.options.titleComponent=p,g.fireChange(g))}setSize(p){this.layoutService.toggleSlot(this.tabbarService.location,!0,p+this.tabbarService.getBarSize())}setBadge(p){this.tabbarService.updateBadge(this.containerId,p)}getBadge(){return this.tabbarService.getContainer(this.containerId).options.badge}setIconClass(p){this.tabbarService.getContainer(this.containerId).options.iconClass=p}isCollapsed(p){return this.accordionService.getViewState(p).collapsed}setCollapsed(p,s){this.accordionService.toggleOpen(p,s)}toggleViews(p,s){for(const g of p){const a=this.accordionService.getViewState(g);this.accordionService.updateViewState(g,{...a,hidden:!s})}}updateViewTitle(p,s){this.accordionService.updateViewTitle(p,s)}updateViewDescription(p,s){this.accordionService.updateViewDesciption(p,s)}updateViewMessage(p,s){this.accordionService.updateViewMessage(p,s)}updateTitle(p){this.tabbarService.updateTitle(this.containerId,p)}setResizeLock(p){this.tabbarService.resizeHandle.lockSize(p)}};t.TabBarHandler=v,n.__decorate([(0,r.Autowired)(l.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),t.TabBarHandler=v=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,_.TabbarService])],v)},46245:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTabbarRenderer2=t.BottomTabbarRenderer=t.LeftTabbarRenderer=t.RightTabbarRenderer=t.TextElipses=t.IconElipses=t.TextTabView=t.IconTabView=t.TabbarViewBase=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(25918),m=e(25719),p=e(63373),s=e(68969),g=e(17793),a=e(19951),h=n.__importDefault(e(5330)),u=e(752);function c(T,R){return R>=T.length?[T,[]]:R<=1?[[],T]:[T.slice(0,R-1),T.slice(R-1)]}function E(T){return typeof T=="string"?parseInt(T,10)>99?"99+":T:typeof T=="object"&&T.value?T.value>99?"99+":T.value:""}const f=T=>{var R;const{TabView:M,MoreTabView:O,forbidCollapse:x,barSize:k=48,panelBorderSize:F=0,tabClassName:L,className:N,margin:U,tabSize:W,canHideTabbar:j,renderOtherVisibleContainers:Q=()=>null,disableAutoAdjust:G}=T,{side:Z,direction:$,fullSize:V}=(0,o.useContext)(a.TabbarConfig),H=(0,_.useInjectable)(u.TabbarServiceFactory)(Z),K=(0,_.useDesignStyles)(h.default.tab_bar,"tab_bar"),Y=(0,_.useDesignStyles)(h.default.bar_content,"bar_content"),X=(0,o.useMemo)(()=>G?Number.MAX_SAFE_INTEGER:Math.floor(V-(U||0)/W),[G,V,U,W]),[re,oe]=(0,o.useState)(c(H.visibleContainers.filter(fe=>{var Oe;return!(!((Oe=fe.options)===null||Oe===void 0)&&Oe.hideTab)}),X));(0,o.useEffect)(()=>{H.updateBarSize(k+F)},[]),(0,o.useEffect)(()=>{const fe=()=>{oe(c(H.visibleContainers.filter(Pe=>{var Me;return!(!((Me=Pe.options)===null||Me===void 0)&&Me.hideTab)}),X))};fe();const Oe=_.Event.any(H.onDidRegisterContainer,H.onStateChange)(fe);return()=>{Oe.dispose()}},[X]);const he=(0,_.useAutorun)(H.currentContainerId),me=(0,_.usePreference)("workbench.hideSlotTabBarWhenHidePanel",!1),q=j&&me;q&&!he&&((R=H.resizeHandle)===null||R===void 0||R.setSize(0));const[be,ge]=re;ge.forEach(fe=>{H.updateTabInMoreKey(fe.options.containerId,!0)});const te=(0,o.useCallback)((fe,Oe,Pe,Me)=>{var Be;const De=(Be=fe.options)===null||Be===void 0?void 0:Be.containerId;if(!De)return null;Oe.updateTabInMoreKey(De,!1);let _e;return o.default.createElement("li",{draggable:!0,onDragStart:ke=>{if(_e){const Te=_e.cloneNode(!0);Te.classList.add(h.default.dragging),L&&(0,_.addClassName)(Te,L),document.body.appendChild(Te),ke.persist(),requestAnimationFrame(()=>{ke.dataTransfer.setDragImage(Te,0,0),document.body.removeChild(Te)})}Oe.handleDragStart(ke,De)},onDragOver:ke=>{ke.preventDefault(),_e&&_e.classList.add("on-drag-over")},onDragLeave:()=>{_e&&_e.classList.remove("on-drag-over")},onDrop:ke=>{_e&&_e.classList.remove("on-drag-over"),Oe.handleDrop(ke,De)},onDragEnd:ke=>{Oe.handleDragEnd(ke)},key:De,id:De,onContextMenu:ke=>Oe.handleContextMenu(ke,De),onClick:ke=>Oe.handleTabClick(ke,q||x),ref:ke=>_e=ke,className:(0,r.default)({active:Pe===De},L)},o.default.createElement(M,{component:fe}))},[]);return o.default.createElement("div",{className:(0,r.default)([K,N])},o.default.createElement("div",{className:Y,style:{flexDirection:m.Layout.getTabbarDirection($)}},be.map(fe=>te(fe,H,he,Z)),Q({props:T,renderContainers:te}),ge.length?o.default.createElement("li",{key:"tab-more",onClick:fe=>{var Oe;return H.showMoreMenu(fe,be[be.length-1]&&((Oe=be[be.length-1].options)===null||Oe===void 0?void 0:Oe.containerId))},className:L},o.default.createElement(O,null)):null))};t.TabbarViewBase=f;const d=({component:T})=>{var R,M,O;const x=(0,_.useInjectable)(s.IProgressService),k=(0,_.useInjectable)(_.KeybindingRegistry),F=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab"),[L,N]=(0,o.useState)(T),U=x.getIndicator(((R=L.options)===null||R===void 0?void 0:R.containerId)||""),W=U?(0,_.useAutorun)(U.progressModel.show):!1,j=(0,o.useMemo)(()=>{const Q=L.options;return Q?.activateKeyBinding?`${Q?.title} (${k.acceleratorForKeyString(Q.activateKeyBinding,"+")})`:Q?.title},[L]);return(0,o.useEffect)(()=>{const Q=L.onChange(G=>{N({...G})});return()=>{Q.dispose()}},[L]),o.default.createElement("div",{className:F},o.default.createElement("div",{className:(0,r.default)((M=L.options)===null||M===void 0?void 0:M.iconClass,"activity-icon"),title:j}),W?o.default.createElement(l.Badge,{className:h.default.tab_badge},o.default.createElement("span",{className:h.default.icon_wrapper},o.default.createElement(l.Icon,{icon:"time-circle"}))):((O=L.options)===null||O===void 0?void 0:O.badge)&&o.default.createElement(l.Badge,{className:h.default.tab_badge},E(L.options.badge)))};t.IconTabView=d;const y=({component:T})=>{var R,M,O;const[x,k]=(0,o.useState)(T);return(0,o.useEffect)(()=>{const F=x.onChange(L=>{k({...L})});return()=>{F.dispose()}},[x]),o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},(M=(R=x.options)===null||R===void 0?void 0:R.title)===null||M===void 0?void 0:M.toUpperCase()),((O=x.options)===null||O===void 0?void 0:O.badge)&&o.default.createElement(l.Badge,{className:h.default.tab_badge},E(x.options.badge)))};t.TextTabView=y;const b=()=>{const T=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab");return o.default.createElement("div",{className:T},o.default.createElement("div",{className:(0,r.default)((0,_.getIcon)("ellipsis"),"activity-icon"),title:"extra tabs"}))};t.IconElipses=b;const A=()=>o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},o.default.createElement("i",{className:(0,_.getIcon)("doubleright")})));t.TextElipses=A;const S=T=>{const{barSize:R=48,style:M}=T,{side:O}=(0,o.useContext)(a.TabbarConfig),x=(0,_.useInjectable)(u.TabbarServiceFactory)(O),k=(0,_.useDesignStyles)(h.default.right_tab_bar,"right_tab_bar"),F=(0,_.useDesignStyles)(h.default.right_tab,"right_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.RIGHT_TABBAR,className:k,style:M,onContextMenu:x.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:R,panelBorderSize:1}))};t.RightTabbarRenderer=S;const D=({renderOtherVisibleContainers:T,isRenderExtraTopMenus:R=!0,renderExtraMenus:M,tabbarViewProps:O})=>{const{side:x}=(0,o.useContext)(a.TabbarConfig),k=(0,_.useInjectable)(g.IMainLayoutService),F=(0,_.useInjectable)(u.TabbarServiceFactory)(x),L=(0,o.useMemo)(()=>k.getExtraTopMenu(),[k]),N=(0,o.useMemo)(()=>k.getExtraMenu(),[k]),U=(0,_.useDesignStyles)(h.default.left_tab_bar,"left_tab_bar"),W=(0,_.useDesignStyles)(h.default.left_tab,"left_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.LEFT_TABBAR,className:U,onContextMenu:F.handleContextMenu},R&&o.default.createElement(v.InlineMenuBar,{className:(0,r.default)(h.default.vertical_icons,h.default.extra_top_menus),menus:L}),o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,className:h.default.left_tab_content,tabClassName:W,TabView:t.IconTabView,barSize:48,margin:90,panelBorderSize:1,renderOtherVisibleContainers:T,...O}),M||o.default.createElement(v.InlineMenuBar,{className:h.default.vertical_icons,menus:N}))};t.LeftTabbarRenderer=D;const I=()=>{const{side:T}=(0,o.useContext)(a.TabbarConfig),R=(0,_.useInjectable)(u.TabbarServiceFactory)(T),M=(0,_.useDesignStyles)(h.default.bottom_bar_container,"bottom_bar_container"),O=(0,_.useDesignStyles)(h.default.bottom_tab,"bottom_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.BOTTOM_TABBAR,onContextMenu:R.handleContextMenu,className:(0,r.default)(M,"next_bottom_bar")},o.default.createElement(t.TabbarViewBase,{tabSize:80,MoreTabView:t.TextElipses,tabClassName:O,TabView:t.TextTabView,barSize:24,panelBorderSize:1,canHideTabbar:!0}))};t.BottomTabbarRenderer=I;const w=T=>{const{barSize:R=32,style:M}=T,{side:O}=(0,o.useContext)(a.TabbarConfig),x=(0,_.useInjectable)(u.TabbarServiceFactory)(O),k=(0,_.useDesignStyles)(h.default.ai_right_tab_bar,"ai_right_tab_bar"),F=(0,_.useDesignStyles)(h.default.ai_right_tab,"ai_right_tab");return o.default.createElement("div",{id:O,className:k,style:M,onContextMenu:x.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:32,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:R,panelBorderSize:1}))};t.ChatTabbarRenderer2=w},66368:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabPanelRenderer=t.LeftTabPanelRenderer=t.RightTabPanelRenderer=t.ContainerView=t.BaseTabPanelView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),_=e(41869),v=e(25918),m=e(1149),p=e(68969),s=e(68974),g=e(9522),a=e(70936),h=e(91527),u=e(19951),c=n.__importDefault(e(5330)),E=e(752),f=o.default.memo(({children:T})=>T,(T,R)=>!(T.visible||R.visible)),d={display:"block"},y={display:"none"},b=T=>{const{PanelView:R,panelSize:M,id:O,PanelViewProps:x}=T,{side:k}=o.default.useContext(u.TabbarConfig),F=(0,_.useInjectable)(_.AppConfig),L=F.panelSizes&&F.panelSizes[k],N=(0,_.useInjectable)(E.TabbarServiceFactory)(k),U=(0,_.useAutorun)(N.currentContainerId),W=(0,_.useDesignStyles)(c.default.tab_panel,"tab_panel"),j=(0,_.useDesignStyles)(c.default.tab_panel_hidden,"tab_panel_hidden");return o.default.useEffect(()=>{N.updatePanelSize(L||M||335)},[]),o.default.createElement("div",{id:O,className:(0,r.default)("kt-tab-panel",W,{[j]:!U})},N.visibleContainers.map(Q=>{var G;const Z=(G=Q.options)===null||G===void 0?void 0:G.containerId;if(!Z)return null;const $=N.getTitleToolbarMenu(Z);return o.default.createElement("div",{key:Z,className:(0,r.default)(c.default.panel_wrap,Z),"data-viewlet-id":Z,style:U===Z?d:y,id:O},o.default.createElement(_.ErrorBoundary,null,o.default.createElement(f,{visible:U===Z},o.default.createElement(R,{titleMenu:$,side:k,component:Q,...x}))))}))};t.BaseTabPanelView=b;const A=({component:T,titleMenu:R,side:M,renderContainerWrap:O,className:x,customTitleBar:k})=>{var F,L;const N=o.default.useRef(),U=o.default.useRef(null),W=(0,_.useInjectable)(_.AppConfig),{title:j,titleComponent:Q,component:G,containerId:Z,draggable:$}=T.options||{},V=(0,_.useInjectable)(l.INJECTOR_TOKEN),H=(0,_.useInjectable)(m.LayoutViewSizeConfig),K=(0,o.useCallback)(he=>{V.get(g.AccordionServiceFactory)(Z).handleContextMenu(he)},[Z]);if(!Z)return null;const X=(0,_.useInjectable)(p.IProgressService).getIndicator(Z);if(!X)return null;const re=(0,_.useViewState)(M,U),oe=o.default.useCallback(he=>O?O({children:he}):he,[O]);return o.default.createElement("div",{ref:U,className:(0,r.default)(c.default.view_container,x)},!!k&&k,!G&&o.default.createElement("div",{onContextMenu:K,className:c.default.panel_titlebar},j?o.default.createElement(h.TitleBar,{containerId:Z,side:M,title:j,draggable:$,height:H.panelTitleBarHeight,menubar:o.default.createElement(v.InlineActionBar,{menus:R})}):null,Q&&o.default.createElement("div",{className:c.default.panel_component},o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{Component:Q,initialProps:(F=T.options)===null||F===void 0?void 0:F.titleProps})))),o.default.createElement("div",{className:c.default.container_wrap,ref:he=>N.current=he},o.default.createElement(s.ProgressBar,{progressModel:X.progressModel}),oe(G?o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:re,...(L=T.options)===null||L===void 0?void 0:L.initialProps},Component:G})):o.default.createElement(a.AccordionContainer,{views:T.views,minSize:T.options.miniSize,containerId:T.options.containerId}))))};t.ContainerView=A;const S=({component:T,titleMenu:R,side:M})=>{var O,x,k,F;const L=o.default.useRef(),N=o.default.useRef(null),U=(0,_.useInjectable)(_.AppConfig),W=(0,_.useInjectable)(E.TabbarServiceFactory)(M),j=(0,_.useDesignStyles)(c.default.panel_title_bar,"panel_title_bar"),Q=(0,_.useDesignStyles)(c.default.panel_toolbar_container,"panel_toolbar_container"),G=(0,_.useViewState)(M,N),Z=(0,_.useInjectable)(m.LayoutViewSizeConfig),$=(0,_.useInjectable)(p.IProgressService),{component:V,containerId:H}=T.options||{},K=T.options&&T.options.titleComponent;if(!H)return null;const Y=$.getIndicator(H);return Y?o.default.createElement("div",{ref:N,className:c.default.panel_container},o.default.createElement("div",{className:j,style:{height:Z.panelTitleBarHeight}},o.default.createElement("h1",null,(x=(O=T.options)===null||O===void 0?void 0:O.title)===null||x===void 0?void 0:x.toUpperCase()),o.default.createElement("div",{className:c.default.title_component_container},K&&o.default.createElement(_.ComponentRenderer,{Component:K,initialProps:(k=T.options)===null||k===void 0?void 0:k.titleProps})),o.default.createElement("div",{className:Q},R&&o.default.createElement(v.InlineActionBar,{menus:R}),W.commonTitleMenu&&o.default.createElement(v.InlineMenuBar,{menus:W.commonTitleMenu,moreAtFirst:!0}))),o.default.createElement("div",{className:c.default.container_wrap,ref:X=>L.current=X},o.default.createElement(s.ProgressBar,{progressModel:Y.progressModel}),V?o.default.createElement(_.ConfigProvider,{value:U},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:G,...(F=T.options)===null||F===void 0?void 0:F.initialProps},Component:V})):o.default.createElement(a.AccordionContainer,{views:T.views,alignment:"horizontal",minSize:T.options.miniSize||200,containerId:T.options.containerId}))):null},D=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.RightTabPanelRenderer=D;const I=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.LeftTabPanelRenderer=I;const w=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:S,panelSize:280});t.BottomTabPanelRenderer=w},19951:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabRenderer=t.LeftTabRenderer=t.RightTabRenderer=t.TabRendererBase=t.TabbarConfig=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(25719),m=e(63373),p=e(46245),s=e(66368),g=n.__importDefault(e(5330)),a=e(752);t.TabbarConfig=(0,o.createContext)({side:l.SlotLocation.view,direction:"left-to-right",fullSize:0}),t.TabRendererBase=(0,o.memo)(({id:E,className:f,components:d,direction:y="left-to-right",TabbarView:b,side:A,TabpanelView:S})=>{const D=(0,l.useInjectable)(a.TabbarServiceFactory)(A),I=(0,l.useInjectable)(l.IEventBus),w=(0,o.useContext)(_.PanelContext),T=(0,o.useRef)(null),[R,M]=(0,o.useState)(0);(0,o.useLayoutEffect)(()=>{D.registerResizeHandle(w),d.forEach(x=>{D.registerContainer(x.options.containerId,x)}),D.updatePanelVisibility(),D.ensureViewReady()},[d]);const O=(0,o.useCallback)(()=>{T.current&&M(T.current[v.Layout.getDomSizeProperty(y)])},[]);return(0,o.useEffect)(()=>{l.fastdom.measure(()=>{O()});let x;I.onDirective(l.ResizeEvent.createDirective(A),()=>{x&&x.dispose(),x=l.fastdom.measureAtNextFrame(()=>{O()})})},[]),o.default.createElement("div",{ref:T,id:E,className:(0,r.default)(g.default.tab_container,f),style:{flexDirection:v.Layout.getFlexDirection(y)}},o.default.createElement(t.TabbarConfig.Provider,{value:{side:A,direction:y,fullSize:R}},o.default.createElement(b,null),o.default.createElement(S,null)))});const h=({className:E,components:f,tabbarView:d,tabpanelView:y})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.extendView,direction:"right-to-left",id:m.VIEW_CONTAINERS.RIGHT_TABBAR_PANEL,className:(0,r.default)(E,"right-slot"),components:f,TabbarView:d??p.RightTabbarRenderer,TabpanelView:y??s.RightTabPanelRenderer});t.RightTabRenderer=h;const u=({className:E,components:f,tabbarView:d})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.view,direction:"left-to-right",id:m.VIEW_CONTAINERS.LEFT_TABBAR_PANEL,className:(0,r.default)(E,"left-slot"),components:f,TabbarView:d??p.LeftTabbarRenderer,TabpanelView:s.LeftTabPanelRenderer});t.LeftTabRenderer=u;const c=({className:E,components:f,tabbarView:d})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.panel,id:m.VIEW_CONTAINERS.BOTTOM_TABBAR_PANEL,direction:"bottom-to-top",className:(0,r.default)(E,"bottom-slot"),components:f,TabbarView:d??p.BottomTabbarRenderer,TabpanelView:s.BottomTabPanelRenderer});t.BottomTabRenderer=c},94813:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarBehaviorHandler=void 0;const n=e(41869),r=e(30144),o=e(75053);class l{constructor(v,m){this.location=v,this.config=m,this.accordionRestored=new Set}getIsLatter(){var v;return((v=this.config)===null||v===void 0?void 0:v.isLatter)!==void 0?this.config.isLatter:this.location==="extendView"||this.location==="panel"}wrapResizeHandle(v){const{setSize:m,setRelativeSize:p,getSize:s,getRelativeSize:g,lockSize:a,setMaxSize:h,hidePanel:u}=v,c=this.getIsLatter();return{setSize:E=>m(E,c),setRelativeSize:(E,f)=>p(E,f,c),getSize:()=>s(c),getRelativeSize:()=>g(c),setMaxSize:E=>h(E,c),lockSize:E=>a(E,c),hidePanel:E=>u(E)}}registerLocationSpecificCommands(v){const m=new n.DisposableCollection,{supportedActions:p}=this.config||{};return p?.expand&&(m.push(v.commandRegistry.registerCommand(o.EXPAND_PANEL_COMMAND,{execute:()=>{v.layoutService.expandBottom(!0)}})),m.push(v.commandRegistry.registerCommand(o.RETRACT_PANEL_COMMAND,{execute:()=>{v.layoutService.expandBottom(!1)}}))),p?.toggle&&m.push(v.commandRegistry.registerCommand(o.TOGGLE_PANEL_COMMAND,{execute:(s,g)=>{v.layoutService.toggleSlot(this.location,s,g)}})),m}registerLocationSpecificMenus(v){var m,p,s,g;const a=[];if(!((p=(m=this.config)===null||m===void 0?void 0:m.supportedActions)===null||p===void 0)&&p.expand&&a.push({command:o.EXPAND_PANEL_COMMAND.id,group:"navigation",when:"!bottomFullExpanded",order:1},{command:o.RETRACT_PANEL_COMMAND.id,group:"navigation",when:"bottomFullExpanded",order:1}),!((g=(s=this.config)===null||s===void 0?void 0:s.supportedActions)===null||g===void 0)&&g.toggle&&a.push({command:o.TOGGLE_PANEL_COMMAND.id,group:"navigation",order:2}),a.length>0)return v.menuRegistry.registerMenuItems(`tabbar/${this.location}/common`,a),v.ctxMenuService.createMenu({id:`tabbar/${this.location}/common`})}doExpand(v,m){var p,s;if(!(!((s=(p=this.config)===null||p===void 0?void 0:p.supportedActions)===null||s===void 0)&&s.expand)||!m)return;const{setRelativeSize:g}=m,a=this.getIsLatter();v?a?g(0,1):g(1,0):g(2,1)}isExpanded(v){var m,p;if(!(!((p=(m=this.config)===null||m===void 0?void 0:m.supportedActions)===null||p===void 0)&&p.expand)||!v)return!1;const{getRelativeSize:s}=v,g=s().join(",");return this.getIsLatter()?g==="0,1":g==="1,0"}handleActivateKeyBinding(v,m,p,s){var g,a;!((a=(g=this.config)===null||g===void 0?void 0:g.supportedActions)===null||a===void 0)&&a.toggle&&!s?p(m===v?"":v):p(v)}handleFullExpanded(v,m,p,s){var g,a;const{barSize:h,panelSize:u,prevSize:c}=s,{setRelativeSize:E,setSize:f}=p;v?m&&(!((a=(g=this.config)===null||g===void 0?void 0:g.supportedActions)===null||a===void 0)&&a.expand)?this.getIsLatter()?E(0,1):E(1,0):f(c||u+h):f(h)}tryRestoreAccordionSize(v,m){var p,s,g,a;if(!(!((s=(p=this.config)===null||p===void 0?void 0:p.supportedActions)===null||s===void 0)&&s.accordion))return;const{containerId:h}=v.options||{};if(!h||this.accordionRestored.has(h)||(!v||!((g=v.options)===null||g===void 0)&&g.component)&&((a=v?.options)===null||a===void 0?void 0:a.containerId)!==r.SCM_CONTAINER_ID)return;m.getAccordionService(h).restoreState(),this.accordionRestored.add(h)}}t.TabbarBehaviorHandler=l},752:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarService=t.TabbarServiceFactoryFn=t.TabbarServiceFactory=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(95416),v=e(93899),m=e(68969),p=e(38578),s=e(28423),g=e(17793),a=e(94813);t.TabbarServiceFactory=Symbol("TabbarServiceFactory");const h=E=>f=>E.get(g.IMainLayoutService).getTabbarService(f);t.TabbarServiceFactoryFn=h;const u=void 0;let c=class extends l.WithEventBus{constructor(f){super(),this.location=f,this.doChangeViewEmitter=new l.Emitter,this.onStateChangeEmitter=new l.Emitter,this.onStateChange=this.onStateChangeEmitter.event,this.shouldChangeView=(0,s.observableFromEventOpts)({owner:this,equalsFn:()=>!1},this.doChangeViewEmitter.event,()=>{}),this.containerIdObs=(0,s.observableValue)(this,u),this.currentContainerId=(0,s.derivedOpts)({owner:this,equalsFn:()=>!1},y=>(this.shouldChangeView.read(y),this.containerIdObs.read(y))),this.nextContainerId="",this.useFirstContainerId=!1,this.previousContainerId=void 0,this.containersMap=new Map,this.viewReady=new l.Deferred,this.state=new Map,this.storedState={},this.onCurrentChangeEmitter=new l.Emitter,this.onCurrentChange=this.onCurrentChangeEmitter.event,this.onSizeChangeEmitter=new l.Emitter,this.onSizeChange=this.onSizeChangeEmitter.event,this.menuId=`tabbar/${this.location}`,this.moreMenuId=`tabbar/${this.location}/more`,this.sortedContainers=[],this.disposableMap=new Map,this.tabInMoreKeyMap=new Map,this.shouldWaitForViewRender=!1,this.onDidRegisterContainerEmitter=new l.Emitter,this.isEmptyTabbar=!0,this.updatePanel=(0,r.default)(y=>{this.resizeHandle&&this.resizeHandle.hidePanel(y)},60),this._menuMap=new Map,this.handleContextMenu=(y,b)=>{y.preventDefault(),y.stopPropagation();const A=this.menuService.createMenu(this.menuId,b?this.scopedCtxKeyService:this.contextKeyService),S=(0,v.generateCtxMenu)({menus:A,args:[{containerId:b}]});this.contextMenuRenderer.show({menuNodes:S[1],anchor:{x:y.clientX,y:y.clientY}})};const d=p.slotRendererRegistry.getTabbarConfig(f);this.behaviorHandler=new a.TabbarBehaviorHandler(f,d),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithTab",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,l.localize)("layout.tabbar.toggle")},group:"0_global",when:"triggerWithTab == true"}),this.activatedKey=this.contextKeyService.createKey((0,l.getTabbarCtxKey)(this.location),""),this.behaviorHandler.registerLocationSpecificCommands({commandRegistry:this.commandRegistry,layoutService:this.layoutService}),this.commonTitleMenu=this.behaviorHandler.registerLocationSpecificMenus({menuRegistry:this.menuRegistry,ctxMenuService:this.ctxMenuService}),this.eventBus.onDirective(l.ResizeEvent.createDirective(this.location),()=>{this.onResize()})}get onDidRegisterContainer(){return this.onDidRegisterContainerEmitter.event}updateNextContainerId(f){(0,l.isUndefined)(f)?this.useFirstContainerId=!0:this.nextContainerId=f}updateCurrentContainerId(f,d){d?this.containerIdObs.set(f,d):(0,s.transaction)(y=>{this.containerIdObs.set(f,y)})}updateBadge(f,d){const y=this.getContainer(f);y&&y.options&&(y.options.badge=d),y?.fireChange(y)}getContainerState(f){return this.state.get(f)}hideContainer(f){const d=this.state.get(f);d&&(d.hidden=!0,this.onStateChangeEmitter.fire())}showContainer(f){const d=this.state.get(f);d&&(d.hidden=!1,this.onStateChangeEmitter.fire())}updatePanelVisibility(f){f===void 0&&(f=this.containersMap.size>0),this.updatePanel(f)}ensureViewReady(){(0,l.isDefined)(this.barSize)&&(0,l.isDefined)(this.panelSize)?this.resolveViewReady():this.shouldWaitForViewRender=!0}updatePanelSize(f){this.panelSize=f,(0,l.isDefined)(this.barSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}updateBarSize(f){this.barSize=f,(0,l.isDefined)(this.panelSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}resolveViewReady(){this.isEmptyTabbar?l.Event.once(this.onDidRegisterContainer)(()=>{this.viewReady.resolve()}):this.viewReady.resolve()}getBarSize(){return this.barSize}updateTabInMoreKey(f,d){const y=this.tabInMoreKeyMap.get(f);y&&y.set(d)}get visibleContainers(){const f=[];return this.containersMap.forEach(d=>{const y=d.options&&this.state.get(d.options.containerId);(!y||!y.hidden)&&f.push(d)}),f.sort((d,y)=>this.getContainerState(d.options.containerId).priority-this.getContainerState(y.options.containerId).priority)}registerResizeHandle(f){return this.resizeHandle=this.behaviorHandler.wrapResizeHandle(f),this.listenCurrentChange()}registerContainer(f,d){var y;if(this.containersMap.has(f))return;this.useFirstContainerId&&(this.useFirstContainerId=!1,this.updateCurrentContainerId(f)),this.nextContainerId===f&&this.updateCurrentContainerId(f);const b=new l.DisposableCollection,A=d.options||{containerId:f};d.options=A;const S=new l.Emitter;this.containersMap.set(f,{fireChange:I=>S.fire(I),onChange:S.event,views:d.views,options:A}),b.push({dispose:()=>{this.containersMap.delete(f),this.state.delete(f)}}),this.updatePanelVisibility(this.containersMap.size>0);let D=this.sortedContainers.findIndex(I=>{var w,T;return(((w=I.options)===null||w===void 0?void 0:w.priority)||1)<=(((T=d.options)===null||T===void 0?void 0:T.priority)||1)});D===-1&&(D=this.sortedContainers.length),this.sortedContainers.splice(D,0,d);for(let I=D;I<this.sortedContainers.length;I++){const T=(y=this.sortedContainers[I].options)===null||y===void 0?void 0:y.containerId;if(T){const R=this.storedState[T]||this.getContainerState(T)||{};this.state.set(T,{hidden:R.hidden,priority:I})}}b.push(this.registerSideEffects(d)),this.eventBus.fire(new g.TabBarRegistrationEvent({tabBarId:f})),f===this.currentContainerId.get()&&this.handleChange(f,""),this.viewContextKeyRegistry.registerContextKeyService(f,this.contextKeyService.createScoped()).createKey("view",f),this.isEmptyTabbar&&(this.isEmptyTabbar=!1),this.disposableMap.set(f,b),this.onDidRegisterContainerEmitter.fire(f)}registerSideEffects(f){var d;const y=new l.DisposableCollection;!((d=f.options)===null||d===void 0)&&d.hideTab||(y.push(this.registerHideMenu(f)),y.push(this.registerMoreMenu(f))),y.push(this.registerActivateKeyBinding(f,f.options.fromExtension));const b=this.contextKeyService.createKey(`workbench.${this.location}.${f.options.containerId}`,!0);return y.push({dispose:()=>{b.set(!1)}}),y.push(this.progressService.registerProgressIndicator(f.options.containerId)),y.push(this.registerContainerPanelRelatedCommand(f)),y}registerContainerPanelRelatedCommand(f){var d,y,b,A,S;const D=new l.DisposableCollection,I=(d=f.options)===null||d===void 0?void 0:d.containerId;return D.push(this.commandRegistry.registerCommand({id:"container.show."+I,label:(0,l.formatLocalize)("view.command.show",(b=(y=f.options)===null||y===void 0?void 0:y.title)!==null&&b!==void 0?b:I),labelLocalized:(0,l.createFormatLocalizedStr)("view.command.show",(S=(A=f.options)===null||A===void 0?void 0:A.title)!==null&&S!==void 0?S:I),category:"View"},{execute:()=>{this.updateCurrentContainerId(I)}})),D.push(this.commandRegistry.registerCommand({id:"container.hide."+I},{execute:()=>{this.updateCurrentContainerId("")}})),D.push(this.commandRegistry.registerCommand({id:"container.toggle."+I},{execute:()=>{this.currentContainerId.get()===I?this.updateCurrentContainerId(""):this.updateCurrentContainerId(I)}})),D}registerHideMenu(f){const d=new l.DisposableCollection,y=f.options.containerId;return d.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(y,d),label:f.options.title||y},group:"1_widgets"})),d}registerMoreMenu(f){const d=new l.DisposableCollection,y=f.options.containerId,b=this.scopedCtxKeyService.createKey(this.getTabInMoreCtxKey(y),!1);return this.tabInMoreKeyMap.set(y,b),d.push({dispose:()=>this.tabInMoreKeyMap.delete(y)}),d.push(this.menuRegistry.registerMenuItem(this.moreMenuId,{command:{id:this.registerMoreToggleCommand(f,d),label:f.options.title||y},group:"inline",when:`${this.getTabInMoreCtxKey(y)} == true`,toggledWhen:`${(0,l.getTabbarCtxKey)(this.location)} == ${y}`,iconClass:f.options.iconClass})),d}disposeContainer(f){var d;const y=this.disposableMap.get(f);y&&y.dispose(),this.currentContainerId.get()===f&&this.updateCurrentContainerId(((d=this.visibleContainers[0].options)===null||d===void 0?void 0:d.containerId)||"")}updateTitle(f,d){const y=this.getContainer(f);y&&(y.options.title=d)}getContainer(f){return f?this.containersMap.get(f):void 0}getTitleToolbarMenu(f){const d=this._menuMap.get(f);if(d)return d;const y=this.menuService.createMenu(v.MenuId.ViewTitle,this.viewContextKeyRegistry.getContextKeyService(f));this._menuMap.set(f,y);const b=this.disposableMap.get(f),A=[y,(0,l.toDisposable)(()=>{this._menuMap.delete(f)})];return b?b.pushAll(A):this.addDispose(A),y}doExpand(f){this.behaviorHandler.doExpand(f,this.resizeHandle)}get isExpanded(){return this.behaviorHandler.isExpanded(this.resizeHandle)}handleTabClick(f,d){const y=f.currentTarget.id;y===this.currentContainerId.get()&&!d?this.updateCurrentContainerId(""):this.updateCurrentContainerId(y)}showMoreMenu(f,d){const y=this.menuService.createMenu(this.moreMenuId,this.scopedCtxKeyService),b=(0,v.generateCtxMenu)({menus:y,args:[{lastContainerId:d}]});this.contextMenuRenderer.show({menuNodes:b[1],anchor:{x:f.clientX,y:f.clientY}})}handleDragStart(f,d){f.dataTransfer.setData("containerId",d),this.layoutService.showDropAreaForContainer(d)}handleDrop(f,d){if(f.dataTransfer.getData("containerId")){const y=f.dataTransfer.getData("containerId"),b=this.visibleContainers,A=b.findIndex(D=>y===D.options.containerId),S=b.findIndex(D=>d===D.options.containerId);this.doInsertTab(b,A,S),this.storeState()}}handleDragEnd(f){this.layoutService.hideDropArea()}restoreState(){this.storedState=this.layoutState.getState(_.LAYOUT_STATE.getTabbarSpace(this.location),{});for(const f of this.state.keys())this.storedState[f]&&this.state.set(f,this.storedState[f]);this.visibleContainers.forEach(f=>{this.tryRestoreAccordionSize(f)})}removeContainer(f){const d=this.disposableMap.get(f);d?.dispose(),this.onStateChangeEmitter.fire()}dynamicAddContainer(f,d){this.registerContainer(f,d),this.updateCurrentContainerId(f)}doInsertTab(f,d,y){const b=this.getContainerState(f[y].options.containerId).priority,A=(D,I)=>{const w=this.getContainerState(f[D].options.containerId),T=this.getContainerState(f[I].options.containerId);w.priority=T.priority};let S;if(d>y)for(S=y;S<d;S++)A(S,S+1);else for(S=y;S>d;S--)A(S,S-1);this.getContainerState(f[S].options.containerId).priority=b,this.doChangeViewEmitter.fire()}storeState(){const f={};this.state.forEach((d,y)=>{f[y]=d}),this.layoutState.setState(_.LAYOUT_STATE.getTabbarSpace(this.location),f),this.onStateChangeEmitter.fire()}registerActivateKeyBinding(f,d){const y=f.options,b=y.containerId,A=d?`workbench.view.extension.${b}`:`workbench.view.${b}`,S=new l.DisposableCollection;return S.push(this.commandRegistry.registerCommand({id:A},{execute:({forceShow:D}={})=>{this.behaviorHandler.handleActivateKeyBinding(b,this.currentContainerId.get()||"",I=>this.updateCurrentContainerId(I),D)}})),y.activateKeyBinding&&S.push(this.keybindingRegistry.registerKeybinding({command:A,keybinding:y.activateKeyBinding})),S}registerGlobalToggleCommand(){const f=`activity.bar.toggle.${this.location}`;return this.commandRegistry.registerCommand({id:f},{execute:({containerId:d})=>{this.doToggleTab(d)},isEnabled:()=>this.visibleContainers.length>1}),f}registerVisibleToggleCommand(f,d){const y=`activity.bar.toggle.${f}`;return d.push(this.commandRegistry.registerCommand({id:y},{execute:({forceShow:b}={})=>{this.doToggleTab(f,b)},isToggled:()=>!this.getContainerState(f).hidden,isEnabled:()=>this.getContainerState(f).hidden||this.visibleContainers.length!==1})),y}registerMoreToggleCommand(f,d){const{options:y}=f,{containerId:b}=y,A=`activity.bar.activate.more.${b}`;return d.push(this.commandRegistry.registerCommand({id:A},{execute:({lastContainerId:S})=>{if(this.updateCurrentContainerId(b),S){const D=this.getContainerState(b),I=this.getContainerState(S),w=D.priority;D.priority=I.priority,I.priority=w,this.storeState()}}})),A}getTabInMoreCtxKey(f){return`${f}.isInMore`}doToggleTab(f,d){const y=this.getContainerState(f);d===void 0?y.hidden=!y.hidden:y.hidden=!d,y.hidden&&this.currentContainerId.get()===f&&this.updateCurrentContainerId(this.visibleContainers[0].options.containerId),this.storeState()}shouldExpand(f){const d=this.getContainer(f);return!!(d&&d.options&&d.options.expanded)}onResize(){l.fastdom.measureAtNextFrame(()=>{if(!this.currentContainerId||!this.resizeHandle)return;const f=this.resizeHandle.getSize();f!==this.barSize&&!this.shouldExpand(this.currentContainerId.get())&&(this.prevSize=f,this.onSizeChangeEmitter.fire({size:f}))})}listenCurrentChange(){return(0,s.autorunDelta)(this.currentContainerId,({lastValue:f,newValue:d})=>{this.previousContainerId=f===u?"":f,this.handleChange(d,f)})}handleChange(f,d){var y;if(!this.resizeHandle||f===void 0)return;const{getSize:b,setSize:A,lockSize:S}=this.resizeHandle;this.onCurrentChangeEmitter.fire({previousId:d,currentId:f});const D=this.shouldExpand(f);if(this.shouldExpand(this.previousContainerId)||D)this.behaviorHandler.handleFullExpanded(f,D,this.resizeHandle,{barSize:this.barSize,panelSize:this.panelSize,prevSize:this.prevSize});else if(f){d&&f!==d&&(this.prevSize=b());const I=this.getContainer(f);A(this.prevSize||this.panelSize+this.barSize),S(!!(!((y=I?.options)===null||y===void 0)&&y.noResize)),this.activatedKey.set(f)}else A(this.barSize),S(!0)}tryRestoreAccordionSize(f){this.behaviorHandler.tryRestoreAccordionSize(f,this.layoutService)}};t.TabbarService=c,n.__decorate([(0,o.Autowired)(v.AbstractMenuService),n.__metadata("design:type",v.AbstractMenuService)],c.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),n.__metadata("design:type",v.AbstractContextMenuService)],c.prototype,"ctxMenuService",void 0),n.__decorate([(0,o.Autowired)(v.IMenuRegistry),n.__metadata("design:type",v.IMenuRegistry)],c.prototype,"menuRegistry",void 0),n.__decorate([(0,o.Autowired)(l.CommandRegistry),n.__metadata("design:type",Object)],c.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),n.__metadata("design:type",v.ICtxMenuRenderer)],c.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,o.Autowired)(l.KeybindingRegistry),n.__metadata("design:type",Object)],c.prototype,"keybindingRegistry",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",l.ViewContextKeyRegistry)],c.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,o.Autowired)(l.IContextKeyService),n.__metadata("design:type",Object)],c.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],c.prototype,"layoutService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",_.LayoutState)],c.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(m.IProgressService),n.__metadata("design:type",Object)],c.prototype,"progressService",void 0),t.TabbarService=c=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],c)},58296:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewsRegistry=t.ViewsController=t.ViewContentGroups=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(43718),_=e(17793);var v;(function(g){g.Open="2_open",g.Debug="4_debug",g.SCM="5_scm",g.More="9_more"})(v||(t.ViewContentGroups=v={}));function m(g,a){var h,u,c,E;const f=(h=g.group)!==null&&h!==void 0?h:v.More,d=(u=a.group)!==null&&u!==void 0?u:v.More;return f!==d?f.localeCompare(d):((c=g.order)!==null&&c!==void 0?c:5)-((E=a.order)!==null&&E!==void 0?E:5)}let p=class{get contents(){const a=this.items.filter(h=>h.visible);return a.length===0&&this.defaultItem?[this.defaultItem.descriptor]:a.map(h=>h.descriptor)}constructor(a){this.id=a,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event,this.items=[],this.disposables=[],this.contextKeyService.onDidChangeContext(this.onDidChangeContext,this,this.disposables),o.Event.filter(this.viewsRegistry.onDidChangeViewWelcomeContent,h=>h===this.id)(this.onDidChangeViewWelcomeContent,this,this.disposables),this.onDidChangeViewWelcomeContent()}onDidChangeViewWelcomeContent(){const a=this.viewsRegistry.getViewWelcomeContent(this.id);this.items=[];for(const h of a)if(h.when==="default")this.defaultItem={descriptor:h,visible:!0};else{const u=h.when?this.contextKeyService.match(h.when):!0;this.items.push({descriptor:h,visible:u})}this._onDidChange.fire()}onDidChangeContext(){let a=!1;for(const h of this.items){if(!h.descriptor.when||h.descriptor.when==="default")continue;const u=this.contextKeyService.match(h.descriptor.when);h.visible!==u&&(h.visible=u,a=!0)}a&&this._onDidChange.fire()}dispose(){this.disposables.forEach(a=>a.dispose()),this.disposables=[]}};t.ViewsController=p,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(_.IViewsRegistry),n.__metadata("design:type",Object)],p.prototype,"viewsRegistry",void 0),t.ViewsController=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],p);let s=class{constructor(){this.viewWelcomeContent=new l.SetMap,this._onDidChangeViewWelcomeContent=new o.Emitter,this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event}registerViewWelcomeContent(a,h){return this.viewWelcomeContent.add(a,h),this._onDidChangeViewWelcomeContent.fire(a),{dispose:()=>{this.viewWelcomeContent.delete(a,h),this._onDidChangeViewWelcomeContent.fire(a)}}}registerViewWelcomeContent2(a,h){const u=new Map;for(const[c,E]of h)this.viewWelcomeContent.add(a,E),u.set(c,(0,o.toDisposable)(()=>{this.viewWelcomeContent.delete(a,E),this._onDidChangeViewWelcomeContent.fire(a)}));return this._onDidChangeViewWelcomeContent.fire(a),u}getViewWelcomeContent(a){const h=[];return this.viewWelcomeContent.forEach(a,u=>h.push(u)),h.sort(m),h}};t.ViewsRegistry=s,t.ViewsRegistry=s=n.__decorate([(0,r.Injectable)()],s)},24429:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WelcomeView=t.CSSIcon=void 0,t.renderLabelWithIcons=a;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(48412),_=e(41869),v=e(43718),m=n.__importDefault(e(81388)),p=e(58296);var s;(function(c){c.iconNameSegment="[A-Za-z0-9]+",c.iconNameExpression="[A-Za-z0-9\\-]+",c.iconModifierExpression="~[A-Za-z]+"})(s||(t.CSSIcon=s={}));const g=new RegExp(`(\\\\)?\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)`,"g");function a(c){const E=new Array;let f,d=0,y=0;for(;(f=g.exec(c))!==null;){y=f.index||0,E.push(c.substring(d,y)),d=(f.index||0)+f[0].length;const[,b,A]=f;E.push(b?`$(${A})`:o.default.createElement("span",{className:(0,_.getExternalIcon)(A)}))}return d<c.length&&E.push(c.substring(d)),E}const h=c=>{const{contents:E}=c,[f,d]=o.default.useState(E.map(A=>A.precondition?!1:null)),y=(0,_.useInjectable)(_.IContextKeyService),b=(0,_.useInjectable)(_.IOpenerService);return o.default.useEffect(()=>{const A=E.map(D=>{if(D.precondition){const I=new Set;return D.precondition.keys().forEach(w=>I.add(w)),I}return null}),S=y.onDidChangeContext(D=>{A.forEach((I,w)=>{I&&D.payload.affectsSome(I)&&d(f.map((T,R)=>R===w?y.match(E[w].precondition):T))})});return()=>S.dispose()},[E]),E.length===0?null:o.default.createElement(o.default.Fragment,null,E.map(({content:A,precondition:S},D)=>{const I=A.split(`
33523
+ }`);this.resource=E||void 0}h&&this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI(h),{preview:!1})}disposeRegistedKeybinding(){for(const[,h]of this.toUnregisterUserKeybindingMap)h.dispose();for(const[,h]of this.toRestoreDefaultKeybindingMap)h.dispose()}dispose(){this.disposeRegistedKeybinding(),this.disposableCollection.dispose()}getValidateCommand(h){return h.replace(/^monaco.editor/,"editor")}async reconcile(h){const u=n.KEYMAP_FILE_URI.toString();this.resource=await this.filesystem.getFileStat(u),this.resource||(this.resource=await this.filesystem.createFile(u,{content:JSON.stringify([])}));const E=(h?h.slice(0):await this.parseKeybindings()).map(y=>({when:y.when,command:this.getValidateCommand(y.command),keybinding:y.key||y.keybinding})),f=[],d=[];this.disposeRegistedKeybinding(),E.forEach(y=>{y.command.startsWith("-")?d.push(y):f.push(y)}),f.map(y=>{this.unregisterDefaultKeybinding(y,!0),this.registerUserKeybinding(y)}),d.map(y=>{y.command=y.command.slice(1),this.unregisterDefaultKeybinding(y,!0)})}unregisterUserKeybinding(h){const u=this.toUniqueKey(h);if(this.toUnregisterUserKeybindingMap.has(u)){const c=this.toUnregisterUserKeybindingMap.get(u);c?.dispose(),this.toUnregisterUserKeybindingMap.delete(u)}}registerUserKeybinding(h){const u=this.toUniqueKey(h);this.toUnregisterUserKeybindingMap.set(u,this.keybindingRegistry.registerKeybinding(h,_.KeybindingScope.USER))}unregisterDefaultKeybinding(h,u=!1){if(u)this.keybindingRegistry.getKeybindingsForCommand(h.command).map(E=>{const f={...h,keybinding:E.keybinding};this.keybindingRegistry.unregisterKeybinding(f);const d=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(d,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(f)}))});else{this.keybindingRegistry.unregisterKeybinding(h);const c=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(c,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(h)}))}}restoreDefaultKeybinding(h){const u=this.toUniqueKey(h),c=this.toRestoreDefaultKeybindingMap.get(u);c&&(c?.dispose(),this.toRestoreDefaultKeybindingMap.delete(u))}toUniqueKey(h){return`${h.command}${h.when?`-${h.when}`:"-"}${h.keybinding?`-${h.keybinding}`:"-"}`}async parseKeybindings(){try{const h=await this.resource;if(!h)return[];const{content:u}=await this.filesystem.readFile(h.uri);this.storeKeybindings=this.parser.parse(u.toString())}catch(h){this.logger.warn(`ParseKeybindings fail: ${h.stack}`),this.storeKeybindings=[]}return this.storeKeybindings}async saveKeybinding(h){this.storeKeybindings=h,this.updateKeybindings(),this.resource||(this.resource=await this.filesystem.createFile(n.KEYMAP_FILE_URI.toString()));const u=await this.filesystem.setContent(this.resource,JSON.stringify(h,void 0,2));this.resource=u||void 0}async getKeybindings(){return this.storeKeybindings.map(h=>({command:h.command,keybinding:h.key,when:h.when,args:h.args}))}async open(){this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!0})}getWhen(h){return h?this.keybindingService.convertMonacoWhen(h.when):""}getScope(h){return h===_.KeybindingScope.DEFAULT?(0,_.localize)("keymaps.source.default"):h===_.KeybindingScope.USER?(0,_.localize)("keymaps.source.user"):h===_.KeybindingScope.WORKSPACE?(0,_.localize)("keymaps.source.workspace"):""}getKeybindingItems(){const h=this.commandRegistry.getCommands(),u=[];for(const b of h){const A=this.keybindingRegistry.getKeybindingsForCommand(b.id);!A||!A.length?b.label&&u.push({id:b.id,command:b.label,hasCommandLabel:!0}):A.forEach(S=>{let D;if(this.storeKeybindings){const I=this.storeKeybindings.find(w=>b&&w.command===b.id);D={id:b.id,command:b.label||b.id,keybinding:I?I.key:S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:I?this.getWhen(I):this.getWhen(A&&S),source:I?this.getScope(_.KeybindingScope.USER):this.getScope(_.KeybindingScope.DEFAULT),hasCommandLabel:!!b.label}}else D={id:b.id,command:b.label||b.id,keybinding:A&&S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:this.getWhen(A&&S),source:A&&S&&typeof S.scope<"u"?this.getScope(S.scope):"",hasCommandLabel:!!b.label};u.push(D)})}const c=u.sort((b,A)=>this.compareItem(b,A)),E=c.filter(b=>!!b.keybinding),f=c.filter(b=>!b.keybinding&&b.hasCommandLabel),d=E.filter(b=>b.hasCommandLabel),y=E.filter(b=>!b.hasCommandLabel);return[...d,...y,...f]}compareItem(h,u){return h&&u?h.source===u.source?h.command.toLowerCase().localeCompare(u.command.toLowerCase()):h.source===this.getScope(_.KeybindingScope.USER)?-1:1:0}getRaw(h){return h?h.replace(new RegExp(/<(\/)?match>/gi),""):""}};t.KeymapService=g,g.DEFAULT_SEARCH_DELAY=100,g.KEYMAP_FILE_URI=new _.URI().withScheme(_.Schemes.userStorage).withPath(p.KEYMAPS_FILE_NAME),r.__decorate([(0,l.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keyBindingRegistry",void 0),r.__decorate([(0,l.Autowired)(s.KeymapsParser),r.__metadata("design:type",s.KeymapsParser)],g.prototype,"parser",void 0),r.__decorate([(0,l.Autowired)(_.CommandService),r.__metadata("design:type",Object)],g.prototype,"commandService",void 0),r.__decorate([(0,l.Autowired)(_.CommandRegistry),r.__metadata("design:type",Object)],g.prototype,"commandRegistry",void 0),r.__decorate([(0,l.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keybindingRegistry",void 0),r.__decorate([(0,l.Autowired)(_.KeybindingService),r.__metadata("design:type",Object)],g.prototype,"keybindingService",void 0),r.__decorate([(0,l.Autowired)(m.IFileServiceClient),r.__metadata("design:type",Object)],g.prototype,"filesystem",void 0),r.__decorate([(0,l.Autowired)(_.ILogger),r.__metadata("design:type",Object)],g.prototype,"logger",void 0),r.__decorate([(0,l.Autowired)(v.IProgressService),r.__metadata("design:type",Object)],g.prototype,"progressService",void 0),t.KeymapService=g=n=r.__decorate([(0,l.Injectable)()],g)},34879:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(25067),m=n.__importDefault(e(78541)),p=()=>{const{keybindings:s,searchKeybindings:g,validateKeybinding:a,detectKeybindings:h,setKeybinding:u,resetKeybinding:c,getRaw:E,getScope:f,covert:d,clearCovert:y,fixed:b,onDidKeymapChanges:A,updateKeybindings:S}=(0,_.useInjectable)(v.IKeymapService),[D,I]=o.default.useState(!1),[w,T]=o.default.useState(""),[R,M]=o.default.useState(s),O=({data:Q,index:G})=>{const{id:Z,command:$,when:V,source:H,keybinding:K}=Q,[Y,X]=o.default.useState(!1),[re,oe]=o.default.useState(K||""),[he,me]=o.default.useState(!1),[q,be]=o.default.useState(),[ge,te]=o.default.useState([]),fe=()=>{he||(b(),me(!0)),y(),oe(E(K)),X(!0)},Oe=We=>{const pe=a(Q,We);pe?pe!==" "?be({message:pe,type:l.VALIDATE_TYPE.ERROR}):X(!1):(u({command:E(Z),when:E(V)||"",keybinding:E(K)},{command:E(Z),when:E(V)||"",keybinding:We}),X(!1),y())},Pe=()=>{X(!1)},Me=We=>{We.stopPropagation(),We.preventDefault();const{key:pe}=_.KeyCode.createKeyCode(We.nativeEvent),ie=We.nativeEvent.shiftKey||We.nativeEvent.metaKey||We.nativeEvent.altKey||We.nativeEvent.ctrlKey;pe&&_.Key.ENTER.keyCode===pe.keyCode&&!ie?re&&Oe(re):oe(d(We.nativeEvent))},Be=()=>{const We=()=>{be(void 0),re&&oe(""),y()},pe=ie=>{ie.stopPropagation(),ie.preventDefault()};return o.default.createElement("div",{className:m.default.keybinding_optional_actions,onMouseDown:pe},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:We,title:(0,_.localize)("keymaps.action.clear")}))},De=()=>o.default.createElement("div",{className:m.default.keybinding_key_input_placeholder},"\u23CE"),_e=We=>{const pe=ie=>{ie.preventDefault(),he||(b(),me(!0)),c({command:E(Z),when:E(V)||"",keybinding:re})};if(We&&E(We)===f(_.KeybindingScope.USER))return o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("rollback"),m.default.keybinding_inline_action),onClick:pe,title:(0,_.localize)("keymaps.action.reset")})},ke=()=>{if(!q&&ge.length>0)return o.default.createElement("div",{className:m.default.keybinding_detective_messages},o.default.createElement("div",{className:m.default.keybinding_detective_messages_label},(0,_.formatLocalize)("keymaps.keybinding.duplicate",ge.length)),o.default.createElement("ul",{className:m.default.keybinding_detective_messages_container},ge.map((We,pe)=>o.default.createElement("li",{className:m.default.keybinding_detective_messages_item,key:`${We.id}_${pe}`,title:`${We.command}-${We.when}`},o.default.createElement("div",{className:m.default.title},(0,_.localize)("keymaps.header.command.title"),": ",E(We.command)||"-"),o.default.createElement("div",{className:m.default.description},o.default.createElement("div",{style:{marginRight:4}},(0,_.localize)("keymaps.header.source.title"),": ",E(We.source)||"-"),o.default.createElement("div",null,(0,_.localize)("keymaps.header.when.title"),": ",E(We.when)||"\u2014"))))))},Te=()=>{if(Y)return o.default.createElement("div",{className:m.default.keybinding_key_input_container},Be(),o.default.createElement(l.ValidateInput,{placeholder:(0,_.localize)("keymaps.edit.placeholder"),validateMessage:q,className:m.default.keybinding_key_input,size:"small",autoFocus:!0,name:_.NO_KEYBINDING_NAME,value:re,onKeyDown:Me,onBlur:Pe}),De(),ke());{const We=K?.split(" ");return o.default.createElement("div",{className:m.default.keybinding_key,title:E(K),onDoubleClick:fe},o.default.createElement("div",{className:m.default.keybinding_action,onClick:fe},o.default.createElement("span",{className:(0,r.default)(K?(0,_.getIcon)("edit"):(0,_.getIcon)("plus"),m.default.keybinding_inline_action),title:K?(0,_.localize)("keymaps.action.edit"):(0,_.localize)("keymaps.action.add")}),_e(H)),We&&We[0]?We.map((pe,ie)=>{const le=pe.split("+");return o.default.createElement("div",{className:m.default.keybinding_key_block,key:`${pe}_${ie}`},le.map((Se,ye)=>o.default.createElement("div",{className:m.default.keybinding_key_item,key:`${Se}_${ye}`,dangerouslySetInnerHTML:{__html:Se||""}})))}):"\u2014")}};return(0,o.useEffect)(()=>{q&&be(void 0),te(re&&Y?h(Q,re):[])},[re]),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item,G%2===1&&m.default.odd)},o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box,m.default.keybinding_command)},o.default.createElement("div",{className:m.default.command_name,title:E($),dangerouslySetInnerHTML:{__html:$}}),o.default.createElement("div",{className:(0,r.default)(m.default.limit_warp,m.default.command_id),title:E(Z),dangerouslySetInnerHTML:{__html:(0,_.formatLocalize)("keymaps.commandId.title",Z)}})),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box)},Te()),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{className:m.default.limit_warp,title:E(V||"\u2014"),dangerouslySetInnerHTML:{__html:V||"\u2014"}})),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{title:E(H),dangerouslySetInnerHTML:{__html:H||""}})))},x=()=>{const Q=()=>{I(!D)};return o.default.createElement("div",{className:m.default.search_inline_action},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("keyboard"),m.default.search_inline_action_icon,D&&m.default.active),onClick:Q}))},k=(0,o.useCallback)(Q=>{T(Q),g(Q)},[w]),F=Q=>{if(!D){const G=Q.target&&Q.target.value?Q.target.value.toLocaleLowerCase():"";k(G)}},L=Q=>{if(D){Q.stopPropagation(),Q.preventDefault();const{key:G}=_.KeyCode.createKeyCode(Q.nativeEvent);if(G&&_.Key.ENTER.keyCode===G.keyCode)return;k(d(Q.nativeEvent))}},N=()=>{w&&(T(""),g("")),y()},U=()=>o.default.createElement("div",{className:m.default.keybinding_optional_actions},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:N,title:(0,_.localize)("keymaps.action.reset")})),W=()=>o.default.createElement("div",{className:m.default.search_container},o.default.createElement(l.Input,{className:m.default.search_input,placeholder:(0,_.localize)(D?"keymaps.search.keyboard.placeholder":"keymaps.search.placeholder"),type:"text",value:w,name:_.NO_KEYBINDING_NAME,onChange:F,onKeyDown:L,addonBefore:x()}),U()),j=(0,o.useMemo)(()=>{const Q=[{title:(0,_.localize)("keymaps.header.command.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.keybinding.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.when.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.source.title"),classname:m.default.keybinding_header_item}];return o.default.createElement("div",{className:m.default.keybinding_header},Q.map((G,Z)=>o.default.createElement("div",{className:G.classname,key:`${G.title}_${Z}`},G.title)))},[]);return(0,o.useEffect)(()=>{const Q=A(G=>{M(G)});return S(),()=>{Q.dispose()}},[]),o.default.createElement("div",{className:m.default.keybinding_container},o.default.createElement("div",{className:m.default.keybinding_searchbar},W()),o.default.createElement("div",{className:m.default.keybinding_body},j,o.default.createElement("div",{className:m.default.keybinding_list},o.default.createElement(l.RecycleList,{itemHeight:40,data:R,template:O,className:m.default.keybinding_list_container}))))};t.KeymapsView=p},79312:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEYMAPS_FILE_NAME=t.KEYMAPS_SCHEME=void 0,t.KEYMAPS_SCHEME="keymaps",t.KEYMAPS_FILE_NAME="keymaps.json"},25067:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(79312),t),n.__exportStar(e(88811),t)},88811:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IKeymapService=void 0,t.IKeymapService=Symbol("IKeymapService")},83507:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogModule=t.LogServiceClient=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(47548),_=e(49187);n.__exportStar(e(47548),t);var v=e(1700);Object.defineProperty(t,"LogServiceClient",{enumerable:!0,get:function(){return v.LogServiceClient}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.ILoggerManagerClient,useClass:_.LoggerManagerClient}],this.backServices=[{servicePath:l.LogServiceForClientPath,clientToken:l.ILoggerManagerClient}]}};t.LogModule=m,t.LogModule=m=n.__decorate([(0,r.Injectable)()],m)},49187:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerManagerClient=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(47548),_=e(1700);let v=class{constructor(){this.logLevelChangeEmitter=new o.Emitter}getLogger(p,s){const g=new _.LogServiceClient(p);return g.setup(this.logServiceForClient,s),g}getBrowserLogger(p){return new _.LogServiceClient(p)}async getLogFolder(){return await this.logServiceForClient.getLogFolder()}async setGlobalLogLevel(p){return await this.logServiceForClient.setGlobalLogLevel(p)}async getGlobalLogLevel(){return await this.logServiceForClient.getGlobalLogLevel()}async dispose(){return this.logLevelChangeEmitter.dispose(),await this.logServiceForClient.disposeAll()}get onDidChangeLogLevel(){return this.logLevelChangeEmitter.event}onDidLogLevelChanged(p){this.logLevelChangeEmitter.fire(p)}};t.LoggerManagerClient=v,n.__decorate([(0,r.Autowired)(l.LogServiceForClientPath),n.__metadata("design:type",Object)],v.prototype,"logServiceForClient",void 0),t.LoggerManagerClient=v=n.__decorate([(0,r.Injectable)()],v)},1700:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogServiceClient=void 0;const n=e(43718),r=e(47548);class o{constructor(_){this.level=r.LogLevel.Verbose,this.ready=new n.Deferred,this.namespace=_,this.debugLog=new r.DebugLog(_)}async setup(_,v){this.logServiceForClient=_,this.pid=v;const m=await this.logServiceForClient.getGlobalLogLevel();this.level=m,this.ready.resolve()}async getLevel(){return this.logServiceForClient?await this.logServiceForClient.getLevel(this.namespace):this.level}async setLevel(_){this.level=_,this.logServiceForClient&&await this.logServiceForClient.setLevel(this.namespace,_)}async verbose(..._){this.debugLog.verbose(..._),this.logServiceForClient&&await this.logServiceForClient.verbose(this.namespace,(0,r.format)(_),this.pid)}async debug(..._){this.debugLog.debug(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Debug)&&await this.logServiceForClient.debug(this.namespace,(0,r.format)(_),this.pid))}async log(..._){this.debugLog.log(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Info)&&await this.logServiceForClient.log(this.namespace,(0,r.format)(_),this.pid))}async warn(..._){this.debugLog.warn(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Warning)&&await this.logServiceForClient.warn(this.namespace,(0,r.format)(_),this.pid))}async error(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Error)&&await this.logServiceForClient.error(this.namespace,(0,r.format)(_),this.pid))}async critical(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Critical)&&await this.logServiceForClient.critical(this.namespace,(0,r.format)(_),this.pid))}async dispose(){this.debugLog.destroy(),this.logServiceForClient&&await this.logServiceForClient.disposeLogger(this.namespace)}}t.LogServiceClient=o},47548:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(4892),t),n.__exportStar(e(46196),t)},46196:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogServiceForClient=void 0,t.format=e,t.ILogServiceForClient=Symbol("LogServiceForClient");function e(n){let r="";for(let o=0;o<n.length;o++){let l=n[o];if(l instanceof Error){const _=Array.prototype.slice.call(arguments);_[0]=l.stack,l=e(_)}else if(typeof l=="object")try{l=JSON.stringify(l)}catch{}else if(typeof l=="symbol")try{l=l.toString()}catch{}r+=(o>0?" ":"")+l}return r}},73344:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(47548),t)},9522:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionServiceFactory=t.AccordionService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=n.__importDefault(e(46343)),l=e(76003),_=e(41869),v=e(81878),m=e(71707),p=e(95416),s=e(93899),g=e(68969),a=e(28423),h=e(17793);let u=class extends _.WithEventBus{get views(){return this.viewsObservable.get()}get state(){return this.stateObservable.get()}set alignment(E){this._alignment!==E&&(this._alignment=E,this.doUpdateResize())}constructor(E,f){super(),this.containerId=E,this.noRestore=f,this.forceRevealContextKeys=new Map,this.viewWhenContextkeys=new Set,this.appendedViewSet=new Set,this.viewsWithContextKey=new Set,this.viewsObservable=(0,a.observableValue)(this,[]),this.stateObservable=(0,a.observableValue)(this,{}),this.visibleViews=(0,a.derived)(this,d=>{const y=this.viewsObservable.read(d);return this.stateObservable.read(d),y.filter(b=>!this.getViewState(b.id).hidden)}),this.rendered=!1,this.menuId=`${s.MenuId.AccordionContext}/${this.containerId}`,this.toDispose=new Map,this.didChangeViewTitleEmitter=this.registerDispose(new _.Emitter),this.onDidChangeViewTitle=this.didChangeViewTitleEmitter.event,this.beforeAppendViewEmitter=this.registerDispose(new _.Emitter),this.onBeforeAppendViewEvent=this.beforeAppendViewEmitter.event,this.afterAppendViewEmitter=this.registerDispose(new _.Emitter),this.onAfterAppendViewEvent=this.afterAppendViewEmitter.event,this.afterDisposeViewEmitter=this.registerDispose(new _.Emitter),this.onAfterDisposeViewEvent=this.afterDisposeViewEmitter.event,this._alignment="vertical",this.doUpdateResize=(0,r.default)(()=>{var d,y;let b;if(Object.keys(this.state).forEach(A=>{this.state[A].hidden||this.state[A].collapsed||(b?(this.state[A].size||0)>(this.state[b].size||0)&&(b=A):b=A)}),b&&this.splitPanelService.isVisible&&this.expandedViews.length>1&&!((d=this.splitPanelService.rootNode)===null||d===void 0)&&d.clientHeight){const A=((y=this.splitPanelService.rootNode)===null||y===void 0?void 0:y.clientHeight)-this.getPanelFullHeight();if(A){const S=this.state;S[b].size+=A,(0,a.transaction)(D=>{this.stateObservable.set({...S},D)}),this.toggleOpen(b,!1)}}},16),this.storeState=()=>{this.noRestore||!this.rendered||this.layoutState.setState(p.LAYOUT_STATE.getContainerSpace(this.containerId),this.state)},this.handleSectionClick=(d,y,b)=>{this.doToggleOpen(d,y,b)},this.handleContextMenu=(d,y)=>{d.preventDefault();const b=this.ctxMenuService.createMenu({id:this.menuId,config:{args:[{viewId:y}]},contextKeyService:y?this.viewContextKeyRegistry.getContextKeyService(y):void 0}),A=b.getGroupedMenuNodes();b.dispose(),this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:d.clientX,y:d.clientY}})},this.addDispose((0,a.recomputeInitiallyAndOnChange)(this.visibleViews)),this.splitPanelService=this.splitPanelManager.getService(E),this.addDispose(this.splitPanelService),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithSection",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,_.localize)("layout.view.hide","Hide")},group:"0_global",when:"triggerWithSection == true"}),this.viewContextKeyRegistry.afterContextKeyServiceRegistered(this.containerId,d=>{this.topViewKey=d.createKey("view",E),setTimeout(()=>{this.popViewKeyIfOnlyOneViewVisible()})}),this.addDispose(_.Event.debounce(this.contextKeyService.onDidChangeContext,(d,y)=>d||y.payload.affectsSome(this.viewWhenContextkeys),50)(d=>d&&this.handleContextKeyChange(),this)),this.splitPanelService.whenReady.then(()=>{this.listenWindowResize()})}updateViewTitle(E,f){const d=this.views.find(y=>y.id===E);d?(d.name=f,this.didChangeViewTitleEmitter.fire({id:E,title:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion title`)}updateViewDesciption(E,f){const d=this.views.find(y=>y.id===E);d?(d.description=f,this.didChangeViewTitleEmitter.fire({id:E,description:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion description`)}updateViewMessage(E,f){const d=this.views.find(y=>y.id===E);d?(d.message=f,this.didChangeViewTitleEmitter.fire({id:E,message:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}updateViewBadge(E,f){const d=this.views.find(y=>y.id===E);d?(d.badge=f,this.didChangeViewTitleEmitter.fire({id:E,badge:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}tryUpdateResize(){this.doUpdateResize()}restoreState(){if(this.noRestore)return;const E={};this.visibleViews.get().forEach(d=>E[d.id]={collapsed:!1,hidden:!1});const f=this.layoutState.getState(p.LAYOUT_STATE.getContainerSpace(this.containerId),E);(0,o.default)(f,E)||(0,a.transaction)(d=>{this.stateObservable.set({...f},d)}),this.popViewKeyIfOnlyOneViewVisible(),this.splitPanelService.whenReady.then(()=>{this.restoreSize(),this.rendered=!0})}restoreSize(){var E;let f=((E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight)||0,d;if(this.visibleViews.get().forEach((y,b)=>{const A=this.state[y.id];A.collapsed?(this.setSize(b,0,!1,!0),f-=this.headerSize):!A.collapsed&&A.size&&(this.setSize(b,A.size,!1,!0),f-=A.size,d=b)}),d){const y=this.visibleViews.get()[d];this.setSize(d,this.state[y.id].size+f)}}initConfig(E){const{headerSize:f,minSize:d}=E;this.headerSize=f,this.minSize=d}registerContextService(E){let f=this.viewContextKeyRegistry.getContextKeyService(E);return f||(f=this.contextKeyService.createScoped(),f.createKey("view",E),this.viewContextKeyRegistry.registerContextKeyService(E,f)),f}getSectionToolbarMenu(E){const f=this.registerContextService(E),d=this.menuService.createMenu(s.MenuId.ViewTitle,f),y=this.views.find(b=>b.id===E);return y&&(y.titleMenu=d),d}updateView(E){(0,a.transaction)(f=>{const d=this.views;if(E.priority){const y=d.findIndex(b=>(b.priority||0)<(E.priority||0));d.splice(y===-1?d.length:y,0,E),this.viewsObservable.set([...d],f)}else this.viewsObservable.set([...d,E],f)})}appendView(E,f){if(this.appendedViewSet.has(E.id)&&!f)return;const d=new _.DisposableCollection;d.push(this.progressService.registerProgressIndicator(E.id));const y=this.views.findIndex(b=>b.id===E.id);if(y!==-1){(0,a.transaction)(b=>{const A=this.views;A[y]=Object.assign({},A[y],E),this.viewsObservable.set([...A],b)});return}if(E.when){this.viewsWithContextKey.add(E);const b=this.createRevealContextKey(E.id);if(this.fillKeysInWhenExpr(this.viewWhenContextkeys,E.when),!this.contextKeyService.match(E.when)&&!this.contextKeyService.match(b))return;this.appendedViewSet.add(E.id)}this.beforeAppendViewEmitter.fire(E.id),this.updateView(E),this.registerContextService(E.id),d.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(E.id,d),label:(E.name||E.id).toUpperCase()},group:"1_widgets"})),this.toDispose.set(E.id,d),this.popViewKeyIfOnlyOneViewVisible(),this.afterAppendViewEmitter.fire(E.id)}disposeView(E){const f=this.views.findIndex(y=>y.id===E);f>-1&&(0,a.transaction)(y=>{const b=this.views;b.splice(f,1),this.viewsObservable.set([...b],y)});const d=this.toDispose.get(E);d&&d.dispose(),this.appendedViewSet.delete(E),this.popViewKeyIfOnlyOneViewVisible(),this.afterDisposeViewEmitter.fire(E)}revealView(E){const f=this.forceRevealContextKeys.get(E);f&&f.key.set(!0)}disposeAll(){(0,a.transaction)(E=>{this.viewsObservable.set([],E)}),this.toDispose.forEach(E=>{E.dispose()})}onResize(E){if(E.payload.slotLocation&&this.state[E.payload.slotLocation]){const f=E.payload.slotLocation;_.fastdom.measureAtNextFrame(()=>{const d=document.getElementById(f);if(d){const y=this.state;y[f].size=d.clientHeight,(0,a.transaction)(b=>{this.stateObservable.set({...y},b)}),this.storeState()}})}}getPanelFullHeight(E){return Object.keys(this.state).filter(f=>this.views.find(d=>d.id===f)&&f!==E).reduce((f,d)=>f+(this.state[d].collapsed?this.headerSize:this.state[d].hidden?0:this.state[d].size),0)}listenWindowResize(){window.addEventListener("resize",this.doUpdateResize),this.addDispose({dispose:()=>window.removeEventListener("resize",this.doUpdateResize)})}createRevealContextKey(E){const f=`forceShow.${E}`;return this.forceRevealContextKeys.set(E,{when:`${f} == true`,key:this.contextKeyService.createKey(f,!1)}),this.viewWhenContextkeys.add(f),`${f} == true`}registerGlobalToggleCommand(){const E=`view-container.hide.${this.containerId}`;return this.commandRegistry.registerCommand({id:E},{execute:({viewId:f})=>{this.doToggleView(f)},isEnabled:()=>this.visibleViews.get().length>1}),E}registerVisibleToggleCommand(E,f){const d=`view-container.hide.${E}`;return f.push(this.commandRegistry.registerCommand({id:d},{execute:({forceShow:y}={})=>{this.doToggleView(E,y)},isToggled:()=>!this.getViewState(E).hidden,isEnabled:()=>this.getViewState(E).hidden||this.visibleViews.get().length>1})),d}doToggleView(E,f){const d=this.getViewState(E);let y;f===void 0?y=!d.hidden:y=!f,d.hidden=y,this.updateViewState(E,d),this.popViewKeyIfOnlyOneViewVisible(),this.storeState()}popViewKeyIfOnlyOneViewVisible(){if(!this.topViewKey)return;const E=this.visibleViews.get();E.length===1?this.topViewKey.set(E[0].id):this.topViewKey.reset()}toggleViewVisibility(E,f){this.doToggleView(E,f)}get expandedViews(){return this.views.filter(E=>{const f=this.state[E.id];return!f||f&&!f.hidden&&!f.collapsed})}toggleOpen(E,f){const d=this.visibleViews.get().findIndex(y=>y.id===E);d>-1&&this.doToggleOpen(E,f,d,!0)}getViewState(E){let f=this.state[E];const d=this.views.find(y=>y.id===E);return f||(this.updateViewState(E,{collapsed:d?.collapsed||!1,hidden:d?.hidden||!1}),f=this.state[E]),f}updateViewState(E,f){const d=this.state;d[E]=f,(0,a.transaction)(y=>{this.stateObservable.set({...d},y)})}doToggleOpen(E,f,d,y){const b=this.getViewState(E);this.updateViewState(E,{...b,collapsed:f});const A=this._alignment==="horizontal";let S;if(f)S=this.setSizeByAlignment(d,0,!1,y,A);else{const D=this.expandedViews.length===1?this.getAvailableSizeByAlignment(A):b.size||this.minSize;S=this.setSizeByAlignment(d,D,!1,y,A)}this.adjustAdjacentViews(d,S,y,A),this.eventBus.fire(new h.ViewCollapseChangedEvent({viewId:E,collapsed:f}))}setSizeByAlignment(E,f,d,y,b){return b?this.setSizeHorizontal(E,f,d,y):this.setSize(E,f,d,y)}getAvailableSizeByAlignment(E){return E?this.getAvailableSizeHorizontal():this.getAvailableSize()}adjustAdjacentViews(E,f,d,y){const b=this.visibleViews.get();for(let A=b.length-1;A>E;A--)this.getViewState(b[A].id).collapsed!==!0?f=this.setSizeByAlignment(A,f,!0,d,y):this.setSizeByAlignment(A,0,!1,d,y);for(let A=E-1;A>=0;A--)(this.state[b[A].id]||{}).collapsed!==!0?f=this.setSizeByAlignment(A,f,!0,d,y):this.setSizeByAlignment(A,0,!1,d,y)}setSize(E,f,d,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientHeight,D=this.splitPanelService.panels[E];if(!D)return 0;y||D.classList.add("resize-ease"),!f&&!d?(f=this.headerSize,D.classList.add(v.RESIZE_LOCK)):D.classList.remove(v.RESIZE_LOCK);const I=D.clientHeight,w=this.getViewState(A.id);let T=f;if(d&&(T=Math.max(I-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(T+E*this.minSize>S)T-=T+E*this.minSize-S;else{const R=this.getPanelFullHeight(A.id);T+R<S&&(T+=S-(T+R))}if(this.rendered){let R;f===this.headerSize?R=I:R=T,R!==this.headerSize&&(w.size=R)}return this.storeState(),w.nextSize=T,y||setTimeout(()=>{D.classList.remove("resize-ease")},200),d?T-(I-f):f-I}getAvailableSize(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}setSizeHorizontal(E,f,d,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientWidth,D=this.splitPanelService.panels[E];if(!D)return 0;y||D.classList.add("resize-ease-horizontal"),!f&&!d?(f=this.headerSize,D.classList.add(v.RESIZE_LOCK)):D.classList.remove(v.RESIZE_LOCK);const I=D.clientWidth,w=this.getViewState(A.id);let T=f;if(d&&(T=Math.max(I-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(T+E*this.minSize>S)T-=T+E*this.minSize-S;else{const R=this.getPanelFullWidthHorizontal(A.id);T+R<S&&(T+=S-(T+R))}if(this.rendered){let R;f===this.headerSize?R=I:R=T,R!==this.headerSize&&(w.size=R)}return this.storeState(),w.nextSize=T,y||setTimeout(()=>{D.classList.remove("resize-ease-horizontal")},200),d?T-(I-f):f-I}getAvailableSizeHorizontal(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientWidth;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}getPanelFullWidthHorizontal(E){return Object.keys(this.state).filter(f=>this.views.find(d=>d.id===f)&&f!==E).reduce((f,d)=>f+(this.state[d].collapsed?this.headerSize:this.state[d].hidden?0:this.state[d].size),0)}handleContextKeyChange(){Array.from(this.viewsWithContextKey.values()).forEach(E=>{this.contextKeyService.match(E.when)||this.contextKeyService.match(this.forceRevealContextKeys.get(E.id).when)?this.appendView(E):this.disposeView(E.id)})}fillKeysInWhenExpr(E,f){this.contextKeyService.getKeysInWhen(f).forEach(y=>{E.add(y)})}};t.AccordionService=u,n.__decorate([(0,l.Autowired)(),n.__metadata("design:type",m.SplitPanelManager)],u.prototype,"splitPanelManager",void 0),n.__decorate([(0,l.Autowired)(s.AbstractMenuService),n.__metadata("design:type",s.AbstractMenuService)],u.prototype,"menuService",void 0),n.__decorate([(0,l.Autowired)(s.AbstractContextMenuService),n.__metadata("design:type",s.AbstractContextMenuService)],u.prototype,"ctxMenuService",void 0),n.__decorate([(0,l.Autowired)(s.IMenuRegistry),n.__metadata("design:type",s.IMenuRegistry)],u.prototype,"menuRegistry",void 0),n.__decorate([(0,l.Autowired)(_.CommandRegistry),n.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),n.__decorate([(0,l.Autowired)(s.ICtxMenuRenderer),n.__metadata("design:type",s.ICtxMenuRenderer)],u.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,l.Autowired)(),n.__metadata("design:type",_.ViewContextKeyRegistry)],u.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,l.Autowired)(_.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),n.__decorate([(0,l.Autowired)(p.LayoutState),n.__metadata("design:type",p.LayoutState)],u.prototype,"layoutState",void 0),n.__decorate([(0,l.Autowired)(g.IProgressService),n.__metadata("design:type",Object)],u.prototype,"progressService",void 0),n.__decorate([(0,l.Autowired)(_.ILogger),n.__metadata("design:type",Object)],u.prototype,"logger",void 0),n.__decorate([(0,_.OnEvent)(_.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.ResizeEvent]),n.__metadata("design:returntype",void 0)],u.prototype,"onResize",null),t.AccordionService=u=n.__decorate([(0,l.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Boolean])],u),t.AccordionServiceFactory=Symbol("AccordionServiceFactory")},70936:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Panel=t.AccordionContainer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(1149),m=e(43718),p=e(9522),s=e(95867),g=({alignment:h="vertical",views:u,containerId:c,headerSize:E=24,minSize:f=120,className:d,noRestore:y,style:b})=>{const A=(0,l.useInjectable)(v.LayoutViewSizeConfig),S=(0,l.useInjectable)(p.AccordionServiceFactory)(c,y);S.alignment=h;const D=(0,l.useAutorun)(S.visibleViews);(0,l.useAutorun)(S.stateObservable);const I=(0,o.useMemo)(()=>E||A.accordionHeaderSizeHeight,[E]);return o.default.useEffect(()=>{if(u.length)for(const w of u)S.appendView(w)},[u]),o.default.useEffect(()=>{S.initConfig({headerSize:I,minSize:f})},[]),o.default.createElement(_.SplitPanel,{className:(0,r.default)(d,{horizontal:h==="horizontal"}),style:b,headerSize:E,dynamicTarget:!0,id:c,resizeKeep:!1,direction:h==="horizontal"?"left-to-right":"top-to-bottom"},D.map((w,T)=>{const R=S.getViewState(w.id),M=w.titleMenu||S.getSectionToolbarMenu(w.id),{collapsed:O,nextSize:x}=R;return o.default.createElement(s.AccordionSection,{noHeader:D.length===1,onItemClick:()=>{S.handleSectionClick(w.id,!O,T)},onContextMenuHandler:S.handleContextMenu,alignment:h,header:w.name&&(0,m.replaceLocalizePlaceholder)(w.name)||w.id,viewId:w.id,key:w.id,message:w.message,description:w.description,badge:w.badge,title:w.name,expanded:!O,accordionService:S,index:T,headerSize:E,minSize:E,initialProps:w.initialProps,titleMenu:M,titleMenuContext:w.titleMenuContext,savedSize:O?E:x,flex:w.weight||1},w.component)}))};t.AccordionContainer=g,t.AccordionContainer.displayName="AccordionContainer";const a=({children:h})=>o.default.createElement("div",null,h);t.Panel=a,t.Panel.displayName="Panel"},95867:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionSection=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(41869),_=e(25918),v=e(93899),m=e(68969),p=e(68974),s=e(69589),g=e(52416),a=n.__importDefault(e(81388)),h={tabIndex:0},u=({header:c,description:E,message:f,headerClass:d,onItemClick:y,noHeader:b,children:A,badge:S,headerSize:D,viewId:I,initialProps:w,titleMenu:T,titleMenuContext:R,expanded:M,accordionService:O,onContextMenuHandler:x,alignment:k})=>{const F=(0,l.useInjectable)(g.IIconService),L=(0,l.useDesignStyles)(a.default.actions_wrap,"actions_wrap"),N=(0,l.useDesignStyles)(a.default.kt_split_panel,"kt_split_panel"),U=(0,l.useDesignStyles)(a.default.kt_split_panel_header,"kt_split_panel_header"),W=(0,l.useDesignStyles)(a.default.kt_split_panel_body,"kt_split_panel_body"),j=(0,l.useDesignStyles)(a.default.section_badge,"section_badge"),Q=o.default.useRef(null),[G,Z]=o.default.useState({header:c,description:E,message:f,badge:S});o.default.useEffect(()=>{const oe=O.onDidChangeViewTitle(({id:he,title:me,description:q,message:be,badge:ge})=>{let te=!1;const fe={...G};I===he&&me&&me!==G.header&&(fe.header=me,te=!0),I===he&&ge!==G.badge&&(fe.badge=ge,te=!0),I===he&&q&&q!==G.description&&(fe.description=q,te=!0),I===he&&be&&be!==G.message&&(fe.message=be,te=!0),te&&Z(fe)});return()=>{oe.dispose()}},[]);const $=o.default.useCallback(()=>{y()},[y]),V=o.default.useMemo(()=>({overflow:M?"auto":"hidden"}),[M]),H=(0,l.useViewState)(I,Q,!0),Y=(0,l.useInjectable)(m.IProgressService).getIndicator(I),X=A,re=o.default.useMemo(()=>M?`${D}px`:k==="horizontal"?"100%":`${D}px`,[M,D,k]);return o.default.createElement("div",{className:(0,r.default)(N,{horizontal:k==="horizontal"}),"data-view-id":I,draggable:!1},!b&&o.default.createElement("div",{...h,className:(0,r.default)(U,d),onClick:$,onContextMenu:oe=>x(oe,I),style:{height:re,lineHeight:re}},o.default.createElement("div",{className:a.default.label_wrap},o.default.createElement("i",{className:(0,r.default)((0,l.getIcon)("arrow-down"),a.default.arrow_icon,M?"":a.default.kt_mod_collapsed)}),o.default.createElement("div",{className:a.default.section_label,style:{lineHeight:D+"px"}},G.header),G.description&&o.default.createElement("div",{className:a.default.section_description,style:{lineHeight:D+"px"}},typeof G.description=="string"?(0,s.transformLabelWithCodicon)(G.description,{},F.fromString.bind(F)):G.description),G.badge&&o.default.createElement("div",{className:j},typeof G.badge=="string"?G.badge:G.badge.value)),M&&T&&o.default.createElement("div",{className:L},(0,v.isIMenu)(T)?o.default.createElement(_.InlineActionBar,{menus:T,context:R}):o.default.createElement(_.InlineMenuBar,{menus:T,context:R}))),o.default.createElement("div",{className:(0,r.default)([W,{[a.default.hide]:!M}]),style:V,ref:Q},o.default.createElement(p.ProgressBar,{className:a.default.progressBar,progressModel:Y?.progressModel}),o.default.createElement(l.ErrorBoundary,null,G.message&&o.default.createElement("div",{className:a.default.kt_split_panel_message},G.message),o.default.createElement(X,{...w,viewState:{height:H.height-(G.message?22:0),width:H.width}}))))};t.AccordionSection=u},91527:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(752),_=n.__importDefault(e(81388));t.TitleBar=r.default.memo(v=>{const m=(0,o.useDesignStyles)(_.default.titlebar,"titlebar"),p=(0,o.useInjectable)(l.TabbarServiceFactory)(v.side),s=r.default.useCallback(a=>{v.containerId&&v.side&&p.handleDragStart(a,v.containerId)},[v.containerId,v.side,p]),g=r.default.useCallback(a=>{p.handleDragEnd(a)},[p]);return r.default.createElement("div",{className:m,style:{height:v.height}},!v.draggable&&r.default.createElement("h1",null,v.title),!!v.draggable&&r.default.createElement("h1",{draggable:!0,style:{cursor:"pointer"},onDragStart:s,onDragEnd:g},v.title),v.menubar||null)}),t.TitleBar.displayName="TitleBar"},75053:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RETRACT_PANEL_COMMAND=t.EXPAND_PANEL_COMMAND=t.IS_VISIBLE_PANEL_COMMAND=t.IS_VISIBLE_EXTEND_VIEW_COMMAND=t.IS_VISIBLE_VIEW_COMMAND=t.TOGGLE_PANEL_COMMAND=t.TOGGLE_EXTEND_VIEW_COMMAND=t.TOGGLE_VIEW_COMMAND=t.WORKBENCH_ACTION_CLOSEPANEL=t.WORKBENCH_ACTION_CLOSESIDECAR=t.RETRACT_BOTTOM_PANEL=t.EXPAND_BOTTOM_PANEL=t.IS_VISIBLE_RIGHT_PANEL_COMMAND=t.IS_VISIBLE_LEFT_PANEL_COMMAND=t.IS_VISIBLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_RIGHT_PANEL_COMMAND=t.TOGGLE_LEFT_PANEL_COMMAND=void 0;const n=e(41869);t.TOGGLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.toggle",delegate:"main-layout.view.toggle"},t.TOGGLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.toggle",delegate:"main-layout.extend-view.toggle"},t.TOGGLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.toggle",delegate:"main-layout.panel.toggle"},t.IS_VISIBLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.is-visible",delegate:"main-layout.panel.is-visible"},t.IS_VISIBLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.is-visible",delegate:"main-layout.view.is-visible"},t.IS_VISIBLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.is-visible",delegate:"main-layout.extend-view.is-visible"},t.EXPAND_BOTTOM_PANEL={id:"main-layout.bottom-panel.expand",delegate:"main-layout.panel.expand"},t.RETRACT_BOTTOM_PANEL={id:"main-layout.bottom-panel.retract",delegate:"main-layout.panel.retract"},t.WORKBENCH_ACTION_CLOSESIDECAR={id:"workbench.action.closeSidebar",label:"%main-layout.sidebar.hide%"},t.WORKBENCH_ACTION_CLOSEPANEL={id:"workbench.action.closePanel"},t.TOGGLE_VIEW_COMMAND={id:"main-layout.view.toggle",label:"%main-layout.view.toggle%"},t.TOGGLE_EXTEND_VIEW_COMMAND={id:"main-layout.extend-view.toggle",label:"%main-layout.extend-view.toggle%"},t.TOGGLE_PANEL_COMMAND={id:"main-layout.panel.toggle",iconClass:(0,n.getIcon)("minus"),label:"%main-layout.panel.toggle%"},t.IS_VISIBLE_VIEW_COMMAND={id:"main-layout.view.is-visible"},t.IS_VISIBLE_EXTEND_VIEW_COMMAND={id:"main-layout.extend-view.is-visible"},t.IS_VISIBLE_PANEL_COMMAND={id:"main-layout.panel.is-visible"},t.EXPAND_PANEL_COMMAND={id:"main-layout.panel.expand",label:"%layout.tabbar.expand%",iconClass:(0,n.getIcon)("expand")},t.RETRACT_PANEL_COMMAND={id:"main-layout.panel.retract",label:"%layout.tabbar.retract%",iconClass:(0,n.getIcon)("shrink")}},25072:(P,t,e)=>{"use strict";var n;n={value:!0},t.s=void 0;const r=e(41869),o=e(17793);t.s={[r.SlotLocation.top]:{modules:["@opensumi/ide-menu-bar"]},[r.SlotLocation.action]:{modules:["@opensumi/ide-toolbar-action"]},[r.SlotLocation.view]:{modules:[o.DROP_VIEW_CONTAINER,"@opensumi/ide-explorer","@opensumi/ide-search","@opensumi/ide-scm","@opensumi/ide-debug","@opensumi/ide-extension-manager","@opensumi/ide-notebook"]},[r.SlotLocation.extendView]:{modules:[o.DROP_EXTEND_VIEW_CONTAINER]},[r.SlotLocation.main]:{modules:["@opensumi/ide-editor"]},[r.SlotLocation.panel]:{modules:[o.DROP_PANEL_CONTAINER,"@opensumi/ide-terminal-next","@opensumi/ide-output","debug-console","@opensumi/ide-markers"]},[r.SlotLocation.statusBar]:{modules:["@opensumi/ide-status-bar"]},[r.SlotLocation.extra]:{modules:["breadcrumb-menu"]}}},45395:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelDropArea=t.ExtendViewDropArea=t.ViewDropArea=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(17793),_=n.__importDefault(e(36623)),v=g=>{const{location:a}=g,h=(0,o.useInjectable)(l.IMainLayoutService),u=r.default.useCallback(c=>{var E;const f=(E=c.dataTransfer)===null||E===void 0?void 0:E.getData("containerId");h.moveContainerTo(f,a),h.hideDropArea()},[h,a]);return r.default.createElement("div",{className:_.default.drop_area,onDrop:u,onDragOver:c=>{c.preventDefault()}},(0,o.localize)("main-layout.drop-area.tip"))},m=()=>r.default.createElement(v,{location:o.SlotLocation.view});t.ViewDropArea=m;const p=()=>r.default.createElement(v,{location:o.SlotLocation.extendView});t.ExtendViewDropArea=p;const s=()=>r.default.createElement(v,{location:o.SlotLocation.panel});t.PanelDropArea=s},7480:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(17793),_=e(9522),v=e(22537),m=e(53576),p=e(752),s=e(58296);let g=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[m.MainLayoutModuleContribution,{token:l.IMainLayoutService,useClass:v.LayoutService},{token:l.IViewsRegistry,useClass:s.ViewsRegistry},{token:p.TabbarServiceFactory,useFactory:p.TabbarServiceFactoryFn},{token:_.AccordionServiceFactory,useFactory:h=>(u,c)=>h.get(l.IMainLayoutService).getAccordionService(u,c)}],this.contributionProvider=l.MainLayoutContribution}};t.MainLayoutModule=g,t.MainLayoutModule=g=n.__decorate([(0,r.Injectable)()],g)},5567:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoFocusedInput=void 0;const r=e(85608).__importStar(e(14041)),o=e(97267),l=e(48560),_=e(17793),v=({containerId:m,...p})=>{const s=(0,l.useInjectable)(_.IMainLayoutService),g=(0,r.useRef)(null),a=r.default.useCallback(()=>{g&&g.current&&queueMicrotask(()=>{var h;return(h=g.current)===null||h===void 0?void 0:h.focus()})},[g.current]);return(0,r.useEffect)(()=>{a();const h=s.getTabbarHandler(m),u=h?.onActivate(a);return()=>{u?.dispose()}},[s]),r.default.createElement(o.Input,{ref:g,...p})};t.AutoFocusedInput=v},22537:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(81878),v=e(95416),m=e(93899),p=e(43718),s=e(28423),g=e(52416),a=e(17793),h=e(9522),u=e(752),c=e(58999),E={[l.SlotLocation.view]:{currentId:void 0,size:void 0},[l.SlotLocation.extendView]:{currentId:"",size:void 0},[l.SlotLocation.panel]:{currentId:void 0,size:void 0},containerLocations:{}};let f=class extends l.WithEventBus{constructor(){super(...arguments),this.handleMap=new Map,this.tabbarServices=new Map,this.accordionServices=new Map,this.pendingViewsMap=new Map,this.viewToContainerMap=new Map,this.disposableMap=new Map,this.state={},this.isRestoring=new Set,this.customViews=new Map,this.debug=(0,p.getDebugLogger)(),this.viewReady=new p.Deferred,this.restoreTabbarService=async y=>{this.state=(0,_.fixLayout)(this.layoutState.getState(v.LAYOUT_STATE.MAIN,E));const{currentId:b,size:A}=this.state[y.location]||{};if(y.prevSize=A,this.state.containerLocations){for(const[D,I]of Object.entries(this.state.containerLocations))if(I===y.location&&!this.isDropContainer(D)){const w=this.findTabbarServiceByContainerId(D);w&&w.location!==y.location?this.moveContainerTo(D,y.location):(delete this.state.containerLocations[D],this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state))}}const S=this.getDefaultContainer(y);this.restoreContainerId(y,b,S)},this.holdTabbarComponent=new Map,this.tabbarUpdateSet=new Set}didMount(){for(const[b,A]of this.pendingViewsMap.entries())A.forEach(({view:S,props:D})=>{this.collectViewComponent(S,b,D)});for(const b of this.contributions.getContributions())b.onDidRender&&b.onDidRender();const y=[];this.tabbarServices.forEach(b=>{l.slotRendererRegistry.isTabbar(b.location)&&b.containersMap.size>0&&y.push(b.viewReady.promise)}),Promise.all(y).then(()=>{this.viewReady.resolve()})}storeState(y,b){this.isRestoring.has(y.location)||(this.state[y.location]={currentId:b,size:y.prevSize},this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state))}onThemeChange(y){var b,A,S,D,I;const w=y.payload.theme;localStorage.setItem("theme",JSON.stringify({menuBarBackground:(b=w.getColor("kt.menubar.background"))===null||b===void 0?void 0:b.toString(),sideBarBackground:(A=w.getColor("sideBar.background"))===null||A===void 0?void 0:A.toString(),editorBackground:(S=w.getColor("editor.background"))===null||S===void 0?void 0:S.toString(),panelBackground:(D=w.getColor("panel.background"))===null||D===void 0?void 0:D.toString(),statusBarBackground:(I=w.getColor("statusBar.background"))===null||I===void 0?void 0:I.toString()}))}getDefaultContainer(y){var b,A,S,D;const I=this.appConfig.defaultPanels,w=I&&I[y.location];if(I&&w!==void 0){if(!w)return"";if(y.containersMap.has(w))return w;const T=this.componentRegistry.getComponentRegistryInfo(w);if(T&&((A=(b=this.appConfig.layoutConfig[y.location])===null||b===void 0?void 0:b.modules)===null||A===void 0?void 0:A.includes(w)))return T.options.containerId;this.logger.warn(`[defaultPanels] No \`${w}\` view found!`)}return(D=(S=y.visibleContainers[0])===null||S===void 0?void 0:S.options)===null||D===void 0?void 0:D.containerId}restoreContainerId(y,b,A){if((0,p.isUndefined)(b)){(0,p.isUndefined)(A)?y.updateNextContainerId():y.updateCurrentContainerId(A);return}if(b&&!this.isDropContainer(b)){if(y.containersMap.has(b)){y.updateCurrentContainerId(b);return}y.updateCurrentContainerId(A||""),y.updateNextContainerId(b);return}(b===""||this.isDropContainer(b))&&y.updateCurrentContainerId("")}findTabbarServiceByContainerId(y){let b;for(const A of this.tabbarServices.values())if(A.containersMap.has(y)){b=A;break}return b}moveContainerTo(y,b){var A;const S=this.findTabbarServiceByContainerId(y);if(!S){this.logger.error(`cannot find container: ${y}`);return}const D=S.getContainer(y);if(!D){this.logger.error(`cannot find container: ${y}`);return}if(((A=D.options)===null||A===void 0?void 0:A.draggable)===!1){this.logger.warn(`container: ${y} is not draggable`);return}const I=this.getTabbarService(b);S.removeContainer(y),(!S.visibleContainers.length||S.currentContainerId.get()===y)&&this.toggleSlot(S.location,!1),I.dynamicAddContainer(y,D);const w=this.injector.get(c.TabBarHandler,[y,this.getTabbarService(I.location)]);this.handleMap.set(y,w),this.state.containerLocations||(this.state.containerLocations={}),this.state.containerLocations[y]=b}showDropAreaForContainer(y){const b=this.findTabbarServiceByContainerId(y),A=this.tabbarServices.get(l.SlotLocation.panel),S=this.tabbarServices.get(l.SlotLocation.extendView),D=this.tabbarServices.get(l.SlotLocation.view);if(!b){this.logger.error(`cannot find container: ${y}`);return}const I={[l.SlotLocation.extendView]:[A,D],[l.SlotLocation.panel]:[S,D],[l.SlotLocation.view]:[A,S]},w={[l.SlotLocation.panel]:a.DROP_PANEL_CONTAINER,[l.SlotLocation.extendView]:a.DROP_EXTEND_VIEW_CONTAINER,[l.SlotLocation.view]:a.DROP_VIEW_CONTAINER};(0,s.transaction)(T=>{var R;(R=I[b?.location])===null||R===void 0||R.forEach(M=>{M?.updateCurrentContainerId(w[M?.location],T)})})}hideDropArea(){const y=this.tabbarServices.get(l.SlotLocation.panel),b=this.tabbarServices.get(l.SlotLocation.extendView),A=this.tabbarServices.get(l.SlotLocation.view);(0,s.transaction)(S=>{y?.currentContainerId.get()===a.DROP_PANEL_CONTAINER&&y.updateCurrentContainerId(y.previousContainerId||"",S),b?.currentContainerId.get()===a.DROP_EXTEND_VIEW_CONTAINER&&b.updateCurrentContainerId(b.previousContainerId||"",S),A?.currentContainerId.get()===a.DROP_VIEW_CONTAINER&&A.updateCurrentContainerId(A.previousContainerId||"",S)})}isVisible(y){return!!this.getTabbarService(y).currentContainerId.get()}isViewVisible(y){const b=this.getTabbarHandler(y);if(!b||!b.isActivated())return!1;const A=b.accordionService.getViewState(y);return!A.collapsed&&!A.hidden}toggleSlot(y,b,A){var S;const D=this.getTabbarService(y);if(!D){this.debug.error(`Unable to switch panels because no TabbarService corresponding to \`${y}\` was found.`);return}b===!0?D.updateCurrentContainerId(this.findNonDropContainerId(D)):b===!1?D.updateCurrentContainerId(""):D.updateCurrentContainerId(D.currentContainerId.get()?"":this.findNonDropContainerId(D)),D.currentContainerId.get()&&A&&((S=D.resizeHandle)===null||S===void 0||S.setSize(A))}isDropContainer(y){return[a.DROP_PANEL_CONTAINER,a.DROP_EXTEND_VIEW_CONTAINER,a.DROP_VIEW_CONTAINER].includes(y)}findNonDropContainerId(y){const b=y.currentContainerId.get();if(b&&!this.isDropContainer(b))return b;if(y.previousContainerId&&!this.isDropContainer(y.previousContainerId))return y.previousContainerId;for(const A of y.containersMap.keys())if(!this.isDropContainer(A))return A;return""}getTabbarService(y){const b=this.tabbarServices.get(y)||this.injector.get(u.TabbarService,[y]);if(!this.tabbarServices.get(y)){b.addDispose(b.onCurrentChange(({currentId:S})=>{if(this.storeState(b,S),this.eventBus.fire(new l.ExtensionActivateEvent({topic:"onView",data:S})),S&&a.SUPPORT_ACCORDION_LOCATION.has(b.location)){const D=this.getAccordionService(S);D?.tryUpdateResize(),D?.expandedViews.forEach(I=>{this.eventBus.fire(new l.ExtensionActivateEvent({topic:"onView",data:I.id}))})}})),b.viewReady.promise.then(()=>(this.isRestoring.add(b.location),b.restoreState())).then(()=>this.restoreTabbarService(b)).then(()=>{this.isRestoring.delete(b.location)}).catch(S=>{this.isRestoring.delete(b.location),this.logger.error(`[TabbarService:${y}] restore state error`,S)});const A=(0,r.default)(()=>this.storeState(b,b.currentContainerId.get()),100);if(b.addDispose(b.onSizeChange(A)),y===l.SlotLocation.panel){const S=(0,r.default)(()=>void this.bottomExpanded,100);b.addDispose(b.onSizeChange(()=>S))}this.tabbarServices.set(y,b)}return b}getAllAccordionService(){return this.accordionServices}getAccordionService(y,b){let A=this.accordionServices.get(y);return A||(A=this.injector.get(h.AccordionService,[y,b]),this.accordionServices.set(y,A)),A}getTabbarHandler(y){let b=this.doGetTabbarHandler(y);if(!b){const A=this.viewToContainerMap.get(y);A?b=this.doGetTabbarHandler(A||""):this.debug.warn(`${y} view tabbar not found.`)}return b}getContainer(y){for(const b of this.tabbarServices.values()){const A=b.getContainer(y);if(A)return A}}getExtraTopMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarTopExtra})}getExtraMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarExtra})}doGetTabbarHandler(y){let b=this.handleMap.get(y);if(!b){let A;for(const S of this.tabbarServices.values())if(S.getContainer(y)){A=S.location;break}A&&(b=this.injector.get(c.TabBarHandler,[y,this.getTabbarService(A)]),this.handleMap.set(y,b))}return b}collectTabbarComponent(y,b,A,S){if(S&&this.debug.warn("collectTabbarComponent api warning: Please move react component into options.component!"),A=this.mapSideToLocation(A),b.hideIfEmpty&&!y.length&&!b.component){this.holdTabbarComponent.set(b.containerId,{views:y,options:b,side:A}),this.tabbarUpdateSet.has(b.containerId)&&this.tryUpdateTabbar(b.containerId);const I=this.getAccordionService(b.containerId);return I.addDispose(I.onBeforeAppendViewEvent(()=>{this.tryUpdateTabbar(b.containerId)})),I.addDispose(I.onAfterDisposeViewEvent(()=>{I.views.length===0&&(this.disposeContainer(b.containerId),this.holdTabbarComponent.set(b.containerId,{views:y,options:b,side:A}))})),b.containerId}return this.getTabbarService(A).registerContainer(b.containerId,{views:y,options:b}),y.forEach(I=>{this.viewToContainerMap.set(I.id,b.containerId)}),b.containerId}mapSideToLocation(y){switch(y){case"left":return l.SlotLocation.view;case"right":return l.SlotLocation.extendView;case"bottom":return l.SlotLocation.panel;default:return y}}getViewAccordionService(y){const b=this.viewToContainerMap.get(y);if(b)return this.getAccordionService(b)}collectViewComponent(y,b,A={},S){this.customViews.set(y.id,y),this.viewToContainerMap.set(y.id,b);const D=this.getAccordionService(b);return A&&(y.initialProps=A),D.appendView(y,S?.isReplace),D.views.length===1&&(this.tabbarUpdateSet.add(b),this.tryUpdateTabbar(b)),S?.fromExtension&&this.disposableMap.set(y.id,this.commandRegistry.registerCommand({id:`${y.id}.focus`},{execute:async()=>(await this.ensureViewReady(y.id),this.commandService.executeCommand(`workbench.view.extension.${b}`,{forceShow:!0}))})),b}ensureViewReady(y){const b=this.viewToContainerMap.get(y),A=new p.Deferred,S=this.getAccordionService(b);return S.visibleViews.get().find(D=>D.id===y)?A.resolve():S.addDispose(S.onAfterAppendViewEvent(D=>{D===y&&A.resolve()})),A.promise}tryUpdateTabbar(y){const b=this.holdTabbarComponent.get(y);b&&(this.getTabbarService(b.side).registerContainer(y,{views:b.views,options:b.options}),this.tabbarUpdateSet.delete(y),this.holdTabbarComponent.delete(y))}replaceViewComponent(y,b){const A=this.viewToContainerMap.get(y.id);if(!A){this.debug.warn(`The container corresponding to \`${y.id}\` was not found, please check the incoming parameters!`);return}const S=this.customViews.get(y.id);S&&(y=Object.assign(S,y)),this.collectViewComponent(y,A,b,{isReplace:!0})}disposeViewComponent(y){const b=this.disposableMap.get(y);b&&b.dispose();const A=this.viewToContainerMap.get(y);if(!A){this.debug.warn(`The container corresponding to \`${y}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(A).disposeView(y)}revealView(y){const b=this.viewToContainerMap.get(y);if(!b){this.debug.warn(`The container corresponding to \`${y}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(b).revealView(y)}disposeContainer(y){let b;for(const A of this.tabbarServices.values())if(A.getContainer(y)){b=A.location;break}b?this.getTabbarService(b).disposeContainer(y):this.debug.warn(`The Tabbar to the \`${y}\` was not found.`)}expandBottom(y){const b=this.getTabbarService(l.SlotLocation.panel);b.currentContainerId.get()||b.updateCurrentContainerId(b.currentContainerId.get()||b.previousContainerId||b.containersMap.keys().next().value),b.doExpand(y),this.contextKeyService.createKey("bottomFullExpanded",b.isExpanded)}get bottomExpanded(){const y=this.getTabbarService(l.SlotLocation.panel);return this.contextKeyService.createKey("bottomFullExpanded",y.isExpanded),y.isExpanded}};t.LayoutService=f,n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],f.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(a.MainLayoutContribution),n.__metadata("design:type",Object)],f.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],f.prototype,"menus",void 0),n.__decorate([(0,o.Autowired)(l.CommandRegistry),n.__metadata("design:type",Object)],f.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(l.CommandService),n.__metadata("design:type",Object)],f.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",v.LayoutState)],f.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(l.AppConfig),n.__metadata("design:type",Object)],f.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(l.IContextKeyService),n.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(l.ComponentRegistry),n.__metadata("design:type",Object)],f.prototype,"componentRegistry",void 0),n.__decorate([(0,o.Autowired)(l.ILogger),n.__metadata("design:type",Object)],f.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],f.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(m.AbstractContextMenuService),n.__metadata("design:type",m.AbstractContextMenuService)],f.prototype,"contextmenuService",void 0),n.__decorate([(0,l.OnEvent)(g.ThemeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[g.ThemeChangedEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onThemeChange",null),t.LayoutService=f=n.__decorate([(0,o.Injectable)()],f)},53576:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModuleContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(30144),_=e(68456),v=e(95416),m=e(93899),p=e(43718),s=e(92323),g=e(17793),a=e(75053),h=e(45395),u=e(68988),c=e(19951);let E=class extends p.WithEventBus{async initialize(){await this.layoutState.initStorage();const d=this.contributionProvider.getContributions();for(const A of d)A.registerComponent&&A.registerComponent(this.componentRegistry);const y=this.rendererContributionProvider.getContributions();for(const A of y)A.registerRenderer&&A.registerRenderer(o.slotRendererRegistry);const b=this.toolBarContributionProvider.getContributions();for(const A of b)A.registerToolbarItems&&A.registerToolbarItems(this.toolBarRegistry)}registerComponent(d){d.register(g.DROP_EXTEND_VIEW_CONTAINER,[],{component:h.ExtendViewDropArea,hideTab:!0,containerId:g.DROP_EXTEND_VIEW_CONTAINER}),d.register(g.DROP_PANEL_CONTAINER,[],{component:h.PanelDropArea,hideTab:!0,containerId:g.DROP_PANEL_CONTAINER}),d.register(g.DROP_VIEW_CONTAINER,[],{component:h.ViewDropArea,hideTab:!0,containerId:g.DROP_VIEW_CONTAINER})}async onStart(){this.registerSideToggleKey()}async onDidStart(){this.mainLayoutService.didMount()}registerRenderer(d){d.registerSlotRenderer(o.SlotLocation.extendView,c.RightTabRenderer,{isLatter:!0,supportedActions:{accordion:!0}}),d.registerSlotRenderer(o.SlotLocation.view,c.LeftTabRenderer,{supportedActions:{accordion:!0}}),d.registerSlotRenderer(o.SlotLocation.panel,c.BottomTabRenderer,{isLatter:!0,supportedActions:{expand:!0,toggle:!0}})}registerCommands(d){d.registerCommand(a.TOGGLE_VIEW_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.view,y,b)}}),d.registerCommand(a.TOGGLE_EXTEND_VIEW_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.extendView,y,b)}}),d.registerCommand(a.TOGGLE_PANEL_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.panel,y,b)}}),d.registerCommand(a.IS_VISIBLE_VIEW_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.view)}),d.registerCommand(a.IS_VISIBLE_EXTEND_VIEW_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.extendView)}),d.registerCommand(a.IS_VISIBLE_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.panel)}),d.registerCommand(a.TOGGLE_LEFT_PANEL_COMMAND),d.registerCommand(a.TOGGLE_RIGHT_PANEL_COMMAND),d.registerCommand(a.TOGGLE_BOTTOM_PANEL_COMMAND),d.registerCommand(a.EXPAND_BOTTOM_PANEL),d.registerCommand(a.RETRACT_BOTTOM_PANEL),d.registerCommand(a.IS_VISIBLE_LEFT_PANEL_COMMAND),d.registerCommand(a.IS_VISIBLE_RIGHT_PANEL_COMMAND),d.registerCommand(a.IS_VISIBLE_BOTTOM_PANEL_COMMAND),d.registerCommand(a.WORKBENCH_ACTION_CLOSESIDECAR,{execute:()=>Promise.all([this.mainLayoutService.toggleSlot(o.SlotLocation.view,!1),this.mainLayoutService.toggleSlot(o.SlotLocation.extendView,!1)])}),d.registerCommand(a.WORKBENCH_ACTION_CLOSEPANEL,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.panel,!1)}}),d.registerCommand({id:"view.outward.right-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!1)}}),d.registerCommand({id:"view.outward.right-panel.show"},{execute:y=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!0,y)}}),d.registerCommand({id:"view.outward.left-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!1)}}),d.registerCommand({id:"view.outward.left-panel.show"},{execute:y=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!0,y)}}),d.registerCommand({id:o.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id},{execute:()=>{this.commandService.executeCommand(a.TOGGLE_RIGHT_PANEL_COMMAND.id,!1),this.commandService.executeCommand(a.TOGGLE_LEFT_PANEL_COMMAND.id,!1)}}),d.registerCommand(o.LAYOUT_COMMANDS.OPEN_VIEW,{execute:()=>{this.commandService.executeCommand(o.QUICK_OPEN_COMMANDS.OPEN_VIEW.id)}})}registerMenus(d){d.registerMenuItem(m.MenuId.ActivityBarExtra,{submenu:m.MenuId.SettingsIconMenu,iconClass:(0,o.getIcon)("setting"),label:(0,p.localize)("layout.tabbar.setting"),order:1,group:"navigation"}),Object.entries({[o.SlotLocation.view]:[l.EXPLORER_CONTAINER_ID,l.SEARCH_CONTAINER_ID,l.SCM_CONTAINER_ID,l.DEBUG_CONTAINER_ID,l.EXTENSION_CONTAINER_ID],[o.SlotLocation.panel]:[l.MARKER_CONTAINER_ID,l.OUTPUT_CONTAINER_ID,l.DEBUG_CONSOLE_CONTAINER_ID,l.TERMINAL_CONTAINER_ID]}).forEach(([y,b],A)=>{const S=this.mainLayoutService.getTabbarService(y);S.viewReady.promise.then(()=>{b.forEach(D=>{var I,w;const T=S.getContainer(D);T&&d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:`container.toggle.${D}`,label:(w=(I=T.options)===null||I===void 0?void 0:I.title)!==null&&w!==void 0?w:D},group:`${3+A}_${y}`})})})}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_VIEW_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_EXTEND_VIEW_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_PANEL_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.EXPAND_PANEL_COMMAND,group:"5_panel",when:"!bottomFullExpanded"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.RETRACT_PANEL_COMMAND,group:"5_panel",when:"bottomFullExpanded"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:o.EDITOR_COMMANDS.TOGGLE_WORD_WRAP.id,label:"%preference.editor.wordWrap%"},group:"6_capability",toggledWhen:"config.editor.wordWrap == on"})}registerSideToggleKey(){this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+b",command:a.TOGGLE_VIEW_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+alt+b",command:a.TOGGLE_EXTEND_VIEW_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+j",command:a.TOGGLE_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:a.EXPAND_PANEL_COMMAND.id,when:"!bottomFullExpanded"}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:a.RETRACT_PANEL_COMMAND.id,when:"bottomFullExpanded"})}registerQuickOpenHandlers(d){d.registerHandler(this.quickOpenViewHandler,{title:(0,p.localize)("layout.action.openView"),commandId:o.LAYOUT_COMMANDS.QUICK_OPEN_VIEW.id,order:5,hideTab:!0})}};t.MainLayoutModuleContribution=E,n.__decorate([(0,r.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],E.prototype,"mainLayoutService",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],E.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(p.IEventBus),n.__metadata("design:type",Object)],E.prototype,"eventBus",void 0),n.__decorate([(0,r.Autowired)(_.ComponentContribution),n.__metadata("design:type",Object)],E.prototype,"contributionProvider",void 0),n.__decorate([(0,r.Autowired)(o.SlotRendererContribution),n.__metadata("design:type",Object)],E.prototype,"rendererContributionProvider",void 0),n.__decorate([(0,r.Autowired)(_.ComponentRegistry),n.__metadata("design:type",Object)],E.prototype,"componentRegistry",void 0),n.__decorate([(0,r.Autowired)(s.CommandService),n.__metadata("design:type",Object)],E.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",v.LayoutState)],E.prototype,"layoutState",void 0),n.__decorate([(0,r.Autowired)(_.TabBarToolbarContribution),n.__metadata("design:type",Object)],E.prototype,"toolBarContributionProvider",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",_.ToolbarRegistry)],E.prototype,"toolBarRegistry",void 0),n.__decorate([(0,r.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],E.prototype,"keybindingRegistry",void 0),n.__decorate([(0,r.Autowired)(u.ViewQuickOpenHandler),n.__metadata("design:type",u.ViewQuickOpenHandler)],E.prototype,"quickOpenViewHandler",void 0),t.MainLayoutModuleContribution=E=n.__decorate([(0,p.Domain)(s.CommandContribution,o.ClientAppContribution,o.SlotRendererContribution,m.MenuContribution,o.QuickOpenContribution,_.ComponentContribution)],E)},68988:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewQuickOpenItem=t.ContainerQuickOpenItem=t.ViewQuickOpenHandler=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(74404),_=e(17793);let v=class{constructor(){this.prefix="view ",this.description=(0,o.localize)("layout.action.openView")}getModel(){return{onType:(g,a)=>a(this.getViewQuickOpenItems())}}getViewQuickOpenItems(){var g;const a=this.layoutService.getAllAccordionService(),h=Array.from(a.keys());let u=[];u=u.concat(h.map((c,E)=>this.injector.get(m,[c,{groupLabel:E===0?(0,o.localize)("layout.openView.containerTitle"):"",showBorder:!1}])));for(const c of h){const E=(g=a.get(c))===null||g===void 0?void 0:g.views;if(E)for(let f=0,d=E.length;f<d;f++)u.push(this.injector.get(p,[c,E[f],{groupLabel:f===0?(0,o.formatLocalize)("layout.openView.viewTitle",String(c).toUpperCase()):"",showBorder:!1}]))}return u}getOptions(){return{}}onClose(){}};t.ViewQuickOpenHandler=v,n.__decorate([(0,r.Autowired)(l.PrefixQuickOpenService),n.__metadata("design:type",Object)],v.prototype,"quickOpenService",void 0),n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],v.prototype,"injector",void 0),t.ViewQuickOpenHandler=v=n.__decorate([(0,r.Injectable)()],v);let m=class extends l.QuickOpenItem{constructor(g,a){super(a),this.containerId=g,this.options=a}getLabel(){return String(this.containerId).toLocaleUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==l.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a?.activate(),!0}};t.ContainerQuickOpenItem=m,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],m.prototype,"layoutService",void 0),t.ContainerQuickOpenItem=m=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],m);let p=class extends l.QuickOpenItem{constructor(g,a,h){super(h),this.containerId=g,this.view=a,this.options=h}getLabel(){var g;return(g=this.view.name)===null||g===void 0?void 0:g.toUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==l.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a&&(a.activate(),a.isCollapsed(this.view.id)&&a?.setCollapsed(this.view.id,!1)),!0}};t.ViewQuickOpenItem=p,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],p.prototype,"layoutService",void 0),t.ViewQuickOpenItem=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object,Object])],p)},58999:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabBarHandler=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(17793),_=e(752);let v=class{constructor(p,s){this.containerId=p,this.tabbarService=s,this.onActivateEmitter=new o.Emitter,this.onActivate=this.onActivateEmitter.event,this.onInActivateEmitter=new o.Emitter,this.onInActivate=this.onInActivateEmitter.event,this.onCollapseEmitter=new o.Emitter,this.onCollapse=this.onCollapseEmitter.event,this.isVisible=!1,this.accordionService=this.layoutService.getAccordionService(this.containerId),s.currentContainerId.get()===this.containerId&&(this.onActivateEmitter.fire(),this.isVisible=!0),this.tabbarService.onCurrentChange(g=>{g.currentId===this.containerId?(this.onActivateEmitter.fire(),this.isVisible=!0):g.previousId===this.containerId&&(this.onInActivateEmitter.fire(),this.isVisible=!1)})}dispose(){this.tabbarService.containersMap.delete(this.containerId),this.tabbarService.disposeContainer(this.containerId)}disposeView(p){this.layoutService.disposeViewComponent(p)}activate(){this.tabbarService.updateCurrentContainerId(this.containerId)}deactivate(){this.tabbarService.updateCurrentContainerId("")}isActivated(){return this.tabbarService.currentContainerId.get()===this.containerId}show(){this.tabbarService.showContainer(this.containerId)}hide(){this.tabbarService.hideContainer(this.containerId)}setTitleComponent(p,s){const g=this.tabbarService.getContainer(this.containerId);g&&g.options&&(g.options.titleProps=s,g.options.titleComponent=p,g.fireChange(g))}setSize(p){this.layoutService.toggleSlot(this.tabbarService.location,!0,p+this.tabbarService.getBarSize())}setBadge(p){this.tabbarService.updateBadge(this.containerId,p)}getBadge(){return this.tabbarService.getContainer(this.containerId).options.badge}setIconClass(p){this.tabbarService.getContainer(this.containerId).options.iconClass=p}isCollapsed(p){return this.accordionService.getViewState(p).collapsed}setCollapsed(p,s){this.accordionService.toggleOpen(p,s)}toggleViews(p,s){for(const g of p){const a=this.accordionService.getViewState(g);this.accordionService.updateViewState(g,{...a,hidden:!s})}}updateViewTitle(p,s){this.accordionService.updateViewTitle(p,s)}updateViewDescription(p,s){this.accordionService.updateViewDesciption(p,s)}updateViewMessage(p,s){this.accordionService.updateViewMessage(p,s)}updateTitle(p){this.tabbarService.updateTitle(this.containerId,p)}setResizeLock(p){this.tabbarService.resizeHandle.lockSize(p)}};t.TabBarHandler=v,n.__decorate([(0,r.Autowired)(l.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),t.TabBarHandler=v=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,_.TabbarService])],v)},46245:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTabbarRenderer2=t.BottomTabbarRenderer=t.LeftTabbarRenderer=t.RightTabbarRenderer=t.TextElipses=t.IconElipses=t.TextTabView=t.IconTabView=t.TabbarViewBase=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(25918),m=e(25719),p=e(63373),s=e(68969),g=e(17793),a=e(19951),h=n.__importDefault(e(5330)),u=e(752);function c(T,R){return R>=T.length?[T,[]]:R<=1?[[],T]:[T.slice(0,R-1),T.slice(R-1)]}function E(T){return typeof T=="string"?parseInt(T,10)>99?"99+":T:typeof T=="object"&&T.value?T.value>99?"99+":T.value:""}const f=T=>{var R;const{TabView:M,MoreTabView:O,forbidCollapse:x,barSize:k=48,panelBorderSize:F=0,tabClassName:L,className:N,margin:U,tabSize:W,canHideTabbar:j,renderOtherVisibleContainers:Q=()=>null,disableAutoAdjust:G}=T,{side:Z,direction:$,fullSize:V}=(0,o.useContext)(a.TabbarConfig),H=(0,_.useInjectable)(u.TabbarServiceFactory)(Z),K=(0,_.useDesignStyles)(h.default.tab_bar,"tab_bar"),Y=(0,_.useDesignStyles)(h.default.bar_content,"bar_content"),X=(0,o.useMemo)(()=>G?Number.MAX_SAFE_INTEGER:Math.floor(V-(U||0)/W),[G,V,U,W]),[re,oe]=(0,o.useState)(c(H.visibleContainers.filter(fe=>{var Oe;return!(!((Oe=fe.options)===null||Oe===void 0)&&Oe.hideTab)}),X));(0,o.useEffect)(()=>{H.updateBarSize(k+F)},[]),(0,o.useEffect)(()=>{const fe=()=>{oe(c(H.visibleContainers.filter(Pe=>{var Me;return!(!((Me=Pe.options)===null||Me===void 0)&&Me.hideTab)}),X))};fe();const Oe=_.Event.any(H.onDidRegisterContainer,H.onStateChange)(fe);return()=>{Oe.dispose()}},[X]);const he=(0,_.useAutorun)(H.currentContainerId),me=(0,_.usePreference)("workbench.hideSlotTabBarWhenHidePanel",!1),q=j&&me;q&&!he&&((R=H.resizeHandle)===null||R===void 0||R.setSize(0));const[be,ge]=re;ge.forEach(fe=>{H.updateTabInMoreKey(fe.options.containerId,!0)});const te=(0,o.useCallback)((fe,Oe,Pe,Me)=>{var Be;const De=(Be=fe.options)===null||Be===void 0?void 0:Be.containerId;if(!De)return null;Oe.updateTabInMoreKey(De,!1);let _e;return o.default.createElement("li",{draggable:!0,onDragStart:ke=>{if(_e){const Te=_e.cloneNode(!0);Te.classList.add(h.default.dragging),L&&(0,_.addClassName)(Te,L),document.body.appendChild(Te),ke.persist(),requestAnimationFrame(()=>{ke.dataTransfer.setDragImage(Te,0,0),document.body.removeChild(Te)})}Oe.handleDragStart(ke,De)},onDragOver:ke=>{ke.preventDefault(),_e&&_e.classList.add("on-drag-over")},onDragLeave:()=>{_e&&_e.classList.remove("on-drag-over")},onDrop:ke=>{_e&&_e.classList.remove("on-drag-over"),Oe.handleDrop(ke,De)},onDragEnd:ke=>{Oe.handleDragEnd(ke)},key:De,id:De,onContextMenu:ke=>Oe.handleContextMenu(ke,De),onClick:ke=>Oe.handleTabClick(ke,q||x),ref:ke=>_e=ke,className:(0,r.default)({active:Pe===De},L)},o.default.createElement(M,{component:fe}))},[]);return o.default.createElement("div",{className:(0,r.default)([K,N])},o.default.createElement("div",{className:Y,style:{flexDirection:m.Layout.getTabbarDirection($)}},be.map(fe=>te(fe,H,he,Z)),Q({props:T,renderContainers:te}),ge.length?o.default.createElement("li",{key:"tab-more",onClick:fe=>{var Oe;return H.showMoreMenu(fe,be[be.length-1]&&((Oe=be[be.length-1].options)===null||Oe===void 0?void 0:Oe.containerId))},className:L},o.default.createElement(O,null)):null))};t.TabbarViewBase=f;const d=({component:T})=>{var R,M,O;const x=(0,_.useInjectable)(s.IProgressService),k=(0,_.useInjectable)(_.KeybindingRegistry),F=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab"),[L,N]=(0,o.useState)(T),U=x.getIndicator(((R=L.options)===null||R===void 0?void 0:R.containerId)||""),W=U?(0,_.useAutorun)(U.progressModel.show):!1,j=(0,o.useMemo)(()=>{const Q=L.options;return Q?.activateKeyBinding?`${Q?.title} (${k.acceleratorForKeyString(Q.activateKeyBinding,"+")})`:Q?.title},[L]);return(0,o.useEffect)(()=>{const Q=L.onChange(G=>{N({...G})});return()=>{Q.dispose()}},[L]),o.default.createElement("div",{className:F},o.default.createElement("div",{className:(0,r.default)((M=L.options)===null||M===void 0?void 0:M.iconClass,"activity-icon"),title:j}),W?o.default.createElement(l.Badge,{className:h.default.tab_badge},o.default.createElement("span",{className:h.default.icon_wrapper},o.default.createElement(l.Icon,{icon:"time-circle"}))):((O=L.options)===null||O===void 0?void 0:O.badge)&&o.default.createElement(l.Badge,{className:h.default.tab_badge},E(L.options.badge)))};t.IconTabView=d;const y=({component:T})=>{var R,M,O;const[x,k]=(0,o.useState)(T);return(0,o.useEffect)(()=>{const F=x.onChange(L=>{k({...L})});return()=>{F.dispose()}},[x]),o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},(M=(R=x.options)===null||R===void 0?void 0:R.title)===null||M===void 0?void 0:M.toUpperCase()),((O=x.options)===null||O===void 0?void 0:O.badge)&&o.default.createElement(l.Badge,{className:h.default.tab_badge},E(x.options.badge)))};t.TextTabView=y;const b=()=>{const T=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab");return o.default.createElement("div",{className:T},o.default.createElement("div",{className:(0,r.default)((0,_.getIcon)("ellipsis"),"activity-icon"),title:"extra tabs"}))};t.IconElipses=b;const A=()=>o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},o.default.createElement("i",{className:(0,_.getIcon)("doubleright")})));t.TextElipses=A;const S=T=>{const{barSize:R=48,style:M}=T,{side:O}=(0,o.useContext)(a.TabbarConfig),x=(0,_.useInjectable)(u.TabbarServiceFactory)(O),k=(0,_.useDesignStyles)(h.default.right_tab_bar,"right_tab_bar"),F=(0,_.useDesignStyles)(h.default.right_tab,"right_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.RIGHT_TABBAR,className:k,style:M,onContextMenu:x.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:R,panelBorderSize:1}))};t.RightTabbarRenderer=S;const D=({renderOtherVisibleContainers:T,isRenderExtraTopMenus:R=!0,renderExtraMenus:M,tabbarViewProps:O})=>{const{side:x}=(0,o.useContext)(a.TabbarConfig),k=(0,_.useInjectable)(g.IMainLayoutService),F=(0,_.useInjectable)(u.TabbarServiceFactory)(x),L=(0,o.useMemo)(()=>k.getExtraTopMenu(),[k]),N=(0,o.useMemo)(()=>k.getExtraMenu(),[k]),U=(0,_.useDesignStyles)(h.default.left_tab_bar,"left_tab_bar"),W=(0,_.useDesignStyles)(h.default.left_tab,"left_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.LEFT_TABBAR,className:U,onContextMenu:F.handleContextMenu},R&&o.default.createElement(v.InlineMenuBar,{className:(0,r.default)(h.default.vertical_icons,h.default.extra_top_menus),menus:L}),o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,className:h.default.left_tab_content,tabClassName:W,TabView:t.IconTabView,barSize:48,margin:90,panelBorderSize:1,renderOtherVisibleContainers:T,...O}),M||o.default.createElement(v.InlineMenuBar,{className:h.default.vertical_icons,menus:N}))};t.LeftTabbarRenderer=D;const I=()=>{const{side:T}=(0,o.useContext)(a.TabbarConfig),R=(0,_.useInjectable)(u.TabbarServiceFactory)(T),M=(0,_.useDesignStyles)(h.default.bottom_bar_container,"bottom_bar_container"),O=(0,_.useDesignStyles)(h.default.bottom_tab,"bottom_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.BOTTOM_TABBAR,onContextMenu:R.handleContextMenu,className:(0,r.default)(M,"next_bottom_bar")},o.default.createElement(t.TabbarViewBase,{tabSize:80,MoreTabView:t.TextElipses,tabClassName:O,TabView:t.TextTabView,barSize:24,panelBorderSize:1,canHideTabbar:!0}))};t.BottomTabbarRenderer=I;const w=T=>{const{barSize:R=32,style:M}=T,{side:O}=(0,o.useContext)(a.TabbarConfig),x=(0,_.useInjectable)(u.TabbarServiceFactory)(O),k=(0,_.useDesignStyles)(h.default.ai_right_tab_bar,"ai_right_tab_bar"),F=(0,_.useDesignStyles)(h.default.ai_right_tab,"ai_right_tab");return o.default.createElement("div",{id:O,className:k,style:M,onContextMenu:x.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:32,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:R,panelBorderSize:1}))};t.ChatTabbarRenderer2=w},66368:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabPanelRenderer=t.LeftTabPanelRenderer=t.RightTabPanelRenderer=t.ContainerView=t.BaseTabPanelView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),_=e(41869),v=e(25918),m=e(1149),p=e(68969),s=e(68974),g=e(9522),a=e(70936),h=e(91527),u=e(19951),c=n.__importDefault(e(5330)),E=e(752),f=o.default.memo(({children:T})=>T,(T,R)=>!(T.visible||R.visible)),d={display:"block"},y={display:"none"},b=T=>{const{PanelView:R,panelSize:M,id:O,PanelViewProps:x}=T,{side:k}=o.default.useContext(u.TabbarConfig),F=(0,_.useInjectable)(_.AppConfig),L=F.panelSizes&&F.panelSizes[k],N=(0,_.useInjectable)(E.TabbarServiceFactory)(k),U=(0,_.useAutorun)(N.currentContainerId),W=(0,_.useDesignStyles)(c.default.tab_panel,"tab_panel"),j=(0,_.useDesignStyles)(c.default.tab_panel_hidden,"tab_panel_hidden");return o.default.useEffect(()=>{N.updatePanelSize(L||M||335)},[]),o.default.createElement("div",{id:O,className:(0,r.default)("kt-tab-panel",W,{[j]:!U})},N.visibleContainers.map(Q=>{var G;const Z=(G=Q.options)===null||G===void 0?void 0:G.containerId;if(!Z)return null;const $=N.getTitleToolbarMenu(Z);return o.default.createElement("div",{key:Z,className:(0,r.default)(c.default.panel_wrap,Z),"data-viewlet-id":Z,style:U===Z?d:y,id:O},o.default.createElement(_.ErrorBoundary,null,o.default.createElement(f,{visible:U===Z},o.default.createElement(R,{titleMenu:$,side:k,component:Q,...x}))))}))};t.BaseTabPanelView=b;const A=({component:T,titleMenu:R,side:M,renderContainerWrap:O,className:x,customTitleBar:k})=>{var F,L;const N=o.default.useRef(),U=o.default.useRef(null),W=(0,_.useInjectable)(_.AppConfig),{title:j,titleComponent:Q,component:G,containerId:Z,draggable:$}=T.options||{},V=(0,_.useInjectable)(l.INJECTOR_TOKEN),H=(0,_.useInjectable)(m.LayoutViewSizeConfig),K=(0,o.useCallback)(he=>{V.get(g.AccordionServiceFactory)(Z).handleContextMenu(he)},[Z]);if(!Z)return null;const X=(0,_.useInjectable)(p.IProgressService).getIndicator(Z);if(!X)return null;const re=(0,_.useViewState)(M,U),oe=o.default.useCallback(he=>O?O({children:he}):he,[O]);return o.default.createElement("div",{ref:U,className:(0,r.default)(c.default.view_container,x)},!!k&&k,!G&&o.default.createElement("div",{onContextMenu:K,className:c.default.panel_titlebar},j?o.default.createElement(h.TitleBar,{containerId:Z,side:M,title:j,draggable:$,height:H.panelTitleBarHeight,menubar:o.default.createElement(v.InlineActionBar,{menus:R})}):null,Q&&o.default.createElement("div",{className:c.default.panel_component},o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{Component:Q,initialProps:(F=T.options)===null||F===void 0?void 0:F.titleProps})))),o.default.createElement("div",{className:c.default.container_wrap,ref:he=>N.current=he},o.default.createElement(s.ProgressBar,{progressModel:X.progressModel}),oe(G?o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:re,...(L=T.options)===null||L===void 0?void 0:L.initialProps},Component:G})):o.default.createElement(a.AccordionContainer,{views:T.views,minSize:T.options.miniSize,containerId:T.options.containerId}))))};t.ContainerView=A;const S=({component:T,titleMenu:R,side:M})=>{var O,x,k,F;const L=o.default.useRef(),N=o.default.useRef(null),U=(0,_.useInjectable)(_.AppConfig),W=(0,_.useInjectable)(E.TabbarServiceFactory)(M),j=(0,_.useDesignStyles)(c.default.panel_title_bar,"panel_title_bar"),Q=(0,_.useDesignStyles)(c.default.panel_toolbar_container,"panel_toolbar_container"),G=(0,_.useViewState)(M,N),Z=(0,_.useInjectable)(m.LayoutViewSizeConfig),$=(0,_.useInjectable)(p.IProgressService),{component:V,containerId:H}=T.options||{},K=T.options&&T.options.titleComponent;if(!H)return null;const Y=$.getIndicator(H);return Y?o.default.createElement("div",{ref:N,className:c.default.panel_container},o.default.createElement("div",{className:j,style:{height:Z.panelTitleBarHeight}},o.default.createElement("h1",null,(x=(O=T.options)===null||O===void 0?void 0:O.title)===null||x===void 0?void 0:x.toUpperCase()),o.default.createElement("div",{className:c.default.title_component_container},K&&o.default.createElement(_.ComponentRenderer,{Component:K,initialProps:(k=T.options)===null||k===void 0?void 0:k.titleProps})),o.default.createElement("div",{className:Q},R&&o.default.createElement(v.InlineActionBar,{menus:R}),W.commonTitleMenu&&o.default.createElement(v.InlineMenuBar,{menus:W.commonTitleMenu,moreAtFirst:!0}))),o.default.createElement("div",{className:c.default.container_wrap,ref:X=>L.current=X},o.default.createElement(s.ProgressBar,{progressModel:Y.progressModel}),V?o.default.createElement(_.ConfigProvider,{value:U},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:G,...(F=T.options)===null||F===void 0?void 0:F.initialProps},Component:V})):o.default.createElement(a.AccordionContainer,{views:T.views,alignment:"horizontal",minSize:T.options.miniSize||200,containerId:T.options.containerId}))):null},D=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.RightTabPanelRenderer=D;const I=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.LeftTabPanelRenderer=I;const w=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:S,panelSize:280});t.BottomTabPanelRenderer=w},19951:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabRenderer=t.LeftTabRenderer=t.RightTabRenderer=t.TabRendererBase=t.TabbarConfig=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(25719),m=e(63373),p=e(46245),s=e(66368),g=n.__importDefault(e(5330)),a=e(752);t.TabbarConfig=(0,o.createContext)({side:l.SlotLocation.view,direction:"left-to-right",fullSize:0}),t.TabRendererBase=(0,o.memo)(({id:E,className:f,components:d,direction:y="left-to-right",TabbarView:b,side:A,TabpanelView:S})=>{const D=(0,l.useInjectable)(a.TabbarServiceFactory)(A),I=(0,l.useInjectable)(l.IEventBus),w=(0,o.useContext)(_.PanelContext),T=(0,o.useRef)(null),[R,M]=(0,o.useState)(0);(0,o.useLayoutEffect)(()=>{D.registerResizeHandle(w),d.forEach(x=>{D.registerContainer(x.options.containerId,x)}),D.updatePanelVisibility(),D.ensureViewReady()},[d]);const O=(0,o.useCallback)(()=>{T.current&&M(T.current[v.Layout.getDomSizeProperty(y)])},[]);return(0,o.useEffect)(()=>{l.fastdom.measure(()=>{O()});let x;I.onDirective(l.ResizeEvent.createDirective(A),()=>{x&&x.dispose(),x=l.fastdom.measureAtNextFrame(()=>{O()})})},[]),o.default.createElement("div",{ref:T,id:E,className:(0,r.default)(g.default.tab_container,f),style:{flexDirection:v.Layout.getFlexDirection(y)}},o.default.createElement(t.TabbarConfig.Provider,{value:{side:A,direction:y,fullSize:R}},o.default.createElement(b,null),o.default.createElement(S,null)))});const h=({className:E,components:f,tabbarView:d,tabpanelView:y})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.extendView,direction:"right-to-left",id:m.VIEW_CONTAINERS.RIGHT_TABBAR_PANEL,className:(0,r.default)(E,"right-slot"),components:f,TabbarView:d??p.RightTabbarRenderer,TabpanelView:y??s.RightTabPanelRenderer});t.RightTabRenderer=h;const u=({className:E,components:f,tabbarView:d})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.view,direction:"left-to-right",id:m.VIEW_CONTAINERS.LEFT_TABBAR_PANEL,className:(0,r.default)(E,"left-slot"),components:f,TabbarView:d??p.LeftTabbarRenderer,TabpanelView:s.LeftTabPanelRenderer});t.LeftTabRenderer=u;const c=({className:E,components:f,tabbarView:d})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.panel,id:m.VIEW_CONTAINERS.BOTTOM_TABBAR_PANEL,direction:"bottom-to-top",className:(0,r.default)(E,"bottom-slot"),components:f,TabbarView:d??p.BottomTabbarRenderer,TabpanelView:s.BottomTabPanelRenderer});t.BottomTabRenderer=c},94813:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarBehaviorHandler=void 0;const n=e(41869),r=e(30144),o=e(75053);class l{constructor(v,m){this.location=v,this.config=m,this.accordionRestored=new Set}getIsLatter(){var v;return((v=this.config)===null||v===void 0?void 0:v.isLatter)!==void 0?this.config.isLatter:this.location==="extendView"||this.location==="panel"}wrapResizeHandle(v){const{setSize:m,setRelativeSize:p,getSize:s,getRelativeSize:g,lockSize:a,setMaxSize:h,hidePanel:u}=v,c=this.getIsLatter();return{setSize:E=>m(E,c),setRelativeSize:(E,f)=>p(E,f,c),getSize:()=>s(c),getRelativeSize:()=>g(c),setMaxSize:E=>h(E,c),lockSize:E=>a(E,c),hidePanel:E=>u(E)}}registerLocationSpecificCommands(v){const m=new n.DisposableCollection,{supportedActions:p}=this.config||{};return p?.expand&&(m.push(v.commandRegistry.registerCommand(o.EXPAND_PANEL_COMMAND,{execute:()=>{v.layoutService.expandBottom(!0)}})),m.push(v.commandRegistry.registerCommand(o.RETRACT_PANEL_COMMAND,{execute:()=>{v.layoutService.expandBottom(!1)}}))),p?.toggle&&m.push(v.commandRegistry.registerCommand(o.TOGGLE_PANEL_COMMAND,{execute:(s,g)=>{v.layoutService.toggleSlot(this.location,s,g)}})),m}registerLocationSpecificMenus(v){var m,p,s,g;const a=[];if(!((p=(m=this.config)===null||m===void 0?void 0:m.supportedActions)===null||p===void 0)&&p.expand&&a.push({command:o.EXPAND_PANEL_COMMAND.id,group:"navigation",when:"!bottomFullExpanded",order:1},{command:o.RETRACT_PANEL_COMMAND.id,group:"navigation",when:"bottomFullExpanded",order:1}),!((g=(s=this.config)===null||s===void 0?void 0:s.supportedActions)===null||g===void 0)&&g.toggle&&a.push({command:o.TOGGLE_PANEL_COMMAND.id,group:"navigation",order:2}),a.length>0)return v.menuRegistry.registerMenuItems(`tabbar/${this.location}/common`,a),v.ctxMenuService.createMenu({id:`tabbar/${this.location}/common`})}doExpand(v,m){var p,s;if(!(!((s=(p=this.config)===null||p===void 0?void 0:p.supportedActions)===null||s===void 0)&&s.expand)||!m)return;const{setRelativeSize:g}=m,a=this.getIsLatter();v?a?g(0,1):g(1,0):g(2,1)}isExpanded(v){var m,p;if(!(!((p=(m=this.config)===null||m===void 0?void 0:m.supportedActions)===null||p===void 0)&&p.expand)||!v)return!1;const{getRelativeSize:s}=v,g=s().join(",");return this.getIsLatter()?g==="0,1":g==="1,0"}handleActivateKeyBinding(v,m,p,s){var g,a;!((a=(g=this.config)===null||g===void 0?void 0:g.supportedActions)===null||a===void 0)&&a.toggle&&!s?p(m===v?"":v):p(v)}handleFullExpanded(v,m,p,s){var g,a;const{barSize:h,panelSize:u,prevSize:c}=s,{setRelativeSize:E,setSize:f}=p;v?m&&(!((a=(g=this.config)===null||g===void 0?void 0:g.supportedActions)===null||a===void 0)&&a.expand)?this.getIsLatter()?E(0,1):E(1,0):f(c||u+h):f(h)}tryRestoreAccordionSize(v,m){var p,s,g,a;if(!(!((s=(p=this.config)===null||p===void 0?void 0:p.supportedActions)===null||s===void 0)&&s.accordion))return;const{containerId:h}=v.options||{};if(!h||this.accordionRestored.has(h)||(!v||!((g=v.options)===null||g===void 0)&&g.component)&&((a=v?.options)===null||a===void 0?void 0:a.containerId)!==r.SCM_CONTAINER_ID)return;m.getAccordionService(h).restoreState(),this.accordionRestored.add(h)}}t.TabbarBehaviorHandler=l},752:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarService=t.TabbarServiceFactoryFn=t.TabbarServiceFactory=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(95416),v=e(93899),m=e(68969),p=e(38578),s=e(28423),g=e(17793),a=e(94813);t.TabbarServiceFactory=Symbol("TabbarServiceFactory");const h=E=>f=>E.get(g.IMainLayoutService).getTabbarService(f);t.TabbarServiceFactoryFn=h;const u=void 0;let c=class extends l.WithEventBus{constructor(f){super(),this.location=f,this.doChangeViewEmitter=new l.Emitter,this.onStateChangeEmitter=new l.Emitter,this.onStateChange=this.onStateChangeEmitter.event,this.shouldChangeView=(0,s.observableFromEventOpts)({owner:this,equalsFn:()=>!1},this.doChangeViewEmitter.event,()=>{}),this.containerIdObs=(0,s.observableValue)(this,u),this.currentContainerId=(0,s.derivedOpts)({owner:this,equalsFn:()=>!1},y=>(this.shouldChangeView.read(y),this.containerIdObs.read(y))),this.nextContainerId="",this.useFirstContainerId=!1,this.previousContainerId=void 0,this.containersMap=new Map,this.viewReady=new l.Deferred,this.state=new Map,this.storedState={},this.onCurrentChangeEmitter=new l.Emitter,this.onCurrentChange=this.onCurrentChangeEmitter.event,this.onSizeChangeEmitter=new l.Emitter,this.onSizeChange=this.onSizeChangeEmitter.event,this.menuId=`tabbar/${this.location}`,this.moreMenuId=`tabbar/${this.location}/more`,this.sortedContainers=[],this.disposableMap=new Map,this.tabInMoreKeyMap=new Map,this.shouldWaitForViewRender=!1,this.onDidRegisterContainerEmitter=new l.Emitter,this.isEmptyTabbar=!0,this.updatePanel=(0,r.default)(y=>{this.resizeHandle&&this.resizeHandle.hidePanel(y)},60),this._menuMap=new Map,this.handleContextMenu=(y,b)=>{y.preventDefault(),y.stopPropagation();const A=this.menuService.createMenu(this.menuId,b?this.scopedCtxKeyService:this.contextKeyService),S=(0,v.generateCtxMenu)({menus:A,args:[{containerId:b}]});this.contextMenuRenderer.show({menuNodes:S[1],anchor:{x:y.clientX,y:y.clientY}})};const d=p.slotRendererRegistry.getTabbarConfig(f);this.behaviorHandler=new a.TabbarBehaviorHandler(f,d),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithTab",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,l.localize)("layout.tabbar.toggle")},group:"0_global",when:"triggerWithTab == true"}),this.activatedKey=this.contextKeyService.createKey((0,l.getTabbarCtxKey)(this.location),""),this.behaviorHandler.registerLocationSpecificCommands({commandRegistry:this.commandRegistry,layoutService:this.layoutService}),this.commonTitleMenu=this.behaviorHandler.registerLocationSpecificMenus({menuRegistry:this.menuRegistry,ctxMenuService:this.ctxMenuService}),this.eventBus.onDirective(l.ResizeEvent.createDirective(this.location),()=>{this.onResize()})}get onDidRegisterContainer(){return this.onDidRegisterContainerEmitter.event}updateNextContainerId(f){(0,l.isUndefined)(f)?this.useFirstContainerId=!0:this.nextContainerId=f}updateCurrentContainerId(f,d){d?this.containerIdObs.set(f,d):(0,s.transaction)(y=>{this.containerIdObs.set(f,y)})}updateBadge(f,d){const y=this.getContainer(f);y&&y.options&&(y.options.badge=d),y?.fireChange(y)}getContainerState(f){return this.state.get(f)}hideContainer(f){const d=this.state.get(f);d&&(d.hidden=!0,this.onStateChangeEmitter.fire())}showContainer(f){const d=this.state.get(f);d&&(d.hidden=!1,this.onStateChangeEmitter.fire())}updatePanelVisibility(f){f===void 0&&(f=this.containersMap.size>0),this.updatePanel(f)}ensureViewReady(){(0,l.isDefined)(this.barSize)&&(0,l.isDefined)(this.panelSize)?this.resolveViewReady():this.shouldWaitForViewRender=!0}updatePanelSize(f){this.panelSize=f,(0,l.isDefined)(this.barSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}updateBarSize(f){this.barSize=f,(0,l.isDefined)(this.panelSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}resolveViewReady(){this.isEmptyTabbar?l.Event.once(this.onDidRegisterContainer)(()=>{this.viewReady.resolve()}):this.viewReady.resolve()}getBarSize(){return this.barSize}updateTabInMoreKey(f,d){const y=this.tabInMoreKeyMap.get(f);y&&y.set(d)}get visibleContainers(){const f=[];return this.containersMap.forEach(d=>{const y=d.options&&this.state.get(d.options.containerId);(!y||!y.hidden)&&f.push(d)}),f.sort((d,y)=>this.getContainerState(d.options.containerId).priority-this.getContainerState(y.options.containerId).priority)}registerResizeHandle(f){return this.resizeHandle=this.behaviorHandler.wrapResizeHandle(f),this.listenCurrentChange()}registerContainer(f,d){var y;if(this.containersMap.has(f))return;this.useFirstContainerId&&(this.useFirstContainerId=!1,this.updateCurrentContainerId(f)),this.nextContainerId===f&&this.updateCurrentContainerId(f);const b=new l.DisposableCollection,A=d.options||{containerId:f};d.options=A;const S=new l.Emitter;this.containersMap.set(f,{fireChange:I=>S.fire(I),onChange:S.event,views:d.views,options:A}),b.push({dispose:()=>{this.containersMap.delete(f),this.state.delete(f)}}),this.updatePanelVisibility(this.containersMap.size>0);let D=this.sortedContainers.findIndex(I=>{var w,T;return(((w=I.options)===null||w===void 0?void 0:w.priority)||1)<=(((T=d.options)===null||T===void 0?void 0:T.priority)||1)});D===-1&&(D=this.sortedContainers.length),this.sortedContainers.splice(D,0,d);for(let I=D;I<this.sortedContainers.length;I++){const T=(y=this.sortedContainers[I].options)===null||y===void 0?void 0:y.containerId;if(T){const R=this.storedState[T]||this.getContainerState(T)||{};this.state.set(T,{hidden:R.hidden,priority:I})}}b.push(this.registerSideEffects(d)),this.eventBus.fire(new g.TabBarRegistrationEvent({tabBarId:f})),f===this.currentContainerId.get()&&this.handleChange(f,""),this.viewContextKeyRegistry.registerContextKeyService(f,this.contextKeyService.createScoped()).createKey("view",f),this.isEmptyTabbar&&(this.isEmptyTabbar=!1),this.disposableMap.set(f,b),this.onDidRegisterContainerEmitter.fire(f)}registerSideEffects(f){var d;const y=new l.DisposableCollection;!((d=f.options)===null||d===void 0)&&d.hideTab||(y.push(this.registerHideMenu(f)),y.push(this.registerMoreMenu(f))),y.push(this.registerActivateKeyBinding(f,f.options.fromExtension));const b=this.contextKeyService.createKey(`workbench.${this.location}.${f.options.containerId}`,!0);return y.push({dispose:()=>{b.set(!1)}}),y.push(this.progressService.registerProgressIndicator(f.options.containerId)),y.push(this.registerContainerPanelRelatedCommand(f)),y}registerContainerPanelRelatedCommand(f){var d,y,b,A,S;const D=new l.DisposableCollection,I=(d=f.options)===null||d===void 0?void 0:d.containerId;return D.push(this.commandRegistry.registerCommand({id:"container.show."+I,label:(0,l.formatLocalize)("view.command.show",(b=(y=f.options)===null||y===void 0?void 0:y.title)!==null&&b!==void 0?b:I),labelLocalized:(0,l.createFormatLocalizedStr)("view.command.show",(S=(A=f.options)===null||A===void 0?void 0:A.title)!==null&&S!==void 0?S:I),category:"View"},{execute:()=>{this.updateCurrentContainerId(I)}})),D.push(this.commandRegistry.registerCommand({id:"container.hide."+I},{execute:()=>{this.updateCurrentContainerId("")}})),D.push(this.commandRegistry.registerCommand({id:"container.toggle."+I},{execute:()=>{this.currentContainerId.get()===I?this.updateCurrentContainerId(""):this.updateCurrentContainerId(I)}})),D}registerHideMenu(f){const d=new l.DisposableCollection,y=f.options.containerId;return d.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(y,d),label:f.options.title||y},group:"1_widgets"})),d}registerMoreMenu(f){const d=new l.DisposableCollection,y=f.options.containerId,b=this.scopedCtxKeyService.createKey(this.getTabInMoreCtxKey(y),!1);return this.tabInMoreKeyMap.set(y,b),d.push({dispose:()=>this.tabInMoreKeyMap.delete(y)}),d.push(this.menuRegistry.registerMenuItem(this.moreMenuId,{command:{id:this.registerMoreToggleCommand(f,d),label:f.options.title||y},group:"inline",when:`${this.getTabInMoreCtxKey(y)} == true`,toggledWhen:`${(0,l.getTabbarCtxKey)(this.location)} == ${y}`,iconClass:f.options.iconClass})),d}disposeContainer(f){var d;const y=this.disposableMap.get(f);y&&y.dispose(),this.currentContainerId.get()===f&&this.updateCurrentContainerId(((d=this.visibleContainers[0].options)===null||d===void 0?void 0:d.containerId)||"")}updateTitle(f,d){const y=this.getContainer(f);y&&(y.options.title=d)}getContainer(f){return f?this.containersMap.get(f):void 0}getTitleToolbarMenu(f){const d=this._menuMap.get(f);if(d)return d;const y=this.menuService.createMenu(v.MenuId.ViewTitle,this.viewContextKeyRegistry.getContextKeyService(f));this._menuMap.set(f,y);const b=this.disposableMap.get(f),A=[y,(0,l.toDisposable)(()=>{this._menuMap.delete(f)})];return b?b.pushAll(A):this.addDispose(A),y}doExpand(f){this.behaviorHandler.doExpand(f,this.resizeHandle)}get isExpanded(){return this.behaviorHandler.isExpanded(this.resizeHandle)}handleTabClick(f,d){const y=f.currentTarget.id;y===this.currentContainerId.get()&&!d?this.updateCurrentContainerId(""):this.updateCurrentContainerId(y)}showMoreMenu(f,d){const y=this.menuService.createMenu(this.moreMenuId,this.scopedCtxKeyService),b=(0,v.generateCtxMenu)({menus:y,args:[{lastContainerId:d}]});this.contextMenuRenderer.show({menuNodes:b[1],anchor:{x:f.clientX,y:f.clientY}})}handleDragStart(f,d){f.dataTransfer.setData("containerId",d),this.layoutService.showDropAreaForContainer(d)}handleDrop(f,d){if(f.dataTransfer.getData("containerId")){const y=f.dataTransfer.getData("containerId"),b=this.visibleContainers,A=b.findIndex(D=>y===D.options.containerId),S=b.findIndex(D=>d===D.options.containerId);this.doInsertTab(b,A,S),this.storeState()}}handleDragEnd(f){this.layoutService.hideDropArea()}restoreState(){this.storedState=this.layoutState.getState(_.LAYOUT_STATE.getTabbarSpace(this.location),{});for(const f of this.state.keys())this.storedState[f]&&this.state.set(f,this.storedState[f]);this.visibleContainers.forEach(f=>{this.tryRestoreAccordionSize(f)})}removeContainer(f){const d=this.disposableMap.get(f);d?.dispose(),this.onStateChangeEmitter.fire()}dynamicAddContainer(f,d){this.registerContainer(f,d),this.updateCurrentContainerId(f)}doInsertTab(f,d,y){const b=this.getContainerState(f[y].options.containerId).priority,A=(D,I)=>{const w=this.getContainerState(f[D].options.containerId),T=this.getContainerState(f[I].options.containerId);w.priority=T.priority};let S;if(d>y)for(S=y;S<d;S++)A(S,S+1);else for(S=y;S>d;S--)A(S,S-1);this.getContainerState(f[S].options.containerId).priority=b,this.doChangeViewEmitter.fire()}storeState(){const f={};this.state.forEach((d,y)=>{f[y]=d}),this.layoutState.setState(_.LAYOUT_STATE.getTabbarSpace(this.location),f),this.onStateChangeEmitter.fire()}registerActivateKeyBinding(f,d){const y=f.options,b=y.containerId,A=d?`workbench.view.extension.${b}`:`workbench.view.${b}`,S=new l.DisposableCollection;return S.push(this.commandRegistry.registerCommand({id:A},{execute:({forceShow:D}={})=>{this.behaviorHandler.handleActivateKeyBinding(b,this.currentContainerId.get()||"",I=>this.updateCurrentContainerId(I),D)}})),y.activateKeyBinding&&S.push(this.keybindingRegistry.registerKeybinding({command:A,keybinding:y.activateKeyBinding})),S}registerGlobalToggleCommand(){const f=`activity.bar.toggle.${this.location}`;return this.commandRegistry.registerCommand({id:f},{execute:({containerId:d})=>{this.doToggleTab(d)},isEnabled:()=>this.visibleContainers.length>1}),f}registerVisibleToggleCommand(f,d){const y=`activity.bar.toggle.${f}`;return d.push(this.commandRegistry.registerCommand({id:y},{execute:({forceShow:b}={})=>{this.doToggleTab(f,b)},isToggled:()=>!this.getContainerState(f).hidden,isEnabled:()=>this.getContainerState(f).hidden||this.visibleContainers.length!==1})),y}registerMoreToggleCommand(f,d){const{options:y}=f,{containerId:b}=y,A=`activity.bar.activate.more.${b}`;return d.push(this.commandRegistry.registerCommand({id:A},{execute:({lastContainerId:S})=>{if(this.updateCurrentContainerId(b),S){const D=this.getContainerState(b),I=this.getContainerState(S),w=D.priority;D.priority=I.priority,I.priority=w,this.storeState()}}})),A}getTabInMoreCtxKey(f){return`${f}.isInMore`}doToggleTab(f,d){const y=this.getContainerState(f);d===void 0?y.hidden=!y.hidden:y.hidden=!d,y.hidden&&this.currentContainerId.get()===f&&this.updateCurrentContainerId(this.visibleContainers[0].options.containerId),this.storeState()}shouldExpand(f){const d=this.getContainer(f);return!!(d&&d.options&&d.options.expanded)}onResize(){l.fastdom.measureAtNextFrame(()=>{if(!this.currentContainerId.get()||!this.resizeHandle)return;const f=this.resizeHandle.getSize();f!==this.barSize&&!this.shouldExpand(this.currentContainerId.get())&&(this.prevSize=f,this.onSizeChangeEmitter.fire({size:f}))})}listenCurrentChange(){return(0,s.autorunDelta)(this.currentContainerId,({lastValue:f,newValue:d})=>{this.previousContainerId=f===u?"":f,this.handleChange(d,f)})}handleChange(f,d){var y;if(!this.resizeHandle||f===void 0)return;const{getSize:b,setSize:A,lockSize:S}=this.resizeHandle;this.onCurrentChangeEmitter.fire({previousId:d,currentId:f});const D=this.shouldExpand(f);if(this.shouldExpand(this.previousContainerId)||D)this.behaviorHandler.handleFullExpanded(f,D,this.resizeHandle,{barSize:this.barSize,panelSize:this.panelSize,prevSize:this.prevSize});else if(f){d&&f!==d&&(this.prevSize=b());const I=this.getContainer(f);A(this.prevSize||this.panelSize+this.barSize),S(!!(!((y=I?.options)===null||y===void 0)&&y.noResize)),this.activatedKey.set(f)}else A(this.barSize),S(!0)}tryRestoreAccordionSize(f){this.behaviorHandler.tryRestoreAccordionSize(f,this.layoutService)}};t.TabbarService=c,n.__decorate([(0,o.Autowired)(v.AbstractMenuService),n.__metadata("design:type",v.AbstractMenuService)],c.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),n.__metadata("design:type",v.AbstractContextMenuService)],c.prototype,"ctxMenuService",void 0),n.__decorate([(0,o.Autowired)(v.IMenuRegistry),n.__metadata("design:type",v.IMenuRegistry)],c.prototype,"menuRegistry",void 0),n.__decorate([(0,o.Autowired)(l.CommandRegistry),n.__metadata("design:type",Object)],c.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),n.__metadata("design:type",v.ICtxMenuRenderer)],c.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,o.Autowired)(l.KeybindingRegistry),n.__metadata("design:type",Object)],c.prototype,"keybindingRegistry",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",l.ViewContextKeyRegistry)],c.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,o.Autowired)(l.IContextKeyService),n.__metadata("design:type",Object)],c.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],c.prototype,"layoutService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",_.LayoutState)],c.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(m.IProgressService),n.__metadata("design:type",Object)],c.prototype,"progressService",void 0),t.TabbarService=c=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],c)},58296:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewsRegistry=t.ViewsController=t.ViewContentGroups=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(43718),_=e(17793);var v;(function(g){g.Open="2_open",g.Debug="4_debug",g.SCM="5_scm",g.More="9_more"})(v||(t.ViewContentGroups=v={}));function m(g,a){var h,u,c,E;const f=(h=g.group)!==null&&h!==void 0?h:v.More,d=(u=a.group)!==null&&u!==void 0?u:v.More;return f!==d?f.localeCompare(d):((c=g.order)!==null&&c!==void 0?c:5)-((E=a.order)!==null&&E!==void 0?E:5)}let p=class{get contents(){const a=this.items.filter(h=>h.visible);return a.length===0&&this.defaultItem?[this.defaultItem.descriptor]:a.map(h=>h.descriptor)}constructor(a){this.id=a,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event,this.items=[],this.disposables=[],this.contextKeyService.onDidChangeContext(this.onDidChangeContext,this,this.disposables),o.Event.filter(this.viewsRegistry.onDidChangeViewWelcomeContent,h=>h===this.id)(this.onDidChangeViewWelcomeContent,this,this.disposables),this.onDidChangeViewWelcomeContent()}onDidChangeViewWelcomeContent(){const a=this.viewsRegistry.getViewWelcomeContent(this.id);this.items=[];for(const h of a)if(h.when==="default")this.defaultItem={descriptor:h,visible:!0};else{const u=h.when?this.contextKeyService.match(h.when):!0;this.items.push({descriptor:h,visible:u})}this._onDidChange.fire()}onDidChangeContext(){let a=!1;for(const h of this.items){if(!h.descriptor.when||h.descriptor.when==="default")continue;const u=this.contextKeyService.match(h.descriptor.when);h.visible!==u&&(h.visible=u,a=!0)}a&&this._onDidChange.fire()}dispose(){this.disposables.forEach(a=>a.dispose()),this.disposables=[]}};t.ViewsController=p,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(_.IViewsRegistry),n.__metadata("design:type",Object)],p.prototype,"viewsRegistry",void 0),t.ViewsController=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],p);let s=class{constructor(){this.viewWelcomeContent=new l.SetMap,this._onDidChangeViewWelcomeContent=new o.Emitter,this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event}registerViewWelcomeContent(a,h){return this.viewWelcomeContent.add(a,h),this._onDidChangeViewWelcomeContent.fire(a),{dispose:()=>{this.viewWelcomeContent.delete(a,h),this._onDidChangeViewWelcomeContent.fire(a)}}}registerViewWelcomeContent2(a,h){const u=new Map;for(const[c,E]of h)this.viewWelcomeContent.add(a,E),u.set(c,(0,o.toDisposable)(()=>{this.viewWelcomeContent.delete(a,E),this._onDidChangeViewWelcomeContent.fire(a)}));return this._onDidChangeViewWelcomeContent.fire(a),u}getViewWelcomeContent(a){const h=[];return this.viewWelcomeContent.forEach(a,u=>h.push(u)),h.sort(m),h}};t.ViewsRegistry=s,t.ViewsRegistry=s=n.__decorate([(0,r.Injectable)()],s)},24429:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WelcomeView=t.CSSIcon=void 0,t.renderLabelWithIcons=a;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(48412),_=e(41869),v=e(43718),m=n.__importDefault(e(81388)),p=e(58296);var s;(function(c){c.iconNameSegment="[A-Za-z0-9]+",c.iconNameExpression="[A-Za-z0-9\\-]+",c.iconModifierExpression="~[A-Za-z]+"})(s||(t.CSSIcon=s={}));const g=new RegExp(`(\\\\)?\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)`,"g");function a(c){const E=new Array;let f,d=0,y=0;for(;(f=g.exec(c))!==null;){y=f.index||0,E.push(c.substring(d,y)),d=(f.index||0)+f[0].length;const[,b,A]=f;E.push(b?`$(${A})`:o.default.createElement("span",{className:(0,_.getExternalIcon)(A)}))}return d<c.length&&E.push(c.substring(d)),E}const h=c=>{const{contents:E}=c,[f,d]=o.default.useState(E.map(A=>A.precondition?!1:null)),y=(0,_.useInjectable)(_.IContextKeyService),b=(0,_.useInjectable)(_.IOpenerService);return o.default.useEffect(()=>{const A=E.map(D=>{if(D.precondition){const I=new Set;return D.precondition.keys().forEach(w=>I.add(w)),I}return null}),S=y.onDidChangeContext(D=>{A.forEach((I,w)=>{I&&D.payload.affectsSome(I)&&d(f.map((T,R)=>R===w?y.match(E[w].precondition):T))})});return()=>S.dispose()},[E]),E.length===0?null:o.default.createElement(o.default.Fragment,null,E.map(({content:A,precondition:S},D)=>{const I=A.split(`
33524
33524
  `),w=[];for(let T of I){if(T=T.trim(),!T)continue;const R=(0,v.parseLinkedText)(T);if(R.nodes.length===1&&typeof R.nodes[0]!="string"){const M=R.nodes[0];w.push(o.default.createElement("div",{key:w.length,title:M.title,className:"button-container"},o.default.createElement(l.Button,{disabled:f[D]===!1,onClick:()=>b.open(M.href)},a(M.label))))}else{const M=R.nodes.map((O,x)=>typeof O=="string"?O:o.default.createElement("a",{key:x,className:(0,r.default)({disabled:O.href.startsWith("command:")&&f[D]===!1}),title:O.title,onClick:()=>b.open(O.href)},O.label));w.push(o.default.createElement("p",{key:w.length},M))}}return o.default.createElement(o.default.Fragment,{key:D},w)}))};function u(c,E){return c.viewId===E.viewId}t.WelcomeView=o.default.memo(c=>{const E=(0,_.useInjectable)(p.ViewsController,[c.viewId]),[f,d]=o.default.useState(E.contents);return o.default.useEffect(()=>{E.onDidChange(()=>{const y=E.contents;d(y)})},[]),f.length?o.default.createElement("div",{className:m.default.welcome},o.default.createElement(h,{contents:f})):null},u)},17793:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(72260),t)},72260:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DROP_VIEW_CONTAINER=t.DROP_EXTEND_VIEW_CONTAINER=t.DROP_PANEL_CONTAINER=t.SUPPORT_ACCORDION_LOCATION=t.ViewCollapseChangedEvent=t.IViewsRegistry=t.TabBarRegistrationEvent=t.MainLayoutContribution=t.IMainLayoutService=void 0;const n=e(41869);t.IMainLayoutService=Symbol("IMainLayoutService"),t.MainLayoutContribution=Symbol("MainLayoutContribution");class r extends n.BasicEvent{}t.TabBarRegistrationEvent=r,t.IViewsRegistry=Symbol("IViewsRegistry");class o extends n.BasicEvent{}t.ViewCollapseChangedEvent=o,t.SUPPORT_ACCORDION_LOCATION=new Set([n.SlotLocation.view,n.SlotLocation.extendView]),t.DROP_PANEL_CONTAINER="drop-panel",t.DROP_EXTEND_VIEW_CONTAINER="drop-extend-view",t.DROP_VIEW_CONTAINER="drop-view"},63067:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(17793),t)},93835:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedMarkdownEditorContribution=t.MARKDOWN_EDITOR_COMPONENT_ID=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(43718),_=e(57517),v=e(21066),m=e(81001);t.MARKDOWN_EDITOR_COMPONENT_ID="MARKDOWN_EDITOR_COMPONENT_ID";let p=class{registerEditorComponent(g){g.registerEditorComponent({uid:t.MARKDOWN_EDITOR_COMPONENT_ID,component:m.MarkdownEditorComponent,scheme:l.Schemes.file}),g.registerEditorComponentResolver(l.Schemes.file,(a,h)=>{a.uri.path.ext===".md"&&h.push({type:_.EditorOpenType.component,componentId:t.MARKDOWN_EDITOR_COMPONENT_ID,title:(0,l.localize)("editorOpenType.preview"),weight:this.preferenceService.get("application.preferMarkdownPreview")?10:-1})})}};t.EmbeddedMarkdownEditorContribution=p,n.__decorate([(0,r.Autowired)(v.IMarkdownService),n.__metadata("design:type",Object)],p.prototype,"markdownService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),t.EmbeddedMarkdownEditorContribution=p=n.__decorate([(0,l.Domain)(_.BrowserEditorContribution)],p)},81001:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownEditorComponent=void 0;const r=e(85608).__importDefault(e(14041)),o=e(41869),l=e(57517),_=e(21066),v=({resource:m})=>{let p=null;const s=(0,o.useInjectable)(_.IMarkdownService),g=(0,o.useInjectable)(l.IEditorDocumentModelService);return r.default.useEffect(()=>{if(p){const a=new o.Disposable,h=new o.CancellationTokenSource;return a.addDispose({dispose:()=>{h.cancel()}}),g.createModelReference(m.uri,"markdown-preview").then(u=>{if(h.token.isCancellationRequested){u&&u.dispose();return}const c=new o.Emitter;a.addDispose(c),a.addDispose(u.instance.getMonacoModel().onDidChangeContent(E=>{c.fire(u.instance.getText())})),p&&s.previewMarkdownInContainer(u.instance.getText(),p,h.token,void 0,c.event).then(E=>{a.addDispose(E)}),a.addDispose(u)}),()=>{a.dispose()}}}),r.default.createElement("div",{ref:a=>{p=a},style:{height:"100%"}})};t.MarkdownEditorComponent=v},31101:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownModule=t.Markdown=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(21066),_=e(89637);var v=e(6001);Object.defineProperty(t,"Markdown",{enumerable:!0,get:function(){return v.Markdown}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.IMarkdownService,useClass:_.MarkdownServiceImpl}]}};t.MarkdownModule=m,t.MarkdownModule=m=n.__decorate([(0,r.Injectable)()],m)},86422:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markdownCss=void 0,t.markdownCss=`
33525
33525
  /*---------------------------------------------------------------------------------------------
33526
33526
  * Copyright (c) Microsoft Corporation. All rights reserved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/cli-engine",
3
- "version": "3.9.1-next-1755767441.0",
3
+ "version": "3.9.1-next-1756901517.0",
4
4
  "description": "Integration engine runtime for opensumi-cli and opensumi extension",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "dependencies": {
27
27
  "@koa/cors": "^5.0.0",
28
28
  "@opensumi/di": "^1.8.0",
29
- "@opensumi/ide-core-browser": "3.9.1-next-1755767441.0",
30
- "@opensumi/ide-core-common": "3.9.1-next-1755767441.0",
31
- "@opensumi/ide-core-node": "3.9.1-next-1755767441.0",
32
- "@opensumi/ide-express-file-server": "3.9.1-next-1755767441.0",
33
- "@opensumi/ide-extension": "3.9.1-next-1755767441.0",
34
- "@opensumi/ide-i18n": "3.9.1-next-1755767441.0",
35
- "@opensumi/ide-main-layout": "3.9.1-next-1755767441.0",
36
- "@opensumi/ide-startup": "3.9.1-next-1755767441.0",
29
+ "@opensumi/ide-core-browser": "3.9.1-next-1756901517.0",
30
+ "@opensumi/ide-core-common": "3.9.1-next-1756901517.0",
31
+ "@opensumi/ide-core-node": "3.9.1-next-1756901517.0",
32
+ "@opensumi/ide-express-file-server": "3.9.1-next-1756901517.0",
33
+ "@opensumi/ide-extension": "3.9.1-next-1756901517.0",
34
+ "@opensumi/ide-i18n": "3.9.1-next-1756901517.0",
35
+ "@opensumi/ide-main-layout": "3.9.1-next-1756901517.0",
36
+ "@opensumi/ide-startup": "3.9.1-next-1756901517.0",
37
37
  "chalk": "^4.1.2",
38
38
  "ejs": "^3.1.7",
39
39
  "ip": "^1.1.8",
@@ -72,5 +72,5 @@
72
72
  "webpack": "^5.90.0",
73
73
  "webpack-cli": "^5.1.4"
74
74
  },
75
- "gitHead": "463414c243d699f050f26bb4461cb748e26edc2e"
75
+ "gitHead": "b759ebeb7e14c8cc09124768e996fcdb02bb8529"
76
76
  }