monaco-editor-core 0.51.0-rc2 → 0.51.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.
- package/dev/bundleInfo.json +3084 -3084
- package/dev/nls.messages.de.js +2 -2
- package/dev/nls.messages.es.js +2 -2
- package/dev/nls.messages.fr.js +2 -2
- package/dev/nls.messages.it.js +2 -2
- package/dev/nls.messages.ja.js +2 -2
- package/dev/nls.messages.ko.js +2 -2
- package/dev/nls.messages.ru.js +2 -2
- package/dev/nls.messages.zh-cn.js +2 -2
- package/dev/nls.messages.zh-tw.js +2 -2
- package/dev/vs/base/worker/workerMain.js +28 -28
- package/dev/vs/editor/editor.main.css +1 -1
- package/dev/vs/editor/editor.main.js +122 -122
- package/dev/vs/loader.js +1 -1
- package/min/nls.messages.de.js +2 -2
- package/min/nls.messages.es.js +2 -2
- package/min/nls.messages.fr.js +2 -2
- package/min/nls.messages.it.js +2 -2
- package/min/nls.messages.ja.js +2 -2
- package/min/nls.messages.ko.js +2 -2
- package/min/nls.messages.ru.js +2 -2
- package/min/nls.messages.zh-cn.js +2 -2
- package/min/nls.messages.zh-tw.js +2 -2
- package/min/vs/base/worker/workerMain.js +2 -2
- package/min/vs/editor/editor.main.css +1 -1
- package/min/vs/editor/editor.main.js +7 -7
- package/min/vs/loader.js +1 -1
- package/min-maps/nls.messages.de.js.map +1 -1
- package/min-maps/nls.messages.es.js.map +1 -1
- package/min-maps/nls.messages.fr.js.map +1 -1
- package/min-maps/nls.messages.it.js.map +1 -1
- package/min-maps/nls.messages.ja.js.map +1 -1
- package/min-maps/nls.messages.ko.js.map +1 -1
- package/min-maps/nls.messages.ru.js.map +1 -1
- package/min-maps/nls.messages.zh-cn.js.map +1 -1
- package/min-maps/nls.messages.zh-tw.js.map +1 -1
- package/min-maps/vs/loader.js.map +1 -1
- package/package.json +1 -1
- package/version.txt +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.51.0
|
|
3
|
+
* Version: 0.51.0(67d664a32968e19e2eb08b696a92463804182ae4)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------*/(function(){var oe=["exports","require","vs/base/common/lifecycle","vs/nls","vs/editor/common/core/range","vs/base/browser/dom","vs/base/common/event","vs/platform/instantiation/common/instantiation","vs/base/common/errors","vs/editor/common/core/position","vs/css!vs/editor/editor.main","vs/base/common/strings","vs/platform/contextkey/common/contextkey","vs/base/common/arrays","vs/base/common/async","vs/editor/browser/editorExtensions","vs/base/common/platform","vs/editor/common/services/languageFeatures","vs/base/common/cancellation","vs/base/common/types","vs/editor/common/editorContextKeys","vs/base/common/observable","vs/base/common/uri","vs/editor/common/core/selection","vs/platform/commands/common/commands","vs/platform/theme/common/themeService","vs/base/common/codicons","vs/platform/configuration/common/configuration","vs/editor/common/languages","vs/platform/actions/common/actions","vs/base/common/themables","vs/platform/keybinding/common/keybinding","vs/platform/theme/common/colorRegistry","vs/base/common/color","vs/editor/common/languages/languageConfigurationRegistry","vs/editor/browser/services/codeEditorService","vs/editor/common/model/textModel","vs/editor/common/config/editorOptions","vs/platform/registry/common/platform","vs/base/browser/fastDomNode","vs/editor/common/model","vs/base/common/actions","vs/editor/common/languages/language","vs/base/browser/ui/hover/hoverDelegateFactory","vs/editor/common/services/model","vs/base/common/map","vs/base/browser/keyboardEvent","vs/base/common/network","vs/base/browser/ui/aria/aria","vs/platform/instantiation/common/extensions","vs/platform/notification/common/notification","vs/base/common/resources","vs/base/browser/window","vs/base/common/iterator","vs/base/common/objects","vs/editor/common/core/lineRange","vs/editor/browser/view/viewPart","vs/base/common/htmlContent","vs/platform/contextview/browser/contextView","vs/base/common/stopwatch","vs/platform/accessibility/common/accessibility","vs/platform/log/common/log","vs/platform/opener/common/opener","vs/platform/quickinput/common/quickInput","vs/base/browser/browser","vs/base/common/observableInternal/derived","vs/platform/telemetry/common/telemetry","vs/base/common/arraysFind","vs/editor/common/core/offsetRange","vs/base/browser/touch","vs/editor/common/languages/modesRegistry","vs/platform/theme/common/iconRegistry","vs/base/common/keyCodes","vs/base/common/linkedList","vs/editor/browser/config/domFontInfo","vs/editor/common/core/editOperation","vs/editor/common/cursorCommon","vs/base/browser/mouseEvent","vs/editor/common/services/resolverService","vs/editor/common/services/languageFeatureDebounce","vs/editor/common/core/editorColorRegistry","vs/base/browser/ui/hover/hoverDelegate2","vs/base/common/filters","vs/editor/contrib/hover/browser/hoverTypes","vs/base/browser/ui/widget","vs/base/browser/ui/scrollbar/scrollableElement","vs/base/browser/ui/actionbar/actionbar","vs/editor/browser/widget/diffEditor/utils","vs/platform/theme/common/colorUtils","vs/base/common/assert","vs/base/common/hierarchicalKind","vs/base/common/observableInternal/base","vs/base/browser/event","vs/editor/common/core/cursorColumns","vs/editor/common/tokens/lineTokens","vs/editor/common/viewModel","vs/platform/progress/common/progress","vs/platform/theme/common/theme","vs/base/common/lazy","vs/base/common/path","vs/platform/storage/common/storage","vs/base/common/equals","vs/base/browser/trustedTypes","vs/editor/common/core/textEdit","vs/editor/common/diff/rangeMapping","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length","vs/editor/common/standaloneStrings","vs/platform/markers/common/markers","vs/platform/configuration/common/configurationRegistry","vs/platform/theme/browser/defaultStyles","vs/base/common/severity","vs/editor/browser/observableCodeEditor","vs/editor/common/core/textLength","vs/base/browser/ui/iconLabel/iconLabels","vs/base/browser/ui/list/listWidget","vs/editor/common/core/stringBuilder","vs/editor/common/services/editorWorker","vs/platform/clipboard/common/clipboardService","vs/platform/hover/browser/hover","vs/platform/layout/browser/layoutService","vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer","vs/platform/keybinding/common/keybindingsRegistry","vs/editor/contrib/editorState/browser/editorState","vs/platform/theme/common/colors/baseColors","vs/platform/actions/browser/menuEntryActionViewItem","vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget","vs/base/common/decorators","vs/base/common/functional","vs/base/common/mime","vs/base/common/hash","vs/editor/common/languages/languageConfiguration","vs/editor/common/textModelEvents","vs/editor/browser/view/dynamicViewOverlay","vs/editor/contrib/codeAction/common/types","vs/editor/contrib/snippet/browser/snippetParser","vs/editor/common/viewLayout/viewLineRenderer","vs/platform/accessibilitySignal/browser/accessibilitySignalService","vs/platform/theme/common/colors/editorColors","vs/editor/browser/widget/diffEditor/registrations.contribution","vs/base/common/keybindings","vs/base/common/numbers","vs/base/common/iconLabels","vs/editor/browser/stableEditorScroll","vs/editor/common/core/characterClassifier","vs/editor/common/core/eolCounter","vs/editor/common/commands/replaceCommand","vs/editor/common/editorFeatures","vs/editor/common/encodedTokenAttributes","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet","vs/editor/common/viewLayout/lineDecorations","vs/base/browser/ui/actionbar/actionViewItems","vs/editor/browser/services/bulkEditService","vs/editor/standalone/common/standaloneTheme","vs/editor/contrib/suggest/browser/suggest","vs/platform/quickinput/common/quickAccess","vs/editor/contrib/codeAction/browser/codeAction","vs/editor/contrib/peekView/browser/peekView","vs/base/browser/ui/tree/tree","vs/base/common/buffer","vs/base/common/observableInternal/debugName","vs/base/common/observableInternal/logging","vs/base/common/scrollable","vs/editor/browser/view/renderingContext","vs/editor/common/config/editorZoom","vs/editor/common/core/wordCharacterClassifier","vs/editor/common/core/wordHelper","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm","vs/editor/browser/editorBrowser","vs/editor/common/languages/supports","vs/editor/common/viewEventHandler","vs/base/common/hotReloadHelpers","vs/base/browser/globalPointerMoveMonitor","vs/base/browser/ui/sash/sash","vs/base/browser/ui/hover/hoverWidget","vs/base/browser/ui/toggle/toggle","vs/base/browser/ui/tree/abstractTree","vs/editor/common/languages/nullTokenize","vs/editor/contrib/gotoSymbol/browser/referencesModel","vs/platform/contextkey/common/contextkeys","vs/platform/dialogs/common/dialogs","vs/platform/instantiation/common/serviceCollection","vs/platform/label/common/label","vs/editor/contrib/documentSymbols/browser/outlineModel","vs/editor/common/commands/shiftCommand","vs/editor/contrib/message/browser/messageController","vs/editor/browser/editorDom","vs/platform/workspace/common/workspace","vs/base/common/idGenerator","vs/base/common/range","vs/base/common/observableInternal/utils","vs/base/common/diff/diff","vs/base/common/codiconsUtil","vs/base/common/uint","vs/base/common/uuid","vs/base/common/dataTransfer","vs/base/browser/ui/codicons/codiconStyles","vs/editor/common/core/textModelDefaults","vs/editor/common/editorCommon","vs/editor/common/cursor/cursorWordOperations","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast","vs/editor/common/model/textModelSearch","vs/editor/contrib/folding/browser/foldingRanges","vs/editor/contrib/inlineCompletions/browser/ghostText","vs/editor/contrib/inlineCompletions/browser/utils","vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/base/browser/markdownRenderer","vs/editor/common/languages/supports/richEditBrackets","vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture","vs/editor/common/services/textResourceConfiguration","vs/editor/browser/controller/textAreaInput","vs/editor/common/cursor/cursorTypeEditOperations","vs/editor/browser/coreCommands","vs/editor/browser/widget/diffEditor/diffProviderFactoryService","vs/platform/list/browser/listService","vs/editor/contrib/hover/browser/markdownHoverParticipant","vs/platform/actions/browser/toolbar","vs/platform/undoRedo/common/undoRedo","vs/editor/browser/widget/codeEditor/codeEditorWidget","vs/editor/contrib/find/browser/findModel","vs/editor/contrib/snippet/browser/snippetController2","vs/base/browser/ui/scrollbar/scrollbarState","vs/base/browser/dnd","vs/base/common/ternarySearchTree","vs/base/browser/ui/mouseCursor/mouseCursor","vs/css!vs/editor/contrib/colorPicker/browser/colorPicker","vs/css!vs/editor/contrib/hover/browser/hover","vs/css!vs/platform/quickinput/browser/media/quickInput","vs/editor/browser/config/tabFocus","vs/editor/common/core/indentation","vs/editor/common/diff/defaultLinesDiffComputer/utils","vs/editor/common/diff/linesDiffComputer","vs/editor/common/cursor/cursorMoveOperations","vs/editor/common/cursor/cursorDeleteOperations","vs/editor/common/cursor/cursorMoveCommands","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer","vs/editor/common/model/utils","vs/editor/common/standalone/standaloneEnums","vs/editor/common/textModelGuides","vs/editor/common/languages/supports/indentationLineProcessor","vs/editor/common/languages/autoIndent","vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/editor/common/viewEvents","vs/editor/common/viewModelEventDispatcher","vs/editor/contrib/inlineCompletions/browser/commandIds","vs/editor/contrib/inlineCompletions/browser/singleTextEdit","vs/base/common/keybindingLabels","vs/base/browser/canIUse","vs/base/browser/ui/tree/indexTreeModel","vs/base/browser/ui/tree/objectTreeModel","vs/base/common/extpath","vs/base/common/marshalling","vs/base/browser/pixelRatio","vs/base/browser/ui/iconLabel/iconLabel","vs/base/browser/ui/resizable/resizable","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/base/browser/ui/list/listView","vs/base/browser/ui/button/button","vs/base/browser/ui/inputbox/inputBox","vs/base/browser/ui/findinput/findInput","vs/editor/common/config/fontInfo","vs/editor/browser/view/viewLayer","vs/editor/contrib/hover/browser/hoverActionIds","vs/platform/instantiation/common/descriptors","vs/editor/common/services/markerDecorations","vs/editor/common/services/semanticTokensStyling","vs/editor/contrib/dropOrPasteInto/browser/edit","vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys","vs/editor/contrib/parameterHints/browser/provideSignatureHelp","vs/platform/environment/common/environment","vs/platform/quickinput/browser/quickInput","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/editor/common/config/editorConfigurationSchema","vs/editor/browser/services/editorWorkerService","vs/editor/common/languages/enterAction","vs/editor/common/cursor/cursorTypeOperations","vs/editor/contrib/gotoSymbol/browser/goToSymbol","vs/platform/theme/common/colors/miscColors","vs/platform/theme/common/colors/listColors","vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/editor/browser/viewParts/lines/viewLine","vs/editor/common/services/semanticTokensProviderStyling","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones","vs/editor/browser/widget/diffEditor/diffEditorWidget","vs/editor/contrib/codeAction/browser/codeActionController","vs/editor/contrib/colorPicker/browser/colorHoverParticipant","vs/editor/contrib/folding/browser/folding","vs/editor/contrib/inlineProgress/browser/inlineProgress","vs/editor/contrib/gotoSymbol/browser/goToCommands","vs/editor/contrib/hover/browser/hoverController","vs/editor/contrib/dropOrPasteInto/browser/defaultProviders","vs/editor/contrib/suggest/browser/suggestController","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController","vs/editor/standalone/browser/standaloneServices","vs/base/browser/performance","vs/base/common/cache","vs/base/common/collections","vs/base/common/observableInternal/autorun","vs/base/common/ime","vs/base/common/symbols","vs/css!vs/base/browser/ui/actionbar/actionbar","vs/css!vs/base/browser/ui/dropdown/dropdown","vs/css!vs/base/browser/ui/findinput/findInput","vs/css!vs/base/browser/ui/list/list","vs/css!vs/platform/actionWidget/browser/actionWidget","vs/editor/browser/viewParts/minimap/minimapCharSheet","vs/editor/common/config/diffEditor","vs/editor/browser/view/viewUserInputEvents","vs/editor/browser/controller/textAreaState","vs/editor/common/core/rgba","vs/editor/common/commands/surroundSelectionCommand","vs/editor/common/cursor/cursorAtomicMoveOperations","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm","vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations","vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence","vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer","vs/editor/common/editorAction","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/combineTextEditInfos","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets","vs/editor/common/model/prefixSumComputer","vs/editor/common/model/textModelPart","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase","vs/editor/common/modelLineProjectionData","vs/editor/common/services/treeViewsDnd","vs/editor/common/services/unicodeTextModelHighlighter","vs/editor/common/model/guidesTextModelPart","vs/editor/common/tokens/contiguousMultilineTokensBuilder","vs/editor/browser/viewParts/margin/margin","vs/editor/common/viewModel/overviewZoneManager","vs/editor/contrib/comment/browser/blockCommentCommand","vs/editor/contrib/folding/browser/foldingModel","vs/editor/contrib/folding/browser/indentRangeProvider","vs/editor/contrib/folding/browser/syntaxRangeProvider","vs/editor/contrib/format/browser/formattingEdit","vs/editor/contrib/indentation/common/indentUtils","vs/editor/contrib/semanticTokens/common/semanticTokensConfig","vs/editor/contrib/smartSelect/browser/bracketSelections","vs/editor/contrib/stickyScroll/browser/stickyScrollElement","vs/editor/contrib/suggest/browser/completionModel","vs/editor/contrib/suggest/browser/wordDistance","vs/editor/standalone/common/monarch/monarchCommon","vs/nls.messages","vs/base/common/errorMessage","vs/base/browser/fonts","vs/base/common/process","vs/base/common/hotReload","vs/base/common/glob","vs/base/browser/dompurify/dompurify","vs/base/browser/formattedTextRenderer","vs/base/browser/ui/contextview/contextview","vs/base/browser/ui/countBadge/countBadge","vs/base/browser/ui/highlightedlabel/highlightedLabel","vs/base/browser/ui/scrollbar/abstractScrollbar","vs/base/browser/ui/splitview/splitview","vs/base/browser/ui/findinput/findInputToggles","vs/base/browser/ui/dropdown/dropdownActionViewItem","vs/base/browser/ui/tree/objectTree","vs/base/common/worker/simpleWorker","vs/editor/browser/config/elementSizeObserver","vs/editor/browser/widget/diffEditor/components/diffEditorSash","vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature","vs/editor/browser/widget/multiDiffEditor/utils","vs/editor/browser/config/fontMeasurements","vs/editor/common/core/textChange","vs/editor/common/languageSelector","vs/editor/common/languages/textToHtmlTokenizer","vs/editor/common/model/editStack","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/editor/common/services/editorBaseApi","vs/editor/common/viewModel/minimapTokensColorTracker","vs/editor/common/viewModel/viewModelDecorations","vs/editor/contrib/hover/browser/hoverOperation","vs/editor/contrib/inlayHints/browser/inlayHints","vs/editor/contrib/inlineCompletions/browser/provideInlineCompletions","vs/editor/contrib/placeholderText/browser/placeholderTextContribution","vs/platform/accessibility/browser/accessibleViewRegistry","vs/platform/action/common/action","vs/platform/files/common/files","vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature","vs/editor/contrib/codelens/browser/codelens","vs/editor/contrib/semanticTokens/common/getSemanticTokens","vs/editor/standalone/common/monarch/monarchLexer","vs/editor/contrib/inlineEdits/browser/consts","vs/editor/contrib/hover/browser/contentHoverStatusBar","vs/editor/contrib/hover/browser/contentHoverWidget","vs/platform/keybinding/common/keybindingResolver","vs/platform/keybinding/common/resolvedKeybindingItem","vs/editor/standalone/browser/standaloneLayoutService","vs/platform/contextview/browser/contextViewService","vs/editor/contrib/dropOrPasteInto/browser/postEditWidget","vs/platform/observable/common/platformObservableUtils","vs/platform/quickinput/browser/quickInputUtils","vs/platform/dnd/browser/dnd","vs/editor/browser/dnd","vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider","vs/editor/contrib/colorPicker/browser/color","vs/editor/contrib/suggest/browser/suggestWidgetDetails","vs/platform/configuration/common/configurationModels","vs/platform/history/browser/contextScopedHistoryWidget","vs/editor/contrib/suggest/browser/suggestMemory","vs/platform/actions/common/menuService","vs/editor/browser/widget/diffEditor/diffEditorViewModel","vs/editor/contrib/codeAction/browser/codeActionModel","vs/editor/contrib/format/browser/format","vs/editor/contrib/hover/browser/getHover","vs/editor/contrib/wordOperations/browser/wordOperations","vs/platform/theme/common/colors/inputColors","vs/platform/theme/common/colors/minimapColors","vs/editor/browser/controller/mouseTarget","vs/editor/browser/widget/diffEditor/features/overviewRulerFeature","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess","vs/editor/standalone/browser/standaloneCodeEditorService","vs/editor/standalone/browser/standaloneThemeService","vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate","vs/editor/contrib/codeAction/browser/lightBulbWidget","vs/editor/contrib/colorPicker/browser/colorDetector","vs/editor/contrib/find/browser/findController","vs/editor/contrib/folding/browser/foldingDecorations","vs/editor/contrib/inlineEdit/browser/inlineEditController","vs/editor/contrib/wordHighlighter/browser/highlightDecorations","vs/editor/contrib/gotoError/browser/gotoError","vs/editor/contrib/gotoSymbol/browser/peek/referencesController","vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/editor/contrib/inlayHints/browser/inlayHintsLocations","vs/editor/contrib/inlayHints/browser/inlayHintsController","vs/editor/contrib/inlayHints/browser/inlayHintsHover","vs/editor/contrib/stickyScroll/browser/stickyScrollController","vs/editor/contrib/contextmenu/browser/contextmenu","vs/editor/contrib/dropOrPasteInto/browser/copyPasteController","vs/editor/contrib/snippet/browser/snippetSession","vs/editor/contrib/suggest/browser/suggestModel","vs/editor/contrib/inlineEdits/browser/inlineEditsWidget","vs/editor/contrib/inlineEdits/browser/inlineEditsController","vs/platform/workspace/common/workspaceTrust","vs/base/browser/iframe","vs/base/browser/ui/list/list","vs/base/browser/ui/list/splice","vs/base/common/diff/diffChange","vs/base/common/comparers","vs/base/common/linkedText","vs/base/common/marked/marked","vs/base/common/naturalLanguage/korean","vs/base/common/navigator","vs/base/common/history","vs/base/common/observableInternal/lazyObservableValue","vs/base/common/observableInternal/api","vs/base/common/observableInternal/promise","vs/base/browser/ui/list/rangeMap","vs/base/common/search","vs/base/common/tfIdf","vs/base/common/codiconsLibrary","vs/css!vs/base/browser/ui/aria/aria","vs/css!vs/base/browser/ui/button/button","vs/css!vs/base/browser/ui/codicons/codicon/codicon","vs/css!vs/base/browser/ui/codicons/codicon/codicon-modifiers","vs/css!vs/base/browser/ui/contextview/contextview","vs/css!vs/base/browser/ui/countBadge/countBadge","vs/css!vs/base/browser/ui/hover/hoverWidget","vs/css!vs/base/browser/ui/iconLabel/iconlabel","vs/css!vs/base/browser/ui/inputbox/inputBox","vs/css!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/css!vs/base/browser/ui/mouseCursor/mouseCursor","vs/css!vs/base/browser/ui/progressbar/progressbar","vs/css!vs/base/browser/ui/sash/sash","vs/css!vs/base/browser/ui/scrollbar/media/scrollbars","vs/css!vs/base/browser/ui/selectBox/selectBox","vs/css!vs/base/browser/ui/selectBox/selectBoxCustom","vs/css!vs/base/browser/ui/splitview/splitview","vs/css!vs/base/browser/ui/table/table","vs/css!vs/base/browser/ui/toggle/toggle","vs/css!vs/base/browser/ui/toolbar/toolbar","vs/css!vs/base/browser/ui/tree/media/tree","vs/css!vs/editor/browser/controller/textAreaHandler","vs/css!vs/editor/browser/services/hoverService/hover","vs/css!vs/editor/browser/viewParts/blockDecorations/blockDecorations","vs/css!vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/css!vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/css!vs/editor/browser/viewParts/indentGuides/indentGuides","vs/css!vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/css!vs/editor/browser/viewParts/lines/viewLines","vs/css!vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/css!vs/editor/browser/viewParts/margin/margin","vs/css!vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/css!vs/editor/browser/viewParts/minimap/minimap","vs/css!vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/css!vs/editor/browser/viewParts/rulers/rulers","vs/css!vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/css!vs/editor/browser/viewParts/selections/selections","vs/css!vs/editor/browser/viewParts/viewCursors/viewCursors","vs/css!vs/editor/browser/viewParts/whitespace/whitespace","vs/css!vs/editor/browser/widget/codeEditor/editor","vs/css!vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","vs/css!vs/editor/browser/widget/diffEditor/style","vs/css!vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown","vs/css!vs/editor/browser/widget/multiDiffEditor/style","vs/css!vs/editor/contrib/anchorSelect/browser/anchorSelect","vs/css!vs/editor/contrib/bracketMatching/browser/bracketMatching","vs/css!vs/editor/contrib/codeAction/browser/lightBulbWidget","vs/css!vs/editor/contrib/codelens/browser/codelensWidget","vs/css!vs/editor/contrib/dnd/browser/dnd","vs/css!vs/editor/contrib/dropOrPasteInto/browser/postEditWidget","vs/css!vs/editor/contrib/find/browser/findOptionsWidget","vs/css!vs/editor/contrib/find/browser/findWidget","vs/css!vs/editor/contrib/folding/browser/folding","vs/css!vs/editor/contrib/gotoError/browser/media/gotoErrorWidget","vs/css!vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition","vs/css!vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","vs/css!vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/css!vs/editor/contrib/inlineCompletions/browser/ghostText","vs/css!vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget","vs/css!vs/editor/contrib/inlineEdit/browser/inlineEdit","vs/css!vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget","vs/css!vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget","vs/css!vs/editor/contrib/inlineEdits/browser/inlineEditsWidget","vs/css!vs/editor/contrib/inlineProgress/browser/inlineProgressWidget","vs/css!vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/css!vs/editor/contrib/links/browser/links","vs/css!vs/editor/contrib/message/browser/messageController","vs/css!vs/editor/contrib/parameterHints/browser/parameterHints","vs/css!vs/editor/contrib/peekView/browser/media/peekViewWidget","vs/css!vs/editor/contrib/placeholderText/browser/placeholderText","vs/css!vs/editor/contrib/rename/browser/renameWidget","vs/css!vs/editor/contrib/snippet/browser/snippetSession","vs/css!vs/editor/contrib/stickyScroll/browser/stickyScroll","vs/css!vs/editor/contrib/suggest/browser/media/suggest","vs/css!vs/editor/contrib/symbolIcons/browser/symbolIcons","vs/css!vs/editor/contrib/unicodeHighlighter/browser/bannerController","vs/css!vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","vs/css!vs/editor/contrib/wordHighlighter/browser/highlightDecorations","vs/css!vs/editor/contrib/zoneWidget/browser/zoneWidget","vs/css!vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/css!vs/editor/standalone/browser/inspectTokens/inspectTokens","vs/css!vs/editor/standalone/browser/quickInput/standaloneQuickInput","vs/css!vs/editor/standalone/browser/standalone-tokens","vs/css!vs/platform/actions/browser/menuEntryActionViewItem","vs/css!vs/platform/opener/browser/link","vs/css!vs/platform/severityIcon/browser/media/severityIcon","vs/editor/browser/config/charWidthReader","vs/editor/browser/config/migrateOptions","vs/editor/browser/viewParts/lines/domReadingContext","vs/editor/browser/viewParts/lines/rangeUtil","vs/editor/browser/viewParts/minimap/minimapCharRenderer","vs/editor/browser/viewParts/minimap/minimapPreBaked","vs/editor/browser/viewParts/minimap/minimapCharRendererFactory","vs/editor/browser/widget/diffEditor/delegatingEditorImpl","vs/editor/browser/widget/multiDiffEditor/objectPool","vs/editor/common/commands/trimTrailingWhitespaceCommand","vs/editor/common/core/positionToOffset","vs/editor/common/cursor/cursorContext","vs/editor/common/diff/defaultLinesDiffComputer/lineSequence","vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing","vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines","vs/editor/common/diff/legacyLinesDiffComputer","vs/editor/common/diff/linesDiffComputers","vs/editor/common/editorTheme","vs/editor/common/languages/defaultDocumentColorsComputer","vs/editor/common/languages/linkComputer","vs/editor/common/cursor/cursorColumnSelection","vs/editor/common/cursor/oneCursor","vs/editor/common/cursor/cursorCollection","vs/editor/common/languages/supports/characterPair","vs/editor/common/languages/supports/indentRules","vs/editor/common/languages/supports/inplaceReplaceSupport","vs/editor/common/languages/supports/onEnter","vs/editor/common/languages/supports/tokenization","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees","vs/editor/common/model/bracketPairsTextModelPart/fixBrackets","vs/editor/common/model/fixedArray","vs/editor/common/model/indentationGuesser","vs/editor/common/model/intervalTree","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/editor/common/model/mirrorTextModel","vs/editor/common/model/textModelText","vs/editor/common/services/findSectionHeaders","vs/editor/common/textModelBracketPairs","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree","vs/editor/common/tokenizationRegistry","vs/editor/common/tokens/contiguousMultilineTokens","vs/editor/common/tokens/contiguousTokensEditing","vs/editor/common/tokens/contiguousTokensStore","vs/editor/common/tokens/sparseMultilineTokens","vs/editor/common/tokens/sparseTokensStore","vs/editor/browser/viewParts/blockDecorations/blockDecorations","vs/editor/browser/viewParts/decorations/decorations","vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/editor/browser/viewParts/rulers/rulers","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/viewZones/viewZones","vs/editor/common/viewLayout/linePart","vs/editor/common/viewLayout/linesLayout","vs/editor/common/viewLayout/viewLinesViewportData","vs/editor/common/viewModel/glyphLanesModel","vs/editor/common/viewModel/modelLineProjection","vs/editor/common/viewModel/monospaceLineBreaksComputer","vs/editor/browser/viewParts/overviewRuler/overviewRuler","vs/editor/common/viewModel/viewContext","vs/editor/common/viewLayout/viewLayout","vs/editor/contrib/caretOperations/browser/moveCaretCommand","vs/editor/contrib/colorPicker/browser/colorPickerModel","vs/editor/contrib/comment/browser/lineCommentCommand","vs/editor/contrib/dnd/browser/dragAndDropCommand","vs/editor/contrib/find/browser/replaceAllCommand","vs/editor/contrib/find/browser/replacePattern","vs/editor/contrib/folding/browser/hiddenRangeModel","vs/editor/contrib/hover/browser/contentHoverTypes","vs/editor/contrib/hover/browser/hoverAccessibleViews","vs/editor/contrib/inPlaceReplace/browser/inPlaceReplaceCommand","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView","vs/editor/contrib/inlineEdit/browser/commandIds","vs/editor/contrib/linesOperations/browser/copyLinesCommand","vs/editor/contrib/linesOperations/browser/sortLinesCommand","vs/editor/contrib/smartSelect/browser/wordSelections","vs/editor/contrib/suggest/browser/suggestCommitCharacters","vs/editor/contrib/suggest/browser/suggestOvertypingCapturer","vs/editor/standalone/common/monarch/monarchCompile","vs/base/browser/ui/scrollbar/scrollbarVisibilityController","vs/base/browser/ui/tree/compressedObjectTreeModel","vs/base/common/fuzzyScorer","vs/base/common/labels","vs/base/browser/domObservable","vs/base/browser/ui/dropdown/dropdown","vs/base/browser/ui/list/rowCache","vs/base/browser/ui/progressbar/progressbar","vs/base/browser/ui/selectBox/selectBoxNative","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/base/browser/ui/list/listPaging","vs/base/browser/ui/table/tableWidget","vs/base/browser/ui/selectBox/selectBoxCustom","vs/base/browser/ui/selectBox/selectBox","vs/base/browser/ui/findinput/replaceInput","vs/base/browser/ui/menu/menu","vs/base/browser/ui/toolbar/toolbar","vs/base/browser/ui/tree/dataTree","vs/base/browser/ui/tree/asyncDataTree","vs/base/browser/defaultWorkerFactory","vs/base/parts/storage/common/storage","vs/editor/browser/services/hoverService/updatableHoverWidget","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/editor/browser/widget/codeEditor/codeEditorContributions","vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin","vs/editor/browser/widget/diffEditor/features/revertButtonsFeature","vs/editor/browser/widget/diffEditor/utils/editorGutter","vs/editor/browser/viewParts/viewCursors/viewCursor","vs/editor/browser/view/domLineBreaksComputer","vs/editor/browser/view/viewOverlays","vs/editor/common/languageFeatureRegistry","vs/editor/common/languages/supports/electricCharacter","vs/editor/common/languages/supports/languageBracketsConfiguration","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/editor/common/model/textModelTokens","vs/editor/common/model/tokenizationTextModelPart","vs/editor/common/services/editorSimpleWorker","vs/editor/common/services/semanticTokensDto","vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines","vs/editor/contrib/hover/browser/contentHoverComputer","vs/editor/contrib/hover/browser/marginHoverComputer","vs/editor/contrib/hover/browser/resizableContentWidget","vs/platform/action/common/actionCommonCategories","vs/platform/contextkey/common/scanner","vs/platform/editor/common/editor","vs/platform/extensions/common/extensions","vs/platform/history/browser/historyWidgetKeybindingHint","vs/platform/instantiation/common/graph","vs/editor/common/services/languageFeaturesService","vs/editor/common/services/treeViewsDndService","vs/editor/contrib/inlineCompletions/browser/ghostTextWidget","vs/editor/contrib/links/browser/getLinks","vs/editor/standalone/browser/colorizer","vs/editor/contrib/parameterHints/browser/parameterHintsModel","vs/editor/contrib/suggest/browser/suggestAlternatives","vs/editor/contrib/suggest/browser/wordContextKey","vs/editor/browser/config/editorConfiguration","vs/platform/contextkey/browser/contextKeyService","vs/platform/instantiation/common/instantiationService","vs/platform/keybinding/common/baseResolvedKeybinding","vs/platform/keybinding/common/abstractKeybindingService","vs/platform/keybinding/common/usLayoutResolvedKeybinding","vs/platform/accessibility/browser/accessibilityService","vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution","vs/editor/contrib/documentSymbols/browser/documentSymbols","vs/platform/clipboard/browser/clipboardService","vs/platform/log/common/logService","vs/editor/contrib/gotoError/browser/markerNavigationService","vs/platform/markers/common/markerService","vs/platform/observable/common/wrapInReloadableClass","vs/editor/browser/services/openerService","vs/platform/opener/browser/link","vs/platform/quickinput/browser/pickerQuickAccess","vs/platform/quickinput/browser/quickInputBox","vs/editor/browser/services/hoverService/hoverWidget","vs/editor/browser/services/webWorker","vs/editor/common/cursor/cursor","vs/editor/common/services/getIconClasses","vs/editor/common/services/languagesAssociations","vs/editor/common/services/languagesRegistry","vs/editor/common/services/languageService","vs/editor/contrib/hover/browser/marginHoverWidget","vs/editor/contrib/indentation/common/indentation","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource","vs/editor/contrib/linesOperations/browser/moveLinesCommand","vs/platform/configuration/common/configurations","vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode","vs/platform/quickinput/browser/quickInputActions","vs/platform/quickinput/browser/helpQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess","vs/platform/quickinput/browser/quickAccess","vs/platform/severityIcon/browser/severityIcon","vs/editor/contrib/codelens/browser/codeLensCache","vs/editor/browser/services/markerDecorations","vs/editor/browser/view/viewController","vs/editor/contrib/anchorSelect/browser/anchorSelect","vs/editor/contrib/caretOperations/browser/caretOperations","vs/editor/contrib/caretOperations/browser/transpose","vs/editor/contrib/comment/browser/comment","vs/editor/contrib/cursorUndo/browser/cursorUndo","vs/editor/contrib/editorState/browser/keybindingCancellation","vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver","vs/editor/contrib/fontZoom/browser/fontZoom","vs/editor/contrib/format/browser/formatActions","vs/editor/contrib/gotoSymbol/browser/symbolNavigation","vs/editor/contrib/indentation/browser/indentation","vs/editor/contrib/lineSelection/browser/lineSelection","vs/editor/contrib/linesOperations/browser/linesOperations","vs/editor/contrib/longLinesHelper/browser/longLinesHelper","vs/editor/contrib/readOnlyMessage/browser/contribution","vs/editor/contrib/smartSelect/browser/smartSelect","vs/editor/contrib/tokenization/browser/tokenization","vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators","vs/editor/contrib/wordPartOperations/browser/wordPartOperations","vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/standalone/browser/inspectTokens/inspectTokens","vs/platform/quickinput/browser/commandsQuickAccess","vs/editor/contrib/quickAccess/browser/commandsQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess","vs/platform/theme/common/colors/menuColors","vs/platform/theme/common/colors/chartsColors","vs/platform/theme/common/colors/quickpickColors","vs/platform/theme/common/colors/searchColors","vs/editor/browser/viewParts/minimap/minimap","vs/editor/browser/widget/multiDiffEditor/colors","vs/editor/contrib/codeAction/browser/codeActionMenu","vs/editor/contrib/gotoSymbol/browser/peek/referencesTree","vs/platform/actionWidget/browser/actionList","vs/platform/actionWidget/browser/actionWidget","vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer","vs/editor/contrib/colorPicker/browser/colorPickerWidget","vs/editor/contrib/parameterHints/browser/parameterHintsWidget","vs/editor/contrib/parameterHints/browser/parameterHints","vs/editor/contrib/unicodeHighlighter/browser/bannerController","vs/platform/theme/browser/iconsStyleSheet","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/editor/browser/viewParts/lines/viewLines","vs/editor/browser/services/abstractCodeEditorService","vs/editor/browser/services/hoverService/hoverService","vs/editor/browser/viewParts/editorScrollbar/editorScrollbar","vs/editor/browser/viewParts/selections/selections","vs/editor/browser/widget/diffEditor/components/diffEditorEditors","vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/editor/browser/viewParts/indentGuides/indentGuides","vs/editor/browser/controller/textAreaHandler","vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler","vs/editor/browser/viewParts/viewCursors/viewCursors","vs/editor/browser/viewParts/whitespace/whitespace","vs/editor/browser/view","vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider","vs/editor/common/services/markerDecorationsService","vs/editor/common/services/semanticTokensStylingService","vs/editor/contrib/placeholderText/browser/placeholderText.contribution","vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess","vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess","vs/editor/contrib/rename/browser/renameWidget","vs/editor/contrib/rename/browser/rename","vs/editor/contrib/semanticTokens/browser/documentSemanticTokens","vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens","vs/editor/contrib/suggest/browser/suggestWidgetRenderer","vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess","vs/editor/standalone/common/themes","vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast","vs/editor/contrib/suggest/browser/suggestWidgetStatus","vs/editor/browser/widget/diffEditor/features/gutterFeature","vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget","vs/platform/contextview/browser/contextMenuService","vs/platform/quickinput/browser/quickInputTree","vs/platform/quickinput/browser/quickInputController","vs/platform/quickinput/browser/quickInputService","vs/editor/standalone/browser/quickInput/standaloneQuickInputService","vs/editor/browser/widget/diffEditor/components/diffEditorDecorations","vs/editor/browser/widget/diffEditor/diffEditorOptions","vs/editor/common/services/modelService","vs/editor/common/viewModel/viewModelLines","vs/editor/common/viewModel/viewModelImpl","vs/editor/browser/widget/diffEditor/commands","vs/editor/browser/widget/diffEditor/diffEditor.contribution","vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl","vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget","vs/editor/contrib/bracketMatching/browser/bracketMatching","vs/editor/contrib/codeAction/browser/codeActionCommands","vs/editor/contrib/codeAction/browser/codeActionContributions","vs/editor/contrib/codelens/browser/codelensWidget","vs/editor/contrib/codelens/browser/codelensController","vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget","vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions","vs/editor/contrib/dnd/browser/dnd","vs/editor/contrib/find/browser/findDecorations","vs/editor/contrib/find/browser/findOptionsWidget","vs/editor/contrib/find/browser/findState","vs/editor/contrib/find/browser/findWidget","vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/editor/contrib/inlineEdit/browser/ghostTextWidget","vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget","vs/editor/contrib/inlineEdit/browser/commands","vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution","vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController","vs/editor/contrib/linkedEditing/browser/linkedEditing","vs/editor/contrib/links/browser/links","vs/editor/contrib/sectionHeaders/browser/sectionHeaders","vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider","vs/editor/contrib/stickyScroll/browser/stickyScrollProvider","vs/editor/contrib/stickyScroll/browser/stickyScrollWidget","vs/editor/contrib/suggest/browser/suggestWidget","vs/editor/contrib/multicursor/browser/multicursor","vs/editor/contrib/wordHighlighter/browser/wordHighlighter","vs/editor/contrib/zoneWidget/browser/zoneWidget","vs/editor/contrib/gotoError/browser/gotoErrorWidget","vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget","vs/editor/contrib/hover/browser/markerHoverParticipant","vs/editor/contrib/hover/browser/contentHoverRendered","vs/editor/contrib/hover/browser/contentHoverController","vs/editor/contrib/colorPicker/browser/colorContributions","vs/editor/contrib/hover/browser/hoverActions","vs/editor/contrib/hover/browser/hoverContribution","vs/editor/contrib/inlayHints/browser/inlayHintsContribution","vs/editor/contrib/stickyScroll/browser/stickyScrollActions","vs/editor/contrib/stickyScroll/browser/stickyScrollContribution","vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch","vs/platform/undoRedo/common/undoRedoService","vs/editor/contrib/clipboard/browser/clipboard","vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution","vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution","vs/editor/contrib/snippet/browser/snippetVariables","vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel","vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider","vs/editor/contrib/inlineCompletions/browser/commands","vs/editor/contrib/inlineCompletions/browser/hoverParticipant","vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution","vs/editor/contrib/inlineEdits/browser/inlineEditsModel","vs/editor/contrib/inlineEdits/browser/commands","vs/editor/contrib/inlineEdits/browser/inlineEdits.contribution","vs/editor/contrib/suggest/browser/suggestInlineCompletions","vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter","vs/editor/editor.all","vs/editor/standalone/browser/standaloneCodeEditor","vs/editor/standalone/browser/standaloneEditor","vs/editor/standalone/browser/standaloneLanguages","vs/editor/editor.api","vs/css","vs/editor/editor.main"],re=function(ae){for(var e=[],c=0,k=ae.length;c<k;c++)e[c]=oe[ae[c]];return e};define(oe[867],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load=c;function c(f,_,v,p){if(p=p||{},(p["vs/css"]||{}).disabled){v({});return}const s=_.toUrl(f+".css");k(f,s,()=>{v({})},t=>{typeof v.error=="function"&&v.error("Could not find "+s+".")})}function k(f,_,v,p){if(E(f,_)){v();return}L(f,_,v,p)}function E(f,_){const v=window.document.getElementsByTagName("link");for(let p=0,n=v.length;p<n;p++){const s=v[p].getAttribute("data-name"),t=v[p].getAttribute("href");if(s===f||t===_)return!0}return!1}function L(f,_,v,p){const n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("data-name",f),y(f,n,v,p),n.setAttribute("href",_),(window.document.head||window.document.getElementsByTagName("head")[0]).appendChild(n)}function y(f,_,v,p){const n=()=>{_.removeEventListener("load",s),_.removeEventListener("error",t)},s=i=>{n(),v()},t=i=>{n(),p(i)};_.addEventListener("load",s),_.addEventListener("error",t)}});/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries:qt,setPrototypeOf:Ut,isFrozen:li,getPrototypeOf:di,getOwnPropertyDescriptor:ci}=Object;let{freeze:mt,seal:yt,create:ui}=Object,{apply:Pt,construct:Ot}=typeof Reflect<"u"&&Reflect;Pt||(Pt=function(e,c,k){return e.apply(c,k)}),mt||(mt=function(e){return e}),yt||(yt=function(e){return e}),Ot||(Ot=function(e,c){return new e(...c)});const hi=vt(Array.prototype.forEach),jt=vt(Array.prototype.pop),kt=vt(Array.prototype.push),Mt=vt(String.prototype.toLowerCase),Ft=vt(String.prototype.toString),gi=vt(String.prototype.match),Lt=vt(String.prototype.replace),fi=vt(String.prototype.indexOf),mi=vt(String.prototype.trim),Ct=vt(RegExp.prototype.test),Tt=pi(TypeError);function vt(ae){return function(e){for(var c=arguments.length,k=new Array(c>1?c-1:0),E=1;E<c;E++)k[E-1]=arguments[E];return Pt(ae,e,k)}}function pi(ae){return function(){for(var e=arguments.length,c=new Array(e),k=0;k<e;k++)c[k]=arguments[k];return Ot(ae,c)}}function Ze(ae,e,c){var k;c=(k=c)!==null&&k!==void 0?k:Mt,Ut&&Ut(ae,null);let E=e.length;for(;E--;){let L=e[E];if(typeof L=="string"){const y=c(L);y!==L&&(li(e)||(e[E]=y),L=y)}ae[L]=!0}return ae}function It(ae){const e=ui(null);for(const[c,k]of qt(ae))e[c]=k;return e}function At(ae,e){for(;ae!==null;){const k=ci(ae,e);if(k){if(k.get)return vt(k.get);if(typeof k.value=="function")return vt(k.value)}ae=di(ae)}function c(k){return console.warn("fallback value for",k),null}return c}const Gt=mt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xt=mt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Wt=mt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ci=mt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Bt=mt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bi=mt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$t=mt(["#text"]),Yt=mt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ht=mt(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zt=mt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Rt=mt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vi=yt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Si=yt(/<%[\w\W]*|[\w\W]*%>/gm),_i=yt(/\${[\w\W]*}/gm),wi=yt(/^data-[\-\w.\u00B7-\uFFFF]/),yi=yt(/^aria-[\-\w]+$/),Qt=yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Li=yt(/^(?:\w+script|data):/i),Ei=yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xt=yt(/^html$/i);var Jt=Object.freeze({__proto__:null,MUSTACHE_EXPR:vi,ERB_EXPR:Si,TMPLIT_EXPR:_i,DATA_ATTR:wi,ARIA_ATTR:yi,IS_ALLOWED_URI:Qt,IS_SCRIPT_OR_DATA:Li,ATTR_WHITESPACE:Ei,DOCTYPE_NAME:Xt});const Di=()=>typeof window>"u"?null:window,Ii=function(e,c){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let k=null;const E="data-tt-policy-suffix";c&&c.hasAttribute(E)&&(k=c.getAttribute(E));const L="dompurify"+(k?"#"+k:"");try{return e.createPolicy(L,{createHTML(y){return y},createScriptURL(y){return y}})}catch{return console.warn("TrustedTypes policy "+L+" could not be created."),null}};function ei(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Di();const e=qe=>ei(qe);if(e.version="3.0.5",e.removed=[],!ae||!ae.document||ae.document.nodeType!==9)return e.isSupported=!1,e;const c=ae.document,k=c.currentScript;let{document:E}=ae;const{DocumentFragment:L,HTMLTemplateElement:y,Node:f,Element:_,NodeFilter:v,NamedNodeMap:p=ae.NamedNodeMap||ae.MozNamedAttrMap,HTMLFormElement:n,DOMParser:s,trustedTypes:t}=ae,i=_.prototype,o=At(i,"cloneNode"),g=At(i,"nextSibling"),u=At(i,"childNodes"),l=At(i,"parentNode");if(typeof y=="function"){const qe=E.createElement("template");qe.content&&qe.content.ownerDocument&&(E=qe.content.ownerDocument)}let r,a="";const{implementation:d,createNodeIterator:m,createDocumentFragment:h,getElementsByTagName:C}=E,{importNode:b}=c;let w={};e.isSupported=typeof qt=="function"&&typeof l=="function"&&d&&d.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:S,ERB_EXPR:D,TMPLIT_EXPR:I,DATA_ATTR:T,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:A,ATTR_WHITESPACE:R}=Jt;let{IS_ALLOWED_URI:N}=Jt,O=null;const x=Ze({},[...Gt,...xt,...Wt,...Bt,...$t]);let F=null;const W=Ze({},[...Yt,...Ht,...Zt,...Rt]);let z=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,H=null,K=!0,U=!0,Y=!1,Q=!0,X=!1,G=!1,P=!1,te=!1,se=!1,ue=!1,ge=!1,pe=!0,ce=!1;const ie="user-content-";let ne=!0,J=!1,B={},j=null;const V=Ze({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $=null;const Z=Ze({},["audio","video","img","source","image","track"]);let ee=null;const le=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ve=be,Le=!1,Se=null;const ye=Ze({},[de,me,be],Ft);let Ee;const ke=["application/xhtml+xml","text/html"],Re="text/html";let Pe,Fe=null;const je=E.createElement("form"),Te=function(Ce){return Ce instanceof RegExp||Ce instanceof Function},Ne=function(Ce){if(!(Fe&&Fe===Ce)){if((!Ce||typeof Ce!="object")&&(Ce={}),Ce=It(Ce),Ee=ke.indexOf(Ce.PARSER_MEDIA_TYPE)===-1?Ee=Re:Ee=Ce.PARSER_MEDIA_TYPE,Pe=Ee==="application/xhtml+xml"?Ft:Mt,O="ALLOWED_TAGS"in Ce?Ze({},Ce.ALLOWED_TAGS,Pe):x,F="ALLOWED_ATTR"in Ce?Ze({},Ce.ALLOWED_ATTR,Pe):W,Se="ALLOWED_NAMESPACES"in Ce?Ze({},Ce.ALLOWED_NAMESPACES,Ft):ye,ee="ADD_URI_SAFE_ATTR"in Ce?Ze(It(le),Ce.ADD_URI_SAFE_ATTR,Pe):le,$="ADD_DATA_URI_TAGS"in Ce?Ze(It(Z),Ce.ADD_DATA_URI_TAGS,Pe):Z,j="FORBID_CONTENTS"in Ce?Ze({},Ce.FORBID_CONTENTS,Pe):V,q="FORBID_TAGS"in Ce?Ze({},Ce.FORBID_TAGS,Pe):{},H="FORBID_ATTR"in Ce?Ze({},Ce.FORBID_ATTR,Pe):{},B="USE_PROFILES"in Ce?Ce.USE_PROFILES:!1,K=Ce.ALLOW_ARIA_ATTR!==!1,U=Ce.ALLOW_DATA_ATTR!==!1,Y=Ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=Ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,X=Ce.SAFE_FOR_TEMPLATES||!1,G=Ce.WHOLE_DOCUMENT||!1,se=Ce.RETURN_DOM||!1,ue=Ce.RETURN_DOM_FRAGMENT||!1,ge=Ce.RETURN_TRUSTED_TYPE||!1,te=Ce.FORCE_BODY||!1,pe=Ce.SANITIZE_DOM!==!1,ce=Ce.SANITIZE_NAMED_PROPS||!1,ne=Ce.KEEP_CONTENT!==!1,J=Ce.IN_PLACE||!1,N=Ce.ALLOWED_URI_REGEXP||Qt,ve=Ce.NAMESPACE||be,z=Ce.CUSTOM_ELEMENT_HANDLING||{},Ce.CUSTOM_ELEMENT_HANDLING&&Te(Ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=Ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ce.CUSTOM_ELEMENT_HANDLING&&Te(Ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=Ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ce.CUSTOM_ELEMENT_HANDLING&&typeof Ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=Ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(U=!1),ue&&(se=!0),B&&(O=Ze({},[...$t]),F=[],B.html===!0&&(Ze(O,Gt),Ze(F,Yt)),B.svg===!0&&(Ze(O,xt),Ze(F,Ht),Ze(F,Rt)),B.svgFilters===!0&&(Ze(O,Wt),Ze(F,Ht),Ze(F,Rt)),B.mathMl===!0&&(Ze(O,Bt),Ze(F,Zt),Ze(F,Rt))),Ce.ADD_TAGS&&(O===x&&(O=It(O)),Ze(O,Ce.ADD_TAGS,Pe)),Ce.ADD_ATTR&&(F===W&&(F=It(F)),Ze(F,Ce.ADD_ATTR,Pe)),Ce.ADD_URI_SAFE_ATTR&&Ze(ee,Ce.ADD_URI_SAFE_ATTR,Pe),Ce.FORBID_CONTENTS&&(j===V&&(j=It(j)),Ze(j,Ce.FORBID_CONTENTS,Pe)),ne&&(O["#text"]=!0),G&&Ze(O,["html","head","body"]),O.table&&(Ze(O,["tbody"]),delete q.tbody),Ce.TRUSTED_TYPES_POLICY){if(typeof Ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw Tt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Tt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');r=Ce.TRUSTED_TYPES_POLICY,a=r.createHTML("")}else r===void 0&&(r=Ii(t,k)),r!==null&&typeof a=="string"&&(a=r.createHTML(""));mt&&mt(Ce),Fe=Ce}},fe=Ze({},["mi","mo","mn","ms","mtext"]),we=Ze({},["foreignobject","desc","title","annotation-xml"]),Oe=Ze({},["title","style","font","a","script"]),Be=Ze({},xt);Ze(Be,Wt),Ze(Be,Ci);const Ue=Ze({},Bt);Ze(Ue,bi);const Ye=function(Ce){let _e=l(Ce);(!_e||!_e.tagName)&&(_e={namespaceURI:ve,tagName:"template"});const Ie=Mt(Ce.tagName),Ae=Mt(_e.tagName);return Se[Ce.namespaceURI]?Ce.namespaceURI===me?_e.namespaceURI===be?Ie==="svg":_e.namespaceURI===de?Ie==="svg"&&(Ae==="annotation-xml"||fe[Ae]):!!Be[Ie]:Ce.namespaceURI===de?_e.namespaceURI===be?Ie==="math":_e.namespaceURI===me?Ie==="math"&&we[Ae]:!!Ue[Ie]:Ce.namespaceURI===be?_e.namespaceURI===me&&!we[Ae]||_e.namespaceURI===de&&!fe[Ae]?!1:!Ue[Ie]&&(Oe[Ie]||!Be[Ie]):!!(Ee==="application/xhtml+xml"&&Se[Ce.namespaceURI]):!1},Qe=function(Ce){kt(e.removed,{element:Ce});try{Ce.parentNode.removeChild(Ce)}catch{Ce.remove()}},tt=function(Ce,_e){try{kt(e.removed,{attribute:_e.getAttributeNode(Ce),from:_e})}catch{kt(e.removed,{attribute:null,from:_e})}if(_e.removeAttribute(Ce),Ce==="is"&&!F[Ce])if(se||ue)try{Qe(_e)}catch{}else try{_e.setAttribute(Ce,"")}catch{}},it=function(Ce){let _e,Ie;if(te)Ce="<remove></remove>"+Ce;else{const Ke=gi(Ce,/^[\r\n\t ]+/);Ie=Ke&&Ke[0]}Ee==="application/xhtml+xml"&&ve===be&&(Ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ce+"</body></html>");const Ae=r?r.createHTML(Ce):Ce;if(ve===be)try{_e=new s().parseFromString(Ae,Ee)}catch{}if(!_e||!_e.documentElement){_e=d.createDocument(ve,"template",null);try{_e.documentElement.innerHTML=Le?a:Ae}catch{}}const We=_e.body||_e.documentElement;return Ce&&Ie&&We.insertBefore(E.createTextNode(Ie),We.childNodes[0]||null),ve===be?C.call(_e,G?"html":"body")[0]:G?_e.documentElement:We},ut=function(Ce){return m.call(Ce.ownerDocument||Ce,Ce,v.SHOW_ELEMENT|v.SHOW_COMMENT|v.SHOW_TEXT,null,!1)},ct=function(Ce){return Ce instanceof n&&(typeof Ce.nodeName!="string"||typeof Ce.textContent!="string"||typeof Ce.removeChild!="function"||!(Ce.attributes instanceof p)||typeof Ce.removeAttribute!="function"||typeof Ce.setAttribute!="function"||typeof Ce.namespaceURI!="string"||typeof Ce.insertBefore!="function"||typeof Ce.hasChildNodes!="function")},nt=function(Ce){return typeof f=="object"?Ce instanceof f:Ce&&typeof Ce=="object"&&typeof Ce.nodeType=="number"&&typeof Ce.nodeName=="string"},st=function(Ce,_e,Ie){w[Ce]&&hi(w[Ce],Ae=>{Ae.call(e,_e,Ie,Fe)})},dt=function(Ce){let _e;if(st("beforeSanitizeElements",Ce,null),ct(Ce))return Qe(Ce),!0;const Ie=Pe(Ce.nodeName);if(st("uponSanitizeElement",Ce,{tagName:Ie,allowedTags:O}),Ce.hasChildNodes()&&!nt(Ce.firstElementChild)&&(!nt(Ce.content)||!nt(Ce.content.firstElementChild))&&Ct(/<[/\w]/g,Ce.innerHTML)&&Ct(/<[/\w]/g,Ce.textContent))return Qe(Ce),!0;if(!O[Ie]||q[Ie]){if(!q[Ie]&&_t(Ie)&&(z.tagNameCheck instanceof RegExp&&Ct(z.tagNameCheck,Ie)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Ie)))return!1;if(ne&&!j[Ie]){const Ae=l(Ce)||Ce.parentNode,We=u(Ce)||Ce.childNodes;if(We&&Ae){const Ke=We.length;for(let He=Ke-1;He>=0;--He)Ae.insertBefore(o(We[He],!0),g(Ce))}}return Qe(Ce),!0}return Ce instanceof _&&!Ye(Ce)||(Ie==="noscript"||Ie==="noembed"||Ie==="noframes")&&Ct(/<\/no(script|embed|frames)/i,Ce.innerHTML)?(Qe(Ce),!0):(X&&Ce.nodeType===3&&(_e=Ce.textContent,_e=Lt(_e,S," "),_e=Lt(_e,D," "),_e=Lt(_e,I," "),Ce.textContent!==_e&&(kt(e.removed,{element:Ce.cloneNode()}),Ce.textContent=_e)),st("afterSanitizeElements",Ce,null),!1)},St=function(Ce,_e,Ie){if(pe&&(_e==="id"||_e==="name")&&(Ie in E||Ie in je))return!1;if(!(U&&!H[_e]&&Ct(T,_e))){if(!(K&&Ct(M,_e))){if(!F[_e]||H[_e]){if(!(_t(Ce)&&(z.tagNameCheck instanceof RegExp&&Ct(z.tagNameCheck,Ce)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Ce))&&(z.attributeNameCheck instanceof RegExp&&Ct(z.attributeNameCheck,_e)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(_e))||_e==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Ct(z.tagNameCheck,Ie)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Ie))))return!1}else if(!ee[_e]){if(!Ct(N,Lt(Ie,R,""))){if(!((_e==="src"||_e==="xlink:href"||_e==="href")&&Ce!=="script"&&fi(Ie,"data:")===0&&$[Ce])){if(!(Y&&!Ct(A,Lt(Ie,R,"")))){if(Ie)return!1}}}}}}return!0},_t=function(Ce){return Ce.indexOf("-")>0},ht=function(Ce){let _e,Ie,Ae,We;st("beforeSanitizeAttributes",Ce,null);const{attributes:Ke}=Ce;if(!Ke)return;const He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};for(We=Ke.length;We--;){_e=Ke[We];const{name:$e,namespaceURI:Ve}=_e;if(Ie=$e==="value"?_e.value:mi(_e.value),Ae=Pe($e),He.attrName=Ae,He.attrValue=Ie,He.keepAttr=!0,He.forceKeepAttr=void 0,st("uponSanitizeAttribute",Ce,He),Ie=He.attrValue,He.forceKeepAttr||(tt($e,Ce),!He.keepAttr))continue;if(!Q&&Ct(/\/>/i,Ie)){tt($e,Ce);continue}X&&(Ie=Lt(Ie,S," "),Ie=Lt(Ie,D," "),Ie=Lt(Ie,I," "));const Me=Pe(Ce.nodeName);if(St(Me,Ae,Ie)){if(ce&&(Ae==="id"||Ae==="name")&&(tt($e,Ce),Ie=ie+Ie),r&&typeof t=="object"&&typeof t.getAttributeType=="function"&&!Ve)switch(t.getAttributeType(Me,Ae)){case"TrustedHTML":{Ie=r.createHTML(Ie);break}case"TrustedScriptURL":{Ie=r.createScriptURL(Ie);break}}try{Ve?Ce.setAttributeNS(Ve,$e,Ie):Ce.setAttribute($e,Ie),jt(e.removed)}catch{}}}st("afterSanitizeAttributes",Ce,null)},wt=function qe(Ce){let _e;const Ie=ut(Ce);for(st("beforeSanitizeShadowDOM",Ce,null);_e=Ie.nextNode();)st("uponSanitizeShadowNode",_e,null),!dt(_e)&&(_e.content instanceof L&&qe(_e.content),ht(_e));st("afterSanitizeShadowDOM",Ce,null)};return e.sanitize=function(qe){let Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e,Ie,Ae,We;if(Le=!qe,Le&&(qe="<!-->"),typeof qe!="string"&&!nt(qe))if(typeof qe.toString=="function"){if(qe=qe.toString(),typeof qe!="string")throw Tt("dirty is not a string, aborting")}else throw Tt("toString is not a function");if(!e.isSupported)return qe;if(P||Ne(Ce),e.removed=[],typeof qe=="string"&&(J=!1),J){if(qe.nodeName){const $e=Pe(qe.nodeName);if(!O[$e]||q[$e])throw Tt("root node is forbidden and cannot be sanitized in-place")}}else if(qe instanceof f)_e=it("<!---->"),Ie=_e.ownerDocument.importNode(qe,!0),Ie.nodeType===1&&Ie.nodeName==="BODY"||Ie.nodeName==="HTML"?_e=Ie:_e.appendChild(Ie);else{if(!se&&!X&&!G&&qe.indexOf("<")===-1)return r&&ge?r.createHTML(qe):qe;if(_e=it(qe),!_e)return se?null:ge?a:""}_e&&te&&Qe(_e.firstChild);const Ke=ut(J?qe:_e);for(;Ae=Ke.nextNode();)dt(Ae)||(Ae.content instanceof L&&wt(Ae.content),ht(Ae));if(J)return qe;if(se){if(ue)for(We=h.call(_e.ownerDocument);_e.firstChild;)We.appendChild(_e.firstChild);else We=_e;return(F.shadowroot||F.shadowrootmode)&&(We=b.call(c,We,!0)),We}let He=G?_e.outerHTML:_e.innerHTML;return G&&O["!doctype"]&&_e.ownerDocument&&_e.ownerDocument.doctype&&_e.ownerDocument.doctype.name&&Ct(Xt,_e.ownerDocument.doctype.name)&&(He="<!DOCTYPE "+_e.ownerDocument.doctype.name+`>
|
|
@@ -111,8 +111,8 @@ Please report this to https://github.com/markedjs/marked.`,ne.silent)return"<p>A
|
|
|
111
111
|
`):f.addEditOperation(new c.Range(_.endLineNumber,y.getLineMaxColumn(_.endLineNumber),_.endLineNumber,y.getLineMaxColumn(_.endLineNumber)),`
|
|
112
112
|
`+p),this._selectionId=f.trackSelection(_),this._selectionDirection=this._selection.getDirection()}computeCursorState(y,f){let _=f.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let v=_.startLineNumber,p=_.startColumn,n=_.endLineNumber,s=_.endColumn;this._startLineNumberDelta!==0&&(v=v+this._startLineNumberDelta,p=1),this._endLineNumberDelta!==0&&(n=n+this._endLineNumberDelta,s=1),_=k.Selection.createWithDirection(v,p,n,s,this._selectionDirection)}return _}}e.CopyLinesCommand=E}),define(oe[616],re([1,0,75,4]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SortLinesCommand=void 0;class E{static{this._COLLATOR=null}static getCollator(){return E._COLLATOR||(E._COLLATOR=new Intl.Collator),E._COLLATOR}constructor(_,v){this.selection=_,this.descending=v,this.selectionId=null}getEditOperations(_,v){const p=y(_,this.selection,this.descending);p&&v.addEditOperation(p.range,p.text),this.selectionId=v.trackSelection(this.selection)}computeCursorState(_,v){return v.getTrackedSelection(this.selectionId)}static canRun(_,v,p){if(_===null)return!1;const n=L(_,v,p);if(!n)return!1;for(let s=0,t=n.before.length;s<t;s++)if(n.before[s]!==n.after[s])return!0;return!1}}e.SortLinesCommand=E;function L(f,_,v){const p=_.startLineNumber;let n=_.endLineNumber;if(_.endColumn===1&&n--,p>=n)return null;const s=[];for(let i=p;i<=n;i++)s.push(f.getLineContent(i));let t=s.slice(0);return t.sort(E.getCollator().compare),v===!0&&(t=t.reverse()),{startLineNumber:p,endLineNumber:n,before:s,after:t}}function y(f,_,v){const p=L(f,_,v);return p?c.EditOperation.replace(new k.Range(p.startLineNumber,1,p.endLineNumber,f.getLineMaxColumn(p.endLineNumber)),p.after.join(`
|
|
113
113
|
`)):null}}),define(oe[337],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SEMANTIC_HIGHLIGHTING_SETTING_ID=void 0,e.isSemanticColoringEnabled=c,e.SEMANTIC_HIGHLIGHTING_SETTING_ID="editor.semanticHighlighting";function c(k,E,L){const y=L.getValue(e.SEMANTIC_HIGHLIGHTING_SETTING_ID,{overrideIdentifier:k.getLanguageId(),resource:k.uri})?.enabled;return typeof y=="boolean"?y:E.getColorTheme().semanticHighlighting}}),define(oe[338],re([1,0,73,9,4]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketSelectionRangeProvider=void 0;class L{async provideSelectionRanges(f,_){const v=[];for(const p of _){const n=[];v.push(n);const s=new Map;await new Promise(t=>L._bracketsRightYield(t,0,f,p,s)),await new Promise(t=>L._bracketsLeftYield(t,0,f,p,s,n))}return v}static{this._maxDuration=30}static{this._maxRounds=2}static _bracketsRightYield(f,_,v,p,n){const s=new Map,t=Date.now();for(;;){if(_>=L._maxRounds){f();break}if(!p){f();break}const i=v.bracketPairs.findNextBracket(p);if(!i){f();break}if(Date.now()-t>L._maxDuration){setTimeout(()=>L._bracketsRightYield(f,_+1,v,p,n));break}if(i.bracketInfo.isOpeningBracket){const g=i.bracketInfo.bracketText,u=s.has(g)?s.get(g):0;s.set(g,u+1)}else{const g=i.bracketInfo.getOpeningBrackets()[0].bracketText;let u=s.has(g)?s.get(g):0;if(u-=1,s.set(g,Math.max(0,u)),u<0){let l=n.get(g);l||(l=new c.LinkedList,n.set(g,l)),l.push(i.range)}}p=i.range.getEndPosition()}}static _bracketsLeftYield(f,_,v,p,n,s){const t=new Map,i=Date.now();for(;;){if(_>=L._maxRounds&&n.size===0){f();break}if(!p){f();break}const o=v.bracketPairs.findPrevBracket(p);if(!o){f();break}if(Date.now()-i>L._maxDuration){setTimeout(()=>L._bracketsLeftYield(f,_+1,v,p,n,s));break}if(o.bracketInfo.isOpeningBracket){const u=o.bracketInfo.bracketText;let l=t.has(u)?t.get(u):0;if(l-=1,t.set(u,Math.max(0,l)),l<0){const r=n.get(u);if(r){const a=r.shift();r.size===0&&n.delete(u);const d=E.Range.fromPositions(o.range.getEndPosition(),a.getStartPosition()),m=E.Range.fromPositions(o.range.getStartPosition(),a.getEndPosition());s.push({range:d}),s.push({range:m}),L._addBracketLeading(v,m,s)}}}else{const u=o.bracketInfo.getOpeningBrackets()[0].bracketText,l=t.has(u)?t.get(u):0;t.set(u,l+1)}p=o.range.getStartPosition()}}static _addBracketLeading(f,_,v){if(_.startLineNumber===_.endLineNumber)return;const p=_.startLineNumber,n=f.getLineFirstNonWhitespaceColumn(p);n!==0&&n!==_.startColumn&&(v.push({range:E.Range.fromPositions(new k.Position(p,n),_.getEndPosition())}),v.push({range:E.Range.fromPositions(new k.Position(p,1),_.getEndPosition())}));const s=p-1;if(s>0){const t=f.getLineFirstNonWhitespaceColumn(s);t===_.startColumn&&t!==f.getLineLastNonWhitespaceColumn(s)&&(v.push({range:E.Range.fromPositions(new k.Position(s,t),_.getEndPosition())}),v.push({range:E.Range.fromPositions(new k.Position(s,1),_.getEndPosition())}))}}}e.BracketSelectionRangeProvider=L}),define(oe[617],re([1,0,11,4]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordSelectionRangeProvider=void 0;class E{constructor(y=!0){this.selectSubwords=y}provideSelectionRanges(y,f){const _=[];for(const v of f){const p=[];_.push(p),this.selectSubwords&&this._addInWordRanges(p,y,v),this._addWordRanges(p,y,v),this._addWhitespaceLine(p,y,v),p.push({range:y.getFullModelRange()})}return _}_addInWordRanges(y,f,_){const v=f.getWordAtPosition(_);if(!v)return;const{word:p,startColumn:n}=v,s=_.column-n;let t=s,i=s,o=0;for(;t>=0;t--){const g=p.charCodeAt(t);if(t!==s&&(g===95||g===45))break;if((0,c.isLowerAsciiLetter)(g)&&(0,c.isUpperAsciiLetter)(o))break;o=g}for(t+=1;i<p.length;i++){const g=p.charCodeAt(i);if((0,c.isUpperAsciiLetter)(g)&&(0,c.isLowerAsciiLetter)(o))break;if(g===95||g===45)break;o=g}t<i&&y.push({range:new k.Range(_.lineNumber,n+t,_.lineNumber,n+i)})}_addWordRanges(y,f,_){const v=f.getWordAtPosition(_);v&&y.push({range:new k.Range(_.lineNumber,v.startColumn,_.lineNumber,v.endColumn)})}_addWhitespaceLine(y,f,_){f.getLineLength(_.lineNumber)>0&&f.getLineFirstNonWhitespaceColumn(_.lineNumber)===0&&f.getLineLastNonWhitespaceColumn(_.lineNumber)===0&&y.push({range:new k.Range(_.lineNumber,1,_.lineNumber,f.getLineMaxColumn(_.lineNumber))})}}e.WordSelectionRangeProvider=E}),define(oe[134],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SnippetParser=e.TextmateSnippet=e.Variable=e.FormatString=e.Transform=e.Choice=e.Placeholder=e.TransformableMarker=e.Text=e.Marker=e.Scanner=void 0;class c{constructor(){this.value="",this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}static isDigitCharacter(o){return o>=48&&o<=57}static isVariableCharacter(o){return o===95||o>=97&&o<=122||o>=65&&o<=90}text(o){this.value=o,this.pos=0}tokenText(o){return this.value.substr(o.pos,o.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const o=this.pos;let g=0,u=this.value.charCodeAt(o),l;if(l=c._table[u],typeof l=="number")return this.pos+=1,{type:l,pos:o,len:1};if(c.isDigitCharacter(u)){l=8;do g+=1,u=this.value.charCodeAt(o+g);while(c.isDigitCharacter(u));return this.pos+=g,{type:l,pos:o,len:g}}if(c.isVariableCharacter(u)){l=9;do u=this.value.charCodeAt(o+ ++g);while(c.isVariableCharacter(u)||c.isDigitCharacter(u));return this.pos+=g,{type:l,pos:o,len:g}}l=10;do g+=1,u=this.value.charCodeAt(o+g);while(!isNaN(u)&&typeof c._table[u]>"u"&&!c.isDigitCharacter(u)&&!c.isVariableCharacter(u));return this.pos+=g,{type:l,pos:o,len:g}}}e.Scanner=c;class k{constructor(){this._children=[]}appendChild(o){return o instanceof E&&this._children[this._children.length-1]instanceof E?this._children[this._children.length-1].value+=o.value:(o.parent=this,this._children.push(o)),this}replace(o,g){const{parent:u}=o,l=u.children.indexOf(o),r=u.children.slice(0);r.splice(l,1,...g),u._children=r,function a(d,m){for(const h of d)h.parent=m,a(h.children,h)}(g,u)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let o=this;for(;;){if(!o)return;if(o instanceof s)return o;o=o.parent}}toString(){return this.children.reduce((o,g)=>o+g.toString(),"")}len(){return 0}}e.Marker=k;class E extends k{constructor(o){super(),this.value=o}toString(){return this.value}len(){return this.value.length}clone(){return new E(this.value)}}e.Text=E;class L extends k{}e.TransformableMarker=L;class y extends L{static compareByIndex(o,g){return o.index===g.index?0:o.isFinalTabstop?1:g.isFinalTabstop||o.index<g.index?-1:o.index>g.index?1:0}constructor(o){super(),this.index=o}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof f?this._children[0]:void 0}clone(){const o=new y(this.index);return this.transform&&(o.transform=this.transform.clone()),o._children=this.children.map(g=>g.clone()),o}}e.Placeholder=y;class f extends k{constructor(){super(...arguments),this.options=[]}appendChild(o){return o instanceof E&&(o.parent=this,this.options.push(o)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const o=new f;return this.options.forEach(o.appendChild,o),o}}e.Choice=f;class _ extends k{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(o){const g=this;let u=!1,l=o.replace(this.regexp,function(){return u=!0,g._replace(Array.prototype.slice.call(arguments,0,-2))});return!u&&this._children.some(r=>r instanceof v&&!!r.elseValue)&&(l=this._replace([])),l}_replace(o){let g="";for(const u of this._children)if(u instanceof v){let l=o[u.index]||"";l=u.resolve(l),g+=l}else g+=u.toString();return g}toString(){return""}clone(){const o=new _;return o.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),o._children=this.children.map(g=>g.clone()),o}}e.Transform=_;class v extends k{constructor(o,g,u,l){super(),this.index=o,this.shorthandName=g,this.ifValue=u,this.elseValue=l}resolve(o){return this.shorthandName==="upcase"?o?o.toLocaleUpperCase():"":this.shorthandName==="downcase"?o?o.toLocaleLowerCase():"":this.shorthandName==="capitalize"?o?o[0].toLocaleUpperCase()+o.substr(1):"":this.shorthandName==="pascalcase"?o?this._toPascalCase(o):"":this.shorthandName==="camelcase"?o?this._toCamelCase(o):"":o&&typeof this.ifValue=="string"?this.ifValue:!o&&typeof this.elseValue=="string"?this.elseValue:o||""}_toPascalCase(o){const g=o.match(/[a-z0-9]+/gi);return g?g.map(u=>u.charAt(0).toUpperCase()+u.substr(1)).join(""):o}_toCamelCase(o){const g=o.match(/[a-z0-9]+/gi);return g?g.map((u,l)=>l===0?u.charAt(0).toLowerCase()+u.substr(1):u.charAt(0).toUpperCase()+u.substr(1)).join(""):o}clone(){return new v(this.index,this.shorthandName,this.ifValue,this.elseValue)}}e.FormatString=v;class p extends L{constructor(o){super(),this.name=o}resolve(o){let g=o.resolve(this);return this.transform&&(g=this.transform.resolve(g||"")),g!==void 0?(this._children=[new E(g)],!0):!1}clone(){const o=new p(this.name);return this.transform&&(o.transform=this.transform.clone()),o._children=this.children.map(g=>g.clone()),o}}e.Variable=p;function n(i,o){const g=[...i];for(;g.length>0;){const u=g.shift();if(!o(u))break;g.unshift(...u.children)}}class s extends k{get placeholderInfo(){if(!this._placeholders){const o=[];let g;this.walk(function(u){return u instanceof y&&(o.push(u),g=!g||g.index<u.index?u:g),!0}),this._placeholders={all:o,last:g}}return this._placeholders}get placeholders(){const{all:o}=this.placeholderInfo;return o}offset(o){let g=0,u=!1;return this.walk(l=>l===o?(u=!0,!1):(g+=l.len(),!0)),u?g:-1}fullLen(o){let g=0;return n([o],u=>(g+=u.len(),!0)),g}enclosingPlaceholders(o){const g=[];let{parent:u}=o;for(;u;)u instanceof y&&g.push(u),u=u.parent;return g}resolveVariables(o){return this.walk(g=>(g instanceof p&&g.resolve(o)&&(this._placeholders=void 0),!0)),this}appendChild(o){return this._placeholders=void 0,super.appendChild(o)}replace(o,g){return this._placeholders=void 0,super.replace(o,g)}clone(){const o=new s;return this._children=this.children.map(g=>g.clone()),o}walk(o){n(this.children,o)}}e.TextmateSnippet=s;class t{constructor(){this._scanner=new c,this._token={type:14,pos:0,len:0}}static escape(o){return o.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(o){return/\${?CLIPBOARD/.test(o)}parse(o,g,u){const l=new s;return this.parseFragment(o,l),this.ensureFinalTabstop(l,u??!1,g??!1),l}parseFragment(o,g){const u=g.children.length;for(this._scanner.text(o),this._token=this._scanner.next();this._parse(g););const l=new Map,r=[];g.walk(m=>(m instanceof y&&(m.isFinalTabstop?l.set(0,void 0):!l.has(m.index)&&m.children.length>0?l.set(m.index,m.children):r.push(m)),!0));const a=(m,h)=>{const C=l.get(m.index);if(!C)return;const b=new y(m.index);b.transform=m.transform;for(const w of C){const S=w.clone();b.appendChild(S),S instanceof y&&l.has(S.index)&&!h.has(S.index)&&(h.add(S.index),a(S,h),h.delete(S.index))}g.replace(m,[b])},d=new Set;for(const m of r)a(m,d);return g.children.slice(u)}ensureFinalTabstop(o,g,u){(g||u&&o.placeholders.length>0)&&(o.placeholders.find(r=>r.index===0)||o.appendChild(new y(0)))}_accept(o,g){if(o===void 0||this._token.type===o){const u=g?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),u}return!1}_backTo(o){return this._scanner.pos=o.pos+o.len,this._token=o,!1}_until(o){const g=this._token;for(;this._token.type!==o;){if(this._token.type===14)return!1;if(this._token.type===5){const l=this._scanner.next();if(l.type!==0&&l.type!==4&&l.type!==5)return!1}this._token=this._scanner.next()}const u=this._scanner.value.substring(g.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),u}_parse(o){return this._parseEscaped(o)||this._parseTabstopOrVariableName(o)||this._parseComplexPlaceholder(o)||this._parseComplexVariable(o)||this._parseAnything(o)}_parseEscaped(o){let g;return(g=this._accept(5,!0))?(g=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||g,o.appendChild(new E(g)),!0):!1}_parseTabstopOrVariableName(o){let g;const u=this._token;return this._accept(0)&&(g=this._accept(9,!0)||this._accept(8,!0))?(o.appendChild(/^\d+$/.test(g)?new y(Number(g)):new p(g)),!0):this._backTo(u)}_parseComplexPlaceholder(o){let g;const u=this._token;if(!(this._accept(0)&&this._accept(3)&&(g=this._accept(8,!0))))return this._backTo(u);const r=new y(Number(g));if(this._accept(1))for(;;){if(this._accept(4))return o.appendChild(r),!0;if(!this._parse(r))return o.appendChild(new E("${"+g+":")),r.children.forEach(o.appendChild,o),!0}else if(r.index>0&&this._accept(7)){const a=new f;for(;;){if(this._parseChoiceElement(a)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(a),this._accept(4)))return o.appendChild(r),!0}return this._backTo(u),!1}}else return this._accept(6)?this._parseTransform(r)?(o.appendChild(r),!0):(this._backTo(u),!1):this._accept(4)?(o.appendChild(r),!0):this._backTo(u)}_parseChoiceElement(o){const g=this._token,u=[];for(;!(this._token.type===2||this._token.type===7);){let l;if((l=this._accept(5,!0))?l=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||l:l=this._accept(void 0,!0),!l)return this._backTo(g),!1;u.push(l)}return u.length===0?(this._backTo(g),!1):(o.appendChild(new E(u.join(""))),!0)}_parseComplexVariable(o){let g;const u=this._token;if(!(this._accept(0)&&this._accept(3)&&(g=this._accept(9,!0))))return this._backTo(u);const r=new p(g);if(this._accept(1))for(;;){if(this._accept(4))return o.appendChild(r),!0;if(!this._parse(r))return o.appendChild(new E("${"+g+":")),r.children.forEach(o.appendChild,o),!0}else return this._accept(6)?this._parseTransform(r)?(o.appendChild(r),!0):(this._backTo(u),!1):this._accept(4)?(o.appendChild(r),!0):this._backTo(u)}_parseTransform(o){const g=new _;let u="",l="";for(;!this._accept(6);){let r;if(r=this._accept(5,!0)){r=this._accept(6,!0)||r,u+=r;continue}if(this._token.type!==14){u+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let r;if(r=this._accept(5,!0)){r=this._accept(5,!0)||this._accept(6,!0)||r,g.appendChild(new E(r));continue}if(!(this._parseFormatString(g)||this._parseAnything(g)))return!1}for(;!this._accept(4);){if(this._token.type!==14){l+=this._accept(void 0,!0);continue}return!1}try{g.regexp=new RegExp(u,l)}catch{return!1}return o.transform=g,!0}_parseFormatString(o){const g=this._token;if(!this._accept(0))return!1;let u=!1;this._accept(3)&&(u=!0);const l=this._accept(8,!0);if(l)if(u){if(this._accept(4))return o.appendChild(new v(Number(l))),!0;if(!this._accept(1))return this._backTo(g),!1}else return o.appendChild(new v(Number(l))),!0;else return this._backTo(g),!1;if(this._accept(6)){const r=this._accept(9,!0);return!r||!this._accept(4)?(this._backTo(g),!1):(o.appendChild(new v(Number(l),r)),!0)}else if(this._accept(11)){const r=this._until(4);if(r)return o.appendChild(new v(Number(l),void 0,r,void 0)),!0}else if(this._accept(12)){const r=this._until(4);if(r)return o.appendChild(new v(Number(l),void 0,void 0,r)),!0}else if(this._accept(13)){const r=this._until(1);if(r){const a=this._until(4);if(a)return o.appendChild(new v(Number(l),void 0,r,a)),!0}}else{const r=this._until(4);if(r)return o.appendChild(new v(Number(l),void 0,void 0,r)),!0}return this._backTo(g),!1}_parseAnything(o){return this._token.type!==14?(o.appendChild(new E(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}e.SnippetParser=t}),define(oe[339],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StickyModel=e.StickyElement=e.StickyRange=void 0;class c{constructor(y,f){this.startLineNumber=y,this.endLineNumber=f}}e.StickyRange=c;class k{constructor(y,f,_){this.range=y,this.children=f,this.parent=_}}e.StickyElement=k;class E{constructor(y,f,_,v){this.uri=y,this.version=f,this.element=_,this.outlineProviderId=v}}e.StickyModel=E}),define(oe[340],re([1,0,13,82,11]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompletionModel=e.LineContext=void 0;class L{constructor(_,v){this.leadingLineContent=_,this.characterCountDelta=v}}e.LineContext=L;class y{constructor(_,v,p,n,s,t,i=k.FuzzyScoreOptions.default,o=void 0){this.clipboardText=o,this._snippetCompareFn=y._compareCompletionItems,this._items=_,this._column=v,this._wordDistance=n,this._options=s,this._refilterKind=1,this._lineContext=p,this._fuzzyScoreOptions=i,t==="top"?this._snippetCompareFn=y._compareCompletionItemsSnippetsUp:t==="bottom"&&(this._snippetCompareFn=y._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(_){(this._lineContext.leadingLineContent!==_.leadingLineContent||this._lineContext.characterCountDelta!==_.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<_.characterCountDelta&&this._filteredItems?2:1,this._lineContext=_)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const _=new Set;for(const[v,p]of this.getItemsByProvider())p.length>0&&p[0].container.incomplete&&_.add(v);return _}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const _=[],{leadingLineContent:v,characterCountDelta:p}=this._lineContext;let n="",s="";const t=this._refilterKind===1?this._items:this._filteredItems,i=[],o=!this._options.filterGraceful||t.length>2e3?k.fuzzyScore:k.fuzzyScoreGracefulAggressive;for(let g=0;g<t.length;g++){const u=t[g];if(u.isInvalid)continue;const l=this._itemsByProvider.get(u.provider);l?l.push(u):this._itemsByProvider.set(u.provider,[u]);const r=u.position.column-u.editStart.column,a=r+p-(u.position.column-this._column);if(n.length!==a&&(n=a===0?"":v.slice(-a),s=n.toLowerCase()),u.word=n,a===0)u.score=k.FuzzyScore.Default;else{let d=0;for(;d<r;){const m=n.charCodeAt(d);if(m===32||m===9)d+=1;else break}if(d>=a)u.score=k.FuzzyScore.Default;else if(typeof u.completion.filterText=="string"){const m=o(n,s,d,u.completion.filterText,u.filterTextLow,0,this._fuzzyScoreOptions);if(!m)continue;(0,E.compareIgnoreCase)(u.completion.filterText,u.textLabel)===0?u.score=m:(u.score=(0,k.anyScore)(n,s,d,u.textLabel,u.labelLow,0),u.score[0]=m[0])}else{const m=o(n,s,d,u.textLabel,u.labelLow,0,this._fuzzyScoreOptions);if(!m)continue;u.score=m}}u.idx=g,u.distance=this._wordDistance.distance(u.position,u.completion),i.push(u),_.push(u.textLabel.length)}this._filteredItems=i.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:_.length?(0,c.quickSelect)(_.length-.85,_,(g,u)=>g-u):0}}static _compareCompletionItems(_,v){return _.score[0]>v.score[0]?-1:_.score[0]<v.score[0]?1:_.distance<v.distance?-1:_.distance>v.distance?1:_.idx<v.idx?-1:_.idx>v.idx?1:0}static _compareCompletionItemsSnippetsDown(_,v){if(_.completion.kind!==v.completion.kind){if(_.completion.kind===27)return 1;if(v.completion.kind===27)return-1}return y._compareCompletionItems(_,v)}static _compareCompletionItemsSnippetsUp(_,v){if(_.completion.kind!==v.completion.kind){if(_.completion.kind===27)return-1;if(v.completion.kind===27)return 1}return y._compareCompletionItems(_,v)}}e.CompletionModel=y}),define(oe[618],re([1,0,13,2,143]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommitCharacterController=void 0;class L{constructor(f,_,v,p){this._disposables=new k.DisposableStore,this._disposables.add(v.onDidSuggest(n=>{n.completionModel.items.length===0&&this.reset()})),this._disposables.add(v.onDidCancel(n=>{this.reset()})),this._disposables.add(_.onDidShow(()=>this._onItem(_.getFocusedItem()))),this._disposables.add(_.onDidFocus(this._onItem,this)),this._disposables.add(_.onDidHide(this.reset,this)),this._disposables.add(f.onWillType(n=>{if(this._active&&!_.isFrozen()&&v.state!==0){const s=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(s)&&f.getOption(0)&&p(this._active.item)}}))}_onItem(f){if(!f||!(0,c.isNonEmptyArray)(f.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===f.item)return;const _=new E.CharacterSet;for(const v of f.item.completion.commitCharacters)v.length>0&&_.add(v.charCodeAt(0));this._active={acceptCharacters:_,item:f}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}e.CommitCharacterController=L}),define(oe[619],re([1,0,2]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OvertypingCapturer=void 0;class k{static{this._maxSelectionLength=51200}constructor(L,y){this._disposables=new c.DisposableStore,this._lastOvertyped=[],this._locked=!1,this._disposables.add(L.onWillType(()=>{if(this._locked||!L.hasModel())return;const f=L.getSelections(),_=f.length;let v=!1;for(let n=0;n<_;n++)if(!f[n].isEmpty()){v=!0;break}if(!v){this._lastOvertyped.length!==0&&(this._lastOvertyped.length=0);return}this._lastOvertyped=[];const p=L.getModel();for(let n=0;n<_;n++){const s=f[n];if(p.getValueLengthInRange(s)>k._maxSelectionLength)return;this._lastOvertyped[n]={value:p.getValueInRange(s),multiline:s.startLineNumber!==s.endLineNumber}}})),this._disposables.add(y.onDidTrigger(f=>{this._locked=!0})),this._disposables.add(y.onDidCancel(f=>{this._locked=!1}))}getLastOvertypedInfo(L){if(L>=0&&L<this._lastOvertyped.length)return this._lastOvertyped[L]}dispose(){this._disposables.dispose()}}e.OvertypingCapturer=k}),define(oe[341],re([1,0,13,4,338]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordDistance=void 0;class L{static{this.None=new class extends L{distance(){return 0}}}static async create(f,_){if(!_.getOption(119).localityBonus||!_.hasModel())return L.None;const v=_.getModel(),p=_.getPosition();if(!f.canComputeWordRanges(v.uri))return L.None;const[n]=await new E.BracketSelectionRangeProvider().provideSelectionRanges(v,[p]);if(n.length===0)return L.None;const s=await f.computeWordRanges(v.uri,n[0].range);if(!s)return L.None;const t=v.getWordUntilPosition(p);return delete s[t.word],new class extends L{distance(i,o){if(!p.equals(_.getPosition()))return 0;if(o.kind===17)return 2<<20;const g=typeof o.label=="string"?o.label:o.label.label,u=s[g];if((0,c.isFalsyOrEmpty)(u))return 2<<20;const l=(0,c.binarySearch)(u,k.Range.fromPositions(i),k.Range.compareRangesUsingStarts),r=l>=0?u[l]:u[Math.max(0,~l-1)];let a=n.length;for(const d of n){if(!k.Range.containsRange(d.range,r))break;a-=1}return a}}}}e.WordDistance=L}),define(oe[342],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFuzzyActionArr=c,e.isFuzzyAction=k,e.isString=E,e.isIAction=L,e.empty=y,e.fixCase=f,e.sanitize=_,e.log=v,e.createError=p,e.substituteMatches=n,e.substituteMatchesRe=s,e.findRules=t,e.stateExists=i;function c(o){return Array.isArray(o)}function k(o){return!c(o)}function E(o){return typeof o=="string"}function L(o){return!E(o)}function y(o){return!o}function f(o,g){return o.ignoreCase&&g?g.toLowerCase():g}function _(o){return o.replace(/[&<>'"_]/g,"-")}function v(o,g){console.log(`${o.languageId}: ${g}`)}function p(o,g){return new Error(`${o.languageId}: ${g}`)}function n(o,g,u,l,r){const a=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let d=null;return g.replace(a,function(m,h,C,b,w,S,D,I,T){return y(C)?y(b)?!y(w)&&w<l.length?f(o,l[w]):!y(D)&&o&&typeof o[D]=="string"?o[D]:(d===null&&(d=r.split("."),d.unshift(r)),!y(S)&&S<d.length?f(o,d[S]):""):f(o,u):"$"})}function s(o,g,u){const l=/\$[sS](\d\d?)/g;let r=null;return g.replace(l,function(a,d){return r===null&&(r=u.split("."),r.unshift(u)),!y(d)&&d<r.length?f(o,r[d]):""})}function t(o,g){let u=g;for(;u&&u.length>0;){const l=o.tokenizer[u];if(l)return l;const r=u.lastIndexOf(".");r<0?u=null:u=u.substr(0,r)}return null}function i(o,g){let u=g;for(;u&&u.length>0;){if(o.stateNames[u])return!0;const r=u.lastIndexOf(".");r<0?u=null:u=u.substr(0,r)}return!1}}),define(oe[620],re([1,0,342]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compile=t;function k(i,o){if(!o||!Array.isArray(o))return!1;for(const g of o)if(!i(g))return!1;return!0}function E(i,o){return typeof i=="boolean"?i:o}function L(i,o){return typeof i=="string"?i:o}function y(i){const o={};for(const g of i)o[g]=!0;return o}function f(i,o=!1){o&&(i=i.map(function(u){return u.toLowerCase()}));const g=y(i);return o?function(u){return g[u.toLowerCase()]!==void 0&&g.hasOwnProperty(u.toLowerCase())}:function(u){return g[u]!==void 0&&g.hasOwnProperty(u)}}function _(i,o,g){o=o.replace(/@@/g,"");let u=0,l;do l=!1,o=o.replace(/@(\w+)/g,function(a,d){l=!0;let m="";if(typeof i[d]=="string")m=i[d];else if(i[d]&&i[d]instanceof RegExp)m=i[d].source;else throw i[d]===void 0?c.createError(i,"language definition does not contain attribute '"+d+"', used at: "+o):c.createError(i,"attribute reference '"+d+"' must be a string, used at: "+o);return c.empty(m)?"":"(?:"+m+")"}),u++;while(l&&u<5);o=o.replace(/\x01/g,"@");const r=(i.ignoreCase?"i":"")+(i.unicode?"u":"");if(g&&o.match(/\$[sS](\d\d?)/g)){let d=null,m=null;return h=>(m&&d===h||(d=h,m=new RegExp(c.substituteMatchesRe(i,o,h),r)),m)}return new RegExp(o,r)}function v(i,o,g,u){if(u<0)return i;if(u<o.length)return o[u];if(u>=100){u=u-100;const l=g.split(".");if(l.unshift(g),u<l.length)return l[u]}return null}function p(i,o,g,u){let l=-1,r=g,a=g.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);a&&(a[3]&&(l=parseInt(a[3]),a[2]&&(l=l+100)),r=a[4]);let d="~",m=r;!r||r.length===0?(d="!=",m=""):/^\w*$/.test(m)?d="==":(a=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),a&&(d=a[1],m=a[2]));let h;if((d==="~"||d==="!~")&&/^(\w|\|)*$/.test(m)){const C=f(m.split("|"),i.ignoreCase);h=function(b){return d==="~"?C(b):!C(b)}}else if(d==="@"||d==="!@"){const C=i[m];if(!C)throw c.createError(i,"the @ match target '"+m+"' is not defined, in rule: "+o);if(!k(function(w){return typeof w=="string"},C))throw c.createError(i,"the @ match target '"+m+"' must be an array of strings, in rule: "+o);const b=f(C,i.ignoreCase);h=function(w){return d==="@"?b(w):!b(w)}}else if(d==="~"||d==="!~")if(m.indexOf("$")<0){const C=_(i,"^"+m+"$",!1);h=function(b){return d==="~"?C.test(b):!C.test(b)}}else h=function(C,b,w,S){return _(i,"^"+c.substituteMatches(i,m,b,w,S)+"$",!1).test(C)};else if(m.indexOf("$")<0){const C=c.fixCase(i,m);h=function(b){return d==="=="?b===C:b!==C}}else{const C=c.fixCase(i,m);h=function(b,w,S,D,I){const T=c.substituteMatches(i,C,w,S,D);return d==="=="?b===T:b!==T}}return l===-1?{name:g,value:u,test:function(C,b,w,S){return h(C,C,b,w,S)}}:{name:g,value:u,test:function(C,b,w,S){const D=v(C,b,w,l);return h(D||"",C,b,w,S)}}}function n(i,o,g){if(g){if(typeof g=="string")return g;if(g.token||g.token===""){if(typeof g.token!="string")throw c.createError(i,"a 'token' attribute must be of type string, in rule: "+o);{const u={token:g.token};if(g.token.indexOf("$")>=0&&(u.tokenSubst=!0),typeof g.bracket=="string")if(g.bracket==="@open")u.bracket=1;else if(g.bracket==="@close")u.bracket=-1;else throw c.createError(i,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+o);if(g.next){if(typeof g.next!="string")throw c.createError(i,"the next state must be a string value in rule: "+o);{let l=g.next;if(!/^(@pop|@push|@popall)$/.test(l)&&(l[0]==="@"&&(l=l.substr(1)),l.indexOf("$")<0&&!c.stateExists(i,c.substituteMatches(i,l,"",[],""))))throw c.createError(i,"the next state '"+g.next+"' is not defined in rule: "+o);u.next=l}}return typeof g.goBack=="number"&&(u.goBack=g.goBack),typeof g.switchTo=="string"&&(u.switchTo=g.switchTo),typeof g.log=="string"&&(u.log=g.log),typeof g.nextEmbedded=="string"&&(u.nextEmbedded=g.nextEmbedded,i.usesEmbedded=!0),u}}else if(Array.isArray(g)){const u=[];for(let l=0,r=g.length;l<r;l++)u[l]=n(i,o,g[l]);return{group:u}}else if(g.cases){const u=[];for(const r in g.cases)if(g.cases.hasOwnProperty(r)){const a=n(i,o,g.cases[r]);r==="@default"||r==="@"||r===""?u.push({test:void 0,value:a,name:r}):r==="@eos"?u.push({test:function(d,m,h,C){return C},value:a,name:r}):u.push(p(i,o,r,a))}const l=i.defaultToken;return{test:function(r,a,d,m){for(const h of u)if(!h.test||h.test(r,a,d,m))return h.value;return l}}}else throw c.createError(i,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+o)}else return{token:""}}class s{constructor(o){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=o}setRegex(o,g){let u;if(typeof g=="string")u=g;else if(g instanceof RegExp)u=g.source;else throw c.createError(o,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=u.length>0&&u[0]==="^",this.name=this.name+": "+u,this.regex=_(o,"^(?:"+(this.matchOnlyAtLineStart?u.substr(1):u)+")",!0)}setAction(o,g){this.action=n(o,this.name,g)}resolveRegex(o){return this.regex instanceof RegExp?this.regex:this.regex(o)}}function t(i,o){if(!o||typeof o!="object")throw new Error("Monarch: expecting a language definition object");const g={languageId:i,includeLF:E(o.includeLF,!1),noThrow:!1,maxStack:100,start:typeof o.start=="string"?o.start:null,ignoreCase:E(o.ignoreCase,!1),unicode:E(o.unicode,!1),tokenPostfix:L(o.tokenPostfix,"."+i),defaultToken:L(o.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},u=o;u.languageId=i,u.includeLF=g.includeLF,u.ignoreCase=g.ignoreCase,u.unicode=g.unicode,u.noThrow=g.noThrow,u.usesEmbedded=g.usesEmbedded,u.stateNames=o.tokenizer,u.defaultToken=g.defaultToken;function l(a,d,m){for(const h of m){let C=h.include;if(C){if(typeof C!="string")throw c.createError(g,"an 'include' attribute must be a string at: "+a);if(C[0]==="@"&&(C=C.substr(1)),!o.tokenizer[C])throw c.createError(g,"include target '"+C+"' is not defined at: "+a);l(a+"."+C,d,o.tokenizer[C])}else{const b=new s(a);if(Array.isArray(h)&&h.length>=1&&h.length<=3)if(b.setRegex(u,h[0]),h.length>=3)if(typeof h[1]=="string")b.setAction(u,{token:h[1],next:h[2]});else if(typeof h[1]=="object"){const w=h[1];w.next=h[2],b.setAction(u,w)}else throw c.createError(g,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+a);else b.setAction(u,h[1]);else{if(!h.regex)throw c.createError(g,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+a);h.name&&typeof h.name=="string"&&(b.name=h.name),h.matchOnlyAtStart&&(b.matchOnlyAtLineStart=E(h.matchOnlyAtLineStart,!1)),b.setRegex(u,h.regex),b.setAction(u,h.action)}d.push(b)}}}if(!o.tokenizer||typeof o.tokenizer!="object")throw c.createError(g,"a language definition must define the 'tokenizer' attribute as an object");g.tokenizer=[];for(const a in o.tokenizer)if(o.tokenizer.hasOwnProperty(a)){g.start||(g.start=a);const d=o.tokenizer[a];g.tokenizer[a]=new Array,l("tokenizer."+a,g.tokenizer[a],d)}if(g.usesEmbedded=u.usesEmbedded,o.brackets){if(!Array.isArray(o.brackets))throw c.createError(g,"the 'brackets' attribute must be defined as an array")}else o.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const r=[];for(const a of o.brackets){let d=a;if(d&&Array.isArray(d)&&d.length===3&&(d={token:d[2],open:d[0],close:d[1]}),d.open===d.close)throw c.createError(g,"open and close brackets in a 'brackets' attribute must be different: "+d.open+`
|
|
114
|
-
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof d.open=="string"&&typeof d.token=="string"&&typeof d.close=="string")r.push({token:d.token+g.tokenPostfix,open:c.fixCase(g,d.open),close:c.fixCase(g,d.close)});else throw c.createError(g,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return g.brackets=r,g.noThrow=!0,g}}),define(oe[343],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNLSMessages=c,e.getNLSLanguage=k;function c(){return globalThis._VSCODE_NLS_MESSAGES}function k(){return globalThis._VSCODE_NLS_LANGUAGE}}),define(oe[3],re([1,0,343,343]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNLSMessages=e.getNLSLanguage=void 0,e.localize=y,e.localize2=_,Object.defineProperty(e,"getNLSLanguage",{enumerable:!0,get:function(){return k.getNLSLanguage}}),Object.defineProperty(e,"getNLSMessages",{enumerable:!0,get:function(){return k.getNLSMessages}});const E=(0,c.getNLSLanguage)()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function L(v,p){let n;return p.length===0?n=v:n=v.replace(/\{(\d+)\}/g,(s,t)=>{const i=t[0],o=p[i];let g=s;return typeof o=="string"?g=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(g=String(o)),g}),E&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}function y(v,p,...n){return L(typeof v=="number"?f(v,p):p,n)}function f(v,p){const n=(0,c.getNLSMessages)()?.[v];if(typeof n!="string"){if(typeof p=="string")return p;throw new Error(`!!! NLS MISSING: ${v} !!!`)}return n}function _(v,p,...n){let s;typeof v=="number"?s=f(v,p):s=p;const t=L(s,n);return{value:t,original:p===s?t:L(p,n)}}}),define(oe[41],re([1,0,6,2,3]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptySubmenuAction=e.SubmenuAction=e.Separator=e.ActionRunner=e.Action=void 0,e.toAction=p;class L extends k.Disposable{constructor(s,t="",i="",o=!0,g){super(),this._onDidChange=this._register(new c.Emitter),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=s,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=g}get id(){return this._id}get label(){return this._label}set label(s){this._setLabel(s)}_setLabel(s){this._label!==s&&(this._label=s,this._onDidChange.fire({label:s}))}get tooltip(){return this._tooltip||""}set tooltip(s){this._setTooltip(s)}_setTooltip(s){this._tooltip!==s&&(this._tooltip=s,this._onDidChange.fire({tooltip:s}))}get class(){return this._cssClass}set class(s){this._setClass(s)}_setClass(s){this._cssClass!==s&&(this._cssClass=s,this._onDidChange.fire({class:s}))}get enabled(){return this._enabled}set enabled(s){this._setEnabled(s)}_setEnabled(s){this._enabled!==s&&(this._enabled=s,this._onDidChange.fire({enabled:s}))}get checked(){return this._checked}set checked(s){this._setChecked(s)}_setChecked(s){this._checked!==s&&(this._checked=s,this._onDidChange.fire({checked:s}))}async run(s,t){this._actionCallback&&await this._actionCallback(s)}}e.Action=L;class y extends k.Disposable{constructor(){super(...arguments),this._onWillRun=this._register(new c.Emitter),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new c.Emitter),this.onDidRun=this._onDidRun.event}async run(s,t){if(!s.enabled)return;this._onWillRun.fire({action:s});let i;try{await this.runAction(s,t)}catch(o){i=o}this._onDidRun.fire({action:s,error:i})}async runAction(s,t){await s.run(t)}}e.ActionRunner=y;class f{constructor(){this.id=f.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...s){let t=[];for(const i of s)i.length&&(t.length?t=[...t,new f,...i]:t=i);return t}static{this.ID="vs.actions.separator"}async run(){}}e.Separator=f;class _{get actions(){return this._actions}constructor(s,t,i,o){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=s,this.label=t,this.class=o,this._actions=i}async run(){}}e.SubmenuAction=_;class v extends L{static{this.ID="vs.actions.empty"}constructor(){super(v.ID,E.localize(
|
|
115
|
-
`):v}function f(v){return v.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${v.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof v.code=="string"&&typeof v.errno=="number"&&typeof v.syscall=="string"?E.localize(1758,"A system error occurred ({0})",v.message):v.message||E.localize(1759,"An unknown error occurred. Please consult the log for more details.")}function _(v=null,p=!1){if(!v)return E.localize(1760,"An unknown error occurred. Please consult the log for more details.");if(Array.isArray(v)){const n=c.coalesce(v),s=_(n[0],p);return n.length>1?E.localize(1761,"{0} ({1} errors in total)",s,n.length):s}if(k.isString(v))return v;if(v.detail){const n=v.detail;if(n.error)return L(n.error,p);if(n.exception)return L(n.exception,p)}return v.stack?L(v,p):v.message?v.message:E.localize(1762,"An unknown error occurred. Please consult the log for more details.")}}),define(oe[246],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserSettingsLabelProvider=e.ElectronAcceleratorLabelProvider=e.AriaLabelProvider=e.UILabelProvider=e.ModifierLabelProvider=void 0;class k{constructor(y,f,_=f){this.modifierLabels=[null],this.modifierLabels[2]=y,this.modifierLabels[1]=f,this.modifierLabels[3]=_}toLabel(y,f,_){if(f.length===0)return null;const v=[];for(let p=0,n=f.length;p<n;p++){const s=f[p],t=_(s);if(t===null)return null;v[p]=E(s,t,this.modifierLabels[y])}return v.join(" ")}}e.ModifierLabelProvider=k,e.UILabelProvider=new k({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:c.localize(1737,"Ctrl"),shiftKey:c.localize(1738,"Shift"),altKey:c.localize(1739,"Alt"),metaKey:c.localize(1740,"Windows"),separator:"+"},{ctrlKey:c.localize(1741,"Ctrl"),shiftKey:c.localize(1742,"Shift"),altKey:c.localize(1743,"Alt"),metaKey:c.localize(1744,"Super"),separator:"+"}),e.AriaLabelProvider=new k({ctrlKey:c.localize(1745,"Control"),shiftKey:c.localize(1746,"Shift"),altKey:c.localize(1747,"Option"),metaKey:c.localize(1748,"Command"),separator:"+"},{ctrlKey:c.localize(1749,"Control"),shiftKey:c.localize(1750,"Shift"),altKey:c.localize(1751,"Alt"),metaKey:c.localize(1752,"Windows"),separator:"+"},{ctrlKey:c.localize(1753,"Control"),shiftKey:c.localize(1754,"Shift"),altKey:c.localize(1755,"Alt"),metaKey:c.localize(1756,"Super"),separator:"+"}),e.ElectronAcceleratorLabelProvider=new k({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),e.UserSettingsLabelProvider=new k({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function E(L,y,f){if(y===null)return"";const _=[];return L.ctrlKey&&_.push(f.ctrlKey),L.shiftKey&&_.push(f.shiftKey),L.altKey&&_.push(f.altKey),L.metaKey&&_.push(f.metaKey),y!==""&&_.push(y),_.join(f.separator)}}),define(oe[16],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.OS=e.setTimeout0=e.setTimeout0IsFaster=e.language=e.userAgent=e.isMobile=e.isIOS=e.webWorkerOrigin=e.isWebWorker=e.isWeb=e.isNative=e.isLinux=e.isMacintosh=e.isWindows=e.LANGUAGE_DEFAULT=void 0,e.isLittleEndian=b,e.LANGUAGE_DEFAULT="en";let k=!1,E=!1,L=!1,y=!1,f=!1,_=!1,v=!1,p=!1,n=!1,s=!1,t,i=e.LANGUAGE_DEFAULT,o=e.LANGUAGE_DEFAULT,g,u;const l=globalThis;let r;typeof l.vscode<"u"&&typeof l.vscode.process<"u"?r=l.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(r=process);const a=typeof r?.versions?.electron=="string",d=a&&r?.type==="renderer";if(typeof r=="object"){k=r.platform==="win32",E=r.platform==="darwin",L=r.platform==="linux",y=L&&!!r.env.SNAP&&!!r.env.SNAP_REVISION,v=a,n=!!r.env.CI||!!r.env.BUILD_ARTIFACTSTAGINGDIRECTORY,t=e.LANGUAGE_DEFAULT,i=e.LANGUAGE_DEFAULT;const w=r.env.VSCODE_NLS_CONFIG;if(w)try{const S=JSON.parse(w);t=S.userLocale,o=S.osLocale,i=S.resolvedLanguage||e.LANGUAGE_DEFAULT,g=S.languagePack?.translationsConfigFile}catch{}f=!0}else typeof navigator=="object"&&!d?(u=navigator.userAgent,k=u.indexOf("Windows")>=0,E=u.indexOf("Macintosh")>=0,p=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,L=u.indexOf("Linux")>=0,s=u?.indexOf("Mobi")>=0,_=!0,i=c.getNLSLanguage()||e.LANGUAGE_DEFAULT,t=navigator.language.toLowerCase(),o=t):console.error("Unable to resolve platform.");let m=0;E?m=1:k?m=3:L&&(m=2),e.isWindows=k,e.isMacintosh=E,e.isLinux=L,e.isNative=f,e.isWeb=_,e.isWebWorker=_&&typeof l.importScripts=="function",e.webWorkerOrigin=e.isWebWorker?l.origin:void 0,e.isIOS=p,e.isMobile=s,e.userAgent=u,e.language=i,e.setTimeout0IsFaster=typeof l.postMessage=="function"&&!l.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const w=[];l.addEventListener("message",D=>{if(D.data&&D.data.vscodeScheduleAsyncWork)for(let I=0,T=w.length;I<T;I++){const M=w[I];if(M.id===D.data.vscodeScheduleAsyncWork){w.splice(I,1),M.callback();return}}});let S=0;return D=>{const I=++S;w.push({id:I,callback:D}),l.postMessage({vscodeScheduleAsyncWork:I},"*")}}return w=>setTimeout(w)})(),e.OS=E||p?2:k?1:3;let h=!0,C=!1;function b(){if(!C){C=!0;const w=new Uint8Array(2);w[0]=1,w[1]=2,h=new Uint16Array(w.buffer)[0]===513}return h}e.isChrome=!!(e.userAgent&&e.userAgent.indexOf("Chrome")>=0),e.isFirefox=!!(e.userAgent&&e.userAgent.indexOf("Firefox")>=0),e.isSafari=!!(!e.isChrome&&e.userAgent&&e.userAgent.indexOf("Safari")>=0),e.isEdge=!!(e.userAgent&&e.userAgent.indexOf("Edg/")>=0),e.isAndroid=!!(e.userAgent&&e.userAgent.indexOf("Android")>=0)}),define(oe[247],re([1,0,64,52,16]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserFeatures=void 0,e.BrowserFeatures={clipboard:{writeText:E.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:E.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:E.isNative||c.isStandalone()?0:navigator.keyboard||c.isSafari?1:2,touch:"ontouchstart"in k.mainWindow||navigator.maxTouchPoints>0,pointerEvents:k.mainWindow.PointerEvent&&("ontouchstart"in k.mainWindow||navigator.maxTouchPoints>0)}}),define(oe[345],re([1,0,16]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FONT_FAMILY=void 0,e.DEFAULT_FONT_FAMILY=c.isWindows?'"Segoe WPC", "Segoe UI", sans-serif':c.isMacintosh?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'}),define(oe[46],re([1,0,64,72,139,16]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardKeyboardEvent=void 0;function y(s){if(s.charCode){const i=String.fromCharCode(s.charCode).toUpperCase();return k.KeyCodeUtils.fromString(i)}const t=s.keyCode;if(t===3)return 7;if(c.isFirefox)switch(t){case 59:return 85;case 60:if(L.isLinux)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(L.isMacintosh)return 57;break}else if(c.isWebKit){if(L.isMacintosh&&t===93)return 57;if(!L.isMacintosh&&t===92)return 57}return k.EVENT_KEY_CODE_MAP[t]||0}const f=L.isMacintosh?256:2048,_=512,v=1024,p=L.isMacintosh?2048:256;class n{constructor(t){this._standardKeyboardEventBrand=!0;const i=t;this.browserEvent=i,this.target=i.target,this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey,this.altGraphKey=i.getModifierState?.("AltGraph"),this.keyCode=y(i),this.code=i.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(t){return this._asKeybinding===t}_computeKeybinding(){let t=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(t=this.keyCode);let i=0;return this.ctrlKey&&(i|=f),this.altKey&&(i|=_),this.shiftKey&&(i|=v),this.metaKey&&(i|=p),i|=t,i}_computeKeyCodeChord(){let t=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(t=this.keyCode),new E.KeyCodeChord(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,t)}}e.StandardKeyboardEvent=n}),define(oe[77],re([1,0,64,437,16]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardWheelEvent=e.StandardMouseEvent=void 0;class L{constructor(_,v){this.timestamp=Date.now(),this.browserEvent=v,this.leftButton=v.button===0,this.middleButton=v.button===1,this.rightButton=v.button===2,this.buttons=v.buttons,this.target=v.target,this.detail=v.detail||1,v.type==="dblclick"&&(this.detail=2),this.ctrlKey=v.ctrlKey,this.shiftKey=v.shiftKey,this.altKey=v.altKey,this.metaKey=v.metaKey,typeof v.pageX=="number"?(this.posx=v.pageX,this.posy=v.pageY):(this.posx=v.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=v.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const p=k.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(_,v.view);this.posx-=p.left,this.posy-=p.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}e.StandardMouseEvent=L;class y{constructor(_,v=0,p=0){this.browserEvent=_||null,this.target=_?_.target||_.targetNode||_.srcElement:null,this.deltaY=p,this.deltaX=v;let n=!1;if(c.isChrome){const s=navigator.userAgent.match(/Chrome\/(\d+)/);n=(s?parseInt(s[1]):123)<=122}if(_){const s=_,t=_,i=_.view?.devicePixelRatio||1;if(typeof s.wheelDeltaY<"u")n?this.deltaY=s.wheelDeltaY/(120*i):this.deltaY=s.wheelDeltaY/120;else if(typeof t.VERTICAL_AXIS<"u"&&t.axis===t.VERTICAL_AXIS)this.deltaY=-t.detail/3;else if(_.type==="wheel"){const o=_;o.deltaMode===o.DOM_DELTA_LINE?c.isFirefox&&!E.isMacintosh?this.deltaY=-_.deltaY/3:this.deltaY=-_.deltaY:this.deltaY=-_.deltaY/40}if(typeof s.wheelDeltaX<"u")c.isSafari&&E.isWindows?this.deltaX=-(s.wheelDeltaX/120):n?this.deltaX=s.wheelDeltaX/(120*i):this.deltaX=s.wheelDeltaX/120;else if(typeof t.HORIZONTAL_AXIS<"u"&&t.axis===t.HORIZONTAL_AXIS)this.deltaX=-_.detail/3;else if(_.type==="wheel"){const o=_;o.deltaMode===o.DOM_DELTA_LINE?c.isFirefox&&!E.isMacintosh?this.deltaX=-_.deltaX/3:this.deltaX=-_.deltaX:this.deltaX=-_.deltaX/40}this.deltaY===0&&this.deltaX===0&&_.wheelDelta&&(n?this.deltaY=_.wheelDelta/(120*i):this.deltaY=_.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}e.StandardWheelEvent=y}),define(oe[14],re([1,0,18,8,6,2,16,300]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.GlobalIdleValue=e.AbstractIdleValue=e._runWhenIdle=e.runWhenGlobalIdle=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.ThrottledDelayer=e.Delayer=e.Throttler=void 0,e.isThenable=_,e.createCancelablePromise=v,e.raceCancellation=p,e.timeout=g,e.disposableTimeout=u,e.first=l,e.createCancelableAsyncIterable=D;function _(I){return!!I&&typeof I.then=="function"}function v(I){const T=new c.CancellationTokenSource,M=I(T.token),A=new Promise((R,N)=>{const O=T.token.onCancellationRequested(()=>{O.dispose(),N(new k.CancellationError)});Promise.resolve(M).then(x=>{O.dispose(),T.dispose(),R(x)},x=>{O.dispose(),T.dispose(),N(x)})});return new class{cancel(){T.cancel(),T.dispose()}then(R,N){return A.then(R,N)}catch(R){return this.then(void 0,R)}finally(R){return A.finally(R)}}}function p(I,T,M){return new Promise((A,R)=>{const N=T.onCancellationRequested(()=>{N.dispose(),A(M)});I.then(A,R).finally(()=>N.dispose())})}class n{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(T){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=T,!this.queuedPromise){const M=()=>{if(this.queuedPromise=null,this.isDisposed)return;const A=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,A};this.queuedPromise=new Promise(A=>{this.activePromise.then(M,M).then(A)})}return new Promise((M,A)=>{this.queuedPromise.then(M,A)})}return this.activePromise=T(),new Promise((M,A)=>{this.activePromise.then(R=>{this.activePromise=null,M(R)},R=>{this.activePromise=null,A(R)})})}dispose(){this.isDisposed=!0}}e.Throttler=n;const s=(I,T)=>{let M=!0;const A=setTimeout(()=>{M=!1,T()},I);return{isTriggered:()=>M,dispose:()=>{clearTimeout(A),M=!1}}},t=I=>{let T=!0;return queueMicrotask(()=>{T&&(T=!1,I())}),{isTriggered:()=>T,dispose:()=>{T=!1}}};class i{constructor(T){this.defaultDelay=T,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(T,M=this.defaultDelay){this.task=T,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((R,N)=>{this.doResolve=R,this.doReject=N}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const R=this.task;return this.task=null,R()}}));const A=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=M===f.MicrotaskDelay?t(A):s(M,A),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new k.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=i;class o{constructor(T){this.delayer=new i(T),this.throttler=new n}trigger(T,M){return this.delayer.trigger(()=>this.throttler.queue(T),M)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}e.ThrottledDelayer=o;function g(I,T){return T?new Promise((M,A)=>{const R=setTimeout(()=>{N.dispose(),M()},I),N=T.onCancellationRequested(()=>{clearTimeout(R),N.dispose(),A(new k.CancellationError)})}):v(M=>g(I,M))}function u(I,T=0,M){const A=setTimeout(()=>{I(),M&&R.dispose()},T),R=(0,L.toDisposable)(()=>{clearTimeout(A),M?.deleteAndLeak(R)});return M?.add(R),R}function l(I,T=A=>!!A,M=null){let A=0;const R=I.length,N=()=>{if(A>=R)return Promise.resolve(M);const O=I[A++];return Promise.resolve(O()).then(F=>T(F)?Promise.resolve(F):N())};return N()}class r{constructor(T,M){this._isDisposed=!1,this._token=-1,typeof T=="function"&&typeof M=="number"&&this.setIfNotSet(T,M)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(T,M){if(this._isDisposed)throw new k.BugIndicatingError("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,T()},M)}setIfNotSet(T,M){if(this._isDisposed)throw new k.BugIndicatingError("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,T()},M))}}e.TimeoutTimer=r;class a{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(T,M,A=globalThis){if(this.isDisposed)throw new k.BugIndicatingError("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const R=A.setInterval(()=>{T()},M);this.disposable=(0,L.toDisposable)(()=>{A.clearInterval(R),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}}e.IntervalTimer=a;class d{constructor(T,M){this.timeoutToken=-1,this.runner=T,this.timeout=M,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(T=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,T)}get delay(){return this.timeout}set delay(T){this.timeout=T}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=d,function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?e._runWhenIdle=(I,T)=>{(0,y.setTimeout0)(()=>{if(M)return;const A=Date.now()+15;T(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,A-Date.now())}}))});let M=!1;return{dispose(){M||(M=!0)}}}:e._runWhenIdle=(I,T,M)=>{const A=I.requestIdleCallback(T,typeof M=="number"?{timeout:M}:void 0);let R=!1;return{dispose(){R||(R=!0,I.cancelIdleCallback(A))}}},e.runWhenGlobalIdle=I=>(0,e._runWhenIdle)(globalThis,I)}();class m{constructor(T,M){this._didRun=!1,this._executor=()=>{try{this._value=M()}catch(A){this._error=A}finally{this._didRun=!0}},this._handle=(0,e._runWhenIdle)(T,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.AbstractIdleValue=m;class h extends m{constructor(T){super(globalThis,T)}}e.GlobalIdleValue=h;class C{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((T,M)=>{this.completeCallback=T,this.errorCallback=M})}complete(T){return new Promise(M=>{this.completeCallback(T),this.outcome={outcome:0,value:T},M()})}error(T){return new Promise(M=>{this.errorCallback(T),this.outcome={outcome:1,value:T},M()})}cancel(){return this.error(new k.CancellationError)}}e.DeferredPromise=C;var b;(function(I){async function T(A){let R;const N=await Promise.all(A.map(O=>O.then(x=>x,x=>{R||(R=x)})));if(typeof R<"u")throw R;return N}I.settled=T;function M(A){return new Promise(async(R,N)=>{try{await A(R,N)}catch(O){N(O)}})}I.withAsyncBody=M})(b||(e.Promises=b={}));class w{static fromArray(T){return new w(M=>{M.emitMany(T)})}static fromPromise(T){return new w(async M=>{M.emitMany(await T)})}static fromPromises(T){return new w(async M=>{await Promise.all(T.map(async A=>M.emitOne(await A)))})}static merge(T){return new w(async M=>{await Promise.all(T.map(async A=>{for await(const R of A)M.emitOne(R)}))})}static{this.EMPTY=w.fromArray([])}constructor(T,M){this._state=0,this._results=[],this._error=null,this._onReturn=M,this._onStateChanged=new E.Emitter,queueMicrotask(async()=>{const A={emitOne:R=>this.emitOne(R),emitMany:R=>this.emitMany(R),reject:R=>this.reject(R)};try{await Promise.resolve(T(A)),this.resolve()}catch(R){this.reject(R)}finally{A.emitOne=void 0,A.emitMany=void 0,A.reject=void 0}})}[Symbol.asyncIterator](){let T=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(T<this._results.length)return{done:!1,value:this._results[T++]};if(this._state===1)return{done:!0,value:void 0};await E.Event.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(T,M){return new w(async A=>{for await(const R of T)A.emitOne(M(R))})}map(T){return w.map(this,T)}static filter(T,M){return new w(async A=>{for await(const R of T)M(R)&&A.emitOne(R)})}filter(T){return w.filter(this,T)}static coalesce(T){return w.filter(T,M=>!!M)}coalesce(){return w.coalesce(this)}static async toPromise(T){const M=[];for await(const A of T)M.push(A);return M}toPromise(){return w.toPromise(this)}emitOne(T){this._state===0&&(this._results.push(T),this._onStateChanged.fire())}emitMany(T){this._state===0&&(this._results=this._results.concat(T),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(T){this._state===0&&(this._state=2,this._error=T,this._onStateChanged.fire())}}e.AsyncIterableObject=w;class S extends w{constructor(T,M){super(M),this._source=T}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=S;function D(I){const T=new c.CancellationTokenSource,M=I(T.token);return new S(T,async A=>{const R=T.token.onCancellationRequested(()=>{R.dispose(),T.dispose(),A.reject(new k.CancellationError)});try{for await(const N of M){if(T.token.isCancellationRequested)return;A.emitOne(N)}R.dispose(),T.dispose()}catch(N){R.dispose(),T.dispose(),A.reject(N)}})}}),define(oe[621],re([1,0,14,2]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarVisibilityController=void 0;class E extends k.Disposable{constructor(y,f,_){super(),this._visibility=y,this._visibleClassName=f,this._invisibleClassName=_,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new c.TimeoutTimer)}setVisibility(y){this._visibility!==y&&(this._visibility=y,this._updateShouldBeVisible())}setShouldBeVisible(y){this._rawShouldBeVisible=y,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const y=this._applyVisibilitySetting();this._shouldBeVisible!==y&&(this._shouldBeVisible=y,this.ensureVisibility())}setIsNeeded(y){this._isNeeded!==y&&(this._isNeeded=y,this.ensureVisibility())}setDomNode(y){this._domNode=y,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(y){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(y?" fade":"")))}}e.ScrollbarVisibilityController=E}),define(oe[248],re([1,0,157,13,14,300,190,6,53]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndexTreeModel=void 0,e.isFilterResult=v,e.getVisibleState=p;function v(t){return typeof t=="object"&&"visibility"in t&&"data"in t}function p(t){switch(t){case!0:return 1;case!1:return 0;default:return t}}function n(t){return typeof t.collapsible=="boolean"}class s{constructor(i,o,g,u={}){this.user=i,this.list=o,this.rootRef=[],this.eventBufferer=new f.EventBufferer,this._onDidChangeCollapseState=new f.Emitter,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new f.Emitter,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new f.Emitter,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new E.Delayer(L.MicrotaskDelay),this.collapseByDefault=typeof u.collapseByDefault>"u"?!1:u.collapseByDefault,this.allowNonCollapsibleParents=u.allowNonCollapsibleParents??!1,this.filter=u.filter,this.autoExpandSingleChildren=typeof u.autoExpandSingleChildren>"u"?!1:u.autoExpandSingleChildren,this.root={parent:void 0,element:g,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(i,o,g=_.Iterable.empty(),u={}){if(i.length===0)throw new c.TreeError(this.user,"Invalid tree location");u.diffIdentityProvider?this.spliceSmart(u.diffIdentityProvider,i,o,g,u):this.spliceSimple(i,o,g,u)}spliceSmart(i,o,g,u=_.Iterable.empty(),l,r=l.diffDepth??0){const{parentNode:a}=this.getParentNodeWithListIndex(o);if(!a.lastDiffIds)return this.spliceSimple(o,g,u,l);const d=[...u],m=o[o.length-1],h=new y.LcsDiff({getElements:()=>a.lastDiffIds},{getElements:()=>[...a.children.slice(0,m),...d,...a.children.slice(m+g)].map(D=>i.getId(D.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return a.lastDiffIds=void 0,this.spliceSimple(o,g,d,l);const C=o.slice(0,-1),b=(D,I,T)=>{if(r>0)for(let M=0;M<T;M++)D--,I--,this.spliceSmart(i,[...C,D,0],Number.MAX_SAFE_INTEGER,d[I].children,l,r-1)};let w=Math.min(a.children.length,m+g),S=d.length;for(const D of h.changes.sort((I,T)=>T.originalStart-I.originalStart))b(w,S,w-(D.originalStart+D.originalLength)),w=D.originalStart,S=D.modifiedStart-m,this.spliceSimple([...C,w],D.originalLength,_.Iterable.slice(d,S,S+D.modifiedLength),l);b(w,S,w)}spliceSimple(i,o,g=_.Iterable.empty(),{onDidCreateNode:u,onDidDeleteNode:l,diffIdentityProvider:r}){const{parentNode:a,listIndex:d,revealed:m,visible:h}=this.getParentNodeWithListIndex(i),C=[],b=_.Iterable.map(g,N=>this.createTreeNode(N,a,a.visible?1:0,m,C,u)),w=i[i.length-1];let S=0;for(let N=w;N>=0&&N<a.children.length;N--){const O=a.children[N];if(O.visible){S=O.visibleChildIndex;break}}const D=[];let I=0,T=0;for(const N of b)D.push(N),T+=N.renderNodeCount,N.visible&&(N.visibleChildIndex=S+I++);const M=(0,k.splice)(a.children,w,o,D);r?a.lastDiffIds?(0,k.splice)(a.lastDiffIds,w,o,D.map(N=>r.getId(N.element).toString())):a.lastDiffIds=a.children.map(N=>r.getId(N.element).toString()):a.lastDiffIds=void 0;let A=0;for(const N of M)N.visible&&A++;if(A!==0)for(let N=w+D.length;N<a.children.length;N++){const O=a.children[N];O.visible&&(O.visibleChildIndex-=A)}if(a.visibleChildrenCount+=I-A,m&&h){const N=M.reduce((O,x)=>O+(x.visible?x.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,T-N),this.list.splice(d,N,C)}if(M.length>0&&l){const N=O=>{l(O),O.children.forEach(N)};M.forEach(N)}this._onDidSplice.fire({insertedNodes:D,deletedNodes:M});let R=a;for(;R;){if(R.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}R=R.parent}}rerender(i){if(i.length===0)throw new c.TreeError(this.user,"Invalid tree location");const{node:o,listIndex:g,revealed:u}=this.getTreeNodeWithListIndex(i);o.visible&&u&&this.list.splice(g,1,[o])}has(i){return this.hasTreeNode(i)}getListIndex(i){const{listIndex:o,visible:g,revealed:u}=this.getTreeNodeWithListIndex(i);return g&&u?o:-1}getListRenderCount(i){return this.getTreeNode(i).renderNodeCount}isCollapsible(i){return this.getTreeNode(i).collapsible}setCollapsible(i,o){const g=this.getTreeNode(i);typeof o>"u"&&(o=!g.collapsible);const u={collapsible:o};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(i,u))}isCollapsed(i){return this.getTreeNode(i).collapsed}setCollapsed(i,o,g){const u=this.getTreeNode(i);typeof o>"u"&&(o=!u.collapsed);const l={collapsed:o,recursive:g||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(i,l))}_setCollapseState(i,o){const{node:g,listIndex:u,revealed:l}=this.getTreeNodeWithListIndex(i),r=this._setListNodeCollapseState(g,u,l,o);if(g!==this.root&&this.autoExpandSingleChildren&&r&&!n(o)&&g.collapsible&&!g.collapsed&&!o.recursive){let a=-1;for(let d=0;d<g.children.length;d++)if(g.children[d].visible)if(a>-1){a=-1;break}else a=d;a>-1&&this._setCollapseState([...i,a],o)}return r}_setListNodeCollapseState(i,o,g,u){const l=this._setNodeCollapseState(i,u,!1);if(!g||!i.visible||!l)return l;const r=i.renderNodeCount,a=this.updateNodeAfterCollapseChange(i),d=r-(o===-1?0:1);return this.list.splice(o+1,d,a.slice(1)),l}_setNodeCollapseState(i,o,g){let u;if(i===this.root?u=!1:(n(o)?(u=i.collapsible!==o.collapsible,i.collapsible=o.collapsible):i.collapsible?(u=i.collapsed!==o.collapsed,i.collapsed=o.collapsed):u=!1,u&&this._onDidChangeCollapseState.fire({node:i,deep:g})),!n(o)&&o.recursive)for(const l of i.children)u=this._setNodeCollapseState(l,o,!0)||u;return u}expandTo(i){this.eventBufferer.bufferEvents(()=>{let o=this.getTreeNode(i);for(;o.parent;)o=o.parent,i=i.slice(0,i.length-1),o.collapsed&&this._setCollapseState(i,{collapsed:!1,recursive:!1})})}refilter(){const i=this.root.renderNodeCount,o=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,i,o),this.refilterDelayer.cancel()}createTreeNode(i,o,g,u,l,r){const a={parent:o,element:i.element,children:[],depth:o.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof i.collapsible=="boolean"?i.collapsible:typeof i.collapsed<"u",collapsed:typeof i.collapsed>"u"?this.collapseByDefault:i.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},d=this._filterNode(a,g);a.visibility=d,u&&l.push(a);const m=i.children||_.Iterable.empty(),h=u&&d!==0&&!a.collapsed;let C=0,b=1;for(const w of m){const S=this.createTreeNode(w,a,d,h,l,r);a.children.push(S),b+=S.renderNodeCount,S.visible&&(S.visibleChildIndex=C++)}return this.allowNonCollapsibleParents||(a.collapsible=a.collapsible||a.children.length>0),a.visibleChildrenCount=C,a.visible=d===2?C>0:d===1,a.visible?a.collapsed||(a.renderNodeCount=b):(a.renderNodeCount=0,u&&l.pop()),r?.(a),a}updateNodeAfterCollapseChange(i){const o=i.renderNodeCount,g=[];return this._updateNodeAfterCollapseChange(i,g),this._updateAncestorsRenderNodeCount(i.parent,g.length-o),g}_updateNodeAfterCollapseChange(i,o){if(i.visible===!1)return 0;if(o.push(i),i.renderNodeCount=1,!i.collapsed)for(const g of i.children)i.renderNodeCount+=this._updateNodeAfterCollapseChange(g,o);return this._onDidChangeRenderNodeCount.fire(i),i.renderNodeCount}updateNodeAfterFilterChange(i){const o=i.renderNodeCount,g=[];return this._updateNodeAfterFilterChange(i,i.visible?1:0,g),this._updateAncestorsRenderNodeCount(i.parent,g.length-o),g}_updateNodeAfterFilterChange(i,o,g,u=!0){let l;if(i!==this.root){if(l=this._filterNode(i,o),l===0)return i.visible=!1,i.renderNodeCount=0,!1;u&&g.push(i)}const r=g.length;i.renderNodeCount=i===this.root?0:1;let a=!1;if(!i.collapsed||l!==0){let d=0;for(const m of i.children)a=this._updateNodeAfterFilterChange(m,l,g,u&&!i.collapsed)||a,m.visible&&(m.visibleChildIndex=d++);i.visibleChildrenCount=d}else i.visibleChildrenCount=0;return i!==this.root&&(i.visible=l===2?a:l===1,i.visibility=l),i.visible?i.collapsed||(i.renderNodeCount+=g.length-r):(i.renderNodeCount=0,u&&g.pop()),this._onDidChangeRenderNodeCount.fire(i),i.visible}_updateAncestorsRenderNodeCount(i,o){if(o!==0)for(;i;)i.renderNodeCount+=o,this._onDidChangeRenderNodeCount.fire(i),i=i.parent}_filterNode(i,o){const g=this.filter?this.filter.filter(i.element,o):1;return typeof g=="boolean"?(i.filterData=void 0,g?1:0):v(g)?(i.filterData=g.data,p(g.visibility)):(i.filterData=void 0,p(g))}hasTreeNode(i,o=this.root){if(!i||i.length===0)return!0;const[g,...u]=i;return g<0||g>o.children.length?!1:this.hasTreeNode(u,o.children[g])}getTreeNode(i,o=this.root){if(!i||i.length===0)return o;const[g,...u]=i;if(g<0||g>o.children.length)throw new c.TreeError(this.user,"Invalid tree location");return this.getTreeNode(u,o.children[g])}getTreeNodeWithListIndex(i){if(i.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:o,listIndex:g,revealed:u,visible:l}=this.getParentNodeWithListIndex(i),r=i[i.length-1];if(r<0||r>o.children.length)throw new c.TreeError(this.user,"Invalid tree location");const a=o.children[r];return{node:a,listIndex:g,revealed:u,visible:l&&a.visible}}getParentNodeWithListIndex(i,o=this.root,g=0,u=!0,l=!0){const[r,...a]=i;if(r<0||r>o.children.length)throw new c.TreeError(this.user,"Invalid tree location");for(let d=0;d<r;d++)g+=o.children[d].renderNodeCount;return u=u&&!o.collapsed,l=l&&o.visible,a.length===0?{parentNode:o,listIndex:g,revealed:u,visible:l}:this.getParentNodeWithListIndex(a,o.children[r],g+1,u,l)}getNode(i=[]){return this.getTreeNode(i)}getNodeLocation(i){const o=[];let g=i;for(;g.parent;)o.push(g.parent.children.indexOf(g)),g=g.parent;return o.reverse()}getParentNodeLocation(i){if(i.length!==0)return i.length===1?[]:(0,k.tail2)(i)[0]}getFirstElementChild(i){const o=this.getTreeNode(i);if(o.children.length!==0)return o.children[0].element}}e.IndexTreeModel=s}),define(oe[249],re([1,0,248,157,53]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectTreeModel=void 0;class L{constructor(f,_,v={}){this.user=f,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new c.IndexTreeModel(f,_,null,v),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,v.sorter&&(this.sorter={compare(p,n){return v.sorter.compare(p.element,n.element)}}),this.identityProvider=v.identityProvider}setChildren(f,_=E.Iterable.empty(),v={}){const p=this.getElementLocation(f);this._setChildren(p,this.preserveCollapseState(_),v)}_setChildren(f,_=E.Iterable.empty(),v){const p=new Set,n=new Set,s=i=>{if(i.element===null)return;const o=i;if(p.add(o.element),this.nodes.set(o.element,o),this.identityProvider){const g=this.identityProvider.getId(o.element).toString();n.add(g),this.nodesByIdentity.set(g,o)}v.onDidCreateNode?.(o)},t=i=>{if(i.element===null)return;const o=i;if(p.has(o.element)||this.nodes.delete(o.element),this.identityProvider){const g=this.identityProvider.getId(o.element).toString();n.has(g)||this.nodesByIdentity.delete(g)}v.onDidDeleteNode?.(o)};this.model.splice([...f,0],Number.MAX_VALUE,_,{...v,onDidCreateNode:s,onDidDeleteNode:t})}preserveCollapseState(f=E.Iterable.empty()){return this.sorter&&(f=[...f].sort(this.sorter.compare.bind(this.sorter))),E.Iterable.map(f,_=>{let v=this.nodes.get(_.element);if(!v&&this.identityProvider){const s=this.identityProvider.getId(_.element).toString();v=this.nodesByIdentity.get(s)}if(!v){let s;return typeof _.collapsed>"u"?s=void 0:_.collapsed===k.ObjectTreeElementCollapseState.Collapsed||_.collapsed===k.ObjectTreeElementCollapseState.PreserveOrCollapsed?s=!0:_.collapsed===k.ObjectTreeElementCollapseState.Expanded||_.collapsed===k.ObjectTreeElementCollapseState.PreserveOrExpanded?s=!1:s=!!_.collapsed,{..._,children:this.preserveCollapseState(_.children),collapsed:s}}const p=typeof _.collapsible=="boolean"?_.collapsible:v.collapsible;let n;return typeof _.collapsed>"u"||_.collapsed===k.ObjectTreeElementCollapseState.PreserveOrCollapsed||_.collapsed===k.ObjectTreeElementCollapseState.PreserveOrExpanded?n=v.collapsed:_.collapsed===k.ObjectTreeElementCollapseState.Collapsed?n=!0:_.collapsed===k.ObjectTreeElementCollapseState.Expanded?n=!1:n=!!_.collapsed,{..._,collapsible:p,collapsed:n,children:this.preserveCollapseState(_.children)}})}rerender(f){const _=this.getElementLocation(f);this.model.rerender(_)}getFirstElementChild(f=null){const _=this.getElementLocation(f);return this.model.getFirstElementChild(_)}has(f){return this.nodes.has(f)}getListIndex(f){const _=this.getElementLocation(f);return this.model.getListIndex(_)}getListRenderCount(f){const _=this.getElementLocation(f);return this.model.getListRenderCount(_)}isCollapsible(f){const _=this.getElementLocation(f);return this.model.isCollapsible(_)}setCollapsible(f,_){const v=this.getElementLocation(f);return this.model.setCollapsible(v,_)}isCollapsed(f){const _=this.getElementLocation(f);return this.model.isCollapsed(_)}setCollapsed(f,_,v){const p=this.getElementLocation(f);return this.model.setCollapsed(p,_,v)}expandTo(f){const _=this.getElementLocation(f);this.model.expandTo(_)}refilter(){this.model.refilter()}getNode(f=null){if(f===null)return this.model.getNode(this.model.rootRef);const _=this.nodes.get(f);if(!_)throw new k.TreeError(this.user,`Tree element not found: ${f}`);return _}getNodeLocation(f){return f.element}getParentNodeLocation(f){if(f===null)throw new k.TreeError(this.user,"Invalid getParentNodeLocation call");const _=this.nodes.get(f);if(!_)throw new k.TreeError(this.user,`Tree element not found: ${f}`);const v=this.model.getNodeLocation(_),p=this.model.getParentNodeLocation(v);return this.model.getNode(p).element}getElementLocation(f){if(f===null)return[];const _=this.nodes.get(f);if(!_)throw new k.TreeError(this.user,`Tree element not found: ${f}`);return this.model.getNodeLocation(_)}}e.ObjectTreeModel=L}),define(oe[622],re([1,0,249,157,13,6,53]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTreeModel=e.DefaultElementMapper=e.CompressedObjectTreeModel=void 0,e.compress=_,e.decompress=p;function f(r){const a=[r.element],d=r.incompressible||!1;return{element:{elements:a,incompressible:d},children:y.Iterable.map(y.Iterable.from(r.children),f),collapsible:r.collapsible,collapsed:r.collapsed}}function _(r){const a=[r.element],d=r.incompressible||!1;let m,h;for(;[h,m]=y.Iterable.consume(y.Iterable.from(r.children),2),!(h.length!==1||h[0].incompressible);)r=h[0],a.push(r.element);return{element:{elements:a,incompressible:d},children:y.Iterable.map(y.Iterable.concat(h,m),_),collapsible:r.collapsible,collapsed:r.collapsed}}function v(r,a=0){let d;return a<r.element.elements.length-1?d=[v(r,a+1)]:d=y.Iterable.map(y.Iterable.from(r.children),m=>v(m,0)),a===0&&r.element.incompressible?{element:r.element.elements[a],children:d,incompressible:!0,collapsible:r.collapsible,collapsed:r.collapsed}:{element:r.element.elements[a],children:d,collapsible:r.collapsible,collapsed:r.collapsed}}function p(r){return v(r,0)}function n(r,a,d){return r.element===a?{...r,children:d}:{...r,children:y.Iterable.map(y.Iterable.from(r.children),m=>n(m,a,d))}}const s=r=>({getId(a){return a.elements.map(d=>r.getId(d).toString()).join("\0")}});class t{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(a,d,m={}){this.user=a,this.rootRef=null,this.nodes=new Map,this.model=new c.ObjectTreeModel(a,d,m),this.enabled=typeof m.compressionEnabled>"u"?!0:m.compressionEnabled,this.identityProvider=m.identityProvider}setChildren(a,d=y.Iterable.empty(),m){const h=m.diffIdentityProvider&&s(m.diffIdentityProvider);if(a===null){const R=y.Iterable.map(d,this.enabled?_:f);this._setChildren(null,R,{diffIdentityProvider:h,diffDepth:1/0});return}const C=this.nodes.get(a);if(!C)throw new k.TreeError(this.user,"Unknown compressed tree node");const b=this.model.getNode(C),w=this.model.getParentNodeLocation(C),S=this.model.getNode(w),D=p(b),I=n(D,a,d),T=(this.enabled?_:f)(I),M=m.diffIdentityProvider?(R,N)=>m.diffIdentityProvider.getId(R)===m.diffIdentityProvider.getId(N):void 0;if((0,E.equals)(T.element.elements,b.element.elements,M)){this._setChildren(C,T.children||y.Iterable.empty(),{diffIdentityProvider:h,diffDepth:1});return}const A=S.children.map(R=>R===b?T:R);this._setChildren(S.element,A,{diffIdentityProvider:h,diffDepth:b.depth-S.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(a){if(a===this.enabled)return;this.enabled=a;const m=this.model.getNode().children,h=y.Iterable.map(m,p),C=y.Iterable.map(h,a?_:f);this._setChildren(null,C,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(a,d,m){const h=new Set,C=w=>{for(const S of w.element.elements)h.add(S),this.nodes.set(S,w.element)},b=w=>{for(const S of w.element.elements)h.has(S)||this.nodes.delete(S)};this.model.setChildren(a,d,{...m,onDidCreateNode:C,onDidDeleteNode:b})}has(a){return this.nodes.has(a)}getListIndex(a){const d=this.getCompressedNode(a);return this.model.getListIndex(d)}getListRenderCount(a){const d=this.getCompressedNode(a);return this.model.getListRenderCount(d)}getNode(a){if(typeof a>"u")return this.model.getNode();const d=this.getCompressedNode(a);return this.model.getNode(d)}getNodeLocation(a){const d=this.model.getNodeLocation(a);return d===null?null:d.elements[d.elements.length-1]}getParentNodeLocation(a){const d=this.getCompressedNode(a),m=this.model.getParentNodeLocation(d);return m===null?null:m.elements[m.elements.length-1]}getFirstElementChild(a){const d=this.getCompressedNode(a);return this.model.getFirstElementChild(d)}isCollapsible(a){const d=this.getCompressedNode(a);return this.model.isCollapsible(d)}setCollapsible(a,d){const m=this.getCompressedNode(a);return this.model.setCollapsible(m,d)}isCollapsed(a){const d=this.getCompressedNode(a);return this.model.isCollapsed(d)}setCollapsed(a,d,m){const h=this.getCompressedNode(a);return this.model.setCollapsed(h,d,m)}expandTo(a){const d=this.getCompressedNode(a);this.model.expandTo(d)}rerender(a){const d=this.getCompressedNode(a);this.model.rerender(d)}refilter(){this.model.refilter()}getCompressedNode(a){if(a===null)return null;const d=this.nodes.get(a);if(!d)throw new k.TreeError(this.user,`Tree element not found: ${a}`);return d}}e.CompressedObjectTreeModel=t;const i=r=>r[r.length-1];e.DefaultElementMapper=i;class o{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(a=>new o(this.unwrapper,a))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(a,d){this.unwrapper=a,this.node=d}}function g(r,a){return{splice(d,m,h){a.splice(d,m,h.map(C=>r.map(C)))},updateElementHeight(d,m){a.updateElementHeight(d,m)}}}function u(r,a){return{...a,identityProvider:a.identityProvider&&{getId(d){return a.identityProvider.getId(r(d))}},sorter:a.sorter&&{compare(d,m){return a.sorter.compare(d.elements[0],m.elements[0])}},filter:a.filter&&{filter(d,m){return a.filter.filter(r(d),m)}}}}class l{get onDidSplice(){return L.Event.map(this.model.onDidSplice,({insertedNodes:a,deletedNodes:d})=>({insertedNodes:a.map(m=>this.nodeMapper.map(m)),deletedNodes:d.map(m=>this.nodeMapper.map(m))}))}get onDidChangeCollapseState(){return L.Event.map(this.model.onDidChangeCollapseState,({node:a,deep:d})=>({node:this.nodeMapper.map(a),deep:d}))}get onDidChangeRenderNodeCount(){return L.Event.map(this.model.onDidChangeRenderNodeCount,a=>this.nodeMapper.map(a))}constructor(a,d,m={}){this.rootRef=null,this.elementMapper=m.elementMapper||e.DefaultElementMapper;const h=C=>this.elementMapper(C.elements);this.nodeMapper=new k.WeakMapper(C=>new o(h,C)),this.model=new t(a,g(this.nodeMapper,d),u(h,m))}setChildren(a,d=y.Iterable.empty(),m={}){this.model.setChildren(a,d,m)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(a){this.model.setCompressionEnabled(a)}has(a){return this.model.has(a)}getListIndex(a){return this.model.getListIndex(a)}getListRenderCount(a){return this.model.getListRenderCount(a)}getNode(a){return this.nodeMapper.map(this.model.getNode(a))}getNodeLocation(a){return a.element}getParentNodeLocation(a){return this.model.getParentNodeLocation(a)}getFirstElementChild(a){const d=this.model.getFirstElementChild(a);return d===null||typeof d>"u"?d:this.elementMapper(d.elements)}isCollapsible(a){return this.model.isCollapsible(a)}setCollapsible(a,d){return this.model.setCollapsible(a,d)}isCollapsed(a){return this.model.isCollapsed(a)}setCollapsed(a,d,m){return this.model.setCollapsed(a,d,m)}expandTo(a){return this.model.expandTo(a)}rerender(a){return this.model.rerender(a)}refilter(){return this.model.refilter()}getCompressedTreeNode(a=null){return this.model.getNode(a)}}e.CompressibleObjectTreeModel=l}),define(oe[346],re([1,0,16]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.env=e.cwd=void 0;let k;const E=globalThis.vscode;if(typeof E<"u"&&typeof E.process<"u"){const L=E.process;k={get platform(){return L.platform},get arch(){return L.arch},get env(){return L.env},cwd(){return L.cwd()}}}else typeof process<"u"?k={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:k={get platform(){return c.isWindows?"win32":c.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=k.cwd,e.env=k.env,e.platform=k.platform}),define(oe[347],re([1,0,346]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isHotReloadEnabled=k,e.registerHotReloadHandler=E;function k(){return c.env&&!!c.env.VSCODE_DEV}function E(f){if(k()){const _=L();return _.add(f),{dispose(){_.delete(f)}}}else return{dispose(){}}}function L(){y||(y=new Set);const f=globalThis;return f.$hotReload_applyNewExports||(f.$hotReload_applyNewExports=_=>{const v={config:{mode:void 0},..._},p=[];for(const n of y){const s=n(v);s&&p.push(s)}if(p.length>0)return n=>{let s=!1;for(const t of p)t(n)&&(s=!0);return s}}),y}let y;k()&&E(({oldExports:f,newSrc:_,config:v})=>{if(v.mode==="patch-prototype")return p=>{for(const n in p){const s=p[n];if(console.log(`[hot-reload] Patching prototype methods of '${n}'`,{exportedItem:s}),typeof s=="function"&&s.prototype){const t=f[n];if(t){for(const i of Object.getOwnPropertyNames(s.prototype)){const o=Object.getOwnPropertyDescriptor(s.prototype,i),g=Object.getOwnPropertyDescriptor(t.prototype,i);o?.value?.toString()!==g?.value?.toString()&&console.log(`[hot-reload] Patching prototype method '${n}.${i}'`),Object.defineProperty(t.prototype,i,o)}p[n]=t}}}return!0}})}),define(oe[170],re([1,0,347,21]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readHotReloadableExport=E,e.observeHotReloadableExports=L;function E(y,f){return L([y],f),y}function L(y,f){(0,c.isHotReloadEnabled)()&&(0,k.observableSignalFromEvent)("reload",v=>(0,c.registerHotReloadHandler)(({oldExports:p})=>{if([...Object.values(p)].some(n=>y.includes(n)))return n=>(v(void 0),!0)})).read(f)}}),define(oe[99],re([1,0,346]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sep=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.normalize=e.posix=e.win32=void 0;const k=65,E=97,L=90,y=122,f=46,_=47,v=92,p=58,n=63;class s extends Error{constructor(C,b,w){let S;typeof b=="string"&&b.indexOf("not ")===0?(S="must not be",b=b.replace(/^not /,"")):S="must be";const D=C.indexOf(".")!==-1?"property":"argument";let I=`The "${C}" ${D} ${S} of type ${b}`;I+=`. Received type ${typeof w}`,super(I),this.code="ERR_INVALID_ARG_TYPE"}}function t(h,C){if(h===null||typeof h!="object")throw new s(C,"Object",h)}function i(h,C){if(typeof h!="string")throw new s(C,"string",h)}const o=c.platform==="win32";function g(h){return h===_||h===v}function u(h){return h===_}function l(h){return h>=k&&h<=L||h>=E&&h<=y}function r(h,C,b,w){let S="",D=0,I=-1,T=0,M=0;for(let A=0;A<=h.length;++A){if(A<h.length)M=h.charCodeAt(A);else{if(w(M))break;M=_}if(w(M)){if(!(I===A-1||T===1))if(T===2){if(S.length<2||D!==2||S.charCodeAt(S.length-1)!==f||S.charCodeAt(S.length-2)!==f){if(S.length>2){const R=S.lastIndexOf(b);R===-1?(S="",D=0):(S=S.slice(0,R),D=S.length-1-S.lastIndexOf(b)),I=A,T=0;continue}else if(S.length!==0){S="",D=0,I=A,T=0;continue}}C&&(S+=S.length>0?`${b}..`:"..",D=2)}else S.length>0?S+=`${b}${h.slice(I+1,A)}`:S=h.slice(I+1,A),D=A-I-1;I=A,T=0}else M===f&&T!==-1?++T:T=-1}return S}function a(h){return h?`${h[0]==="."?"":"."}${h}`:""}function d(h,C){t(C,"pathObject");const b=C.dir||C.root,w=C.base||`${C.name||""}${a(C.ext)}`;return b?b===C.root?`${b}${w}`:`${b}${h}${w}`:w}e.win32={resolve(...h){let C="",b="",w=!1;for(let S=h.length-1;S>=-1;S--){let D;if(S>=0){if(D=h[S],i(D,`paths[${S}]`),D.length===0)continue}else C.length===0?D=c.cwd():(D=c.env[`=${C}`]||c.cwd(),(D===void 0||D.slice(0,2).toLowerCase()!==C.toLowerCase()&&D.charCodeAt(2)===v)&&(D=`${C}\\`));const I=D.length;let T=0,M="",A=!1;const R=D.charCodeAt(0);if(I===1)g(R)&&(T=1,A=!0);else if(g(R))if(A=!0,g(D.charCodeAt(1))){let N=2,O=N;for(;N<I&&!g(D.charCodeAt(N));)N++;if(N<I&&N!==O){const x=D.slice(O,N);for(O=N;N<I&&g(D.charCodeAt(N));)N++;if(N<I&&N!==O){for(O=N;N<I&&!g(D.charCodeAt(N));)N++;(N===I||N!==O)&&(M=`\\\\${x}\\${D.slice(O,N)}`,T=N)}}}else T=1;else l(R)&&D.charCodeAt(1)===p&&(M=D.slice(0,2),T=2,I>2&&g(D.charCodeAt(2))&&(A=!0,T=3));if(M.length>0)if(C.length>0){if(M.toLowerCase()!==C.toLowerCase())continue}else C=M;if(w){if(C.length>0)break}else if(b=`${D.slice(T)}\\${b}`,w=A,A&&C.length>0)break}return b=r(b,!w,"\\",g),w?`${C}\\${b}`:`${C}${b}`||"."},normalize(h){i(h,"path");const C=h.length;if(C===0)return".";let b=0,w,S=!1;const D=h.charCodeAt(0);if(C===1)return u(D)?"\\":h;if(g(D))if(S=!0,g(h.charCodeAt(1))){let T=2,M=T;for(;T<C&&!g(h.charCodeAt(T));)T++;if(T<C&&T!==M){const A=h.slice(M,T);for(M=T;T<C&&g(h.charCodeAt(T));)T++;if(T<C&&T!==M){for(M=T;T<C&&!g(h.charCodeAt(T));)T++;if(T===C)return`\\\\${A}\\${h.slice(M)}\\`;T!==M&&(w=`\\\\${A}\\${h.slice(M,T)}`,b=T)}}}else b=1;else l(D)&&h.charCodeAt(1)===p&&(w=h.slice(0,2),b=2,C>2&&g(h.charCodeAt(2))&&(S=!0,b=3));let I=b<C?r(h.slice(b),!S,"\\",g):"";return I.length===0&&!S&&(I="."),I.length>0&&g(h.charCodeAt(C-1))&&(I+="\\"),w===void 0?S?`\\${I}`:I:S?`${w}\\${I}`:`${w}${I}`},isAbsolute(h){i(h,"path");const C=h.length;if(C===0)return!1;const b=h.charCodeAt(0);return g(b)||C>2&&l(b)&&h.charCodeAt(1)===p&&g(h.charCodeAt(2))},join(...h){if(h.length===0)return".";let C,b;for(let D=0;D<h.length;++D){const I=h[D];i(I,"path"),I.length>0&&(C===void 0?C=b=I:C+=`\\${I}`)}if(C===void 0)return".";let w=!0,S=0;if(typeof b=="string"&&g(b.charCodeAt(0))){++S;const D=b.length;D>1&&g(b.charCodeAt(1))&&(++S,D>2&&(g(b.charCodeAt(2))?++S:w=!1))}if(w){for(;S<C.length&&g(C.charCodeAt(S));)S++;S>=2&&(C=`\\${C.slice(S)}`)}return e.win32.normalize(C)},relative(h,C){if(i(h,"from"),i(C,"to"),h===C)return"";const b=e.win32.resolve(h),w=e.win32.resolve(C);if(b===w||(h=b.toLowerCase(),C=w.toLowerCase(),h===C))return"";let S=0;for(;S<h.length&&h.charCodeAt(S)===v;)S++;let D=h.length;for(;D-1>S&&h.charCodeAt(D-1)===v;)D--;const I=D-S;let T=0;for(;T<C.length&&C.charCodeAt(T)===v;)T++;let M=C.length;for(;M-1>T&&C.charCodeAt(M-1)===v;)M--;const A=M-T,R=I<A?I:A;let N=-1,O=0;for(;O<R;O++){const F=h.charCodeAt(S+O);if(F!==C.charCodeAt(T+O))break;F===v&&(N=O)}if(O!==R){if(N===-1)return w}else{if(A>R){if(C.charCodeAt(T+O)===v)return w.slice(T+O+1);if(O===2)return w.slice(T+O)}I>R&&(h.charCodeAt(S+O)===v?N=O:O===2&&(N=3)),N===-1&&(N=0)}let x="";for(O=S+N+1;O<=D;++O)(O===D||h.charCodeAt(O)===v)&&(x+=x.length===0?"..":"\\..");return T+=N,x.length>0?`${x}${w.slice(T,M)}`:(w.charCodeAt(T)===v&&++T,w.slice(T,M))},toNamespacedPath(h){if(typeof h!="string"||h.length===0)return h;const C=e.win32.resolve(h);if(C.length<=2)return h;if(C.charCodeAt(0)===v){if(C.charCodeAt(1)===v){const b=C.charCodeAt(2);if(b!==n&&b!==f)return`\\\\?\\UNC\\${C.slice(2)}`}}else if(l(C.charCodeAt(0))&&C.charCodeAt(1)===p&&C.charCodeAt(2)===v)return`\\\\?\\${C}`;return h},dirname(h){i(h,"path");const C=h.length;if(C===0)return".";let b=-1,w=0;const S=h.charCodeAt(0);if(C===1)return g(S)?h:".";if(g(S)){if(b=w=1,g(h.charCodeAt(1))){let T=2,M=T;for(;T<C&&!g(h.charCodeAt(T));)T++;if(T<C&&T!==M){for(M=T;T<C&&g(h.charCodeAt(T));)T++;if(T<C&&T!==M){for(M=T;T<C&&!g(h.charCodeAt(T));)T++;if(T===C)return h;T!==M&&(b=w=T+1)}}}}else l(S)&&h.charCodeAt(1)===p&&(b=C>2&&g(h.charCodeAt(2))?3:2,w=b);let D=-1,I=!0;for(let T=C-1;T>=w;--T)if(g(h.charCodeAt(T))){if(!I){D=T;break}}else I=!1;if(D===-1){if(b===-1)return".";D=b}return h.slice(0,D)},basename(h,C){C!==void 0&&i(C,"suffix"),i(h,"path");let b=0,w=-1,S=!0,D;if(h.length>=2&&l(h.charCodeAt(0))&&h.charCodeAt(1)===p&&(b=2),C!==void 0&&C.length>0&&C.length<=h.length){if(C===h)return"";let I=C.length-1,T=-1;for(D=h.length-1;D>=b;--D){const M=h.charCodeAt(D);if(g(M)){if(!S){b=D+1;break}}else T===-1&&(S=!1,T=D+1),I>=0&&(M===C.charCodeAt(I)?--I===-1&&(w=D):(I=-1,w=T))}return b===w?w=T:w===-1&&(w=h.length),h.slice(b,w)}for(D=h.length-1;D>=b;--D)if(g(h.charCodeAt(D))){if(!S){b=D+1;break}}else w===-1&&(S=!1,w=D+1);return w===-1?"":h.slice(b,w)},extname(h){i(h,"path");let C=0,b=-1,w=0,S=-1,D=!0,I=0;h.length>=2&&h.charCodeAt(1)===p&&l(h.charCodeAt(0))&&(C=w=2);for(let T=h.length-1;T>=C;--T){const M=h.charCodeAt(T);if(g(M)){if(!D){w=T+1;break}continue}S===-1&&(D=!1,S=T+1),M===f?b===-1?b=T:I!==1&&(I=1):b!==-1&&(I=-1)}return b===-1||S===-1||I===0||I===1&&b===S-1&&b===w+1?"":h.slice(b,S)},format:d.bind(null,"\\"),parse(h){i(h,"path");const C={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return C;const b=h.length;let w=0,S=h.charCodeAt(0);if(b===1)return g(S)?(C.root=C.dir=h,C):(C.base=C.name=h,C);if(g(S)){if(w=1,g(h.charCodeAt(1))){let N=2,O=N;for(;N<b&&!g(h.charCodeAt(N));)N++;if(N<b&&N!==O){for(O=N;N<b&&g(h.charCodeAt(N));)N++;if(N<b&&N!==O){for(O=N;N<b&&!g(h.charCodeAt(N));)N++;N===b?w=N:N!==O&&(w=N+1)}}}}else if(l(S)&&h.charCodeAt(1)===p){if(b<=2)return C.root=C.dir=h,C;if(w=2,g(h.charCodeAt(2))){if(b===3)return C.root=C.dir=h,C;w=3}}w>0&&(C.root=h.slice(0,w));let D=-1,I=w,T=-1,M=!0,A=h.length-1,R=0;for(;A>=w;--A){if(S=h.charCodeAt(A),g(S)){if(!M){I=A+1;break}continue}T===-1&&(M=!1,T=A+1),S===f?D===-1?D=A:R!==1&&(R=1):D!==-1&&(R=-1)}return T!==-1&&(D===-1||R===0||R===1&&D===T-1&&D===I+1?C.base=C.name=h.slice(I,T):(C.name=h.slice(I,D),C.base=h.slice(I,T),C.ext=h.slice(D,T))),I>0&&I!==w?C.dir=h.slice(0,I-1):C.dir=C.root,C},sep:"\\",delimiter:";",win32:null,posix:null};const m=(()=>{if(o){const h=/\\/g;return()=>{const C=c.cwd().replace(h,"/");return C.slice(C.indexOf("/"))}}return()=>c.cwd()})();e.posix={resolve(...h){let C="",b=!1;for(let w=h.length-1;w>=-1&&!b;w--){const S=w>=0?h[w]:m();i(S,`paths[${w}]`),S.length!==0&&(C=`${S}/${C}`,b=S.charCodeAt(0)===_)}return C=r(C,!b,"/",u),b?`/${C}`:C.length>0?C:"."},normalize(h){if(i(h,"path"),h.length===0)return".";const C=h.charCodeAt(0)===_,b=h.charCodeAt(h.length-1)===_;return h=r(h,!C,"/",u),h.length===0?C?"/":b?"./":".":(b&&(h+="/"),C?`/${h}`:h)},isAbsolute(h){return i(h,"path"),h.length>0&&h.charCodeAt(0)===_},join(...h){if(h.length===0)return".";let C;for(let b=0;b<h.length;++b){const w=h[b];i(w,"path"),w.length>0&&(C===void 0?C=w:C+=`/${w}`)}return C===void 0?".":e.posix.normalize(C)},relative(h,C){if(i(h,"from"),i(C,"to"),h===C||(h=e.posix.resolve(h),C=e.posix.resolve(C),h===C))return"";const b=1,w=h.length,S=w-b,D=1,I=C.length-D,T=S<I?S:I;let M=-1,A=0;for(;A<T;A++){const N=h.charCodeAt(b+A);if(N!==C.charCodeAt(D+A))break;N===_&&(M=A)}if(A===T)if(I>T){if(C.charCodeAt(D+A)===_)return C.slice(D+A+1);if(A===0)return C.slice(D+A)}else S>T&&(h.charCodeAt(b+A)===_?M=A:A===0&&(M=0));let R="";for(A=b+M+1;A<=w;++A)(A===w||h.charCodeAt(A)===_)&&(R+=R.length===0?"..":"/..");return`${R}${C.slice(D+M)}`},toNamespacedPath(h){return h},dirname(h){if(i(h,"path"),h.length===0)return".";const C=h.charCodeAt(0)===_;let b=-1,w=!0;for(let S=h.length-1;S>=1;--S)if(h.charCodeAt(S)===_){if(!w){b=S;break}}else w=!1;return b===-1?C?"/":".":C&&b===1?"//":h.slice(0,b)},basename(h,C){C!==void 0&&i(C,"ext"),i(h,"path");let b=0,w=-1,S=!0,D;if(C!==void 0&&C.length>0&&C.length<=h.length){if(C===h)return"";let I=C.length-1,T=-1;for(D=h.length-1;D>=0;--D){const M=h.charCodeAt(D);if(M===_){if(!S){b=D+1;break}}else T===-1&&(S=!1,T=D+1),I>=0&&(M===C.charCodeAt(I)?--I===-1&&(w=D):(I=-1,w=T))}return b===w?w=T:w===-1&&(w=h.length),h.slice(b,w)}for(D=h.length-1;D>=0;--D)if(h.charCodeAt(D)===_){if(!S){b=D+1;break}}else w===-1&&(S=!1,w=D+1);return w===-1?"":h.slice(b,w)},extname(h){i(h,"path");let C=-1,b=0,w=-1,S=!0,D=0;for(let I=h.length-1;I>=0;--I){const T=h.charCodeAt(I);if(T===_){if(!S){b=I+1;break}continue}w===-1&&(S=!1,w=I+1),T===f?C===-1?C=I:D!==1&&(D=1):C!==-1&&(D=-1)}return C===-1||w===-1||D===0||D===1&&C===w-1&&C===b+1?"":h.slice(C,w)},format:d.bind(null,"/"),parse(h){i(h,"path");const C={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return C;const b=h.charCodeAt(0)===_;let w;b?(C.root="/",w=1):w=0;let S=-1,D=0,I=-1,T=!0,M=h.length-1,A=0;for(;M>=w;--M){const R=h.charCodeAt(M);if(R===_){if(!T){D=M+1;break}continue}I===-1&&(T=!1,I=M+1),R===f?S===-1?S=M:A!==1&&(A=1):S!==-1&&(A=-1)}if(I!==-1){const R=D===0&&b?1:D;S===-1||A===0||A===1&&S===I-1&&S===D+1?C.base=C.name=h.slice(R,I):(C.name=h.slice(R,S),C.base=h.slice(R,I),C.ext=h.slice(S,I))}return D>0?C.dir=h.slice(0,D-1):b&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=o?e.win32.normalize:e.posix.normalize,e.resolve=o?e.win32.resolve:e.posix.resolve,e.relative=o?e.win32.relative:e.posix.relative,e.dirname=o?e.win32.dirname:e.posix.dirname,e.basename=o?e.win32.basename:e.posix.basename,e.extname=o?e.win32.extname:e.posix.extname,e.sep=o?e.win32.sep:e.posix.sep}),define(oe[250],re([1,0,99,16,11]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPathSeparator=L,e.toSlashes=y,e.toPosixPath=f,e.getRoot=_,e.isEqualOrParent=v,e.isWindowsDriveLetter=p,e.hasDriveLetter=n;function L(s){return s===47||s===92}function y(s){return s.replace(/[\\/]/g,c.posix.sep)}function f(s){return s.indexOf("/")===-1&&(s=y(s)),/^[a-zA-Z]:(\/|$)/.test(s)&&(s="/"+s),s}function _(s,t=c.posix.sep){if(!s)return"";const i=s.length,o=s.charCodeAt(0);if(L(o)){if(L(s.charCodeAt(1))&&!L(s.charCodeAt(2))){let u=3;const l=u;for(;u<i&&!L(s.charCodeAt(u));u++);if(l!==u&&!L(s.charCodeAt(u+1))){for(u+=1;u<i;u++)if(L(s.charCodeAt(u)))return s.slice(0,u+1).replace(/[\\/]/g,t)}}return t}else if(p(o)&&s.charCodeAt(1)===58)return L(s.charCodeAt(2))?s.slice(0,2)+t:s.slice(0,2);let g=s.indexOf("://");if(g!==-1){for(g+=3;g<i;g++)if(L(s.charCodeAt(g)))return s.slice(0,g+1)}return""}function v(s,t,i,o=c.sep){if(s===t)return!0;if(!s||!t||t.length>s.length)return!1;if(i){if(!(0,E.startsWithIgnoreCase)(s,t))return!1;if(t.length===s.length)return!0;let u=t.length;return t.charAt(t.length-1)===o&&u--,s.charAt(u)===o}return t.charAt(t.length-1)!==o&&(t+=o),s.indexOf(t)===0}function p(s){return s>=65&&s<=90||s>=97&&s<=122}function n(s,t=k.isWindows){return t?p(s.charCodeAt(0))&&s.charCodeAt(1)===58:!1}}),define(oe[623],re([1,0,82,99,16,11]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scoreFuzzy2=f,e.prepareQuery=o,e.pieceToQuery=u;const y=[void 0,[]];function f(l,r,a=0,d=0){const m=r;return m.values&&m.values.length>1?_(l,m.values,a,d):v(l,r,a,d)}function _(l,r,a,d){let m=0;const h=[];for(const C of r){const[b,w]=v(l,C,a,d);if(typeof b!="number")return y;m+=b,h.push(...w)}return[m,n(h)]}function v(l,r,a,d){const m=(0,c.fuzzyScore)(r.original,r.originalLowercase,a,l,l.toLowerCase(),d,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return m?[m[0],(0,c.createMatches)(m)]:y}const p=Object.freeze({score:0});function n(l){const r=l.sort((m,h)=>m.start-h.start),a=[];let d;for(const m of r)!d||!s(d,m)?(d=m,a.push(m)):(d.start=Math.min(d.start,m.start),d.end=Math.max(d.end,m.end));return a}function s(l,r){return!(l.end<r.start||r.end<l.start)}function t(l){return l.startsWith('"')&&l.endsWith('"')}const i=" ";function o(l){typeof l!="string"&&(l="");const r=l.toLowerCase(),{pathNormalized:a,normalized:d,normalizedLowercase:m}=g(l),h=a.indexOf(k.sep)>=0,C=t(l);let b;const w=l.split(i);if(w.length>1)for(const S of w){const D=t(S),{pathNormalized:I,normalized:T,normalizedLowercase:M}=g(S);T&&(b||(b=[]),b.push({original:S,originalLowercase:S.toLowerCase(),pathNormalized:I,normalized:T,normalizedLowercase:M,expectContiguousMatch:D}))}return{original:l,originalLowercase:r,pathNormalized:a,normalized:d,normalizedLowercase:m,values:b,containsPathSeparator:h,expectContiguousMatch:C}}function g(l){let r;E.isWindows?r=l.replace(/\//g,k.sep):r=l.replace(/\\/g,k.sep);const a=(0,L.stripWildcards)(r).replace(/\s|"/g,"");return{pathNormalized:r,normalized:a,normalizedLowercase:a.toLowerCase()}}function u(l){return Array.isArray(l)?o(l.map(r=>r.original).join(i)):o(l.original)}}),define(oe[348],re([1,0,14,250,45,99,16,11]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GLOB_SPLIT=e.GLOBSTAR=void 0,e.splitGlobAware=s,e.match=M,e.parse=A,e.isRelativePattern=R,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const _="[/\\\\]",v="[^/\\\\]",p=/\//g;function n(F,W){switch(F){case 0:return"";case 1:return`${v}*?`;default:return`(?:${_}|${v}+${_}${W?`|${_}${v}+`:""})*?`}}function s(F,W){if(!F)return[];const z=[];let q=!1,H=!1,K="";for(const U of F){switch(U){case W:if(!q&&!H){z.push(K),K="";continue}break;case"{":q=!0;break;case"}":q=!1;break;case"[":H=!0;break;case"]":H=!1;break}K+=U}return K&&z.push(K),z}function t(F){if(!F)return"";let W="";const z=s(F,e.GLOB_SPLIT);if(z.every(q=>q===e.GLOBSTAR))W=".*";else{let q=!1;z.forEach((H,K)=>{if(H===e.GLOBSTAR){if(q)return;W+=n(2,K===z.length-1)}else{let U=!1,Y="",Q=!1,X="";for(const G of H){if(G!=="}"&&U){Y+=G;continue}if(Q&&(G!=="]"||!X)){let P;G==="-"?P=G:(G==="^"||G==="!")&&!X?P="^":G===e.GLOB_SPLIT?P="":P=(0,f.escapeRegExpCharacters)(G),X+=P;continue}switch(G){case"{":U=!0;continue;case"[":Q=!0;continue;case"}":{const te=`(?:${s(Y,",").map(se=>t(se)).join("|")})`;W+=te,U=!1,Y="";break}case"]":{W+="["+X+"]",Q=!1,X="";break}case"?":W+=v;continue;case"*":W+=n(1);continue;default:W+=(0,f.escapeRegExpCharacters)(G)}}K<z.length-1&&(z[K+1]!==e.GLOBSTAR||K+2<z.length)&&(W+=_)}q=H===e.GLOBSTAR})}return W}const i=/^\*\*\/\*\.[\w\.-]+$/,o=/^\*\*\/([\w\.-]+)\/?$/,g=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,u=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,l=/^\*\*((\/[\w\.-]+)+)\/?$/,r=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,a=new E.LRUCache(1e4),d=function(){return!1},m=function(){return null};function h(F,W){if(!F)return m;let z;typeof F!="string"?z=F.pattern:z=F,z=z.trim();const q=`${z}_${!!W.trimForExclusions}`;let H=a.get(q);if(H)return C(H,F);let K;return i.test(z)?H=w(z.substr(4),z):(K=o.exec(b(z,W)))?H=S(K[1],z):(W.trimForExclusions?u:g).test(z)?H=D(z,W):(K=l.exec(b(z,W)))?H=I(K[1].substr(1),z,!0):(K=r.exec(b(z,W)))?H=I(K[1],z,!1):H=T(z),a.set(q,H),C(H,F)}function C(F,W){if(typeof W=="string")return F;const z=function(q,H){return(0,k.isEqualOrParent)(q,W.base,!y.isLinux)?F((0,f.ltrim)(q.substr(W.base.length),L.sep),H):null};return z.allBasenames=F.allBasenames,z.allPaths=F.allPaths,z.basenames=F.basenames,z.patterns=F.patterns,z}function b(F,W){return W.trimForExclusions&&F.endsWith("/**")?F.substr(0,F.length-2):F}function w(F,W){return function(z,q){return typeof z=="string"&&z.endsWith(F)?W:null}}function S(F,W){const z=`/${F}`,q=`\\${F}`,H=function(U,Y){return typeof U!="string"?null:Y?Y===F?W:null:U===F||U.endsWith(z)||U.endsWith(q)?W:null},K=[F];return H.basenames=K,H.patterns=[W],H.allBasenames=K,H}function D(F,W){const z=x(F.slice(1,-1).split(",").map(Y=>h(Y,W)).filter(Y=>Y!==m),F),q=z.length;if(!q)return m;if(q===1)return z[0];const H=function(Y,Q){for(let X=0,G=z.length;X<G;X++)if(z[X](Y,Q))return F;return null},K=z.find(Y=>!!Y.allBasenames);K&&(H.allBasenames=K.allBasenames);const U=z.reduce((Y,Q)=>Q.allPaths?Y.concat(Q.allPaths):Y,[]);return U.length&&(H.allPaths=U),H}function I(F,W,z){const q=L.sep===L.posix.sep,H=q?F:F.replace(p,L.sep),K=L.sep+H,U=L.posix.sep+F;let Y;return z?Y=function(Q,X){return typeof Q=="string"&&(Q===H||Q.endsWith(K)||!q&&(Q===F||Q.endsWith(U)))?W:null}:Y=function(Q,X){return typeof Q=="string"&&(Q===H||!q&&Q===F)?W:null},Y.allPaths=[(z?"*/":"./")+F],Y}function T(F){try{const W=new RegExp(`^${t(F)}$`);return function(z){return W.lastIndex=0,typeof z=="string"&&W.test(z)?F:null}}catch{return m}}function M(F,W,z){return!F||typeof W!="string"?!1:A(F)(W,void 0,z)}function A(F,W={}){if(!F)return d;if(typeof F=="string"||R(F)){const z=h(F,W);if(z===m)return d;const q=function(H,K){return!!z(H,K)};return z.allBasenames&&(q.allBasenames=z.allBasenames),z.allPaths&&(q.allPaths=z.allPaths),q}return N(F,W)}function R(F){const W=F;return W?typeof W.base=="string"&&typeof W.pattern=="string":!1}function N(F,W){const z=x(Object.getOwnPropertyNames(F).map(Y=>O(Y,F[Y],W)).filter(Y=>Y!==m)),q=z.length;if(!q)return m;if(!z.some(Y=>!!Y.requiresSiblings)){if(q===1)return z[0];const Y=function(G,P){let te;for(let se=0,ue=z.length;se<ue;se++){const ge=z[se](G,P);if(typeof ge=="string")return ge;(0,c.isThenable)(ge)&&(te||(te=[]),te.push(ge))}return te?(async()=>{for(const se of te){const ue=await se;if(typeof ue=="string")return ue}return null})():null},Q=z.find(G=>!!G.allBasenames);Q&&(Y.allBasenames=Q.allBasenames);const X=z.reduce((G,P)=>P.allPaths?G.concat(P.allPaths):G,[]);return X.length&&(Y.allPaths=X),Y}const H=function(Y,Q,X){let G,P;for(let te=0,se=z.length;te<se;te++){const ue=z[te];ue.requiresSiblings&&X&&(Q||(Q=(0,L.basename)(Y)),G||(G=Q.substr(0,Q.length-(0,L.extname)(Y).length)));const ge=ue(Y,Q,G,X);if(typeof ge=="string")return ge;(0,c.isThenable)(ge)&&(P||(P=[]),P.push(ge))}return P?(async()=>{for(const te of P){const se=await te;if(typeof se=="string")return se}return null})():null},K=z.find(Y=>!!Y.allBasenames);K&&(H.allBasenames=K.allBasenames);const U=z.reduce((Y,Q)=>Q.allPaths?Y.concat(Q.allPaths):Y,[]);return U.length&&(H.allPaths=U),H}function O(F,W,z){if(W===!1)return m;const q=h(F,z);if(q===m)return m;if(typeof W=="boolean")return q;if(W){const H=W.when;if(typeof H=="string"){const K=(U,Y,Q,X)=>{if(!X||!q(U,Y))return null;const G=H.replace("$(basename)",()=>Q),P=X(G);return(0,c.isThenable)(P)?P.then(te=>te?F:null):P?F:null};return K.requiresSiblings=!0,K}}return q}function x(F,W){const z=F.filter(Y=>!!Y.basenames);if(z.length<2)return F;const q=z.reduce((Y,Q)=>{const X=Q.basenames;return X?Y.concat(X):Y},[]);let H;if(W){H=[];for(let Y=0,Q=q.length;Y<Q;Y++)H.push(W)}else H=z.reduce((Y,Q)=>{const X=Q.patterns;return X?Y.concat(X):Y},[]);const K=function(Y,Q){if(typeof Y!="string")return null;if(!Q){let G;for(G=Y.length;G>0;G--){const P=Y.charCodeAt(G-1);if(P===47||P===92)break}Q=Y.substr(G)}const X=q.indexOf(Q);return X!==-1?H[X]:null};K.basenames=q,K.patterns=H,K.allBasenames=q;const U=F.filter(Y=>!Y.basenames);return U.push(K),U}}),define(oe[624],re([1,0,250,16]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeDriveLetter=E;function E(y,f=k.isWindows){return(0,c.hasDriveLetter)(y,f)?y.charAt(0).toUpperCase()+y.slice(1):y}let L=Object.create(null)}),define(oe[22],re([1,0,99,16]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URI=void 0,e.uriToFsPath=r;const E=/^\w[\w\d+.-]*$/,L=/^\//,y=/^\/\//;function f(C,b){if(!C.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${C.authority}", path: "${C.path}", query: "${C.query}", fragment: "${C.fragment}"}`);if(C.scheme&&!E.test(C.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(C.path){if(C.authority){if(!L.test(C.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(y.test(C.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function _(C,b){return!C&&!b?"file":C}function v(C,b){switch(C){case"https":case"http":case"file":b?b[0]!==n&&(b=n+b):b=n;break}return b}const p="",n="/",s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class t{static isUri(b){return b instanceof t?!0:b?typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function":!1}constructor(b,w,S,D,I,T=!1){typeof b=="object"?(this.scheme=b.scheme||p,this.authority=b.authority||p,this.path=b.path||p,this.query=b.query||p,this.fragment=b.fragment||p):(this.scheme=_(b,T),this.authority=w||p,this.path=v(this.scheme,S||p),this.query=D||p,this.fragment=I||p,f(this,T))}get fsPath(){return r(this,!1)}with(b){if(!b)return this;let{scheme:w,authority:S,path:D,query:I,fragment:T}=b;return w===void 0?w=this.scheme:w===null&&(w=p),S===void 0?S=this.authority:S===null&&(S=p),D===void 0?D=this.path:D===null&&(D=p),I===void 0?I=this.query:I===null&&(I=p),T===void 0?T=this.fragment:T===null&&(T=p),w===this.scheme&&S===this.authority&&D===this.path&&I===this.query&&T===this.fragment?this:new o(w,S,D,I,T)}static parse(b,w=!1){const S=s.exec(b);return S?new o(S[2]||p,h(S[4]||p),h(S[5]||p),h(S[7]||p),h(S[9]||p),w):new o(p,p,p,p,p)}static file(b){let w=p;if(k.isWindows&&(b=b.replace(/\\/g,n)),b[0]===n&&b[1]===n){const S=b.indexOf(n,2);S===-1?(w=b.substring(2),b=n):(w=b.substring(2,S),b=b.substring(S)||n)}return new o("file",w,b,p,p)}static from(b,w){return new o(b.scheme,b.authority,b.path,b.query,b.fragment,w)}static joinPath(b,...w){if(!b.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let S;return k.isWindows&&b.scheme==="file"?S=t.file(c.win32.join(r(b,!0),...w)).path:S=c.posix.join(b.path,...w),b.with({path:S})}toString(b=!1){return a(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof t)return b;{const w=new o(b);return w._formatted=b.external??null,w._fsPath=b._sep===i?b.fsPath??null:null,w}}else return b}}e.URI=t;const i=k.isWindows?1:void 0;class o extends t{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=r(this,!1)),this._fsPath}toString(b=!1){return b?a(this,!0):(this._formatted||(this._formatted=a(this,!1)),this._formatted)}toJSON(){const b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=i),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function u(C,b,w){let S,D=-1;for(let I=0;I<C.length;I++){const T=C.charCodeAt(I);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||b&&T===47||w&&T===91||w&&T===93||w&&T===58)D!==-1&&(S+=encodeURIComponent(C.substring(D,I)),D=-1),S!==void 0&&(S+=C.charAt(I));else{S===void 0&&(S=C.substr(0,I));const M=g[T];M!==void 0?(D!==-1&&(S+=encodeURIComponent(C.substring(D,I)),D=-1),S+=M):D===-1&&(D=I)}}return D!==-1&&(S+=encodeURIComponent(C.substring(D))),S!==void 0?S:C}function l(C){let b;for(let w=0;w<C.length;w++){const S=C.charCodeAt(w);S===35||S===63?(b===void 0&&(b=C.substr(0,w)),b+=g[S]):b!==void 0&&(b+=C[w])}return b!==void 0?b:C}function r(C,b){let w;return C.authority&&C.path.length>1&&C.scheme==="file"?w=`//${C.authority}${C.path}`:C.path.charCodeAt(0)===47&&(C.path.charCodeAt(1)>=65&&C.path.charCodeAt(1)<=90||C.path.charCodeAt(1)>=97&&C.path.charCodeAt(1)<=122)&&C.path.charCodeAt(2)===58?b?w=C.path.substr(1):w=C.path[1].toLowerCase()+C.path.substr(2):w=C.path,k.isWindows&&(w=w.replace(/\//g,"\\")),w}function a(C,b){const w=b?l:u;let S="",{scheme:D,authority:I,path:T,query:M,fragment:A}=C;if(D&&(S+=D,S+=":"),(I||D==="file")&&(S+=n,S+=n),I){let R=I.indexOf("@");if(R!==-1){const N=I.substr(0,R);I=I.substr(R+1),R=N.lastIndexOf(":"),R===-1?S+=w(N,!1,!1):(S+=w(N.substr(0,R),!1,!1),S+=":",S+=w(N.substr(R+1),!1,!0)),S+="@"}I=I.toLowerCase(),R=I.lastIndexOf(":"),R===-1?S+=w(I,!1,!0):(S+=w(I.substr(0,R),!1,!0),S+=I.substr(R))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){const R=T.charCodeAt(1);R>=65&&R<=90&&(T=`/${String.fromCharCode(R+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){const R=T.charCodeAt(0);R>=65&&R<=90&&(T=`${String.fromCharCode(R+32)}:${T.substr(2)}`)}S+=w(T,!0,!1)}return M&&(S+="?",S+=w(M,!1,!1)),A&&(S+="#",S+=b?A:u(A,!1,!1)),S}function d(C){try{return decodeURIComponent(C)}catch{return C.length>3?C.substr(0,3)+d(C.substr(3)):C}}const m=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function h(C){return C.match(m)?C.replace(m,b=>d(b)):C}}),define(oe[251],re([1,0,158,22]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=E,e.parse=L,e.revive=f;function E(_){return JSON.stringify(_,y)}function L(_){let v=JSON.parse(_);return v=f(v),v}function y(_,v){return v instanceof RegExp?{$mid:2,source:v.source,flags:v.flags}:v}function f(_,v=0){if(!_||v>200)return _;if(typeof _=="object"){switch(_.$mid){case 1:return k.URI.revive(_);case 2:return new RegExp(_.source,_.flags);case 17:return new Date(_.source)}if(_ instanceof c.VSBuffer||_ instanceof Uint8Array)return _;if(Array.isArray(_))for(let p=0;p<_.length;++p)_[p]=f(_[p],v+1);else for(const p in _)Object.hasOwnProperty.call(_,p)&&(_[p]=f(_[p],v+1))}return _}}),define(oe[47],re([1,0,8,16,11,22,99]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COI=e.FileAccess=e.VSCODE_AUTHORITY=e.RemoteAuthorities=e.connectionTokenQueryName=e.Schemas=void 0,e.matchesScheme=_,e.matchesSomeScheme=v;var f;(function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeCopilotBackingChatCodeBlock="vscode-copilot-chat-code-block",t.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting"})(f||(e.Schemas=f={}));function _(t,i){return L.URI.isUri(t)?(0,E.equalsIgnoreCase)(t.scheme,i):(0,E.startsWithIgnoreCase)(t,i+":")}function v(t,...i){return i.some(o=>_(t,o))}e.connectionTokenQueryName="tkn";class p{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(i){this._preferredWebSchema=i}get _remoteResourcesPath(){return y.posix.join(this._serverRootPath,f.vscodeRemoteResource)}rewrite(i){if(this._delegate)try{return this._delegate(i)}catch(a){return c.onUnexpectedError(a),i}const o=i.authority;let g=this._hosts[o];g&&g.indexOf(":")!==-1&&g.indexOf("[")===-1&&(g=`[${g}]`);const u=this._ports[o],l=this._connectionTokens[o];let r=`path=${encodeURIComponent(i.path)}`;return typeof l=="string"&&(r+=`&${e.connectionTokenQueryName}=${encodeURIComponent(l)}`),L.URI.from({scheme:k.isWeb?this._preferredWebSchema:f.vscodeRemoteResource,authority:`${g}:${u}`,path:this._remoteResourcesPath,query:r})}}e.RemoteAuthorities=new p,e.VSCODE_AUTHORITY="vscode-app";class n{static{this.FALLBACK_AUTHORITY=e.VSCODE_AUTHORITY}uriToBrowserUri(i){return i.scheme===f.vscodeRemote?e.RemoteAuthorities.rewrite(i):i.scheme===f.file&&(k.isNative||k.webWorkerOrigin===`${f.vscodeFileResource}://${n.FALLBACK_AUTHORITY}`)?i.with({scheme:f.vscodeFileResource,authority:i.authority||n.FALLBACK_AUTHORITY,query:null,fragment:null}):i}}e.FileAccess=new n;var s;(function(t){const i=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(i.get("3"));const o="vscode-coi";function g(l){let r;typeof l=="string"?r=new URL(l).searchParams:l instanceof URL?r=l.searchParams:L.URI.isUri(l)&&(r=new URL(l.toString(!0)).searchParams);const a=r?.get(o);if(a)return i.get(a)}t.getHeadersFromQuery=g;function u(l,r,a){if(!globalThis.crossOriginIsolated)return;const d=r&&a?"3":a?"2":"1";l instanceof URLSearchParams?l.set(o,d):l[o]=d}t.addSearchParam=u})(s||(e.COI=s={}))}),define(oe[5],re([1,0,64,247,46,77,14,8,6,349,2,47,16,129,52]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DragAndDropObserver=e.ModifierKeyEmitter=e.basicMarkupHtmlTags=e.Namespace=e.EventHelper=e.EventType=e.sharedMutationObserver=e.Dimension=e.WindowIntervalTimer=e.scheduleAtNextAnimationFrame=e.runAtThisOrScheduleAtNextAnimationFrame=e.WindowIdleValue=e.addStandardDisposableGenericMouseUpListener=e.addStandardDisposableGenericMouseDownListener=e.addStandardDisposableListener=e.onDidUnregisterWindow=e.onWillUnregisterWindow=e.onDidRegisterWindow=e.hasWindow=e.getWindowById=e.getWindowId=e.getWindowsCount=e.getWindows=e.getDocument=e.getWindow=e.registerWindow=void 0,e.clearNode=g,e.addDisposableListener=l,e.addDisposableGenericMouseDownListener=C,e.addDisposableGenericMouseUpListener=b,e.runWhenWindowIdle=w,e.getComputedStyle=T,e.getClientArea=M,e.getTopLeftOffset=N,e.size=O,e.getDomNodePagePosition=x,e.getDomNodeZoomLevel=F,e.getTotalWidth=W,e.getContentWidth=z,e.getContentHeight=q,e.getTotalHeight=H,e.isAncestor=K,e.findParentWithClass=U,e.hasParentWithClass=Y,e.isShadowRoot=Q,e.isInShadowDOM=X,e.getShadowRoot=G,e.getActiveElement=P,e.isActiveElement=te,e.isAncestorOfActiveElement=se,e.getActiveDocument=ue,e.getActiveWindow=ge,e.createStyleSheet2=ce,e.createStyleSheet=ne,e.createCSSRule=$,e.removeCSSRulesContainingSelector=Z,e.isHTMLElement=le,e.isHTMLAnchorElement=de,e.isSVGElement=me,e.isMouseEvent=be,e.isKeyboardEvent=ve,e.isEventLike=Le,e.saveParentsScrollTop=Se,e.restoreParentsScrollTop=ye,e.trackFocus=ke,e.after=Re,e.append=Pe,e.prepend=Fe,e.reset=je,e.$=we,e.setVisibility=Oe,e.show=Be,e.hide=Ue,e.computeScreenAwareSize=Ye,e.windowOpenNoOpener=Qe,e.animate=tt,e.asCSSUrl=it,e.asCSSPropertyValue=ut,e.asCssValueWithDefault=ct,e.hookDomPurifyHrefAndSrcSanitizer=nt,e.h=ht,e.svgElem=wt,o=function(){const Ce=new Map;(0,i.ensureCodeWindow)(i.mainWindow,1);const _e={window:i.mainWindow,disposables:new p.DisposableStore};Ce.set(i.mainWindow.vscodeWindowId,_e);const Ie=new _.Emitter,Ae=new _.Emitter,We=new _.Emitter;function Ke(He,$e){return(typeof He=="number"?Ce.get(He):void 0)??($e?_e:void 0)}return{onDidRegisterWindow:Ie.event,onWillUnregisterWindow:We.event,onDidUnregisterWindow:Ae.event,registerWindow(He){if(Ce.has(He.vscodeWindowId))return p.Disposable.None;const $e=new p.DisposableStore,Ve={window:He,disposables:$e.add(new p.DisposableStore)};return Ce.set(He.vscodeWindowId,Ve),$e.add((0,p.toDisposable)(()=>{Ce.delete(He.vscodeWindowId),Ae.fire(He)})),$e.add(l(He,e.EventType.BEFORE_UNLOAD,()=>{We.fire(He)})),Ie.fire(Ve),$e},getWindows(){return Ce.values()},getWindowsCount(){return Ce.size},getWindowId(He){return He.vscodeWindowId},hasWindow(He){return Ce.has(He)},getWindowById:Ke,getWindow(He){const $e=He;if($e?.ownerDocument?.defaultView)return $e.ownerDocument.defaultView.window;const Ve=He;return Ve?.view?Ve.view.window:i.mainWindow},getDocument(He){const $e=He;return(0,e.getWindow)($e).document}}}(),e.registerWindow=o.registerWindow,e.getWindow=o.getWindow,e.getDocument=o.getDocument,e.getWindows=o.getWindows,e.getWindowsCount=o.getWindowsCount,e.getWindowId=o.getWindowId,e.getWindowById=o.getWindowById,e.hasWindow=o.hasWindow,e.onDidRegisterWindow=o.onDidRegisterWindow,e.onWillUnregisterWindow=o.onWillUnregisterWindow,e.onDidUnregisterWindow=o.onDidUnregisterWindow;function g(Ce){for(;Ce.firstChild;)Ce.firstChild.remove()}class u{constructor(_e,Ie,Ae,We){this._node=_e,this._type=Ie,this._handler=Ae,this._options=We||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function l(Ce,_e,Ie,Ae){return new u(Ce,_e,Ie,Ae)}function r(Ce,_e){return function(Ie){return _e(new L.StandardMouseEvent(Ce,Ie))}}function a(Ce){return function(_e){return Ce(new E.StandardKeyboardEvent(_e))}}const d=function(_e,Ie,Ae,We){let Ke=Ae;return Ie==="click"||Ie==="mousedown"||Ie==="contextmenu"?Ke=r((0,e.getWindow)(_e),Ae):(Ie==="keydown"||Ie==="keypress"||Ie==="keyup")&&(Ke=a(Ae)),l(_e,Ie,Ke,We)};e.addStandardDisposableListener=d;const m=function(_e,Ie,Ae){const We=r((0,e.getWindow)(_e),Ie);return C(_e,We,Ae)};e.addStandardDisposableGenericMouseDownListener=m;const h=function(_e,Ie,Ae){const We=r((0,e.getWindow)(_e),Ie);return b(_e,We,Ae)};e.addStandardDisposableGenericMouseUpListener=h;function C(Ce,_e,Ie){return l(Ce,s.isIOS&&k.BrowserFeatures.pointerEvents?e.EventType.POINTER_DOWN:e.EventType.MOUSE_DOWN,_e,Ie)}function b(Ce,_e,Ie){return l(Ce,s.isIOS&&k.BrowserFeatures.pointerEvents?e.EventType.POINTER_UP:e.EventType.MOUSE_UP,_e,Ie)}function w(Ce,_e,Ie){return(0,y._runWhenIdle)(Ce,_e,Ie)}class S extends y.AbstractIdleValue{constructor(_e,Ie){super(_e,Ie)}}e.WindowIdleValue=S;class D extends y.IntervalTimer{constructor(_e){super(),this.defaultTarget=_e&&(0,e.getWindow)(_e)}cancelAndSet(_e,Ie,Ae){return super.cancelAndSet(_e,Ie,Ae??this.defaultTarget)}}e.WindowIntervalTimer=D;class I{constructor(_e,Ie=0){this._runner=_e,this.priority=Ie,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(_e){(0,f.onUnexpectedError)(_e)}}static sort(_e,Ie){return Ie.priority-_e.priority}}(function(){const Ce=new Map,_e=new Map,Ie=new Map,Ae=new Map,We=Ke=>{Ie.set(Ke,!1);const He=Ce.get(Ke)??[];for(_e.set(Ke,He),Ce.set(Ke,[]),Ae.set(Ke,!0);He.length>0;)He.sort(I.sort),He.shift().execute();Ae.set(Ke,!1)};e.scheduleAtNextAnimationFrame=(Ke,He,$e=0)=>{const Ve=(0,e.getWindowId)(Ke),Me=new I(He,$e);let xe=Ce.get(Ve);return xe||(xe=[],Ce.set(Ve,xe)),xe.push(Me),Ie.get(Ve)||(Ie.set(Ve,!0),Ke.requestAnimationFrame(()=>We(Ve))),Me},e.runAtThisOrScheduleAtNextAnimationFrame=(Ke,He,$e)=>{const Ve=(0,e.getWindowId)(Ke);if(Ae.get(Ve)){const Me=new I(He,$e);let xe=_e.get(Ve);return xe||(xe=[],_e.set(Ve,xe)),xe.push(Me),Me}else return(0,e.scheduleAtNextAnimationFrame)(Ke,He,$e)}})();function T(Ce){return(0,e.getWindow)(Ce).getComputedStyle(Ce,null)}function M(Ce,_e){const Ie=(0,e.getWindow)(Ce),Ae=Ie.document;if(Ce!==Ae.body)return new R(Ce.clientWidth,Ce.clientHeight);if(s.isIOS&&Ie?.visualViewport)return new R(Ie.visualViewport.width,Ie.visualViewport.height);if(Ie?.innerWidth&&Ie.innerHeight)return new R(Ie.innerWidth,Ie.innerHeight);if(Ae.body&&Ae.body.clientWidth&&Ae.body.clientHeight)return new R(Ae.body.clientWidth,Ae.body.clientHeight);if(Ae.documentElement&&Ae.documentElement.clientWidth&&Ae.documentElement.clientHeight)return new R(Ae.documentElement.clientWidth,Ae.documentElement.clientHeight);if(_e)return M(_e);throw new Error("Unable to figure out browser width and height")}class A{static convertToPixels(_e,Ie){return parseFloat(Ie)||0}static getDimension(_e,Ie,Ae){const We=T(_e),Ke=We?We.getPropertyValue(Ie):"0";return A.convertToPixels(_e,Ke)}static getBorderLeftWidth(_e){return A.getDimension(_e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(_e){return A.getDimension(_e,"border-right-width","borderRightWidth")}static getBorderTopWidth(_e){return A.getDimension(_e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(_e){return A.getDimension(_e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(_e){return A.getDimension(_e,"padding-left","paddingLeft")}static getPaddingRight(_e){return A.getDimension(_e,"padding-right","paddingRight")}static getPaddingTop(_e){return A.getDimension(_e,"padding-top","paddingTop")}static getPaddingBottom(_e){return A.getDimension(_e,"padding-bottom","paddingBottom")}static getMarginLeft(_e){return A.getDimension(_e,"margin-left","marginLeft")}static getMarginTop(_e){return A.getDimension(_e,"margin-top","marginTop")}static getMarginRight(_e){return A.getDimension(_e,"margin-right","marginRight")}static getMarginBottom(_e){return A.getDimension(_e,"margin-bottom","marginBottom")}}class R{static{this.None=new R(0,0)}constructor(_e,Ie){this.width=_e,this.height=Ie}with(_e=this.width,Ie=this.height){return _e!==this.width||Ie!==this.height?new R(_e,Ie):this}static is(_e){return typeof _e=="object"&&typeof _e.height=="number"&&typeof _e.width=="number"}static lift(_e){return _e instanceof R?_e:new R(_e.width,_e.height)}static equals(_e,Ie){return _e===Ie?!0:!_e||!Ie?!1:_e.width===Ie.width&&_e.height===Ie.height}}e.Dimension=R;function N(Ce){let _e=Ce.offsetParent,Ie=Ce.offsetTop,Ae=Ce.offsetLeft;for(;(Ce=Ce.parentNode)!==null&&Ce!==Ce.ownerDocument.body&&Ce!==Ce.ownerDocument.documentElement;){Ie-=Ce.scrollTop;const We=Q(Ce)?null:T(Ce);We&&(Ae-=We.direction!=="rtl"?Ce.scrollLeft:-Ce.scrollLeft),Ce===_e&&(Ae+=A.getBorderLeftWidth(Ce),Ie+=A.getBorderTopWidth(Ce),Ie+=Ce.offsetTop,Ae+=Ce.offsetLeft,_e=Ce.offsetParent)}return{left:Ae,top:Ie}}function O(Ce,_e,Ie){typeof _e=="number"&&(Ce.style.width=`${_e}px`),typeof Ie=="number"&&(Ce.style.height=`${Ie}px`)}function x(Ce){const _e=Ce.getBoundingClientRect(),Ie=(0,e.getWindow)(Ce);return{left:_e.left+Ie.scrollX,top:_e.top+Ie.scrollY,width:_e.width,height:_e.height}}function F(Ce){let _e=Ce,Ie=1;do{const Ae=T(_e).zoom;Ae!=null&&Ae!=="1"&&(Ie*=Ae),_e=_e.parentElement}while(_e!==null&&_e!==_e.ownerDocument.documentElement);return Ie}function W(Ce){const _e=A.getMarginLeft(Ce)+A.getMarginRight(Ce);return Ce.offsetWidth+_e}function z(Ce){const _e=A.getBorderLeftWidth(Ce)+A.getBorderRightWidth(Ce),Ie=A.getPaddingLeft(Ce)+A.getPaddingRight(Ce);return Ce.offsetWidth-_e-Ie}function q(Ce){const _e=A.getBorderTopWidth(Ce)+A.getBorderBottomWidth(Ce),Ie=A.getPaddingTop(Ce)+A.getPaddingBottom(Ce);return Ce.offsetHeight-_e-Ie}function H(Ce){const _e=A.getMarginTop(Ce)+A.getMarginBottom(Ce);return Ce.offsetHeight+_e}function K(Ce,_e){return!!_e?.contains(Ce)}function U(Ce,_e,Ie){for(;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;){if(Ce.classList.contains(_e))return Ce;if(Ie){if(typeof Ie=="string"){if(Ce.classList.contains(Ie))return null}else if(Ce===Ie)return null}Ce=Ce.parentNode}return null}function Y(Ce,_e,Ie){return!!U(Ce,_e,Ie)}function Q(Ce){return Ce&&!!Ce.host&&!!Ce.mode}function X(Ce){return!!G(Ce)}function G(Ce){for(;Ce.parentNode;){if(Ce===Ce.ownerDocument?.body)return null;Ce=Ce.parentNode}return Q(Ce)?Ce:null}function P(){let Ce=ue().activeElement;for(;Ce?.shadowRoot;)Ce=Ce.shadowRoot.activeElement;return Ce}function te(Ce){return P()===Ce}function se(Ce){return K(P(),Ce)}function ue(){return(0,e.getWindowsCount)()<=1?i.mainWindow.document:Array.from((0,e.getWindows)()).map(({window:_e})=>_e.document).find(_e=>_e.hasFocus())??i.mainWindow.document}function ge(){return ue().defaultView?.window??i.mainWindow}const pe=new Map;function ce(){return new ie}class ie{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(_e){_e!==this._currentCssStyle&&(this._currentCssStyle=_e,this._styleSheet?this._styleSheet.innerText=_e:this._styleSheet=ne(i.mainWindow.document.head,Ie=>Ie.innerText=_e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function ne(Ce=i.mainWindow.document.head,_e,Ie){const Ae=document.createElement("style");if(Ae.type="text/css",Ae.media="screen",_e?.(Ae),Ce.appendChild(Ae),Ie&&Ie.add((0,p.toDisposable)(()=>Ae.remove())),Ce===i.mainWindow.document.head){const We=new Set;pe.set(Ae,We);for(const{window:Ke,disposables:He}of(0,e.getWindows)()){if(Ke===i.mainWindow)continue;const $e=He.add(J(Ae,We,Ke));Ie?.add($e)}}return Ae}function J(Ce,_e,Ie){const Ae=new p.DisposableStore,We=Ce.cloneNode(!0);Ie.document.head.appendChild(We),Ae.add((0,p.toDisposable)(()=>We.remove()));for(const Ke of V(Ce))We.sheet?.insertRule(Ke.cssText,We.sheet?.cssRules.length);return Ae.add(e.sharedMutationObserver.observe(Ce,Ae,{childList:!0})(()=>{We.textContent=Ce.textContent})),_e.add(We),Ae.add((0,p.toDisposable)(()=>_e.delete(We))),Ae}e.sharedMutationObserver=new class{constructor(){this.mutationObservers=new Map}observe(Ce,_e,Ie){let Ae=this.mutationObservers.get(Ce);Ae||(Ae=new Map,this.mutationObservers.set(Ce,Ae));const We=(0,t.hash)(Ie);let Ke=Ae.get(We);if(Ke)Ke.users+=1;else{const He=new _.Emitter,$e=new MutationObserver(Me=>He.fire(Me));$e.observe(Ce,Ie);const Ve=Ke={users:1,observer:$e,onDidMutate:He.event};_e.add((0,p.toDisposable)(()=>{Ve.users-=1,Ve.users===0&&(He.dispose(),$e.disconnect(),Ae?.delete(We),Ae?.size===0&&this.mutationObservers.delete(Ce))})),Ae.set(We,Ke)}return Ke.onDidMutate}};let B=null;function j(){return B||(B=ne()),B}function V(Ce){return Ce?.sheet?.rules?Ce.sheet.rules:Ce?.sheet?.cssRules?Ce.sheet.cssRules:[]}function $(Ce,_e,Ie=j()){if(!(!Ie||!_e)){Ie.sheet?.insertRule(`${Ce} {${_e}}`,0);for(const Ae of pe.get(Ie)??[])$(Ce,_e,Ae)}}function Z(Ce,_e=j()){if(!_e)return;const Ie=V(_e),Ae=[];for(let We=0;We<Ie.length;We++){const Ke=Ie[We];ee(Ke)&&Ke.selectorText.indexOf(Ce)!==-1&&Ae.push(We)}for(let We=Ae.length-1;We>=0;We--)_e.sheet?.deleteRule(Ae[We]);for(const We of pe.get(_e)??[])Z(Ce,We)}function ee(Ce){return typeof Ce.selectorText=="string"}function le(Ce){return Ce instanceof HTMLElement||Ce instanceof(0,e.getWindow)(Ce).HTMLElement}function de(Ce){return Ce instanceof HTMLAnchorElement||Ce instanceof(0,e.getWindow)(Ce).HTMLAnchorElement}function me(Ce){return Ce instanceof SVGElement||Ce instanceof(0,e.getWindow)(Ce).SVGElement}function be(Ce){return Ce instanceof MouseEvent||Ce instanceof(0,e.getWindow)(Ce).MouseEvent}function ve(Ce){return Ce instanceof KeyboardEvent||Ce instanceof(0,e.getWindow)(Ce).KeyboardEvent}e.EventType={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:c.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:c.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:c.isWebKit?"webkitAnimationIteration":"animationiteration"};function Le(Ce){const _e=Ce;return!!(_e&&typeof _e.preventDefault=="function"&&typeof _e.stopPropagation=="function")}e.EventHelper={stop:(Ce,_e)=>(Ce.preventDefault(),_e&&Ce.stopPropagation(),Ce)};function Se(Ce){const _e=[];for(let Ie=0;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;Ie++)_e[Ie]=Ce.scrollTop,Ce=Ce.parentNode;return _e}function ye(Ce,_e){for(let Ie=0;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;Ie++)Ce.scrollTop!==_e[Ie]&&(Ce.scrollTop=_e[Ie]),Ce=Ce.parentNode}class Ee extends p.Disposable{static hasFocusWithin(_e){if(le(_e)){const Ie=G(_e),Ae=Ie?Ie.activeElement:_e.ownerDocument.activeElement;return K(Ae,_e)}else{const Ie=_e;return K(Ie.document.activeElement,Ie.document)}}constructor(_e){super(),this._onDidFocus=this._register(new _.Emitter),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new _.Emitter),this.onDidBlur=this._onDidBlur.event;let Ie=Ee.hasFocusWithin(_e),Ae=!1;const We=()=>{Ae=!1,Ie||(Ie=!0,this._onDidFocus.fire())},Ke=()=>{Ie&&(Ae=!0,(le(_e)?(0,e.getWindow)(_e):_e).setTimeout(()=>{Ae&&(Ae=!1,Ie=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Ee.hasFocusWithin(_e)!==Ie&&(Ie?Ke():We())},this._register(l(_e,e.EventType.FOCUS,We,!0)),this._register(l(_e,e.EventType.BLUR,Ke,!0)),le(_e)&&(this._register(l(_e,e.EventType.FOCUS_IN,()=>this._refreshStateHandler())),this._register(l(_e,e.EventType.FOCUS_OUT,()=>this._refreshStateHandler())))}}function ke(Ce){return new Ee(Ce)}function Re(Ce,_e){return Ce.after(_e),_e}function Pe(Ce,..._e){if(Ce.append(..._e),_e.length===1&&typeof _e[0]!="string")return _e[0]}function Fe(Ce,_e){return Ce.insertBefore(_e,Ce.firstChild),_e}function je(Ce,..._e){Ce.innerText="",Pe(Ce,..._e)}const Te=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ne;(function(Ce){Ce.HTML="http://www.w3.org/1999/xhtml",Ce.SVG="http://www.w3.org/2000/svg"})(Ne||(e.Namespace=Ne={}));function fe(Ce,_e,Ie,...Ae){const We=Te.exec(_e);if(!We)throw new Error("Bad use of emmet");const Ke=We[1]||"div";let He;return Ce!==Ne.HTML?He=document.createElementNS(Ce,Ke):He=document.createElement(Ke),We[3]&&(He.id=We[3]),We[4]&&(He.className=We[4].replace(/\./g," ").trim()),Ie&&Object.entries(Ie).forEach(([$e,Ve])=>{typeof Ve>"u"||(/^on\w+$/.test($e)?He[$e]=Ve:$e==="selected"?Ve&&He.setAttribute($e,"true"):He.setAttribute($e,Ve))}),He.append(...Ae),He}function we(Ce,_e,...Ie){return fe(Ne.HTML,Ce,_e,...Ie)}we.SVG=function(Ce,_e,...Ie){return fe(Ne.SVG,Ce,_e,...Ie)};function Oe(Ce,..._e){Ce?Be(..._e):Ue(..._e)}function Be(...Ce){for(const _e of Ce)_e.style.display="",_e.removeAttribute("aria-hidden")}function Ue(...Ce){for(const _e of Ce)_e.style.display="none",_e.setAttribute("aria-hidden","true")}function Ye(Ce,_e){const Ie=Ce.devicePixelRatio*_e;return Math.max(1,Math.floor(Ie))/Ce.devicePixelRatio}function Qe(Ce){i.mainWindow.open(Ce,"_blank","noopener")}function tt(Ce,_e){const Ie=()=>{_e(),Ae=(0,e.scheduleAtNextAnimationFrame)(Ce,Ie)};let Ae=(0,e.scheduleAtNextAnimationFrame)(Ce,Ie);return(0,p.toDisposable)(()=>Ae.dispose())}n.RemoteAuthorities.setPreferredWebSchema(/^https:/.test(i.mainWindow.location.href)?"https":"http");function it(Ce){return Ce?`url('${n.FileAccess.uriToBrowserUri(Ce).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function ut(Ce){return`'${Ce.replace(/'/g,"%27")}'`}function ct(Ce,_e){if(Ce!==void 0){const Ie=Ce.match(/^\s*var\((.+)\)$/);if(Ie){const Ae=Ie[1].split(",",2);return Ae.length===2&&(_e=ct(Ae[1].trim(),_e)),`var(${Ae[0]}, ${_e})`}return Ce}return _e}function nt(Ce,_e=!1){const Ie=document.createElement("a");return v.addHook("afterSanitizeAttributes",Ae=>{for(const We of["href","src"])if(Ae.hasAttribute(We)){const Ke=Ae.getAttribute(We);if(We==="href"&&Ke.startsWith("#"))continue;if(Ie.href=Ke,!Ce.includes(Ie.protocol.replace(/:$/,""))){if(_e&&We==="src"&&Ie.href.startsWith("data:"))continue;Ae.removeAttribute(We)}}}),(0,p.toDisposable)(()=>{v.removeHook("afterSanitizeAttributes")})}e.basicMarkupHtmlTags=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);const st=Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class dt extends _.Emitter{constructor(){super(),this._subscriptions=new p.DisposableStore,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(_.Event.runAndSubscribe(e.onDidRegisterWindow,({window:_e,disposables:Ie})=>this.registerListeners(_e,Ie),{window:i.mainWindow,disposables:this._subscriptions}))}registerListeners(_e,Ie){Ie.add(l(_e,"keydown",Ae=>{if(Ae.defaultPrevented)return;const We=new E.StandardKeyboardEvent(Ae);if(!(We.keyCode===6&&Ae.repeat)){if(Ae.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(Ae.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(Ae.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(Ae.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(We.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=Ae.altKey,this._keyStatus.ctrlKey=Ae.ctrlKey,this._keyStatus.metaKey=Ae.metaKey,this._keyStatus.shiftKey=Ae.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=Ae,this.fire(this._keyStatus))}},!0)),Ie.add(l(_e,"keyup",Ae=>{Ae.defaultPrevented||(!Ae.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!Ae.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!Ae.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!Ae.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=Ae.altKey,this._keyStatus.ctrlKey=Ae.ctrlKey,this._keyStatus.metaKey=Ae.metaKey,this._keyStatus.shiftKey=Ae.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=Ae,this.fire(this._keyStatus)))},!0)),Ie.add(l(_e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),Ie.add(l(_e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),Ie.add(l(_e.document.body,"mousemove",Ae=>{Ae.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),Ie.add(l(_e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return dt.instance||(dt.instance=new dt),dt.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}e.ModifierKeyEmitter=dt;class St extends p.Disposable{constructor(_e,Ie){super(),this.element=_e,this.callbacks=Ie,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(l(this.element,e.EventType.DRAG_START,_e=>{this.callbacks.onDragStart?.(_e)})),this.callbacks.onDrag&&this._register(l(this.element,e.EventType.DRAG,_e=>{this.callbacks.onDrag?.(_e)})),this._register(l(this.element,e.EventType.DRAG_ENTER,_e=>{this.counter++,this.dragStartTime=_e.timeStamp,this.callbacks.onDragEnter?.(_e)})),this._register(l(this.element,e.EventType.DRAG_OVER,_e=>{_e.preventDefault(),this.callbacks.onDragOver?.(_e,_e.timeStamp-this.dragStartTime)})),this._register(l(this.element,e.EventType.DRAG_LEAVE,_e=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(_e))})),this._register(l(this.element,e.EventType.DRAG_END,_e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(_e)})),this._register(l(this.element,e.EventType.DROP,_e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(_e)}))}}e.DragAndDropObserver=St;const _t=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function ht(Ce,..._e){let Ie,Ae;Array.isArray(_e[0])?(Ie={},Ae=_e[0]):(Ie=_e[0]||{},Ae=_e[1]);const We=_t.exec(Ce);if(!We||!We.groups)throw new Error("Bad use of h");const Ke=We.groups.tag||"div",He=document.createElement(Ke);We.groups.id&&(He.id=We.groups.id);const $e=[];if(We.groups.class)for(const Me of We.groups.class.split("."))Me!==""&&$e.push(Me);if(Ie.className!==void 0)for(const Me of Ie.className.split("."))Me!==""&&$e.push(Me);$e.length>0&&(He.className=$e.join(" "));const Ve={};if(We.groups.name&&(Ve[We.groups.name]=He),Ae)for(const Me of Ae)le(Me)?He.appendChild(Me):typeof Me=="string"?He.append(Me):"root"in Me&&(Object.assign(Ve,Me),He.appendChild(Me.root));for(const[Me,xe]of Object.entries(Ie))if(Me!=="className")if(Me==="style")for(const[ze,Ge]of Object.entries(xe))He.style.setProperty(qe(ze),typeof Ge=="number"?Ge+"px":""+Ge);else Me==="tabIndex"?He.tabIndex=xe:He.setAttribute(qe(Me),xe.toString());return Ve.root=He,Ve}function wt(Ce,..._e){let Ie,Ae;Array.isArray(_e[0])?(Ie={},Ae=_e[0]):(Ie=_e[0]||{},Ae=_e[1]);const We=_t.exec(Ce);if(!We||!We.groups)throw new Error("Bad use of h");const Ke=We.groups.tag||"div",He=document.createElementNS("http://www.w3.org/2000/svg",Ke);We.groups.id&&(He.id=We.groups.id);const $e=[];if(We.groups.class)for(const Me of We.groups.class.split("."))Me!==""&&$e.push(Me);if(Ie.className!==void 0)for(const Me of Ie.className.split("."))Me!==""&&$e.push(Me);$e.length>0&&(He.className=$e.join(" "));const Ve={};if(We.groups.name&&(Ve[We.groups.name]=He),Ae)for(const Me of Ae)le(Me)?He.appendChild(Me):typeof Me=="string"?He.append(Me):"root"in Me&&(Object.assign(Ve,Me),He.appendChild(Me.root));for(const[Me,xe]of Object.entries(Ie))if(Me!=="className")if(Me==="style")for(const[ze,Ge]of Object.entries(xe))He.style.setProperty(qe(ze),typeof Ge=="number"?Ge+"px":""+Ge);else Me==="tabIndex"?He.tabIndex=xe:He.setAttribute(qe(Me),xe.toString());return Ve.root=He,Ve}function qe(Ce){return Ce.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}}),define(oe[625],re([1,0,5,2,21]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createStyleSheetFromObservable=L;function L(y){const f=new k.DisposableStore,_=f.add((0,c.createStyleSheet2)());return f.add((0,E.autorun)(v=>{_.setStyle(y.read(v))})),f}}),define(oe[350],re([1,0,5]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderText=k,e.renderFormattedText=E,e.createElement=L;function k(n,s={}){const t=L(s);return t.textContent=n,t}function E(n,s={}){const t=L(s);return f(t,_(n,!!s.renderCodeSegments),s.actionHandler,s.renderCodeSegments),t}function L(n){const s=n.inline?"span":"div",t=document.createElement(s);return n.className&&(t.className=n.className),t}class y{constructor(s){this.source=s,this.index=0}eos(){return this.index>=this.source.length}next(){const s=this.peek();return this.advance(),s}peek(){return this.source[this.index]}advance(){this.index++}}function f(n,s,t,i){let o;if(s.type===2)o=document.createTextNode(s.content||"");else if(s.type===3)o=document.createElement("b");else if(s.type===4)o=document.createElement("i");else if(s.type===7&&i)o=document.createElement("code");else if(s.type===5&&t){const g=document.createElement("a");t.disposables.add(c.addStandardDisposableListener(g,"click",u=>{t.callback(String(s.index),u)})),o=g}else s.type===8?o=document.createElement("br"):s.type===1&&(o=n);o&&n!==o&&n.appendChild(o),o&&Array.isArray(s.children)&&s.children.forEach(g=>{f(o,g,t,i)})}function _(n,s){const t={type:1,children:[]};let i=0,o=t;const g=[],u=new y(n);for(;!u.eos();){let l=u.next();const r=l==="\\"&&p(u.peek(),s)!==0;if(r&&(l=u.next()),!r&&v(l,s)&&l===u.peek()){u.advance(),o.type===2&&(o=g.pop());const a=p(l,s);if(o.type===a||o.type===5&&a===6)o=g.pop();else{const d={type:a,children:[]};a===5&&(d.index=i,i++),o.children.push(d),g.push(o),o=d}}else if(l===`
|
|
114
|
+
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof d.open=="string"&&typeof d.token=="string"&&typeof d.close=="string")r.push({token:d.token+g.tokenPostfix,open:c.fixCase(g,d.open),close:c.fixCase(g,d.close)});else throw c.createError(g,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return g.brackets=r,g.noThrow=!0,g}}),define(oe[343],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNLSMessages=c,e.getNLSLanguage=k;function c(){return globalThis._VSCODE_NLS_MESSAGES}function k(){return globalThis._VSCODE_NLS_LANGUAGE}}),define(oe[3],re([1,0,343,343]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNLSMessages=e.getNLSLanguage=void 0,e.localize=y,e.localize2=_,Object.defineProperty(e,"getNLSLanguage",{enumerable:!0,get:function(){return k.getNLSLanguage}}),Object.defineProperty(e,"getNLSMessages",{enumerable:!0,get:function(){return k.getNLSMessages}});const E=(0,c.getNLSLanguage)()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function L(v,p){let n;return p.length===0?n=v:n=v.replace(/\{(\d+)\}/g,(s,t)=>{const i=t[0],o=p[i];let g=s;return typeof o=="string"?g=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(g=String(o)),g}),E&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}function y(v,p,...n){return L(typeof v=="number"?f(v,p):p,n)}function f(v,p){const n=(0,c.getNLSMessages)()?.[v];if(typeof n!="string"){if(typeof p=="string")return p;throw new Error(`!!! NLS MISSING: ${v} !!!`)}return n}function _(v,p,...n){let s;typeof v=="number"?s=f(v,p):s=p;const t=L(s,n);return{value:t,original:p===s?t:L(p,n)}}}),define(oe[41],re([1,0,6,2,3]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptySubmenuAction=e.SubmenuAction=e.Separator=e.ActionRunner=e.Action=void 0,e.toAction=p;class L extends k.Disposable{constructor(s,t="",i="",o=!0,g){super(),this._onDidChange=this._register(new c.Emitter),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=s,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=g}get id(){return this._id}get label(){return this._label}set label(s){this._setLabel(s)}_setLabel(s){this._label!==s&&(this._label=s,this._onDidChange.fire({label:s}))}get tooltip(){return this._tooltip||""}set tooltip(s){this._setTooltip(s)}_setTooltip(s){this._tooltip!==s&&(this._tooltip=s,this._onDidChange.fire({tooltip:s}))}get class(){return this._cssClass}set class(s){this._setClass(s)}_setClass(s){this._cssClass!==s&&(this._cssClass=s,this._onDidChange.fire({class:s}))}get enabled(){return this._enabled}set enabled(s){this._setEnabled(s)}_setEnabled(s){this._enabled!==s&&(this._enabled=s,this._onDidChange.fire({enabled:s}))}get checked(){return this._checked}set checked(s){this._setChecked(s)}_setChecked(s){this._checked!==s&&(this._checked=s,this._onDidChange.fire({checked:s}))}async run(s,t){this._actionCallback&&await this._actionCallback(s)}}e.Action=L;class y extends k.Disposable{constructor(){super(...arguments),this._onWillRun=this._register(new c.Emitter),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new c.Emitter),this.onDidRun=this._onDidRun.event}async run(s,t){if(!s.enabled)return;this._onWillRun.fire({action:s});let i;try{await this.runAction(s,t)}catch(o){i=o}this._onDidRun.fire({action:s,error:i})}async runAction(s,t){await s.run(t)}}e.ActionRunner=y;class f{constructor(){this.id=f.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...s){let t=[];for(const i of s)i.length&&(t.length?t=[...t,new f,...i]:t=i);return t}static{this.ID="vs.actions.separator"}async run(){}}e.Separator=f;class _{get actions(){return this._actions}constructor(s,t,i,o){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=s,this.label=t,this.class=o,this._actions=i}async run(){}}e.SubmenuAction=_;class v extends L{static{this.ID="vs.actions.empty"}constructor(){super(v.ID,E.localize(1857,"(empty)"),void 0,!1)}}e.EmptySubmenuAction=v;function p(n){return{id:n.id,label:n.label,tooltip:n.tooltip??n.label,class:n.class,enabled:n.enabled??!0,checked:n.checked,run:async(...s)=>n.run(...s)}}}),define(oe[344],re([1,0,13,19,3]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toErrorMessage=_;function L(v,p){return p&&(v.stack||v.stacktrace)?E.localize(1851,"{0}: {1}",f(v),y(v.stack)||y(v.stacktrace)):f(v)}function y(v){return Array.isArray(v)?v.join(`
|
|
115
|
+
`):v}function f(v){return v.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${v.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof v.code=="string"&&typeof v.errno=="number"&&typeof v.syscall=="string"?E.localize(1852,"A system error occurred ({0})",v.message):v.message||E.localize(1853,"An unknown error occurred. Please consult the log for more details.")}function _(v=null,p=!1){if(!v)return E.localize(1854,"An unknown error occurred. Please consult the log for more details.");if(Array.isArray(v)){const n=c.coalesce(v),s=_(n[0],p);return n.length>1?E.localize(1855,"{0} ({1} errors in total)",s,n.length):s}if(k.isString(v))return v;if(v.detail){const n=v.detail;if(n.error)return L(n.error,p);if(n.exception)return L(n.exception,p)}return v.stack?L(v,p):v.message?v.message:E.localize(1856,"An unknown error occurred. Please consult the log for more details.")}}),define(oe[246],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserSettingsLabelProvider=e.ElectronAcceleratorLabelProvider=e.AriaLabelProvider=e.UILabelProvider=e.ModifierLabelProvider=void 0;class k{constructor(y,f,_=f){this.modifierLabels=[null],this.modifierLabels[2]=y,this.modifierLabels[1]=f,this.modifierLabels[3]=_}toLabel(y,f,_){if(f.length===0)return null;const v=[];for(let p=0,n=f.length;p<n;p++){const s=f[p],t=_(s);if(t===null)return null;v[p]=E(s,t,this.modifierLabels[y])}return v.join(" ")}}e.ModifierLabelProvider=k,e.UILabelProvider=new k({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:c.localize(1831,"Ctrl"),shiftKey:c.localize(1832,"Shift"),altKey:c.localize(1833,"Alt"),metaKey:c.localize(1834,"Windows"),separator:"+"},{ctrlKey:c.localize(1835,"Ctrl"),shiftKey:c.localize(1836,"Shift"),altKey:c.localize(1837,"Alt"),metaKey:c.localize(1838,"Super"),separator:"+"}),e.AriaLabelProvider=new k({ctrlKey:c.localize(1839,"Control"),shiftKey:c.localize(1840,"Shift"),altKey:c.localize(1841,"Option"),metaKey:c.localize(1842,"Command"),separator:"+"},{ctrlKey:c.localize(1843,"Control"),shiftKey:c.localize(1844,"Shift"),altKey:c.localize(1845,"Alt"),metaKey:c.localize(1846,"Windows"),separator:"+"},{ctrlKey:c.localize(1847,"Control"),shiftKey:c.localize(1848,"Shift"),altKey:c.localize(1849,"Alt"),metaKey:c.localize(1850,"Super"),separator:"+"}),e.ElectronAcceleratorLabelProvider=new k({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),e.UserSettingsLabelProvider=new k({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function E(L,y,f){if(y===null)return"";const _=[];return L.ctrlKey&&_.push(f.ctrlKey),L.shiftKey&&_.push(f.shiftKey),L.altKey&&_.push(f.altKey),L.metaKey&&_.push(f.metaKey),y!==""&&_.push(y),_.join(f.separator)}}),define(oe[16],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.OS=e.setTimeout0=e.setTimeout0IsFaster=e.language=e.userAgent=e.isMobile=e.isIOS=e.webWorkerOrigin=e.isWebWorker=e.isWeb=e.isNative=e.isLinux=e.isMacintosh=e.isWindows=e.LANGUAGE_DEFAULT=void 0,e.isLittleEndian=b,e.LANGUAGE_DEFAULT="en";let k=!1,E=!1,L=!1,y=!1,f=!1,_=!1,v=!1,p=!1,n=!1,s=!1,t,i=e.LANGUAGE_DEFAULT,o=e.LANGUAGE_DEFAULT,g,u;const l=globalThis;let r;typeof l.vscode<"u"&&typeof l.vscode.process<"u"?r=l.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(r=process);const a=typeof r?.versions?.electron=="string",d=a&&r?.type==="renderer";if(typeof r=="object"){k=r.platform==="win32",E=r.platform==="darwin",L=r.platform==="linux",y=L&&!!r.env.SNAP&&!!r.env.SNAP_REVISION,v=a,n=!!r.env.CI||!!r.env.BUILD_ARTIFACTSTAGINGDIRECTORY,t=e.LANGUAGE_DEFAULT,i=e.LANGUAGE_DEFAULT;const w=r.env.VSCODE_NLS_CONFIG;if(w)try{const S=JSON.parse(w);t=S.userLocale,o=S.osLocale,i=S.resolvedLanguage||e.LANGUAGE_DEFAULT,g=S.languagePack?.translationsConfigFile}catch{}f=!0}else typeof navigator=="object"&&!d?(u=navigator.userAgent,k=u.indexOf("Windows")>=0,E=u.indexOf("Macintosh")>=0,p=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,L=u.indexOf("Linux")>=0,s=u?.indexOf("Mobi")>=0,_=!0,i=c.getNLSLanguage()||e.LANGUAGE_DEFAULT,t=navigator.language.toLowerCase(),o=t):console.error("Unable to resolve platform.");let m=0;E?m=1:k?m=3:L&&(m=2),e.isWindows=k,e.isMacintosh=E,e.isLinux=L,e.isNative=f,e.isWeb=_,e.isWebWorker=_&&typeof l.importScripts=="function",e.webWorkerOrigin=e.isWebWorker?l.origin:void 0,e.isIOS=p,e.isMobile=s,e.userAgent=u,e.language=i,e.setTimeout0IsFaster=typeof l.postMessage=="function"&&!l.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const w=[];l.addEventListener("message",D=>{if(D.data&&D.data.vscodeScheduleAsyncWork)for(let I=0,T=w.length;I<T;I++){const M=w[I];if(M.id===D.data.vscodeScheduleAsyncWork){w.splice(I,1),M.callback();return}}});let S=0;return D=>{const I=++S;w.push({id:I,callback:D}),l.postMessage({vscodeScheduleAsyncWork:I},"*")}}return w=>setTimeout(w)})(),e.OS=E||p?2:k?1:3;let h=!0,C=!1;function b(){if(!C){C=!0;const w=new Uint8Array(2);w[0]=1,w[1]=2,h=new Uint16Array(w.buffer)[0]===513}return h}e.isChrome=!!(e.userAgent&&e.userAgent.indexOf("Chrome")>=0),e.isFirefox=!!(e.userAgent&&e.userAgent.indexOf("Firefox")>=0),e.isSafari=!!(!e.isChrome&&e.userAgent&&e.userAgent.indexOf("Safari")>=0),e.isEdge=!!(e.userAgent&&e.userAgent.indexOf("Edg/")>=0),e.isAndroid=!!(e.userAgent&&e.userAgent.indexOf("Android")>=0)}),define(oe[247],re([1,0,64,52,16]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserFeatures=void 0,e.BrowserFeatures={clipboard:{writeText:E.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:E.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:E.isNative||c.isStandalone()?0:navigator.keyboard||c.isSafari?1:2,touch:"ontouchstart"in k.mainWindow||navigator.maxTouchPoints>0,pointerEvents:k.mainWindow.PointerEvent&&("ontouchstart"in k.mainWindow||navigator.maxTouchPoints>0)}}),define(oe[345],re([1,0,16]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FONT_FAMILY=void 0,e.DEFAULT_FONT_FAMILY=c.isWindows?'"Segoe WPC", "Segoe UI", sans-serif':c.isMacintosh?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'}),define(oe[46],re([1,0,64,72,139,16]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardKeyboardEvent=void 0;function y(s){if(s.charCode){const i=String.fromCharCode(s.charCode).toUpperCase();return k.KeyCodeUtils.fromString(i)}const t=s.keyCode;if(t===3)return 7;if(c.isFirefox)switch(t){case 59:return 85;case 60:if(L.isLinux)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(L.isMacintosh)return 57;break}else if(c.isWebKit){if(L.isMacintosh&&t===93)return 57;if(!L.isMacintosh&&t===92)return 57}return k.EVENT_KEY_CODE_MAP[t]||0}const f=L.isMacintosh?256:2048,_=512,v=1024,p=L.isMacintosh?2048:256;class n{constructor(t){this._standardKeyboardEventBrand=!0;const i=t;this.browserEvent=i,this.target=i.target,this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey,this.altGraphKey=i.getModifierState?.("AltGraph"),this.keyCode=y(i),this.code=i.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(t){return this._asKeybinding===t}_computeKeybinding(){let t=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(t=this.keyCode);let i=0;return this.ctrlKey&&(i|=f),this.altKey&&(i|=_),this.shiftKey&&(i|=v),this.metaKey&&(i|=p),i|=t,i}_computeKeyCodeChord(){let t=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(t=this.keyCode),new E.KeyCodeChord(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,t)}}e.StandardKeyboardEvent=n}),define(oe[77],re([1,0,64,437,16]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandardWheelEvent=e.StandardMouseEvent=void 0;class L{constructor(_,v){this.timestamp=Date.now(),this.browserEvent=v,this.leftButton=v.button===0,this.middleButton=v.button===1,this.rightButton=v.button===2,this.buttons=v.buttons,this.target=v.target,this.detail=v.detail||1,v.type==="dblclick"&&(this.detail=2),this.ctrlKey=v.ctrlKey,this.shiftKey=v.shiftKey,this.altKey=v.altKey,this.metaKey=v.metaKey,typeof v.pageX=="number"?(this.posx=v.pageX,this.posy=v.pageY):(this.posx=v.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=v.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const p=k.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(_,v.view);this.posx-=p.left,this.posy-=p.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}e.StandardMouseEvent=L;class y{constructor(_,v=0,p=0){this.browserEvent=_||null,this.target=_?_.target||_.targetNode||_.srcElement:null,this.deltaY=p,this.deltaX=v;let n=!1;if(c.isChrome){const s=navigator.userAgent.match(/Chrome\/(\d+)/);n=(s?parseInt(s[1]):123)<=122}if(_){const s=_,t=_,i=_.view?.devicePixelRatio||1;if(typeof s.wheelDeltaY<"u")n?this.deltaY=s.wheelDeltaY/(120*i):this.deltaY=s.wheelDeltaY/120;else if(typeof t.VERTICAL_AXIS<"u"&&t.axis===t.VERTICAL_AXIS)this.deltaY=-t.detail/3;else if(_.type==="wheel"){const o=_;o.deltaMode===o.DOM_DELTA_LINE?c.isFirefox&&!E.isMacintosh?this.deltaY=-_.deltaY/3:this.deltaY=-_.deltaY:this.deltaY=-_.deltaY/40}if(typeof s.wheelDeltaX<"u")c.isSafari&&E.isWindows?this.deltaX=-(s.wheelDeltaX/120):n?this.deltaX=s.wheelDeltaX/(120*i):this.deltaX=s.wheelDeltaX/120;else if(typeof t.HORIZONTAL_AXIS<"u"&&t.axis===t.HORIZONTAL_AXIS)this.deltaX=-_.detail/3;else if(_.type==="wheel"){const o=_;o.deltaMode===o.DOM_DELTA_LINE?c.isFirefox&&!E.isMacintosh?this.deltaX=-_.deltaX/3:this.deltaX=-_.deltaX:this.deltaX=-_.deltaX/40}this.deltaY===0&&this.deltaX===0&&_.wheelDelta&&(n?this.deltaY=_.wheelDelta/(120*i):this.deltaY=_.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}e.StandardWheelEvent=y}),define(oe[14],re([1,0,18,8,6,2,16,300]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.GlobalIdleValue=e.AbstractIdleValue=e._runWhenIdle=e.runWhenGlobalIdle=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.ThrottledDelayer=e.Delayer=e.Throttler=void 0,e.isThenable=_,e.createCancelablePromise=v,e.raceCancellation=p,e.timeout=g,e.disposableTimeout=u,e.first=l,e.createCancelableAsyncIterable=D;function _(I){return!!I&&typeof I.then=="function"}function v(I){const T=new c.CancellationTokenSource,M=I(T.token),A=new Promise((R,N)=>{const O=T.token.onCancellationRequested(()=>{O.dispose(),N(new k.CancellationError)});Promise.resolve(M).then(x=>{O.dispose(),T.dispose(),R(x)},x=>{O.dispose(),T.dispose(),N(x)})});return new class{cancel(){T.cancel(),T.dispose()}then(R,N){return A.then(R,N)}catch(R){return this.then(void 0,R)}finally(R){return A.finally(R)}}}function p(I,T,M){return new Promise((A,R)=>{const N=T.onCancellationRequested(()=>{N.dispose(),A(M)});I.then(A,R).finally(()=>N.dispose())})}class n{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(T){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=T,!this.queuedPromise){const M=()=>{if(this.queuedPromise=null,this.isDisposed)return;const A=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,A};this.queuedPromise=new Promise(A=>{this.activePromise.then(M,M).then(A)})}return new Promise((M,A)=>{this.queuedPromise.then(M,A)})}return this.activePromise=T(),new Promise((M,A)=>{this.activePromise.then(R=>{this.activePromise=null,M(R)},R=>{this.activePromise=null,A(R)})})}dispose(){this.isDisposed=!0}}e.Throttler=n;const s=(I,T)=>{let M=!0;const A=setTimeout(()=>{M=!1,T()},I);return{isTriggered:()=>M,dispose:()=>{clearTimeout(A),M=!1}}},t=I=>{let T=!0;return queueMicrotask(()=>{T&&(T=!1,I())}),{isTriggered:()=>T,dispose:()=>{T=!1}}};class i{constructor(T){this.defaultDelay=T,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(T,M=this.defaultDelay){this.task=T,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((R,N)=>{this.doResolve=R,this.doReject=N}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const R=this.task;return this.task=null,R()}}));const A=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=M===f.MicrotaskDelay?t(A):s(M,A),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new k.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=i;class o{constructor(T){this.delayer=new i(T),this.throttler=new n}trigger(T,M){return this.delayer.trigger(()=>this.throttler.queue(T),M)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}e.ThrottledDelayer=o;function g(I,T){return T?new Promise((M,A)=>{const R=setTimeout(()=>{N.dispose(),M()},I),N=T.onCancellationRequested(()=>{clearTimeout(R),N.dispose(),A(new k.CancellationError)})}):v(M=>g(I,M))}function u(I,T=0,M){const A=setTimeout(()=>{I(),M&&R.dispose()},T),R=(0,L.toDisposable)(()=>{clearTimeout(A),M?.deleteAndLeak(R)});return M?.add(R),R}function l(I,T=A=>!!A,M=null){let A=0;const R=I.length,N=()=>{if(A>=R)return Promise.resolve(M);const O=I[A++];return Promise.resolve(O()).then(F=>T(F)?Promise.resolve(F):N())};return N()}class r{constructor(T,M){this._isDisposed=!1,this._token=-1,typeof T=="function"&&typeof M=="number"&&this.setIfNotSet(T,M)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(T,M){if(this._isDisposed)throw new k.BugIndicatingError("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,T()},M)}setIfNotSet(T,M){if(this._isDisposed)throw new k.BugIndicatingError("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,T()},M))}}e.TimeoutTimer=r;class a{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(T,M,A=globalThis){if(this.isDisposed)throw new k.BugIndicatingError("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const R=A.setInterval(()=>{T()},M);this.disposable=(0,L.toDisposable)(()=>{A.clearInterval(R),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}}e.IntervalTimer=a;class d{constructor(T,M){this.timeoutToken=-1,this.runner=T,this.timeout=M,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(T=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,T)}get delay(){return this.timeout}set delay(T){this.timeout=T}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=d,function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?e._runWhenIdle=(I,T)=>{(0,y.setTimeout0)(()=>{if(M)return;const A=Date.now()+15;T(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,A-Date.now())}}))});let M=!1;return{dispose(){M||(M=!0)}}}:e._runWhenIdle=(I,T,M)=>{const A=I.requestIdleCallback(T,typeof M=="number"?{timeout:M}:void 0);let R=!1;return{dispose(){R||(R=!0,I.cancelIdleCallback(A))}}},e.runWhenGlobalIdle=I=>(0,e._runWhenIdle)(globalThis,I)}();class m{constructor(T,M){this._didRun=!1,this._executor=()=>{try{this._value=M()}catch(A){this._error=A}finally{this._didRun=!0}},this._handle=(0,e._runWhenIdle)(T,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.AbstractIdleValue=m;class h extends m{constructor(T){super(globalThis,T)}}e.GlobalIdleValue=h;class C{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((T,M)=>{this.completeCallback=T,this.errorCallback=M})}complete(T){return new Promise(M=>{this.completeCallback(T),this.outcome={outcome:0,value:T},M()})}error(T){return new Promise(M=>{this.errorCallback(T),this.outcome={outcome:1,value:T},M()})}cancel(){return this.error(new k.CancellationError)}}e.DeferredPromise=C;var b;(function(I){async function T(A){let R;const N=await Promise.all(A.map(O=>O.then(x=>x,x=>{R||(R=x)})));if(typeof R<"u")throw R;return N}I.settled=T;function M(A){return new Promise(async(R,N)=>{try{await A(R,N)}catch(O){N(O)}})}I.withAsyncBody=M})(b||(e.Promises=b={}));class w{static fromArray(T){return new w(M=>{M.emitMany(T)})}static fromPromise(T){return new w(async M=>{M.emitMany(await T)})}static fromPromises(T){return new w(async M=>{await Promise.all(T.map(async A=>M.emitOne(await A)))})}static merge(T){return new w(async M=>{await Promise.all(T.map(async A=>{for await(const R of A)M.emitOne(R)}))})}static{this.EMPTY=w.fromArray([])}constructor(T,M){this._state=0,this._results=[],this._error=null,this._onReturn=M,this._onStateChanged=new E.Emitter,queueMicrotask(async()=>{const A={emitOne:R=>this.emitOne(R),emitMany:R=>this.emitMany(R),reject:R=>this.reject(R)};try{await Promise.resolve(T(A)),this.resolve()}catch(R){this.reject(R)}finally{A.emitOne=void 0,A.emitMany=void 0,A.reject=void 0}})}[Symbol.asyncIterator](){let T=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(T<this._results.length)return{done:!1,value:this._results[T++]};if(this._state===1)return{done:!0,value:void 0};await E.Event.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(T,M){return new w(async A=>{for await(const R of T)A.emitOne(M(R))})}map(T){return w.map(this,T)}static filter(T,M){return new w(async A=>{for await(const R of T)M(R)&&A.emitOne(R)})}filter(T){return w.filter(this,T)}static coalesce(T){return w.filter(T,M=>!!M)}coalesce(){return w.coalesce(this)}static async toPromise(T){const M=[];for await(const A of T)M.push(A);return M}toPromise(){return w.toPromise(this)}emitOne(T){this._state===0&&(this._results.push(T),this._onStateChanged.fire())}emitMany(T){this._state===0&&(this._results=this._results.concat(T),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(T){this._state===0&&(this._state=2,this._error=T,this._onStateChanged.fire())}}e.AsyncIterableObject=w;class S extends w{constructor(T,M){super(M),this._source=T}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=S;function D(I){const T=new c.CancellationTokenSource,M=I(T.token);return new S(T,async A=>{const R=T.token.onCancellationRequested(()=>{R.dispose(),T.dispose(),A.reject(new k.CancellationError)});try{for await(const N of M){if(T.token.isCancellationRequested)return;A.emitOne(N)}R.dispose(),T.dispose()}catch(N){R.dispose(),T.dispose(),A.reject(N)}})}}),define(oe[621],re([1,0,14,2]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarVisibilityController=void 0;class E extends k.Disposable{constructor(y,f,_){super(),this._visibility=y,this._visibleClassName=f,this._invisibleClassName=_,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new c.TimeoutTimer)}setVisibility(y){this._visibility!==y&&(this._visibility=y,this._updateShouldBeVisible())}setShouldBeVisible(y){this._rawShouldBeVisible=y,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const y=this._applyVisibilitySetting();this._shouldBeVisible!==y&&(this._shouldBeVisible=y,this.ensureVisibility())}setIsNeeded(y){this._isNeeded!==y&&(this._isNeeded=y,this.ensureVisibility())}setDomNode(y){this._domNode=y,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(y){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(y?" fade":"")))}}e.ScrollbarVisibilityController=E}),define(oe[248],re([1,0,157,13,14,300,190,6,53]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndexTreeModel=void 0,e.isFilterResult=v,e.getVisibleState=p;function v(t){return typeof t=="object"&&"visibility"in t&&"data"in t}function p(t){switch(t){case!0:return 1;case!1:return 0;default:return t}}function n(t){return typeof t.collapsible=="boolean"}class s{constructor(i,o,g,u={}){this.user=i,this.list=o,this.rootRef=[],this.eventBufferer=new f.EventBufferer,this._onDidChangeCollapseState=new f.Emitter,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new f.Emitter,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new f.Emitter,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new E.Delayer(L.MicrotaskDelay),this.collapseByDefault=typeof u.collapseByDefault>"u"?!1:u.collapseByDefault,this.allowNonCollapsibleParents=u.allowNonCollapsibleParents??!1,this.filter=u.filter,this.autoExpandSingleChildren=typeof u.autoExpandSingleChildren>"u"?!1:u.autoExpandSingleChildren,this.root={parent:void 0,element:g,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(i,o,g=_.Iterable.empty(),u={}){if(i.length===0)throw new c.TreeError(this.user,"Invalid tree location");u.diffIdentityProvider?this.spliceSmart(u.diffIdentityProvider,i,o,g,u):this.spliceSimple(i,o,g,u)}spliceSmart(i,o,g,u=_.Iterable.empty(),l,r=l.diffDepth??0){const{parentNode:a}=this.getParentNodeWithListIndex(o);if(!a.lastDiffIds)return this.spliceSimple(o,g,u,l);const d=[...u],m=o[o.length-1],h=new y.LcsDiff({getElements:()=>a.lastDiffIds},{getElements:()=>[...a.children.slice(0,m),...d,...a.children.slice(m+g)].map(D=>i.getId(D.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return a.lastDiffIds=void 0,this.spliceSimple(o,g,d,l);const C=o.slice(0,-1),b=(D,I,T)=>{if(r>0)for(let M=0;M<T;M++)D--,I--,this.spliceSmart(i,[...C,D,0],Number.MAX_SAFE_INTEGER,d[I].children,l,r-1)};let w=Math.min(a.children.length,m+g),S=d.length;for(const D of h.changes.sort((I,T)=>T.originalStart-I.originalStart))b(w,S,w-(D.originalStart+D.originalLength)),w=D.originalStart,S=D.modifiedStart-m,this.spliceSimple([...C,w],D.originalLength,_.Iterable.slice(d,S,S+D.modifiedLength),l);b(w,S,w)}spliceSimple(i,o,g=_.Iterable.empty(),{onDidCreateNode:u,onDidDeleteNode:l,diffIdentityProvider:r}){const{parentNode:a,listIndex:d,revealed:m,visible:h}=this.getParentNodeWithListIndex(i),C=[],b=_.Iterable.map(g,N=>this.createTreeNode(N,a,a.visible?1:0,m,C,u)),w=i[i.length-1];let S=0;for(let N=w;N>=0&&N<a.children.length;N--){const O=a.children[N];if(O.visible){S=O.visibleChildIndex;break}}const D=[];let I=0,T=0;for(const N of b)D.push(N),T+=N.renderNodeCount,N.visible&&(N.visibleChildIndex=S+I++);const M=(0,k.splice)(a.children,w,o,D);r?a.lastDiffIds?(0,k.splice)(a.lastDiffIds,w,o,D.map(N=>r.getId(N.element).toString())):a.lastDiffIds=a.children.map(N=>r.getId(N.element).toString()):a.lastDiffIds=void 0;let A=0;for(const N of M)N.visible&&A++;if(A!==0)for(let N=w+D.length;N<a.children.length;N++){const O=a.children[N];O.visible&&(O.visibleChildIndex-=A)}if(a.visibleChildrenCount+=I-A,m&&h){const N=M.reduce((O,x)=>O+(x.visible?x.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,T-N),this.list.splice(d,N,C)}if(M.length>0&&l){const N=O=>{l(O),O.children.forEach(N)};M.forEach(N)}this._onDidSplice.fire({insertedNodes:D,deletedNodes:M});let R=a;for(;R;){if(R.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}R=R.parent}}rerender(i){if(i.length===0)throw new c.TreeError(this.user,"Invalid tree location");const{node:o,listIndex:g,revealed:u}=this.getTreeNodeWithListIndex(i);o.visible&&u&&this.list.splice(g,1,[o])}has(i){return this.hasTreeNode(i)}getListIndex(i){const{listIndex:o,visible:g,revealed:u}=this.getTreeNodeWithListIndex(i);return g&&u?o:-1}getListRenderCount(i){return this.getTreeNode(i).renderNodeCount}isCollapsible(i){return this.getTreeNode(i).collapsible}setCollapsible(i,o){const g=this.getTreeNode(i);typeof o>"u"&&(o=!g.collapsible);const u={collapsible:o};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(i,u))}isCollapsed(i){return this.getTreeNode(i).collapsed}setCollapsed(i,o,g){const u=this.getTreeNode(i);typeof o>"u"&&(o=!u.collapsed);const l={collapsed:o,recursive:g||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(i,l))}_setCollapseState(i,o){const{node:g,listIndex:u,revealed:l}=this.getTreeNodeWithListIndex(i),r=this._setListNodeCollapseState(g,u,l,o);if(g!==this.root&&this.autoExpandSingleChildren&&r&&!n(o)&&g.collapsible&&!g.collapsed&&!o.recursive){let a=-1;for(let d=0;d<g.children.length;d++)if(g.children[d].visible)if(a>-1){a=-1;break}else a=d;a>-1&&this._setCollapseState([...i,a],o)}return r}_setListNodeCollapseState(i,o,g,u){const l=this._setNodeCollapseState(i,u,!1);if(!g||!i.visible||!l)return l;const r=i.renderNodeCount,a=this.updateNodeAfterCollapseChange(i),d=r-(o===-1?0:1);return this.list.splice(o+1,d,a.slice(1)),l}_setNodeCollapseState(i,o,g){let u;if(i===this.root?u=!1:(n(o)?(u=i.collapsible!==o.collapsible,i.collapsible=o.collapsible):i.collapsible?(u=i.collapsed!==o.collapsed,i.collapsed=o.collapsed):u=!1,u&&this._onDidChangeCollapseState.fire({node:i,deep:g})),!n(o)&&o.recursive)for(const l of i.children)u=this._setNodeCollapseState(l,o,!0)||u;return u}expandTo(i){this.eventBufferer.bufferEvents(()=>{let o=this.getTreeNode(i);for(;o.parent;)o=o.parent,i=i.slice(0,i.length-1),o.collapsed&&this._setCollapseState(i,{collapsed:!1,recursive:!1})})}refilter(){const i=this.root.renderNodeCount,o=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,i,o),this.refilterDelayer.cancel()}createTreeNode(i,o,g,u,l,r){const a={parent:o,element:i.element,children:[],depth:o.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof i.collapsible=="boolean"?i.collapsible:typeof i.collapsed<"u",collapsed:typeof i.collapsed>"u"?this.collapseByDefault:i.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},d=this._filterNode(a,g);a.visibility=d,u&&l.push(a);const m=i.children||_.Iterable.empty(),h=u&&d!==0&&!a.collapsed;let C=0,b=1;for(const w of m){const S=this.createTreeNode(w,a,d,h,l,r);a.children.push(S),b+=S.renderNodeCount,S.visible&&(S.visibleChildIndex=C++)}return this.allowNonCollapsibleParents||(a.collapsible=a.collapsible||a.children.length>0),a.visibleChildrenCount=C,a.visible=d===2?C>0:d===1,a.visible?a.collapsed||(a.renderNodeCount=b):(a.renderNodeCount=0,u&&l.pop()),r?.(a),a}updateNodeAfterCollapseChange(i){const o=i.renderNodeCount,g=[];return this._updateNodeAfterCollapseChange(i,g),this._updateAncestorsRenderNodeCount(i.parent,g.length-o),g}_updateNodeAfterCollapseChange(i,o){if(i.visible===!1)return 0;if(o.push(i),i.renderNodeCount=1,!i.collapsed)for(const g of i.children)i.renderNodeCount+=this._updateNodeAfterCollapseChange(g,o);return this._onDidChangeRenderNodeCount.fire(i),i.renderNodeCount}updateNodeAfterFilterChange(i){const o=i.renderNodeCount,g=[];return this._updateNodeAfterFilterChange(i,i.visible?1:0,g),this._updateAncestorsRenderNodeCount(i.parent,g.length-o),g}_updateNodeAfterFilterChange(i,o,g,u=!0){let l;if(i!==this.root){if(l=this._filterNode(i,o),l===0)return i.visible=!1,i.renderNodeCount=0,!1;u&&g.push(i)}const r=g.length;i.renderNodeCount=i===this.root?0:1;let a=!1;if(!i.collapsed||l!==0){let d=0;for(const m of i.children)a=this._updateNodeAfterFilterChange(m,l,g,u&&!i.collapsed)||a,m.visible&&(m.visibleChildIndex=d++);i.visibleChildrenCount=d}else i.visibleChildrenCount=0;return i!==this.root&&(i.visible=l===2?a:l===1,i.visibility=l),i.visible?i.collapsed||(i.renderNodeCount+=g.length-r):(i.renderNodeCount=0,u&&g.pop()),this._onDidChangeRenderNodeCount.fire(i),i.visible}_updateAncestorsRenderNodeCount(i,o){if(o!==0)for(;i;)i.renderNodeCount+=o,this._onDidChangeRenderNodeCount.fire(i),i=i.parent}_filterNode(i,o){const g=this.filter?this.filter.filter(i.element,o):1;return typeof g=="boolean"?(i.filterData=void 0,g?1:0):v(g)?(i.filterData=g.data,p(g.visibility)):(i.filterData=void 0,p(g))}hasTreeNode(i,o=this.root){if(!i||i.length===0)return!0;const[g,...u]=i;return g<0||g>o.children.length?!1:this.hasTreeNode(u,o.children[g])}getTreeNode(i,o=this.root){if(!i||i.length===0)return o;const[g,...u]=i;if(g<0||g>o.children.length)throw new c.TreeError(this.user,"Invalid tree location");return this.getTreeNode(u,o.children[g])}getTreeNodeWithListIndex(i){if(i.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:o,listIndex:g,revealed:u,visible:l}=this.getParentNodeWithListIndex(i),r=i[i.length-1];if(r<0||r>o.children.length)throw new c.TreeError(this.user,"Invalid tree location");const a=o.children[r];return{node:a,listIndex:g,revealed:u,visible:l&&a.visible}}getParentNodeWithListIndex(i,o=this.root,g=0,u=!0,l=!0){const[r,...a]=i;if(r<0||r>o.children.length)throw new c.TreeError(this.user,"Invalid tree location");for(let d=0;d<r;d++)g+=o.children[d].renderNodeCount;return u=u&&!o.collapsed,l=l&&o.visible,a.length===0?{parentNode:o,listIndex:g,revealed:u,visible:l}:this.getParentNodeWithListIndex(a,o.children[r],g+1,u,l)}getNode(i=[]){return this.getTreeNode(i)}getNodeLocation(i){const o=[];let g=i;for(;g.parent;)o.push(g.parent.children.indexOf(g)),g=g.parent;return o.reverse()}getParentNodeLocation(i){if(i.length!==0)return i.length===1?[]:(0,k.tail2)(i)[0]}getFirstElementChild(i){const o=this.getTreeNode(i);if(o.children.length!==0)return o.children[0].element}}e.IndexTreeModel=s}),define(oe[249],re([1,0,248,157,53]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectTreeModel=void 0;class L{constructor(f,_,v={}){this.user=f,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new c.IndexTreeModel(f,_,null,v),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,v.sorter&&(this.sorter={compare(p,n){return v.sorter.compare(p.element,n.element)}}),this.identityProvider=v.identityProvider}setChildren(f,_=E.Iterable.empty(),v={}){const p=this.getElementLocation(f);this._setChildren(p,this.preserveCollapseState(_),v)}_setChildren(f,_=E.Iterable.empty(),v){const p=new Set,n=new Set,s=i=>{if(i.element===null)return;const o=i;if(p.add(o.element),this.nodes.set(o.element,o),this.identityProvider){const g=this.identityProvider.getId(o.element).toString();n.add(g),this.nodesByIdentity.set(g,o)}v.onDidCreateNode?.(o)},t=i=>{if(i.element===null)return;const o=i;if(p.has(o.element)||this.nodes.delete(o.element),this.identityProvider){const g=this.identityProvider.getId(o.element).toString();n.has(g)||this.nodesByIdentity.delete(g)}v.onDidDeleteNode?.(o)};this.model.splice([...f,0],Number.MAX_VALUE,_,{...v,onDidCreateNode:s,onDidDeleteNode:t})}preserveCollapseState(f=E.Iterable.empty()){return this.sorter&&(f=[...f].sort(this.sorter.compare.bind(this.sorter))),E.Iterable.map(f,_=>{let v=this.nodes.get(_.element);if(!v&&this.identityProvider){const s=this.identityProvider.getId(_.element).toString();v=this.nodesByIdentity.get(s)}if(!v){let s;return typeof _.collapsed>"u"?s=void 0:_.collapsed===k.ObjectTreeElementCollapseState.Collapsed||_.collapsed===k.ObjectTreeElementCollapseState.PreserveOrCollapsed?s=!0:_.collapsed===k.ObjectTreeElementCollapseState.Expanded||_.collapsed===k.ObjectTreeElementCollapseState.PreserveOrExpanded?s=!1:s=!!_.collapsed,{..._,children:this.preserveCollapseState(_.children),collapsed:s}}const p=typeof _.collapsible=="boolean"?_.collapsible:v.collapsible;let n;return typeof _.collapsed>"u"||_.collapsed===k.ObjectTreeElementCollapseState.PreserveOrCollapsed||_.collapsed===k.ObjectTreeElementCollapseState.PreserveOrExpanded?n=v.collapsed:_.collapsed===k.ObjectTreeElementCollapseState.Collapsed?n=!0:_.collapsed===k.ObjectTreeElementCollapseState.Expanded?n=!1:n=!!_.collapsed,{..._,collapsible:p,collapsed:n,children:this.preserveCollapseState(_.children)}})}rerender(f){const _=this.getElementLocation(f);this.model.rerender(_)}getFirstElementChild(f=null){const _=this.getElementLocation(f);return this.model.getFirstElementChild(_)}has(f){return this.nodes.has(f)}getListIndex(f){const _=this.getElementLocation(f);return this.model.getListIndex(_)}getListRenderCount(f){const _=this.getElementLocation(f);return this.model.getListRenderCount(_)}isCollapsible(f){const _=this.getElementLocation(f);return this.model.isCollapsible(_)}setCollapsible(f,_){const v=this.getElementLocation(f);return this.model.setCollapsible(v,_)}isCollapsed(f){const _=this.getElementLocation(f);return this.model.isCollapsed(_)}setCollapsed(f,_,v){const p=this.getElementLocation(f);return this.model.setCollapsed(p,_,v)}expandTo(f){const _=this.getElementLocation(f);this.model.expandTo(_)}refilter(){this.model.refilter()}getNode(f=null){if(f===null)return this.model.getNode(this.model.rootRef);const _=this.nodes.get(f);if(!_)throw new k.TreeError(this.user,`Tree element not found: ${f}`);return _}getNodeLocation(f){return f.element}getParentNodeLocation(f){if(f===null)throw new k.TreeError(this.user,"Invalid getParentNodeLocation call");const _=this.nodes.get(f);if(!_)throw new k.TreeError(this.user,`Tree element not found: ${f}`);const v=this.model.getNodeLocation(_),p=this.model.getParentNodeLocation(v);return this.model.getNode(p).element}getElementLocation(f){if(f===null)return[];const _=this.nodes.get(f);if(!_)throw new k.TreeError(this.user,`Tree element not found: ${f}`);return this.model.getNodeLocation(_)}}e.ObjectTreeModel=L}),define(oe[622],re([1,0,249,157,13,6,53]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTreeModel=e.DefaultElementMapper=e.CompressedObjectTreeModel=void 0,e.compress=_,e.decompress=p;function f(r){const a=[r.element],d=r.incompressible||!1;return{element:{elements:a,incompressible:d},children:y.Iterable.map(y.Iterable.from(r.children),f),collapsible:r.collapsible,collapsed:r.collapsed}}function _(r){const a=[r.element],d=r.incompressible||!1;let m,h;for(;[h,m]=y.Iterable.consume(y.Iterable.from(r.children),2),!(h.length!==1||h[0].incompressible);)r=h[0],a.push(r.element);return{element:{elements:a,incompressible:d},children:y.Iterable.map(y.Iterable.concat(h,m),_),collapsible:r.collapsible,collapsed:r.collapsed}}function v(r,a=0){let d;return a<r.element.elements.length-1?d=[v(r,a+1)]:d=y.Iterable.map(y.Iterable.from(r.children),m=>v(m,0)),a===0&&r.element.incompressible?{element:r.element.elements[a],children:d,incompressible:!0,collapsible:r.collapsible,collapsed:r.collapsed}:{element:r.element.elements[a],children:d,collapsible:r.collapsible,collapsed:r.collapsed}}function p(r){return v(r,0)}function n(r,a,d){return r.element===a?{...r,children:d}:{...r,children:y.Iterable.map(y.Iterable.from(r.children),m=>n(m,a,d))}}const s=r=>({getId(a){return a.elements.map(d=>r.getId(d).toString()).join("\0")}});class t{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(a,d,m={}){this.user=a,this.rootRef=null,this.nodes=new Map,this.model=new c.ObjectTreeModel(a,d,m),this.enabled=typeof m.compressionEnabled>"u"?!0:m.compressionEnabled,this.identityProvider=m.identityProvider}setChildren(a,d=y.Iterable.empty(),m){const h=m.diffIdentityProvider&&s(m.diffIdentityProvider);if(a===null){const R=y.Iterable.map(d,this.enabled?_:f);this._setChildren(null,R,{diffIdentityProvider:h,diffDepth:1/0});return}const C=this.nodes.get(a);if(!C)throw new k.TreeError(this.user,"Unknown compressed tree node");const b=this.model.getNode(C),w=this.model.getParentNodeLocation(C),S=this.model.getNode(w),D=p(b),I=n(D,a,d),T=(this.enabled?_:f)(I),M=m.diffIdentityProvider?(R,N)=>m.diffIdentityProvider.getId(R)===m.diffIdentityProvider.getId(N):void 0;if((0,E.equals)(T.element.elements,b.element.elements,M)){this._setChildren(C,T.children||y.Iterable.empty(),{diffIdentityProvider:h,diffDepth:1});return}const A=S.children.map(R=>R===b?T:R);this._setChildren(S.element,A,{diffIdentityProvider:h,diffDepth:b.depth-S.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(a){if(a===this.enabled)return;this.enabled=a;const m=this.model.getNode().children,h=y.Iterable.map(m,p),C=y.Iterable.map(h,a?_:f);this._setChildren(null,C,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(a,d,m){const h=new Set,C=w=>{for(const S of w.element.elements)h.add(S),this.nodes.set(S,w.element)},b=w=>{for(const S of w.element.elements)h.has(S)||this.nodes.delete(S)};this.model.setChildren(a,d,{...m,onDidCreateNode:C,onDidDeleteNode:b})}has(a){return this.nodes.has(a)}getListIndex(a){const d=this.getCompressedNode(a);return this.model.getListIndex(d)}getListRenderCount(a){const d=this.getCompressedNode(a);return this.model.getListRenderCount(d)}getNode(a){if(typeof a>"u")return this.model.getNode();const d=this.getCompressedNode(a);return this.model.getNode(d)}getNodeLocation(a){const d=this.model.getNodeLocation(a);return d===null?null:d.elements[d.elements.length-1]}getParentNodeLocation(a){const d=this.getCompressedNode(a),m=this.model.getParentNodeLocation(d);return m===null?null:m.elements[m.elements.length-1]}getFirstElementChild(a){const d=this.getCompressedNode(a);return this.model.getFirstElementChild(d)}isCollapsible(a){const d=this.getCompressedNode(a);return this.model.isCollapsible(d)}setCollapsible(a,d){const m=this.getCompressedNode(a);return this.model.setCollapsible(m,d)}isCollapsed(a){const d=this.getCompressedNode(a);return this.model.isCollapsed(d)}setCollapsed(a,d,m){const h=this.getCompressedNode(a);return this.model.setCollapsed(h,d,m)}expandTo(a){const d=this.getCompressedNode(a);this.model.expandTo(d)}rerender(a){const d=this.getCompressedNode(a);this.model.rerender(d)}refilter(){this.model.refilter()}getCompressedNode(a){if(a===null)return null;const d=this.nodes.get(a);if(!d)throw new k.TreeError(this.user,`Tree element not found: ${a}`);return d}}e.CompressedObjectTreeModel=t;const i=r=>r[r.length-1];e.DefaultElementMapper=i;class o{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(a=>new o(this.unwrapper,a))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(a,d){this.unwrapper=a,this.node=d}}function g(r,a){return{splice(d,m,h){a.splice(d,m,h.map(C=>r.map(C)))},updateElementHeight(d,m){a.updateElementHeight(d,m)}}}function u(r,a){return{...a,identityProvider:a.identityProvider&&{getId(d){return a.identityProvider.getId(r(d))}},sorter:a.sorter&&{compare(d,m){return a.sorter.compare(d.elements[0],m.elements[0])}},filter:a.filter&&{filter(d,m){return a.filter.filter(r(d),m)}}}}class l{get onDidSplice(){return L.Event.map(this.model.onDidSplice,({insertedNodes:a,deletedNodes:d})=>({insertedNodes:a.map(m=>this.nodeMapper.map(m)),deletedNodes:d.map(m=>this.nodeMapper.map(m))}))}get onDidChangeCollapseState(){return L.Event.map(this.model.onDidChangeCollapseState,({node:a,deep:d})=>({node:this.nodeMapper.map(a),deep:d}))}get onDidChangeRenderNodeCount(){return L.Event.map(this.model.onDidChangeRenderNodeCount,a=>this.nodeMapper.map(a))}constructor(a,d,m={}){this.rootRef=null,this.elementMapper=m.elementMapper||e.DefaultElementMapper;const h=C=>this.elementMapper(C.elements);this.nodeMapper=new k.WeakMapper(C=>new o(h,C)),this.model=new t(a,g(this.nodeMapper,d),u(h,m))}setChildren(a,d=y.Iterable.empty(),m={}){this.model.setChildren(a,d,m)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(a){this.model.setCompressionEnabled(a)}has(a){return this.model.has(a)}getListIndex(a){return this.model.getListIndex(a)}getListRenderCount(a){return this.model.getListRenderCount(a)}getNode(a){return this.nodeMapper.map(this.model.getNode(a))}getNodeLocation(a){return a.element}getParentNodeLocation(a){return this.model.getParentNodeLocation(a)}getFirstElementChild(a){const d=this.model.getFirstElementChild(a);return d===null||typeof d>"u"?d:this.elementMapper(d.elements)}isCollapsible(a){return this.model.isCollapsible(a)}setCollapsible(a,d){return this.model.setCollapsible(a,d)}isCollapsed(a){return this.model.isCollapsed(a)}setCollapsed(a,d,m){return this.model.setCollapsed(a,d,m)}expandTo(a){return this.model.expandTo(a)}rerender(a){return this.model.rerender(a)}refilter(){return this.model.refilter()}getCompressedTreeNode(a=null){return this.model.getNode(a)}}e.CompressibleObjectTreeModel=l}),define(oe[346],re([1,0,16]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.env=e.cwd=void 0;let k;const E=globalThis.vscode;if(typeof E<"u"&&typeof E.process<"u"){const L=E.process;k={get platform(){return L.platform},get arch(){return L.arch},get env(){return L.env},cwd(){return L.cwd()}}}else typeof process<"u"?k={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:k={get platform(){return c.isWindows?"win32":c.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=k.cwd,e.env=k.env,e.platform=k.platform}),define(oe[347],re([1,0,346]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isHotReloadEnabled=k,e.registerHotReloadHandler=E;function k(){return c.env&&!!c.env.VSCODE_DEV}function E(f){if(k()){const _=L();return _.add(f),{dispose(){_.delete(f)}}}else return{dispose(){}}}function L(){y||(y=new Set);const f=globalThis;return f.$hotReload_applyNewExports||(f.$hotReload_applyNewExports=_=>{const v={config:{mode:void 0},..._},p=[];for(const n of y){const s=n(v);s&&p.push(s)}if(p.length>0)return n=>{let s=!1;for(const t of p)t(n)&&(s=!0);return s}}),y}let y;k()&&E(({oldExports:f,newSrc:_,config:v})=>{if(v.mode==="patch-prototype")return p=>{for(const n in p){const s=p[n];if(console.log(`[hot-reload] Patching prototype methods of '${n}'`,{exportedItem:s}),typeof s=="function"&&s.prototype){const t=f[n];if(t){for(const i of Object.getOwnPropertyNames(s.prototype)){const o=Object.getOwnPropertyDescriptor(s.prototype,i),g=Object.getOwnPropertyDescriptor(t.prototype,i);o?.value?.toString()!==g?.value?.toString()&&console.log(`[hot-reload] Patching prototype method '${n}.${i}'`),Object.defineProperty(t.prototype,i,o)}p[n]=t}}}return!0}})}),define(oe[170],re([1,0,347,21]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readHotReloadableExport=E,e.observeHotReloadableExports=L;function E(y,f){return L([y],f),y}function L(y,f){(0,c.isHotReloadEnabled)()&&(0,k.observableSignalFromEvent)("reload",v=>(0,c.registerHotReloadHandler)(({oldExports:p})=>{if([...Object.values(p)].some(n=>y.includes(n)))return n=>(v(void 0),!0)})).read(f)}}),define(oe[99],re([1,0,346]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sep=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.normalize=e.posix=e.win32=void 0;const k=65,E=97,L=90,y=122,f=46,_=47,v=92,p=58,n=63;class s extends Error{constructor(C,b,w){let S;typeof b=="string"&&b.indexOf("not ")===0?(S="must not be",b=b.replace(/^not /,"")):S="must be";const D=C.indexOf(".")!==-1?"property":"argument";let I=`The "${C}" ${D} ${S} of type ${b}`;I+=`. Received type ${typeof w}`,super(I),this.code="ERR_INVALID_ARG_TYPE"}}function t(h,C){if(h===null||typeof h!="object")throw new s(C,"Object",h)}function i(h,C){if(typeof h!="string")throw new s(C,"string",h)}const o=c.platform==="win32";function g(h){return h===_||h===v}function u(h){return h===_}function l(h){return h>=k&&h<=L||h>=E&&h<=y}function r(h,C,b,w){let S="",D=0,I=-1,T=0,M=0;for(let A=0;A<=h.length;++A){if(A<h.length)M=h.charCodeAt(A);else{if(w(M))break;M=_}if(w(M)){if(!(I===A-1||T===1))if(T===2){if(S.length<2||D!==2||S.charCodeAt(S.length-1)!==f||S.charCodeAt(S.length-2)!==f){if(S.length>2){const R=S.lastIndexOf(b);R===-1?(S="",D=0):(S=S.slice(0,R),D=S.length-1-S.lastIndexOf(b)),I=A,T=0;continue}else if(S.length!==0){S="",D=0,I=A,T=0;continue}}C&&(S+=S.length>0?`${b}..`:"..",D=2)}else S.length>0?S+=`${b}${h.slice(I+1,A)}`:S=h.slice(I+1,A),D=A-I-1;I=A,T=0}else M===f&&T!==-1?++T:T=-1}return S}function a(h){return h?`${h[0]==="."?"":"."}${h}`:""}function d(h,C){t(C,"pathObject");const b=C.dir||C.root,w=C.base||`${C.name||""}${a(C.ext)}`;return b?b===C.root?`${b}${w}`:`${b}${h}${w}`:w}e.win32={resolve(...h){let C="",b="",w=!1;for(let S=h.length-1;S>=-1;S--){let D;if(S>=0){if(D=h[S],i(D,`paths[${S}]`),D.length===0)continue}else C.length===0?D=c.cwd():(D=c.env[`=${C}`]||c.cwd(),(D===void 0||D.slice(0,2).toLowerCase()!==C.toLowerCase()&&D.charCodeAt(2)===v)&&(D=`${C}\\`));const I=D.length;let T=0,M="",A=!1;const R=D.charCodeAt(0);if(I===1)g(R)&&(T=1,A=!0);else if(g(R))if(A=!0,g(D.charCodeAt(1))){let N=2,O=N;for(;N<I&&!g(D.charCodeAt(N));)N++;if(N<I&&N!==O){const x=D.slice(O,N);for(O=N;N<I&&g(D.charCodeAt(N));)N++;if(N<I&&N!==O){for(O=N;N<I&&!g(D.charCodeAt(N));)N++;(N===I||N!==O)&&(M=`\\\\${x}\\${D.slice(O,N)}`,T=N)}}}else T=1;else l(R)&&D.charCodeAt(1)===p&&(M=D.slice(0,2),T=2,I>2&&g(D.charCodeAt(2))&&(A=!0,T=3));if(M.length>0)if(C.length>0){if(M.toLowerCase()!==C.toLowerCase())continue}else C=M;if(w){if(C.length>0)break}else if(b=`${D.slice(T)}\\${b}`,w=A,A&&C.length>0)break}return b=r(b,!w,"\\",g),w?`${C}\\${b}`:`${C}${b}`||"."},normalize(h){i(h,"path");const C=h.length;if(C===0)return".";let b=0,w,S=!1;const D=h.charCodeAt(0);if(C===1)return u(D)?"\\":h;if(g(D))if(S=!0,g(h.charCodeAt(1))){let T=2,M=T;for(;T<C&&!g(h.charCodeAt(T));)T++;if(T<C&&T!==M){const A=h.slice(M,T);for(M=T;T<C&&g(h.charCodeAt(T));)T++;if(T<C&&T!==M){for(M=T;T<C&&!g(h.charCodeAt(T));)T++;if(T===C)return`\\\\${A}\\${h.slice(M)}\\`;T!==M&&(w=`\\\\${A}\\${h.slice(M,T)}`,b=T)}}}else b=1;else l(D)&&h.charCodeAt(1)===p&&(w=h.slice(0,2),b=2,C>2&&g(h.charCodeAt(2))&&(S=!0,b=3));let I=b<C?r(h.slice(b),!S,"\\",g):"";return I.length===0&&!S&&(I="."),I.length>0&&g(h.charCodeAt(C-1))&&(I+="\\"),w===void 0?S?`\\${I}`:I:S?`${w}\\${I}`:`${w}${I}`},isAbsolute(h){i(h,"path");const C=h.length;if(C===0)return!1;const b=h.charCodeAt(0);return g(b)||C>2&&l(b)&&h.charCodeAt(1)===p&&g(h.charCodeAt(2))},join(...h){if(h.length===0)return".";let C,b;for(let D=0;D<h.length;++D){const I=h[D];i(I,"path"),I.length>0&&(C===void 0?C=b=I:C+=`\\${I}`)}if(C===void 0)return".";let w=!0,S=0;if(typeof b=="string"&&g(b.charCodeAt(0))){++S;const D=b.length;D>1&&g(b.charCodeAt(1))&&(++S,D>2&&(g(b.charCodeAt(2))?++S:w=!1))}if(w){for(;S<C.length&&g(C.charCodeAt(S));)S++;S>=2&&(C=`\\${C.slice(S)}`)}return e.win32.normalize(C)},relative(h,C){if(i(h,"from"),i(C,"to"),h===C)return"";const b=e.win32.resolve(h),w=e.win32.resolve(C);if(b===w||(h=b.toLowerCase(),C=w.toLowerCase(),h===C))return"";let S=0;for(;S<h.length&&h.charCodeAt(S)===v;)S++;let D=h.length;for(;D-1>S&&h.charCodeAt(D-1)===v;)D--;const I=D-S;let T=0;for(;T<C.length&&C.charCodeAt(T)===v;)T++;let M=C.length;for(;M-1>T&&C.charCodeAt(M-1)===v;)M--;const A=M-T,R=I<A?I:A;let N=-1,O=0;for(;O<R;O++){const F=h.charCodeAt(S+O);if(F!==C.charCodeAt(T+O))break;F===v&&(N=O)}if(O!==R){if(N===-1)return w}else{if(A>R){if(C.charCodeAt(T+O)===v)return w.slice(T+O+1);if(O===2)return w.slice(T+O)}I>R&&(h.charCodeAt(S+O)===v?N=O:O===2&&(N=3)),N===-1&&(N=0)}let x="";for(O=S+N+1;O<=D;++O)(O===D||h.charCodeAt(O)===v)&&(x+=x.length===0?"..":"\\..");return T+=N,x.length>0?`${x}${w.slice(T,M)}`:(w.charCodeAt(T)===v&&++T,w.slice(T,M))},toNamespacedPath(h){if(typeof h!="string"||h.length===0)return h;const C=e.win32.resolve(h);if(C.length<=2)return h;if(C.charCodeAt(0)===v){if(C.charCodeAt(1)===v){const b=C.charCodeAt(2);if(b!==n&&b!==f)return`\\\\?\\UNC\\${C.slice(2)}`}}else if(l(C.charCodeAt(0))&&C.charCodeAt(1)===p&&C.charCodeAt(2)===v)return`\\\\?\\${C}`;return h},dirname(h){i(h,"path");const C=h.length;if(C===0)return".";let b=-1,w=0;const S=h.charCodeAt(0);if(C===1)return g(S)?h:".";if(g(S)){if(b=w=1,g(h.charCodeAt(1))){let T=2,M=T;for(;T<C&&!g(h.charCodeAt(T));)T++;if(T<C&&T!==M){for(M=T;T<C&&g(h.charCodeAt(T));)T++;if(T<C&&T!==M){for(M=T;T<C&&!g(h.charCodeAt(T));)T++;if(T===C)return h;T!==M&&(b=w=T+1)}}}}else l(S)&&h.charCodeAt(1)===p&&(b=C>2&&g(h.charCodeAt(2))?3:2,w=b);let D=-1,I=!0;for(let T=C-1;T>=w;--T)if(g(h.charCodeAt(T))){if(!I){D=T;break}}else I=!1;if(D===-1){if(b===-1)return".";D=b}return h.slice(0,D)},basename(h,C){C!==void 0&&i(C,"suffix"),i(h,"path");let b=0,w=-1,S=!0,D;if(h.length>=2&&l(h.charCodeAt(0))&&h.charCodeAt(1)===p&&(b=2),C!==void 0&&C.length>0&&C.length<=h.length){if(C===h)return"";let I=C.length-1,T=-1;for(D=h.length-1;D>=b;--D){const M=h.charCodeAt(D);if(g(M)){if(!S){b=D+1;break}}else T===-1&&(S=!1,T=D+1),I>=0&&(M===C.charCodeAt(I)?--I===-1&&(w=D):(I=-1,w=T))}return b===w?w=T:w===-1&&(w=h.length),h.slice(b,w)}for(D=h.length-1;D>=b;--D)if(g(h.charCodeAt(D))){if(!S){b=D+1;break}}else w===-1&&(S=!1,w=D+1);return w===-1?"":h.slice(b,w)},extname(h){i(h,"path");let C=0,b=-1,w=0,S=-1,D=!0,I=0;h.length>=2&&h.charCodeAt(1)===p&&l(h.charCodeAt(0))&&(C=w=2);for(let T=h.length-1;T>=C;--T){const M=h.charCodeAt(T);if(g(M)){if(!D){w=T+1;break}continue}S===-1&&(D=!1,S=T+1),M===f?b===-1?b=T:I!==1&&(I=1):b!==-1&&(I=-1)}return b===-1||S===-1||I===0||I===1&&b===S-1&&b===w+1?"":h.slice(b,S)},format:d.bind(null,"\\"),parse(h){i(h,"path");const C={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return C;const b=h.length;let w=0,S=h.charCodeAt(0);if(b===1)return g(S)?(C.root=C.dir=h,C):(C.base=C.name=h,C);if(g(S)){if(w=1,g(h.charCodeAt(1))){let N=2,O=N;for(;N<b&&!g(h.charCodeAt(N));)N++;if(N<b&&N!==O){for(O=N;N<b&&g(h.charCodeAt(N));)N++;if(N<b&&N!==O){for(O=N;N<b&&!g(h.charCodeAt(N));)N++;N===b?w=N:N!==O&&(w=N+1)}}}}else if(l(S)&&h.charCodeAt(1)===p){if(b<=2)return C.root=C.dir=h,C;if(w=2,g(h.charCodeAt(2))){if(b===3)return C.root=C.dir=h,C;w=3}}w>0&&(C.root=h.slice(0,w));let D=-1,I=w,T=-1,M=!0,A=h.length-1,R=0;for(;A>=w;--A){if(S=h.charCodeAt(A),g(S)){if(!M){I=A+1;break}continue}T===-1&&(M=!1,T=A+1),S===f?D===-1?D=A:R!==1&&(R=1):D!==-1&&(R=-1)}return T!==-1&&(D===-1||R===0||R===1&&D===T-1&&D===I+1?C.base=C.name=h.slice(I,T):(C.name=h.slice(I,D),C.base=h.slice(I,T),C.ext=h.slice(D,T))),I>0&&I!==w?C.dir=h.slice(0,I-1):C.dir=C.root,C},sep:"\\",delimiter:";",win32:null,posix:null};const m=(()=>{if(o){const h=/\\/g;return()=>{const C=c.cwd().replace(h,"/");return C.slice(C.indexOf("/"))}}return()=>c.cwd()})();e.posix={resolve(...h){let C="",b=!1;for(let w=h.length-1;w>=-1&&!b;w--){const S=w>=0?h[w]:m();i(S,`paths[${w}]`),S.length!==0&&(C=`${S}/${C}`,b=S.charCodeAt(0)===_)}return C=r(C,!b,"/",u),b?`/${C}`:C.length>0?C:"."},normalize(h){if(i(h,"path"),h.length===0)return".";const C=h.charCodeAt(0)===_,b=h.charCodeAt(h.length-1)===_;return h=r(h,!C,"/",u),h.length===0?C?"/":b?"./":".":(b&&(h+="/"),C?`/${h}`:h)},isAbsolute(h){return i(h,"path"),h.length>0&&h.charCodeAt(0)===_},join(...h){if(h.length===0)return".";let C;for(let b=0;b<h.length;++b){const w=h[b];i(w,"path"),w.length>0&&(C===void 0?C=w:C+=`/${w}`)}return C===void 0?".":e.posix.normalize(C)},relative(h,C){if(i(h,"from"),i(C,"to"),h===C||(h=e.posix.resolve(h),C=e.posix.resolve(C),h===C))return"";const b=1,w=h.length,S=w-b,D=1,I=C.length-D,T=S<I?S:I;let M=-1,A=0;for(;A<T;A++){const N=h.charCodeAt(b+A);if(N!==C.charCodeAt(D+A))break;N===_&&(M=A)}if(A===T)if(I>T){if(C.charCodeAt(D+A)===_)return C.slice(D+A+1);if(A===0)return C.slice(D+A)}else S>T&&(h.charCodeAt(b+A)===_?M=A:A===0&&(M=0));let R="";for(A=b+M+1;A<=w;++A)(A===w||h.charCodeAt(A)===_)&&(R+=R.length===0?"..":"/..");return`${R}${C.slice(D+M)}`},toNamespacedPath(h){return h},dirname(h){if(i(h,"path"),h.length===0)return".";const C=h.charCodeAt(0)===_;let b=-1,w=!0;for(let S=h.length-1;S>=1;--S)if(h.charCodeAt(S)===_){if(!w){b=S;break}}else w=!1;return b===-1?C?"/":".":C&&b===1?"//":h.slice(0,b)},basename(h,C){C!==void 0&&i(C,"ext"),i(h,"path");let b=0,w=-1,S=!0,D;if(C!==void 0&&C.length>0&&C.length<=h.length){if(C===h)return"";let I=C.length-1,T=-1;for(D=h.length-1;D>=0;--D){const M=h.charCodeAt(D);if(M===_){if(!S){b=D+1;break}}else T===-1&&(S=!1,T=D+1),I>=0&&(M===C.charCodeAt(I)?--I===-1&&(w=D):(I=-1,w=T))}return b===w?w=T:w===-1&&(w=h.length),h.slice(b,w)}for(D=h.length-1;D>=0;--D)if(h.charCodeAt(D)===_){if(!S){b=D+1;break}}else w===-1&&(S=!1,w=D+1);return w===-1?"":h.slice(b,w)},extname(h){i(h,"path");let C=-1,b=0,w=-1,S=!0,D=0;for(let I=h.length-1;I>=0;--I){const T=h.charCodeAt(I);if(T===_){if(!S){b=I+1;break}continue}w===-1&&(S=!1,w=I+1),T===f?C===-1?C=I:D!==1&&(D=1):C!==-1&&(D=-1)}return C===-1||w===-1||D===0||D===1&&C===w-1&&C===b+1?"":h.slice(C,w)},format:d.bind(null,"/"),parse(h){i(h,"path");const C={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return C;const b=h.charCodeAt(0)===_;let w;b?(C.root="/",w=1):w=0;let S=-1,D=0,I=-1,T=!0,M=h.length-1,A=0;for(;M>=w;--M){const R=h.charCodeAt(M);if(R===_){if(!T){D=M+1;break}continue}I===-1&&(T=!1,I=M+1),R===f?S===-1?S=M:A!==1&&(A=1):S!==-1&&(A=-1)}if(I!==-1){const R=D===0&&b?1:D;S===-1||A===0||A===1&&S===I-1&&S===D+1?C.base=C.name=h.slice(R,I):(C.name=h.slice(R,S),C.base=h.slice(R,I),C.ext=h.slice(S,I))}return D>0?C.dir=h.slice(0,D-1):b&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=o?e.win32.normalize:e.posix.normalize,e.resolve=o?e.win32.resolve:e.posix.resolve,e.relative=o?e.win32.relative:e.posix.relative,e.dirname=o?e.win32.dirname:e.posix.dirname,e.basename=o?e.win32.basename:e.posix.basename,e.extname=o?e.win32.extname:e.posix.extname,e.sep=o?e.win32.sep:e.posix.sep}),define(oe[250],re([1,0,99,16,11]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPathSeparator=L,e.toSlashes=y,e.toPosixPath=f,e.getRoot=_,e.isEqualOrParent=v,e.isWindowsDriveLetter=p,e.hasDriveLetter=n;function L(s){return s===47||s===92}function y(s){return s.replace(/[\\/]/g,c.posix.sep)}function f(s){return s.indexOf("/")===-1&&(s=y(s)),/^[a-zA-Z]:(\/|$)/.test(s)&&(s="/"+s),s}function _(s,t=c.posix.sep){if(!s)return"";const i=s.length,o=s.charCodeAt(0);if(L(o)){if(L(s.charCodeAt(1))&&!L(s.charCodeAt(2))){let u=3;const l=u;for(;u<i&&!L(s.charCodeAt(u));u++);if(l!==u&&!L(s.charCodeAt(u+1))){for(u+=1;u<i;u++)if(L(s.charCodeAt(u)))return s.slice(0,u+1).replace(/[\\/]/g,t)}}return t}else if(p(o)&&s.charCodeAt(1)===58)return L(s.charCodeAt(2))?s.slice(0,2)+t:s.slice(0,2);let g=s.indexOf("://");if(g!==-1){for(g+=3;g<i;g++)if(L(s.charCodeAt(g)))return s.slice(0,g+1)}return""}function v(s,t,i,o=c.sep){if(s===t)return!0;if(!s||!t||t.length>s.length)return!1;if(i){if(!(0,E.startsWithIgnoreCase)(s,t))return!1;if(t.length===s.length)return!0;let u=t.length;return t.charAt(t.length-1)===o&&u--,s.charAt(u)===o}return t.charAt(t.length-1)!==o&&(t+=o),s.indexOf(t)===0}function p(s){return s>=65&&s<=90||s>=97&&s<=122}function n(s,t=k.isWindows){return t?p(s.charCodeAt(0))&&s.charCodeAt(1)===58:!1}}),define(oe[623],re([1,0,82,99,16,11]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scoreFuzzy2=f,e.prepareQuery=o,e.pieceToQuery=u;const y=[void 0,[]];function f(l,r,a=0,d=0){const m=r;return m.values&&m.values.length>1?_(l,m.values,a,d):v(l,r,a,d)}function _(l,r,a,d){let m=0;const h=[];for(const C of r){const[b,w]=v(l,C,a,d);if(typeof b!="number")return y;m+=b,h.push(...w)}return[m,n(h)]}function v(l,r,a,d){const m=(0,c.fuzzyScore)(r.original,r.originalLowercase,a,l,l.toLowerCase(),d,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return m?[m[0],(0,c.createMatches)(m)]:y}const p=Object.freeze({score:0});function n(l){const r=l.sort((m,h)=>m.start-h.start),a=[];let d;for(const m of r)!d||!s(d,m)?(d=m,a.push(m)):(d.start=Math.min(d.start,m.start),d.end=Math.max(d.end,m.end));return a}function s(l,r){return!(l.end<r.start||r.end<l.start)}function t(l){return l.startsWith('"')&&l.endsWith('"')}const i=" ";function o(l){typeof l!="string"&&(l="");const r=l.toLowerCase(),{pathNormalized:a,normalized:d,normalizedLowercase:m}=g(l),h=a.indexOf(k.sep)>=0,C=t(l);let b;const w=l.split(i);if(w.length>1)for(const S of w){const D=t(S),{pathNormalized:I,normalized:T,normalizedLowercase:M}=g(S);T&&(b||(b=[]),b.push({original:S,originalLowercase:S.toLowerCase(),pathNormalized:I,normalized:T,normalizedLowercase:M,expectContiguousMatch:D}))}return{original:l,originalLowercase:r,pathNormalized:a,normalized:d,normalizedLowercase:m,values:b,containsPathSeparator:h,expectContiguousMatch:C}}function g(l){let r;E.isWindows?r=l.replace(/\//g,k.sep):r=l.replace(/\\/g,k.sep);const a=(0,L.stripWildcards)(r).replace(/\s|"/g,"");return{pathNormalized:r,normalized:a,normalizedLowercase:a.toLowerCase()}}function u(l){return Array.isArray(l)?o(l.map(r=>r.original).join(i)):o(l.original)}}),define(oe[348],re([1,0,14,250,45,99,16,11]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GLOB_SPLIT=e.GLOBSTAR=void 0,e.splitGlobAware=s,e.match=M,e.parse=A,e.isRelativePattern=R,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const _="[/\\\\]",v="[^/\\\\]",p=/\//g;function n(F,W){switch(F){case 0:return"";case 1:return`${v}*?`;default:return`(?:${_}|${v}+${_}${W?`|${_}${v}+`:""})*?`}}function s(F,W){if(!F)return[];const z=[];let q=!1,H=!1,K="";for(const U of F){switch(U){case W:if(!q&&!H){z.push(K),K="";continue}break;case"{":q=!0;break;case"}":q=!1;break;case"[":H=!0;break;case"]":H=!1;break}K+=U}return K&&z.push(K),z}function t(F){if(!F)return"";let W="";const z=s(F,e.GLOB_SPLIT);if(z.every(q=>q===e.GLOBSTAR))W=".*";else{let q=!1;z.forEach((H,K)=>{if(H===e.GLOBSTAR){if(q)return;W+=n(2,K===z.length-1)}else{let U=!1,Y="",Q=!1,X="";for(const G of H){if(G!=="}"&&U){Y+=G;continue}if(Q&&(G!=="]"||!X)){let P;G==="-"?P=G:(G==="^"||G==="!")&&!X?P="^":G===e.GLOB_SPLIT?P="":P=(0,f.escapeRegExpCharacters)(G),X+=P;continue}switch(G){case"{":U=!0;continue;case"[":Q=!0;continue;case"}":{const te=`(?:${s(Y,",").map(se=>t(se)).join("|")})`;W+=te,U=!1,Y="";break}case"]":{W+="["+X+"]",Q=!1,X="";break}case"?":W+=v;continue;case"*":W+=n(1);continue;default:W+=(0,f.escapeRegExpCharacters)(G)}}K<z.length-1&&(z[K+1]!==e.GLOBSTAR||K+2<z.length)&&(W+=_)}q=H===e.GLOBSTAR})}return W}const i=/^\*\*\/\*\.[\w\.-]+$/,o=/^\*\*\/([\w\.-]+)\/?$/,g=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,u=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,l=/^\*\*((\/[\w\.-]+)+)\/?$/,r=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,a=new E.LRUCache(1e4),d=function(){return!1},m=function(){return null};function h(F,W){if(!F)return m;let z;typeof F!="string"?z=F.pattern:z=F,z=z.trim();const q=`${z}_${!!W.trimForExclusions}`;let H=a.get(q);if(H)return C(H,F);let K;return i.test(z)?H=w(z.substr(4),z):(K=o.exec(b(z,W)))?H=S(K[1],z):(W.trimForExclusions?u:g).test(z)?H=D(z,W):(K=l.exec(b(z,W)))?H=I(K[1].substr(1),z,!0):(K=r.exec(b(z,W)))?H=I(K[1],z,!1):H=T(z),a.set(q,H),C(H,F)}function C(F,W){if(typeof W=="string")return F;const z=function(q,H){return(0,k.isEqualOrParent)(q,W.base,!y.isLinux)?F((0,f.ltrim)(q.substr(W.base.length),L.sep),H):null};return z.allBasenames=F.allBasenames,z.allPaths=F.allPaths,z.basenames=F.basenames,z.patterns=F.patterns,z}function b(F,W){return W.trimForExclusions&&F.endsWith("/**")?F.substr(0,F.length-2):F}function w(F,W){return function(z,q){return typeof z=="string"&&z.endsWith(F)?W:null}}function S(F,W){const z=`/${F}`,q=`\\${F}`,H=function(U,Y){return typeof U!="string"?null:Y?Y===F?W:null:U===F||U.endsWith(z)||U.endsWith(q)?W:null},K=[F];return H.basenames=K,H.patterns=[W],H.allBasenames=K,H}function D(F,W){const z=x(F.slice(1,-1).split(",").map(Y=>h(Y,W)).filter(Y=>Y!==m),F),q=z.length;if(!q)return m;if(q===1)return z[0];const H=function(Y,Q){for(let X=0,G=z.length;X<G;X++)if(z[X](Y,Q))return F;return null},K=z.find(Y=>!!Y.allBasenames);K&&(H.allBasenames=K.allBasenames);const U=z.reduce((Y,Q)=>Q.allPaths?Y.concat(Q.allPaths):Y,[]);return U.length&&(H.allPaths=U),H}function I(F,W,z){const q=L.sep===L.posix.sep,H=q?F:F.replace(p,L.sep),K=L.sep+H,U=L.posix.sep+F;let Y;return z?Y=function(Q,X){return typeof Q=="string"&&(Q===H||Q.endsWith(K)||!q&&(Q===F||Q.endsWith(U)))?W:null}:Y=function(Q,X){return typeof Q=="string"&&(Q===H||!q&&Q===F)?W:null},Y.allPaths=[(z?"*/":"./")+F],Y}function T(F){try{const W=new RegExp(`^${t(F)}$`);return function(z){return W.lastIndex=0,typeof z=="string"&&W.test(z)?F:null}}catch{return m}}function M(F,W,z){return!F||typeof W!="string"?!1:A(F)(W,void 0,z)}function A(F,W={}){if(!F)return d;if(typeof F=="string"||R(F)){const z=h(F,W);if(z===m)return d;const q=function(H,K){return!!z(H,K)};return z.allBasenames&&(q.allBasenames=z.allBasenames),z.allPaths&&(q.allPaths=z.allPaths),q}return N(F,W)}function R(F){const W=F;return W?typeof W.base=="string"&&typeof W.pattern=="string":!1}function N(F,W){const z=x(Object.getOwnPropertyNames(F).map(Y=>O(Y,F[Y],W)).filter(Y=>Y!==m)),q=z.length;if(!q)return m;if(!z.some(Y=>!!Y.requiresSiblings)){if(q===1)return z[0];const Y=function(G,P){let te;for(let se=0,ue=z.length;se<ue;se++){const ge=z[se](G,P);if(typeof ge=="string")return ge;(0,c.isThenable)(ge)&&(te||(te=[]),te.push(ge))}return te?(async()=>{for(const se of te){const ue=await se;if(typeof ue=="string")return ue}return null})():null},Q=z.find(G=>!!G.allBasenames);Q&&(Y.allBasenames=Q.allBasenames);const X=z.reduce((G,P)=>P.allPaths?G.concat(P.allPaths):G,[]);return X.length&&(Y.allPaths=X),Y}const H=function(Y,Q,X){let G,P;for(let te=0,se=z.length;te<se;te++){const ue=z[te];ue.requiresSiblings&&X&&(Q||(Q=(0,L.basename)(Y)),G||(G=Q.substr(0,Q.length-(0,L.extname)(Y).length)));const ge=ue(Y,Q,G,X);if(typeof ge=="string")return ge;(0,c.isThenable)(ge)&&(P||(P=[]),P.push(ge))}return P?(async()=>{for(const te of P){const se=await te;if(typeof se=="string")return se}return null})():null},K=z.find(Y=>!!Y.allBasenames);K&&(H.allBasenames=K.allBasenames);const U=z.reduce((Y,Q)=>Q.allPaths?Y.concat(Q.allPaths):Y,[]);return U.length&&(H.allPaths=U),H}function O(F,W,z){if(W===!1)return m;const q=h(F,z);if(q===m)return m;if(typeof W=="boolean")return q;if(W){const H=W.when;if(typeof H=="string"){const K=(U,Y,Q,X)=>{if(!X||!q(U,Y))return null;const G=H.replace("$(basename)",()=>Q),P=X(G);return(0,c.isThenable)(P)?P.then(te=>te?F:null):P?F:null};return K.requiresSiblings=!0,K}}return q}function x(F,W){const z=F.filter(Y=>!!Y.basenames);if(z.length<2)return F;const q=z.reduce((Y,Q)=>{const X=Q.basenames;return X?Y.concat(X):Y},[]);let H;if(W){H=[];for(let Y=0,Q=q.length;Y<Q;Y++)H.push(W)}else H=z.reduce((Y,Q)=>{const X=Q.patterns;return X?Y.concat(X):Y},[]);const K=function(Y,Q){if(typeof Y!="string")return null;if(!Q){let G;for(G=Y.length;G>0;G--){const P=Y.charCodeAt(G-1);if(P===47||P===92)break}Q=Y.substr(G)}const X=q.indexOf(Q);return X!==-1?H[X]:null};K.basenames=q,K.patterns=H,K.allBasenames=q;const U=F.filter(Y=>!Y.basenames);return U.push(K),U}}),define(oe[624],re([1,0,250,16]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeDriveLetter=E;function E(y,f=k.isWindows){return(0,c.hasDriveLetter)(y,f)?y.charAt(0).toUpperCase()+y.slice(1):y}let L=Object.create(null)}),define(oe[22],re([1,0,99,16]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URI=void 0,e.uriToFsPath=r;const E=/^\w[\w\d+.-]*$/,L=/^\//,y=/^\/\//;function f(C,b){if(!C.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${C.authority}", path: "${C.path}", query: "${C.query}", fragment: "${C.fragment}"}`);if(C.scheme&&!E.test(C.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(C.path){if(C.authority){if(!L.test(C.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(y.test(C.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function _(C,b){return!C&&!b?"file":C}function v(C,b){switch(C){case"https":case"http":case"file":b?b[0]!==n&&(b=n+b):b=n;break}return b}const p="",n="/",s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class t{static isUri(b){return b instanceof t?!0:b?typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function":!1}constructor(b,w,S,D,I,T=!1){typeof b=="object"?(this.scheme=b.scheme||p,this.authority=b.authority||p,this.path=b.path||p,this.query=b.query||p,this.fragment=b.fragment||p):(this.scheme=_(b,T),this.authority=w||p,this.path=v(this.scheme,S||p),this.query=D||p,this.fragment=I||p,f(this,T))}get fsPath(){return r(this,!1)}with(b){if(!b)return this;let{scheme:w,authority:S,path:D,query:I,fragment:T}=b;return w===void 0?w=this.scheme:w===null&&(w=p),S===void 0?S=this.authority:S===null&&(S=p),D===void 0?D=this.path:D===null&&(D=p),I===void 0?I=this.query:I===null&&(I=p),T===void 0?T=this.fragment:T===null&&(T=p),w===this.scheme&&S===this.authority&&D===this.path&&I===this.query&&T===this.fragment?this:new o(w,S,D,I,T)}static parse(b,w=!1){const S=s.exec(b);return S?new o(S[2]||p,h(S[4]||p),h(S[5]||p),h(S[7]||p),h(S[9]||p),w):new o(p,p,p,p,p)}static file(b){let w=p;if(k.isWindows&&(b=b.replace(/\\/g,n)),b[0]===n&&b[1]===n){const S=b.indexOf(n,2);S===-1?(w=b.substring(2),b=n):(w=b.substring(2,S),b=b.substring(S)||n)}return new o("file",w,b,p,p)}static from(b,w){return new o(b.scheme,b.authority,b.path,b.query,b.fragment,w)}static joinPath(b,...w){if(!b.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let S;return k.isWindows&&b.scheme==="file"?S=t.file(c.win32.join(r(b,!0),...w)).path:S=c.posix.join(b.path,...w),b.with({path:S})}toString(b=!1){return a(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof t)return b;{const w=new o(b);return w._formatted=b.external??null,w._fsPath=b._sep===i?b.fsPath??null:null,w}}else return b}}e.URI=t;const i=k.isWindows?1:void 0;class o extends t{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=r(this,!1)),this._fsPath}toString(b=!1){return b?a(this,!0):(this._formatted||(this._formatted=a(this,!1)),this._formatted)}toJSON(){const b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=i),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function u(C,b,w){let S,D=-1;for(let I=0;I<C.length;I++){const T=C.charCodeAt(I);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||b&&T===47||w&&T===91||w&&T===93||w&&T===58)D!==-1&&(S+=encodeURIComponent(C.substring(D,I)),D=-1),S!==void 0&&(S+=C.charAt(I));else{S===void 0&&(S=C.substr(0,I));const M=g[T];M!==void 0?(D!==-1&&(S+=encodeURIComponent(C.substring(D,I)),D=-1),S+=M):D===-1&&(D=I)}}return D!==-1&&(S+=encodeURIComponent(C.substring(D))),S!==void 0?S:C}function l(C){let b;for(let w=0;w<C.length;w++){const S=C.charCodeAt(w);S===35||S===63?(b===void 0&&(b=C.substr(0,w)),b+=g[S]):b!==void 0&&(b+=C[w])}return b!==void 0?b:C}function r(C,b){let w;return C.authority&&C.path.length>1&&C.scheme==="file"?w=`//${C.authority}${C.path}`:C.path.charCodeAt(0)===47&&(C.path.charCodeAt(1)>=65&&C.path.charCodeAt(1)<=90||C.path.charCodeAt(1)>=97&&C.path.charCodeAt(1)<=122)&&C.path.charCodeAt(2)===58?b?w=C.path.substr(1):w=C.path[1].toLowerCase()+C.path.substr(2):w=C.path,k.isWindows&&(w=w.replace(/\//g,"\\")),w}function a(C,b){const w=b?l:u;let S="",{scheme:D,authority:I,path:T,query:M,fragment:A}=C;if(D&&(S+=D,S+=":"),(I||D==="file")&&(S+=n,S+=n),I){let R=I.indexOf("@");if(R!==-1){const N=I.substr(0,R);I=I.substr(R+1),R=N.lastIndexOf(":"),R===-1?S+=w(N,!1,!1):(S+=w(N.substr(0,R),!1,!1),S+=":",S+=w(N.substr(R+1),!1,!0)),S+="@"}I=I.toLowerCase(),R=I.lastIndexOf(":"),R===-1?S+=w(I,!1,!0):(S+=w(I.substr(0,R),!1,!0),S+=I.substr(R))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){const R=T.charCodeAt(1);R>=65&&R<=90&&(T=`/${String.fromCharCode(R+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){const R=T.charCodeAt(0);R>=65&&R<=90&&(T=`${String.fromCharCode(R+32)}:${T.substr(2)}`)}S+=w(T,!0,!1)}return M&&(S+="?",S+=w(M,!1,!1)),A&&(S+="#",S+=b?A:u(A,!1,!1)),S}function d(C){try{return decodeURIComponent(C)}catch{return C.length>3?C.substr(0,3)+d(C.substr(3)):C}}const m=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function h(C){return C.match(m)?C.replace(m,b=>d(b)):C}}),define(oe[251],re([1,0,158,22]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=E,e.parse=L,e.revive=f;function E(_){return JSON.stringify(_,y)}function L(_){let v=JSON.parse(_);return v=f(v),v}function y(_,v){return v instanceof RegExp?{$mid:2,source:v.source,flags:v.flags}:v}function f(_,v=0){if(!_||v>200)return _;if(typeof _=="object"){switch(_.$mid){case 1:return k.URI.revive(_);case 2:return new RegExp(_.source,_.flags);case 17:return new Date(_.source)}if(_ instanceof c.VSBuffer||_ instanceof Uint8Array)return _;if(Array.isArray(_))for(let p=0;p<_.length;++p)_[p]=f(_[p],v+1);else for(const p in _)Object.hasOwnProperty.call(_,p)&&(_[p]=f(_[p],v+1))}return _}}),define(oe[47],re([1,0,8,16,11,22,99]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COI=e.FileAccess=e.VSCODE_AUTHORITY=e.RemoteAuthorities=e.connectionTokenQueryName=e.Schemas=void 0,e.matchesScheme=_,e.matchesSomeScheme=v;var f;(function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeCopilotBackingChatCodeBlock="vscode-copilot-chat-code-block",t.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting"})(f||(e.Schemas=f={}));function _(t,i){return L.URI.isUri(t)?(0,E.equalsIgnoreCase)(t.scheme,i):(0,E.startsWithIgnoreCase)(t,i+":")}function v(t,...i){return i.some(o=>_(t,o))}e.connectionTokenQueryName="tkn";class p{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(i){this._preferredWebSchema=i}get _remoteResourcesPath(){return y.posix.join(this._serverRootPath,f.vscodeRemoteResource)}rewrite(i){if(this._delegate)try{return this._delegate(i)}catch(a){return c.onUnexpectedError(a),i}const o=i.authority;let g=this._hosts[o];g&&g.indexOf(":")!==-1&&g.indexOf("[")===-1&&(g=`[${g}]`);const u=this._ports[o],l=this._connectionTokens[o];let r=`path=${encodeURIComponent(i.path)}`;return typeof l=="string"&&(r+=`&${e.connectionTokenQueryName}=${encodeURIComponent(l)}`),L.URI.from({scheme:k.isWeb?this._preferredWebSchema:f.vscodeRemoteResource,authority:`${g}:${u}`,path:this._remoteResourcesPath,query:r})}}e.RemoteAuthorities=new p,e.VSCODE_AUTHORITY="vscode-app";class n{static{this.FALLBACK_AUTHORITY=e.VSCODE_AUTHORITY}uriToBrowserUri(i){return i.scheme===f.vscodeRemote?e.RemoteAuthorities.rewrite(i):i.scheme===f.file&&(k.isNative||k.webWorkerOrigin===`${f.vscodeFileResource}://${n.FALLBACK_AUTHORITY}`)?i.with({scheme:f.vscodeFileResource,authority:i.authority||n.FALLBACK_AUTHORITY,query:null,fragment:null}):i}}e.FileAccess=new n;var s;(function(t){const i=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(i.get("3"));const o="vscode-coi";function g(l){let r;typeof l=="string"?r=new URL(l).searchParams:l instanceof URL?r=l.searchParams:L.URI.isUri(l)&&(r=new URL(l.toString(!0)).searchParams);const a=r?.get(o);if(a)return i.get(a)}t.getHeadersFromQuery=g;function u(l,r,a){if(!globalThis.crossOriginIsolated)return;const d=r&&a?"3":a?"2":"1";l instanceof URLSearchParams?l.set(o,d):l[o]=d}t.addSearchParam=u})(s||(e.COI=s={}))}),define(oe[5],re([1,0,64,247,46,77,14,8,6,349,2,47,16,129,52]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.DragAndDropObserver=e.ModifierKeyEmitter=e.basicMarkupHtmlTags=e.Namespace=e.EventHelper=e.EventType=e.sharedMutationObserver=e.Dimension=e.WindowIntervalTimer=e.scheduleAtNextAnimationFrame=e.runAtThisOrScheduleAtNextAnimationFrame=e.WindowIdleValue=e.addStandardDisposableGenericMouseUpListener=e.addStandardDisposableGenericMouseDownListener=e.addStandardDisposableListener=e.onDidUnregisterWindow=e.onWillUnregisterWindow=e.onDidRegisterWindow=e.hasWindow=e.getWindowById=e.getWindowId=e.getWindowsCount=e.getWindows=e.getDocument=e.getWindow=e.registerWindow=void 0,e.clearNode=g,e.addDisposableListener=l,e.addDisposableGenericMouseDownListener=C,e.addDisposableGenericMouseUpListener=b,e.runWhenWindowIdle=w,e.getComputedStyle=T,e.getClientArea=M,e.getTopLeftOffset=N,e.size=O,e.getDomNodePagePosition=x,e.getDomNodeZoomLevel=F,e.getTotalWidth=W,e.getContentWidth=z,e.getContentHeight=q,e.getTotalHeight=H,e.isAncestor=K,e.findParentWithClass=U,e.hasParentWithClass=Y,e.isShadowRoot=Q,e.isInShadowDOM=X,e.getShadowRoot=G,e.getActiveElement=P,e.isActiveElement=te,e.isAncestorOfActiveElement=se,e.getActiveDocument=ue,e.getActiveWindow=ge,e.createStyleSheet2=ce,e.createStyleSheet=ne,e.createCSSRule=$,e.removeCSSRulesContainingSelector=Z,e.isHTMLElement=le,e.isHTMLAnchorElement=de,e.isSVGElement=me,e.isMouseEvent=be,e.isKeyboardEvent=ve,e.isEventLike=Le,e.saveParentsScrollTop=Se,e.restoreParentsScrollTop=ye,e.trackFocus=ke,e.after=Re,e.append=Pe,e.prepend=Fe,e.reset=je,e.$=we,e.setVisibility=Oe,e.show=Be,e.hide=Ue,e.computeScreenAwareSize=Ye,e.windowOpenNoOpener=Qe,e.animate=tt,e.asCSSUrl=it,e.asCSSPropertyValue=ut,e.asCssValueWithDefault=ct,e.hookDomPurifyHrefAndSrcSanitizer=nt,e.h=ht,e.svgElem=wt,o=function(){const Ce=new Map;(0,i.ensureCodeWindow)(i.mainWindow,1);const _e={window:i.mainWindow,disposables:new p.DisposableStore};Ce.set(i.mainWindow.vscodeWindowId,_e);const Ie=new _.Emitter,Ae=new _.Emitter,We=new _.Emitter;function Ke(He,$e){return(typeof He=="number"?Ce.get(He):void 0)??($e?_e:void 0)}return{onDidRegisterWindow:Ie.event,onWillUnregisterWindow:We.event,onDidUnregisterWindow:Ae.event,registerWindow(He){if(Ce.has(He.vscodeWindowId))return p.Disposable.None;const $e=new p.DisposableStore,Ve={window:He,disposables:$e.add(new p.DisposableStore)};return Ce.set(He.vscodeWindowId,Ve),$e.add((0,p.toDisposable)(()=>{Ce.delete(He.vscodeWindowId),Ae.fire(He)})),$e.add(l(He,e.EventType.BEFORE_UNLOAD,()=>{We.fire(He)})),Ie.fire(Ve),$e},getWindows(){return Ce.values()},getWindowsCount(){return Ce.size},getWindowId(He){return He.vscodeWindowId},hasWindow(He){return Ce.has(He)},getWindowById:Ke,getWindow(He){const $e=He;if($e?.ownerDocument?.defaultView)return $e.ownerDocument.defaultView.window;const Ve=He;return Ve?.view?Ve.view.window:i.mainWindow},getDocument(He){const $e=He;return(0,e.getWindow)($e).document}}}(),e.registerWindow=o.registerWindow,e.getWindow=o.getWindow,e.getDocument=o.getDocument,e.getWindows=o.getWindows,e.getWindowsCount=o.getWindowsCount,e.getWindowId=o.getWindowId,e.getWindowById=o.getWindowById,e.hasWindow=o.hasWindow,e.onDidRegisterWindow=o.onDidRegisterWindow,e.onWillUnregisterWindow=o.onWillUnregisterWindow,e.onDidUnregisterWindow=o.onDidUnregisterWindow;function g(Ce){for(;Ce.firstChild;)Ce.firstChild.remove()}class u{constructor(_e,Ie,Ae,We){this._node=_e,this._type=Ie,this._handler=Ae,this._options=We||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function l(Ce,_e,Ie,Ae){return new u(Ce,_e,Ie,Ae)}function r(Ce,_e){return function(Ie){return _e(new L.StandardMouseEvent(Ce,Ie))}}function a(Ce){return function(_e){return Ce(new E.StandardKeyboardEvent(_e))}}const d=function(_e,Ie,Ae,We){let Ke=Ae;return Ie==="click"||Ie==="mousedown"||Ie==="contextmenu"?Ke=r((0,e.getWindow)(_e),Ae):(Ie==="keydown"||Ie==="keypress"||Ie==="keyup")&&(Ke=a(Ae)),l(_e,Ie,Ke,We)};e.addStandardDisposableListener=d;const m=function(_e,Ie,Ae){const We=r((0,e.getWindow)(_e),Ie);return C(_e,We,Ae)};e.addStandardDisposableGenericMouseDownListener=m;const h=function(_e,Ie,Ae){const We=r((0,e.getWindow)(_e),Ie);return b(_e,We,Ae)};e.addStandardDisposableGenericMouseUpListener=h;function C(Ce,_e,Ie){return l(Ce,s.isIOS&&k.BrowserFeatures.pointerEvents?e.EventType.POINTER_DOWN:e.EventType.MOUSE_DOWN,_e,Ie)}function b(Ce,_e,Ie){return l(Ce,s.isIOS&&k.BrowserFeatures.pointerEvents?e.EventType.POINTER_UP:e.EventType.MOUSE_UP,_e,Ie)}function w(Ce,_e,Ie){return(0,y._runWhenIdle)(Ce,_e,Ie)}class S extends y.AbstractIdleValue{constructor(_e,Ie){super(_e,Ie)}}e.WindowIdleValue=S;class D extends y.IntervalTimer{constructor(_e){super(),this.defaultTarget=_e&&(0,e.getWindow)(_e)}cancelAndSet(_e,Ie,Ae){return super.cancelAndSet(_e,Ie,Ae??this.defaultTarget)}}e.WindowIntervalTimer=D;class I{constructor(_e,Ie=0){this._runner=_e,this.priority=Ie,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(_e){(0,f.onUnexpectedError)(_e)}}static sort(_e,Ie){return Ie.priority-_e.priority}}(function(){const Ce=new Map,_e=new Map,Ie=new Map,Ae=new Map,We=Ke=>{Ie.set(Ke,!1);const He=Ce.get(Ke)??[];for(_e.set(Ke,He),Ce.set(Ke,[]),Ae.set(Ke,!0);He.length>0;)He.sort(I.sort),He.shift().execute();Ae.set(Ke,!1)};e.scheduleAtNextAnimationFrame=(Ke,He,$e=0)=>{const Ve=(0,e.getWindowId)(Ke),Me=new I(He,$e);let xe=Ce.get(Ve);return xe||(xe=[],Ce.set(Ve,xe)),xe.push(Me),Ie.get(Ve)||(Ie.set(Ve,!0),Ke.requestAnimationFrame(()=>We(Ve))),Me},e.runAtThisOrScheduleAtNextAnimationFrame=(Ke,He,$e)=>{const Ve=(0,e.getWindowId)(Ke);if(Ae.get(Ve)){const Me=new I(He,$e);let xe=_e.get(Ve);return xe||(xe=[],_e.set(Ve,xe)),xe.push(Me),Me}else return(0,e.scheduleAtNextAnimationFrame)(Ke,He,$e)}})();function T(Ce){return(0,e.getWindow)(Ce).getComputedStyle(Ce,null)}function M(Ce,_e){const Ie=(0,e.getWindow)(Ce),Ae=Ie.document;if(Ce!==Ae.body)return new R(Ce.clientWidth,Ce.clientHeight);if(s.isIOS&&Ie?.visualViewport)return new R(Ie.visualViewport.width,Ie.visualViewport.height);if(Ie?.innerWidth&&Ie.innerHeight)return new R(Ie.innerWidth,Ie.innerHeight);if(Ae.body&&Ae.body.clientWidth&&Ae.body.clientHeight)return new R(Ae.body.clientWidth,Ae.body.clientHeight);if(Ae.documentElement&&Ae.documentElement.clientWidth&&Ae.documentElement.clientHeight)return new R(Ae.documentElement.clientWidth,Ae.documentElement.clientHeight);if(_e)return M(_e);throw new Error("Unable to figure out browser width and height")}class A{static convertToPixels(_e,Ie){return parseFloat(Ie)||0}static getDimension(_e,Ie,Ae){const We=T(_e),Ke=We?We.getPropertyValue(Ie):"0";return A.convertToPixels(_e,Ke)}static getBorderLeftWidth(_e){return A.getDimension(_e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(_e){return A.getDimension(_e,"border-right-width","borderRightWidth")}static getBorderTopWidth(_e){return A.getDimension(_e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(_e){return A.getDimension(_e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(_e){return A.getDimension(_e,"padding-left","paddingLeft")}static getPaddingRight(_e){return A.getDimension(_e,"padding-right","paddingRight")}static getPaddingTop(_e){return A.getDimension(_e,"padding-top","paddingTop")}static getPaddingBottom(_e){return A.getDimension(_e,"padding-bottom","paddingBottom")}static getMarginLeft(_e){return A.getDimension(_e,"margin-left","marginLeft")}static getMarginTop(_e){return A.getDimension(_e,"margin-top","marginTop")}static getMarginRight(_e){return A.getDimension(_e,"margin-right","marginRight")}static getMarginBottom(_e){return A.getDimension(_e,"margin-bottom","marginBottom")}}class R{static{this.None=new R(0,0)}constructor(_e,Ie){this.width=_e,this.height=Ie}with(_e=this.width,Ie=this.height){return _e!==this.width||Ie!==this.height?new R(_e,Ie):this}static is(_e){return typeof _e=="object"&&typeof _e.height=="number"&&typeof _e.width=="number"}static lift(_e){return _e instanceof R?_e:new R(_e.width,_e.height)}static equals(_e,Ie){return _e===Ie?!0:!_e||!Ie?!1:_e.width===Ie.width&&_e.height===Ie.height}}e.Dimension=R;function N(Ce){let _e=Ce.offsetParent,Ie=Ce.offsetTop,Ae=Ce.offsetLeft;for(;(Ce=Ce.parentNode)!==null&&Ce!==Ce.ownerDocument.body&&Ce!==Ce.ownerDocument.documentElement;){Ie-=Ce.scrollTop;const We=Q(Ce)?null:T(Ce);We&&(Ae-=We.direction!=="rtl"?Ce.scrollLeft:-Ce.scrollLeft),Ce===_e&&(Ae+=A.getBorderLeftWidth(Ce),Ie+=A.getBorderTopWidth(Ce),Ie+=Ce.offsetTop,Ae+=Ce.offsetLeft,_e=Ce.offsetParent)}return{left:Ae,top:Ie}}function O(Ce,_e,Ie){typeof _e=="number"&&(Ce.style.width=`${_e}px`),typeof Ie=="number"&&(Ce.style.height=`${Ie}px`)}function x(Ce){const _e=Ce.getBoundingClientRect(),Ie=(0,e.getWindow)(Ce);return{left:_e.left+Ie.scrollX,top:_e.top+Ie.scrollY,width:_e.width,height:_e.height}}function F(Ce){let _e=Ce,Ie=1;do{const Ae=T(_e).zoom;Ae!=null&&Ae!=="1"&&(Ie*=Ae),_e=_e.parentElement}while(_e!==null&&_e!==_e.ownerDocument.documentElement);return Ie}function W(Ce){const _e=A.getMarginLeft(Ce)+A.getMarginRight(Ce);return Ce.offsetWidth+_e}function z(Ce){const _e=A.getBorderLeftWidth(Ce)+A.getBorderRightWidth(Ce),Ie=A.getPaddingLeft(Ce)+A.getPaddingRight(Ce);return Ce.offsetWidth-_e-Ie}function q(Ce){const _e=A.getBorderTopWidth(Ce)+A.getBorderBottomWidth(Ce),Ie=A.getPaddingTop(Ce)+A.getPaddingBottom(Ce);return Ce.offsetHeight-_e-Ie}function H(Ce){const _e=A.getMarginTop(Ce)+A.getMarginBottom(Ce);return Ce.offsetHeight+_e}function K(Ce,_e){return!!_e?.contains(Ce)}function U(Ce,_e,Ie){for(;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;){if(Ce.classList.contains(_e))return Ce;if(Ie){if(typeof Ie=="string"){if(Ce.classList.contains(Ie))return null}else if(Ce===Ie)return null}Ce=Ce.parentNode}return null}function Y(Ce,_e,Ie){return!!U(Ce,_e,Ie)}function Q(Ce){return Ce&&!!Ce.host&&!!Ce.mode}function X(Ce){return!!G(Ce)}function G(Ce){for(;Ce.parentNode;){if(Ce===Ce.ownerDocument?.body)return null;Ce=Ce.parentNode}return Q(Ce)?Ce:null}function P(){let Ce=ue().activeElement;for(;Ce?.shadowRoot;)Ce=Ce.shadowRoot.activeElement;return Ce}function te(Ce){return P()===Ce}function se(Ce){return K(P(),Ce)}function ue(){return(0,e.getWindowsCount)()<=1?i.mainWindow.document:Array.from((0,e.getWindows)()).map(({window:_e})=>_e.document).find(_e=>_e.hasFocus())??i.mainWindow.document}function ge(){return ue().defaultView?.window??i.mainWindow}const pe=new Map;function ce(){return new ie}class ie{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(_e){_e!==this._currentCssStyle&&(this._currentCssStyle=_e,this._styleSheet?this._styleSheet.innerText=_e:this._styleSheet=ne(i.mainWindow.document.head,Ie=>Ie.innerText=_e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function ne(Ce=i.mainWindow.document.head,_e,Ie){const Ae=document.createElement("style");if(Ae.type="text/css",Ae.media="screen",_e?.(Ae),Ce.appendChild(Ae),Ie&&Ie.add((0,p.toDisposable)(()=>Ae.remove())),Ce===i.mainWindow.document.head){const We=new Set;pe.set(Ae,We);for(const{window:Ke,disposables:He}of(0,e.getWindows)()){if(Ke===i.mainWindow)continue;const $e=He.add(J(Ae,We,Ke));Ie?.add($e)}}return Ae}function J(Ce,_e,Ie){const Ae=new p.DisposableStore,We=Ce.cloneNode(!0);Ie.document.head.appendChild(We),Ae.add((0,p.toDisposable)(()=>We.remove()));for(const Ke of V(Ce))We.sheet?.insertRule(Ke.cssText,We.sheet?.cssRules.length);return Ae.add(e.sharedMutationObserver.observe(Ce,Ae,{childList:!0})(()=>{We.textContent=Ce.textContent})),_e.add(We),Ae.add((0,p.toDisposable)(()=>_e.delete(We))),Ae}e.sharedMutationObserver=new class{constructor(){this.mutationObservers=new Map}observe(Ce,_e,Ie){let Ae=this.mutationObservers.get(Ce);Ae||(Ae=new Map,this.mutationObservers.set(Ce,Ae));const We=(0,t.hash)(Ie);let Ke=Ae.get(We);if(Ke)Ke.users+=1;else{const He=new _.Emitter,$e=new MutationObserver(Me=>He.fire(Me));$e.observe(Ce,Ie);const Ve=Ke={users:1,observer:$e,onDidMutate:He.event};_e.add((0,p.toDisposable)(()=>{Ve.users-=1,Ve.users===0&&(He.dispose(),$e.disconnect(),Ae?.delete(We),Ae?.size===0&&this.mutationObservers.delete(Ce))})),Ae.set(We,Ke)}return Ke.onDidMutate}};let B=null;function j(){return B||(B=ne()),B}function V(Ce){return Ce?.sheet?.rules?Ce.sheet.rules:Ce?.sheet?.cssRules?Ce.sheet.cssRules:[]}function $(Ce,_e,Ie=j()){if(!(!Ie||!_e)){Ie.sheet?.insertRule(`${Ce} {${_e}}`,0);for(const Ae of pe.get(Ie)??[])$(Ce,_e,Ae)}}function Z(Ce,_e=j()){if(!_e)return;const Ie=V(_e),Ae=[];for(let We=0;We<Ie.length;We++){const Ke=Ie[We];ee(Ke)&&Ke.selectorText.indexOf(Ce)!==-1&&Ae.push(We)}for(let We=Ae.length-1;We>=0;We--)_e.sheet?.deleteRule(Ae[We]);for(const We of pe.get(_e)??[])Z(Ce,We)}function ee(Ce){return typeof Ce.selectorText=="string"}function le(Ce){return Ce instanceof HTMLElement||Ce instanceof(0,e.getWindow)(Ce).HTMLElement}function de(Ce){return Ce instanceof HTMLAnchorElement||Ce instanceof(0,e.getWindow)(Ce).HTMLAnchorElement}function me(Ce){return Ce instanceof SVGElement||Ce instanceof(0,e.getWindow)(Ce).SVGElement}function be(Ce){return Ce instanceof MouseEvent||Ce instanceof(0,e.getWindow)(Ce).MouseEvent}function ve(Ce){return Ce instanceof KeyboardEvent||Ce instanceof(0,e.getWindow)(Ce).KeyboardEvent}e.EventType={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:c.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:c.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:c.isWebKit?"webkitAnimationIteration":"animationiteration"};function Le(Ce){const _e=Ce;return!!(_e&&typeof _e.preventDefault=="function"&&typeof _e.stopPropagation=="function")}e.EventHelper={stop:(Ce,_e)=>(Ce.preventDefault(),_e&&Ce.stopPropagation(),Ce)};function Se(Ce){const _e=[];for(let Ie=0;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;Ie++)_e[Ie]=Ce.scrollTop,Ce=Ce.parentNode;return _e}function ye(Ce,_e){for(let Ie=0;Ce&&Ce.nodeType===Ce.ELEMENT_NODE;Ie++)Ce.scrollTop!==_e[Ie]&&(Ce.scrollTop=_e[Ie]),Ce=Ce.parentNode}class Ee extends p.Disposable{static hasFocusWithin(_e){if(le(_e)){const Ie=G(_e),Ae=Ie?Ie.activeElement:_e.ownerDocument.activeElement;return K(Ae,_e)}else{const Ie=_e;return K(Ie.document.activeElement,Ie.document)}}constructor(_e){super(),this._onDidFocus=this._register(new _.Emitter),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new _.Emitter),this.onDidBlur=this._onDidBlur.event;let Ie=Ee.hasFocusWithin(_e),Ae=!1;const We=()=>{Ae=!1,Ie||(Ie=!0,this._onDidFocus.fire())},Ke=()=>{Ie&&(Ae=!0,(le(_e)?(0,e.getWindow)(_e):_e).setTimeout(()=>{Ae&&(Ae=!1,Ie=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Ee.hasFocusWithin(_e)!==Ie&&(Ie?Ke():We())},this._register(l(_e,e.EventType.FOCUS,We,!0)),this._register(l(_e,e.EventType.BLUR,Ke,!0)),le(_e)&&(this._register(l(_e,e.EventType.FOCUS_IN,()=>this._refreshStateHandler())),this._register(l(_e,e.EventType.FOCUS_OUT,()=>this._refreshStateHandler())))}}function ke(Ce){return new Ee(Ce)}function Re(Ce,_e){return Ce.after(_e),_e}function Pe(Ce,..._e){if(Ce.append(..._e),_e.length===1&&typeof _e[0]!="string")return _e[0]}function Fe(Ce,_e){return Ce.insertBefore(_e,Ce.firstChild),_e}function je(Ce,..._e){Ce.innerText="",Pe(Ce,..._e)}const Te=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ne;(function(Ce){Ce.HTML="http://www.w3.org/1999/xhtml",Ce.SVG="http://www.w3.org/2000/svg"})(Ne||(e.Namespace=Ne={}));function fe(Ce,_e,Ie,...Ae){const We=Te.exec(_e);if(!We)throw new Error("Bad use of emmet");const Ke=We[1]||"div";let He;return Ce!==Ne.HTML?He=document.createElementNS(Ce,Ke):He=document.createElement(Ke),We[3]&&(He.id=We[3]),We[4]&&(He.className=We[4].replace(/\./g," ").trim()),Ie&&Object.entries(Ie).forEach(([$e,Ve])=>{typeof Ve>"u"||(/^on\w+$/.test($e)?He[$e]=Ve:$e==="selected"?Ve&&He.setAttribute($e,"true"):He.setAttribute($e,Ve))}),He.append(...Ae),He}function we(Ce,_e,...Ie){return fe(Ne.HTML,Ce,_e,...Ie)}we.SVG=function(Ce,_e,...Ie){return fe(Ne.SVG,Ce,_e,...Ie)};function Oe(Ce,..._e){Ce?Be(..._e):Ue(..._e)}function Be(...Ce){for(const _e of Ce)_e.style.display="",_e.removeAttribute("aria-hidden")}function Ue(...Ce){for(const _e of Ce)_e.style.display="none",_e.setAttribute("aria-hidden","true")}function Ye(Ce,_e){const Ie=Ce.devicePixelRatio*_e;return Math.max(1,Math.floor(Ie))/Ce.devicePixelRatio}function Qe(Ce){i.mainWindow.open(Ce,"_blank","noopener")}function tt(Ce,_e){const Ie=()=>{_e(),Ae=(0,e.scheduleAtNextAnimationFrame)(Ce,Ie)};let Ae=(0,e.scheduleAtNextAnimationFrame)(Ce,Ie);return(0,p.toDisposable)(()=>Ae.dispose())}n.RemoteAuthorities.setPreferredWebSchema(/^https:/.test(i.mainWindow.location.href)?"https":"http");function it(Ce){return Ce?`url('${n.FileAccess.uriToBrowserUri(Ce).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function ut(Ce){return`'${Ce.replace(/'/g,"%27")}'`}function ct(Ce,_e){if(Ce!==void 0){const Ie=Ce.match(/^\s*var\((.+)\)$/);if(Ie){const Ae=Ie[1].split(",",2);return Ae.length===2&&(_e=ct(Ae[1].trim(),_e)),`var(${Ae[0]}, ${_e})`}return Ce}return _e}function nt(Ce,_e=!1){const Ie=document.createElement("a");return v.addHook("afterSanitizeAttributes",Ae=>{for(const We of["href","src"])if(Ae.hasAttribute(We)){const Ke=Ae.getAttribute(We);if(We==="href"&&Ke.startsWith("#"))continue;if(Ie.href=Ke,!Ce.includes(Ie.protocol.replace(/:$/,""))){if(_e&&We==="src"&&Ie.href.startsWith("data:"))continue;Ae.removeAttribute(We)}}}),(0,p.toDisposable)(()=>{v.removeHook("afterSanitizeAttributes")})}e.basicMarkupHtmlTags=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);const st=Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class dt extends _.Emitter{constructor(){super(),this._subscriptions=new p.DisposableStore,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(_.Event.runAndSubscribe(e.onDidRegisterWindow,({window:_e,disposables:Ie})=>this.registerListeners(_e,Ie),{window:i.mainWindow,disposables:this._subscriptions}))}registerListeners(_e,Ie){Ie.add(l(_e,"keydown",Ae=>{if(Ae.defaultPrevented)return;const We=new E.StandardKeyboardEvent(Ae);if(!(We.keyCode===6&&Ae.repeat)){if(Ae.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(Ae.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(Ae.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(Ae.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(We.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=Ae.altKey,this._keyStatus.ctrlKey=Ae.ctrlKey,this._keyStatus.metaKey=Ae.metaKey,this._keyStatus.shiftKey=Ae.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=Ae,this.fire(this._keyStatus))}},!0)),Ie.add(l(_e,"keyup",Ae=>{Ae.defaultPrevented||(!Ae.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!Ae.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!Ae.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!Ae.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=Ae.altKey,this._keyStatus.ctrlKey=Ae.ctrlKey,this._keyStatus.metaKey=Ae.metaKey,this._keyStatus.shiftKey=Ae.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=Ae,this.fire(this._keyStatus)))},!0)),Ie.add(l(_e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),Ie.add(l(_e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),Ie.add(l(_e.document.body,"mousemove",Ae=>{Ae.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),Ie.add(l(_e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return dt.instance||(dt.instance=new dt),dt.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}e.ModifierKeyEmitter=dt;class St extends p.Disposable{constructor(_e,Ie){super(),this.element=_e,this.callbacks=Ie,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(l(this.element,e.EventType.DRAG_START,_e=>{this.callbacks.onDragStart?.(_e)})),this.callbacks.onDrag&&this._register(l(this.element,e.EventType.DRAG,_e=>{this.callbacks.onDrag?.(_e)})),this._register(l(this.element,e.EventType.DRAG_ENTER,_e=>{this.counter++,this.dragStartTime=_e.timeStamp,this.callbacks.onDragEnter?.(_e)})),this._register(l(this.element,e.EventType.DRAG_OVER,_e=>{_e.preventDefault(),this.callbacks.onDragOver?.(_e,_e.timeStamp-this.dragStartTime)})),this._register(l(this.element,e.EventType.DRAG_LEAVE,_e=>{this.counter--,this.counter===0&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(_e))})),this._register(l(this.element,e.EventType.DRAG_END,_e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(_e)})),this._register(l(this.element,e.EventType.DROP,_e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(_e)}))}}e.DragAndDropObserver=St;const _t=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function ht(Ce,..._e){let Ie,Ae;Array.isArray(_e[0])?(Ie={},Ae=_e[0]):(Ie=_e[0]||{},Ae=_e[1]);const We=_t.exec(Ce);if(!We||!We.groups)throw new Error("Bad use of h");const Ke=We.groups.tag||"div",He=document.createElement(Ke);We.groups.id&&(He.id=We.groups.id);const $e=[];if(We.groups.class)for(const Me of We.groups.class.split("."))Me!==""&&$e.push(Me);if(Ie.className!==void 0)for(const Me of Ie.className.split("."))Me!==""&&$e.push(Me);$e.length>0&&(He.className=$e.join(" "));const Ve={};if(We.groups.name&&(Ve[We.groups.name]=He),Ae)for(const Me of Ae)le(Me)?He.appendChild(Me):typeof Me=="string"?He.append(Me):"root"in Me&&(Object.assign(Ve,Me),He.appendChild(Me.root));for(const[Me,xe]of Object.entries(Ie))if(Me!=="className")if(Me==="style")for(const[ze,Ge]of Object.entries(xe))He.style.setProperty(qe(ze),typeof Ge=="number"?Ge+"px":""+Ge);else Me==="tabIndex"?He.tabIndex=xe:He.setAttribute(qe(Me),xe.toString());return Ve.root=He,Ve}function wt(Ce,..._e){let Ie,Ae;Array.isArray(_e[0])?(Ie={},Ae=_e[0]):(Ie=_e[0]||{},Ae=_e[1]);const We=_t.exec(Ce);if(!We||!We.groups)throw new Error("Bad use of h");const Ke=We.groups.tag||"div",He=document.createElementNS("http://www.w3.org/2000/svg",Ke);We.groups.id&&(He.id=We.groups.id);const $e=[];if(We.groups.class)for(const Me of We.groups.class.split("."))Me!==""&&$e.push(Me);if(Ie.className!==void 0)for(const Me of Ie.className.split("."))Me!==""&&$e.push(Me);$e.length>0&&(He.className=$e.join(" "));const Ve={};if(We.groups.name&&(Ve[We.groups.name]=He),Ae)for(const Me of Ae)le(Me)?He.appendChild(Me):typeof Me=="string"?He.append(Me):"root"in Me&&(Object.assign(Ve,Me),He.appendChild(Me.root));for(const[Me,xe]of Object.entries(Ie))if(Me!=="className")if(Me==="style")for(const[ze,Ge]of Object.entries(xe))He.style.setProperty(qe(ze),typeof Ge=="number"?Ge+"px":""+Ge);else Me==="tabIndex"?He.tabIndex=xe:He.setAttribute(qe(Me),xe.toString());return Ve.root=He,Ve}function qe(Ce){return Ce.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}}),define(oe[625],re([1,0,5,2,21]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createStyleSheetFromObservable=L;function L(y){const f=new k.DisposableStore,_=f.add((0,c.createStyleSheet2)());return f.add((0,E.autorun)(v=>{_.setStyle(y.read(v))})),f}}),define(oe[350],re([1,0,5]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderText=k,e.renderFormattedText=E,e.createElement=L;function k(n,s={}){const t=L(s);return t.textContent=n,t}function E(n,s={}){const t=L(s);return f(t,_(n,!!s.renderCodeSegments),s.actionHandler,s.renderCodeSegments),t}function L(n){const s=n.inline?"span":"div",t=document.createElement(s);return n.className&&(t.className=n.className),t}class y{constructor(s){this.source=s,this.index=0}eos(){return this.index>=this.source.length}next(){const s=this.peek();return this.advance(),s}peek(){return this.source[this.index]}advance(){this.index++}}function f(n,s,t,i){let o;if(s.type===2)o=document.createTextNode(s.content||"");else if(s.type===3)o=document.createElement("b");else if(s.type===4)o=document.createElement("i");else if(s.type===7&&i)o=document.createElement("code");else if(s.type===5&&t){const g=document.createElement("a");t.disposables.add(c.addStandardDisposableListener(g,"click",u=>{t.callback(String(s.index),u)})),o=g}else s.type===8?o=document.createElement("br"):s.type===1&&(o=n);o&&n!==o&&n.appendChild(o),o&&Array.isArray(s.children)&&s.children.forEach(g=>{f(o,g,t,i)})}function _(n,s){const t={type:1,children:[]};let i=0,o=t;const g=[],u=new y(n);for(;!u.eos();){let l=u.next();const r=l==="\\"&&p(u.peek(),s)!==0;if(r&&(l=u.next()),!r&&v(l,s)&&l===u.peek()){u.advance(),o.type===2&&(o=g.pop());const a=p(l,s);if(o.type===a||o.type===5&&a===6)o=g.pop();else{const d={type:a,children:[]};a===5&&(d.index=i,i++),o.children.push(d),g.push(o),o=d}}else if(l===`
|
|
116
116
|
`)o.type===2&&(o=g.pop()),o.children.push({type:8});else if(o.type!==2){const a={type:2,content:l};o.children.push(a),g.push(o),o=a}else o.content+=l}return o.type===2&&(o=g.pop()),g.length,t}function v(n,s){return p(n,s)!==0}function p(n,s){switch(n){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return s?7:0;default:return 0}}}),define(oe[171],re([1,0,5,2]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalPointerMoveMonitor=void 0;class E{constructor(){this._hooks=new k.DisposableStore,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(y,f){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const _=this._onStopCallback;this._onStopCallback=null,y&&_&&_(f)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(y,f,_,v,p){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=v,this._onStopCallback=p;let n=y;try{y.setPointerCapture(f),this._hooks.add((0,k.toDisposable)(()=>{try{y.releasePointerCapture(f)}catch{}}))}catch{n=c.getWindow(y)}this._hooks.add(c.addDisposableListener(n,c.EventType.POINTER_MOVE,s=>{if(s.buttons!==_){this.stopMonitoring(!0);return}s.preventDefault(),this._pointerMoveCallback(s)})),this._hooks.add(c.addDisposableListener(n,c.EventType.POINTER_UP,s=>this.stopMonitoring(!0)))}}e.GlobalPointerMoveMonitor=E}),define(oe[252],re([1,0,5,6,2]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PixelRatio=void 0;class L extends E.Disposable{constructor(v){super(),this._onDidChange=this._register(new k.Emitter),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(v,!0),this._mediaQueryList=null,this._handleChange(v,!1)}_handleChange(v,p){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=v.matchMedia(`(resolution: ${v.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),p&&this._onDidChange.fire()}}class y extends E.Disposable{get value(){return this._value}constructor(v){super(),this._onDidChange=this._register(new k.Emitter),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(v);const p=this._register(new L(v));this._register(p.onDidChange(()=>{this._value=this._getPixelRatio(v),this._onDidChange.fire(this._value)}))}_getPixelRatio(v){const p=document.createElement("canvas").getContext("2d"),n=v.devicePixelRatio||1,s=p.webkitBackingStorePixelRatio||p.mozBackingStorePixelRatio||p.msBackingStorePixelRatio||p.oBackingStorePixelRatio||p.backingStorePixelRatio||1;return n/s}}class f{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(v){const p=(0,c.getWindowId)(v);let n=this.mapWindowIdToPixelRatioMonitor.get(p);return n||(n=(0,E.markAsSingleton)(new y(v)),this.mapWindowIdToPixelRatioMonitor.set(p,n),(0,E.markAsSingleton)(k.Event.once(c.onDidUnregisterWindow)(({vscodeWindowId:s})=>{s===p&&(n?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(p))}))),n}getInstance(v){return this._getOrCreatePixelRatioMonitor(v)}}e.PixelRatio=new f}),define(oe[69],re([1,0,5,52,13,126,6,2,73]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gesture=e.EventType=void 0;var v;(function(n){n.Tap="-monaco-gesturetap",n.Change="-monaco-gesturechange",n.Start="-monaco-gesturestart",n.End="-monaco-gesturesend",n.Contextmenu="-monaco-gesturecontextmenu"})(v||(e.EventType=v={}));class p extends f.Disposable{static{this.SCROLL_FRICTION=-.005}static{this.HOLD_DELAY=700}static{this.CLEAR_TAP_COUNT_TIME=400}constructor(){super(),this.dispatched=!1,this.targets=new _.LinkedList,this.ignoreTargets=new _.LinkedList,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(y.Event.runAndSubscribe(c.onDidRegisterWindow,({window:s,disposables:t})=>{t.add(c.addDisposableListener(s.document,"touchstart",i=>this.onTouchStart(i),{passive:!1})),t.add(c.addDisposableListener(s.document,"touchend",i=>this.onTouchEnd(s,i))),t.add(c.addDisposableListener(s.document,"touchmove",i=>this.onTouchMove(i),{passive:!1}))},{window:k.mainWindow,disposables:this._store}))}static addTarget(s){if(!p.isTouchDevice())return f.Disposable.None;p.INSTANCE||(p.INSTANCE=(0,f.markAsSingleton)(new p));const t=p.INSTANCE.targets.push(s);return(0,f.toDisposable)(t)}static ignoreTarget(s){if(!p.isTouchDevice())return f.Disposable.None;p.INSTANCE||(p.INSTANCE=(0,f.markAsSingleton)(new p));const t=p.INSTANCE.ignoreTargets.push(s);return(0,f.toDisposable)(t)}static isTouchDevice(){return"ontouchstart"in k.mainWindow||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(s){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,o=s.targetTouches.length;i<o;i++){const g=s.targetTouches.item(i);this.activeTouches[g.identifier]={id:g.identifier,initialTarget:g.target,initialTimeStamp:t,initialPageX:g.pageX,initialPageY:g.pageY,rollingTimestamps:[t],rollingPageX:[g.pageX],rollingPageY:[g.pageY]};const u=this.newGestureEvent(v.Start,g.target);u.pageX=g.pageX,u.pageY=g.pageY,this.dispatchEvent(u)}this.dispatched&&(s.preventDefault(),s.stopPropagation(),this.dispatched=!1)}onTouchEnd(s,t){const i=Date.now(),o=Object.keys(this.activeTouches).length;for(let g=0,u=t.changedTouches.length;g<u;g++){const l=t.changedTouches.item(g);if(!this.activeTouches.hasOwnProperty(String(l.identifier))){console.warn("move of an UNKNOWN touch",l);continue}const r=this.activeTouches[l.identifier],a=Date.now()-r.initialTimeStamp;if(a<p.HOLD_DELAY&&Math.abs(r.initialPageX-E.tail(r.rollingPageX))<30&&Math.abs(r.initialPageY-E.tail(r.rollingPageY))<30){const d=this.newGestureEvent(v.Tap,r.initialTarget);d.pageX=E.tail(r.rollingPageX),d.pageY=E.tail(r.rollingPageY),this.dispatchEvent(d)}else if(a>=p.HOLD_DELAY&&Math.abs(r.initialPageX-E.tail(r.rollingPageX))<30&&Math.abs(r.initialPageY-E.tail(r.rollingPageY))<30){const d=this.newGestureEvent(v.Contextmenu,r.initialTarget);d.pageX=E.tail(r.rollingPageX),d.pageY=E.tail(r.rollingPageY),this.dispatchEvent(d)}else if(o===1){const d=E.tail(r.rollingPageX),m=E.tail(r.rollingPageY),h=E.tail(r.rollingTimestamps)-r.rollingTimestamps[0],C=d-r.rollingPageX[0],b=m-r.rollingPageY[0],w=[...this.targets].filter(S=>r.initialTarget instanceof Node&&S.contains(r.initialTarget));this.inertia(s,w,i,Math.abs(C)/h,C>0?1:-1,d,Math.abs(b)/h,b>0?1:-1,m)}this.dispatchEvent(this.newGestureEvent(v.End,r.initialTarget)),delete this.activeTouches[l.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(s,t){const i=document.createEvent("CustomEvent");return i.initEvent(s,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(s){if(s.type===v.Tap){const t=new Date().getTime();let i=0;t-this._lastSetTapCountTime>p.CLEAR_TAP_COUNT_TIME?i=1:i=2,this._lastSetTapCountTime=t,s.tapCount=i}else(s.type===v.Change||s.type===v.Contextmenu)&&(this._lastSetTapCountTime=0);if(s.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(s.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(s.initialTarget)){let o=0,g=s.initialTarget;for(;g&&g!==i;)o++,g=g.parentElement;t.push([o,i])}t.sort((i,o)=>i[0]-o[0]);for(const[i,o]of t)o.dispatchEvent(s),this.dispatched=!0}}inertia(s,t,i,o,g,u,l,r,a){this.handle=c.scheduleAtNextAnimationFrame(s,()=>{const d=Date.now(),m=d-i;let h=0,C=0,b=!0;o+=p.SCROLL_FRICTION*m,l+=p.SCROLL_FRICTION*m,o>0&&(b=!1,h=g*o*m),l>0&&(b=!1,C=r*l*m);const w=this.newGestureEvent(v.Change);w.translationX=h,w.translationY=C,t.forEach(S=>S.dispatchEvent(w)),b||this.inertia(s,t,d,o,g,u+h,l,r,a+C)})}onTouchMove(s){const t=Date.now();for(let i=0,o=s.changedTouches.length;i<o;i++){const g=s.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(g.identifier))){console.warn("end of an UNKNOWN touch",g);continue}const u=this.activeTouches[g.identifier],l=this.newGestureEvent(v.Change,u.initialTarget);l.translationX=g.pageX-E.tail(u.rollingPageX),l.translationY=g.pageY-E.tail(u.rollingPageY),l.pageX=g.pageX,l.pageY=g.pageY,this.dispatchEvent(l),u.rollingPageX.length>3&&(u.rollingPageX.shift(),u.rollingPageY.shift(),u.rollingTimestamps.shift()),u.rollingPageX.push(g.pageX),u.rollingPageY.push(g.pageY),u.rollingTimestamps.push(t)}this.dispatched&&(s.preventDefault(),s.stopPropagation(),this.dispatched=!1)}}e.Gesture=p,De([L.memoize],p,"isTouchDevice",null)}),define(oe[48],re([1,0,5,454]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setARIAContainer=v,e.alert=p,e.status=n;const k=2e4;let E,L,y,f,_;function v(t){E=document.createElement("div"),E.className="monaco-aria-container";const i=()=>{const g=document.createElement("div");return g.className="monaco-alert",g.setAttribute("role","alert"),g.setAttribute("aria-atomic","true"),E.appendChild(g),g};L=i(),y=i();const o=()=>{const g=document.createElement("div");return g.className="monaco-status",g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true"),E.appendChild(g),g};f=o(),_=o(),t.appendChild(E)}function p(t){E&&(L.textContent!==t?(c.clearNode(y),s(L,t)):(c.clearNode(L),s(y,t)))}function n(t){E&&(f.textContent!==t?(c.clearNode(_),s(f,t)):(c.clearNode(f),s(_,t)))}function s(t,i){c.clearNode(t),i.length>k&&(i=i.substr(0,k)),t.textContent=i,t.style.visibility="hidden",t.style.visibility="visible"}}),define(oe[351],re([1,0,247,5,2,16,188,458]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextView=e.LayoutAnchorMode=void 0,e.isAnchor=f,e.layout=v;function f(s){const t=s;return!!t&&typeof t.x=="number"&&typeof t.y=="number"}var _;(function(s){s[s.AVOID=0]="AVOID",s[s.ALIGN=1]="ALIGN"})(_||(e.LayoutAnchorMode=_={}));function v(s,t,i){const o=i.mode===_.ALIGN?i.offset:i.offset+i.size,g=i.mode===_.ALIGN?i.offset+i.size:i.offset;return i.position===0?t<=s-o?o:t<=g?g-t:Math.max(s-t,0):t<=g?g-t:t<=s-o?o:0}class p extends E.Disposable{static{this.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"]}static{this.BUBBLE_DOWN_EVENTS=["click"]}constructor(t,i){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=E.Disposable.None,this.toDisposeOnSetContainer=E.Disposable.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=k.$(".context-view"),k.hide(this.view),this.setContainer(t,i),this._register((0,E.toDisposable)(()=>this.setContainer(null,1)))}setContainer(t,i){this.useFixedPosition=i!==1;const o=this.useShadowDOM;if(this.useShadowDOM=i===3,!(t===this.container&&o===this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.view.remove(),this.shadowRoot&&(this.shadowRoot=null,this.shadowRootHostElement?.remove(),this.shadowRootHostElement=null),this.container=null),t)){if(this.container=t,this.useShadowDOM){this.shadowRootHostElement=k.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const u=document.createElement("style");u.textContent=n,this.shadowRoot.appendChild(u),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(k.$("slot"))}else this.container.appendChild(this.view);const g=new E.DisposableStore;p.BUBBLE_UP_EVENTS.forEach(u=>{g.add(k.addStandardDisposableListener(this.container,u,l=>{this.onDOMEvent(l,!1)}))}),p.BUBBLE_DOWN_EVENTS.forEach(u=>{g.add(k.addStandardDisposableListener(this.container,u,l=>{this.onDOMEvent(l,!0)},!0))}),this.toDisposeOnSetContainer=g}}show(t){this.isVisible()&&this.hide(),k.clearNode(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(t.layer??0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",k.show(this.view),this.toDisposeOnClean=t.render(this.view)||E.Disposable.None,this.delegate=t,this.doLayout(),this.delegate.focus?.()}getViewElement(){return this.view}layout(){if(this.isVisible()){if(this.delegate.canRelayout===!1&&!(L.isIOS&&c.BrowserFeatures.pointerEvents)){this.hide();return}this.delegate?.layout?.(),this.doLayout()}}doLayout(){if(!this.isVisible())return;const t=this.delegate.getAnchor();let i;if(k.isHTMLElement(t)){const C=k.getDomNodePagePosition(t),b=k.getDomNodeZoomLevel(t);i={top:C.top*b,left:C.left*b,width:C.width*b,height:C.height*b}}else f(t)?i={top:t.y,left:t.x,width:t.width||1,height:t.height||2}:i={top:t.posy,left:t.posx,width:2,height:2};const o=k.getTotalWidth(this.view),g=k.getTotalHeight(this.view),u=this.delegate.anchorPosition||0,l=this.delegate.anchorAlignment||0,r=this.delegate.anchorAxisAlignment||0;let a,d;const m=k.getActiveWindow();if(r===0){const C={offset:i.top-m.pageYOffset,size:i.height,position:u===0?0:1},b={offset:i.left,size:i.width,position:l===0?0:1,mode:_.ALIGN};a=v(m.innerHeight,g,C)+m.pageYOffset,y.Range.intersects({start:a,end:a+g},{start:C.offset,end:C.offset+C.size})&&(b.mode=_.AVOID),d=v(m.innerWidth,o,b)}else{const C={offset:i.left,size:i.width,position:l===0?0:1},b={offset:i.top,size:i.height,position:u===0?0:1,mode:_.ALIGN};d=v(m.innerWidth,o,C),y.Range.intersects({start:d,end:d+o},{start:C.offset,end:C.offset+C.size})&&(b.mode=_.AVOID),a=v(m.innerHeight,g,b)+m.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(u===0?"bottom":"top"),this.view.classList.add(l===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=k.getDomNodePagePosition(this.container);this.view.style.top=`${a-(this.useFixedPosition?k.getDomNodePagePosition(this.view).top:h.top)}px`,this.view.style.left=`${d-(this.useFixedPosition?k.getDomNodePagePosition(this.view).left:h.left)}px`,this.view.style.width="initial"}hide(t){const i=this.delegate;this.delegate=null,i?.onHide&&i.onHide(t),this.toDisposeOnClean.dispose(),k.hide(this.view)}isVisible(){return!!this.delegate}onDOMEvent(t,i){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(t,k.getWindow(t).document.activeElement):i&&!k.isAncestor(t.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}e.ContextView=p;const n=`
|
|
117
117
|
:host {
|
|
118
118
|
all: initial; /* 1st rule so subsequent properties are reset. */
|
|
@@ -592,7 +592,7 @@ ${S(t.Codicon.menuSubmenu)}
|
|
|
592
592
|
`),await this._clipboardService.writeText(I)})),t.getOption(92)||w.push(new k.Action("diff.inline.revertChange",(0,_.localize)(6,"Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff)})),w},autoSelectFirstItem:!0})};this._register((0,c.addStandardDisposableListener)(this._diffActions,"mousedown",C=>{if(!C.leftButton)return;const{top:b,height:w}=(0,c.getDomNodePagePosition)(this._diffActions),S=Math.floor(a/3);C.preventDefault(),h(C.posx,b+w+S)})),this._register(t.onMouseMove(C=>{(C.target.type===8||C.target.type===5)&&C.target.detail.viewZoneId===this._getViewZoneId()?(d=this._updateLightBulbPosition(this._marginDomNode,C.event.browserEvent.y,a),this.visibility=!0):this.visibility=!1})),this._register(t.onMouseDown(C=>{C.event.leftButton&&(C.target.type===8||C.target.type===5)&&C.target.detail.viewZoneId===this._getViewZoneId()&&(C.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,C.event.browserEvent.y,a),h(C.event.posx,C.event.posy+a))}))}_updateLightBulbPosition(n,s,t){const{top:i}=(0,c.getDomNodePagePosition)(n),o=s-i,g=Math.floor(o/t),u=g*t;if(this._diffActions.style.top=`${u}px`,this._viewLineCounts){let l=0;for(let r=0;r<this._viewLineCounts.length;r++)if(l+=this._viewLineCounts[r],g<l)return r}return g}}e.InlineDiffDeletedCodeMargin=v}),define(oe[648],re([1,0,5,113,26,2,21,55,4,104,40,3]),function(ae,e,c,k,E,L,y,f,_,v,p,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RevertButton=e.RevertButtonsFeature=void 0;const s=[];class t extends L.Disposable{constructor(g,u,l,r){super(),this._editors=g,this._diffModel=u,this._options=l,this._widget=r,this._selectedDiffs=(0,y.derived)(this,a=>{const m=this._diffModel.read(a)?.diff.read(a);if(!m)return s;const h=this._editors.modifiedSelections.read(a);if(h.every(S=>S.isEmpty()))return s;const C=new f.LineRangeSet(h.map(S=>f.LineRange.fromRangeInclusive(S))),w=m.mappings.filter(S=>S.lineRangeMapping.innerChanges&&C.intersects(S.lineRangeMapping.modified)).map(S=>({mapping:S,rangeMappings:S.lineRangeMapping.innerChanges.filter(D=>h.some(I=>_.Range.areIntersecting(D.modifiedRange,I)))}));return w.length===0||w.every(S=>S.rangeMappings.length===0)?s:w}),this._register((0,y.autorunWithStore)((a,d)=>{if(!this._options.shouldRenderOldRevertArrows.read(a))return;const m=this._diffModel.read(a),h=m?.diff.read(a);if(!m||!h||m.movedTextToCompare.read(a))return;const C=[],b=this._selectedDiffs.read(a),w=new Set(b.map(S=>S.mapping));if(b.length>0){const S=this._editors.modifiedSelections.read(a),D=d.add(new i(S[S.length-1].positionLineNumber,this._widget,b.flatMap(I=>I.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(D),C.push(D)}for(const S of h.mappings)if(!w.has(S)&&!S.lineRangeMapping.modified.isEmpty&&S.lineRangeMapping.innerChanges){const D=d.add(new i(S.lineRangeMapping.modified.startLineNumber,this._widget,S.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(D),C.push(D)}d.add((0,L.toDisposable)(()=>{for(const S of C)this._editors.modified.removeGlyphMarginWidget(S)}))}))}}e.RevertButtonsFeature=t;class i extends L.Disposable{static{this.counter=0}getId(){return this._id}constructor(g,u,l,r){super(),this._lineNumber=g,this._widget=u,this._diffs=l,this._revertSelection=r,this._id=`revertButton${i.counter++}`,this._domNode=(0,c.h)("div.revertButton",{title:this._revertSelection?(0,n.localize)(17,"Revert Selected Changes"):(0,n.localize)(18,"Revert Change")},[(0,k.renderIcon)(E.Codicon.arrowRight)]).root,this._register((0,c.addDisposableListener)(this._domNode,c.EventType.MOUSE_DOWN,a=>{a.button!==2&&(a.stopPropagation(),a.preventDefault())})),this._register((0,c.addDisposableListener)(this._domNode,c.EventType.MOUSE_UP,a=>{a.stopPropagation(),a.preventDefault()})),this._register((0,c.addDisposableListener)(this._domNode,c.EventType.CLICK,a=>{this._diffs instanceof v.LineRangeMapping?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),a.stopPropagation(),a.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:p.GlyphMarginLane.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}e.RevertButton=i}),define(oe[87],re([1,0,67,18,2,21,360,9,4,112]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RefCounted=e.DisposableCancellationTokenSource=e.ManagedOverlayWidget=e.PlaceholderViewZone=e.ViewZoneOverlayWidget=e.ObservableElementSizeObserver=void 0,e.joinCombine=p,e.applyObservableDecorations=n,e.appendRemoveOnDispose=s,e.prependRemoveOnDispose=t,e.animatedObservable=o,e.applyStyle=a,e.applyViewZones=d,e.translatePosition=h,e.filterWithPrevious=b;function p(I,T,M,A){if(I.length===0)return T;if(T.length===0)return I;const R=[];let N=0,O=0;for(;N<I.length&&O<T.length;){const x=I[N],F=T[O],W=M(x),z=M(F);W<z?(R.push(x),N++):W>z?(R.push(F),O++):(R.push(A(x,F)),N++,O++)}for(;N<I.length;)R.push(I[N]),N++;for(;O<T.length;)R.push(T[O]),O++;return R}function n(I,T){const M=new E.DisposableStore,A=I.createDecorationsCollection();return M.add((0,L.autorunOpts)({debugName:()=>`Apply decorations from ${T.debugName}`},R=>{const N=T.read(R);A.set(N)})),M.add({dispose:()=>{A.clear()}}),M}function s(I,T){return I.appendChild(T),(0,E.toDisposable)(()=>{T.remove()})}function t(I,T){return I.prepend(T),(0,E.toDisposable)(()=>{T.remove()})}class i extends E.Disposable{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(T,M){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new y.ElementSizeObserver(T,M)),this._width=(0,L.observableValue)(this,this.elementSizeObserver.getWidth()),this._height=(0,L.observableValue)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange(A=>(0,L.transaction)(R=>{this._width.set(this.elementSizeObserver.getWidth(),R),this._height.set(this.elementSizeObserver.getHeight(),R)})))}observe(T){this.elementSizeObserver.observe(T)}setAutomaticLayout(T){this._automaticLayout=T,T?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}e.ObservableElementSizeObserver=i;function o(I,T,M){let A=T.get(),R=A,N=A;const O=(0,L.observableValue)("animatedValue",A);let x=-1;const F=300;let W;M.add((0,L.autorunHandleChanges)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(q,H)=>(q.didChange(T)&&(H.animate=H.animate||q.change),!0)},(q,H)=>{W!==void 0&&(I.cancelAnimationFrame(W),W=void 0),R=N,A=T.read(q),x=Date.now()-(H.animate?0:F),z()}));function z(){const q=Date.now()-x;N=Math.floor(g(q,R,A-R,F)),q<F?W=I.requestAnimationFrame(z):N=A,O.set(N,void 0)}return O}function g(I,T,M,A){return I===A?T+M:M*(-Math.pow(2,-10*I/A)+1)+T}class u extends E.Disposable{constructor(T,M,A){super(),this._register(new r(T,A)),this._register(a(A,{height:M.actualHeight,top:M.actualTop}))}}e.ViewZoneOverlayWidget=u;class l{get afterLineNumber(){return this._afterLineNumber.get()}constructor(T,M){this._afterLineNumber=T,this.heightInPx=M,this.domNode=document.createElement("div"),this._actualTop=(0,L.observableValue)(this,void 0),this._actualHeight=(0,L.observableValue)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=A=>{this._actualTop.set(A,void 0)},this.onComputedHeight=A=>{this._actualHeight.set(A,void 0)}}}e.PlaceholderViewZone=l;class r{static{this._counter=0}constructor(T,M){this._editor=T,this._domElement=M,this._overlayWidgetId=`managedOverlayWidget-${r._counter++}`,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}e.ManagedOverlayWidget=r;function a(I,T){return(0,L.autorun)(M=>{for(let[A,R]of Object.entries(T))R&&typeof R=="object"&&"read"in R&&(R=R.read(M)),typeof R=="number"&&(R=`${R}px`),A=A.replace(/[A-Z]/g,N=>"-"+N.toLowerCase()),I.style[A]=R})}function d(I,T,M,A){const R=new E.DisposableStore,N=[];return R.add((0,L.autorunWithStore)((O,x)=>{const F=T.read(O),W=new Map,z=new Map;M&&M(!0),I.changeViewZones(q=>{for(const H of N)q.removeZone(H),A?.delete(H);N.length=0;for(const H of F){const K=q.addZone(H);H.setZoneId&&H.setZoneId(K),N.push(K),A?.add(K),W.set(H,K)}}),M&&M(!1),x.add((0,L.autorunHandleChanges)({createEmptyChangeSummary(){return{zoneIds:[]}},handleChange(q,H){const K=z.get(q.changedObservable);return K!==void 0&&H.zoneIds.push(K),!0}},(q,H)=>{for(const K of F)K.onChange&&(z.set(K.onChange,W.get(K)),K.onChange.read(q));M&&M(!0),I.changeViewZones(K=>{for(const U of H.zoneIds)K.layoutZone(U)}),M&&M(!1)}))})),R.add({dispose(){M&&M(!0),I.changeViewZones(O=>{for(const x of N)O.removeZone(x)}),A?.clear(),M&&M(!1)}}),R}class m extends k.CancellationTokenSource{dispose(){super.dispose(!0)}}e.DisposableCancellationTokenSource=m;function h(I,T){const M=(0,c.findLast)(T,R=>R.original.startLineNumber<=I.lineNumber);if(!M)return _.Range.fromPositions(I);if(M.original.endLineNumberExclusive<=I.lineNumber){const R=I.lineNumber-M.original.endLineNumberExclusive+M.modified.endLineNumberExclusive;return _.Range.fromPositions(new f.Position(R,I.column))}if(!M.innerChanges)return _.Range.fromPositions(new f.Position(M.modified.startLineNumber,1));const A=(0,c.findLast)(M.innerChanges,R=>R.originalRange.getStartPosition().isBeforeOrEqual(I));if(!A){const R=I.lineNumber-M.original.startLineNumber+M.modified.startLineNumber;return _.Range.fromPositions(new f.Position(R,I.column))}if(A.originalRange.containsPosition(I))return A.modifiedRange;{const R=C(A.originalRange.getEndPosition(),I);return _.Range.fromPositions(R.addToPosition(A.modifiedRange.getEndPosition()))}}function C(I,T){return I.lineNumber===T.lineNumber?new v.TextLength(0,T.column-I.column):new v.TextLength(T.lineNumber-I.lineNumber,T.column-1)}function b(I,T){let M;return I.filter(A=>{const R=T(A,M);return M=A,R})}class w{static create(T,M=void 0){return new S(T,T,M)}static createWithDisposable(T,M,A=void 0){const R=new E.DisposableStore;return R.add(M),R.add(T),new S(T,R,A)}}e.RefCounted=w;class S extends w{constructor(T,M,A){super(),this.object=T,this._disposable=M,this._debugOwner=A,this._refCount=1,this._isDisposed=!1,this._owners=[],A&&this._addOwner(A)}_addOwner(T){T&&this._owners.push(T)}createNewRef(T){return this._refCount++,T&&this._addOwner(T),new D(this,T)}dispose(){this._isDisposed||(this._isDisposed=!0,this._decreaseRefCount(this._debugOwner))}_decreaseRefCount(T){if(this._refCount--,this._refCount===0&&this._disposable.dispose(),T){const M=this._owners.indexOf(T);M!==-1&&this._owners.splice(M,1)}}}class D extends w{constructor(T,M){super(),this._base=T,this._debugOwner=M,this._isDisposed=!1}get object(){return this._base.object}createNewRef(T){return this._base.createNewRef(T)}dispose(){this._isDisposed||(this._isDisposed=!0,this._base._decreaseRefCount(this._debugOwner))}}}),define(oe[362],re([1,0,5,86,41,13,67,26,2,21,30,87,68,3]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MovedBlocksLinesFeature=void 0;class i extends _.Disposable{static{this.movedCodeBlockPadding=4}constructor(l,r,a,d,m){super(),this._rootElement=l,this._diffModel=r,this._originalEditorLayoutInfo=a,this._modifiedEditorLayoutInfo=d,this._editors=m,this._originalScrollTop=(0,v.observableFromEvent)(this,this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=(0,v.observableFromEvent)(this,this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=(0,v.observableSignalFromEvent)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,v.observableValue)(this,0),this._modifiedViewZonesChangedSignal=(0,v.observableSignalFromEvent)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,v.observableSignalFromEvent)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,v.derivedWithStore)(this,(S,D)=>{this._element.replaceChildren();const I=this._diffModel.read(S),T=I?.diff.read(S)?.movedTexts;if(!T||T.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(S);const M=this._originalEditorLayoutInfo.read(S),A=this._modifiedEditorLayoutInfo.read(S);if(!M||!A){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(S),this._originalViewZonesChangedSignal.read(S);const R=T.map(q=>{function H(se,ue){const ge=ue.getTopForLineNumber(se.startLineNumber,!0),pe=ue.getTopForLineNumber(se.endLineNumberExclusive,!0);return(ge+pe)/2}const K=H(q.lineRangeMapping.original,this._editors.original),U=this._originalScrollTop.read(S),Y=H(q.lineRangeMapping.modified,this._editors.modified),Q=this._modifiedScrollTop.read(S),X=K-U,G=Y-Q,P=Math.min(K,Y),te=Math.max(K,Y);return{range:new s.OffsetRange(P,te),from:X,to:G,fromWithoutScroll:K,toWithoutScroll:Y,move:q}});R.sort((0,L.tieBreakComparators)((0,L.compareBy)(q=>q.fromWithoutScroll>q.toWithoutScroll,L.booleanComparator),(0,L.compareBy)(q=>q.fromWithoutScroll>q.toWithoutScroll?q.fromWithoutScroll:-q.toWithoutScroll,L.numberComparator)));const N=o.compute(R.map(q=>q.range)),O=10,x=M.verticalScrollbarWidth,F=(N.getTrackCount()-1)*10+O*2,W=x+F+(A.contentLeft-i.movedCodeBlockPadding);let z=0;for(const q of R){const H=N.getTrack(z),K=x+O+H*10,U=15,Y=15,Q=W,X=A.glyphMarginWidth+A.lineNumbersWidth,G=18,P=document.createElementNS("http://www.w3.org/2000/svg","rect");P.classList.add("arrow-rectangle"),P.setAttribute("x",`${Q-X}`),P.setAttribute("y",`${q.to-G/2}`),P.setAttribute("width",`${X}`),P.setAttribute("height",`${G}`),this._element.appendChild(P);const te=document.createElementNS("http://www.w3.org/2000/svg","g"),se=document.createElementNS("http://www.w3.org/2000/svg","path");se.setAttribute("d",`M 0 ${q.from} L ${K} ${q.from} L ${K} ${q.to} L ${Q-Y} ${q.to}`),se.setAttribute("fill","none"),te.appendChild(se);const ue=document.createElementNS("http://www.w3.org/2000/svg","polygon");ue.classList.add("arrow"),D.add((0,v.autorun)(ge=>{se.classList.toggle("currentMove",q.move===I.activeMovedText.read(ge)),ue.classList.toggle("currentMove",q.move===I.activeMovedText.read(ge))})),ue.setAttribute("points",`${Q-Y},${q.to-U/2} ${Q},${q.to} ${Q-Y},${q.to+U/2}`),te.appendChild(ue),this._element.appendChild(te),z++}this.width.set(F,void 0)}),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,_.toDisposable)(()=>this._element.remove())),this._register((0,v.autorun)(S=>{const D=this._originalEditorLayoutInfo.read(S),I=this._modifiedEditorLayoutInfo.read(S);!D||!I||(this._element.style.left=`${D.width-D.verticalScrollbarWidth}px`,this._element.style.height=`${D.height}px`,this._element.style.width=`${D.verticalScrollbarWidth+D.contentLeft-i.movedCodeBlockPadding+this.width.read(S)}px`)})),this._register((0,v.recomputeInitiallyAndOnChange)(this._state));const h=(0,v.derived)(S=>{const I=this._diffModel.read(S)?.diff.read(S);return I?I.movedTexts.map(T=>({move:T,original:new n.PlaceholderViewZone((0,v.constObservable)(T.lineRangeMapping.original.startLineNumber-1),18),modified:new n.PlaceholderViewZone((0,v.constObservable)(T.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register((0,n.applyViewZones)(this._editors.original,h.map(S=>S.map(D=>D.original)))),this._register((0,n.applyViewZones)(this._editors.modified,h.map(S=>S.map(D=>D.modified)))),this._register((0,v.autorunWithStore)((S,D)=>{const I=h.read(S);for(const T of I)D.add(new g(this._editors.original,T.original,T.move,"original",this._diffModel.get())),D.add(new g(this._editors.modified,T.modified,T.move,"modified",this._diffModel.get()))}));const C=(0,v.observableSignalFromEvent)("original.onDidFocusEditorWidget",S=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>S(void 0),0))),b=(0,v.observableSignalFromEvent)("modified.onDidFocusEditorWidget",S=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>S(void 0),0)));let w="modified";this._register((0,v.autorunHandleChanges)({createEmptyChangeSummary:()=>{},handleChange:(S,D)=>(S.didChange(C)&&(w="original"),S.didChange(b)&&(w="modified"),!0)},S=>{C.read(S),b.read(S);const D=this._diffModel.read(S);if(!D)return;const I=D.diff.read(S);let T;if(I&&w==="original"){const M=this._editors.originalCursor.read(S);M&&(T=I.movedTexts.find(A=>A.lineRangeMapping.original.contains(M.lineNumber)))}if(I&&w==="modified"){const M=this._editors.modifiedCursor.read(S);M&&(T=I.movedTexts.find(A=>A.lineRangeMapping.modified.contains(M.lineNumber)))}T!==D.movedTextToCompare.get()&&D.movedTextToCompare.set(void 0,void 0),D.setActiveMovedText(T)}))}}e.MovedBlocksLinesFeature=i;class o{static compute(l){const r=[],a=[];for(const d of l){let m=r.findIndex(h=>!h.intersectsStrict(d));m===-1&&(r.length>=6?m=(0,y.findMaxIdx)(r,(0,L.compareBy)(C=>C.intersectWithRangeLength(d),L.numberComparator)):(m=r.length,r.push(new s.OffsetRangeSet))),r[m].addRange(d),a.push(m)}return new o(r.length,a)}constructor(l,r){this._trackCount=l,this.trackPerLineIdx=r}getTrack(l){return this.trackPerLineIdx[l]}getTrackCount(){return this._trackCount}}class g extends n.ViewZoneOverlayWidget{constructor(l,r,a,d,m){const h=(0,c.h)("div.diff-hidden-lines-widget");super(l,r,h.root),this._editor=l,this._move=a,this._kind=d,this._diffModel=m,this._nodes=(0,c.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,c.h)("div.text-content@textContent"),(0,c.h)("div.action-bar@actionBar")]),h.root.appendChild(this._nodes.root);const C=(0,v.observableFromEvent)(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register((0,n.applyStyle)(this._nodes.root,{paddingRight:C.map(I=>I.verticalScrollbarWidth)}));let b;a.changes.length>0?b=this._kind==="original"?(0,t.localize)(19,"Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,t.localize)(20,"Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):b=this._kind==="original"?(0,t.localize)(21,"Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,t.localize)(22,"Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const w=this._register(new k.ActionBar(this._nodes.actionBar,{highlightToggledItems:!0})),S=new E.Action("",b,"",!1);w.push(S,{icon:!1,label:!0});const D=new E.Action("","Compare",p.ThemeIcon.asClassName(f.Codicon.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===a?void 0:this._move,void 0)});this._register((0,v.autorun)(I=>{const T=this._diffModel.movedTextToCompare.read(I)===a;D.checked=T})),w.push(D,{icon:!1,label:!0})}}}),define(oe[649],re([1,0,5,2,21,55,68]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorGutter=void 0;class f extends k.Disposable{constructor(p,n,s){super(),this._editor=p,this._domNode=n,this.itemProvider=s,this.scrollTop=(0,E.observableFromEvent)(this,this._editor.onDidScrollChange,o=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(o=>o===0),this.modelAttached=(0,E.observableFromEvent)(this,this._editor.onDidChangeModel,o=>this._editor.hasModel()),this.editorOnDidChangeViewZones=(0,E.observableSignalFromEvent)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,E.observableSignalFromEvent)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,E.observableSignal)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const t=this._domNode.appendChild((0,c.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),i=new ResizeObserver(()=>{(0,E.transaction)(o=>{this.domNodeSizeChanged.trigger(o)})});i.observe(this._domNode),this._register((0,k.toDisposable)(()=>i.disconnect())),this._register((0,E.autorun)(o=>{t.className=this.isScrollTopZero.read(o)?"":"scroll-decoration"})),this._register((0,E.autorun)(o=>this.render(o)))}dispose(){super.dispose(),(0,c.reset)(this._domNode)}render(p){if(!this.modelAttached.read(p))return;this.domNodeSizeChanged.read(p),this.editorOnDidChangeViewZones.read(p),this.editorOnDidContentSizeChange.read(p);const n=this.scrollTop.read(p),s=this._editor.getVisibleRanges(),t=new Set(this.views.keys()),i=y.OffsetRange.ofStartAndLength(0,this._domNode.clientHeight);if(!i.isEmpty)for(const o of s){const g=new L.LineRange(o.startLineNumber,o.endLineNumber+1),u=this.itemProvider.getIntersectingGutterItems(g,p);(0,E.transaction)(l=>{for(const r of u){if(!r.range.intersect(g))continue;t.delete(r.id);let a=this.views.get(r.id);if(a)a.item.set(r,l);else{const C=document.createElement("div");this._domNode.appendChild(C);const b=(0,E.observableValue)("item",r),w=this.itemProvider.createView(b,C);a=new _(b,w,C),this.views.set(r.id,a)}const d=r.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(r.range.startLineNumber,!0)-n:this._editor.getBottomForLineNumber(r.range.startLineNumber-1,!1)-n,h=(r.range.isEmpty?d:this._editor.getBottomForLineNumber(r.range.endLineNumberExclusive-1,!0)-n)-d;a.domNode.style.top=`${d}px`,a.domNode.style.height=`${h}px`,a.gutterItemView.layout(y.OffsetRange.ofStartAndLength(d,h),i)}})}for(const o of t){const g=this.views.get(o);g.gutterItemView.dispose(),g.domNode.remove(),this.views.delete(o)}}}e.EditorGutter=f;class _{constructor(p,n,s){this.item=p,this.gutterItemView=n,this.domNode=s}}}),define(oe[363],re([1,0,41]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionRunnerWithContext=void 0;class k extends c.ActionRunner{constructor(L){super(),this._getContext=L}runAction(L,y){const f=this._getContext();return super.runAction(L,f)}}e.ActionRunnerWithContext=k}),define(oe[37],re([1,0,13,54,16,196,165,3]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOptions=e.editorOptionsRegistry=e.EDITOR_FONT_DEFAULTS=e.unicodeHighlightConfigKeys=e.inUntrustedWorkspace=e.ShowLightbulbIconMode=e.EditorLayoutInfoComputer=e.EditorFontVariations=e.EditorFontLigatures=e.TextEditorCursorStyle=e.ApplyUpdateResult=e.ComputeOptionsMemory=e.ConfigurationChangedEvent=e.MINIMAP_GUTTER_WIDTH=void 0,e.boolean=o,e.clampedInt=u,e.clampedFloat=r,e.stringSet=m,e.filterValidationDecorations=J,e.MINIMAP_GUTTER_WIDTH=8;class _{constructor(fe){this._values=fe}hasChanged(fe){return this._values[fe]}}e.ConfigurationChangedEvent=_;class v{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}e.ComputeOptionsMemory=v;class p{constructor(fe,we,Oe,Be){this.id=fe,this.name=we,this.defaultValue=Oe,this.schema=Be}applyUpdate(fe,we){return s(fe,we)}compute(fe,we,Oe){return Oe}}class n{constructor(fe,we){this.newValue=fe,this.didChange=we}}e.ApplyUpdateResult=n;function s(Ne,fe){if(typeof Ne!="object"||typeof fe!="object"||!Ne||!fe)return new n(fe,Ne!==fe);if(Array.isArray(Ne)||Array.isArray(fe)){const Oe=Array.isArray(Ne)&&Array.isArray(fe)&&c.equals(Ne,fe);return new n(fe,!Oe)}let we=!1;for(const Oe in fe)if(fe.hasOwnProperty(Oe)){const Be=s(Ne[Oe],fe[Oe]);Be.didChange&&(Ne[Oe]=Be.newValue,we=!0)}return new n(Ne,we)}class t{constructor(fe){this.schema=void 0,this.id=fe,this.name="_never_",this.defaultValue=void 0}applyUpdate(fe,we){return s(fe,we)}validate(fe){return this.defaultValue}}class i{constructor(fe,we,Oe,Be){this.id=fe,this.name=we,this.defaultValue=Oe,this.schema=Be}applyUpdate(fe,we){return s(fe,we)}validate(fe){return typeof fe>"u"?this.defaultValue:fe}compute(fe,we,Oe){return Oe}}function o(Ne,fe){return typeof Ne>"u"?fe:Ne==="false"?!1:!!Ne}class g extends i{constructor(fe,we,Oe,Be=void 0){typeof Be<"u"&&(Be.type="boolean",Be.default=Oe),super(fe,we,Oe,Be)}validate(fe){return o(fe,this.defaultValue)}}function u(Ne,fe,we,Oe){if(typeof Ne>"u")return fe;let Be=parseInt(Ne,10);return isNaN(Be)?fe:(Be=Math.max(we,Be),Be=Math.min(Oe,Be),Be|0)}class l extends i{static clampedInt(fe,we,Oe,Be){return u(fe,we,Oe,Be)}constructor(fe,we,Oe,Be,Ue,Ye=void 0){typeof Ye<"u"&&(Ye.type="integer",Ye.default=Oe,Ye.minimum=Be,Ye.maximum=Ue),super(fe,we,Oe,Ye),this.minimum=Be,this.maximum=Ue}validate(fe){return l.clampedInt(fe,this.defaultValue,this.minimum,this.maximum)}}function r(Ne,fe,we,Oe){if(typeof Ne>"u")return fe;const Be=a.float(Ne,fe);return a.clamp(Be,we,Oe)}class a extends i{static clamp(fe,we,Oe){return fe<we?we:fe>Oe?Oe:fe}static float(fe,we){if(typeof fe=="number")return fe;if(typeof fe>"u")return we;const Oe=parseFloat(fe);return isNaN(Oe)?we:Oe}constructor(fe,we,Oe,Be,Ue){typeof Ue<"u"&&(Ue.type="number",Ue.default=Oe),super(fe,we,Oe,Ue),this.validationFn=Be}validate(fe){return this.validationFn(a.float(fe,this.defaultValue))}}class d extends i{static string(fe,we){return typeof fe!="string"?we:fe}constructor(fe,we,Oe,Be=void 0){typeof Be<"u"&&(Be.type="string",Be.default=Oe),super(fe,we,Oe,Be)}validate(fe){return d.string(fe,this.defaultValue)}}function m(Ne,fe,we,Oe){return typeof Ne!="string"?fe:Oe&&Ne in Oe?Oe[Ne]:we.indexOf(Ne)===-1?fe:Ne}class h extends i{constructor(fe,we,Oe,Be,Ue=void 0){typeof Ue<"u"&&(Ue.type="string",Ue.enum=Be,Ue.default=Oe),super(fe,we,Oe,Ue),this._allowedValues=Be}validate(fe){return m(fe,this.defaultValue,this._allowedValues)}}class C extends p{constructor(fe,we,Oe,Be,Ue,Ye,Qe=void 0){typeof Qe<"u"&&(Qe.type="string",Qe.enum=Ue,Qe.default=Be),super(fe,we,Oe,Qe),this._allowedValues=Ue,this._convert=Ye}validate(fe){return typeof fe!="string"?this.defaultValue:this._allowedValues.indexOf(fe)===-1?this.defaultValue:this._convert(fe)}}function b(Ne){switch(Ne){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class w extends p{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f.localize(1315,"Use platform APIs to detect when a Screen Reader is attached."),f.localize(1316,"Optimize for usage with a Screen Reader."),f.localize(1317,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:f.localize(1318,"Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(fe){switch(fe){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(fe,we,Oe){return Oe===0?fe.accessibilitySupport:Oe}}class S extends p{constructor(){const fe={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",fe,{"editor.comments.insertSpace":{type:"boolean",default:fe.insertSpace,description:f.localize(1319,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:fe.ignoreEmptyLines,description:f.localize(1320,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{insertSpace:o(we.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:o(we.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function D(Ne){switch(Ne){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var I;(function(Ne){Ne[Ne.Line=1]="Line",Ne[Ne.Block=2]="Block",Ne[Ne.Underline=3]="Underline",Ne[Ne.LineThin=4]="LineThin",Ne[Ne.BlockOutline=5]="BlockOutline",Ne[Ne.UnderlineThin=6]="UnderlineThin"})(I||(e.TextEditorCursorStyle=I={}));function T(Ne){switch(Ne){case"line":return I.Line;case"block":return I.Block;case"underline":return I.Underline;case"line-thin":return I.LineThin;case"block-outline":return I.BlockOutline;case"underline-thin":return I.UnderlineThin}}class M extends t{constructor(){super(143)}compute(fe,we,Oe){const Be=["monaco-editor"];return we.get(39)&&Be.push(we.get(39)),fe.extraEditorClassName&&Be.push(fe.extraEditorClassName),we.get(74)==="default"?Be.push("mouse-default"):we.get(74)==="copy"&&Be.push("mouse-copy"),we.get(112)&&Be.push("showUnused"),we.get(141)&&Be.push("showDeprecated"),Be.join(" ")}}class A extends g{constructor(){super(37,"emptySelectionClipboard",!0,{description:f.localize(1321,"Controls whether copying without a selection copies the current line.")})}compute(fe,we,Oe){return Oe&&fe.emptySelectionClipboard}}class R extends p{constructor(){const fe={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",fe,{"editor.find.cursorMoveOnType":{type:"boolean",default:fe.cursorMoveOnType,description:f.localize(1322,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:fe.seedSearchStringFromSelection,enumDescriptions:[f.localize(1323,"Never seed search string from the editor selection."),f.localize(1324,"Always seed search string from the editor selection, including word at cursor position."),f.localize(1325,"Only seed search string from the editor selection.")],description:f.localize(1326,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:fe.autoFindInSelection,enumDescriptions:[f.localize(1327,"Never turn on Find in Selection automatically (default)."),f.localize(1328,"Always turn on Find in Selection automatically."),f.localize(1329,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f.localize(1330,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:fe.globalFindClipboard,description:f.localize(1331,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:E.isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:fe.addExtraSpaceOnTop,description:f.localize(1332,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:fe.loop,description:f.localize(1333,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{cursorMoveOnType:o(we.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof fe.seedSearchStringFromSelection=="boolean"?fe.seedSearchStringFromSelection?"always":"never":m(we.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof fe.autoFindInSelection=="boolean"?fe.autoFindInSelection?"always":"never":m(we.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:o(we.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:o(we.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:o(we.loop,this.defaultValue.loop)}}}class N extends p{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(51,"fontLigatures",N.OFF,{anyOf:[{type:"boolean",description:f.localize(1334,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f.localize(1335,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f.localize(1336,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(fe){return typeof fe>"u"?this.defaultValue:typeof fe=="string"?fe==="false"||fe.length===0?N.OFF:fe==="true"?N.ON:fe:fe?N.ON:N.OFF}}e.EditorFontLigatures=N;class O extends p{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(54,"fontVariations",O.OFF,{anyOf:[{type:"boolean",description:f.localize(1337,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f.localize(1338,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f.localize(1339,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(fe){return typeof fe>"u"?this.defaultValue:typeof fe=="string"?fe==="false"?O.OFF:fe==="true"?O.TRANSLATE:fe:fe?O.TRANSLATE:O.OFF}compute(fe,we,Oe){return fe.fontInfo.fontVariationSettings}}e.EditorFontVariations=O;class x extends t{constructor(){super(50)}compute(fe,we,Oe){return fe.fontInfo}}class F extends i{constructor(){super(52,"fontSize",e.EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:e.EDITOR_FONT_DEFAULTS.fontSize,description:f.localize(1340,"Controls the font size in pixels.")})}validate(fe){const we=a.float(fe,this.defaultValue);return we===0?e.EDITOR_FONT_DEFAULTS.fontSize:a.clamp(we,6,100)}compute(fe,we,Oe){return fe.fontInfo.fontSize}}class W extends p{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(53,"fontWeight",e.EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:W.MINIMUM_VALUE,maximum:W.MAXIMUM_VALUE,errorMessage:f.localize(1341,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:W.SUGGESTION_VALUES}],default:e.EDITOR_FONT_DEFAULTS.fontWeight,description:f.localize(1342,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(fe){return fe==="normal"||fe==="bold"?fe:String(l.clampedInt(fe,e.EDITOR_FONT_DEFAULTS.fontWeight,W.MINIMUM_VALUE,W.MAXIMUM_VALUE))}}class z extends p{constructor(){const fe={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},we={type:"string",enum:["peek","gotoAndPeek","goto"],default:fe.multiple,enumDescriptions:[f.localize(1343,"Show Peek view of the results (default)"),f.localize(1344,"Go to the primary result and show a Peek view"),f.localize(1345,"Go to the primary result and enable Peek-less navigation to others")]},Oe=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",fe,{"editor.gotoLocation.multiple":{deprecationMessage:f.localize(1346,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:f.localize(1347,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...we},"editor.gotoLocation.multipleTypeDefinitions":{description:f.localize(1348,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...we},"editor.gotoLocation.multipleDeclarations":{description:f.localize(1349,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...we},"editor.gotoLocation.multipleImplementations":{description:f.localize(1350,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...we},"editor.gotoLocation.multipleReferences":{description:f.localize(1351,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...we},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:fe.alternativeDefinitionCommand,enum:Oe,description:f.localize(1352,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:fe.alternativeTypeDefinitionCommand,enum:Oe,description:f.localize(1353,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:fe.alternativeDeclarationCommand,enum:Oe,description:f.localize(1354,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:fe.alternativeImplementationCommand,enum:Oe,description:f.localize(1355,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:fe.alternativeReferenceCommand,enum:Oe,description:f.localize(1356,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{multiple:m(we.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:we.multipleDefinitions??m(we.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:we.multipleTypeDefinitions??m(we.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:we.multipleDeclarations??m(we.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:we.multipleImplementations??m(we.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:we.multipleReferences??m(we.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:we.multipleTests??m(we.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:d.string(we.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:d.string(we.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:d.string(we.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:d.string(we.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:d.string(we.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:d.string(we.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class q extends p{constructor(){const fe={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",fe,{"editor.hover.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1357,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:fe.delay,minimum:0,maximum:1e4,description:f.localize(1358,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:fe.sticky,description:f.localize(1359,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:fe.hidingDelay,description:f.localize(1360,"Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:fe.above,description:f.localize(1361,"Prefer showing hovers above the line, if there's space.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),delay:l.clampedInt(we.delay,this.defaultValue.delay,0,1e4),sticky:o(we.sticky,this.defaultValue.sticky),hidingDelay:l.clampedInt(we.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:o(we.above,this.defaultValue.above)}}}class H extends t{constructor(){super(146)}compute(fe,we,Oe){return H.computeLayout(we,{memory:fe.memory,outerWidth:fe.outerWidth,outerHeight:fe.outerHeight,isDominatedByLongLines:fe.isDominatedByLongLines,lineHeight:fe.fontInfo.lineHeight,viewLineCount:fe.viewLineCount,lineNumbersDigitCount:fe.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:fe.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:fe.fontInfo.maxDigitWidth,pixelRatio:fe.pixelRatio,glyphMarginDecorationLaneCount:fe.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(fe){const we=fe.height/fe.lineHeight,Oe=Math.floor(fe.paddingTop/fe.lineHeight);let Be=Math.floor(fe.paddingBottom/fe.lineHeight);fe.scrollBeyondLastLine&&(Be=Math.max(Be,we-1));const Ue=(Oe+fe.viewLineCount+Be)/(fe.pixelRatio*fe.height),Ye=Math.floor(fe.viewLineCount/Ue);return{typicalViewportLineCount:we,extraLinesBeforeFirstLine:Oe,extraLinesBeyondLastLine:Be,desiredRatio:Ue,minimapLineCount:Ye}}static _computeMinimapLayout(fe,we){const Oe=fe.outerWidth,Be=fe.outerHeight,Ue=fe.pixelRatio;if(!fe.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(Ue*Be),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:Be};const Ye=we.stableMinimapLayoutInput,Qe=Ye&&fe.outerHeight===Ye.outerHeight&&fe.lineHeight===Ye.lineHeight&&fe.typicalHalfwidthCharacterWidth===Ye.typicalHalfwidthCharacterWidth&&fe.pixelRatio===Ye.pixelRatio&&fe.scrollBeyondLastLine===Ye.scrollBeyondLastLine&&fe.paddingTop===Ye.paddingTop&&fe.paddingBottom===Ye.paddingBottom&&fe.minimap.enabled===Ye.minimap.enabled&&fe.minimap.side===Ye.minimap.side&&fe.minimap.size===Ye.minimap.size&&fe.minimap.showSlider===Ye.minimap.showSlider&&fe.minimap.renderCharacters===Ye.minimap.renderCharacters&&fe.minimap.maxColumn===Ye.minimap.maxColumn&&fe.minimap.scale===Ye.minimap.scale&&fe.verticalScrollbarWidth===Ye.verticalScrollbarWidth&&fe.isViewportWrapping===Ye.isViewportWrapping,tt=fe.lineHeight,it=fe.typicalHalfwidthCharacterWidth,ut=fe.scrollBeyondLastLine,ct=fe.minimap.renderCharacters;let nt=Ue>=2?Math.round(fe.minimap.scale*2):fe.minimap.scale;const st=fe.minimap.maxColumn,dt=fe.minimap.size,St=fe.minimap.side,_t=fe.verticalScrollbarWidth,ht=fe.viewLineCount,wt=fe.remainingWidth,qe=fe.isViewportWrapping,Ce=ct?2:3;let _e=Math.floor(Ue*Be);const Ie=_e/Ue;let Ae=!1,We=!1,Ke=Ce*nt,He=nt/Ue,$e=1;if(dt==="fill"||dt==="fit"){const{typicalViewportLineCount:Je,extraLinesBeforeFirstLine:rt,extraLinesBeyondLastLine:et,desiredRatio:ot,minimapLineCount:at}=H.computeContainedMinimapLineCount({viewLineCount:ht,scrollBeyondLastLine:ut,paddingTop:fe.paddingTop,paddingBottom:fe.paddingBottom,height:Be,lineHeight:tt,pixelRatio:Ue});if(ht/at>1)Ae=!0,We=!0,nt=1,Ke=1,He=nt/Ue;else{let pt=!1,lt=nt+1;if(dt==="fit"){const ft=Math.ceil((rt+ht+et)*Ke);qe&&Qe&&wt<=we.stableFitRemainingWidth?(pt=!0,lt=we.stableFitMaxMinimapScale):pt=ft>_e}if(dt==="fill"||pt){Ae=!0;const ft=nt;Ke=Math.min(tt*Ue,Math.max(1,Math.floor(1/ot))),qe&&Qe&&wt<=we.stableFitRemainingWidth&&(lt=we.stableFitMaxMinimapScale),nt=Math.min(lt,Math.max(1,Math.floor(Ke/Ce))),nt>ft&&($e=Math.min(2,nt/ft)),He=nt/Ue/$e,_e=Math.ceil(Math.max(Je,rt+ht+et)*Ke),qe?(we.stableMinimapLayoutInput=fe,we.stableFitRemainingWidth=wt,we.stableFitMaxMinimapScale=nt):(we.stableMinimapLayoutInput=null,we.stableFitRemainingWidth=0)}}}const Ve=Math.floor(st*He),Me=Math.min(Ve,Math.max(0,Math.floor((wt-_t-2)*He/(it+He)))+e.MINIMAP_GUTTER_WIDTH);let xe=Math.floor(Ue*Me);const ze=xe/Ue;xe=Math.floor(xe*$e);const Ge=ct?1:2,Xe=St==="left"?0:Oe-Me-_t;return{renderMinimap:Ge,minimapLeft:Xe,minimapWidth:Me,minimapHeightIsEditorHeight:Ae,minimapIsSampling:We,minimapScale:nt,minimapLineHeight:Ke,minimapCanvasInnerWidth:xe,minimapCanvasInnerHeight:_e,minimapCanvasOuterWidth:ze,minimapCanvasOuterHeight:Ie}}static computeLayout(fe,we){const Oe=we.outerWidth|0,Be=we.outerHeight|0,Ue=we.lineHeight|0,Ye=we.lineNumbersDigitCount|0,Qe=we.typicalHalfwidthCharacterWidth,tt=we.maxDigitWidth,it=we.pixelRatio,ut=we.viewLineCount,ct=fe.get(138),nt=ct==="inherit"?fe.get(137):ct,st=nt==="inherit"?fe.get(133):nt,dt=fe.get(136),St=we.isDominatedByLongLines,_t=fe.get(57),ht=fe.get(68).renderType!==0,wt=fe.get(69),qe=fe.get(106),Ce=fe.get(84),_e=fe.get(73),Ie=fe.get(104),Ae=Ie.verticalScrollbarSize,We=Ie.verticalHasArrows,Ke=Ie.arrowSize,He=Ie.horizontalScrollbarSize,$e=fe.get(43),Ve=fe.get(111)!=="never";let Me=fe.get(66);$e&&Ve&&(Me+=16);let xe=0;if(ht){const Et=Math.max(Ye,wt);xe=Math.round(Et*tt)}let ze=0;_t&&(ze=Ue*we.glyphMarginDecorationLaneCount);let Ge=0,Xe=Ge+ze,Je=Xe+xe,rt=Je+Me;const et=Oe-ze-xe-Me;let ot=!1,at=!1,gt=-1;nt==="inherit"&&St?(ot=!0,at=!0):st==="on"||st==="bounded"?at=!0:st==="wordWrapColumn"&&(gt=dt);const pt=H._computeMinimapLayout({outerWidth:Oe,outerHeight:Be,lineHeight:Ue,typicalHalfwidthCharacterWidth:Qe,pixelRatio:it,scrollBeyondLastLine:qe,paddingTop:Ce.top,paddingBottom:Ce.bottom,minimap:_e,verticalScrollbarWidth:Ae,viewLineCount:ut,remainingWidth:et,isViewportWrapping:at},we.memory||new v);pt.renderMinimap!==0&&pt.minimapLeft===0&&(Ge+=pt.minimapWidth,Xe+=pt.minimapWidth,Je+=pt.minimapWidth,rt+=pt.minimapWidth);const lt=et-pt.minimapWidth,ft=Math.max(1,Math.floor((lt-Ae-2)/Qe)),Dt=We?Ke:0;return at&&(gt=Math.max(1,ft),st==="bounded"&&(gt=Math.min(gt,dt))),{width:Oe,height:Be,glyphMarginLeft:Ge,glyphMarginWidth:ze,glyphMarginDecorationLaneCount:we.glyphMarginDecorationLaneCount,lineNumbersLeft:Xe,lineNumbersWidth:xe,decorationsLeft:Je,decorationsWidth:Me,contentLeft:rt,contentWidth:lt,minimap:pt,viewportColumn:ft,isWordWrapMinified:ot,isViewportWrapping:at,wrappingColumn:gt,verticalScrollbarWidth:Ae,horizontalScrollbarHeight:He,overviewRuler:{top:Dt,width:Ae,height:Be-2*Dt,right:0}}}}e.EditorLayoutInfoComputer=H;class K extends p{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f.localize(1362,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f.localize(1363,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f.localize(1364,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(fe){return m(fe,"simple",["simple","advanced"])}compute(fe,we,Oe){return we.get(2)===2?"advanced":Oe}}var U;(function(Ne){Ne.Off="off",Ne.OnCode="onCode",Ne.On="on"})(U||(e.ShowLightbulbIconMode=U={}));class Y extends p{constructor(){const fe={enabled:U.On};super(65,"lightbulb",fe,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[U.Off,U.OnCode,U.On],default:fe.enabled,enumDescriptions:[f.localize(1365,"Disable the code action menu."),f.localize(1366,"Show the code action menu when the cursor is on lines with code."),f.localize(1367,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:f.localize(1368,"Enables the Code Action lightbulb in the editor.")}})}validate(fe){return!fe||typeof fe!="object"?this.defaultValue:{enabled:m(fe.enabled,this.defaultValue.enabled,[U.Off,U.OnCode,U.On])}}}class Q extends p{constructor(){const fe={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",fe,{"editor.stickyScroll.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1369,"Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:fe.maxLineCount,minimum:1,maximum:20,description:f.localize(1370,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:fe.defaultModel,description:f.localize(1371,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:fe.scrollWithEditor,description:f.localize(1372,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),maxLineCount:l.clampedInt(we.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:m(we.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:o(we.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class X extends p{constructor(){const fe={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",fe,{"editor.inlayHints.enabled":{type:"string",default:fe.enabled,description:f.localize(1373,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f.localize(1374,"Inlay hints are enabled"),f.localize(1375,"Inlay hints are showing by default and hide when holding {0}",E.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),f.localize(1376,"Inlay hints are hidden by default and show when holding {0}",E.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),f.localize(1377,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:fe.fontSize,markdownDescription:f.localize(1378,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:fe.fontFamily,markdownDescription:f.localize(1379,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:fe.padding,description:f.localize(1380,"Enables the padding around the inlay hints in the editor.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return typeof we.enabled=="boolean"&&(we.enabled=we.enabled?"on":"off"),{enabled:m(we.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:l.clampedInt(we.fontSize,this.defaultValue.fontSize,0,100),fontFamily:d.string(we.fontFamily,this.defaultValue.fontFamily),padding:o(we.padding,this.defaultValue.padding)}}}class G extends p{constructor(){super(66,"lineDecorationsWidth",10)}validate(fe){return typeof fe=="string"&&/^\d+(\.\d+)?ch$/.test(fe)?-parseFloat(fe.substring(0,fe.length-2)):l.clampedInt(fe,this.defaultValue,0,1e3)}compute(fe,we,Oe){return Oe<0?l.clampedInt(-Oe*fe.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):Oe}}class P extends a{constructor(){super(67,"lineHeight",e.EDITOR_FONT_DEFAULTS.lineHeight,fe=>a.clamp(fe,0,150),{markdownDescription:f.localize(1381,`Controls the line height.
|
|
593
593
|
- Use 0 to automatically compute the line height from the font size.
|
|
594
594
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
595
|
-
- Values greater than or equal to 8 will be used as effective values.`)})}compute(fe,we,Oe){return fe.fontInfo.lineHeight}}class te extends p{constructor(){const fe={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",fe,{"editor.minimap.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1382,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:fe.autohide,description:f.localize(1383,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f.localize(1384,"The minimap has the same size as the editor contents (and might scroll)."),f.localize(1385,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f.localize(1386,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:fe.size,description:f.localize(1387,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:fe.side,description:f.localize(1388,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:fe.showSlider,description:f.localize(1389,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:fe.scale,minimum:1,maximum:3,enum:[1,2,3],description:f.localize(1390,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:fe.renderCharacters,description:f.localize(1391,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:fe.maxColumn,description:f.localize(1392,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:fe.showRegionSectionHeaders,description:f.localize(1393,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:fe.showMarkSectionHeaders,description:f.localize(1394,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:fe.sectionHeaderFontSize,description:f.localize(1395,"Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:fe.sectionHeaderLetterSpacing,description:f.localize(1396,"Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),autohide:o(we.autohide,this.defaultValue.autohide),size:m(we.size,this.defaultValue.size,["proportional","fill","fit"]),side:m(we.side,this.defaultValue.side,["right","left"]),showSlider:m(we.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:o(we.renderCharacters,this.defaultValue.renderCharacters),scale:l.clampedInt(we.scale,1,1,3),maxColumn:l.clampedInt(we.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:o(we.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:o(we.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:a.clamp(we.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:a.clamp(we.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function se(Ne){return Ne==="ctrlCmd"?E.isMacintosh?"metaKey":"ctrlKey":"altKey"}class ue extends p{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f.localize(1397,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:f.localize(1398,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{top:l.clampedInt(we.top,0,0,1e3),bottom:l.clampedInt(we.bottom,0,0,1e3)}}}class ge extends p{constructor(){const fe={enabled:!0,cycle:!0};super(86,"parameterHints",fe,{"editor.parameterHints.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1399,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:fe.cycle,description:f.localize(1400,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),cycle:o(we.cycle,this.defaultValue.cycle)}}}class pe extends t{constructor(){super(144)}compute(fe,we,Oe){return fe.pixelRatio}}class ce extends p{constructor(){super(88,"placeholder",void 0)}validate(fe){return typeof fe>"u"?this.defaultValue:typeof fe=="string"?fe:this.defaultValue}}class ie extends p{constructor(){const fe={other:"on",comments:"off",strings:"off"},we=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[f.localize(1401,"Quick suggestions show inside the suggest widget"),f.localize(1402,"Quick suggestions show as ghost text"),f.localize(1403,"Quick suggestions are disabled")]}];super(90,"quickSuggestions",fe,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:we,default:fe.strings,description:f.localize(1404,"Enable quick suggestions inside strings.")},comments:{anyOf:we,default:fe.comments,description:f.localize(1405,"Enable quick suggestions inside comments.")},other:{anyOf:we,default:fe.other,description:f.localize(1406,"Enable quick suggestions outside of strings and comments.")}},default:fe,markdownDescription:f.localize(1407,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=fe}validate(fe){if(typeof fe=="boolean"){const it=fe?"on":"off";return{comments:it,strings:it,other:it}}if(!fe||typeof fe!="object")return this.defaultValue;const{other:we,comments:Oe,strings:Be}=fe,Ue=["on","inline","off"];let Ye,Qe,tt;return typeof we=="boolean"?Ye=we?"on":"off":Ye=m(we,this.defaultValue.other,Ue),typeof Oe=="boolean"?Qe=Oe?"on":"off":Qe=m(Oe,this.defaultValue.comments,Ue),typeof Be=="boolean"?tt=Be?"on":"off":tt=m(Be,this.defaultValue.strings,Ue),{other:Ye,comments:Qe,strings:tt}}}class ne extends p{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f.localize(1408,"Line numbers are not rendered."),f.localize(1409,"Line numbers are rendered as absolute number."),f.localize(1410,"Line numbers are rendered as distance in lines to cursor position."),f.localize(1411,"Line numbers are rendered every 10 lines.")],default:"on",description:f.localize(1412,"Controls the display of line numbers.")})}validate(fe){let we=this.defaultValue.renderType,Oe=this.defaultValue.renderFn;return typeof fe<"u"&&(typeof fe=="function"?(we=4,Oe=fe):fe==="interval"?we=3:fe==="relative"?we=2:fe==="on"?we=1:we=0),{renderType:we,renderFn:Oe}}}function J(Ne){const fe=Ne.get(99);return fe==="editable"?Ne.get(92):fe!=="on"}class B extends p{constructor(){const fe=[],we={type:"number",description:f.localize(1413,"Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",fe,{type:"array",items:{anyOf:[we,{type:["object"],properties:{column:we,color:{type:"string",description:f.localize(1414,"Color of this editor ruler."),format:"color-hex"}}}]},default:fe,description:f.localize(1415,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(fe){if(Array.isArray(fe)){const we=[];for(const Oe of fe)if(typeof Oe=="number")we.push({column:l.clampedInt(Oe,0,0,1e4),color:null});else if(Oe&&typeof Oe=="object"){const Be=Oe;we.push({column:l.clampedInt(Be.column,0,0,1e4),color:Be.color})}return we.sort((Oe,Be)=>Oe.column-Be.column),we}return this.defaultValue}}class j extends p{constructor(){super(93,"readOnlyMessage",void 0)}validate(fe){return!fe||typeof fe!="object"?this.defaultValue:fe}}function V(Ne,fe){if(typeof Ne!="string")return fe;switch(Ne){case"hidden":return 2;case"visible":return 3;default:return 1}}class $ extends p{constructor(){const fe={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",fe,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f.localize(1416,"The vertical scrollbar will be visible only when necessary."),f.localize(1417,"The vertical scrollbar will always be visible."),f.localize(1418,"The vertical scrollbar will always be hidden.")],default:"auto",description:f.localize(1419,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f.localize(1420,"The horizontal scrollbar will be visible only when necessary."),f.localize(1421,"The horizontal scrollbar will always be visible."),f.localize(1422,"The horizontal scrollbar will always be hidden.")],default:"auto",description:f.localize(1423,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:fe.verticalScrollbarSize,description:f.localize(1424,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:fe.horizontalScrollbarSize,description:f.localize(1425,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:fe.scrollByPage,description:f.localize(1426,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:fe.ignoreHorizontalScrollbarInContentHeight,description:f.localize(1427,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe,Oe=l.clampedInt(we.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Be=l.clampedInt(we.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:l.clampedInt(we.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:V(we.vertical,this.defaultValue.vertical),horizontal:V(we.horizontal,this.defaultValue.horizontal),useShadows:o(we.useShadows,this.defaultValue.useShadows),verticalHasArrows:o(we.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:o(we.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:o(we.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:o(we.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Oe,horizontalSliderSize:l.clampedInt(we.horizontalSliderSize,Oe,0,1e3),verticalScrollbarSize:Be,verticalSliderSize:l.clampedInt(we.verticalSliderSize,Be,0,1e3),scrollByPage:o(we.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:o(we.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}e.inUntrustedWorkspace="inUntrustedWorkspace",e.unicodeHighlightConfigKeys={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class Z extends p{constructor(){const fe={nonBasicASCII:e.inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:e.inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",fe,{[e.unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:fe.nonBasicASCII,description:f.localize(1428,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[e.unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:fe.invisibleCharacters,description:f.localize(1429,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[e.unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:fe.ambiguousCharacters,description:f.localize(1430,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[e.unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:fe.includeComments,description:f.localize(1431,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[e.unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:fe.includeStrings,description:f.localize(1432,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[e.unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:fe.allowedCharacters,description:f.localize(1433,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[e.unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:fe.allowedLocales,description:f.localize(1434,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(fe,we){let Oe=!1;we.allowedCharacters&&fe&&(k.equals(fe.allowedCharacters,we.allowedCharacters)||(fe={...fe,allowedCharacters:we.allowedCharacters},Oe=!0)),we.allowedLocales&&fe&&(k.equals(fe.allowedLocales,we.allowedLocales)||(fe={...fe,allowedLocales:we.allowedLocales},Oe=!0));const Be=super.applyUpdate(fe,we);return Oe?new n(Be.newValue,!0):Be}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{nonBasicASCII:be(we.nonBasicASCII,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),invisibleCharacters:o(we.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:o(we.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:be(we.includeComments,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),includeStrings:be(we.includeStrings,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),allowedCharacters:this.validateBooleanMap(fe.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(fe.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(fe,we){if(typeof fe!="object"||!fe)return we;const Oe={};for(const[Be,Ue]of Object.entries(fe))Ue===!0&&(Oe[Be]=!0);return Oe}}class ee extends p{constructor(){const fe={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",fe,{"editor.inlineSuggest.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1435,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:fe.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f.localize(1436,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),f.localize(1437,"Show the inline suggestion toolbar when hovering over an inline suggestion."),f.localize(1438,"Never show the inline suggestion toolbar.")],description:f.localize(1439,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:fe.suppressSuggestions,description:f.localize(1440,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:fe.fontFamily,description:f.localize(1441,"Controls the font family of the inline suggestions.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),mode:m(we.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:m(we.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:o(we.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:o(we.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:d.string(we.fontFamily,this.defaultValue.fontFamily)}}}class le extends p{constructor(){const fe={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",fe,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1442,"Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:fe.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f.localize(1443,"Show the inline edit toolbar whenever an inline suggestion is shown."),f.localize(1444,"Show the inline edit toolbar when hovering over an inline suggestion."),f.localize(1445,"Never show the inline edit toolbar.")],description:f.localize(1446,"Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:fe.fontFamily,description:f.localize(1447,"Controls the font family of the inline edit.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),showToolbar:m(we.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:d.string(we.fontFamily,this.defaultValue.fontFamily),keepOnBlur:o(we.keepOnBlur,this.defaultValue.keepOnBlur)}}}class de extends p{constructor(){const fe={enabled:L.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:L.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",fe,{"editor.bracketPairColorization.enabled":{type:"boolean",default:fe.enabled,markdownDescription:f.localize(1448,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:fe.independentColorPoolPerBracketType,description:f.localize(1449,"Controls whether each bracket type has its own independent color pool.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:o(we.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class me extends p{constructor(){const fe={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",fe,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f.localize(1450,"Enables bracket pair guides."),f.localize(1451,"Enables bracket pair guides only for the active bracket pair."),f.localize(1452,"Disables bracket pair guides.")],default:fe.bracketPairs,description:f.localize(1453,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f.localize(1454,"Enables horizontal guides as addition to vertical bracket pair guides."),f.localize(1455,"Enables horizontal guides only for the active bracket pair."),f.localize(1456,"Disables horizontal bracket pair guides.")],default:fe.bracketPairsHorizontal,description:f.localize(1457,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:fe.highlightActiveBracketPair,description:f.localize(1458,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:fe.indentation,description:f.localize(1459,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[f.localize(1460,"Highlights the active indent guide."),f.localize(1461,"Highlights the active indent guide even if bracket guides are highlighted."),f.localize(1462,"Do not highlight the active indent guide.")],default:fe.highlightActiveIndentation,description:f.localize(1463,"Controls whether the editor should highlight the active indent guide.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{bracketPairs:be(we.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:be(we.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:o(we.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:o(we.indentation,this.defaultValue.indentation),highlightActiveIndentation:be(we.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function be(Ne,fe,we){const Oe=we.indexOf(Ne);return Oe===-1?fe:we[Oe]}class ve extends p{constructor(){const fe={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",fe,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[f.localize(1464,"Insert suggestion without overwriting text right of the cursor."),f.localize(1465,"Insert suggestion and overwrite text right of the cursor.")],default:fe.insertMode,description:f.localize(1466,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:fe.filterGraceful,description:f.localize(1467,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:fe.localityBonus,description:f.localize(1468,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:fe.shareSuggestSelections,markdownDescription:f.localize(1469,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[f.localize(1470,"Always select a suggestion when automatically triggering IntelliSense."),f.localize(1471,"Never select a suggestion when automatically triggering IntelliSense."),f.localize(1472,"Select a suggestion only when triggering IntelliSense from a trigger character."),f.localize(1473,"Select a suggestion only when triggering IntelliSense as you type.")],default:fe.selectionMode,markdownDescription:f.localize(1474,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:fe.snippetsPreventQuickSuggestions,description:f.localize(1475,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:fe.showIcons,description:f.localize(1476,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:fe.showStatusBar,description:f.localize(1477,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:fe.preview,description:f.localize(1478,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:fe.showInlineDetails,description:f.localize(1479,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f.localize(1480,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f.localize(1481,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:f.localize(1482,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f.localize(1483,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f.localize(1484,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f.localize(1485,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:f.localize(1486,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:f.localize(1487,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f.localize(1488,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f.localize(1489,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f.localize(1490,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f.localize(1491,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f.localize(1492,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f.localize(1493,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f.localize(1494,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f.localize(1495,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f.localize(1496,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f.localize(1497,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f.localize(1498,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f.localize(1499,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f.localize(1500,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f.localize(1501,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f.localize(1502,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f.localize(1503,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f.localize(1504,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f.localize(1505,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f.localize(1506,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f.localize(1507,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f.localize(1508,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f.localize(1509,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f.localize(1510,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f.localize(1511,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{insertMode:m(we.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:o(we.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:o(we.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:o(we.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:o(we.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:m(we.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:o(we.showIcons,this.defaultValue.showIcons),showStatusBar:o(we.showStatusBar,this.defaultValue.showStatusBar),preview:o(we.preview,this.defaultValue.preview),previewMode:m(we.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:o(we.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:o(we.showMethods,this.defaultValue.showMethods),showFunctions:o(we.showFunctions,this.defaultValue.showFunctions),showConstructors:o(we.showConstructors,this.defaultValue.showConstructors),showDeprecated:o(we.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:o(we.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:o(we.showFields,this.defaultValue.showFields),showVariables:o(we.showVariables,this.defaultValue.showVariables),showClasses:o(we.showClasses,this.defaultValue.showClasses),showStructs:o(we.showStructs,this.defaultValue.showStructs),showInterfaces:o(we.showInterfaces,this.defaultValue.showInterfaces),showModules:o(we.showModules,this.defaultValue.showModules),showProperties:o(we.showProperties,this.defaultValue.showProperties),showEvents:o(we.showEvents,this.defaultValue.showEvents),showOperators:o(we.showOperators,this.defaultValue.showOperators),showUnits:o(we.showUnits,this.defaultValue.showUnits),showValues:o(we.showValues,this.defaultValue.showValues),showConstants:o(we.showConstants,this.defaultValue.showConstants),showEnums:o(we.showEnums,this.defaultValue.showEnums),showEnumMembers:o(we.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:o(we.showKeywords,this.defaultValue.showKeywords),showWords:o(we.showWords,this.defaultValue.showWords),showColors:o(we.showColors,this.defaultValue.showColors),showFiles:o(we.showFiles,this.defaultValue.showFiles),showReferences:o(we.showReferences,this.defaultValue.showReferences),showFolders:o(we.showFolders,this.defaultValue.showFolders),showTypeParameters:o(we.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:o(we.showSnippets,this.defaultValue.showSnippets),showUsers:o(we.showUsers,this.defaultValue.showUsers),showIssues:o(we.showIssues,this.defaultValue.showIssues)}}}class Le extends p{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f.localize(1512,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:f.localize(1513,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(fe){return!fe||typeof fe!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:o(fe.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:o(fe.selectSubwords,this.defaultValue.selectSubwords)}}}class Se extends p{constructor(){const fe=[];super(131,"wordSegmenterLocales",fe,{anyOf:[{description:f.localize(1514,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:f.localize(1515,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(fe){if(typeof fe=="string"&&(fe=[fe]),Array.isArray(fe)){const we=[];for(const Oe of fe)if(typeof Oe=="string")try{Intl.Segmenter.supportedLocalesOf(Oe).length>0&&we.push(Oe)}catch{}return we}return this.defaultValue}}class ye extends p{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[f.localize(1516,"No indentation. Wrapped lines begin at column 1."),f.localize(1517,"Wrapped lines get the same indentation as the parent."),f.localize(1518,"Wrapped lines get +1 indentation toward the parent."),f.localize(1519,"Wrapped lines get +2 indentation toward the parent.")],description:f.localize(1520,"Controls the indentation of wrapped lines."),default:"same"}})}validate(fe){switch(fe){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(fe,we,Oe){return we.get(2)===2?0:Oe}}class Ee extends t{constructor(){super(147)}compute(fe,we,Oe){const Be=we.get(146);return{isDominatedByLongLines:fe.isDominatedByLongLines,isWordWrapMinified:Be.isWordWrapMinified,isViewportWrapping:Be.isViewportWrapping,wrappingColumn:Be.wrappingColumn}}}class ke extends p{constructor(){const fe={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",fe,{"editor.dropIntoEditor.enabled":{type:"boolean",default:fe.enabled,markdownDescription:f.localize(1521,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:f.localize(1522,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[f.localize(1523,"Show the drop selector widget after a file is dropped into the editor."),f.localize(1524,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),showDropSelector:m(we.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class Re extends p{constructor(){const fe={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",fe,{"editor.pasteAs.enabled":{type:"boolean",default:fe.enabled,markdownDescription:f.localize(1525,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:f.localize(1526,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[f.localize(1527,"Show the paste selector widget after content is pasted into the editor."),f.localize(1528,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),showPasteSelector:m(we.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const Pe="Consolas, 'Courier New', monospace",Fe="Menlo, Monaco, 'Courier New', monospace",je="'Droid Sans Mono', 'monospace', monospace";e.EDITOR_FONT_DEFAULTS={fontFamily:E.isMacintosh?Fe:E.isLinux?je:Pe,fontWeight:"normal",fontSize:E.isMacintosh?12:14,lineHeight:0,letterSpacing:0},e.editorOptionsRegistry=[];function Te(Ne){return e.editorOptionsRegistry[Ne.id]=Ne,Ne}e.EditorOptions={acceptSuggestionOnCommitCharacter:Te(new g(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f.localize(1529,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Te(new h(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f.localize(1530,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f.localize(1531,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Te(new w),accessibilityPageSize:Te(new l(3,"accessibilityPageSize",10,1,1073741824,{description:f.localize(1532,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Te(new d(4,"ariaLabel",f.localize(1533,"Editor content"))),ariaRequired:Te(new g(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:Te(new g(8,"screenReaderAnnounceInlineSuggestion",!0,{description:f.localize(1534,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:Te(new h(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f.localize(1535,"Use language configurations to determine when to autoclose brackets."),f.localize(1536,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f.localize(1537,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:Te(new h(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f.localize(1538,"Use language configurations to determine when to autoclose comments."),f.localize(1539,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:f.localize(1540,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:Te(new h(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f.localize(1541,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f.localize(1542,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Te(new h(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f.localize(1543,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:f.localize(1544,"Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Te(new h(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f.localize(1545,"Use language configurations to determine when to autoclose quotes."),f.localize(1546,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f.localize(1547,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Te(new C(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],b,{enumDescriptions:[f.localize(1548,"The editor will not insert indentation automatically."),f.localize(1549,"The editor will keep the current line's indentation."),f.localize(1550,"The editor will keep the current line's indentation and honor language defined brackets."),f.localize(1551,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f.localize(1552,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:f.localize(1553,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Te(new g(13,"automaticLayout",!1)),autoSurround:Te(new h(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f.localize(1554,"Use language configurations to determine when to automatically surround selections."),f.localize(1555,"Surround with quotes but not brackets."),f.localize(1556,"Surround with brackets but not quotes."),""],description:f.localize(1557,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Te(new de),bracketPairGuides:Te(new me),stickyTabStops:Te(new g(117,"stickyTabStops",!1,{description:f.localize(1558,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Te(new g(17,"codeLens",!0,{description:f.localize(1559,"Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Te(new d(18,"codeLensFontFamily","",{description:f.localize(1560,"Controls the font family for CodeLens.")})),codeLensFontSize:Te(new l(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f.localize(1561,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Te(new g(20,"colorDecorators",!0,{description:f.localize(1562,"Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:Te(new h(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[f.localize(1563,"Make the color picker appear both on click and hover of the color decorator"),f.localize(1564,"Make the color picker appear on hover of the color decorator"),f.localize(1565,"Make the color picker appear on click of the color decorator")],description:f.localize(1566,"Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:Te(new l(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:f.localize(1567,"Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Te(new g(22,"columnSelection",!1,{description:f.localize(1568,"Enable that the selection with the mouse and keys is doing column selection.")})),comments:Te(new S),contextmenu:Te(new g(24,"contextmenu",!0)),copyWithSyntaxHighlighting:Te(new g(25,"copyWithSyntaxHighlighting",!0,{description:f.localize(1569,"Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Te(new C(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],D,{description:f.localize(1570,"Control the cursor animation style.")})),cursorSmoothCaretAnimation:Te(new h(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[f.localize(1571,"Smooth caret animation is disabled."),f.localize(1572,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),f.localize(1573,"Smooth caret animation is always enabled.")],description:f.localize(1574,"Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Te(new C(28,"cursorStyle",I.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],T,{description:f.localize(1575,"Controls the cursor style.")})),cursorSurroundingLines:Te(new l(29,"cursorSurroundingLines",0,0,1073741824,{description:f.localize(1576,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Te(new h(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f.localize(1577,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f.localize(1578,"`cursorSurroundingLines` is enforced always.")],markdownDescription:f.localize(1579,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:Te(new l(31,"cursorWidth",0,0,1073741824,{markdownDescription:f.localize(1580,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Te(new g(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:Te(new g(33,"disableMonospaceOptimizations",!1)),domReadOnly:Te(new g(34,"domReadOnly",!1)),dragAndDrop:Te(new g(35,"dragAndDrop",!0,{description:f.localize(1581,"Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Te(new A),dropIntoEditor:Te(new ke),stickyScroll:Te(new Q),experimentalWhitespaceRendering:Te(new h(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[f.localize(1582,"Use a new rendering method with svgs."),f.localize(1583,"Use a new rendering method with font characters."),f.localize(1584,"Use the stable rendering method.")],description:f.localize(1585,"Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Te(new d(39,"extraEditorClassName","")),fastScrollSensitivity:Te(new a(40,"fastScrollSensitivity",5,Ne=>Ne<=0?5:Ne,{markdownDescription:f.localize(1586,"Scrolling speed multiplier when pressing `Alt`.")})),find:Te(new R),fixedOverflowWidgets:Te(new g(42,"fixedOverflowWidgets",!1)),folding:Te(new g(43,"folding",!0,{description:f.localize(1587,"Controls whether the editor has code folding enabled.")})),foldingStrategy:Te(new h(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f.localize(1588,"Use a language-specific folding strategy if available, else the indentation-based one."),f.localize(1589,"Use the indentation-based folding strategy.")],description:f.localize(1590,"Controls the strategy for computing folding ranges.")})),foldingHighlight:Te(new g(45,"foldingHighlight",!0,{description:f.localize(1591,"Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Te(new g(46,"foldingImportsByDefault",!1,{description:f.localize(1592,"Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Te(new l(47,"foldingMaximumRegions",5e3,10,65e3,{description:f.localize(1593,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Te(new g(48,"unfoldOnClickAfterEndOfLine",!1,{description:f.localize(1594,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Te(new d(49,"fontFamily",e.EDITOR_FONT_DEFAULTS.fontFamily,{description:f.localize(1595,"Controls the font family.")})),fontInfo:Te(new x),fontLigatures2:Te(new N),fontSize:Te(new F),fontWeight:Te(new W),fontVariations:Te(new O),formatOnPaste:Te(new g(55,"formatOnPaste",!1,{description:f.localize(1596,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Te(new g(56,"formatOnType",!1,{description:f.localize(1597,"Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Te(new g(57,"glyphMargin",!0,{description:f.localize(1598,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Te(new z),hideCursorInOverviewRuler:Te(new g(59,"hideCursorInOverviewRuler",!1,{description:f.localize(1599,"Controls whether the cursor should be hidden in the overview ruler.")})),hover:Te(new q),inDiffEditor:Te(new g(61,"inDiffEditor",!1)),letterSpacing:Te(new a(64,"letterSpacing",e.EDITOR_FONT_DEFAULTS.letterSpacing,Ne=>a.clamp(Ne,-5,20),{description:f.localize(1600,"Controls the letter spacing in pixels.")})),lightbulb:Te(new Y),lineDecorationsWidth:Te(new G),lineHeight:Te(new P),lineNumbers:Te(new ne),lineNumbersMinChars:Te(new l(69,"lineNumbersMinChars",5,1,300)),linkedEditing:Te(new g(70,"linkedEditing",!1,{description:f.localize(1601,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Te(new g(71,"links",!0,{description:f.localize(1602,"Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Te(new h(72,"matchBrackets","always",["always","near","never"],{description:f.localize(1603,"Highlight matching brackets.")})),minimap:Te(new te),mouseStyle:Te(new h(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Te(new a(75,"mouseWheelScrollSensitivity",1,Ne=>Ne===0?1:Ne,{markdownDescription:f.localize(1604,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Te(new g(76,"mouseWheelZoom",!1,{markdownDescription:E.isMacintosh?f.localize(1605,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):f.localize(1606,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Te(new g(77,"multiCursorMergeOverlapping",!0,{description:f.localize(1607,"Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Te(new C(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],se,{markdownEnumDescriptions:[f.localize(1608,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),f.localize(1609,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f.localize(1610,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Te(new h(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f.localize(1611,"Each cursor pastes a single line of the text."),f.localize(1612,"Each cursor pastes the full text.")],markdownDescription:f.localize(1613,"Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Te(new l(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:f.localize(1614,"Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Te(new h(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[f.localize(1615,"Does not highlight occurrences."),f.localize(1616,"Highlights occurrences only in the current file."),f.localize(1617,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:f.localize(1618,"Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:Te(new g(82,"overviewRulerBorder",!0,{description:f.localize(1619,"Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Te(new l(83,"overviewRulerLanes",3,0,3)),padding:Te(new ue),pasteAs:Te(new Re),parameterHints:Te(new ge),peekWidgetDefaultFocus:Te(new h(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f.localize(1620,"Focus the tree when opening peek"),f.localize(1621,"Focus the editor when opening peek")],description:f.localize(1622,"Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:Te(new ce),definitionLinkOpensInPeek:Te(new g(89,"definitionLinkOpensInPeek",!1,{description:f.localize(1623,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Te(new ie),quickSuggestionsDelay:Te(new l(91,"quickSuggestionsDelay",10,0,1073741824,{description:f.localize(1624,"Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Te(new g(92,"readOnly",!1)),readOnlyMessage:Te(new j),renameOnType:Te(new g(94,"renameOnType",!1,{description:f.localize(1625,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:f.localize(1626,"Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Te(new g(95,"renderControlCharacters",!0,{description:f.localize(1627,"Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Te(new h(96,"renderFinalNewline",E.isLinux?"dimmed":"on",["off","on","dimmed"],{description:f.localize(1628,"Render last line number when the file ends with a newline.")})),renderLineHighlight:Te(new h(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f.localize(1629,"Highlights both the gutter and the current line.")],description:f.localize(1630,"Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Te(new g(98,"renderLineHighlightOnlyWhenFocus",!1,{description:f.localize(1631,"Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Te(new h(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Te(new h(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f.localize(1632,"Render whitespace characters except for single spaces between words."),f.localize(1633,"Render whitespace characters only on selected text."),f.localize(1634,"Render only trailing whitespace characters."),""],description:f.localize(1635,"Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Te(new l(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Te(new g(102,"roundedSelection",!0,{description:f.localize(1636,"Controls whether selections should have rounded corners.")})),rulers:Te(new B),scrollbar:Te(new $),scrollBeyondLastColumn:Te(new l(105,"scrollBeyondLastColumn",4,0,1073741824,{description:f.localize(1637,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Te(new g(106,"scrollBeyondLastLine",!0,{description:f.localize(1638,"Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Te(new g(107,"scrollPredominantAxis",!0,{description:f.localize(1639,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Te(new g(108,"selectionClipboard",!0,{description:f.localize(1640,"Controls whether the Linux primary clipboard should be supported."),included:E.isLinux})),selectionHighlight:Te(new g(109,"selectionHighlight",!0,{description:f.localize(1641,"Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Te(new g(110,"selectOnLineNumbers",!0)),showFoldingControls:Te(new h(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[f.localize(1642,"Always show the folding controls."),f.localize(1643,"Never show the folding controls and reduce the gutter size."),f.localize(1644,"Only show the folding controls when the mouse is over the gutter.")],description:f.localize(1645,"Controls when the folding controls on the gutter are shown.")})),showUnused:Te(new g(112,"showUnused",!0,{description:f.localize(1646,"Controls fading out of unused code.")})),showDeprecated:Te(new g(141,"showDeprecated",!0,{description:f.localize(1647,"Controls strikethrough deprecated variables.")})),inlayHints:Te(new X),snippetSuggestions:Te(new h(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f.localize(1648,"Show snippet suggestions on top of other suggestions."),f.localize(1649,"Show snippet suggestions below other suggestions."),f.localize(1650,"Show snippets suggestions with other suggestions."),f.localize(1651,"Do not show snippet suggestions.")],description:f.localize(1652,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Te(new Le),smoothScrolling:Te(new g(115,"smoothScrolling",!1,{description:f.localize(1653,"Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Te(new l(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Te(new ve),inlineSuggest:Te(new ee),inlineEdit:Te(new le),inlineCompletionsAccessibilityVerbose:Te(new g(150,"inlineCompletionsAccessibilityVerbose",!1,{description:f.localize(1654,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:Te(new l(120,"suggestFontSize",0,0,1e3,{markdownDescription:f.localize(1655,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Te(new l(121,"suggestLineHeight",0,0,1e3,{markdownDescription:f.localize(1656,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Te(new g(122,"suggestOnTriggerCharacters",!0,{description:f.localize(1657,"Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Te(new h(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f.localize(1658,"Always select the first suggestion."),f.localize(1659,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f.localize(1660,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f.localize(1661,"Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Te(new h(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f.localize(1662,"Tab complete will insert the best matching suggestion when pressing tab."),f.localize(1663,"Disable tab completions."),f.localize(1664,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f.localize(1665,"Enables tab completions.")})),tabIndex:Te(new l(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:Te(new Z),unusualLineTerminators:Te(new h(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f.localize(1666,"Unusual line terminators are automatically removed."),f.localize(1667,"Unusual line terminators are ignored."),f.localize(1668,"Unusual line terminators prompt to be removed.")],description:f.localize(1669,"Remove unusual line terminators that might cause problems.")})),useShadowDOM:Te(new g(128,"useShadowDOM",!0)),useTabStops:Te(new g(129,"useTabStops",!0,{description:f.localize(1670,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:Te(new h(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[f.localize(1671,"Use the default line break rule."),f.localize(1672,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:f.localize(1673,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:Te(new Se),wordSeparators:Te(new d(132,"wordSeparators",y.USUAL_WORD_SEPARATORS,{description:f.localize(1674,"Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Te(new h(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f.localize(1675,"Lines will never wrap."),f.localize(1676,"Lines will wrap at the viewport width."),f.localize(1677,"Lines will wrap at `#editor.wordWrapColumn#`."),f.localize(1678,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f.localize(1679,"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Te(new d(134,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:Te(new d(135,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:Te(new l(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:f.localize(1680,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Te(new h(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Te(new h(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Te(new M),defaultColorDecorators:Te(new g(148,"defaultColorDecorators",!1,{markdownDescription:f.localize(1681,"Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:Te(new pe),tabFocusMode:Te(new g(145,"tabFocusMode",!1,{markdownDescription:f.localize(1682,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Te(new H),wrappingInfo:Te(new Ee),wrappingIndent:Te(new ye),wrappingStrategy:Te(new K)}}),define(oe[650],re([1,0,5,39,11,74,37,9,4,224]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewCursor=e.CursorPlurality=void 0;class p{constructor(i,o,g,u,l,r,a){this.top=i,this.left=o,this.paddingLeft=g,this.width=u,this.height=l,this.textContent=r,this.textContentClassName=a}}var n;(function(t){t[t.Single=0]="Single",t[t.MultiPrimary=1]="MultiPrimary",t[t.MultiSecondary=2]="MultiSecondary"})(n||(e.CursorPlurality=n={}));class s{constructor(i,o){this._context=i;const g=this._context.configuration.options,u=g.get(50);this._cursorStyle=g.get(28),this._lineHeight=g.get(67),this._typicalHalfwidthCharacterWidth=u.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(g.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,k.createFastDomNode)(document.createElement("div")),this._domNode.setClassName(`cursor ${v.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,L.applyFontInfo)(this._domNode,u),this._domNode.setDisplay("none"),this._position=new f.Position(1,1),this._pluralityClass="",this.setPlurality(o),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(i){switch(i){default:case n.Single:this._pluralityClass="";break;case n.MultiPrimary:this._pluralityClass="cursor-primary";break;case n.MultiSecondary:this._pluralityClass="cursor-secondary";break}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(i){const o=this._context.configuration.options,g=o.get(50);return this._cursorStyle=o.get(28),this._lineHeight=o.get(67),this._typicalHalfwidthCharacterWidth=g.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(o.get(31),this._typicalHalfwidthCharacterWidth),(0,L.applyFontInfo)(this._domNode,g),!0}onCursorPositionChanged(i,o){return o?this._domNode.domNode.style.transitionProperty="none":this._domNode.domNode.style.transitionProperty="",this._position=i,!0}_getGraphemeAwarePosition(){const{lineNumber:i,column:o}=this._position,g=this._context.viewModel.getLineContent(i),[u,l]=E.getCharContainingOffset(g,o-1);return[new f.Position(i,u+1),g.substring(u,l)]}_prepareRender(i){let o="",g="";const[u,l]=this._getGraphemeAwarePosition();if(this._cursorStyle===y.TextEditorCursorStyle.Line||this._cursorStyle===y.TextEditorCursorStyle.LineThin){const b=i.visibleRangeForPosition(u);if(!b||b.outsideRenderedLine)return null;const w=c.getWindow(this._domNode.domNode);let S;this._cursorStyle===y.TextEditorCursorStyle.Line?(S=c.computeScreenAwareSize(w,this._lineCursorWidth>0?this._lineCursorWidth:2),S>2&&(o=l,g=this._getTokenClassName(u))):S=c.computeScreenAwareSize(w,1);let D=b.left,I=0;S>=2&&D>=1&&(I=1,D-=I);const T=i.getVerticalOffsetForLineNumber(u.lineNumber)-i.bigNumbersDelta;return new p(T,D,I,S,this._lineHeight,o,g)}const r=i.linesVisibleRangesForRange(new _.Range(u.lineNumber,u.column,u.lineNumber,u.column+l.length),!1);if(!r||r.length===0)return null;const a=r[0];if(a.outsideRenderedLine||a.ranges.length===0)return null;const d=a.ranges[0],m=l===" "?this._typicalHalfwidthCharacterWidth:d.width<1?this._typicalHalfwidthCharacterWidth:d.width;this._cursorStyle===y.TextEditorCursorStyle.Block&&(o=l,g=this._getTokenClassName(u));let h=i.getVerticalOffsetForLineNumber(u.lineNumber)-i.bigNumbersDelta,C=this._lineHeight;return(this._cursorStyle===y.TextEditorCursorStyle.Underline||this._cursorStyle===y.TextEditorCursorStyle.UnderlineThin)&&(h+=this._lineHeight-2,C=2),new p(h,d.left,0,m,C,o,g)}_getTokenClassName(i){const o=this._context.viewModel.getViewLineData(i.lineNumber),g=o.tokens.findTokenIndexAtOffset(i.column-1);return o.tokens.getClassName(g)}prepareRender(i){this._renderData=this._prepareRender(i)}render(i){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${v.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}e.ViewCursor=s}),define(oe[260],re([1,0,16,37,163]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontInfo=e.SERIALIZED_FONT_INFO_VERSION=e.BareFontInfo=void 0;const L=c.isMacintosh?1.5:1.35,y=8;class f{static createFromValidatedSettings(p,n,s){const t=p.get(49),i=p.get(53),o=p.get(52),g=p.get(51),u=p.get(54),l=p.get(67),r=p.get(64);return f._create(t,i,o,g,u,l,r,n,s)}static _create(p,n,s,t,i,o,g,u,l){o===0?o=L*s:o<y&&(o=o*s),o=Math.round(o),o<y&&(o=y);const r=1+(l?0:E.EditorZoom.getZoomLevel()*.1);return s*=r,o*=r,i===k.EditorFontVariations.TRANSLATE&&(n==="normal"||n==="bold"?i=k.EditorFontVariations.OFF:(i=`'wght' ${parseInt(n,10)}`,n="normal")),new f({pixelRatio:u,fontFamily:p,fontWeight:n,fontSize:s,fontFeatureSettings:t,fontVariationSettings:i,lineHeight:o,letterSpacing:g})}constructor(p){this._bareFontInfoBrand=void 0,this.pixelRatio=p.pixelRatio,this.fontFamily=String(p.fontFamily),this.fontWeight=String(p.fontWeight),this.fontSize=p.fontSize,this.fontFeatureSettings=p.fontFeatureSettings,this.fontVariationSettings=p.fontVariationSettings,this.lineHeight=p.lineHeight|0,this.letterSpacing=p.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const p=k.EDITOR_FONT_DEFAULTS.fontFamily,n=f._wrapInQuotes(this.fontFamily);return p&&this.fontFamily!==p?`${n}, ${p}`:n}static _wrapInQuotes(p){return/[,"']/.test(p)?p:/[+ ]/.test(p)?`"${p}"`:p}}e.BareFontInfo=f,e.SERIALIZED_FONT_INFO_VERSION=2;class _ extends f{constructor(p,n){super(p),this._editorStylingBrand=void 0,this.version=e.SERIALIZED_FONT_INFO_VERSION,this.isTrusted=n,this.isMonospace=p.isMonospace,this.typicalHalfwidthCharacterWidth=p.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=p.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=p.canUseHalfwidthRightwardsArrow,this.spaceWidth=p.spaceWidth,this.middotWidth=p.middotWidth,this.wsmiddotWidth=p.wsmiddotWidth,this.maxDigitWidth=p.maxDigitWidth}equals(p){return this.fontFamily===p.fontFamily&&this.fontWeight===p.fontWeight&&this.fontSize===p.fontSize&&this.fontFeatureSettings===p.fontFeatureSettings&&this.fontVariationSettings===p.fontVariationSettings&&this.lineHeight===p.lineHeight&&this.letterSpacing===p.letterSpacing&&this.typicalHalfwidthCharacterWidth===p.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===p.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===p.canUseHalfwidthRightwardsArrow&&this.spaceWidth===p.spaceWidth&&this.middotWidth===p.middotWidth&&this.wsmiddotWidth===p.wsmiddotWidth&&this.maxDigitWidth===p.maxDigitWidth}}e.FontInfo=_}),define(oe[364],re([1,0,5,252,6,2,541,37,260]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontMeasurements=e.FontMeasurementsImpl=void 0;class v extends L.Disposable{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new E.Emitter),this.onDidChange=this._onDidChange.event}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(s){const t=(0,c.getWindowId)(s);let i=this._cache.get(t);return i||(i=new p,this._cache.set(t,i)),i}_writeToCache(s,t,i){this._ensureCache(s).put(t,i),!i.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=s.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(s)},5e3))}_evictUntrustedReadings(s){const t=this._ensureCache(s),i=t.getValues();let o=!1;for(const g of i)g.isTrusted||(o=!0,t.remove(g));o&&this._onDidChange.fire()}readFontInfo(s,t){const i=this._ensureCache(s);if(!i.has(t)){let o=this._actualReadFontInfo(s,t);(o.typicalHalfwidthCharacterWidth<=2||o.typicalFullwidthCharacterWidth<=2||o.spaceWidth<=2||o.maxDigitWidth<=2)&&(o=new _.FontInfo({pixelRatio:k.PixelRatio.getInstance(s).value,fontFamily:o.fontFamily,fontWeight:o.fontWeight,fontSize:o.fontSize,fontFeatureSettings:o.fontFeatureSettings,fontVariationSettings:o.fontVariationSettings,lineHeight:o.lineHeight,letterSpacing:o.letterSpacing,isMonospace:o.isMonospace,typicalHalfwidthCharacterWidth:Math.max(o.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(o.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:o.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(o.spaceWidth,5),middotWidth:Math.max(o.middotWidth,5),wsmiddotWidth:Math.max(o.wsmiddotWidth,5),maxDigitWidth:Math.max(o.maxDigitWidth,5)},!1)),this._writeToCache(s,t,o)}return i.get(t)}_createRequest(s,t,i,o){const g=new y.CharWidthRequest(s,t);return i.push(g),o?.push(g),g}_actualReadFontInfo(s,t){const i=[],o=[],g=this._createRequest("n",0,i,o),u=this._createRequest("\uFF4D",0,i,null),l=this._createRequest(" ",0,i,o),r=this._createRequest("0",0,i,o),a=this._createRequest("1",0,i,o),d=this._createRequest("2",0,i,o),m=this._createRequest("3",0,i,o),h=this._createRequest("4",0,i,o),C=this._createRequest("5",0,i,o),b=this._createRequest("6",0,i,o),w=this._createRequest("7",0,i,o),S=this._createRequest("8",0,i,o),D=this._createRequest("9",0,i,o),I=this._createRequest("\u2192",0,i,o),T=this._createRequest("\uFFEB",0,i,null),M=this._createRequest("\xB7",0,i,o),A=this._createRequest("\u2E31",0,i,null),R="|/-_ilm%";for(let W=0,z=R.length;W<z;W++)this._createRequest(R.charAt(W),0,i,o),this._createRequest(R.charAt(W),1,i,o),this._createRequest(R.charAt(W),2,i,o);(0,y.readCharWidths)(s,t,i);const N=Math.max(r.width,a.width,d.width,m.width,h.width,C.width,b.width,w.width,S.width,D.width);let O=t.fontFeatureSettings===f.EditorFontLigatures.OFF;const x=o[0].width;for(let W=1,z=o.length;O&&W<z;W++){const q=x-o[W].width;if(q<-.001||q>.001){O=!1;break}}let F=!0;return O&&T.width!==x&&(F=!1),T.width>I.width&&(F=!1),new _.FontInfo({pixelRatio:k.PixelRatio.getInstance(s).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:O,typicalHalfwidthCharacterWidth:g.width,typicalFullwidthCharacterWidth:u.width,canUseHalfwidthRightwardsArrow:F,spaceWidth:l.width,middotWidth:M.width,wsmiddotWidth:A.width,maxDigitWidth:N},!0)}}e.FontMeasurementsImpl=v;class p{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(s){const t=s.getId();return!!this._values[t]}get(s){const t=s.getId();return this._values[t]}put(s,t){const i=s.getId();this._keys[i]=s,this._values[i]=t}remove(s){const t=s.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(s=>this._values[s])}}e.FontMeasurements=new v}),define(oe[115],re([1,0,11,16,158]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringBuilder=void 0,e.getPlatformTextDecoder=p,e.decodeUTF16LE=n;let L;function y(){return L||(L=new TextDecoder("UTF-16LE")),L}let f;function _(){return f||(f=new TextDecoder("UTF-16BE")),f}let v;function p(){return v||(v=k.isLittleEndian()?y():_()),v}function n(i,o,g){const u=new Uint16Array(i.buffer,o,g);return g>0&&(u[0]===65279||u[0]===65534)?s(i,o,g):y().decode(u)}function s(i,o,g){const u=[];let l=0;for(let r=0;r<g;r++){const a=E.readUInt16LE(i,o);o+=2,u[l++]=String.fromCharCode(a)}return u.join("")}class t{constructor(o){this._capacity=o|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";const o=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return p().decode(o)}_flushBuffer(){const o=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[o]:this._completedStrings[this._completedStrings.length]=o}appendCharCode(o){const g=this._capacity-this._bufferLength;g<=1&&(g===0||c.isHighSurrogate(o))&&this._flushBuffer(),this._buffer[this._bufferLength++]=o}appendASCIICharCode(o){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=o}appendString(o){const g=o.length;if(this._bufferLength+g>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=o;return}for(let u=0;u<g;u++)this._buffer[this._bufferLength++]=o.charCodeAt(u)}}e.StringBuilder=t}),define(oe[651],re([1,0,102,11,19,74,115,324,131]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DOMLineBreaksComputerFactory=void 0;const v=(0,c.createTrustedTypesPolicy)("domLineBreaksComputer",{createHTML:g=>g});class p{static create(u){return new p(new WeakRef(u))}constructor(u){this.targetWindow=u}createLineBreaksComputer(u,l,r,a,d){const m=[],h=[];return{addRequest:(C,b,w)=>{m.push(C),h.push(b)},finalize:()=>n((0,E.assertIsDefined)(this.targetWindow.deref()),m,u,l,r,a,d,h)}}}e.DOMLineBreaksComputerFactory=p;function n(g,u,l,r,a,d,m,h){function C(H){const K=h[H];if(K){const U=_.LineInjectedText.applyInjectedText(u[H],K),Y=K.map(X=>X.options),Q=K.map(X=>X.column-1);return new f.ModelLineProjectionData(Q,Y,[U.length],[],0)}else return null}if(a===-1){const H=[];for(let K=0,U=u.length;K<U;K++)H[K]=C(K);return H}const b=Math.round(a*l.typicalHalfwidthCharacterWidth),S=Math.round(r*(d===3?2:d===2?1:0)),D=Math.ceil(l.spaceWidth*S),I=document.createElement("div");(0,L.applyFontInfo)(I,l);const T=new y.StringBuilder(1e4),M=[],A=[],R=[],N=[],O=[];for(let H=0;H<u.length;H++){const K=_.LineInjectedText.applyInjectedText(u[H],h[H]);let U=0,Y=0,Q=b;if(d!==0)if(U=k.firstNonWhitespaceIndex(K),U===-1)U=0;else{for(let te=0;te<U;te++){const se=K.charCodeAt(te)===9?r-Y%r:1;Y+=se}const P=Math.ceil(l.spaceWidth*Y);P+l.typicalFullwidthCharacterWidth>b?(U=0,Y=0):Q=b-P}const X=K.substr(U),G=s(X,Y,r,Q,T,D);M[H]=U,A[H]=Y,R[H]=X,N[H]=G[0],O[H]=G[1]}const x=T.build(),F=v?.createHTML(x)??x;I.innerHTML=F,I.style.position="absolute",I.style.top="10000",m==="keepAll"?(I.style.wordBreak="keep-all",I.style.overflowWrap="anywhere"):(I.style.wordBreak="inherit",I.style.overflowWrap="break-word"),g.document.body.appendChild(I);const W=document.createRange(),z=Array.prototype.slice.call(I.children,0),q=[];for(let H=0;H<u.length;H++){const K=z[H],U=t(W,K,R[H],N[H]);if(U===null){q[H]=C(H);continue}const Y=M[H],Q=A[H]+S,X=O[H],G=[];for(let ue=0,ge=U.length;ue<ge;ue++)G[ue]=X[U[ue]];if(Y!==0)for(let ue=0,ge=U.length;ue<ge;ue++)U[ue]+=Y;let P,te;const se=h[H];se?(P=se.map(ue=>ue.options),te=se.map(ue=>ue.column-1)):(P=null,te=null),q[H]=new f.ModelLineProjectionData(te,P,U,G,Q)}return I.remove(),q}function s(g,u,l,r,a,d){if(d!==0){const D=String(d);a.appendString('<div style="text-indent: -'),a.appendString(D),a.appendString("px; padding-left: "),a.appendString(D),a.appendString("px; box-sizing: border-box; width:")}else a.appendString('<div style="width:');a.appendString(String(r)),a.appendString('px;">');const m=g.length;let h=u,C=0;const b=[],w=[];let S=0<m?g.charCodeAt(0):0;a.appendString("<span>");for(let D=0;D<m;D++){D!==0&&D%16384===0&&a.appendString("</span><span>"),b[D]=C,w[D]=h;const I=S;S=D+1<m?g.charCodeAt(D+1):0;let T=1,M=1;switch(I){case 9:T=l-h%l,M=T;for(let A=1;A<=T;A++)A<T?a.appendCharCode(160):a.appendASCIICharCode(32);break;case 32:S===32?a.appendCharCode(160):a.appendASCIICharCode(32);break;case 60:a.appendString("<");break;case 62:a.appendString(">");break;case 38:a.appendString("&");break;case 0:a.appendString("�");break;case 65279:case 8232:case 8233:case 133:a.appendCharCode(65533);break;default:k.isFullWidthCharacter(I)&&M++,I<32?a.appendCharCode(9216+I):a.appendCharCode(I)}C+=T,h+=M}return a.appendString("</span>"),b[g.length]=C,w[g.length]=h,a.appendString("</div>"),[b,w]}function t(g,u,l,r){if(l.length<=1)return null;const a=Array.prototype.slice.call(u.children,0),d=[];try{i(g,a,r,0,null,l.length-1,null,d)}catch(m){return console.log(m),null}return d.length===0?null:(d.push(l.length),d)}function i(g,u,l,r,a,d,m,h){if(r===d||(a=a||o(g,u,l[r],l[r+1]),m=m||o(g,u,l[d],l[d+1]),Math.abs(a[0].top-m[0].top)<=.1))return;if(r+1===d){h.push(d);return}const C=r+(d-r)/2|0,b=o(g,u,l[C],l[C+1]);i(g,u,l,r,a,C,b,h),i(g,u,l,C,b,d,m,h)}function o(g,u,l,r){return g.setStart(u[l/16384|0].firstChild,l%16384),g.setEnd(u[r/16384|0].firstChild,r%16384),g.getClientRects()}}),define(oe[261],re([1,0,39,102,8,115]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisibleLinesCollection=e.RenderedLinesCollection=void 0;class y{constructor(p){this._createLine=p,this._set(1,[])}flush(){this._set(1,[])}_set(p,n){this._lines=n,this._rendLineNumberStart=p}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(p){const n=p-this._rendLineNumberStart;if(n<0||n>=this._lines.length)throw new E.BugIndicatingError("Illegal value for lineNumber");return this._lines[n]}onLinesDeleted(p,n){if(this.getCount()===0)return null;const s=this.getStartLineNumber(),t=this.getEndLineNumber();if(n<s){const u=n-p+1;return this._rendLineNumberStart-=u,null}if(p>t)return null;let i=0,o=0;for(let u=s;u<=t;u++){const l=u-this._rendLineNumberStart;p<=u&&u<=n&&(o===0?(i=l,o=1):o++)}if(p<s){let u=0;n<s?u=n-p+1:u=s-p,this._rendLineNumberStart-=u}return this._lines.splice(i,o)}onLinesChanged(p,n){const s=p+n-1;if(this.getCount()===0)return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let o=!1;for(let g=p;g<=s;g++)g>=t&&g<=i&&(this._lines[g-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(p,n){if(this.getCount()===0)return null;const s=n-p+1,t=this.getStartLineNumber(),i=this.getEndLineNumber();if(p<=t)return this._rendLineNumberStart+=s,null;if(p>i)return null;if(s+p>i)return this._lines.splice(p-this._rendLineNumberStart,i-p+1);const o=[];for(let a=0;a<s;a++)o[a]=this._createLine();const g=p-this._rendLineNumberStart,u=this._lines.slice(0,g),l=this._lines.slice(g,this._lines.length-s),r=this._lines.slice(this._lines.length-s,this._lines.length);return this._lines=u.concat(o).concat(l),r}onTokensChanged(p){if(this.getCount()===0)return!1;const n=this.getStartLineNumber(),s=this.getEndLineNumber();let t=!1;for(let i=0,o=p.length;i<o;i++){const g=p[i];if(g.toLineNumber<n||g.fromLineNumber>s)continue;const u=Math.max(n,g.fromLineNumber),l=Math.min(s,g.toLineNumber);for(let r=u;r<=l;r++){const a=r-this._rendLineNumberStart;this._lines[a].onTokensChanged(),t=!0}}return t}}e.RenderedLinesCollection=y;class f{constructor(p){this._host=p,this.domNode=this._createDomNode(),this._linesCollection=new y(()=>this._host.createVisibleLine())}_createDomNode(){const p=(0,c.createFastDomNode)(document.createElement("div"));return p.setClassName("view-layer"),p.setPosition("absolute"),p.domNode.setAttribute("role","presentation"),p.domNode.setAttribute("aria-hidden","true"),p}onConfigurationChanged(p){return!!p.hasChanged(146)}onFlushed(p){return this._linesCollection.flush(),!0}onLinesChanged(p){return this._linesCollection.onLinesChanged(p.fromLineNumber,p.count)}onLinesDeleted(p){const n=this._linesCollection.onLinesDeleted(p.fromLineNumber,p.toLineNumber);if(n)for(let s=0,t=n.length;s<t;s++)n[s].getDomNode()?.remove();return!0}onLinesInserted(p){const n=this._linesCollection.onLinesInserted(p.fromLineNumber,p.toLineNumber);if(n)for(let s=0,t=n.length;s<t;s++)n[s].getDomNode()?.remove();return!0}onScrollChanged(p){return p.scrollTopChanged}onTokensChanged(p){return this._linesCollection.onTokensChanged(p.ranges)}onZonesChanged(p){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(p){return this._linesCollection.getLine(p)}renderLines(p){const n=this._linesCollection._get(),s=new _(this.domNode.domNode,this._host,p),t={rendLineNumberStart:n.rendLineNumberStart,lines:n.lines,linesLength:n.lines.length},i=s.render(t,p.startLineNumber,p.endLineNumber,p.relativeVerticalOffset);this._linesCollection._set(i.rendLineNumberStart,i.lines)}}e.VisibleLinesCollection=f;class _{static{this._ttPolicy=(0,k.createTrustedTypesPolicy)("editorViewLayer",{createHTML:p=>p})}constructor(p,n,s){this.domNode=p,this.host=n,this.viewportData=s}render(p,n,s,t){const i={rendLineNumberStart:p.rendLineNumberStart,lines:p.lines.slice(0),linesLength:p.linesLength};if(i.rendLineNumberStart+i.linesLength-1<n||s<i.rendLineNumberStart){i.rendLineNumberStart=n,i.linesLength=s-n+1,i.lines=[];for(let o=n;o<=s;o++)i.lines[o-n]=this.host.createVisibleLine();return this._finishRendering(i,!0,t),i}if(this._renderUntouchedLines(i,Math.max(n-i.rendLineNumberStart,0),Math.min(s-i.rendLineNumberStart,i.linesLength-1),t,n),i.rendLineNumberStart>n){const o=n,g=Math.min(s,i.rendLineNumberStart-1);o<=g&&(this._insertLinesBefore(i,o,g,t,n),i.linesLength+=g-o+1)}else if(i.rendLineNumberStart<n){const o=Math.min(i.linesLength,n-i.rendLineNumberStart);o>0&&(this._removeLinesBefore(i,o),i.linesLength-=o)}if(i.rendLineNumberStart=n,i.rendLineNumberStart+i.linesLength-1<s){const o=i.rendLineNumberStart+i.linesLength,g=s;o<=g&&(this._insertLinesAfter(i,o,g,t,n),i.linesLength+=g-o+1)}else if(i.rendLineNumberStart+i.linesLength-1>s){const o=Math.max(0,s-i.rendLineNumberStart+1),u=i.linesLength-1-o+1;u>0&&(this._removeLinesAfter(i,u),i.linesLength-=u)}return this._finishRendering(i,!1,t),i}_renderUntouchedLines(p,n,s,t,i){const o=p.rendLineNumberStart,g=p.lines;for(let u=n;u<=s;u++){const l=o+u;g[u].layoutLine(l,t[l-i],this.viewportData.lineHeight)}}_insertLinesBefore(p,n,s,t,i){const o=[];let g=0;for(let u=n;u<=s;u++)o[g++]=this.host.createVisibleLine();p.lines=o.concat(p.lines)}_removeLinesBefore(p,n){for(let s=0;s<n;s++)p.lines[s].getDomNode()?.remove();p.lines.splice(0,n)}_insertLinesAfter(p,n,s,t,i){const o=[];let g=0;for(let u=n;u<=s;u++)o[g++]=this.host.createVisibleLine();p.lines=p.lines.concat(o)}_removeLinesAfter(p,n){const s=p.linesLength-n;for(let t=0;t<n;t++)p.lines[s+t].getDomNode()?.remove();p.lines.splice(s,n)}_finishRenderingNewLines(p,n,s,t){_._ttPolicy&&(s=_._ttPolicy.createHTML(s));const i=this.domNode.lastChild;n||!i?this.domNode.innerHTML=s:i.insertAdjacentHTML("afterend",s);let o=this.domNode.lastChild;for(let g=p.linesLength-1;g>=0;g--){const u=p.lines[g];t[g]&&(u.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(p,n,s){const t=document.createElement("div");_._ttPolicy&&(n=_._ttPolicy.createHTML(n)),t.innerHTML=n;for(let i=0;i<p.linesLength;i++){const o=p.lines[i];if(s[i]){const g=t.firstChild,u=o.getDomNode();u.parentNode.replaceChild(g,u),o.setDomNode(g)}}}static{this._sb=new L.StringBuilder(1e5)}_finishRendering(p,n,s){const t=_._sb,i=p.linesLength,o=p.lines,g=p.rendLineNumberStart,u=[];{t.reset();let l=!1;for(let r=0;r<i;r++){const a=o[r];u[r]=!1,!(a.getDomNode()||!a.renderLine(r+g,s[r],this.viewportData.lineHeight,this.viewportData,t))&&(u[r]=!0,l=!0)}l&&this._finishRenderingNewLines(p,n,t.build(),u)}{t.reset();let l=!1;const r=[];for(let a=0;a<i;a++){const d=o[a];r[a]=!1,!(u[a]||!d.renderLine(a+g,s[a],this.viewportData.lineHeight,this.viewportData,t))&&(r[a]=!0,l=!0)}l&&this._finishRenderingInvalidLines(p,t.build(),r)}}}}),define(oe[652],re([1,0,39,74,261,56]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginViewOverlays=e.ContentViewOverlays=e.ViewOverlayLine=e.ViewOverlays=void 0;class y extends L.ViewPart{constructor(n){super(n),this._visibleLines=new E.VisibleLinesCollection(this),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,k.applyFontInfo)(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let n=0,s=this._dynamicOverlays.length;n<s;n++)if(this._dynamicOverlays[n].shouldRender())return!0;return!1}dispose(){super.dispose();for(let n=0,s=this._dynamicOverlays.length;n<s;n++)this._dynamicOverlays[n].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new f(this._dynamicOverlays)}addDynamicOverlay(n){this._dynamicOverlays.push(n)}onConfigurationChanged(n){this._visibleLines.onConfigurationChanged(n);const t=this._context.configuration.options.get(50);return(0,k.applyFontInfo)(this.domNode,t),!0}onFlushed(n){return this._visibleLines.onFlushed(n)}onFocusChanged(n){return this._isFocused=n.isFocused,!0}onLinesChanged(n){return this._visibleLines.onLinesChanged(n)}onLinesDeleted(n){return this._visibleLines.onLinesDeleted(n)}onLinesInserted(n){return this._visibleLines.onLinesInserted(n)}onScrollChanged(n){return this._visibleLines.onScrollChanged(n)||!0}onTokensChanged(n){return this._visibleLines.onTokensChanged(n)}onZonesChanged(n){return this._visibleLines.onZonesChanged(n)}prepareRender(n){const s=this._dynamicOverlays.filter(t=>t.shouldRender());for(let t=0,i=s.length;t<i;t++){const o=s[t];o.prepareRender(n),o.onDidRender()}}render(n){this._viewOverlaysRender(n),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(n){this._visibleLines.renderLines(n.viewportData)}}e.ViewOverlays=y;class f{constructor(n){this._dynamicOverlays=n,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(n){this._domNode=(0,c.createFastDomNode)(n)}onContentChanged(){}onTokensChanged(){}renderLine(n,s,t,i,o){let g="";for(let u=0,l=this._dynamicOverlays.length;u<l;u++){const r=this._dynamicOverlays[u];g+=r.render(i.startLineNumber,n)}return this._renderedContent===g?!1:(this._renderedContent=g,o.appendString('<div style="top:'),o.appendString(String(s)),o.appendString("px;height:"),o.appendString(String(t)),o.appendString('px;">'),o.appendString(g),o.appendString("</div>"),!0)}layoutLine(n,s,t){this._domNode&&(this._domNode.setTop(s),this._domNode.setHeight(t))}}e.ViewOverlayLine=f;class _ extends y{constructor(n){super(n);const t=this._context.configuration.options.get(146);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(n){const t=this._context.configuration.options.get(146);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(n)||!0}onScrollChanged(n){return super.onScrollChanged(n)||n.scrollWidthChanged}_viewOverlaysRender(n){super._viewOverlaysRender(n),this.domNode.setWidth(Math.max(n.scrollWidth,this._contentWidth))}}e.ContentViewOverlays=_;class v extends y{constructor(n){super(n);const s=this._context.configuration.options,t=s.get(146);this._contentLeft=t.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,k.applyFontInfo)(this.domNode,s.get(50))}onConfigurationChanged(n){const s=this._context.configuration.options;(0,k.applyFontInfo)(this.domNode,s.get(50));const t=s.get(146);return this._contentLeft=t.contentLeft,super.onConfigurationChanged(n)||!0}onScrollChanged(n){return super.onScrollChanged(n)||n.scrollHeightChanged}_viewOverlaysRender(n){super._viewOverlaysRender(n);const s=Math.min(n.scrollHeight,1e6);this.domNode.setHeight(s),this.domNode.setWidth(this._contentLeft)}}e.MarginViewOverlays=v}),define(oe[365],re([1,0,158,115]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextChange=void 0,e.compressConsecutiveTextChanges=y;function E(_){return _.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class L{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(v,p,n,s){this.oldPosition=v,this.oldText=p,this.newPosition=n,this.newText=s}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${E(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${E(this.oldText)}")`:`(replace@${this.oldPosition} "${E(this.oldText)}" with "${E(this.newText)}")`}static _writeStringSize(v){return 4+2*v.length}static _writeString(v,p,n){const s=p.length;c.writeUInt32BE(v,s,n),n+=4;for(let t=0;t<s;t++)c.writeUInt16LE(v,p.charCodeAt(t),n),n+=2;return n}static _readString(v,p){const n=c.readUInt32BE(v,p);return p+=4,(0,k.decodeUTF16LE)(v,p,n)}writeSize(){return 8+L._writeStringSize(this.oldText)+L._writeStringSize(this.newText)}write(v,p){return c.writeUInt32BE(v,this.oldPosition,p),p+=4,c.writeUInt32BE(v,this.newPosition,p),p+=4,p=L._writeString(v,this.oldText,p),p=L._writeString(v,this.newText,p),p}static read(v,p,n){const s=c.readUInt32BE(v,p);p+=4;const t=c.readUInt32BE(v,p);p+=4;const i=L._readString(v,p);p+=L._writeStringSize(i);const o=L._readString(v,p);return p+=L._writeStringSize(o),n.push(new L(s,i,t,o)),p}}e.TextChange=L;function y(_,v){return _===null||_.length===0?v:new f(_,v).compress()}class f{constructor(v,p){this._prevEdits=v,this._currEdits=p,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let v=0,p=0,n=this._getPrev(v),s=this._getCurr(p);for(;v<this._prevLen||p<this._currLen;){if(n===null){this._acceptCurr(s),s=this._getCurr(++p);continue}if(s===null){this._acceptPrev(n),n=this._getPrev(++v);continue}if(s.oldEnd<=n.newPosition){this._acceptCurr(s),s=this._getCurr(++p);continue}if(n.newEnd<=s.oldPosition){this._acceptPrev(n),n=this._getPrev(++v);continue}if(s.oldPosition<n.newPosition){const[u,l]=f._splitCurr(s,n.newPosition-s.oldPosition);this._acceptCurr(u),s=l;continue}if(n.newPosition<s.oldPosition){const[u,l]=f._splitPrev(n,s.oldPosition-n.newPosition);this._acceptPrev(u),n=l;continue}let o,g;if(s.oldEnd===n.newEnd)o=n,g=s,n=this._getPrev(++v),s=this._getCurr(++p);else if(s.oldEnd<n.newEnd){const[u,l]=f._splitPrev(n,s.oldLength);o=u,g=s,n=l,s=this._getCurr(++p)}else{const[u,l]=f._splitCurr(s,n.newLength);o=n,g=u,n=this._getPrev(++v),s=l}this._result[this._resultLen++]=new L(o.oldPosition,o.oldText,g.newPosition,g.newText),this._prevDeltaOffset+=o.newLength-o.oldLength,this._currDeltaOffset+=g.newLength-g.oldLength}const t=f._merge(this._result);return f._removeNoOps(t)}_acceptCurr(v){this._result[this._resultLen++]=f._rebaseCurr(this._prevDeltaOffset,v),this._currDeltaOffset+=v.newLength-v.oldLength}_getCurr(v){return v<this._currLen?this._currEdits[v]:null}_acceptPrev(v){this._result[this._resultLen++]=f._rebasePrev(this._currDeltaOffset,v),this._prevDeltaOffset+=v.newLength-v.oldLength}_getPrev(v){return v<this._prevLen?this._prevEdits[v]:null}static _rebaseCurr(v,p){return new L(p.oldPosition-v,p.oldText,p.newPosition,p.newText)}static _rebasePrev(v,p){return new L(p.oldPosition,p.oldText,p.newPosition+v,p.newText)}static _splitPrev(v,p){const n=v.newText.substr(0,p),s=v.newText.substr(p);return[new L(v.oldPosition,v.oldText,v.newPosition,n),new L(v.oldEnd,"",v.newPosition+p,s)]}static _splitCurr(v,p){const n=v.oldText.substr(0,p),s=v.oldText.substr(p);return[new L(v.oldPosition,n,v.newPosition,v.newText),new L(v.oldPosition+p,s,v.newEnd,"")]}static _merge(v){if(v.length===0)return v;const p=[];let n=0,s=v[0];for(let t=1;t<v.length;t++){const i=v[t];s.oldEnd===i.oldPosition?s=new L(s.oldPosition,s.oldText+i.oldText,s.newPosition,s.newText+i.newText):(p[n++]=s,s=i)}return p[n++]=s,p}static _removeNoOps(v){if(v.length===0)return v;const p=[];let n=0;for(let s=0;s<v.length;s++){const t=v[s];t.oldText!==t.newText&&(p[n++]=t)}return p}}}),define(oe[366],re([1,0,348,99]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.score=E;function E(L,y,f,_,v,p){if(Array.isArray(L)){let n=0;for(const s of L){const t=E(s,y,f,_,v,p);if(t===10)return t;t>n&&(n=t)}return n}else{if(typeof L=="string")return _?L==="*"?5:L===f?10:0:0;if(L){const{language:n,pattern:s,scheme:t,hasAccessToAllModels:i,notebookType:o}=L;if(!_&&!i)return 0;o&&v&&(y=v);let g=0;if(t)if(t===y.scheme)g=10;else if(t==="*")g=5;else return 0;if(n)if(n===f)g=10;else if(n==="*")g=Math.max(g,5);else return 0;if(o)if(o===p)g=10;else if(o==="*"&&p!==void 0)g=Math.max(g,5);else return 0;if(s){let u;if(typeof s=="string"?u=s:u={...s,base:(0,k.normalize)(s.base)},u===y.fsPath||(0,c.match)(u,y.fsPath))g=10;else return 0}return g}else return 0}}}),define(oe[653],re([1,0,6,2,40,366]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeatureRegistry=void 0;function y(p){return typeof p=="string"?!1:Array.isArray(p)?p.every(y):!!p.exclusive}class f{constructor(n,s,t,i,o){this.uri=n,this.languageId=s,this.notebookUri=t,this.notebookType=i,this.recursive=o}equals(n){return this.notebookType===n.notebookType&&this.languageId===n.languageId&&this.uri.toString()===n.uri.toString()&&this.notebookUri?.toString()===n.notebookUri?.toString()&&this.recursive===n.recursive}}class _{constructor(n){this._notebookInfoResolver=n,this._clock=0,this._entries=[],this._onDidChange=new c.Emitter,this.onDidChange=this._onDidChange.event}register(n,s){let t={selector:n,provider:s,_score:-1,_time:this._clock++};return this._entries.push(t),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,k.toDisposable)(()=>{if(t){const i=this._entries.indexOf(t);i>=0&&(this._entries.splice(i,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),t=void 0)}})}has(n){return this.all(n).length>0}all(n){if(!n)return[];this._updateScores(n,!1);const s=[];for(const t of this._entries)t._score>0&&s.push(t.provider);return s}ordered(n,s=!1){const t=[];return this._orderedForEach(n,s,i=>t.push(i.provider)),t}orderedGroups(n){const s=[];let t,i;return this._orderedForEach(n,!1,o=>{t&&i===o._score?t.push(o.provider):(i=o._score,t=[o.provider],s.push(t))}),s}_orderedForEach(n,s,t){this._updateScores(n,s);for(const i of this._entries)i._score>0&&t(i)}_updateScores(n,s){const t=this._notebookInfoResolver?.(n.uri),i=t?new f(n.uri,n.getLanguageId(),t.uri,t.type,s):new f(n.uri,n.getLanguageId(),void 0,void 0,s);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const o of this._entries)if(o._score=(0,L.score)(o.selector,i.uri,i.languageId,(0,E.shouldSynchronizeModel)(n),i.notebookUri,i.notebookType),y(o.selector)&&o._score>0)if(s)o._score=0;else{for(const g of this._entries)g._score=0;o._score=1e3;break}this._entries.sort(_._compareByScoreAndTime)}}static _compareByScoreAndTime(n,s){return n._score<s._score?1:n._score>s._score?-1:v(n.selector)&&!v(s.selector)?1:!v(n.selector)&&v(s.selector)?-1:n._time<s._time?1:n._time>s._time?-1:0}}e.LanguageFeatureRegistry=_;function v(p){return typeof p=="string"?!1:Array.isArray(p)?p.some(v):!!p.isBuiltin}}),define(oe[28],re([1,0,26,22,4,581,3]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineEditTriggerKind=e.TokenizationRegistry=e.LazyTokenizationSupport=e.InlayHintKind=e.Command=e.NewSymbolNameTriggerKind=e.NewSymbolNameTag=e.FoldingRangeKind=e.TextEdit=e.SymbolKinds=e.symbolKindNames=e.DocumentHighlightKind=e.SignatureHelpTriggerKind=e.DocumentPasteTriggerKind=e.SelectedSuggestionInfo=e.InlineCompletionTriggerKind=e.CompletionItemKinds=e.HoverVerbosityAction=e.EncodedTokenizationResult=e.TokenizationResult=e.Token=void 0,e.isLocationLink=u,e.getAriaLabelForSymbol=l;class f{constructor(I,T,M){this.offset=I,this.type=T,this.language=M,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}e.Token=f;class _{constructor(I,T){this.tokens=I,this.endState=T,this._tokenizationResultBrand=void 0}}e.TokenizationResult=_;class v{constructor(I,T){this.tokens=I,this.endState=T,this._encodedTokenizationResultBrand=void 0}}e.EncodedTokenizationResult=v;var p;(function(D){D[D.Increase=0]="Increase",D[D.Decrease=1]="Decrease"})(p||(e.HoverVerbosityAction=p={}));var n;(function(D){const I=new Map;I.set(0,c.Codicon.symbolMethod),I.set(1,c.Codicon.symbolFunction),I.set(2,c.Codicon.symbolConstructor),I.set(3,c.Codicon.symbolField),I.set(4,c.Codicon.symbolVariable),I.set(5,c.Codicon.symbolClass),I.set(6,c.Codicon.symbolStruct),I.set(7,c.Codicon.symbolInterface),I.set(8,c.Codicon.symbolModule),I.set(9,c.Codicon.symbolProperty),I.set(10,c.Codicon.symbolEvent),I.set(11,c.Codicon.symbolOperator),I.set(12,c.Codicon.symbolUnit),I.set(13,c.Codicon.symbolValue),I.set(15,c.Codicon.symbolEnum),I.set(14,c.Codicon.symbolConstant),I.set(15,c.Codicon.symbolEnum),I.set(16,c.Codicon.symbolEnumMember),I.set(17,c.Codicon.symbolKeyword),I.set(27,c.Codicon.symbolSnippet),I.set(18,c.Codicon.symbolText),I.set(19,c.Codicon.symbolColor),I.set(20,c.Codicon.symbolFile),I.set(21,c.Codicon.symbolReference),I.set(22,c.Codicon.symbolCustomColor),I.set(23,c.Codicon.symbolFolder),I.set(24,c.Codicon.symbolTypeParameter),I.set(25,c.Codicon.account),I.set(26,c.Codicon.issues);function T(R){let N=I.get(R);return N||(console.info("No codicon found for CompletionItemKind "+R),N=c.Codicon.symbolProperty),N}D.toIcon=T;const M=new Map;M.set("method",0),M.set("function",1),M.set("constructor",2),M.set("field",3),M.set("variable",4),M.set("class",5),M.set("struct",6),M.set("interface",7),M.set("module",8),M.set("property",9),M.set("event",10),M.set("operator",11),M.set("unit",12),M.set("value",13),M.set("constant",14),M.set("enum",15),M.set("enum-member",16),M.set("enumMember",16),M.set("keyword",17),M.set("snippet",27),M.set("text",18),M.set("color",19),M.set("file",20),M.set("reference",21),M.set("customcolor",22),M.set("folder",23),M.set("type-parameter",24),M.set("typeParameter",24),M.set("account",25),M.set("issue",26);function A(R,N){let O=M.get(R);return typeof O>"u"&&!N&&(O=9),O}D.fromString=A})(n||(e.CompletionItemKinds=n={}));var s;(function(D){D[D.Automatic=0]="Automatic",D[D.Explicit=1]="Explicit"})(s||(e.InlineCompletionTriggerKind=s={}));class t{constructor(I,T,M,A){this.range=I,this.text=T,this.completionKind=M,this.isSnippetText=A}equals(I){return E.Range.lift(this.range).equalsRange(I.range)&&this.text===I.text&&this.completionKind===I.completionKind&&this.isSnippetText===I.isSnippetText}}e.SelectedSuggestionInfo=t;var i;(function(D){D[D.Automatic=0]="Automatic",D[D.PasteAs=1]="PasteAs"})(i||(e.DocumentPasteTriggerKind=i={}));var o;(function(D){D[D.Invoke=1]="Invoke",D[D.TriggerCharacter=2]="TriggerCharacter",D[D.ContentChange=3]="ContentChange"})(o||(e.SignatureHelpTriggerKind=o={}));var g;(function(D){D[D.Text=0]="Text",D[D.Read=1]="Read",D[D.Write=2]="Write"})(g||(e.DocumentHighlightKind=g={}));function u(D){return D&&k.URI.isUri(D.uri)&&E.Range.isIRange(D.range)&&(E.Range.isIRange(D.originSelectionRange)||E.Range.isIRange(D.targetSelectionRange))}e.symbolKindNames={17:(0,y.localize)(1775,"array"),16:(0,y.localize)(1776,"boolean"),4:(0,y.localize)(1777,"class"),13:(0,y.localize)(1778,"constant"),8:(0,y.localize)(1779,"constructor"),9:(0,y.localize)(1780,"enumeration"),21:(0,y.localize)(1781,"enumeration member"),23:(0,y.localize)(1782,"event"),7:(0,y.localize)(1783,"field"),0:(0,y.localize)(1784,"file"),11:(0,y.localize)(1785,"function"),10:(0,y.localize)(1786,"interface"),19:(0,y.localize)(1787,"key"),5:(0,y.localize)(1788,"method"),1:(0,y.localize)(1789,"module"),2:(0,y.localize)(1790,"namespace"),20:(0,y.localize)(1791,"null"),15:(0,y.localize)(1792,"number"),18:(0,y.localize)(1793,"object"),24:(0,y.localize)(1794,"operator"),3:(0,y.localize)(1795,"package"),6:(0,y.localize)(1796,"property"),14:(0,y.localize)(1797,"string"),22:(0,y.localize)(1798,"struct"),25:(0,y.localize)(1799,"type parameter"),12:(0,y.localize)(1800,"variable")};function l(D,I){return(0,y.localize)(1801,"{0} ({1})",D,e.symbolKindNames[I])}var r;(function(D){const I=new Map;I.set(0,c.Codicon.symbolFile),I.set(1,c.Codicon.symbolModule),I.set(2,c.Codicon.symbolNamespace),I.set(3,c.Codicon.symbolPackage),I.set(4,c.Codicon.symbolClass),I.set(5,c.Codicon.symbolMethod),I.set(6,c.Codicon.symbolProperty),I.set(7,c.Codicon.symbolField),I.set(8,c.Codicon.symbolConstructor),I.set(9,c.Codicon.symbolEnum),I.set(10,c.Codicon.symbolInterface),I.set(11,c.Codicon.symbolFunction),I.set(12,c.Codicon.symbolVariable),I.set(13,c.Codicon.symbolConstant),I.set(14,c.Codicon.symbolString),I.set(15,c.Codicon.symbolNumber),I.set(16,c.Codicon.symbolBoolean),I.set(17,c.Codicon.symbolArray),I.set(18,c.Codicon.symbolObject),I.set(19,c.Codicon.symbolKey),I.set(20,c.Codicon.symbolNull),I.set(21,c.Codicon.symbolEnumMember),I.set(22,c.Codicon.symbolStruct),I.set(23,c.Codicon.symbolEvent),I.set(24,c.Codicon.symbolOperator),I.set(25,c.Codicon.symbolTypeParameter);function T(M){let A=I.get(M);return A||(console.info("No codicon found for SymbolKind "+M),A=c.Codicon.symbolProperty),A}D.toIcon=T})(r||(e.SymbolKinds=r={}));class a{}e.TextEdit=a;class d{static{this.Comment=new d("comment")}static{this.Imports=new d("imports")}static{this.Region=new d("region")}static fromValue(I){switch(I){case"comment":return d.Comment;case"imports":return d.Imports;case"region":return d.Region}return new d(I)}constructor(I){this.value=I}}e.FoldingRangeKind=d;var m;(function(D){D[D.AIGenerated=1]="AIGenerated"})(m||(e.NewSymbolNameTag=m={}));var h;(function(D){D[D.Invoke=0]="Invoke",D[D.Automatic=1]="Automatic"})(h||(e.NewSymbolNameTriggerKind=h={}));var C;(function(D){function I(T){return!T||typeof T!="object"?!1:typeof T.id=="string"&&typeof T.title=="string"}D.is=I})(C||(e.Command=C={}));var b;(function(D){D[D.Type=1]="Type",D[D.Parameter=2]="Parameter"})(b||(e.InlayHintKind=b={}));class w{constructor(I){this.createSupport=I,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(I=>{I&&I.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}e.LazyTokenizationSupport=w,e.TokenizationRegistry=new L.TokenizationRegistry;var S;(function(D){D[D.Invoke=0]="Invoke",D[D.Automatic=1]="Automatic"})(S||(e.InlineEditTriggerKind=S={}))}),define(oe[176],re([1,0,28]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullState=void 0,e.nullTokenize=k,e.nullTokenizeEncoded=E,e.NullState=new class{clone(){return this}equals(L){return this===L}};function k(L,y){return new c.TokenizationResult([new c.Token(0,"",L)],y)}function E(L,y){const f=new Uint32Array(2);return f[0]=0,f[1]=(L<<0|0|0|32768|2<<24)>>>0,new c.EncodedTokenizationResult(f,y===null?e.NullState:y)}}),define(oe[207],re([1,0,11,115,4]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketsUtils=e.RichEditBrackets=e.RichEditBracket=void 0,e.createBracketOrRegExp=g;class L{constructor(a,d,m,h,C,b){this._richEditBracketBrand=void 0,this.languageId=a,this.index=d,this.open=m,this.close=h,this.forwardRegex=C,this.reversedRegex=b,this._openSet=L._toSet(this.open),this._closeSet=L._toSet(this.close)}isOpen(a){return this._openSet.has(a)}isClose(a){return this._closeSet.has(a)}static _toSet(a){const d=new Set;for(const m of a)d.add(m);return d}}e.RichEditBracket=L;function y(r){const a=r.length;r=r.map(b=>[b[0].toLowerCase(),b[1].toLowerCase()]);const d=[];for(let b=0;b<a;b++)d[b]=b;const m=(b,w)=>{const[S,D]=b,[I,T]=w;return S===I||S===T||D===I||D===T},h=(b,w)=>{const S=Math.min(b,w),D=Math.max(b,w);for(let I=0;I<a;I++)d[I]===D&&(d[I]=S)};for(let b=0;b<a;b++){const w=r[b];for(let S=b+1;S<a;S++){const D=r[S];m(w,D)&&h(d[b],d[S])}}const C=[];for(let b=0;b<a;b++){const w=[],S=[];for(let D=0;D<a;D++)if(d[D]===b){const[I,T]=r[D];w.push(I),S.push(T)}w.length>0&&C.push({open:w,close:S})}return C}class f{constructor(a,d){this._richEditBracketsBrand=void 0;const m=y(d);this.brackets=m.map((h,C)=>new L(a,C,h.open,h.close,n(h.open,h.close,m,C),s(h.open,h.close,m,C))),this.forwardRegex=t(this.brackets),this.reversedRegex=i(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const h of this.brackets){for(const C of h.open)this.textIsBracket[C]=h,this.textIsOpenBracket[C]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,C.length);for(const C of h.close)this.textIsBracket[C]=h,this.textIsOpenBracket[C]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,C.length)}}}e.RichEditBrackets=f;function _(r,a,d,m){for(let h=0,C=a.length;h<C;h++){if(h===d)continue;const b=a[h];for(const w of b.open)w.indexOf(r)>=0&&m.push(w);for(const w of b.close)w.indexOf(r)>=0&&m.push(w)}}function v(r,a){return r.length-a.length}function p(r){if(r.length<=1)return r;const a=[],d=new Set;for(const m of r)d.has(m)||(a.push(m),d.add(m));return a}function n(r,a,d,m){let h=[];h=h.concat(r),h=h.concat(a);for(let C=0,b=h.length;C<b;C++)_(h[C],d,m,h);return h=p(h),h.sort(v),h.reverse(),g(h)}function s(r,a,d,m){let h=[];h=h.concat(r),h=h.concat(a);for(let C=0,b=h.length;C<b;C++)_(h[C],d,m,h);return h=p(h),h.sort(v),h.reverse(),g(h.map(u))}function t(r){let a=[];for(const d of r){for(const m of d.open)a.push(m);for(const m of d.close)a.push(m)}return a=p(a),g(a)}function i(r){let a=[];for(const d of r){for(const m of d.open)a.push(m);for(const m of d.close)a.push(m)}return a=p(a),g(a.map(u))}function o(r){const a=/^[\w ]+$/.test(r);return r=c.escapeRegExpCharacters(r),a?`\\b${r}\\b`:r}function g(r,a){const d=`(${r.map(o).join(")|(")})`;return c.createRegExp(d,!0,a)}const u=function(){function r(m){const h=new Uint16Array(m.length);let C=0;for(let b=m.length-1;b>=0;b--)h[C++]=m.charCodeAt(b);return k.getPlatformTextDecoder().decode(h)}let a=null,d=null;return function(h){return a!==h&&(a=h,d=r(a)),d}}();class l{static _findPrevBracketInText(a,d,m,h){const C=m.match(a);if(!C)return null;const b=m.length-(C.index||0),w=C[0].length,S=h+b;return new E.Range(d,S-w+1,d,S+1)}static findPrevBracketInRange(a,d,m,h,C){const w=u(m).substring(m.length-C,m.length-h);return this._findPrevBracketInText(a,d,w,h)}static findNextBracketInText(a,d,m,h){const C=m.match(a);if(!C)return null;const b=C.index||0,w=C[0].length;if(w===0)return null;const S=h+b;return new E.Range(d,S+1,d,S+1+w)}static findNextBracketInRange(a,d,m,h,C){const b=m.substring(h,C);return this.findNextBracketInText(a,d,b,h)}}e.BracketsUtils=l}),define(oe[654],re([1,0,13,168,207]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketElectricCharacterSupport=void 0;class L{constructor(f){this._richEditBrackets=f}getElectricCharacters(){const f=[];if(this._richEditBrackets)for(const _ of this._richEditBrackets.brackets)for(const v of _.close){const p=v.charAt(v.length-1);f.push(p)}return(0,c.distinct)(f)}onElectricCharacter(f,_,v){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const p=_.findTokenIndexAtOffset(v-1);if((0,k.ignoreBracketsInToken)(_.getStandardTokenType(p)))return null;const n=this._richEditBrackets.reversedRegex,s=_.getLineContent().substring(0,v-1)+f,t=E.BracketsUtils.findPrevBracketInRange(n,1,s,0,s.length);if(!t)return null;const i=s.substring(t.startColumn-1,t.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[i])return null;const g=_.getActualLineContentBefore(t.startColumn-1);return/^\s*$/.test(g)?{matchOpenBracket:i}:null}}e.BracketElectricCharacterSupport=L}),define(oe[655],re([1,0,296,207]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClosingBracketKind=e.OpeningBracketKind=e.BracketKindBase=e.LanguageBracketsConfiguration=void 0;class E{constructor(p,n){this.languageId=p;const s=n.brackets?L(n.brackets):[],t=new c.CachedFunction(g=>{const u=new Set;return{info:new f(this,g,u),closing:u}}),i=new c.CachedFunction(g=>{const u=new Set,l=new Set;return{info:new _(this,g,u,l),opening:u,openingColorized:l}});for(const[g,u]of s){const l=t.get(g),r=i.get(u);l.closing.add(r.info),r.opening.add(l.info)}const o=n.colorizedBracketPairs?L(n.colorizedBracketPairs):s.filter(g=>!(g[0]==="<"&&g[1]===">"));for(const[g,u]of o){const l=t.get(g),r=i.get(u);l.closing.add(r.info),r.openingColorized.add(l.info),r.opening.add(l.info)}this._openingBrackets=new Map([...t.cachedValues].map(([g,u])=>[g,u.info])),this._closingBrackets=new Map([...i.cachedValues].map(([g,u])=>[g,u.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(p){return this._openingBrackets.get(p)}getClosingBracketInfo(p){return this._closingBrackets.get(p)}getBracketInfo(p){return this.getOpeningBracketInfo(p)||this.getClosingBracketInfo(p)}getBracketRegExp(p){const n=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,k.createBracketOrRegExp)(n,p)}}e.LanguageBracketsConfiguration=E;function L(v){return v.filter(([p,n])=>p!==""&&n!=="")}class y{constructor(p,n){this.config=p,this.bracketText=n}get languageId(){return this.config.languageId}}e.BracketKindBase=y;class f extends y{constructor(p,n,s){super(p,n),this.openedBrackets=s,this.isOpeningBracket=!0}}e.OpeningBracketKind=f;class _ extends y{constructor(p,n,s,t){super(p,n),this.openingBrackets=s,this.openingColorizedBrackets=t,this.isOpeningBracket=!1}closes(p){return p.config!==this.config?!1:this.openingBrackets.has(p)}closesColorized(p){return p.config!==this.config?!1:this.openingColorizedBrackets.has(p)}getOpeningBrackets(){return[...this.openingBrackets]}}e.ClosingBracketKind=_}),define(oe[367],re([1,0,11,94,28,176]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tokenizeToString=f,e.tokenizeLineToHTML=_,e._tokenizeToString=v;const y={getInitialState:()=>L.NullState,tokenizeEncoded:(p,n,s)=>(0,L.nullTokenizeEncoded)(0,s)};async function f(p,n,s){if(!s)return v(n,p.languageIdCodec,y);const t=await E.TokenizationRegistry.getOrCreate(s);return v(n,p.languageIdCodec,t||y)}function _(p,n,s,t,i,o,g){let u="<div>",l=t,r=0,a=!0;for(let d=0,m=n.getCount();d<m;d++){const h=n.getEndOffset(d);if(h<=t)continue;let C="";for(;l<h&&l<i;l++){const b=p.charCodeAt(l);switch(b){case 9:{let w=o-(l+r)%o;for(r+=w-1;w>0;)g&&a?(C+=" ",a=!1):(C+=" ",a=!0),w--;break}case 60:C+="<",a=!1;break;case 62:C+=">",a=!1;break;case 38:C+="&",a=!1;break;case 0:C+="�",a=!1;break;case 65279:case 8232:case 8233:case 133:C+="\uFFFD",a=!1;break;case 13:C+="​",a=!1;break;case 32:g&&a?(C+=" ",a=!1):(C+=" ",a=!0);break;default:C+=String.fromCharCode(b),a=!1}}if(u+=`<span style="${n.getInlineStyle(d,s)}">${C}</span>`,h>i||l>=i)break}return u+="</div>",u}function v(p,n,s){let t='<div class="monaco-tokenized-source">';const i=c.splitLines(p);let o=s.getInitialState();for(let g=0,u=i.length;g<u;g++){const l=i[g];g>0&&(t+="<br/>");const r=s.tokenizeEncoded(l,!0,o);k.LineTokens.convertToEndOffset(r.tokens,l.length);const d=new k.LineTokens(r.tokens,l,n).inflate();let m=0;for(let h=0,C=d.getCount();h<C;h++){const b=d.getClassName(h),w=d.getEndOffset(h);t+=`<span class="${b}">${c.escape(l.substring(m,w))}</span>`,m=w}o=r.endState}return t+="</div>",t}}),define(oe[656],re([1,0,13,6,2,4,168,207,580]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairsTextModelPart=void 0;class v extends E.Disposable{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(o,g){super(),this.textModel=o,this.languageConfigurationService=g,this.bracketPairsTree=this._register(new E.MutableDisposable),this.onDidChangeEmitter=new k.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(o){(!o.languageId||this.bracketPairsTree.value?.object.didLanguageChange(o.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(o){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(o){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(o){this.bracketPairsTree.value?.object.handleContentChanged(o)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(o){this.bracketPairsTree.value?.object.handleDidChangeTokens(o)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const o=new E.DisposableStore;this.bracketPairsTree.value=p(o.add(new _.BracketPairsTree(this.textModel,g=>this.languageConfigurationService.getLanguageConfiguration(g))),o),o.add(this.bracketPairsTree.value.object.onDidChange(g=>this.onDidChangeEmitter.fire(g))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(o){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(o,!1)||c.CallbackIterable.empty}getBracketPairsInRangeWithMinIndentation(o){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(o,!0)||c.CallbackIterable.empty}getBracketsInRange(o,g=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(o,g)||c.CallbackIterable.empty}findMatchingBracketUp(o,g,u){const l=this.textModel.validatePosition(g),r=this.textModel.getLanguageIdAtPosition(l.lineNumber,l.column);if(this.canBuildAST){const a=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(o);if(!a)return null;const d=this.getBracketPairsInRange(L.Range.fromPositions(g,g)).findLast(m=>a.closes(m.openingBracketInfo));return d?d.openingBracketRange:null}else{const a=o.toLowerCase(),d=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!d)return null;const m=d.textIsBracket[a];return m?t(this._findMatchingBracketUp(m,l,n(u))):null}}matchBracket(o,g){if(this.canBuildAST){const u=this.getBracketPairsInRange(L.Range.fromPositions(o,o)).filter(l=>l.closingBracketRange!==void 0&&(l.openingBracketRange.containsPosition(o)||l.closingBracketRange.containsPosition(o))).findLastMaxBy((0,c.compareBy)(l=>l.openingBracketRange.containsPosition(o)?l.openingBracketRange:l.closingBracketRange,L.Range.compareRangesUsingStarts));return u?[u.openingBracketRange,u.closingBracketRange]:null}else{const u=n(g);return this._matchBracket(this.textModel.validatePosition(o),u)}}_establishBracketSearchOffsets(o,g,u,l){const r=g.getCount(),a=g.getLanguageId(l);let d=Math.max(0,o.column-1-u.maxBracketLength);for(let h=l-1;h>=0;h--){const C=g.getEndOffset(h);if(C<=d)break;if((0,y.ignoreBracketsInToken)(g.getStandardTokenType(h))||g.getLanguageId(h)!==a){d=C;break}}let m=Math.min(g.getLineContent().length,o.column-1+u.maxBracketLength);for(let h=l+1;h<r;h++){const C=g.getStartOffset(h);if(C>=m)break;if((0,y.ignoreBracketsInToken)(g.getStandardTokenType(h))||g.getLanguageId(h)!==a){m=C;break}}return{searchStartOffset:d,searchEndOffset:m}}_matchBracket(o,g){const u=o.lineNumber,l=this.textModel.tokenization.getLineTokens(u),r=this.textModel.getLineContent(u),a=l.findTokenIndexAtOffset(o.column-1);if(a<0)return null;const d=this.languageConfigurationService.getLanguageConfiguration(l.getLanguageId(a)).brackets;if(d&&!(0,y.ignoreBracketsInToken)(l.getStandardTokenType(a))){let{searchStartOffset:m,searchEndOffset:h}=this._establishBracketSearchOffsets(o,l,d,a),C=null;for(;;){const b=f.BracketsUtils.findNextBracketInRange(d.forwardRegex,u,r,m,h);if(!b)break;if(b.startColumn<=o.column&&o.column<=b.endColumn){const w=r.substring(b.startColumn-1,b.endColumn-1).toLowerCase(),S=this._matchFoundBracket(b,d.textIsBracket[w],d.textIsOpenBracket[w],g);if(S){if(S instanceof s)return null;C=S}}m=b.endColumn-1}if(C)return C}if(a>0&&l.getStartOffset(a)===o.column-1){const m=a-1,h=this.languageConfigurationService.getLanguageConfiguration(l.getLanguageId(m)).brackets;if(h&&!(0,y.ignoreBracketsInToken)(l.getStandardTokenType(m))){const{searchStartOffset:C,searchEndOffset:b}=this._establishBracketSearchOffsets(o,l,h,m),w=f.BracketsUtils.findPrevBracketInRange(h.reversedRegex,u,r,C,b);if(w&&w.startColumn<=o.column&&o.column<=w.endColumn){const S=r.substring(w.startColumn-1,w.endColumn-1).toLowerCase(),D=this._matchFoundBracket(w,h.textIsBracket[S],h.textIsOpenBracket[S],g);if(D)return D instanceof s?null:D}}}return null}_matchFoundBracket(o,g,u,l){if(!g)return null;const r=u?this._findMatchingBracketDown(g,o.getEndPosition(),l):this._findMatchingBracketUp(g,o.getStartPosition(),l);return r?r instanceof s?r:[o,r]:null}_findMatchingBracketUp(o,g,u){const l=o.languageId,r=o.reversedRegex;let a=-1,d=0;const m=(h,C,b,w)=>{for(;;){if(u&&++d%100===0&&!u())return s.INSTANCE;const S=f.BracketsUtils.findPrevBracketInRange(r,h,C,b,w);if(!S)break;const D=C.substring(S.startColumn-1,S.endColumn-1).toLowerCase();if(o.isOpen(D)?a++:o.isClose(D)&&a--,a===0)return S;w=S.startColumn-1}return null};for(let h=g.lineNumber;h>=1;h--){const C=this.textModel.tokenization.getLineTokens(h),b=C.getCount(),w=this.textModel.getLineContent(h);let S=b-1,D=w.length,I=w.length;h===g.lineNumber&&(S=C.findTokenIndexAtOffset(g.column-1),D=g.column-1,I=g.column-1);let T=!0;for(;S>=0;S--){const M=C.getLanguageId(S)===l&&!(0,y.ignoreBracketsInToken)(C.getStandardTokenType(S));if(M)T?D=C.getStartOffset(S):(D=C.getStartOffset(S),I=C.getEndOffset(S));else if(T&&D!==I){const A=m(h,w,D,I);if(A)return A}T=M}if(T&&D!==I){const M=m(h,w,D,I);if(M)return M}}return null}_findMatchingBracketDown(o,g,u){const l=o.languageId,r=o.forwardRegex;let a=1,d=0;const m=(C,b,w,S)=>{for(;;){if(u&&++d%100===0&&!u())return s.INSTANCE;const D=f.BracketsUtils.findNextBracketInRange(r,C,b,w,S);if(!D)break;const I=b.substring(D.startColumn-1,D.endColumn-1).toLowerCase();if(o.isOpen(I)?a++:o.isClose(I)&&a--,a===0)return D;w=D.endColumn-1}return null},h=this.textModel.getLineCount();for(let C=g.lineNumber;C<=h;C++){const b=this.textModel.tokenization.getLineTokens(C),w=b.getCount(),S=this.textModel.getLineContent(C);let D=0,I=0,T=0;C===g.lineNumber&&(D=b.findTokenIndexAtOffset(g.column-1),I=g.column-1,T=g.column-1);let M=!0;for(;D<w;D++){const A=b.getLanguageId(D)===l&&!(0,y.ignoreBracketsInToken)(b.getStandardTokenType(D));if(A)M||(I=b.getStartOffset(D)),T=b.getEndOffset(D);else if(M&&I!==T){const R=m(C,S,I,T);if(R)return R}M=A}if(M&&I!==T){const A=m(C,S,I,T);if(A)return A}}return null}findPrevBracket(o){const g=this.textModel.validatePosition(o);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(g)||null;let u=null,l=null,r=null;for(let a=g.lineNumber;a>=1;a--){const d=this.textModel.tokenization.getLineTokens(a),m=d.getCount(),h=this.textModel.getLineContent(a);let C=m-1,b=h.length,w=h.length;if(a===g.lineNumber){C=d.findTokenIndexAtOffset(g.column-1),b=g.column-1,w=g.column-1;const D=d.getLanguageId(C);u!==D&&(u=D,l=this.languageConfigurationService.getLanguageConfiguration(u).brackets,r=this.languageConfigurationService.getLanguageConfiguration(u).bracketsNew)}let S=!0;for(;C>=0;C--){const D=d.getLanguageId(C);if(u!==D){if(l&&r&&S&&b!==w){const T=f.BracketsUtils.findPrevBracketInRange(l.reversedRegex,a,h,b,w);if(T)return this._toFoundBracket(r,T);S=!1}u=D,l=this.languageConfigurationService.getLanguageConfiguration(u).brackets,r=this.languageConfigurationService.getLanguageConfiguration(u).bracketsNew}const I=!!l&&!(0,y.ignoreBracketsInToken)(d.getStandardTokenType(C));if(I)S?b=d.getStartOffset(C):(b=d.getStartOffset(C),w=d.getEndOffset(C));else if(r&&l&&S&&b!==w){const T=f.BracketsUtils.findPrevBracketInRange(l.reversedRegex,a,h,b,w);if(T)return this._toFoundBracket(r,T)}S=I}if(r&&l&&S&&b!==w){const D=f.BracketsUtils.findPrevBracketInRange(l.reversedRegex,a,h,b,w);if(D)return this._toFoundBracket(r,D)}}return null}findNextBracket(o){const g=this.textModel.validatePosition(o);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(g)||null;const u=this.textModel.getLineCount();let l=null,r=null,a=null;for(let d=g.lineNumber;d<=u;d++){const m=this.textModel.tokenization.getLineTokens(d),h=m.getCount(),C=this.textModel.getLineContent(d);let b=0,w=0,S=0;if(d===g.lineNumber){b=m.findTokenIndexAtOffset(g.column-1),w=g.column-1,S=g.column-1;const I=m.getLanguageId(b);l!==I&&(l=I,r=this.languageConfigurationService.getLanguageConfiguration(l).brackets,a=this.languageConfigurationService.getLanguageConfiguration(l).bracketsNew)}let D=!0;for(;b<h;b++){const I=m.getLanguageId(b);if(l!==I){if(a&&r&&D&&w!==S){const M=f.BracketsUtils.findNextBracketInRange(r.forwardRegex,d,C,w,S);if(M)return this._toFoundBracket(a,M);D=!1}l=I,r=this.languageConfigurationService.getLanguageConfiguration(l).brackets,a=this.languageConfigurationService.getLanguageConfiguration(l).bracketsNew}const T=!!r&&!(0,y.ignoreBracketsInToken)(m.getStandardTokenType(b));if(T)D||(w=m.getStartOffset(b)),S=m.getEndOffset(b);else if(a&&r&&D&&w!==S){const M=f.BracketsUtils.findNextBracketInRange(r.forwardRegex,d,C,w,S);if(M)return this._toFoundBracket(a,M)}D=T}if(a&&r&&D&&w!==S){const I=f.BracketsUtils.findNextBracketInRange(r.forwardRegex,d,C,w,S);if(I)return this._toFoundBracket(a,I)}}return null}findEnclosingBrackets(o,g){const u=this.textModel.validatePosition(o);if(this.canBuildAST){const S=L.Range.fromPositions(u),D=this.getBracketPairsInRange(L.Range.fromPositions(u,u)).findLast(I=>I.closingBracketRange!==void 0&&I.range.strictContainsRange(S));return D?[D.openingBracketRange,D.closingBracketRange]:null}const l=n(g),r=this.textModel.getLineCount(),a=new Map;let d=[];const m=(S,D)=>{if(!a.has(S)){const I=[];for(let T=0,M=D?D.brackets.length:0;T<M;T++)I[T]=0;a.set(S,I)}d=a.get(S)};let h=0;const C=(S,D,I,T,M)=>{for(;;){if(l&&++h%100===0&&!l())return s.INSTANCE;const A=f.BracketsUtils.findNextBracketInRange(S.forwardRegex,D,I,T,M);if(!A)break;const R=I.substring(A.startColumn-1,A.endColumn-1).toLowerCase(),N=S.textIsBracket[R];if(N&&(N.isOpen(R)?d[N.index]++:N.isClose(R)&&d[N.index]--,d[N.index]===-1))return this._matchFoundBracket(A,N,!1,l);T=A.endColumn-1}return null};let b=null,w=null;for(let S=u.lineNumber;S<=r;S++){const D=this.textModel.tokenization.getLineTokens(S),I=D.getCount(),T=this.textModel.getLineContent(S);let M=0,A=0,R=0;if(S===u.lineNumber){M=D.findTokenIndexAtOffset(u.column-1),A=u.column-1,R=u.column-1;const O=D.getLanguageId(M);b!==O&&(b=O,w=this.languageConfigurationService.getLanguageConfiguration(b).brackets,m(b,w))}let N=!0;for(;M<I;M++){const O=D.getLanguageId(M);if(b!==O){if(w&&N&&A!==R){const F=C(w,S,T,A,R);if(F)return t(F);N=!1}b=O,w=this.languageConfigurationService.getLanguageConfiguration(b).brackets,m(b,w)}const x=!!w&&!(0,y.ignoreBracketsInToken)(D.getStandardTokenType(M));if(x)N||(A=D.getStartOffset(M)),R=D.getEndOffset(M);else if(w&&N&&A!==R){const F=C(w,S,T,A,R);if(F)return t(F)}N=x}if(w&&N&&A!==R){const O=C(w,S,T,A,R);if(O)return t(O)}}return null}_toFoundBracket(o,g){if(!g)return null;let u=this.textModel.getValueInRange(g);u=u.toLowerCase();const l=o.getBracketInfo(u);return l?{range:g,bracketInfo:l}:null}}e.BracketPairsTextModelPart=v;function p(i,o){return{object:i,dispose:()=>o?.dispose()}}function n(i){if(typeof i>"u")return()=>!0;{const o=Date.now();return()=>Date.now()-o<=i}}class s{static{this.INSTANCE=new s}constructor(){this._searchCanceledBrand=void 0}}function t(i){return i instanceof s?null:i}}),define(oe[368],re([1,0,3,8,23,22,365,158,51]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditStack=e.MultiModelEditStackElement=e.SingleModelEditStackElement=e.SingleModelEditStackData=void 0,e.isEditStackElement=i;function v(g){return g.toString()}class p{static create(u,l){const r=u.getAlternativeVersionId(),a=t(u);return new p(r,r,a,a,l,l,[])}constructor(u,l,r,a,d,m,h){this.beforeVersionId=u,this.afterVersionId=l,this.beforeEOL=r,this.afterEOL=a,this.beforeCursorState=d,this.afterCursorState=m,this.changes=h}append(u,l,r,a,d){l.length>0&&(this.changes=(0,y.compressConsecutiveTextChanges)(this.changes,l)),this.afterEOL=r,this.afterVersionId=a,this.afterCursorState=d}static _writeSelectionsSize(u){return 4+4*4*(u?u.length:0)}static _writeSelections(u,l,r){if(f.writeUInt32BE(u,l?l.length:0,r),r+=4,l)for(const a of l)f.writeUInt32BE(u,a.selectionStartLineNumber,r),r+=4,f.writeUInt32BE(u,a.selectionStartColumn,r),r+=4,f.writeUInt32BE(u,a.positionLineNumber,r),r+=4,f.writeUInt32BE(u,a.positionColumn,r),r+=4;return r}static _readSelections(u,l,r){const a=f.readUInt32BE(u,l);l+=4;for(let d=0;d<a;d++){const m=f.readUInt32BE(u,l);l+=4;const h=f.readUInt32BE(u,l);l+=4;const C=f.readUInt32BE(u,l);l+=4;const b=f.readUInt32BE(u,l);l+=4,r.push(new E.Selection(m,h,C,b))}return l}serialize(){let u=10+p._writeSelectionsSize(this.beforeCursorState)+p._writeSelectionsSize(this.afterCursorState)+4;for(const a of this.changes)u+=a.writeSize();const l=new Uint8Array(u);let r=0;f.writeUInt32BE(l,this.beforeVersionId,r),r+=4,f.writeUInt32BE(l,this.afterVersionId,r),r+=4,f.writeUInt8(l,this.beforeEOL,r),r+=1,f.writeUInt8(l,this.afterEOL,r),r+=1,r=p._writeSelections(l,this.beforeCursorState,r),r=p._writeSelections(l,this.afterCursorState,r),f.writeUInt32BE(l,this.changes.length,r),r+=4;for(const a of this.changes)r=a.write(l,r);return l.buffer}static deserialize(u){const l=new Uint8Array(u);let r=0;const a=f.readUInt32BE(l,r);r+=4;const d=f.readUInt32BE(l,r);r+=4;const m=f.readUInt8(l,r);r+=1;const h=f.readUInt8(l,r);r+=1;const C=[];r=p._readSelections(l,r,C);const b=[];r=p._readSelections(l,r,b);const w=f.readUInt32BE(l,r);r+=4;const S=[];for(let D=0;D<w;D++)r=y.TextChange.read(l,r,S);return new p(a,d,m,h,C,b,S)}}e.SingleModelEditStackData=p;class n{get type(){return 0}get resource(){return L.URI.isUri(this.model)?this.model:this.model.uri}constructor(u,l,r,a){this.label=u,this.code=l,this.model=r,this._data=p.create(r,a)}toString(){return(this._data instanceof p?this._data:p.deserialize(this._data)).changes.map(l=>l.toString()).join(", ")}matchesResource(u){return(L.URI.isUri(this.model)?this.model:this.model.uri).toString()===u.toString()}setModel(u){this.model=u}canAppend(u){return this.model===u&&this._data instanceof p}append(u,l,r,a,d){this._data instanceof p&&this._data.append(u,l,r,a,d)}close(){this._data instanceof p&&(this._data=this._data.serialize())}open(){this._data instanceof p||(this._data=p.deserialize(this._data))}undo(){if(L.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof p&&(this._data=this._data.serialize());const u=p.deserialize(this._data);this.model._applyUndo(u.changes,u.beforeEOL,u.beforeVersionId,u.beforeCursorState)}redo(){if(L.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof p&&(this._data=this._data.serialize());const u=p.deserialize(this._data);this.model._applyRedo(u.changes,u.afterEOL,u.afterVersionId,u.afterCursorState)}heapSize(){return this._data instanceof p&&(this._data=this._data.serialize()),this._data.byteLength+168}}e.SingleModelEditStackElement=n;class s{get resources(){return this._editStackElementsArr.map(u=>u.resource)}constructor(u,l,r){this.label=u,this.code=l,this.type=1,this._isOpen=!0,this._editStackElementsArr=r.slice(0),this._editStackElementsMap=new Map;for(const a of this._editStackElementsArr){const d=v(a.resource);this._editStackElementsMap.set(d,a)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(u){const l=v(u);return this._editStackElementsMap.has(l)}setModel(u){const l=v(L.URI.isUri(u)?u:u.uri);this._editStackElementsMap.has(l)&&this._editStackElementsMap.get(l).setModel(u)}canAppend(u){if(!this._isOpen)return!1;const l=v(u.uri);return this._editStackElementsMap.has(l)?this._editStackElementsMap.get(l).canAppend(u):!1}append(u,l,r,a,d){const m=v(u.uri);this._editStackElementsMap.get(m).append(u,l,r,a,d)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const u of this._editStackElementsArr)u.undo()}redo(){for(const u of this._editStackElementsArr)u.redo()}heapSize(u){const l=v(u);return this._editStackElementsMap.has(l)?this._editStackElementsMap.get(l).heapSize():0}split(){return this._editStackElementsArr}toString(){const u=[];for(const l of this._editStackElementsArr)u.push(`${(0,_.basename)(l.resource)}: ${l}`);return`{${u.join(", ")}}`}}e.MultiModelEditStackElement=s;function t(g){return g.getEOL()===`
|
|
595
|
+
- Values greater than or equal to 8 will be used as effective values.`)})}compute(fe,we,Oe){return fe.fontInfo.lineHeight}}class te extends p{constructor(){const fe={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",fe,{"editor.minimap.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1382,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:fe.autohide,description:f.localize(1383,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f.localize(1384,"The minimap has the same size as the editor contents (and might scroll)."),f.localize(1385,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f.localize(1386,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:fe.size,description:f.localize(1387,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:fe.side,description:f.localize(1388,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:fe.showSlider,description:f.localize(1389,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:fe.scale,minimum:1,maximum:3,enum:[1,2,3],description:f.localize(1390,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:fe.renderCharacters,description:f.localize(1391,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:fe.maxColumn,description:f.localize(1392,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:fe.showRegionSectionHeaders,description:f.localize(1393,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:fe.showMarkSectionHeaders,description:f.localize(1394,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:fe.sectionHeaderFontSize,description:f.localize(1395,"Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:fe.sectionHeaderLetterSpacing,description:f.localize(1396,"Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),autohide:o(we.autohide,this.defaultValue.autohide),size:m(we.size,this.defaultValue.size,["proportional","fill","fit"]),side:m(we.side,this.defaultValue.side,["right","left"]),showSlider:m(we.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:o(we.renderCharacters,this.defaultValue.renderCharacters),scale:l.clampedInt(we.scale,1,1,3),maxColumn:l.clampedInt(we.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:o(we.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:o(we.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:a.clamp(we.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:a.clamp(we.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function se(Ne){return Ne==="ctrlCmd"?E.isMacintosh?"metaKey":"ctrlKey":"altKey"}class ue extends p{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f.localize(1397,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:f.localize(1398,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{top:l.clampedInt(we.top,0,0,1e3),bottom:l.clampedInt(we.bottom,0,0,1e3)}}}class ge extends p{constructor(){const fe={enabled:!0,cycle:!0};super(86,"parameterHints",fe,{"editor.parameterHints.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1399,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:fe.cycle,description:f.localize(1400,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),cycle:o(we.cycle,this.defaultValue.cycle)}}}class pe extends t{constructor(){super(144)}compute(fe,we,Oe){return fe.pixelRatio}}class ce extends p{constructor(){super(88,"placeholder",void 0)}validate(fe){return typeof fe>"u"?this.defaultValue:typeof fe=="string"?fe:this.defaultValue}}class ie extends p{constructor(){const fe={other:"on",comments:"off",strings:"off"},we=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[f.localize(1401,"Quick suggestions show inside the suggest widget"),f.localize(1402,"Quick suggestions show as ghost text"),f.localize(1403,"Quick suggestions are disabled")]}];super(90,"quickSuggestions",fe,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:we,default:fe.strings,description:f.localize(1404,"Enable quick suggestions inside strings.")},comments:{anyOf:we,default:fe.comments,description:f.localize(1405,"Enable quick suggestions inside comments.")},other:{anyOf:we,default:fe.other,description:f.localize(1406,"Enable quick suggestions outside of strings and comments.")}},default:fe,markdownDescription:f.localize(1407,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=fe}validate(fe){if(typeof fe=="boolean"){const it=fe?"on":"off";return{comments:it,strings:it,other:it}}if(!fe||typeof fe!="object")return this.defaultValue;const{other:we,comments:Oe,strings:Be}=fe,Ue=["on","inline","off"];let Ye,Qe,tt;return typeof we=="boolean"?Ye=we?"on":"off":Ye=m(we,this.defaultValue.other,Ue),typeof Oe=="boolean"?Qe=Oe?"on":"off":Qe=m(Oe,this.defaultValue.comments,Ue),typeof Be=="boolean"?tt=Be?"on":"off":tt=m(Be,this.defaultValue.strings,Ue),{other:Ye,comments:Qe,strings:tt}}}class ne extends p{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f.localize(1408,"Line numbers are not rendered."),f.localize(1409,"Line numbers are rendered as absolute number."),f.localize(1410,"Line numbers are rendered as distance in lines to cursor position."),f.localize(1411,"Line numbers are rendered every 10 lines.")],default:"on",description:f.localize(1412,"Controls the display of line numbers.")})}validate(fe){let we=this.defaultValue.renderType,Oe=this.defaultValue.renderFn;return typeof fe<"u"&&(typeof fe=="function"?(we=4,Oe=fe):fe==="interval"?we=3:fe==="relative"?we=2:fe==="on"?we=1:we=0),{renderType:we,renderFn:Oe}}}function J(Ne){const fe=Ne.get(99);return fe==="editable"?Ne.get(92):fe!=="on"}class B extends p{constructor(){const fe=[],we={type:"number",description:f.localize(1413,"Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",fe,{type:"array",items:{anyOf:[we,{type:["object"],properties:{column:we,color:{type:"string",description:f.localize(1414,"Color of this editor ruler."),format:"color-hex"}}}]},default:fe,description:f.localize(1415,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(fe){if(Array.isArray(fe)){const we=[];for(const Oe of fe)if(typeof Oe=="number")we.push({column:l.clampedInt(Oe,0,0,1e4),color:null});else if(Oe&&typeof Oe=="object"){const Be=Oe;we.push({column:l.clampedInt(Be.column,0,0,1e4),color:Be.color})}return we.sort((Oe,Be)=>Oe.column-Be.column),we}return this.defaultValue}}class j extends p{constructor(){super(93,"readOnlyMessage",void 0)}validate(fe){return!fe||typeof fe!="object"?this.defaultValue:fe}}function V(Ne,fe){if(typeof Ne!="string")return fe;switch(Ne){case"hidden":return 2;case"visible":return 3;default:return 1}}class $ extends p{constructor(){const fe={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",fe,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f.localize(1416,"The vertical scrollbar will be visible only when necessary."),f.localize(1417,"The vertical scrollbar will always be visible."),f.localize(1418,"The vertical scrollbar will always be hidden.")],default:"auto",description:f.localize(1419,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f.localize(1420,"The horizontal scrollbar will be visible only when necessary."),f.localize(1421,"The horizontal scrollbar will always be visible."),f.localize(1422,"The horizontal scrollbar will always be hidden.")],default:"auto",description:f.localize(1423,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:fe.verticalScrollbarSize,description:f.localize(1424,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:fe.horizontalScrollbarSize,description:f.localize(1425,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:fe.scrollByPage,description:f.localize(1426,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:fe.ignoreHorizontalScrollbarInContentHeight,description:f.localize(1427,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe,Oe=l.clampedInt(we.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Be=l.clampedInt(we.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:l.clampedInt(we.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:V(we.vertical,this.defaultValue.vertical),horizontal:V(we.horizontal,this.defaultValue.horizontal),useShadows:o(we.useShadows,this.defaultValue.useShadows),verticalHasArrows:o(we.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:o(we.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:o(we.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:o(we.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Oe,horizontalSliderSize:l.clampedInt(we.horizontalSliderSize,Oe,0,1e3),verticalScrollbarSize:Be,verticalSliderSize:l.clampedInt(we.verticalSliderSize,Be,0,1e3),scrollByPage:o(we.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:o(we.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}e.inUntrustedWorkspace="inUntrustedWorkspace",e.unicodeHighlightConfigKeys={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class Z extends p{constructor(){const fe={nonBasicASCII:e.inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:e.inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",fe,{[e.unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:fe.nonBasicASCII,description:f.localize(1428,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[e.unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:fe.invisibleCharacters,description:f.localize(1429,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[e.unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:fe.ambiguousCharacters,description:f.localize(1430,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[e.unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:fe.includeComments,description:f.localize(1431,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[e.unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:fe.includeStrings,description:f.localize(1432,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[e.unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:fe.allowedCharacters,description:f.localize(1433,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[e.unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:fe.allowedLocales,description:f.localize(1434,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(fe,we){let Oe=!1;we.allowedCharacters&&fe&&(k.equals(fe.allowedCharacters,we.allowedCharacters)||(fe={...fe,allowedCharacters:we.allowedCharacters},Oe=!0)),we.allowedLocales&&fe&&(k.equals(fe.allowedLocales,we.allowedLocales)||(fe={...fe,allowedLocales:we.allowedLocales},Oe=!0));const Be=super.applyUpdate(fe,we);return Oe?new n(Be.newValue,!0):Be}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{nonBasicASCII:be(we.nonBasicASCII,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),invisibleCharacters:o(we.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:o(we.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:be(we.includeComments,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),includeStrings:be(we.includeStrings,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),allowedCharacters:this.validateBooleanMap(fe.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(fe.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(fe,we){if(typeof fe!="object"||!fe)return we;const Oe={};for(const[Be,Ue]of Object.entries(fe))Ue===!0&&(Oe[Be]=!0);return Oe}}class ee extends p{constructor(){const fe={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",fe,{"editor.inlineSuggest.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1435,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:fe.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f.localize(1436,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),f.localize(1437,"Show the inline suggestion toolbar when hovering over an inline suggestion."),f.localize(1438,"Never show the inline suggestion toolbar.")],description:f.localize(1439,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:fe.suppressSuggestions,description:f.localize(1440,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:fe.fontFamily,description:f.localize(1441,"Controls the font family of the inline suggestions.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),mode:m(we.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:m(we.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:o(we.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:o(we.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:d.string(we.fontFamily,this.defaultValue.fontFamily)}}}class le extends p{constructor(){const fe={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",fe,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:fe.enabled,description:f.localize(1442,"Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:fe.showToolbar,enum:["always","onHover","never"],enumDescriptions:[f.localize(1443,"Show the inline edit toolbar whenever an inline suggestion is shown."),f.localize(1444,"Show the inline edit toolbar when hovering over an inline suggestion."),f.localize(1445,"Never show the inline edit toolbar.")],description:f.localize(1446,"Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:fe.fontFamily,description:f.localize(1447,"Controls the font family of the inline edit.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),showToolbar:m(we.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:d.string(we.fontFamily,this.defaultValue.fontFamily),keepOnBlur:o(we.keepOnBlur,this.defaultValue.keepOnBlur)}}}class de extends p{constructor(){const fe={enabled:L.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:L.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",fe,{"editor.bracketPairColorization.enabled":{type:"boolean",default:fe.enabled,markdownDescription:f.localize(1448,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:fe.independentColorPoolPerBracketType,description:f.localize(1449,"Controls whether each bracket type has its own independent color pool.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:o(we.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class me extends p{constructor(){const fe={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",fe,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f.localize(1450,"Enables bracket pair guides."),f.localize(1451,"Enables bracket pair guides only for the active bracket pair."),f.localize(1452,"Disables bracket pair guides.")],default:fe.bracketPairs,description:f.localize(1453,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f.localize(1454,"Enables horizontal guides as addition to vertical bracket pair guides."),f.localize(1455,"Enables horizontal guides only for the active bracket pair."),f.localize(1456,"Disables horizontal bracket pair guides.")],default:fe.bracketPairsHorizontal,description:f.localize(1457,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:fe.highlightActiveBracketPair,description:f.localize(1458,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:fe.indentation,description:f.localize(1459,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[f.localize(1460,"Highlights the active indent guide."),f.localize(1461,"Highlights the active indent guide even if bracket guides are highlighted."),f.localize(1462,"Do not highlight the active indent guide.")],default:fe.highlightActiveIndentation,description:f.localize(1463,"Controls whether the editor should highlight the active indent guide.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{bracketPairs:be(we.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:be(we.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:o(we.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:o(we.indentation,this.defaultValue.indentation),highlightActiveIndentation:be(we.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function be(Ne,fe,we){const Oe=we.indexOf(Ne);return Oe===-1?fe:we[Oe]}class ve extends p{constructor(){const fe={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",fe,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[f.localize(1464,"Insert suggestion without overwriting text right of the cursor."),f.localize(1465,"Insert suggestion and overwrite text right of the cursor.")],default:fe.insertMode,description:f.localize(1466,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:fe.filterGraceful,description:f.localize(1467,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:fe.localityBonus,description:f.localize(1468,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:fe.shareSuggestSelections,markdownDescription:f.localize(1469,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[f.localize(1470,"Always select a suggestion when automatically triggering IntelliSense."),f.localize(1471,"Never select a suggestion when automatically triggering IntelliSense."),f.localize(1472,"Select a suggestion only when triggering IntelliSense from a trigger character."),f.localize(1473,"Select a suggestion only when triggering IntelliSense as you type.")],default:fe.selectionMode,markdownDescription:f.localize(1474,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:fe.snippetsPreventQuickSuggestions,description:f.localize(1475,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:fe.showIcons,description:f.localize(1476,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:fe.showStatusBar,description:f.localize(1477,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:fe.preview,description:f.localize(1478,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:fe.showInlineDetails,description:f.localize(1479,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f.localize(1480,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f.localize(1481,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:f.localize(1482,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f.localize(1483,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f.localize(1484,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f.localize(1485,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:f.localize(1486,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:f.localize(1487,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f.localize(1488,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f.localize(1489,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f.localize(1490,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f.localize(1491,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f.localize(1492,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f.localize(1493,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f.localize(1494,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f.localize(1495,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f.localize(1496,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f.localize(1497,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f.localize(1498,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f.localize(1499,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f.localize(1500,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f.localize(1501,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f.localize(1502,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f.localize(1503,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f.localize(1504,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f.localize(1505,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f.localize(1506,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f.localize(1507,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f.localize(1508,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f.localize(1509,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f.localize(1510,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f.localize(1511,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{insertMode:m(we.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:o(we.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:o(we.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:o(we.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:o(we.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:m(we.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:o(we.showIcons,this.defaultValue.showIcons),showStatusBar:o(we.showStatusBar,this.defaultValue.showStatusBar),preview:o(we.preview,this.defaultValue.preview),previewMode:m(we.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:o(we.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:o(we.showMethods,this.defaultValue.showMethods),showFunctions:o(we.showFunctions,this.defaultValue.showFunctions),showConstructors:o(we.showConstructors,this.defaultValue.showConstructors),showDeprecated:o(we.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:o(we.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:o(we.showFields,this.defaultValue.showFields),showVariables:o(we.showVariables,this.defaultValue.showVariables),showClasses:o(we.showClasses,this.defaultValue.showClasses),showStructs:o(we.showStructs,this.defaultValue.showStructs),showInterfaces:o(we.showInterfaces,this.defaultValue.showInterfaces),showModules:o(we.showModules,this.defaultValue.showModules),showProperties:o(we.showProperties,this.defaultValue.showProperties),showEvents:o(we.showEvents,this.defaultValue.showEvents),showOperators:o(we.showOperators,this.defaultValue.showOperators),showUnits:o(we.showUnits,this.defaultValue.showUnits),showValues:o(we.showValues,this.defaultValue.showValues),showConstants:o(we.showConstants,this.defaultValue.showConstants),showEnums:o(we.showEnums,this.defaultValue.showEnums),showEnumMembers:o(we.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:o(we.showKeywords,this.defaultValue.showKeywords),showWords:o(we.showWords,this.defaultValue.showWords),showColors:o(we.showColors,this.defaultValue.showColors),showFiles:o(we.showFiles,this.defaultValue.showFiles),showReferences:o(we.showReferences,this.defaultValue.showReferences),showFolders:o(we.showFolders,this.defaultValue.showFolders),showTypeParameters:o(we.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:o(we.showSnippets,this.defaultValue.showSnippets),showUsers:o(we.showUsers,this.defaultValue.showUsers),showIssues:o(we.showIssues,this.defaultValue.showIssues)}}}class Le extends p{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f.localize(1512,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:f.localize(1513,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(fe){return!fe||typeof fe!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:o(fe.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:o(fe.selectSubwords,this.defaultValue.selectSubwords)}}}class Se extends p{constructor(){const fe=[];super(131,"wordSegmenterLocales",fe,{anyOf:[{description:f.localize(1514,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:f.localize(1515,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(fe){if(typeof fe=="string"&&(fe=[fe]),Array.isArray(fe)){const we=[];for(const Oe of fe)if(typeof Oe=="string")try{Intl.Segmenter.supportedLocalesOf(Oe).length>0&&we.push(Oe)}catch{}return we}return this.defaultValue}}class ye extends p{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[f.localize(1516,"No indentation. Wrapped lines begin at column 1."),f.localize(1517,"Wrapped lines get the same indentation as the parent."),f.localize(1518,"Wrapped lines get +1 indentation toward the parent."),f.localize(1519,"Wrapped lines get +2 indentation toward the parent.")],description:f.localize(1520,"Controls the indentation of wrapped lines."),default:"same"}})}validate(fe){switch(fe){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(fe,we,Oe){return we.get(2)===2?0:Oe}}class Ee extends t{constructor(){super(147)}compute(fe,we,Oe){const Be=we.get(146);return{isDominatedByLongLines:fe.isDominatedByLongLines,isWordWrapMinified:Be.isWordWrapMinified,isViewportWrapping:Be.isViewportWrapping,wrappingColumn:Be.wrappingColumn}}}class ke extends p{constructor(){const fe={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",fe,{"editor.dropIntoEditor.enabled":{type:"boolean",default:fe.enabled,markdownDescription:f.localize(1521,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:f.localize(1522,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[f.localize(1523,"Show the drop selector widget after a file is dropped into the editor."),f.localize(1524,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),showDropSelector:m(we.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class Re extends p{constructor(){const fe={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",fe,{"editor.pasteAs.enabled":{type:"boolean",default:fe.enabled,markdownDescription:f.localize(1525,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:f.localize(1526,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[f.localize(1527,"Show the paste selector widget after content is pasted into the editor."),f.localize(1528,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(fe){if(!fe||typeof fe!="object")return this.defaultValue;const we=fe;return{enabled:o(we.enabled,this.defaultValue.enabled),showPasteSelector:m(we.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const Pe="Consolas, 'Courier New', monospace",Fe="Menlo, Monaco, 'Courier New', monospace",je="'Droid Sans Mono', 'monospace', monospace";e.EDITOR_FONT_DEFAULTS={fontFamily:E.isMacintosh?Fe:E.isLinux?je:Pe,fontWeight:"normal",fontSize:E.isMacintosh?12:14,lineHeight:0,letterSpacing:0},e.editorOptionsRegistry=[];function Te(Ne){return e.editorOptionsRegistry[Ne.id]=Ne,Ne}e.EditorOptions={acceptSuggestionOnCommitCharacter:Te(new g(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f.localize(1529,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Te(new h(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f.localize(1530,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f.localize(1531,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Te(new w),accessibilityPageSize:Te(new l(3,"accessibilityPageSize",10,1,1073741824,{description:f.localize(1532,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Te(new d(4,"ariaLabel",f.localize(1533,"Editor content"))),ariaRequired:Te(new g(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:Te(new g(8,"screenReaderAnnounceInlineSuggestion",!0,{description:f.localize(1534,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:Te(new h(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f.localize(1535,"Use language configurations to determine when to autoclose brackets."),f.localize(1536,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f.localize(1537,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:Te(new h(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f.localize(1538,"Use language configurations to determine when to autoclose comments."),f.localize(1539,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:f.localize(1540,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:Te(new h(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f.localize(1541,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f.localize(1542,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Te(new h(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f.localize(1543,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:f.localize(1544,"Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Te(new h(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f.localize(1545,"Use language configurations to determine when to autoclose quotes."),f.localize(1546,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f.localize(1547,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Te(new C(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],b,{enumDescriptions:[f.localize(1548,"The editor will not insert indentation automatically."),f.localize(1549,"The editor will keep the current line's indentation."),f.localize(1550,"The editor will keep the current line's indentation and honor language defined brackets."),f.localize(1551,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f.localize(1552,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:f.localize(1553,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Te(new g(13,"automaticLayout",!1)),autoSurround:Te(new h(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f.localize(1554,"Use language configurations to determine when to automatically surround selections."),f.localize(1555,"Surround with quotes but not brackets."),f.localize(1556,"Surround with brackets but not quotes."),""],description:f.localize(1557,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Te(new de),bracketPairGuides:Te(new me),stickyTabStops:Te(new g(117,"stickyTabStops",!1,{description:f.localize(1558,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Te(new g(17,"codeLens",!0,{description:f.localize(1559,"Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Te(new d(18,"codeLensFontFamily","",{description:f.localize(1560,"Controls the font family for CodeLens.")})),codeLensFontSize:Te(new l(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f.localize(1561,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Te(new g(20,"colorDecorators",!0,{description:f.localize(1562,"Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:Te(new h(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[f.localize(1563,"Make the color picker appear both on click and hover of the color decorator"),f.localize(1564,"Make the color picker appear on hover of the color decorator"),f.localize(1565,"Make the color picker appear on click of the color decorator")],description:f.localize(1566,"Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:Te(new l(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:f.localize(1567,"Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Te(new g(22,"columnSelection",!1,{description:f.localize(1568,"Enable that the selection with the mouse and keys is doing column selection.")})),comments:Te(new S),contextmenu:Te(new g(24,"contextmenu",!0)),copyWithSyntaxHighlighting:Te(new g(25,"copyWithSyntaxHighlighting",!0,{description:f.localize(1569,"Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Te(new C(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],D,{description:f.localize(1570,"Control the cursor animation style.")})),cursorSmoothCaretAnimation:Te(new h(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[f.localize(1571,"Smooth caret animation is disabled."),f.localize(1572,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),f.localize(1573,"Smooth caret animation is always enabled.")],description:f.localize(1574,"Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Te(new C(28,"cursorStyle",I.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],T,{description:f.localize(1575,"Controls the cursor style.")})),cursorSurroundingLines:Te(new l(29,"cursorSurroundingLines",0,0,1073741824,{description:f.localize(1576,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Te(new h(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f.localize(1577,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f.localize(1578,"`cursorSurroundingLines` is enforced always.")],markdownDescription:f.localize(1579,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:Te(new l(31,"cursorWidth",0,0,1073741824,{markdownDescription:f.localize(1580,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Te(new g(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:Te(new g(33,"disableMonospaceOptimizations",!1)),domReadOnly:Te(new g(34,"domReadOnly",!1)),dragAndDrop:Te(new g(35,"dragAndDrop",!0,{description:f.localize(1581,"Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Te(new A),dropIntoEditor:Te(new ke),stickyScroll:Te(new Q),experimentalWhitespaceRendering:Te(new h(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[f.localize(1582,"Use a new rendering method with svgs."),f.localize(1583,"Use a new rendering method with font characters."),f.localize(1584,"Use the stable rendering method.")],description:f.localize(1585,"Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Te(new d(39,"extraEditorClassName","")),fastScrollSensitivity:Te(new a(40,"fastScrollSensitivity",5,Ne=>Ne<=0?5:Ne,{markdownDescription:f.localize(1586,"Scrolling speed multiplier when pressing `Alt`.")})),find:Te(new R),fixedOverflowWidgets:Te(new g(42,"fixedOverflowWidgets",!1)),folding:Te(new g(43,"folding",!0,{description:f.localize(1587,"Controls whether the editor has code folding enabled.")})),foldingStrategy:Te(new h(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f.localize(1588,"Use a language-specific folding strategy if available, else the indentation-based one."),f.localize(1589,"Use the indentation-based folding strategy.")],description:f.localize(1590,"Controls the strategy for computing folding ranges.")})),foldingHighlight:Te(new g(45,"foldingHighlight",!0,{description:f.localize(1591,"Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Te(new g(46,"foldingImportsByDefault",!1,{description:f.localize(1592,"Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Te(new l(47,"foldingMaximumRegions",5e3,10,65e3,{description:f.localize(1593,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Te(new g(48,"unfoldOnClickAfterEndOfLine",!1,{description:f.localize(1594,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Te(new d(49,"fontFamily",e.EDITOR_FONT_DEFAULTS.fontFamily,{description:f.localize(1595,"Controls the font family.")})),fontInfo:Te(new x),fontLigatures2:Te(new N),fontSize:Te(new F),fontWeight:Te(new W),fontVariations:Te(new O),formatOnPaste:Te(new g(55,"formatOnPaste",!1,{description:f.localize(1596,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Te(new g(56,"formatOnType",!1,{description:f.localize(1597,"Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Te(new g(57,"glyphMargin",!0,{description:f.localize(1598,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Te(new z),hideCursorInOverviewRuler:Te(new g(59,"hideCursorInOverviewRuler",!1,{description:f.localize(1599,"Controls whether the cursor should be hidden in the overview ruler.")})),hover:Te(new q),inDiffEditor:Te(new g(61,"inDiffEditor",!1)),letterSpacing:Te(new a(64,"letterSpacing",e.EDITOR_FONT_DEFAULTS.letterSpacing,Ne=>a.clamp(Ne,-5,20),{description:f.localize(1600,"Controls the letter spacing in pixels.")})),lightbulb:Te(new Y),lineDecorationsWidth:Te(new G),lineHeight:Te(new P),lineNumbers:Te(new ne),lineNumbersMinChars:Te(new l(69,"lineNumbersMinChars",5,1,300)),linkedEditing:Te(new g(70,"linkedEditing",!1,{description:f.localize(1601,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Te(new g(71,"links",!0,{description:f.localize(1602,"Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Te(new h(72,"matchBrackets","always",["always","near","never"],{description:f.localize(1603,"Highlight matching brackets.")})),minimap:Te(new te),mouseStyle:Te(new h(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Te(new a(75,"mouseWheelScrollSensitivity",1,Ne=>Ne===0?1:Ne,{markdownDescription:f.localize(1604,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Te(new g(76,"mouseWheelZoom",!1,{markdownDescription:E.isMacintosh?f.localize(1605,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):f.localize(1606,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Te(new g(77,"multiCursorMergeOverlapping",!0,{description:f.localize(1607,"Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Te(new C(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],se,{markdownEnumDescriptions:[f.localize(1608,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),f.localize(1609,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f.localize(1610,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Te(new h(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f.localize(1611,"Each cursor pastes a single line of the text."),f.localize(1612,"Each cursor pastes the full text.")],markdownDescription:f.localize(1613,"Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Te(new l(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:f.localize(1614,"Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Te(new h(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[f.localize(1615,"Does not highlight occurrences."),f.localize(1616,"Highlights occurrences only in the current file."),f.localize(1617,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:f.localize(1618,"Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:Te(new g(82,"overviewRulerBorder",!0,{description:f.localize(1619,"Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Te(new l(83,"overviewRulerLanes",3,0,3)),padding:Te(new ue),pasteAs:Te(new Re),parameterHints:Te(new ge),peekWidgetDefaultFocus:Te(new h(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f.localize(1620,"Focus the tree when opening peek"),f.localize(1621,"Focus the editor when opening peek")],description:f.localize(1622,"Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:Te(new ce),definitionLinkOpensInPeek:Te(new g(89,"definitionLinkOpensInPeek",!1,{description:f.localize(1623,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Te(new ie),quickSuggestionsDelay:Te(new l(91,"quickSuggestionsDelay",10,0,1073741824,{description:f.localize(1624,"Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Te(new g(92,"readOnly",!1)),readOnlyMessage:Te(new j),renameOnType:Te(new g(94,"renameOnType",!1,{description:f.localize(1625,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:f.localize(1626,"Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Te(new g(95,"renderControlCharacters",!0,{description:f.localize(1627,"Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Te(new h(96,"renderFinalNewline",E.isLinux?"dimmed":"on",["off","on","dimmed"],{description:f.localize(1628,"Render last line number when the file ends with a newline.")})),renderLineHighlight:Te(new h(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f.localize(1629,"Highlights both the gutter and the current line.")],description:f.localize(1630,"Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Te(new g(98,"renderLineHighlightOnlyWhenFocus",!1,{description:f.localize(1631,"Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Te(new h(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Te(new h(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f.localize(1632,"Render whitespace characters except for single spaces between words."),f.localize(1633,"Render whitespace characters only on selected text."),f.localize(1634,"Render only trailing whitespace characters."),""],description:f.localize(1635,"Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Te(new l(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Te(new g(102,"roundedSelection",!0,{description:f.localize(1636,"Controls whether selections should have rounded corners.")})),rulers:Te(new B),scrollbar:Te(new $),scrollBeyondLastColumn:Te(new l(105,"scrollBeyondLastColumn",4,0,1073741824,{description:f.localize(1637,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Te(new g(106,"scrollBeyondLastLine",!0,{description:f.localize(1638,"Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Te(new g(107,"scrollPredominantAxis",!0,{description:f.localize(1639,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Te(new g(108,"selectionClipboard",!0,{description:f.localize(1640,"Controls whether the Linux primary clipboard should be supported."),included:E.isLinux})),selectionHighlight:Te(new g(109,"selectionHighlight",!0,{description:f.localize(1641,"Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Te(new g(110,"selectOnLineNumbers",!0)),showFoldingControls:Te(new h(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[f.localize(1642,"Always show the folding controls."),f.localize(1643,"Never show the folding controls and reduce the gutter size."),f.localize(1644,"Only show the folding controls when the mouse is over the gutter.")],description:f.localize(1645,"Controls when the folding controls on the gutter are shown.")})),showUnused:Te(new g(112,"showUnused",!0,{description:f.localize(1646,"Controls fading out of unused code.")})),showDeprecated:Te(new g(141,"showDeprecated",!0,{description:f.localize(1647,"Controls strikethrough deprecated variables.")})),inlayHints:Te(new X),snippetSuggestions:Te(new h(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f.localize(1648,"Show snippet suggestions on top of other suggestions."),f.localize(1649,"Show snippet suggestions below other suggestions."),f.localize(1650,"Show snippets suggestions with other suggestions."),f.localize(1651,"Do not show snippet suggestions.")],description:f.localize(1652,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Te(new Le),smoothScrolling:Te(new g(115,"smoothScrolling",!1,{description:f.localize(1653,"Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Te(new l(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Te(new ve),inlineSuggest:Te(new ee),inlineEdit:Te(new le),inlineCompletionsAccessibilityVerbose:Te(new g(150,"inlineCompletionsAccessibilityVerbose",!1,{description:f.localize(1654,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:Te(new l(120,"suggestFontSize",0,0,1e3,{markdownDescription:f.localize(1655,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Te(new l(121,"suggestLineHeight",0,0,1e3,{markdownDescription:f.localize(1656,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Te(new g(122,"suggestOnTriggerCharacters",!0,{description:f.localize(1657,"Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Te(new h(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f.localize(1658,"Always select the first suggestion."),f.localize(1659,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f.localize(1660,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f.localize(1661,"Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Te(new h(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f.localize(1662,"Tab complete will insert the best matching suggestion when pressing tab."),f.localize(1663,"Disable tab completions."),f.localize(1664,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f.localize(1665,"Enables tab completions.")})),tabIndex:Te(new l(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:Te(new Z),unusualLineTerminators:Te(new h(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f.localize(1666,"Unusual line terminators are automatically removed."),f.localize(1667,"Unusual line terminators are ignored."),f.localize(1668,"Unusual line terminators prompt to be removed.")],description:f.localize(1669,"Remove unusual line terminators that might cause problems.")})),useShadowDOM:Te(new g(128,"useShadowDOM",!0)),useTabStops:Te(new g(129,"useTabStops",!0,{description:f.localize(1670,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:Te(new h(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[f.localize(1671,"Use the default line break rule."),f.localize(1672,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:f.localize(1673,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:Te(new Se),wordSeparators:Te(new d(132,"wordSeparators",y.USUAL_WORD_SEPARATORS,{description:f.localize(1674,"Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Te(new h(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f.localize(1675,"Lines will never wrap."),f.localize(1676,"Lines will wrap at the viewport width."),f.localize(1677,"Lines will wrap at `#editor.wordWrapColumn#`."),f.localize(1678,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f.localize(1679,"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Te(new d(134,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:Te(new d(135,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:Te(new l(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:f.localize(1680,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Te(new h(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Te(new h(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Te(new M),defaultColorDecorators:Te(new g(148,"defaultColorDecorators",!1,{markdownDescription:f.localize(1681,"Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:Te(new pe),tabFocusMode:Te(new g(145,"tabFocusMode",!1,{markdownDescription:f.localize(1682,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Te(new H),wrappingInfo:Te(new Ee),wrappingIndent:Te(new ye),wrappingStrategy:Te(new K)}}),define(oe[650],re([1,0,5,39,11,74,37,9,4,224]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewCursor=e.CursorPlurality=void 0;class p{constructor(i,o,g,u,l,r,a){this.top=i,this.left=o,this.paddingLeft=g,this.width=u,this.height=l,this.textContent=r,this.textContentClassName=a}}var n;(function(t){t[t.Single=0]="Single",t[t.MultiPrimary=1]="MultiPrimary",t[t.MultiSecondary=2]="MultiSecondary"})(n||(e.CursorPlurality=n={}));class s{constructor(i,o){this._context=i;const g=this._context.configuration.options,u=g.get(50);this._cursorStyle=g.get(28),this._lineHeight=g.get(67),this._typicalHalfwidthCharacterWidth=u.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(g.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,k.createFastDomNode)(document.createElement("div")),this._domNode.setClassName(`cursor ${v.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,L.applyFontInfo)(this._domNode,u),this._domNode.setDisplay("none"),this._position=new f.Position(1,1),this._pluralityClass="",this.setPlurality(o),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(i){switch(i){default:case n.Single:this._pluralityClass="";break;case n.MultiPrimary:this._pluralityClass="cursor-primary";break;case n.MultiSecondary:this._pluralityClass="cursor-secondary";break}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(i){const o=this._context.configuration.options,g=o.get(50);return this._cursorStyle=o.get(28),this._lineHeight=o.get(67),this._typicalHalfwidthCharacterWidth=g.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(o.get(31),this._typicalHalfwidthCharacterWidth),(0,L.applyFontInfo)(this._domNode,g),!0}onCursorPositionChanged(i,o){return o?this._domNode.domNode.style.transitionProperty="none":this._domNode.domNode.style.transitionProperty="",this._position=i,!0}_getGraphemeAwarePosition(){const{lineNumber:i,column:o}=this._position,g=this._context.viewModel.getLineContent(i),[u,l]=E.getCharContainingOffset(g,o-1);return[new f.Position(i,u+1),g.substring(u,l)]}_prepareRender(i){let o="",g="";const[u,l]=this._getGraphemeAwarePosition();if(this._cursorStyle===y.TextEditorCursorStyle.Line||this._cursorStyle===y.TextEditorCursorStyle.LineThin){const b=i.visibleRangeForPosition(u);if(!b||b.outsideRenderedLine)return null;const w=c.getWindow(this._domNode.domNode);let S;this._cursorStyle===y.TextEditorCursorStyle.Line?(S=c.computeScreenAwareSize(w,this._lineCursorWidth>0?this._lineCursorWidth:2),S>2&&(o=l,g=this._getTokenClassName(u))):S=c.computeScreenAwareSize(w,1);let D=b.left,I=0;S>=2&&D>=1&&(I=1,D-=I);const T=i.getVerticalOffsetForLineNumber(u.lineNumber)-i.bigNumbersDelta;return new p(T,D,I,S,this._lineHeight,o,g)}const r=i.linesVisibleRangesForRange(new _.Range(u.lineNumber,u.column,u.lineNumber,u.column+l.length),!1);if(!r||r.length===0)return null;const a=r[0];if(a.outsideRenderedLine||a.ranges.length===0)return null;const d=a.ranges[0],m=l===" "?this._typicalHalfwidthCharacterWidth:d.width<1?this._typicalHalfwidthCharacterWidth:d.width;this._cursorStyle===y.TextEditorCursorStyle.Block&&(o=l,g=this._getTokenClassName(u));let h=i.getVerticalOffsetForLineNumber(u.lineNumber)-i.bigNumbersDelta,C=this._lineHeight;return(this._cursorStyle===y.TextEditorCursorStyle.Underline||this._cursorStyle===y.TextEditorCursorStyle.UnderlineThin)&&(h+=this._lineHeight-2,C=2),new p(h,d.left,0,m,C,o,g)}_getTokenClassName(i){const o=this._context.viewModel.getViewLineData(i.lineNumber),g=o.tokens.findTokenIndexAtOffset(i.column-1);return o.tokens.getClassName(g)}prepareRender(i){this._renderData=this._prepareRender(i)}render(i){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${v.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}e.ViewCursor=s}),define(oe[260],re([1,0,16,37,163]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontInfo=e.SERIALIZED_FONT_INFO_VERSION=e.BareFontInfo=void 0;const L=c.isMacintosh?1.5:1.35,y=8;class f{static createFromValidatedSettings(p,n,s){const t=p.get(49),i=p.get(53),o=p.get(52),g=p.get(51),u=p.get(54),l=p.get(67),r=p.get(64);return f._create(t,i,o,g,u,l,r,n,s)}static _create(p,n,s,t,i,o,g,u,l){o===0?o=L*s:o<y&&(o=o*s),o=Math.round(o),o<y&&(o=y);const r=1+(l?0:E.EditorZoom.getZoomLevel()*.1);return s*=r,o*=r,i===k.EditorFontVariations.TRANSLATE&&(n==="normal"||n==="bold"?i=k.EditorFontVariations.OFF:(i=`'wght' ${parseInt(n,10)}`,n="normal")),new f({pixelRatio:u,fontFamily:p,fontWeight:n,fontSize:s,fontFeatureSettings:t,fontVariationSettings:i,lineHeight:o,letterSpacing:g})}constructor(p){this._bareFontInfoBrand=void 0,this.pixelRatio=p.pixelRatio,this.fontFamily=String(p.fontFamily),this.fontWeight=String(p.fontWeight),this.fontSize=p.fontSize,this.fontFeatureSettings=p.fontFeatureSettings,this.fontVariationSettings=p.fontVariationSettings,this.lineHeight=p.lineHeight|0,this.letterSpacing=p.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const p=k.EDITOR_FONT_DEFAULTS.fontFamily,n=f._wrapInQuotes(this.fontFamily);return p&&this.fontFamily!==p?`${n}, ${p}`:n}static _wrapInQuotes(p){return/[,"']/.test(p)?p:/[+ ]/.test(p)?`"${p}"`:p}}e.BareFontInfo=f,e.SERIALIZED_FONT_INFO_VERSION=2;class _ extends f{constructor(p,n){super(p),this._editorStylingBrand=void 0,this.version=e.SERIALIZED_FONT_INFO_VERSION,this.isTrusted=n,this.isMonospace=p.isMonospace,this.typicalHalfwidthCharacterWidth=p.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=p.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=p.canUseHalfwidthRightwardsArrow,this.spaceWidth=p.spaceWidth,this.middotWidth=p.middotWidth,this.wsmiddotWidth=p.wsmiddotWidth,this.maxDigitWidth=p.maxDigitWidth}equals(p){return this.fontFamily===p.fontFamily&&this.fontWeight===p.fontWeight&&this.fontSize===p.fontSize&&this.fontFeatureSettings===p.fontFeatureSettings&&this.fontVariationSettings===p.fontVariationSettings&&this.lineHeight===p.lineHeight&&this.letterSpacing===p.letterSpacing&&this.typicalHalfwidthCharacterWidth===p.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===p.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===p.canUseHalfwidthRightwardsArrow&&this.spaceWidth===p.spaceWidth&&this.middotWidth===p.middotWidth&&this.wsmiddotWidth===p.wsmiddotWidth&&this.maxDigitWidth===p.maxDigitWidth}}e.FontInfo=_}),define(oe[364],re([1,0,5,252,6,2,541,37,260]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontMeasurements=e.FontMeasurementsImpl=void 0;class v extends L.Disposable{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new E.Emitter),this.onDidChange=this._onDidChange.event}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(s){const t=(0,c.getWindowId)(s);let i=this._cache.get(t);return i||(i=new p,this._cache.set(t,i)),i}_writeToCache(s,t,i){this._ensureCache(s).put(t,i),!i.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=s.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(s)},5e3))}_evictUntrustedReadings(s){const t=this._ensureCache(s),i=t.getValues();let o=!1;for(const g of i)g.isTrusted||(o=!0,t.remove(g));o&&this._onDidChange.fire()}readFontInfo(s,t){const i=this._ensureCache(s);if(!i.has(t)){let o=this._actualReadFontInfo(s,t);(o.typicalHalfwidthCharacterWidth<=2||o.typicalFullwidthCharacterWidth<=2||o.spaceWidth<=2||o.maxDigitWidth<=2)&&(o=new _.FontInfo({pixelRatio:k.PixelRatio.getInstance(s).value,fontFamily:o.fontFamily,fontWeight:o.fontWeight,fontSize:o.fontSize,fontFeatureSettings:o.fontFeatureSettings,fontVariationSettings:o.fontVariationSettings,lineHeight:o.lineHeight,letterSpacing:o.letterSpacing,isMonospace:o.isMonospace,typicalHalfwidthCharacterWidth:Math.max(o.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(o.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:o.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(o.spaceWidth,5),middotWidth:Math.max(o.middotWidth,5),wsmiddotWidth:Math.max(o.wsmiddotWidth,5),maxDigitWidth:Math.max(o.maxDigitWidth,5)},!1)),this._writeToCache(s,t,o)}return i.get(t)}_createRequest(s,t,i,o){const g=new y.CharWidthRequest(s,t);return i.push(g),o?.push(g),g}_actualReadFontInfo(s,t){const i=[],o=[],g=this._createRequest("n",0,i,o),u=this._createRequest("\uFF4D",0,i,null),l=this._createRequest(" ",0,i,o),r=this._createRequest("0",0,i,o),a=this._createRequest("1",0,i,o),d=this._createRequest("2",0,i,o),m=this._createRequest("3",0,i,o),h=this._createRequest("4",0,i,o),C=this._createRequest("5",0,i,o),b=this._createRequest("6",0,i,o),w=this._createRequest("7",0,i,o),S=this._createRequest("8",0,i,o),D=this._createRequest("9",0,i,o),I=this._createRequest("\u2192",0,i,o),T=this._createRequest("\uFFEB",0,i,null),M=this._createRequest("\xB7",0,i,o),A=this._createRequest("\u2E31",0,i,null),R="|/-_ilm%";for(let W=0,z=R.length;W<z;W++)this._createRequest(R.charAt(W),0,i,o),this._createRequest(R.charAt(W),1,i,o),this._createRequest(R.charAt(W),2,i,o);(0,y.readCharWidths)(s,t,i);const N=Math.max(r.width,a.width,d.width,m.width,h.width,C.width,b.width,w.width,S.width,D.width);let O=t.fontFeatureSettings===f.EditorFontLigatures.OFF;const x=o[0].width;for(let W=1,z=o.length;O&&W<z;W++){const q=x-o[W].width;if(q<-.001||q>.001){O=!1;break}}let F=!0;return O&&T.width!==x&&(F=!1),T.width>I.width&&(F=!1),new _.FontInfo({pixelRatio:k.PixelRatio.getInstance(s).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:O,typicalHalfwidthCharacterWidth:g.width,typicalFullwidthCharacterWidth:u.width,canUseHalfwidthRightwardsArrow:F,spaceWidth:l.width,middotWidth:M.width,wsmiddotWidth:A.width,maxDigitWidth:N},!0)}}e.FontMeasurementsImpl=v;class p{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(s){const t=s.getId();return!!this._values[t]}get(s){const t=s.getId();return this._values[t]}put(s,t){const i=s.getId();this._keys[i]=s,this._values[i]=t}remove(s){const t=s.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(s=>this._values[s])}}e.FontMeasurements=new v}),define(oe[115],re([1,0,11,16,158]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringBuilder=void 0,e.getPlatformTextDecoder=p,e.decodeUTF16LE=n;let L;function y(){return L||(L=new TextDecoder("UTF-16LE")),L}let f;function _(){return f||(f=new TextDecoder("UTF-16BE")),f}let v;function p(){return v||(v=k.isLittleEndian()?y():_()),v}function n(i,o,g){const u=new Uint16Array(i.buffer,o,g);return g>0&&(u[0]===65279||u[0]===65534)?s(i,o,g):y().decode(u)}function s(i,o,g){const u=[];let l=0;for(let r=0;r<g;r++){const a=E.readUInt16LE(i,o);o+=2,u[l++]=String.fromCharCode(a)}return u.join("")}class t{constructor(o){this._capacity=o|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";const o=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return p().decode(o)}_flushBuffer(){const o=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[o]:this._completedStrings[this._completedStrings.length]=o}appendCharCode(o){const g=this._capacity-this._bufferLength;g<=1&&(g===0||c.isHighSurrogate(o))&&this._flushBuffer(),this._buffer[this._bufferLength++]=o}appendASCIICharCode(o){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=o}appendString(o){const g=o.length;if(this._bufferLength+g>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=o;return}for(let u=0;u<g;u++)this._buffer[this._bufferLength++]=o.charCodeAt(u)}}e.StringBuilder=t}),define(oe[651],re([1,0,102,11,19,74,115,324,131]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DOMLineBreaksComputerFactory=void 0;const v=(0,c.createTrustedTypesPolicy)("domLineBreaksComputer",{createHTML:g=>g});class p{static create(u){return new p(new WeakRef(u))}constructor(u){this.targetWindow=u}createLineBreaksComputer(u,l,r,a,d){const m=[],h=[];return{addRequest:(C,b,w)=>{m.push(C),h.push(b)},finalize:()=>n((0,E.assertIsDefined)(this.targetWindow.deref()),m,u,l,r,a,d,h)}}}e.DOMLineBreaksComputerFactory=p;function n(g,u,l,r,a,d,m,h){function C(H){const K=h[H];if(K){const U=_.LineInjectedText.applyInjectedText(u[H],K),Y=K.map(X=>X.options),Q=K.map(X=>X.column-1);return new f.ModelLineProjectionData(Q,Y,[U.length],[],0)}else return null}if(a===-1){const H=[];for(let K=0,U=u.length;K<U;K++)H[K]=C(K);return H}const b=Math.round(a*l.typicalHalfwidthCharacterWidth),S=Math.round(r*(d===3?2:d===2?1:0)),D=Math.ceil(l.spaceWidth*S),I=document.createElement("div");(0,L.applyFontInfo)(I,l);const T=new y.StringBuilder(1e4),M=[],A=[],R=[],N=[],O=[];for(let H=0;H<u.length;H++){const K=_.LineInjectedText.applyInjectedText(u[H],h[H]);let U=0,Y=0,Q=b;if(d!==0)if(U=k.firstNonWhitespaceIndex(K),U===-1)U=0;else{for(let te=0;te<U;te++){const se=K.charCodeAt(te)===9?r-Y%r:1;Y+=se}const P=Math.ceil(l.spaceWidth*Y);P+l.typicalFullwidthCharacterWidth>b?(U=0,Y=0):Q=b-P}const X=K.substr(U),G=s(X,Y,r,Q,T,D);M[H]=U,A[H]=Y,R[H]=X,N[H]=G[0],O[H]=G[1]}const x=T.build(),F=v?.createHTML(x)??x;I.innerHTML=F,I.style.position="absolute",I.style.top="10000",m==="keepAll"?(I.style.wordBreak="keep-all",I.style.overflowWrap="anywhere"):(I.style.wordBreak="inherit",I.style.overflowWrap="break-word"),g.document.body.appendChild(I);const W=document.createRange(),z=Array.prototype.slice.call(I.children,0),q=[];for(let H=0;H<u.length;H++){const K=z[H],U=t(W,K,R[H],N[H]);if(U===null){q[H]=C(H);continue}const Y=M[H],Q=A[H]+S,X=O[H],G=[];for(let ue=0,ge=U.length;ue<ge;ue++)G[ue]=X[U[ue]];if(Y!==0)for(let ue=0,ge=U.length;ue<ge;ue++)U[ue]+=Y;let P,te;const se=h[H];se?(P=se.map(ue=>ue.options),te=se.map(ue=>ue.column-1)):(P=null,te=null),q[H]=new f.ModelLineProjectionData(te,P,U,G,Q)}return I.remove(),q}function s(g,u,l,r,a,d){if(d!==0){const D=String(d);a.appendString('<div style="text-indent: -'),a.appendString(D),a.appendString("px; padding-left: "),a.appendString(D),a.appendString("px; box-sizing: border-box; width:")}else a.appendString('<div style="width:');a.appendString(String(r)),a.appendString('px;">');const m=g.length;let h=u,C=0;const b=[],w=[];let S=0<m?g.charCodeAt(0):0;a.appendString("<span>");for(let D=0;D<m;D++){D!==0&&D%16384===0&&a.appendString("</span><span>"),b[D]=C,w[D]=h;const I=S;S=D+1<m?g.charCodeAt(D+1):0;let T=1,M=1;switch(I){case 9:T=l-h%l,M=T;for(let A=1;A<=T;A++)A<T?a.appendCharCode(160):a.appendASCIICharCode(32);break;case 32:S===32?a.appendCharCode(160):a.appendASCIICharCode(32);break;case 60:a.appendString("<");break;case 62:a.appendString(">");break;case 38:a.appendString("&");break;case 0:a.appendString("�");break;case 65279:case 8232:case 8233:case 133:a.appendCharCode(65533);break;default:k.isFullWidthCharacter(I)&&M++,I<32?a.appendCharCode(9216+I):a.appendCharCode(I)}C+=T,h+=M}return a.appendString("</span>"),b[g.length]=C,w[g.length]=h,a.appendString("</div>"),[b,w]}function t(g,u,l,r){if(l.length<=1)return null;const a=Array.prototype.slice.call(u.children,0),d=[];try{i(g,a,r,0,null,l.length-1,null,d)}catch(m){return console.log(m),null}return d.length===0?null:(d.push(l.length),d)}function i(g,u,l,r,a,d,m,h){if(r===d||(a=a||o(g,u,l[r],l[r+1]),m=m||o(g,u,l[d],l[d+1]),Math.abs(a[0].top-m[0].top)<=.1))return;if(r+1===d){h.push(d);return}const C=r+(d-r)/2|0,b=o(g,u,l[C],l[C+1]);i(g,u,l,r,a,C,b,h),i(g,u,l,C,b,d,m,h)}function o(g,u,l,r){return g.setStart(u[l/16384|0].firstChild,l%16384),g.setEnd(u[r/16384|0].firstChild,r%16384),g.getClientRects()}}),define(oe[261],re([1,0,39,102,8,115]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VisibleLinesCollection=e.RenderedLinesCollection=void 0;class y{constructor(p){this._createLine=p,this._set(1,[])}flush(){this._set(1,[])}_set(p,n){this._lines=n,this._rendLineNumberStart=p}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(p){const n=p-this._rendLineNumberStart;if(n<0||n>=this._lines.length)throw new E.BugIndicatingError("Illegal value for lineNumber");return this._lines[n]}onLinesDeleted(p,n){if(this.getCount()===0)return null;const s=this.getStartLineNumber(),t=this.getEndLineNumber();if(n<s){const u=n-p+1;return this._rendLineNumberStart-=u,null}if(p>t)return null;let i=0,o=0;for(let u=s;u<=t;u++){const l=u-this._rendLineNumberStart;p<=u&&u<=n&&(o===0?(i=l,o=1):o++)}if(p<s){let u=0;n<s?u=n-p+1:u=s-p,this._rendLineNumberStart-=u}return this._lines.splice(i,o)}onLinesChanged(p,n){const s=p+n-1;if(this.getCount()===0)return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let o=!1;for(let g=p;g<=s;g++)g>=t&&g<=i&&(this._lines[g-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(p,n){if(this.getCount()===0)return null;const s=n-p+1,t=this.getStartLineNumber(),i=this.getEndLineNumber();if(p<=t)return this._rendLineNumberStart+=s,null;if(p>i)return null;if(s+p>i)return this._lines.splice(p-this._rendLineNumberStart,i-p+1);const o=[];for(let a=0;a<s;a++)o[a]=this._createLine();const g=p-this._rendLineNumberStart,u=this._lines.slice(0,g),l=this._lines.slice(g,this._lines.length-s),r=this._lines.slice(this._lines.length-s,this._lines.length);return this._lines=u.concat(o).concat(l),r}onTokensChanged(p){if(this.getCount()===0)return!1;const n=this.getStartLineNumber(),s=this.getEndLineNumber();let t=!1;for(let i=0,o=p.length;i<o;i++){const g=p[i];if(g.toLineNumber<n||g.fromLineNumber>s)continue;const u=Math.max(n,g.fromLineNumber),l=Math.min(s,g.toLineNumber);for(let r=u;r<=l;r++){const a=r-this._rendLineNumberStart;this._lines[a].onTokensChanged(),t=!0}}return t}}e.RenderedLinesCollection=y;class f{constructor(p){this._host=p,this.domNode=this._createDomNode(),this._linesCollection=new y(()=>this._host.createVisibleLine())}_createDomNode(){const p=(0,c.createFastDomNode)(document.createElement("div"));return p.setClassName("view-layer"),p.setPosition("absolute"),p.domNode.setAttribute("role","presentation"),p.domNode.setAttribute("aria-hidden","true"),p}onConfigurationChanged(p){return!!p.hasChanged(146)}onFlushed(p){return this._linesCollection.flush(),!0}onLinesChanged(p){return this._linesCollection.onLinesChanged(p.fromLineNumber,p.count)}onLinesDeleted(p){const n=this._linesCollection.onLinesDeleted(p.fromLineNumber,p.toLineNumber);if(n)for(let s=0,t=n.length;s<t;s++)n[s].getDomNode()?.remove();return!0}onLinesInserted(p){const n=this._linesCollection.onLinesInserted(p.fromLineNumber,p.toLineNumber);if(n)for(let s=0,t=n.length;s<t;s++)n[s].getDomNode()?.remove();return!0}onScrollChanged(p){return p.scrollTopChanged}onTokensChanged(p){return this._linesCollection.onTokensChanged(p.ranges)}onZonesChanged(p){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(p){return this._linesCollection.getLine(p)}renderLines(p){const n=this._linesCollection._get(),s=new _(this.domNode.domNode,this._host,p),t={rendLineNumberStart:n.rendLineNumberStart,lines:n.lines,linesLength:n.lines.length},i=s.render(t,p.startLineNumber,p.endLineNumber,p.relativeVerticalOffset);this._linesCollection._set(i.rendLineNumberStart,i.lines)}}e.VisibleLinesCollection=f;class _{static{this._ttPolicy=(0,k.createTrustedTypesPolicy)("editorViewLayer",{createHTML:p=>p})}constructor(p,n,s){this.domNode=p,this.host=n,this.viewportData=s}render(p,n,s,t){const i={rendLineNumberStart:p.rendLineNumberStart,lines:p.lines.slice(0),linesLength:p.linesLength};if(i.rendLineNumberStart+i.linesLength-1<n||s<i.rendLineNumberStart){i.rendLineNumberStart=n,i.linesLength=s-n+1,i.lines=[];for(let o=n;o<=s;o++)i.lines[o-n]=this.host.createVisibleLine();return this._finishRendering(i,!0,t),i}if(this._renderUntouchedLines(i,Math.max(n-i.rendLineNumberStart,0),Math.min(s-i.rendLineNumberStart,i.linesLength-1),t,n),i.rendLineNumberStart>n){const o=n,g=Math.min(s,i.rendLineNumberStart-1);o<=g&&(this._insertLinesBefore(i,o,g,t,n),i.linesLength+=g-o+1)}else if(i.rendLineNumberStart<n){const o=Math.min(i.linesLength,n-i.rendLineNumberStart);o>0&&(this._removeLinesBefore(i,o),i.linesLength-=o)}if(i.rendLineNumberStart=n,i.rendLineNumberStart+i.linesLength-1<s){const o=i.rendLineNumberStart+i.linesLength,g=s;o<=g&&(this._insertLinesAfter(i,o,g,t,n),i.linesLength+=g-o+1)}else if(i.rendLineNumberStart+i.linesLength-1>s){const o=Math.max(0,s-i.rendLineNumberStart+1),u=i.linesLength-1-o+1;u>0&&(this._removeLinesAfter(i,u),i.linesLength-=u)}return this._finishRendering(i,!1,t),i}_renderUntouchedLines(p,n,s,t,i){const o=p.rendLineNumberStart,g=p.lines;for(let u=n;u<=s;u++){const l=o+u;g[u].layoutLine(l,t[l-i],this.viewportData.lineHeight)}}_insertLinesBefore(p,n,s,t,i){const o=[];let g=0;for(let u=n;u<=s;u++)o[g++]=this.host.createVisibleLine();p.lines=o.concat(p.lines)}_removeLinesBefore(p,n){for(let s=0;s<n;s++)p.lines[s].getDomNode()?.remove();p.lines.splice(0,n)}_insertLinesAfter(p,n,s,t,i){const o=[];let g=0;for(let u=n;u<=s;u++)o[g++]=this.host.createVisibleLine();p.lines=p.lines.concat(o)}_removeLinesAfter(p,n){const s=p.linesLength-n;for(let t=0;t<n;t++)p.lines[s+t].getDomNode()?.remove();p.lines.splice(s,n)}_finishRenderingNewLines(p,n,s,t){_._ttPolicy&&(s=_._ttPolicy.createHTML(s));const i=this.domNode.lastChild;n||!i?this.domNode.innerHTML=s:i.insertAdjacentHTML("afterend",s);let o=this.domNode.lastChild;for(let g=p.linesLength-1;g>=0;g--){const u=p.lines[g];t[g]&&(u.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(p,n,s){const t=document.createElement("div");_._ttPolicy&&(n=_._ttPolicy.createHTML(n)),t.innerHTML=n;for(let i=0;i<p.linesLength;i++){const o=p.lines[i];if(s[i]){const g=t.firstChild,u=o.getDomNode();u.parentNode.replaceChild(g,u),o.setDomNode(g)}}}static{this._sb=new L.StringBuilder(1e5)}_finishRendering(p,n,s){const t=_._sb,i=p.linesLength,o=p.lines,g=p.rendLineNumberStart,u=[];{t.reset();let l=!1;for(let r=0;r<i;r++){const a=o[r];u[r]=!1,!(a.getDomNode()||!a.renderLine(r+g,s[r],this.viewportData.lineHeight,this.viewportData,t))&&(u[r]=!0,l=!0)}l&&this._finishRenderingNewLines(p,n,t.build(),u)}{t.reset();let l=!1;const r=[];for(let a=0;a<i;a++){const d=o[a];r[a]=!1,!(u[a]||!d.renderLine(a+g,s[a],this.viewportData.lineHeight,this.viewportData,t))&&(r[a]=!0,l=!0)}l&&this._finishRenderingInvalidLines(p,t.build(),r)}}}}),define(oe[652],re([1,0,39,74,261,56]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginViewOverlays=e.ContentViewOverlays=e.ViewOverlayLine=e.ViewOverlays=void 0;class y extends L.ViewPart{constructor(n){super(n),this._visibleLines=new E.VisibleLinesCollection(this),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,k.applyFontInfo)(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let n=0,s=this._dynamicOverlays.length;n<s;n++)if(this._dynamicOverlays[n].shouldRender())return!0;return!1}dispose(){super.dispose();for(let n=0,s=this._dynamicOverlays.length;n<s;n++)this._dynamicOverlays[n].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new f(this._dynamicOverlays)}addDynamicOverlay(n){this._dynamicOverlays.push(n)}onConfigurationChanged(n){this._visibleLines.onConfigurationChanged(n);const t=this._context.configuration.options.get(50);return(0,k.applyFontInfo)(this.domNode,t),!0}onFlushed(n){return this._visibleLines.onFlushed(n)}onFocusChanged(n){return this._isFocused=n.isFocused,!0}onLinesChanged(n){return this._visibleLines.onLinesChanged(n)}onLinesDeleted(n){return this._visibleLines.onLinesDeleted(n)}onLinesInserted(n){return this._visibleLines.onLinesInserted(n)}onScrollChanged(n){return this._visibleLines.onScrollChanged(n)||!0}onTokensChanged(n){return this._visibleLines.onTokensChanged(n)}onZonesChanged(n){return this._visibleLines.onZonesChanged(n)}prepareRender(n){const s=this._dynamicOverlays.filter(t=>t.shouldRender());for(let t=0,i=s.length;t<i;t++){const o=s[t];o.prepareRender(n),o.onDidRender()}}render(n){this._viewOverlaysRender(n),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(n){this._visibleLines.renderLines(n.viewportData)}}e.ViewOverlays=y;class f{constructor(n){this._dynamicOverlays=n,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(n){this._domNode=(0,c.createFastDomNode)(n)}onContentChanged(){}onTokensChanged(){}renderLine(n,s,t,i,o){let g="";for(let u=0,l=this._dynamicOverlays.length;u<l;u++){const r=this._dynamicOverlays[u];g+=r.render(i.startLineNumber,n)}return this._renderedContent===g?!1:(this._renderedContent=g,o.appendString('<div style="top:'),o.appendString(String(s)),o.appendString("px;height:"),o.appendString(String(t)),o.appendString('px;">'),o.appendString(g),o.appendString("</div>"),!0)}layoutLine(n,s,t){this._domNode&&(this._domNode.setTop(s),this._domNode.setHeight(t))}}e.ViewOverlayLine=f;class _ extends y{constructor(n){super(n);const t=this._context.configuration.options.get(146);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(n){const t=this._context.configuration.options.get(146);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(n)||!0}onScrollChanged(n){return super.onScrollChanged(n)||n.scrollWidthChanged}_viewOverlaysRender(n){super._viewOverlaysRender(n),this.domNode.setWidth(Math.max(n.scrollWidth,this._contentWidth))}}e.ContentViewOverlays=_;class v extends y{constructor(n){super(n);const s=this._context.configuration.options,t=s.get(146);this._contentLeft=t.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,k.applyFontInfo)(this.domNode,s.get(50))}onConfigurationChanged(n){const s=this._context.configuration.options;(0,k.applyFontInfo)(this.domNode,s.get(50));const t=s.get(146);return this._contentLeft=t.contentLeft,super.onConfigurationChanged(n)||!0}onScrollChanged(n){return super.onScrollChanged(n)||n.scrollHeightChanged}_viewOverlaysRender(n){super._viewOverlaysRender(n);const s=Math.min(n.scrollHeight,1e6);this.domNode.setHeight(s),this.domNode.setWidth(this._contentLeft)}}e.MarginViewOverlays=v}),define(oe[365],re([1,0,158,115]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextChange=void 0,e.compressConsecutiveTextChanges=y;function E(_){return _.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class L{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(v,p,n,s){this.oldPosition=v,this.oldText=p,this.newPosition=n,this.newText=s}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${E(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${E(this.oldText)}")`:`(replace@${this.oldPosition} "${E(this.oldText)}" with "${E(this.newText)}")`}static _writeStringSize(v){return 4+2*v.length}static _writeString(v,p,n){const s=p.length;c.writeUInt32BE(v,s,n),n+=4;for(let t=0;t<s;t++)c.writeUInt16LE(v,p.charCodeAt(t),n),n+=2;return n}static _readString(v,p){const n=c.readUInt32BE(v,p);return p+=4,(0,k.decodeUTF16LE)(v,p,n)}writeSize(){return 8+L._writeStringSize(this.oldText)+L._writeStringSize(this.newText)}write(v,p){return c.writeUInt32BE(v,this.oldPosition,p),p+=4,c.writeUInt32BE(v,this.newPosition,p),p+=4,p=L._writeString(v,this.oldText,p),p=L._writeString(v,this.newText,p),p}static read(v,p,n){const s=c.readUInt32BE(v,p);p+=4;const t=c.readUInt32BE(v,p);p+=4;const i=L._readString(v,p);p+=L._writeStringSize(i);const o=L._readString(v,p);return p+=L._writeStringSize(o),n.push(new L(s,i,t,o)),p}}e.TextChange=L;function y(_,v){return _===null||_.length===0?v:new f(_,v).compress()}class f{constructor(v,p){this._prevEdits=v,this._currEdits=p,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let v=0,p=0,n=this._getPrev(v),s=this._getCurr(p);for(;v<this._prevLen||p<this._currLen;){if(n===null){this._acceptCurr(s),s=this._getCurr(++p);continue}if(s===null){this._acceptPrev(n),n=this._getPrev(++v);continue}if(s.oldEnd<=n.newPosition){this._acceptCurr(s),s=this._getCurr(++p);continue}if(n.newEnd<=s.oldPosition){this._acceptPrev(n),n=this._getPrev(++v);continue}if(s.oldPosition<n.newPosition){const[u,l]=f._splitCurr(s,n.newPosition-s.oldPosition);this._acceptCurr(u),s=l;continue}if(n.newPosition<s.oldPosition){const[u,l]=f._splitPrev(n,s.oldPosition-n.newPosition);this._acceptPrev(u),n=l;continue}let o,g;if(s.oldEnd===n.newEnd)o=n,g=s,n=this._getPrev(++v),s=this._getCurr(++p);else if(s.oldEnd<n.newEnd){const[u,l]=f._splitPrev(n,s.oldLength);o=u,g=s,n=l,s=this._getCurr(++p)}else{const[u,l]=f._splitCurr(s,n.newLength);o=n,g=u,n=this._getPrev(++v),s=l}this._result[this._resultLen++]=new L(o.oldPosition,o.oldText,g.newPosition,g.newText),this._prevDeltaOffset+=o.newLength-o.oldLength,this._currDeltaOffset+=g.newLength-g.oldLength}const t=f._merge(this._result);return f._removeNoOps(t)}_acceptCurr(v){this._result[this._resultLen++]=f._rebaseCurr(this._prevDeltaOffset,v),this._currDeltaOffset+=v.newLength-v.oldLength}_getCurr(v){return v<this._currLen?this._currEdits[v]:null}_acceptPrev(v){this._result[this._resultLen++]=f._rebasePrev(this._currDeltaOffset,v),this._prevDeltaOffset+=v.newLength-v.oldLength}_getPrev(v){return v<this._prevLen?this._prevEdits[v]:null}static _rebaseCurr(v,p){return new L(p.oldPosition-v,p.oldText,p.newPosition,p.newText)}static _rebasePrev(v,p){return new L(p.oldPosition,p.oldText,p.newPosition+v,p.newText)}static _splitPrev(v,p){const n=v.newText.substr(0,p),s=v.newText.substr(p);return[new L(v.oldPosition,v.oldText,v.newPosition,n),new L(v.oldEnd,"",v.newPosition+p,s)]}static _splitCurr(v,p){const n=v.oldText.substr(0,p),s=v.oldText.substr(p);return[new L(v.oldPosition,n,v.newPosition,v.newText),new L(v.oldPosition+p,s,v.newEnd,"")]}static _merge(v){if(v.length===0)return v;const p=[];let n=0,s=v[0];for(let t=1;t<v.length;t++){const i=v[t];s.oldEnd===i.oldPosition?s=new L(s.oldPosition,s.oldText+i.oldText,s.newPosition,s.newText+i.newText):(p[n++]=s,s=i)}return p[n++]=s,p}static _removeNoOps(v){if(v.length===0)return v;const p=[];let n=0;for(let s=0;s<v.length;s++){const t=v[s];t.oldText!==t.newText&&(p[n++]=t)}return p}}}),define(oe[366],re([1,0,348,99]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.score=E;function E(L,y,f,_,v,p){if(Array.isArray(L)){let n=0;for(const s of L){const t=E(s,y,f,_,v,p);if(t===10)return t;t>n&&(n=t)}return n}else{if(typeof L=="string")return _?L==="*"?5:L===f?10:0:0;if(L){const{language:n,pattern:s,scheme:t,hasAccessToAllModels:i,notebookType:o}=L;if(!_&&!i)return 0;o&&v&&(y=v);let g=0;if(t)if(t===y.scheme)g=10;else if(t==="*")g=5;else return 0;if(n)if(n===f)g=10;else if(n==="*")g=Math.max(g,5);else return 0;if(o)if(o===p)g=10;else if(o==="*"&&p!==void 0)g=Math.max(g,5);else return 0;if(s){let u;if(typeof s=="string"?u=s:u={...s,base:(0,k.normalize)(s.base)},u===y.fsPath||(0,c.match)(u,y.fsPath))g=10;else return 0}return g}else return 0}}}),define(oe[653],re([1,0,6,2,40,366]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeatureRegistry=void 0;function y(p){return typeof p=="string"?!1:Array.isArray(p)?p.every(y):!!p.exclusive}class f{constructor(n,s,t,i,o){this.uri=n,this.languageId=s,this.notebookUri=t,this.notebookType=i,this.recursive=o}equals(n){return this.notebookType===n.notebookType&&this.languageId===n.languageId&&this.uri.toString()===n.uri.toString()&&this.notebookUri?.toString()===n.notebookUri?.toString()&&this.recursive===n.recursive}}class _{constructor(n){this._notebookInfoResolver=n,this._clock=0,this._entries=[],this._onDidChange=new c.Emitter,this.onDidChange=this._onDidChange.event}register(n,s){let t={selector:n,provider:s,_score:-1,_time:this._clock++};return this._entries.push(t),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,k.toDisposable)(()=>{if(t){const i=this._entries.indexOf(t);i>=0&&(this._entries.splice(i,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),t=void 0)}})}has(n){return this.all(n).length>0}all(n){if(!n)return[];this._updateScores(n,!1);const s=[];for(const t of this._entries)t._score>0&&s.push(t.provider);return s}ordered(n,s=!1){const t=[];return this._orderedForEach(n,s,i=>t.push(i.provider)),t}orderedGroups(n){const s=[];let t,i;return this._orderedForEach(n,!1,o=>{t&&i===o._score?t.push(o.provider):(i=o._score,t=[o.provider],s.push(t))}),s}_orderedForEach(n,s,t){this._updateScores(n,s);for(const i of this._entries)i._score>0&&t(i)}_updateScores(n,s){const t=this._notebookInfoResolver?.(n.uri),i=t?new f(n.uri,n.getLanguageId(),t.uri,t.type,s):new f(n.uri,n.getLanguageId(),void 0,void 0,s);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const o of this._entries)if(o._score=(0,L.score)(o.selector,i.uri,i.languageId,(0,E.shouldSynchronizeModel)(n),i.notebookUri,i.notebookType),y(o.selector)&&o._score>0)if(s)o._score=0;else{for(const g of this._entries)g._score=0;o._score=1e3;break}this._entries.sort(_._compareByScoreAndTime)}}static _compareByScoreAndTime(n,s){return n._score<s._score?1:n._score>s._score?-1:v(n.selector)&&!v(s.selector)?1:!v(n.selector)&&v(s.selector)?-1:n._time<s._time?1:n._time>s._time?-1:0}}e.LanguageFeatureRegistry=_;function v(p){return typeof p=="string"?!1:Array.isArray(p)?p.some(v):!!p.isBuiltin}}),define(oe[28],re([1,0,26,22,4,581,3]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineEditTriggerKind=e.TokenizationRegistry=e.LazyTokenizationSupport=e.InlayHintKind=e.Command=e.NewSymbolNameTriggerKind=e.NewSymbolNameTag=e.FoldingRangeKind=e.TextEdit=e.SymbolKinds=e.symbolKindNames=e.DocumentHighlightKind=e.SignatureHelpTriggerKind=e.DocumentPasteTriggerKind=e.SelectedSuggestionInfo=e.InlineCompletionTriggerKind=e.CompletionItemKinds=e.HoverVerbosityAction=e.EncodedTokenizationResult=e.TokenizationResult=e.Token=void 0,e.isLocationLink=u,e.getAriaLabelForSymbol=l;class f{constructor(I,T,M){this.offset=I,this.type=T,this.language=M,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}e.Token=f;class _{constructor(I,T){this.tokens=I,this.endState=T,this._tokenizationResultBrand=void 0}}e.TokenizationResult=_;class v{constructor(I,T){this.tokens=I,this.endState=T,this._encodedTokenizationResultBrand=void 0}}e.EncodedTokenizationResult=v;var p;(function(D){D[D.Increase=0]="Increase",D[D.Decrease=1]="Decrease"})(p||(e.HoverVerbosityAction=p={}));var n;(function(D){const I=new Map;I.set(0,c.Codicon.symbolMethod),I.set(1,c.Codicon.symbolFunction),I.set(2,c.Codicon.symbolConstructor),I.set(3,c.Codicon.symbolField),I.set(4,c.Codicon.symbolVariable),I.set(5,c.Codicon.symbolClass),I.set(6,c.Codicon.symbolStruct),I.set(7,c.Codicon.symbolInterface),I.set(8,c.Codicon.symbolModule),I.set(9,c.Codicon.symbolProperty),I.set(10,c.Codicon.symbolEvent),I.set(11,c.Codicon.symbolOperator),I.set(12,c.Codicon.symbolUnit),I.set(13,c.Codicon.symbolValue),I.set(15,c.Codicon.symbolEnum),I.set(14,c.Codicon.symbolConstant),I.set(15,c.Codicon.symbolEnum),I.set(16,c.Codicon.symbolEnumMember),I.set(17,c.Codicon.symbolKeyword),I.set(27,c.Codicon.symbolSnippet),I.set(18,c.Codicon.symbolText),I.set(19,c.Codicon.symbolColor),I.set(20,c.Codicon.symbolFile),I.set(21,c.Codicon.symbolReference),I.set(22,c.Codicon.symbolCustomColor),I.set(23,c.Codicon.symbolFolder),I.set(24,c.Codicon.symbolTypeParameter),I.set(25,c.Codicon.account),I.set(26,c.Codicon.issues);function T(R){let N=I.get(R);return N||(console.info("No codicon found for CompletionItemKind "+R),N=c.Codicon.symbolProperty),N}D.toIcon=T;const M=new Map;M.set("method",0),M.set("function",1),M.set("constructor",2),M.set("field",3),M.set("variable",4),M.set("class",5),M.set("struct",6),M.set("interface",7),M.set("module",8),M.set("property",9),M.set("event",10),M.set("operator",11),M.set("unit",12),M.set("value",13),M.set("constant",14),M.set("enum",15),M.set("enum-member",16),M.set("enumMember",16),M.set("keyword",17),M.set("snippet",27),M.set("text",18),M.set("color",19),M.set("file",20),M.set("reference",21),M.set("customcolor",22),M.set("folder",23),M.set("type-parameter",24),M.set("typeParameter",24),M.set("account",25),M.set("issue",26);function A(R,N){let O=M.get(R);return typeof O>"u"&&!N&&(O=9),O}D.fromString=A})(n||(e.CompletionItemKinds=n={}));var s;(function(D){D[D.Automatic=0]="Automatic",D[D.Explicit=1]="Explicit"})(s||(e.InlineCompletionTriggerKind=s={}));class t{constructor(I,T,M,A){this.range=I,this.text=T,this.completionKind=M,this.isSnippetText=A}equals(I){return E.Range.lift(this.range).equalsRange(I.range)&&this.text===I.text&&this.completionKind===I.completionKind&&this.isSnippetText===I.isSnippetText}}e.SelectedSuggestionInfo=t;var i;(function(D){D[D.Automatic=0]="Automatic",D[D.PasteAs=1]="PasteAs"})(i||(e.DocumentPasteTriggerKind=i={}));var o;(function(D){D[D.Invoke=1]="Invoke",D[D.TriggerCharacter=2]="TriggerCharacter",D[D.ContentChange=3]="ContentChange"})(o||(e.SignatureHelpTriggerKind=o={}));var g;(function(D){D[D.Text=0]="Text",D[D.Read=1]="Read",D[D.Write=2]="Write"})(g||(e.DocumentHighlightKind=g={}));function u(D){return D&&k.URI.isUri(D.uri)&&E.Range.isIRange(D.range)&&(E.Range.isIRange(D.originSelectionRange)||E.Range.isIRange(D.targetSelectionRange))}e.symbolKindNames={17:(0,y.localize)(1748,"array"),16:(0,y.localize)(1749,"boolean"),4:(0,y.localize)(1750,"class"),13:(0,y.localize)(1751,"constant"),8:(0,y.localize)(1752,"constructor"),9:(0,y.localize)(1753,"enumeration"),21:(0,y.localize)(1754,"enumeration member"),23:(0,y.localize)(1755,"event"),7:(0,y.localize)(1756,"field"),0:(0,y.localize)(1757,"file"),11:(0,y.localize)(1758,"function"),10:(0,y.localize)(1759,"interface"),19:(0,y.localize)(1760,"key"),5:(0,y.localize)(1761,"method"),1:(0,y.localize)(1762,"module"),2:(0,y.localize)(1763,"namespace"),20:(0,y.localize)(1764,"null"),15:(0,y.localize)(1765,"number"),18:(0,y.localize)(1766,"object"),24:(0,y.localize)(1767,"operator"),3:(0,y.localize)(1768,"package"),6:(0,y.localize)(1769,"property"),14:(0,y.localize)(1770,"string"),22:(0,y.localize)(1771,"struct"),25:(0,y.localize)(1772,"type parameter"),12:(0,y.localize)(1773,"variable")};function l(D,I){return(0,y.localize)(1774,"{0} ({1})",D,e.symbolKindNames[I])}var r;(function(D){const I=new Map;I.set(0,c.Codicon.symbolFile),I.set(1,c.Codicon.symbolModule),I.set(2,c.Codicon.symbolNamespace),I.set(3,c.Codicon.symbolPackage),I.set(4,c.Codicon.symbolClass),I.set(5,c.Codicon.symbolMethod),I.set(6,c.Codicon.symbolProperty),I.set(7,c.Codicon.symbolField),I.set(8,c.Codicon.symbolConstructor),I.set(9,c.Codicon.symbolEnum),I.set(10,c.Codicon.symbolInterface),I.set(11,c.Codicon.symbolFunction),I.set(12,c.Codicon.symbolVariable),I.set(13,c.Codicon.symbolConstant),I.set(14,c.Codicon.symbolString),I.set(15,c.Codicon.symbolNumber),I.set(16,c.Codicon.symbolBoolean),I.set(17,c.Codicon.symbolArray),I.set(18,c.Codicon.symbolObject),I.set(19,c.Codicon.symbolKey),I.set(20,c.Codicon.symbolNull),I.set(21,c.Codicon.symbolEnumMember),I.set(22,c.Codicon.symbolStruct),I.set(23,c.Codicon.symbolEvent),I.set(24,c.Codicon.symbolOperator),I.set(25,c.Codicon.symbolTypeParameter);function T(M){let A=I.get(M);return A||(console.info("No codicon found for SymbolKind "+M),A=c.Codicon.symbolProperty),A}D.toIcon=T})(r||(e.SymbolKinds=r={}));class a{}e.TextEdit=a;class d{static{this.Comment=new d("comment")}static{this.Imports=new d("imports")}static{this.Region=new d("region")}static fromValue(I){switch(I){case"comment":return d.Comment;case"imports":return d.Imports;case"region":return d.Region}return new d(I)}constructor(I){this.value=I}}e.FoldingRangeKind=d;var m;(function(D){D[D.AIGenerated=1]="AIGenerated"})(m||(e.NewSymbolNameTag=m={}));var h;(function(D){D[D.Invoke=0]="Invoke",D[D.Automatic=1]="Automatic"})(h||(e.NewSymbolNameTriggerKind=h={}));var C;(function(D){function I(T){return!T||typeof T!="object"?!1:typeof T.id=="string"&&typeof T.title=="string"}D.is=I})(C||(e.Command=C={}));var b;(function(D){D[D.Type=1]="Type",D[D.Parameter=2]="Parameter"})(b||(e.InlayHintKind=b={}));class w{constructor(I){this.createSupport=I,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(I=>{I&&I.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}e.LazyTokenizationSupport=w,e.TokenizationRegistry=new L.TokenizationRegistry;var S;(function(D){D[D.Invoke=0]="Invoke",D[D.Automatic=1]="Automatic"})(S||(e.InlineEditTriggerKind=S={}))}),define(oe[176],re([1,0,28]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullState=void 0,e.nullTokenize=k,e.nullTokenizeEncoded=E,e.NullState=new class{clone(){return this}equals(L){return this===L}};function k(L,y){return new c.TokenizationResult([new c.Token(0,"",L)],y)}function E(L,y){const f=new Uint32Array(2);return f[0]=0,f[1]=(L<<0|0|0|32768|2<<24)>>>0,new c.EncodedTokenizationResult(f,y===null?e.NullState:y)}}),define(oe[207],re([1,0,11,115,4]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketsUtils=e.RichEditBrackets=e.RichEditBracket=void 0,e.createBracketOrRegExp=g;class L{constructor(a,d,m,h,C,b){this._richEditBracketBrand=void 0,this.languageId=a,this.index=d,this.open=m,this.close=h,this.forwardRegex=C,this.reversedRegex=b,this._openSet=L._toSet(this.open),this._closeSet=L._toSet(this.close)}isOpen(a){return this._openSet.has(a)}isClose(a){return this._closeSet.has(a)}static _toSet(a){const d=new Set;for(const m of a)d.add(m);return d}}e.RichEditBracket=L;function y(r){const a=r.length;r=r.map(b=>[b[0].toLowerCase(),b[1].toLowerCase()]);const d=[];for(let b=0;b<a;b++)d[b]=b;const m=(b,w)=>{const[S,D]=b,[I,T]=w;return S===I||S===T||D===I||D===T},h=(b,w)=>{const S=Math.min(b,w),D=Math.max(b,w);for(let I=0;I<a;I++)d[I]===D&&(d[I]=S)};for(let b=0;b<a;b++){const w=r[b];for(let S=b+1;S<a;S++){const D=r[S];m(w,D)&&h(d[b],d[S])}}const C=[];for(let b=0;b<a;b++){const w=[],S=[];for(let D=0;D<a;D++)if(d[D]===b){const[I,T]=r[D];w.push(I),S.push(T)}w.length>0&&C.push({open:w,close:S})}return C}class f{constructor(a,d){this._richEditBracketsBrand=void 0;const m=y(d);this.brackets=m.map((h,C)=>new L(a,C,h.open,h.close,n(h.open,h.close,m,C),s(h.open,h.close,m,C))),this.forwardRegex=t(this.brackets),this.reversedRegex=i(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const h of this.brackets){for(const C of h.open)this.textIsBracket[C]=h,this.textIsOpenBracket[C]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,C.length);for(const C of h.close)this.textIsBracket[C]=h,this.textIsOpenBracket[C]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,C.length)}}}e.RichEditBrackets=f;function _(r,a,d,m){for(let h=0,C=a.length;h<C;h++){if(h===d)continue;const b=a[h];for(const w of b.open)w.indexOf(r)>=0&&m.push(w);for(const w of b.close)w.indexOf(r)>=0&&m.push(w)}}function v(r,a){return r.length-a.length}function p(r){if(r.length<=1)return r;const a=[],d=new Set;for(const m of r)d.has(m)||(a.push(m),d.add(m));return a}function n(r,a,d,m){let h=[];h=h.concat(r),h=h.concat(a);for(let C=0,b=h.length;C<b;C++)_(h[C],d,m,h);return h=p(h),h.sort(v),h.reverse(),g(h)}function s(r,a,d,m){let h=[];h=h.concat(r),h=h.concat(a);for(let C=0,b=h.length;C<b;C++)_(h[C],d,m,h);return h=p(h),h.sort(v),h.reverse(),g(h.map(u))}function t(r){let a=[];for(const d of r){for(const m of d.open)a.push(m);for(const m of d.close)a.push(m)}return a=p(a),g(a)}function i(r){let a=[];for(const d of r){for(const m of d.open)a.push(m);for(const m of d.close)a.push(m)}return a=p(a),g(a.map(u))}function o(r){const a=/^[\w ]+$/.test(r);return r=c.escapeRegExpCharacters(r),a?`\\b${r}\\b`:r}function g(r,a){const d=`(${r.map(o).join(")|(")})`;return c.createRegExp(d,!0,a)}const u=function(){function r(m){const h=new Uint16Array(m.length);let C=0;for(let b=m.length-1;b>=0;b--)h[C++]=m.charCodeAt(b);return k.getPlatformTextDecoder().decode(h)}let a=null,d=null;return function(h){return a!==h&&(a=h,d=r(a)),d}}();class l{static _findPrevBracketInText(a,d,m,h){const C=m.match(a);if(!C)return null;const b=m.length-(C.index||0),w=C[0].length,S=h+b;return new E.Range(d,S-w+1,d,S+1)}static findPrevBracketInRange(a,d,m,h,C){const w=u(m).substring(m.length-C,m.length-h);return this._findPrevBracketInText(a,d,w,h)}static findNextBracketInText(a,d,m,h){const C=m.match(a);if(!C)return null;const b=C.index||0,w=C[0].length;if(w===0)return null;const S=h+b;return new E.Range(d,S+1,d,S+1+w)}static findNextBracketInRange(a,d,m,h,C){const b=m.substring(h,C);return this.findNextBracketInText(a,d,b,h)}}e.BracketsUtils=l}),define(oe[654],re([1,0,13,168,207]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketElectricCharacterSupport=void 0;class L{constructor(f){this._richEditBrackets=f}getElectricCharacters(){const f=[];if(this._richEditBrackets)for(const _ of this._richEditBrackets.brackets)for(const v of _.close){const p=v.charAt(v.length-1);f.push(p)}return(0,c.distinct)(f)}onElectricCharacter(f,_,v){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const p=_.findTokenIndexAtOffset(v-1);if((0,k.ignoreBracketsInToken)(_.getStandardTokenType(p)))return null;const n=this._richEditBrackets.reversedRegex,s=_.getLineContent().substring(0,v-1)+f,t=E.BracketsUtils.findPrevBracketInRange(n,1,s,0,s.length);if(!t)return null;const i=s.substring(t.startColumn-1,t.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[i])return null;const g=_.getActualLineContentBefore(t.startColumn-1);return/^\s*$/.test(g)?{matchOpenBracket:i}:null}}e.BracketElectricCharacterSupport=L}),define(oe[655],re([1,0,296,207]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClosingBracketKind=e.OpeningBracketKind=e.BracketKindBase=e.LanguageBracketsConfiguration=void 0;class E{constructor(p,n){this.languageId=p;const s=n.brackets?L(n.brackets):[],t=new c.CachedFunction(g=>{const u=new Set;return{info:new f(this,g,u),closing:u}}),i=new c.CachedFunction(g=>{const u=new Set,l=new Set;return{info:new _(this,g,u,l),opening:u,openingColorized:l}});for(const[g,u]of s){const l=t.get(g),r=i.get(u);l.closing.add(r.info),r.opening.add(l.info)}const o=n.colorizedBracketPairs?L(n.colorizedBracketPairs):s.filter(g=>!(g[0]==="<"&&g[1]===">"));for(const[g,u]of o){const l=t.get(g),r=i.get(u);l.closing.add(r.info),r.openingColorized.add(l.info),r.opening.add(l.info)}this._openingBrackets=new Map([...t.cachedValues].map(([g,u])=>[g,u.info])),this._closingBrackets=new Map([...i.cachedValues].map(([g,u])=>[g,u.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(p){return this._openingBrackets.get(p)}getClosingBracketInfo(p){return this._closingBrackets.get(p)}getBracketInfo(p){return this.getOpeningBracketInfo(p)||this.getClosingBracketInfo(p)}getBracketRegExp(p){const n=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,k.createBracketOrRegExp)(n,p)}}e.LanguageBracketsConfiguration=E;function L(v){return v.filter(([p,n])=>p!==""&&n!=="")}class y{constructor(p,n){this.config=p,this.bracketText=n}get languageId(){return this.config.languageId}}e.BracketKindBase=y;class f extends y{constructor(p,n,s){super(p,n),this.openedBrackets=s,this.isOpeningBracket=!0}}e.OpeningBracketKind=f;class _ extends y{constructor(p,n,s,t){super(p,n),this.openingBrackets=s,this.openingColorizedBrackets=t,this.isOpeningBracket=!1}closes(p){return p.config!==this.config?!1:this.openingBrackets.has(p)}closesColorized(p){return p.config!==this.config?!1:this.openingColorizedBrackets.has(p)}getOpeningBrackets(){return[...this.openingBrackets]}}e.ClosingBracketKind=_}),define(oe[367],re([1,0,11,94,28,176]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tokenizeToString=f,e.tokenizeLineToHTML=_,e._tokenizeToString=v;const y={getInitialState:()=>L.NullState,tokenizeEncoded:(p,n,s)=>(0,L.nullTokenizeEncoded)(0,s)};async function f(p,n,s){if(!s)return v(n,p.languageIdCodec,y);const t=await E.TokenizationRegistry.getOrCreate(s);return v(n,p.languageIdCodec,t||y)}function _(p,n,s,t,i,o,g){let u="<div>",l=t,r=0,a=!0;for(let d=0,m=n.getCount();d<m;d++){const h=n.getEndOffset(d);if(h<=t)continue;let C="";for(;l<h&&l<i;l++){const b=p.charCodeAt(l);switch(b){case 9:{let w=o-(l+r)%o;for(r+=w-1;w>0;)g&&a?(C+=" ",a=!1):(C+=" ",a=!0),w--;break}case 60:C+="<",a=!1;break;case 62:C+=">",a=!1;break;case 38:C+="&",a=!1;break;case 0:C+="�",a=!1;break;case 65279:case 8232:case 8233:case 133:C+="\uFFFD",a=!1;break;case 13:C+="​",a=!1;break;case 32:g&&a?(C+=" ",a=!1):(C+=" ",a=!0);break;default:C+=String.fromCharCode(b),a=!1}}if(u+=`<span style="${n.getInlineStyle(d,s)}">${C}</span>`,h>i||l>=i)break}return u+="</div>",u}function v(p,n,s){let t='<div class="monaco-tokenized-source">';const i=c.splitLines(p);let o=s.getInitialState();for(let g=0,u=i.length;g<u;g++){const l=i[g];g>0&&(t+="<br/>");const r=s.tokenizeEncoded(l,!0,o);k.LineTokens.convertToEndOffset(r.tokens,l.length);const d=new k.LineTokens(r.tokens,l,n).inflate();let m=0;for(let h=0,C=d.getCount();h<C;h++){const b=d.getClassName(h),w=d.getEndOffset(h);t+=`<span class="${b}">${c.escape(l.substring(m,w))}</span>`,m=w}o=r.endState}return t+="</div>",t}}),define(oe[656],re([1,0,13,6,2,4,168,207,580]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketPairsTextModelPart=void 0;class v extends E.Disposable{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(o,g){super(),this.textModel=o,this.languageConfigurationService=g,this.bracketPairsTree=this._register(new E.MutableDisposable),this.onDidChangeEmitter=new k.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(o){(!o.languageId||this.bracketPairsTree.value?.object.didLanguageChange(o.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(o){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(o){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(o){this.bracketPairsTree.value?.object.handleContentChanged(o)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(o){this.bracketPairsTree.value?.object.handleDidChangeTokens(o)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const o=new E.DisposableStore;this.bracketPairsTree.value=p(o.add(new _.BracketPairsTree(this.textModel,g=>this.languageConfigurationService.getLanguageConfiguration(g))),o),o.add(this.bracketPairsTree.value.object.onDidChange(g=>this.onDidChangeEmitter.fire(g))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(o){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(o,!1)||c.CallbackIterable.empty}getBracketPairsInRangeWithMinIndentation(o){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(o,!0)||c.CallbackIterable.empty}getBracketsInRange(o,g=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(o,g)||c.CallbackIterable.empty}findMatchingBracketUp(o,g,u){const l=this.textModel.validatePosition(g),r=this.textModel.getLanguageIdAtPosition(l.lineNumber,l.column);if(this.canBuildAST){const a=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(o);if(!a)return null;const d=this.getBracketPairsInRange(L.Range.fromPositions(g,g)).findLast(m=>a.closes(m.openingBracketInfo));return d?d.openingBracketRange:null}else{const a=o.toLowerCase(),d=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!d)return null;const m=d.textIsBracket[a];return m?t(this._findMatchingBracketUp(m,l,n(u))):null}}matchBracket(o,g){if(this.canBuildAST){const u=this.getBracketPairsInRange(L.Range.fromPositions(o,o)).filter(l=>l.closingBracketRange!==void 0&&(l.openingBracketRange.containsPosition(o)||l.closingBracketRange.containsPosition(o))).findLastMaxBy((0,c.compareBy)(l=>l.openingBracketRange.containsPosition(o)?l.openingBracketRange:l.closingBracketRange,L.Range.compareRangesUsingStarts));return u?[u.openingBracketRange,u.closingBracketRange]:null}else{const u=n(g);return this._matchBracket(this.textModel.validatePosition(o),u)}}_establishBracketSearchOffsets(o,g,u,l){const r=g.getCount(),a=g.getLanguageId(l);let d=Math.max(0,o.column-1-u.maxBracketLength);for(let h=l-1;h>=0;h--){const C=g.getEndOffset(h);if(C<=d)break;if((0,y.ignoreBracketsInToken)(g.getStandardTokenType(h))||g.getLanguageId(h)!==a){d=C;break}}let m=Math.min(g.getLineContent().length,o.column-1+u.maxBracketLength);for(let h=l+1;h<r;h++){const C=g.getStartOffset(h);if(C>=m)break;if((0,y.ignoreBracketsInToken)(g.getStandardTokenType(h))||g.getLanguageId(h)!==a){m=C;break}}return{searchStartOffset:d,searchEndOffset:m}}_matchBracket(o,g){const u=o.lineNumber,l=this.textModel.tokenization.getLineTokens(u),r=this.textModel.getLineContent(u),a=l.findTokenIndexAtOffset(o.column-1);if(a<0)return null;const d=this.languageConfigurationService.getLanguageConfiguration(l.getLanguageId(a)).brackets;if(d&&!(0,y.ignoreBracketsInToken)(l.getStandardTokenType(a))){let{searchStartOffset:m,searchEndOffset:h}=this._establishBracketSearchOffsets(o,l,d,a),C=null;for(;;){const b=f.BracketsUtils.findNextBracketInRange(d.forwardRegex,u,r,m,h);if(!b)break;if(b.startColumn<=o.column&&o.column<=b.endColumn){const w=r.substring(b.startColumn-1,b.endColumn-1).toLowerCase(),S=this._matchFoundBracket(b,d.textIsBracket[w],d.textIsOpenBracket[w],g);if(S){if(S instanceof s)return null;C=S}}m=b.endColumn-1}if(C)return C}if(a>0&&l.getStartOffset(a)===o.column-1){const m=a-1,h=this.languageConfigurationService.getLanguageConfiguration(l.getLanguageId(m)).brackets;if(h&&!(0,y.ignoreBracketsInToken)(l.getStandardTokenType(m))){const{searchStartOffset:C,searchEndOffset:b}=this._establishBracketSearchOffsets(o,l,h,m),w=f.BracketsUtils.findPrevBracketInRange(h.reversedRegex,u,r,C,b);if(w&&w.startColumn<=o.column&&o.column<=w.endColumn){const S=r.substring(w.startColumn-1,w.endColumn-1).toLowerCase(),D=this._matchFoundBracket(w,h.textIsBracket[S],h.textIsOpenBracket[S],g);if(D)return D instanceof s?null:D}}}return null}_matchFoundBracket(o,g,u,l){if(!g)return null;const r=u?this._findMatchingBracketDown(g,o.getEndPosition(),l):this._findMatchingBracketUp(g,o.getStartPosition(),l);return r?r instanceof s?r:[o,r]:null}_findMatchingBracketUp(o,g,u){const l=o.languageId,r=o.reversedRegex;let a=-1,d=0;const m=(h,C,b,w)=>{for(;;){if(u&&++d%100===0&&!u())return s.INSTANCE;const S=f.BracketsUtils.findPrevBracketInRange(r,h,C,b,w);if(!S)break;const D=C.substring(S.startColumn-1,S.endColumn-1).toLowerCase();if(o.isOpen(D)?a++:o.isClose(D)&&a--,a===0)return S;w=S.startColumn-1}return null};for(let h=g.lineNumber;h>=1;h--){const C=this.textModel.tokenization.getLineTokens(h),b=C.getCount(),w=this.textModel.getLineContent(h);let S=b-1,D=w.length,I=w.length;h===g.lineNumber&&(S=C.findTokenIndexAtOffset(g.column-1),D=g.column-1,I=g.column-1);let T=!0;for(;S>=0;S--){const M=C.getLanguageId(S)===l&&!(0,y.ignoreBracketsInToken)(C.getStandardTokenType(S));if(M)T?D=C.getStartOffset(S):(D=C.getStartOffset(S),I=C.getEndOffset(S));else if(T&&D!==I){const A=m(h,w,D,I);if(A)return A}T=M}if(T&&D!==I){const M=m(h,w,D,I);if(M)return M}}return null}_findMatchingBracketDown(o,g,u){const l=o.languageId,r=o.forwardRegex;let a=1,d=0;const m=(C,b,w,S)=>{for(;;){if(u&&++d%100===0&&!u())return s.INSTANCE;const D=f.BracketsUtils.findNextBracketInRange(r,C,b,w,S);if(!D)break;const I=b.substring(D.startColumn-1,D.endColumn-1).toLowerCase();if(o.isOpen(I)?a++:o.isClose(I)&&a--,a===0)return D;w=D.endColumn-1}return null},h=this.textModel.getLineCount();for(let C=g.lineNumber;C<=h;C++){const b=this.textModel.tokenization.getLineTokens(C),w=b.getCount(),S=this.textModel.getLineContent(C);let D=0,I=0,T=0;C===g.lineNumber&&(D=b.findTokenIndexAtOffset(g.column-1),I=g.column-1,T=g.column-1);let M=!0;for(;D<w;D++){const A=b.getLanguageId(D)===l&&!(0,y.ignoreBracketsInToken)(b.getStandardTokenType(D));if(A)M||(I=b.getStartOffset(D)),T=b.getEndOffset(D);else if(M&&I!==T){const R=m(C,S,I,T);if(R)return R}M=A}if(M&&I!==T){const A=m(C,S,I,T);if(A)return A}}return null}findPrevBracket(o){const g=this.textModel.validatePosition(o);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(g)||null;let u=null,l=null,r=null;for(let a=g.lineNumber;a>=1;a--){const d=this.textModel.tokenization.getLineTokens(a),m=d.getCount(),h=this.textModel.getLineContent(a);let C=m-1,b=h.length,w=h.length;if(a===g.lineNumber){C=d.findTokenIndexAtOffset(g.column-1),b=g.column-1,w=g.column-1;const D=d.getLanguageId(C);u!==D&&(u=D,l=this.languageConfigurationService.getLanguageConfiguration(u).brackets,r=this.languageConfigurationService.getLanguageConfiguration(u).bracketsNew)}let S=!0;for(;C>=0;C--){const D=d.getLanguageId(C);if(u!==D){if(l&&r&&S&&b!==w){const T=f.BracketsUtils.findPrevBracketInRange(l.reversedRegex,a,h,b,w);if(T)return this._toFoundBracket(r,T);S=!1}u=D,l=this.languageConfigurationService.getLanguageConfiguration(u).brackets,r=this.languageConfigurationService.getLanguageConfiguration(u).bracketsNew}const I=!!l&&!(0,y.ignoreBracketsInToken)(d.getStandardTokenType(C));if(I)S?b=d.getStartOffset(C):(b=d.getStartOffset(C),w=d.getEndOffset(C));else if(r&&l&&S&&b!==w){const T=f.BracketsUtils.findPrevBracketInRange(l.reversedRegex,a,h,b,w);if(T)return this._toFoundBracket(r,T)}S=I}if(r&&l&&S&&b!==w){const D=f.BracketsUtils.findPrevBracketInRange(l.reversedRegex,a,h,b,w);if(D)return this._toFoundBracket(r,D)}}return null}findNextBracket(o){const g=this.textModel.validatePosition(o);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(g)||null;const u=this.textModel.getLineCount();let l=null,r=null,a=null;for(let d=g.lineNumber;d<=u;d++){const m=this.textModel.tokenization.getLineTokens(d),h=m.getCount(),C=this.textModel.getLineContent(d);let b=0,w=0,S=0;if(d===g.lineNumber){b=m.findTokenIndexAtOffset(g.column-1),w=g.column-1,S=g.column-1;const I=m.getLanguageId(b);l!==I&&(l=I,r=this.languageConfigurationService.getLanguageConfiguration(l).brackets,a=this.languageConfigurationService.getLanguageConfiguration(l).bracketsNew)}let D=!0;for(;b<h;b++){const I=m.getLanguageId(b);if(l!==I){if(a&&r&&D&&w!==S){const M=f.BracketsUtils.findNextBracketInRange(r.forwardRegex,d,C,w,S);if(M)return this._toFoundBracket(a,M);D=!1}l=I,r=this.languageConfigurationService.getLanguageConfiguration(l).brackets,a=this.languageConfigurationService.getLanguageConfiguration(l).bracketsNew}const T=!!r&&!(0,y.ignoreBracketsInToken)(m.getStandardTokenType(b));if(T)D||(w=m.getStartOffset(b)),S=m.getEndOffset(b);else if(a&&r&&D&&w!==S){const M=f.BracketsUtils.findNextBracketInRange(r.forwardRegex,d,C,w,S);if(M)return this._toFoundBracket(a,M)}D=T}if(a&&r&&D&&w!==S){const I=f.BracketsUtils.findNextBracketInRange(r.forwardRegex,d,C,w,S);if(I)return this._toFoundBracket(a,I)}}return null}findEnclosingBrackets(o,g){const u=this.textModel.validatePosition(o);if(this.canBuildAST){const S=L.Range.fromPositions(u),D=this.getBracketPairsInRange(L.Range.fromPositions(u,u)).findLast(I=>I.closingBracketRange!==void 0&&I.range.strictContainsRange(S));return D?[D.openingBracketRange,D.closingBracketRange]:null}const l=n(g),r=this.textModel.getLineCount(),a=new Map;let d=[];const m=(S,D)=>{if(!a.has(S)){const I=[];for(let T=0,M=D?D.brackets.length:0;T<M;T++)I[T]=0;a.set(S,I)}d=a.get(S)};let h=0;const C=(S,D,I,T,M)=>{for(;;){if(l&&++h%100===0&&!l())return s.INSTANCE;const A=f.BracketsUtils.findNextBracketInRange(S.forwardRegex,D,I,T,M);if(!A)break;const R=I.substring(A.startColumn-1,A.endColumn-1).toLowerCase(),N=S.textIsBracket[R];if(N&&(N.isOpen(R)?d[N.index]++:N.isClose(R)&&d[N.index]--,d[N.index]===-1))return this._matchFoundBracket(A,N,!1,l);T=A.endColumn-1}return null};let b=null,w=null;for(let S=u.lineNumber;S<=r;S++){const D=this.textModel.tokenization.getLineTokens(S),I=D.getCount(),T=this.textModel.getLineContent(S);let M=0,A=0,R=0;if(S===u.lineNumber){M=D.findTokenIndexAtOffset(u.column-1),A=u.column-1,R=u.column-1;const O=D.getLanguageId(M);b!==O&&(b=O,w=this.languageConfigurationService.getLanguageConfiguration(b).brackets,m(b,w))}let N=!0;for(;M<I;M++){const O=D.getLanguageId(M);if(b!==O){if(w&&N&&A!==R){const F=C(w,S,T,A,R);if(F)return t(F);N=!1}b=O,w=this.languageConfigurationService.getLanguageConfiguration(b).brackets,m(b,w)}const x=!!w&&!(0,y.ignoreBracketsInToken)(D.getStandardTokenType(M));if(x)N||(A=D.getStartOffset(M)),R=D.getEndOffset(M);else if(w&&N&&A!==R){const F=C(w,S,T,A,R);if(F)return t(F)}N=x}if(w&&N&&A!==R){const O=C(w,S,T,A,R);if(O)return t(O)}}return null}_toFoundBracket(o,g){if(!g)return null;let u=this.textModel.getValueInRange(g);u=u.toLowerCase();const l=o.getBracketInfo(u);return l?{range:g,bracketInfo:l}:null}}e.BracketPairsTextModelPart=v;function p(i,o){return{object:i,dispose:()=>o?.dispose()}}function n(i){if(typeof i>"u")return()=>!0;{const o=Date.now();return()=>Date.now()-o<=i}}class s{static{this.INSTANCE=new s}constructor(){this._searchCanceledBrand=void 0}}function t(i){return i instanceof s?null:i}}),define(oe[368],re([1,0,3,8,23,22,365,158,51]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditStack=e.MultiModelEditStackElement=e.SingleModelEditStackElement=e.SingleModelEditStackData=void 0,e.isEditStackElement=i;function v(g){return g.toString()}class p{static create(u,l){const r=u.getAlternativeVersionId(),a=t(u);return new p(r,r,a,a,l,l,[])}constructor(u,l,r,a,d,m,h){this.beforeVersionId=u,this.afterVersionId=l,this.beforeEOL=r,this.afterEOL=a,this.beforeCursorState=d,this.afterCursorState=m,this.changes=h}append(u,l,r,a,d){l.length>0&&(this.changes=(0,y.compressConsecutiveTextChanges)(this.changes,l)),this.afterEOL=r,this.afterVersionId=a,this.afterCursorState=d}static _writeSelectionsSize(u){return 4+4*4*(u?u.length:0)}static _writeSelections(u,l,r){if(f.writeUInt32BE(u,l?l.length:0,r),r+=4,l)for(const a of l)f.writeUInt32BE(u,a.selectionStartLineNumber,r),r+=4,f.writeUInt32BE(u,a.selectionStartColumn,r),r+=4,f.writeUInt32BE(u,a.positionLineNumber,r),r+=4,f.writeUInt32BE(u,a.positionColumn,r),r+=4;return r}static _readSelections(u,l,r){const a=f.readUInt32BE(u,l);l+=4;for(let d=0;d<a;d++){const m=f.readUInt32BE(u,l);l+=4;const h=f.readUInt32BE(u,l);l+=4;const C=f.readUInt32BE(u,l);l+=4;const b=f.readUInt32BE(u,l);l+=4,r.push(new E.Selection(m,h,C,b))}return l}serialize(){let u=10+p._writeSelectionsSize(this.beforeCursorState)+p._writeSelectionsSize(this.afterCursorState)+4;for(const a of this.changes)u+=a.writeSize();const l=new Uint8Array(u);let r=0;f.writeUInt32BE(l,this.beforeVersionId,r),r+=4,f.writeUInt32BE(l,this.afterVersionId,r),r+=4,f.writeUInt8(l,this.beforeEOL,r),r+=1,f.writeUInt8(l,this.afterEOL,r),r+=1,r=p._writeSelections(l,this.beforeCursorState,r),r=p._writeSelections(l,this.afterCursorState,r),f.writeUInt32BE(l,this.changes.length,r),r+=4;for(const a of this.changes)r=a.write(l,r);return l.buffer}static deserialize(u){const l=new Uint8Array(u);let r=0;const a=f.readUInt32BE(l,r);r+=4;const d=f.readUInt32BE(l,r);r+=4;const m=f.readUInt8(l,r);r+=1;const h=f.readUInt8(l,r);r+=1;const C=[];r=p._readSelections(l,r,C);const b=[];r=p._readSelections(l,r,b);const w=f.readUInt32BE(l,r);r+=4;const S=[];for(let D=0;D<w;D++)r=y.TextChange.read(l,r,S);return new p(a,d,m,h,C,b,S)}}e.SingleModelEditStackData=p;class n{get type(){return 0}get resource(){return L.URI.isUri(this.model)?this.model:this.model.uri}constructor(u,l,r,a){this.label=u,this.code=l,this.model=r,this._data=p.create(r,a)}toString(){return(this._data instanceof p?this._data:p.deserialize(this._data)).changes.map(l=>l.toString()).join(", ")}matchesResource(u){return(L.URI.isUri(this.model)?this.model:this.model.uri).toString()===u.toString()}setModel(u){this.model=u}canAppend(u){return this.model===u&&this._data instanceof p}append(u,l,r,a,d){this._data instanceof p&&this._data.append(u,l,r,a,d)}close(){this._data instanceof p&&(this._data=this._data.serialize())}open(){this._data instanceof p||(this._data=p.deserialize(this._data))}undo(){if(L.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof p&&(this._data=this._data.serialize());const u=p.deserialize(this._data);this.model._applyUndo(u.changes,u.beforeEOL,u.beforeVersionId,u.beforeCursorState)}redo(){if(L.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof p&&(this._data=this._data.serialize());const u=p.deserialize(this._data);this.model._applyRedo(u.changes,u.afterEOL,u.afterVersionId,u.afterCursorState)}heapSize(){return this._data instanceof p&&(this._data=this._data.serialize()),this._data.byteLength+168}}e.SingleModelEditStackElement=n;class s{get resources(){return this._editStackElementsArr.map(u=>u.resource)}constructor(u,l,r){this.label=u,this.code=l,this.type=1,this._isOpen=!0,this._editStackElementsArr=r.slice(0),this._editStackElementsMap=new Map;for(const a of this._editStackElementsArr){const d=v(a.resource);this._editStackElementsMap.set(d,a)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(u){const l=v(u);return this._editStackElementsMap.has(l)}setModel(u){const l=v(L.URI.isUri(u)?u:u.uri);this._editStackElementsMap.has(l)&&this._editStackElementsMap.get(l).setModel(u)}canAppend(u){if(!this._isOpen)return!1;const l=v(u.uri);return this._editStackElementsMap.has(l)?this._editStackElementsMap.get(l).canAppend(u):!1}append(u,l,r,a,d){const m=v(u.uri);this._editStackElementsMap.get(m).append(u,l,r,a,d)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const u of this._editStackElementsArr)u.undo()}redo(){for(const u of this._editStackElementsArr)u.redo()}heapSize(u){const l=v(u);return this._editStackElementsMap.has(l)?this._editStackElementsMap.get(l).heapSize():0}split(){return this._editStackElementsArr}toString(){const u=[];for(const l of this._editStackElementsArr)u.push(`${(0,_.basename)(l.resource)}: ${l}`);return`{${u.join(", ")}}`}}e.MultiModelEditStackElement=s;function t(g){return g.getEOL()===`
|
|
596
596
|
`?0:1}function i(g){return g?g instanceof n||g instanceof s:!1}class o{constructor(u,l){this._model=u,this._undoRedoService=l}pushStackElement(){const u=this._undoRedoService.getLastElement(this._model.uri);i(u)&&u.close()}popStackElement(){const u=this._undoRedoService.getLastElement(this._model.uri);i(u)&&u.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(u,l){const r=this._undoRedoService.getLastElement(this._model.uri);if(i(r)&&r.canAppend(this._model))return r;const a=new n(c.localize(1242,"Typing"),"undoredo.textBufferEdit",this._model,u);return this._undoRedoService.pushElement(a,l),a}pushEOL(u){const l=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(u),l.append(this._model,[],t(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(u,l,r,a){const d=this._getOrCreateEditStackElement(u,a),m=this._model.applyEdits(l,!0),h=o._computeCursorState(r,m),C=m.map((b,w)=>({index:w,textChange:b.textChange}));return C.sort((b,w)=>b.textChange.oldPosition===w.textChange.oldPosition?b.index-w.index:b.textChange.oldPosition-w.textChange.oldPosition),d.append(this._model,C.map(b=>b.textChange),t(this._model),this._model.getAlternativeVersionId(),h),h}static _computeCursorState(u,l){try{return u?u(l):null}catch(r){return(0,k.onUnexpectedError)(r),null}}}e.EditStack=o}),define(oe[369],re([1,0,6,11,4,40,323,144,365,2]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeTextBuffer=void 0;class p extends v.Disposable{constructor(s,t,i,o,g,u,l){super(),this._onDidChangeContent=this._register(new c.Emitter),this._BOM=t,this._mightContainNonBasicASCII=!u,this._mightContainRTL=o,this._mightContainUnusualLineTerminators=g,this._pieceTree=new y.PieceTreeBase(s,i,l)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(s){return this._pieceTree.createSnapshot(s?this._BOM:"")}getOffsetAt(s,t){return this._pieceTree.getOffsetAt(s,t)}getPositionAt(s){return this._pieceTree.getPositionAt(s)}getRangeAt(s,t){const i=s+t,o=this.getPositionAt(s),g=this.getPositionAt(i);return new E.Range(o.lineNumber,o.column,g.lineNumber,g.column)}getValueInRange(s,t=0){if(s.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(s,i)}getValueLengthInRange(s,t=0){if(s.isEmpty())return 0;if(s.startLineNumber===s.endLineNumber)return s.endColumn-s.startColumn;const i=this.getOffsetAt(s.startLineNumber,s.startColumn),o=this.getOffsetAt(s.endLineNumber,s.endColumn);let g=0;const u=this._getEndOfLine(t),l=this.getEOL();if(u.length!==l.length){const r=u.length-l.length,a=s.endLineNumber-s.startLineNumber;g=r*a}return o-i+g}getCharacterCountInRange(s,t=0){if(this._mightContainNonBasicASCII){let i=0;const o=s.startLineNumber,g=s.endLineNumber;for(let u=o;u<=g;u++){const l=this.getLineContent(u),r=u===o?s.startColumn-1:0,a=u===g?s.endColumn-1:l.length;for(let d=r;d<a;d++)k.isHighSurrogate(l.charCodeAt(d))?(i=i+1,d=d+1):i=i+1}return i+=this._getEndOfLine(t).length*(g-o),i}return this.getValueLengthInRange(s,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(s){return this._pieceTree.getLineContent(s)}getLineCharCode(s,t){return this._pieceTree.getLineCharCode(s,t)}getLineLength(s){return this._pieceTree.getLineLength(s)}getLineFirstNonWhitespaceColumn(s){const t=k.firstNonWhitespaceIndex(this.getLineContent(s));return t===-1?0:t+1}getLineLastNonWhitespaceColumn(s){const t=k.lastNonWhitespaceIndex(this.getLineContent(s));return t===-1?0:t+2}_getEndOfLine(s){switch(s){case 1:return`
|
|
597
597
|
`;case 2:return`\r
|
|
598
598
|
`;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(s){this._pieceTree.setEOL(s)}applyEdits(s,t,i){let o=this._mightContainRTL,g=this._mightContainUnusualLineTerminators,u=this._mightContainNonBasicASCII,l=!0,r=[];for(let w=0;w<s.length;w++){const S=s[w];l&&S._isTracked&&(l=!1);const D=S.range;if(S.text){let R=!0;u||(R=!k.isBasicASCII(S.text),u=R),!o&&R&&(o=k.containsRTL(S.text)),!g&&R&&(g=k.containsUnusualLineTerminators(S.text))}let I="",T=0,M=0,A=0;if(S.text){let R;[T,M,A,R]=(0,f.countEOL)(S.text);const N=this.getEOL();R===0||R===(N===`\r
|
|
@@ -602,7 +602,7 @@ ${S(t.Codicon.menuSubmenu)}
|
|
|
602
602
|
`:`
|
|
603
603
|
`}create(_){const v=this._getEOL(_),p=this._chunks;if(this._normalizeEOL&&(v===`\r
|
|
604
604
|
`&&(this._cr>0||this._lf>0)||v===`
|
|
605
|
-
`&&(this._cr>0||this._crlf>0)))for(let s=0,t=p.length;s<t;s++){const i=p[s].buffer.replace(/\r\n|\r|\n/g,v),o=(0,k.createLineStartsFast)(i);p[s]=new k.StringBuffer(i,o)}const n=new E.PieceTreeTextBuffer(p,this._bom,v,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:n,disposable:n}}}class y{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(_){if(_.length===0)return;this.chunks.length===0&&c.startsWithUTF8BOM(_)&&(this.BOM=c.UTF8_BOM_CHARACTER,_=_.substr(1));const v=_.charCodeAt(_.length-1);v===13||v>=55296&&v<=56319?(this._acceptChunk1(_.substr(0,_.length-1),!1),this._hasPreviousChar=!0,this._previousChar=v):(this._acceptChunk1(_,!1),this._hasPreviousChar=!1,this._previousChar=v)}_acceptChunk1(_,v){!v&&_.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+_):this._acceptChunk2(_))}_acceptChunk2(_){const v=(0,k.createLineStarts)(this._tmpLineStarts,_);this.chunks.push(new k.StringBuffer(_,v.lineStarts)),this.cr+=v.cr,this.lf+=v.lf,this.crlf+=v.crlf,v.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.containsRTL(_)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.containsUnusualLineTerminators(_)))}finish(_=!0){return this._finish(),new L(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,_)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const _=this.chunks[this.chunks.length-1];_.buffer+=String.fromCharCode(this._previousChar);const v=(0,k.createLineStartsFast)(_.buffer);_.lineStarts=v,this._previousChar===13&&this.cr++}}}e.PieceTreeTextBufferBuilder=y}),define(oe[658],re([1,0,14,8,16,59,144,55,68,176,572,328,94]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultBackgroundTokenizer=e.RangePriorityQueueImpl=e.TokenizationStateStore=e.TrackingTokenizationStateStore=e.TokenizerWithStateStoreAndTextModel=e.TokenizerWithStateStore=void 0;class t{constructor(d,m){this.tokenizationSupport=m,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new o(d)}getStartState(d){return this.store.getStartState(d,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}e.TokenizerWithStateStore=t;class i extends t{constructor(d,m,h,C){super(d,m),this._textModel=h,this._languageIdCodec=C}updateTokensUntilLine(d,m){const h=this._textModel.getLanguageId();for(;;){const C=this.getFirstInvalidLine();if(!C||C.lineNumber>m)break;const b=this._textModel.getLineContent(C.lineNumber),w=l(this._languageIdCodec,h,this.tokenizationSupport,b,!0,C.startState);d.add(C.lineNumber,w.tokens),this.store.setEndState(C.lineNumber,w.endState)}}getTokenTypeIfInsertingCharacter(d,m){const h=this.getStartState(d.lineNumber);if(!h)return 0;const C=this._textModel.getLanguageId(),b=this._textModel.getLineContent(d.lineNumber),w=b.substring(0,d.column-1)+m+b.substring(d.column-1),S=l(this._languageIdCodec,C,this.tokenizationSupport,w,!0,h),D=new s.LineTokens(S.tokens,w,this._languageIdCodec);if(D.getCount()===0)return 0;const I=D.findTokenIndexAtOffset(d.column-1);return D.getStandardTokenType(I)}tokenizeLineWithEdit(d,m,h){const C=d.lineNumber,b=d.column,w=this.getStartState(C);if(!w)return null;const S=this._textModel.getLineContent(C),D=S.substring(0,b-1)+h+S.substring(b-1+m),I=this._textModel.getLanguageIdAtPosition(C,0),T=l(this._languageIdCodec,I,this.tokenizationSupport,D,!0,w);return new s.LineTokens(T.tokens,D,this._languageIdCodec)}hasAccurateTokensForLine(d){const m=this.store.getFirstInvalidEndStateLineNumberOrMax();return d<m}isCheapToTokenize(d){const m=this.store.getFirstInvalidEndStateLineNumberOrMax();return d<m||d===m&&this._textModel.getLineLength(d)<2048}tokenizeHeuristically(d,m,h){if(h<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(m<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(d,h),{heuristicTokens:!1};let C=this.guessStartState(m);const b=this._textModel.getLanguageId();for(let w=m;w<=h;w++){const S=this._textModel.getLineContent(w),D=l(this._languageIdCodec,b,this.tokenizationSupport,S,!0,C);d.add(w,D.tokens),C=D.endState}return{heuristicTokens:!0}}guessStartState(d){let m=this._textModel.getLineFirstNonWhitespaceColumn(d);const h=[];let C=null;for(let S=d-1;m>1&&S>=1;S--){const D=this._textModel.getLineFirstNonWhitespaceColumn(S);if(D!==0&&D<m&&(h.push(this._textModel.getLineContent(S)),m=D,C=this.getStartState(S),C))break}C||(C=this.tokenizationSupport.getInitialState()),h.reverse();const b=this._textModel.getLanguageId();let w=C;for(const S of h)w=l(this._languageIdCodec,b,this.tokenizationSupport,S,!1,w).endState;return w}}e.TokenizerWithStateStoreAndTextModel=i;class o{constructor(d){this.lineCount=d,this._tokenizationStateStore=new g,this._invalidEndStatesLineNumbers=new u,this._invalidEndStatesLineNumbers.addRange(new _.OffsetRange(1,d+1))}getEndState(d){return this._tokenizationStateStore.getEndState(d)}setEndState(d,m){if(!m)throw new k.BugIndicatingError("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(d);const h=this._tokenizationStateStore.setEndState(d,m);return h&&d<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new _.OffsetRange(d+1,d+2)),h}acceptChange(d,m){this.lineCount+=m-d.length,this._tokenizationStateStore.acceptChange(d,m),this._invalidEndStatesLineNumbers.addRangeAndResize(new _.OffsetRange(d.startLineNumber,d.endLineNumberExclusive),m)}acceptChanges(d){for(const m of d){const[h]=(0,y.countEOL)(m.text);this.acceptChange(new f.LineRange(m.range.startLineNumber,m.range.endLineNumber+1),h+1)}}invalidateEndStateRange(d){this._invalidEndStatesLineNumbers.addRange(new _.OffsetRange(d.startLineNumber,d.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return this._invalidEndStatesLineNumbers.min===null}getStartState(d,m){return d===1?m:this.getEndState(d-1)}getFirstInvalidLine(d){const m=this.getFirstInvalidEndStateLineNumber();if(m===null)return null;const h=this.getStartState(m,d);if(!h)throw new k.BugIndicatingError("Start state must be defined");return{lineNumber:m,startState:h}}}e.TrackingTokenizationStateStore=o;class g{constructor(){this._lineEndStates=new p.FixedArray(null)}getEndState(d){return this._lineEndStates.get(d)}setEndState(d,m){const h=this._lineEndStates.get(d);return h&&h.equals(m)?!1:(this._lineEndStates.set(d,m),!0)}acceptChange(d,m){let h=d.length;m>0&&h>0&&(h--,m--),this._lineEndStates.replace(d.startLineNumber,h,m)}}e.TokenizationStateStore=g;class u{constructor(){this._ranges=[]}get min(){return this._ranges.length===0?null:this._ranges[0].start}delete(d){const m=this._ranges.findIndex(h=>h.contains(d));if(m!==-1){const h=this._ranges[m];h.start===d?h.endExclusive===d+1?this._ranges.splice(m,1):this._ranges[m]=new _.OffsetRange(d+1,h.endExclusive):h.endExclusive===d+1?this._ranges[m]=new _.OffsetRange(h.start,d):this._ranges.splice(m,1,new _.OffsetRange(h.start,d),new _.OffsetRange(d+1,h.endExclusive))}}addRange(d){_.OffsetRange.addRange(d,this._ranges)}addRangeAndResize(d,m){let h=0;for(;!(h>=this._ranges.length||d.start<=this._ranges[h].endExclusive);)h++;let C=h;for(;!(C>=this._ranges.length||d.endExclusive<this._ranges[C].start);)C++;const b=m-d.length;for(let w=C;w<this._ranges.length;w++)this._ranges[w]=this._ranges[w].delta(b);if(h===C){const w=new _.OffsetRange(d.start,d.start+m);w.isEmpty||this._ranges.splice(h,0,w)}else{const w=Math.min(d.start,this._ranges[h].start),S=Math.max(d.endExclusive,this._ranges[C-1].endExclusive),D=new _.OffsetRange(w,S+b);D.isEmpty?this._ranges.splice(h,C-h):this._ranges.splice(h,C-h,D)}}toString(){return this._ranges.map(d=>d.toString()).join(" + ")}}e.RangePriorityQueueImpl=u;function l(a,d,m,h,C,b){let w=null;if(m)try{w=m.tokenizeEncoded(h,C,b.clone())}catch(S){(0,k.onUnexpectedError)(S)}return w||(w=(0,v.nullTokenizeEncoded)(a.encodeLanguageId(d),b)),s.LineTokens.convertToEndOffset(w.tokens,h.length),w}class r{constructor(d,m){this._tokenizerWithStateStore=d,this._backgroundTokenStore=m,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._isScheduled||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._isScheduled=!0,(0,c.runWhenGlobalIdle)(d=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(d)}))}_backgroundTokenizeWithDeadline(d){const m=Date.now()+d.timeRemaining(),h=()=>{this._isDisposed||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()<m?(0,E.setTimeout0)(h):this._beginBackgroundTokenization())};h()}_backgroundTokenizeForAtLeast1ms(){const d=this._tokenizerWithStateStore._textModel.getLineCount(),m=new n.ContiguousMultilineTokensBuilder,h=L.StopWatch.create(!1);do if(h.elapsed()>1||this._tokenizeOneInvalidLine(m)>=d)break;while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(m.finalize()),this.checkFinished()}_hasLinesToTokenize(){return this._tokenizerWithStateStore?!this._tokenizerWithStateStore.store.allStatesValid():!1}_tokenizeOneInvalidLine(d){const m=this._tokenizerWithStateStore?.getFirstInvalidLine();return m?(this._tokenizerWithStateStore.updateTokensUntilLine(d,m.lineNumber),m.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(d,m){this._tokenizerWithStateStore.store.invalidateEndStateRange(new f.LineRange(d,m))}}e.DefaultBackgroundTokenizer=r}),define(oe[659],re([1,0,13,14,8,6,2,144,55,9,165,28,322,658,328,584,586]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationTextModelPart=void 0;class u extends s.TextModelPart{constructor(d,m,h,C,b,w){super(),this._languageService=d,this._languageConfigurationService=m,this._textModel=h,this._bracketPairsTextModelPart=C,this._languageId=b,this._attachedViews=w,this._semanticTokens=new g.SparseTokensStore(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new L.Emitter),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new L.Emitter),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new L.Emitter),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new l(this._languageService.languageIdCodec,this._textModel,()=>this._languageId,this._attachedViews)),this._register(this.grammarTokens.onDidChangeTokens(S=>{this._emitModelTokensChangedEvent(S)})),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState(S=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))}handleLanguageConfigurationServiceChange(d){d.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(d){if(d.isFlush)this._semanticTokens.flush();else if(!d.isEolChange)for(const m of d.changes){const[h,C,b]=(0,f.countEOL)(m.text);this._semanticTokens.acceptEdit(m.range,h,C,b,m.text.length>0?m.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(d)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(d){this.validateLineNumber(d);const m=this.grammarTokens.getLineTokens(d);return this._semanticTokens.addSparseTokens(d,m)}_emitModelTokensChangedEvent(d){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(d),this._onDidChangeTokens.fire(d))}validateLineNumber(d){if(d<1||d>this._textModel.getLineCount())throw new E.BugIndicatingError("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(d){this.validateLineNumber(d),this.grammarTokens.forceTokenization(d)}hasAccurateTokensForLine(d){return this.validateLineNumber(d),this.grammarTokens.hasAccurateTokensForLine(d)}isCheapToTokenize(d){return this.validateLineNumber(d),this.grammarTokens.isCheapToTokenize(d)}tokenizeIfCheap(d){this.validateLineNumber(d),this.grammarTokens.tokenizeIfCheap(d)}getTokenTypeIfInsertingCharacter(d,m,h){return this.grammarTokens.getTokenTypeIfInsertingCharacter(d,m,h)}tokenizeLineWithEdit(d,m,h){return this.grammarTokens.tokenizeLineWithEdit(d,m,h)}setSemanticTokens(d,m){this._semanticTokens.set(d,m),this._emitModelTokensChangedEvent({semanticTokensApplied:d!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(d,m){if(this.hasCompleteSemanticTokens())return;const h=this._textModel.validateRange(this._semanticTokens.setPartial(d,m));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:h.startLineNumber,toLineNumber:h.endLineNumber}]})}getWordAtPosition(d){this.assertNotDisposed();const m=this._textModel.validatePosition(d),h=this._textModel.getLineContent(m.lineNumber),C=this.getLineTokens(m.lineNumber),b=C.findTokenIndexAtOffset(m.column-1),[w,S]=u._findLanguageBoundaries(C,b),D=(0,p.getWordAtText)(m.column,this.getLanguageConfiguration(C.getLanguageId(b)).getWordDefinition(),h.substring(w,S),w);if(D&&D.startColumn<=d.column&&d.column<=D.endColumn)return D;if(b>0&&w===m.column-1){const[I,T]=u._findLanguageBoundaries(C,b-1),M=(0,p.getWordAtText)(m.column,this.getLanguageConfiguration(C.getLanguageId(b-1)).getWordDefinition(),h.substring(I,T),I);if(M&&M.startColumn<=d.column&&d.column<=M.endColumn)return M}return null}getLanguageConfiguration(d){return this._languageConfigurationService.getLanguageConfiguration(d)}static _findLanguageBoundaries(d,m){const h=d.getLanguageId(m);let C=0;for(let w=m;w>=0&&d.getLanguageId(w)===h;w--)C=d.getStartOffset(w);let b=d.getLineContent().length;for(let w=m,S=d.getCount();w<S&&d.getLanguageId(w)===h;w++)b=d.getEndOffset(w);return[C,b]}getWordUntilPosition(d){const m=this.getWordAtPosition(d);return m?{word:m.word.substr(0,d.column-m.startColumn),startColumn:m.startColumn,endColumn:d.column}:{word:"",startColumn:d.column,endColumn:d.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(d,m){const h=this._textModel.validatePosition(new v.Position(d,m)),C=this.getLineTokens(h.lineNumber);return C.getLanguageId(C.findTokenIndexAtOffset(h.column-1))}setLanguageId(d,m="api"){if(this._languageId===d)return;const h={oldLanguage:this._languageId,newLanguage:d,source:m};this._languageId=d,this._bracketPairsTextModelPart.handleDidChangeLanguage(h),this.grammarTokens.resetTokenization(),this._onDidChangeLanguage.fire(h),this._onDidChangeLanguageConfiguration.fire({})}}e.TokenizationTextModelPart=u;class l extends y.Disposable{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(d,m,h,C){super(),this._languageIdCodec=d,this._textModel=m,this.getLanguageId=h,this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new y.MutableDisposable),this._tokens=new o.ContiguousTokensStore(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new y.MutableDisposable),this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new L.Emitter),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new L.Emitter),this.onDidChangeTokens=this._onDidChangeTokens.event,this._attachedViewStates=this._register(new y.DisposableMap),this._register(n.TokenizationRegistry.onDidChange(b=>{const w=this.getLanguageId();b.changedLanguages.indexOf(w)!==-1&&this.resetTokenization()})),this.resetTokenization(),this._register(C.onDidChangeVisibleRanges(({view:b,state:w})=>{if(w){let S=this._attachedViewStates.get(b);S||(S=new r(()=>this.refreshRanges(S.lineRanges)),this._attachedViewStates.set(b,S)),S.handleStateChange(w)}else this._attachedViewStates.deleteAndDispose(b)}))}resetTokenization(d=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new t.TrackingTokenizationStateStore(this._textModel.getLineCount())),d&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const m=()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const b=n.TokenizationRegistry.get(this.getLanguageId());if(!b)return[null,null];let w;try{w=b.getInitialState()}catch(S){return(0,E.onUnexpectedError)(S),[null,null]}return[b,w]},[h,C]=m();if(h&&C?this._tokenizer=new t.TokenizerWithStateStoreAndTextModel(this._textModel.getLineCount(),h,this._textModel,this._languageIdCodec):this._tokenizer=null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const b={setTokens:w=>{this.setTokens(w)},backgroundTokenizationFinished:()=>{if(this._backgroundTokenizationState===2)return;const w=2;this._backgroundTokenizationState=w,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(w,S)=>{if(!this._tokenizer)return;const D=this._tokenizer.store.getFirstInvalidEndStateLineNumber();D!==null&&w>=D&&this._tokenizer?.store.setEndState(w,S)}};h&&h.createBackgroundTokenizer&&!h.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=h.createBackgroundTokenizer(this._textModel,b)),!this._backgroundTokenizer.value&&!this._textModel.isTooLargeForTokenization()&&(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new t.DefaultBackgroundTokenizer(this._tokenizer,b),this._defaultBackgroundTokenizer.handleChanges()),h?.backgroundTokenizerShouldOnlyVerifyTokens&&h.createBackgroundTokenizer?(this._debugBackgroundTokens=new o.ContiguousTokensStore(this._languageIdCodec),this._debugBackgroundStates=new t.TrackingTokenizationStateStore(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=h.createBackgroundTokenizer(this._textModel,{setTokens:w=>{this._debugBackgroundTokens?.setMultilineTokens(w,this._textModel)},backgroundTokenizationFinished(){},setEndState:(w,S)=>{this._debugBackgroundStates?.setEndState(w,S)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(d){if(d.isFlush)this.resetTokenization(!1);else if(!d.isEolChange){for(const m of d.changes){const[h,C]=(0,f.countEOL)(m.text);this._tokens.acceptEdit(m.range,h,C),this._debugBackgroundTokens?.acceptEdit(m.range,h,C)}this._debugBackgroundStates?.acceptChanges(d.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(d.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(d){const{changes:m}=this._tokens.setMultilineTokens(d,this._textModel);return m.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:m}),{changes:m}}refreshAllVisibleLineTokens(){const d=_.LineRange.joinMany([...this._attachedViewStates].map(([m,h])=>h.lineRanges));this.refreshRanges(d)}refreshRanges(d){for(const m of d)this.refreshRange(m.startLineNumber,m.endLineNumberExclusive-1)}refreshRange(d,m){if(!this._tokenizer)return;d=Math.max(1,Math.min(this._textModel.getLineCount(),d)),m=Math.min(this._textModel.getLineCount(),m);const h=new i.ContiguousMultilineTokensBuilder,{heuristicTokens:C}=this._tokenizer.tokenizeHeuristically(h,d,m),b=this.setTokens(h.finalize());if(C)for(const w of b.changes)this._backgroundTokenizer.value?.requestTokens(w.fromLineNumber,w.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(d){const m=new i.ContiguousMultilineTokensBuilder;this._tokenizer?.updateTokensUntilLine(m,d),this.setTokens(m.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(d){return this._tokenizer?this._tokenizer.hasAccurateTokensForLine(d):!0}isCheapToTokenize(d){return this._tokenizer?this._tokenizer.isCheapToTokenize(d):!0}tokenizeIfCheap(d){this.isCheapToTokenize(d)&&this.forceTokenization(d)}getLineTokens(d){const m=this._textModel.getLineContent(d),h=this._tokens.getTokens(this._textModel.getLanguageId(),d-1,m);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>d&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>d){const C=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),d-1,m);!h.equals(C)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(d)}return h}getTokenTypeIfInsertingCharacter(d,m,h){if(!this._tokenizer)return 0;const C=this._textModel.validatePosition(new v.Position(d,m));return this.forceTokenization(C.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(C,h)}tokenizeLineWithEdit(d,m,h){if(!this._tokenizer)return null;const C=this._textModel.validatePosition(d);return this.forceTokenization(C.lineNumber),this._tokenizer.tokenizeLineWithEdit(C,m,h)}get hasTokens(){return this._tokens.hasTokens}}class r extends y.Disposable{get lineRanges(){return this._lineRanges}constructor(d){super(),this._refreshTokens=d,this.runner=this._register(new k.RunOnceScheduler(()=>this.update(),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,c.equals)(this._computedLineRanges,this._lineRanges,(d,m)=>d.equals(m))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(d){this._lineRanges=d.visibleLineRanges,d.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}}),define(oe[370],re([1,0,18,6,72,22,9,4,23,28,237]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMod=void 0,e.createMonacoBaseAPI=s;class n{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(i,o){return(0,E.KeyChord)(i,o)}}e.KeyMod=n;function s(){return{editor:void 0,languages:void 0,CancellationTokenSource:c.CancellationTokenSource,Emitter:k.Emitter,KeyCode:p.KeyCode,KeyMod:n,Position:y.Position,Range:f.Range,Selection:_.Selection,SelectionDirection:p.SelectionDirection,MarkerSeverity:p.MarkerSeverity,MarkerTag:p.MarkerTag,Uri:L.URI,Token:v.Token}}}),define(oe[660],re([1,0,190,22,9,4,576,165,560,566,370,59,326,557,54,559,578]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorSimpleWorker=void 0,e.create=r;class u extends y.MirrorTextModel{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(d){const m=[];for(let h=0;h<this._lines.length;h++){const C=this._lines[h],b=this.offsetAt(new E.Position(h+1,1)),w=C.matchAll(d);for(const S of w)(S.index||S.index===0)&&(S.index=S.index+b),m.push(S)}return m}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(d){return this._lines[d-1]}getWordAtPosition(d,m){const h=(0,f.getWordAtText)(d.column,(0,f.ensureValidWordDefinition)(m),this._lines[d.lineNumber-1],0);return h?new L.Range(d.lineNumber,h.startColumn,d.lineNumber,h.endColumn):null}words(d){const m=this._lines,h=this._wordenize.bind(this);let C=0,b="",w=0,S=[];return{*[Symbol.iterator](){for(;;)if(w<S.length){const D=b.substring(S[w].start,S[w].end);w+=1,yield D}else if(C<m.length)b=m[C],S=h(b,d),w=0,C+=1;else break}}}getLineWords(d,m){const h=this._lines[d-1],C=this._wordenize(h,m),b=[];for(const w of C)b.push({word:h.substring(w.start,w.end),startColumn:w.start+1,endColumn:w.end+1});return b}_wordenize(d,m){const h=[];let C;for(m.lastIndex=0;(C=m.exec(d))&&C[0].length!==0;)h.push({start:C.index,end:C.index+C[0].length});return h}getValueInRange(d){if(d=this._validateRange(d),d.startLineNumber===d.endLineNumber)return this._lines[d.startLineNumber-1].substring(d.startColumn-1,d.endColumn-1);const m=this._eol,h=d.startLineNumber-1,C=d.endLineNumber-1,b=[];b.push(this._lines[h].substring(d.startColumn-1));for(let w=h+1;w<C;w++)b.push(this._lines[w]);return b.push(this._lines[C].substring(0,d.endColumn-1)),b.join(m)}offsetAt(d){return d=this._validatePosition(d),this._ensureLineStarts(),this._lineStarts.getPrefixSum(d.lineNumber-2)+(d.column-1)}positionAt(d){d=Math.floor(d),d=Math.max(0,d),this._ensureLineStarts();const m=this._lineStarts.getIndexOf(d),h=this._lines[m.index].length;return{lineNumber:1+m.index,column:1+Math.min(m.remainder,h)}}_validateRange(d){const m=this._validatePosition({lineNumber:d.startLineNumber,column:d.startColumn}),h=this._validatePosition({lineNumber:d.endLineNumber,column:d.endColumn});return m.lineNumber!==d.startLineNumber||m.column!==d.startColumn||h.lineNumber!==d.endLineNumber||h.column!==d.endColumn?{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:h.lineNumber,endColumn:h.column}:d}_validatePosition(d){if(!E.Position.isIPosition(d))throw new Error("bad position");let{lineNumber:m,column:h}=d,C=!1;if(m<1)m=1,h=1,C=!0;else if(m>this._lines.length)m=this._lines.length,h=this._lines[m-1].length+1,C=!0;else{const b=this._lines[m-1].length+1;h<1?(h=1,C=!0):h>b&&(h=b,C=!0)}return C?{lineNumber:m,column:h}:d}}class l{constructor(d,m){this._host=d,this._models=Object.create(null),this._foreignModuleFactory=m,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(d){return this._models[d]}_getModels(){const d=[];return Object.keys(this._models).forEach(m=>d.push(this._models[m])),d}acceptNewModel(d){this._models[d.url]=new u(k.URI.parse(d.url),d.lines,d.EOL,d.versionId)}acceptModelChanged(d,m){if(!this._models[d])return;this._models[d].onEvents(m)}acceptRemovedModel(d){this._models[d]&&delete this._models[d]}async computeUnicodeHighlights(d,m,h){const C=this._getModel(d);return C?s.UnicodeTextModelHighlighter.computeUnicodeHighlights(C,m,h):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(d,m){const h=this._getModel(d);return h?(0,g.findSectionHeaders)(h,m):[]}async computeDiff(d,m,h,C){const b=this._getModel(d),w=this._getModel(m);return!b||!w?null:l.computeDiff(b,w,h,C)}static computeDiff(d,m,h,C){const b=C==="advanced"?t.linesDiffComputers.getDefault():t.linesDiffComputers.getLegacy(),w=d.getLinesContent(),S=m.getLinesContent(),D=b.computeDiff(w,S,h),I=D.changes.length>0?!1:this._modelsAreIdentical(d,m);function T(M){return M.map(A=>[A.original.startLineNumber,A.original.endLineNumberExclusive,A.modified.startLineNumber,A.modified.endLineNumberExclusive,A.innerChanges?.map(R=>[R.originalRange.startLineNumber,R.originalRange.startColumn,R.originalRange.endLineNumber,R.originalRange.endColumn,R.modifiedRange.startLineNumber,R.modifiedRange.startColumn,R.modifiedRange.endLineNumber,R.modifiedRange.endColumn])])}return{identical:I,quitEarly:D.hitTimeout,changes:T(D.changes),moves:D.moves.map(M=>[M.lineRangeMapping.original.startLineNumber,M.lineRangeMapping.original.endLineNumberExclusive,M.lineRangeMapping.modified.startLineNumber,M.lineRangeMapping.modified.endLineNumberExclusive,T(M.changes)])}}static _modelsAreIdentical(d,m){const h=d.getLineCount(),C=m.getLineCount();if(h!==C)return!1;for(let b=1;b<=h;b++){const w=d.getLineContent(b),S=m.getLineContent(b);if(w!==S)return!1}return!0}static{this._diffLimit=1e5}async computeMoreMinimalEdits(d,m,h){const C=this._getModel(d);if(!C)return m;const b=[];let w;m=m.slice(0).sort((D,I)=>{if(D.range&&I.range)return L.Range.compareRangesUsingStarts(D.range,I.range);const T=D.range?0:1,M=I.range?0:1;return T-M});let S=0;for(let D=1;D<m.length;D++)L.Range.getEndPosition(m[S].range).equals(L.Range.getStartPosition(m[D].range))?(m[S].range=L.Range.fromPositions(L.Range.getStartPosition(m[S].range),L.Range.getEndPosition(m[D].range)),m[S].text+=m[D].text):(S++,m[S]=m[D]);m.length=S+1;for(let{range:D,text:I,eol:T}of m){if(typeof T=="number"&&(w=T),L.Range.isEmpty(D)&&!I)continue;const M=C.getValueInRange(D);if(I=I.replace(/\r\n|\n|\r/g,C.eol),M===I)continue;if(Math.max(I.length,M.length)>l._diffLimit){b.push({range:D,text:I});continue}const A=(0,c.stringDiff)(M,I,h),R=C.offsetAt(L.Range.lift(D).getStartPosition());for(const N of A){const O=C.positionAt(R+N.originalStart),x=C.positionAt(R+N.originalStart+N.originalLength),F={text:I.substr(N.modifiedStart,N.modifiedLength),range:{startLineNumber:O.lineNumber,startColumn:O.column,endLineNumber:x.lineNumber,endColumn:x.column}};C.getValueInRange(F.range)!==F.text&&b.push(F)}}return typeof w=="number"&&b.push({eol:w,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),b}async computeLinks(d){const m=this._getModel(d);return m?(0,_.computeLinks)(m):null}async computeDefaultDocumentColors(d){const m=this._getModel(d);return m?(0,o.computeDefaultDocumentColors)(m):null}static{this._suggestionsLimit=1e4}async textualSuggest(d,m,h,C){const b=new n.StopWatch,w=new RegExp(h,C),S=new Set;e:for(const D of d){const I=this._getModel(D);if(I){for(const T of I.words(w))if(!(T===m||!isNaN(Number(T)))&&(S.add(T),S.size>l._suggestionsLimit))break e}}return{words:Array.from(S),duration:b.elapsed()}}async computeWordRanges(d,m,h,C){const b=this._getModel(d);if(!b)return Object.create(null);const w=new RegExp(h,C),S=Object.create(null);for(let D=m.startLineNumber;D<m.endLineNumber;D++){const I=b.getLineWords(D,w);for(const T of I){if(!isNaN(Number(T.word)))continue;let M=S[T.word];M||(M=[],S[T.word]=M),M.push({startLineNumber:D,startColumn:T.startColumn,endLineNumber:D,endColumn:T.endColumn})}}return S}async navigateValueSet(d,m,h,C,b){const w=this._getModel(d);if(!w)return null;const S=new RegExp(C,b);m.startColumn===m.endColumn&&(m={startLineNumber:m.startLineNumber,startColumn:m.startColumn,endLineNumber:m.endLineNumber,endColumn:m.endColumn+1});const D=w.getValueInRange(m),I=w.getWordAtPosition({lineNumber:m.startLineNumber,column:m.startColumn},S);if(!I)return null;const T=w.getValueInRange(I);return v.BasicInplaceReplace.INSTANCE.navigateValueSet(m,D,I,T,h)}loadForeignModule(d,m,h){const C=(S,D)=>this._host.fhr(S,D),w={host:(0,i.createProxyObject)(h,C),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(w,m),Promise.resolve((0,i.getAllMethodNames)(this._foreignModule))):new Promise((S,D)=>{ae([d],I=>{this._foreignModule=I.create(w,m),S((0,i.getAllMethodNames)(this._foreignModule))},D)})}fmr(d,m){if(!this._foreignModule||typeof this._foreignModule[d]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+d));try{return Promise.resolve(this._foreignModule[d].apply(this._foreignModule,m))}catch(h){return Promise.reject(h)}}}e.EditorSimpleWorker=l;function r(a){return new l(a,null)}typeof importScripts=="function"&&(globalThis.monaco=(0,p.createMonacoBaseAPI)())}),define(oe[661],re([1,0,158,16]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeSemanticTokensDto=y;function E(_){for(let v=0,p=_.length;v<p;v+=4){const n=_[v+0],s=_[v+1],t=_[v+2],i=_[v+3];_[v+0]=i,_[v+1]=t,_[v+2]=s,_[v+3]=n}}function L(_){const v=new Uint8Array(_.buffer,_.byteOffset,_.length*4);return k.isLittleEndian()||E(v),c.VSBuffer.wrap(v)}function y(_){const v=new Uint32Array(f(_));let p=0;if(v[p++]=_.id,_.type==="full")v[p++]=1,v[p++]=_.data.length,v.set(_.data,p),p+=_.data.length;else{v[p++]=2,v[p++]=_.deltas.length;for(const n of _.deltas)v[p++]=n.start,v[p++]=n.deleteCount,n.data?(v[p++]=n.data.length,v.set(n.data,p),p+=n.data.length):v[p++]=0}return L(v)}function f(_){let v=0;if(v+=2,_.type==="full")v+=1+_.data.length;else{v+=1,v+=3*_.deltas.length;for(const p of _.deltas)p.data&&(v+=p.data.length)}return v}}),define(oe[106],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServicesNLS=e.ToggleHighContrastNLS=e.StandaloneCodeEditorNLS=e.QuickOutlineNLS=e.QuickCommandNLS=e.QuickHelpNLS=e.GoToLineNLS=e.InspectTokensNLS=void 0;var k;(function(n){n.inspectTokensAction=c.localize(1764,"Developer: Inspect Tokens")})(k||(e.InspectTokensNLS=k={}));var E;(function(n){n.gotoLineActionLabel=c.localize(1765,"Go to Line/Column...")})(E||(e.GoToLineNLS=E={}));var L;(function(n){n.helpQuickAccessActionLabel=c.localize(1766,"Show all Quick Access Providers")})(L||(e.QuickHelpNLS=L={}));var y;(function(n){n.quickCommandActionLabel=c.localize(1767,"Command Palette"),n.quickCommandHelp=c.localize(1768,"Show And Run Commands")})(y||(e.QuickCommandNLS=y={}));var f;(function(n){n.quickOutlineActionLabel=c.localize(1769,"Go to Symbol..."),n.quickOutlineByCategoryActionLabel=c.localize(1770,"Go to Symbol by Category...")})(f||(e.QuickOutlineNLS=f={}));var _;(function(n){n.editorViewAccessibleLabel=c.localize(1771,"Editor content"),n.accessibilityHelpMessage=c.localize(1772,"Press Alt+F1 for Accessibility Options.")})(_||(e.StandaloneCodeEditorNLS=_={}));var v;(function(n){n.toggleHighContrast=c.localize(1773,"Toggle High Contrast Theme")})(v||(e.ToggleHighContrastNLS=v={}));var p;(function(n){n.bulkEditServiceSummary=c.localize(1774,"Made {0} edits in {1} files")})(p||(e.StandaloneServicesNLS=p={}))}),define(oe[135],re([1,0,3,11,115,149,594]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenderLineOutput2=e.RenderLineOutput=e.CharacterMapping=e.DomPosition=e.RenderLineInput=e.LineRange=void 0,e.renderViewLine=s,e.renderViewLine2=i;class f{constructor(S,D){this.startOffset=S,this.endOffset=D}equals(S){return this.startOffset===S.startOffset&&this.endOffset===S.endOffset}}e.LineRange=f;class _{constructor(S,D,I,T,M,A,R,N,O,x,F,W,z,q,H,K,U,Y,Q){this.useMonospaceOptimizations=S,this.canUseHalfwidthRightwardsArrow=D,this.lineContent=I,this.continuesWithWrappedLine=T,this.isBasicASCII=M,this.containsRTL=A,this.fauxIndentLength=R,this.lineTokens=N,this.lineDecorations=O.sort(L.LineDecoration.compare),this.tabSize=x,this.startVisibleColumn=F,this.spaceWidth=W,this.stopRenderingLineAfter=H,this.renderWhitespace=K==="all"?4:K==="boundary"?1:K==="selection"?2:K==="trailing"?3:0,this.renderControlCharacters=U,this.fontLigatures=Y,this.selectionsOnLine=Q&&Q.sort((P,te)=>P.startOffset<te.startOffset?-1:1);const X=Math.abs(q-W),G=Math.abs(z-W);X<G?(this.renderSpaceWidth=q,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=z,this.renderSpaceCharCode=183)}sameSelection(S){if(this.selectionsOnLine===null)return S===null;if(S===null||S.length!==this.selectionsOnLine.length)return!1;for(let D=0;D<this.selectionsOnLine.length;D++)if(!this.selectionsOnLine[D].equals(S[D]))return!1;return!0}equals(S){return this.useMonospaceOptimizations===S.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===S.canUseHalfwidthRightwardsArrow&&this.lineContent===S.lineContent&&this.continuesWithWrappedLine===S.continuesWithWrappedLine&&this.isBasicASCII===S.isBasicASCII&&this.containsRTL===S.containsRTL&&this.fauxIndentLength===S.fauxIndentLength&&this.tabSize===S.tabSize&&this.startVisibleColumn===S.startVisibleColumn&&this.spaceWidth===S.spaceWidth&&this.renderSpaceWidth===S.renderSpaceWidth&&this.renderSpaceCharCode===S.renderSpaceCharCode&&this.stopRenderingLineAfter===S.stopRenderingLineAfter&&this.renderWhitespace===S.renderWhitespace&&this.renderControlCharacters===S.renderControlCharacters&&this.fontLigatures===S.fontLigatures&&L.LineDecoration.equalsArr(this.lineDecorations,S.lineDecorations)&&this.lineTokens.equals(S.lineTokens)&&this.sameSelection(S.selectionsOnLine)}}e.RenderLineInput=_;class v{constructor(S,D){this.partIndex=S,this.charIndex=D}}e.DomPosition=v;class p{static getPartIndex(S){return(S&4294901760)>>>16}static getCharIndex(S){return(S&65535)>>>0}constructor(S,D){this.length=S,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(S,D,I,T){const M=(D<<16|I<<0)>>>0;this._data[S-1]=M,this._horizontalOffset[S-1]=T}getHorizontalOffset(S){return this._horizontalOffset.length===0?0:this._horizontalOffset[S-1]}charOffsetToPartData(S){return this.length===0?0:S<0?this._data[0]:S>=this.length?this._data[this.length-1]:this._data[S]}getDomPosition(S){const D=this.charOffsetToPartData(S-1),I=p.getPartIndex(D),T=p.getCharIndex(D);return new v(I,T)}getColumn(S,D){return this.partDataToCharOffset(S.partIndex,D,S.charIndex)+1}partDataToCharOffset(S,D,I){if(this.length===0)return 0;const T=(S<<16|I<<0)>>>0;let M=0,A=this.length-1;for(;M+1<A;){const H=M+A>>>1,K=this._data[H];if(K===T)return H;K>T?A=H:M=H}if(M===A)return M;const R=this._data[M],N=this._data[A];if(R===T)return M;if(N===T)return A;const O=p.getPartIndex(R),x=p.getCharIndex(R),F=p.getPartIndex(N);let W;O!==F?W=D:W=p.getCharIndex(N);const z=I-x,q=W-I;return z<=q?M:A}}e.CharacterMapping=p;class n{constructor(S,D,I){this._renderLineOutputBrand=void 0,this.characterMapping=S,this.containsRTL=D,this.containsForeignElements=I}}e.RenderLineOutput=n;function s(w,S){if(w.lineContent.length===0){if(w.lineDecorations.length>0){S.appendString("<span>");let D=0,I=0,T=0;for(const A of w.lineDecorations)(A.type===1||A.type===2)&&(S.appendString('<span class="'),S.appendString(A.className),S.appendString('"></span>'),A.type===1&&(T|=1,D++),A.type===2&&(T|=2,I++));S.appendString("</span>");const M=new p(1,D+I);return M.setColumnInfo(1,D,0,0),new n(M,!1,T)}return S.appendString("<span><span></span></span>"),new n(new p(0,0),!1,0)}return h(g(w),S)}class t{constructor(S,D,I,T){this.characterMapping=S,this.html=D,this.containsRTL=I,this.containsForeignElements=T}}e.RenderLineOutput2=t;function i(w){const S=new E.StringBuilder(1e4),D=s(w,S);return new t(D.characterMapping,S.build(),D.containsRTL,D.containsForeignElements)}class o{constructor(S,D,I,T,M,A,R,N,O,x,F,W,z,q,H,K){this.fontIsMonospace=S,this.canUseHalfwidthRightwardsArrow=D,this.lineContent=I,this.len=T,this.isOverflowing=M,this.overflowingCharCount=A,this.parts=R,this.containsForeignElements=N,this.fauxIndentLength=O,this.tabSize=x,this.startVisibleColumn=F,this.containsRTL=W,this.spaceWidth=z,this.renderSpaceCharCode=q,this.renderWhitespace=H,this.renderControlCharacters=K}}function g(w){const S=w.lineContent;let D,I,T;w.stopRenderingLineAfter!==-1&&w.stopRenderingLineAfter<S.length?(D=!0,I=S.length-w.stopRenderingLineAfter,T=w.stopRenderingLineAfter):(D=!1,I=0,T=S.length);let M=u(S,w.containsRTL,w.lineTokens,w.fauxIndentLength,T);w.renderControlCharacters&&!w.isBasicASCII&&(M=a(S,M)),(w.renderWhitespace===4||w.renderWhitespace===1||w.renderWhitespace===2&&w.selectionsOnLine||w.renderWhitespace===3&&!w.continuesWithWrappedLine)&&(M=d(w,S,T,M));let A=0;if(w.lineDecorations.length>0){for(let R=0,N=w.lineDecorations.length;R<N;R++){const O=w.lineDecorations[R];O.type===3||O.type===1?A|=1:O.type===2&&(A|=2)}M=m(S,T,M,w.lineDecorations)}return w.containsRTL||(M=l(S,M,!w.isBasicASCII||w.fontLigatures)),new o(w.useMonospaceOptimizations,w.canUseHalfwidthRightwardsArrow,S,T,D,I,M,A,w.fauxIndentLength,w.tabSize,w.startVisibleColumn,w.containsRTL,w.spaceWidth,w.renderSpaceCharCode,w.renderWhitespace,w.renderControlCharacters)}function u(w,S,D,I,T){const M=[];let A=0;I>0&&(M[A++]=new y.LinePart(I,"",0,!1));let R=I;for(let N=0,O=D.getCount();N<O;N++){const x=D.getEndOffset(N);if(x<=I)continue;const F=D.getClassName(N);if(x>=T){const z=S?k.containsRTL(w.substring(R,T)):!1;M[A++]=new y.LinePart(T,F,0,z);break}const W=S?k.containsRTL(w.substring(R,x)):!1;M[A++]=new y.LinePart(x,F,0,W),R=x}return M}function l(w,S,D){let I=0;const T=[];let M=0;if(D)for(let A=0,R=S.length;A<R;A++){const N=S[A],O=N.endIndex;if(I+50<O){const x=N.type,F=N.metadata,W=N.containsRTL;let z=-1,q=I;for(let H=I;H<O;H++)w.charCodeAt(H)===32&&(z=H),z!==-1&&H-q>=50&&(T[M++]=new y.LinePart(z+1,x,F,W),q=z+1,z=-1);q!==O&&(T[M++]=new y.LinePart(O,x,F,W))}else T[M++]=N;I=O}else for(let A=0,R=S.length;A<R;A++){const N=S[A],O=N.endIndex,x=O-I;if(x>50){const F=N.type,W=N.metadata,z=N.containsRTL,q=Math.ceil(x/50);for(let H=1;H<q;H++){const K=I+H*50;T[M++]=new y.LinePart(K,F,W,z)}T[M++]=new y.LinePart(O,F,W,z)}else T[M++]=N;I=O}return T}function r(w){return w<32?w!==9:w===127||w>=8234&&w<=8238||w>=8294&&w<=8297||w>=8206&&w<=8207||w===1564}function a(w,S){const D=[];let I=new y.LinePart(0,"",0,!1),T=0;for(const M of S){const A=M.endIndex;for(;T<A;T++){const R=w.charCodeAt(T);r(R)&&(T>I.endIndex&&(I=new y.LinePart(T,M.type,M.metadata,M.containsRTL),D.push(I)),I=new y.LinePart(T+1,"mtkcontrol",M.metadata,!1),D.push(I))}T>I.endIndex&&(I=new y.LinePart(A,M.type,M.metadata,M.containsRTL),D.push(I))}return D}function d(w,S,D,I){const T=w.continuesWithWrappedLine,M=w.fauxIndentLength,A=w.tabSize,R=w.startVisibleColumn,N=w.useMonospaceOptimizations,O=w.selectionsOnLine,x=w.renderWhitespace===1,F=w.renderWhitespace===3,W=w.renderSpaceWidth!==w.spaceWidth,z=[];let q=0,H=0,K=I[H].type,U=I[H].containsRTL,Y=I[H].endIndex;const Q=I.length;let X=!1,G=k.firstNonWhitespaceIndex(S),P;G===-1?(X=!0,G=D,P=D):P=k.lastNonWhitespaceIndex(S);let te=!1,se=0,ue=O&&O[se],ge=R%A;for(let ce=M;ce<D;ce++){const ie=S.charCodeAt(ce);ue&&ce>=ue.endOffset&&(se++,ue=O&&O[se]);let ne;if(ce<G||ce>P)ne=!0;else if(ie===9)ne=!0;else if(ie===32)if(x)if(te)ne=!0;else{const J=ce+1<D?S.charCodeAt(ce+1):0;ne=J===32||J===9}else ne=!0;else ne=!1;if(ne&&O&&(ne=!!ue&&ue.startOffset<=ce&&ue.endOffset>ce),ne&&F&&(ne=X||ce>P),ne&&U&&ce>=G&&ce<=P&&(ne=!1),te){if(!ne||!N&&ge>=A){if(W){const J=q>0?z[q-1].endIndex:M;for(let B=J+1;B<=ce;B++)z[q++]=new y.LinePart(B,"mtkw",1,!1)}else z[q++]=new y.LinePart(ce,"mtkw",1,!1);ge=ge%A}}else(ce===Y||ne&&ce>M)&&(z[q++]=new y.LinePart(ce,K,0,U),ge=ge%A);for(ie===9?ge=A:k.isFullWidthCharacter(ie)?ge+=2:ge++,te=ne;ce===Y&&(H++,H<Q);)K=I[H].type,U=I[H].containsRTL,Y=I[H].endIndex}let pe=!1;if(te)if(T&&x){const ce=D>0?S.charCodeAt(D-1):0,ie=D>1?S.charCodeAt(D-2):0;ce===32&&ie!==32&&ie!==9||(pe=!0)}else pe=!0;if(pe)if(W){const ce=q>0?z[q-1].endIndex:M;for(let ie=ce+1;ie<=D;ie++)z[q++]=new y.LinePart(ie,"mtkw",1,!1)}else z[q++]=new y.LinePart(D,"mtkw",1,!1);else z[q++]=new y.LinePart(D,K,0,U);return z}function m(w,S,D,I){I.sort(L.LineDecoration.compare);const T=L.LineDecorationsNormalizer.normalize(w,I),M=T.length;let A=0;const R=[];let N=0,O=0;for(let F=0,W=D.length;F<W;F++){const z=D[F],q=z.endIndex,H=z.type,K=z.metadata,U=z.containsRTL;for(;A<M&&T[A].startOffset<q;){const Y=T[A];if(Y.startOffset>O&&(O=Y.startOffset,R[N++]=new y.LinePart(O,H,K,U)),Y.endOffset+1<=q)O=Y.endOffset+1,R[N++]=new y.LinePart(O,H+" "+Y.className,K|Y.metadata,U),A++;else{O=q,R[N++]=new y.LinePart(O,H+" "+Y.className,K|Y.metadata,U);break}}q>O&&(O=q,R[N++]=new y.LinePart(O,H,K,U))}const x=D[D.length-1].endIndex;if(A<M&&T[A].startOffset===x)for(;A<M&&T[A].startOffset===x;){const F=T[A];R[N++]=new y.LinePart(O,F.className,F.metadata,!1),A++}return R}function h(w,S){const D=w.fontIsMonospace,I=w.canUseHalfwidthRightwardsArrow,T=w.containsForeignElements,M=w.lineContent,A=w.len,R=w.isOverflowing,N=w.overflowingCharCount,O=w.parts,x=w.fauxIndentLength,F=w.tabSize,W=w.startVisibleColumn,z=w.containsRTL,q=w.spaceWidth,H=w.renderSpaceCharCode,K=w.renderWhitespace,U=w.renderControlCharacters,Y=new p(A+1,O.length);let Q=!1,X=0,G=W,P=0,te=0,se=0;z?S.appendString('<span dir="ltr">'):S.appendString("<span>");for(let ue=0,ge=O.length;ue<ge;ue++){const pe=O[ue],ce=pe.endIndex,ie=pe.type,ne=pe.containsRTL,J=K!==0&&pe.isWhitespace(),B=J&&!D&&(ie==="mtkw"||!T),j=X===ce&&pe.isPseudoAfter();if(P=0,S.appendString("<span "),ne&&S.appendString('style="unicode-bidi:isolate" '),S.appendString('class="'),S.appendString(B?"mtkz":ie),S.appendASCIICharCode(34),J){let V=0;{let $=X,Z=G;for(;$<ce;$++){const le=(M.charCodeAt($)===9?F-Z%F:1)|0;V+=le,$>=x&&(Z+=le)}}for(B&&(S.appendString(' style="width:'),S.appendString(String(q*V)),S.appendString('px"')),S.appendASCIICharCode(62);X<ce;X++){Y.setColumnInfo(X+1,ue-se,P,te),se=0;const $=M.charCodeAt(X);let Z,ee;if($===9){Z=F-G%F|0,ee=Z,!I||ee>1?S.appendCharCode(8594):S.appendCharCode(65515);for(let le=2;le<=ee;le++)S.appendCharCode(160)}else Z=2,ee=1,S.appendCharCode(H),S.appendCharCode(8204);P+=Z,te+=ee,X>=x&&(G+=ee)}}else for(S.appendASCIICharCode(62);X<ce;X++){Y.setColumnInfo(X+1,ue-se,P,te),se=0;const V=M.charCodeAt(X);let $=1,Z=1;switch(V){case 9:$=F-G%F,Z=$;for(let ee=1;ee<=$;ee++)S.appendCharCode(160);break;case 32:S.appendCharCode(160);break;case 60:S.appendString("<");break;case 62:S.appendString(">");break;case 38:S.appendString("&");break;case 0:U?S.appendCharCode(9216):S.appendString("�");break;case 65279:case 8232:case 8233:case 133:S.appendCharCode(65533);break;default:k.isFullWidthCharacter(V)&&Z++,U&&V<32?S.appendCharCode(9216+V):U&&V===127?S.appendCharCode(9249):U&&r(V)?(S.appendString("[U+"),S.appendString(C(V)),S.appendString("]"),$=8,Z=$):S.appendCharCode(V)}P+=$,te+=Z,X>=x&&(G+=Z)}j?se++:se=0,X>=A&&!Q&&pe.isPseudoAfter()&&(Q=!0,Y.setColumnInfo(X+1,ue,P,te)),S.appendString("</span>")}return Q||Y.setColumnInfo(A+1,O.length-1,P,te),R&&(S.appendString('<span class="mtkoverflow">'),S.appendString(c.localize(1240,"Show more ({0})",b(N))),S.appendString("</span>")),S.appendString("</span>"),new n(Y,z,T)}function C(w){return w.toString(16).toUpperCase().padStart(4,"0")}function b(w){return w<1024?c.localize(1241,"{0} chars",w):w<1024*1024?`${(w/1024).toFixed(1)} KB`:`${(w/1024/1024).toFixed(1)} MB`}}),define(oe[662],re([1,0,102,74,37,115,149,135,95]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenderOptions=e.LineSource=void 0,e.renderLines=p;const v=(0,c.createTrustedTypesPolicy)("diffEditorWidget",{createHTML:i=>i});function p(i,o,g,u){(0,k.applyFontInfo)(u,o.fontInfo);const l=g.length>0,r=new L.StringBuilder(1e4);let a=0,d=0;const m=[];for(let w=0;w<i.lineTokens.length;w++){const S=w+1,D=i.lineTokens[w],I=i.lineBreakData[w],T=y.LineDecoration.filter(g,S,1,Number.MAX_SAFE_INTEGER);if(I){let M=0;for(const A of I.breakOffsets){const R=D.sliceAndInflate(M,A,0);a=Math.max(a,t(d,R,y.LineDecoration.extractWrapped(T,M,A),l,i.mightContainNonBasicASCII,i.mightContainRTL,o,r)),d++,M=A}m.push(I.breakOffsets.length)}else m.push(1),a=Math.max(a,t(d,D,T,l,i.mightContainNonBasicASCII,i.mightContainRTL,o,r)),d++}a+=o.scrollBeyondLastColumn;const h=r.build(),C=v?v.createHTML(h):h;u.innerHTML=C;const b=a*o.typicalHalfwidthCharacterWidth;return{heightInLines:d,minWidthInPx:b,viewLineCounts:m}}class n{constructor(o,g,u,l){this.lineTokens=o,this.lineBreakData=g,this.mightContainNonBasicASCII=u,this.mightContainRTL=l}}e.LineSource=n;class s{static fromEditor(o){const g=o.getOptions(),u=g.get(50),l=g.get(146);return new s(o.getModel()?.getOptions().tabSize||0,u,g.get(33),u.typicalHalfwidthCharacterWidth,g.get(105),g.get(67),l.decorationsWidth,g.get(118),g.get(100),g.get(95),g.get(51))}constructor(o,g,u,l,r,a,d,m,h,C,b){this.tabSize=o,this.fontInfo=g,this.disableMonospaceOptimizations=u,this.typicalHalfwidthCharacterWidth=l,this.scrollBeyondLastColumn=r,this.lineHeight=a,this.lineDecorationsWidth=d,this.stopRenderingLineAfter=m,this.renderWhitespace=h,this.renderControlCharacters=C,this.fontLigatures=b}}e.RenderOptions=s;function t(i,o,g,u,l,r,a,d){d.appendString('<div class="view-line'),u||d.appendString(" char-delete"),d.appendString('" style="top:'),d.appendString(String(i*a.lineHeight)),d.appendString('px;width:1000000px;">');const m=o.getLineContent(),h=_.ViewLineRenderingData.isBasicASCII(m,l),C=_.ViewLineRenderingData.containsRTL(m,h,r),b=(0,f.renderViewLine)(new f.RenderLineInput(a.fontInfo.isMonospace&&!a.disableMonospaceOptimizations,a.fontInfo.canUseHalfwidthRightwardsArrow,m,!1,h,C,0,o,g,a.tabSize,0,a.fontInfo.spaceWidth,a.fontInfo.middotWidth,a.fontInfo.wsmiddotWidth,a.stopRenderingLineAfter,a.renderWhitespace,a.renderControlCharacters,a.fontLigatures!==E.EditorFontLigatures.OFF,null),d);return d.appendString("</div>"),b.characterMapping.getHorizontalOffset(b.characterMapping.length)}}),define(oe[371],re([1,0,6,2,310,28]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapTokensColorTracker=void 0;class y extends k.Disposable{static{this._INSTANCE=null}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,k.markAsSingleton)(new y)),this._INSTANCE}constructor(){super(),this._onDidChange=new c.Emitter,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(L.TokenizationRegistry.onDidChange(_=>{_.changedColorMap&&this._updateColorMap()}))}_updateColorMap(){const _=L.TokenizationRegistry.getColorMap();if(!_){this._colors=[E.RGBA8.Empty],this._backgroundIsLight=!0;return}this._colors=[E.RGBA8.Empty];for(let p=1;p<_.length;p++){const n=_[p].rgba;this._colors[p]=new E.RGBA8(n.r,n.g,n.b,Math.round(n.a*255))}const v=_[2].getRelativeLuminance();this._backgroundIsLight=v>=.5,this._onDidChange.fire(void 0)}getColor(_){return(_<1||_>=this._colors.length)&&(_=2),this._colors[_]}backgroundIsLight(){return this._backgroundIsLight}}e.MinimapTokensColorTracker=y}),define(oe[372],re([1,0,9,4,95,37]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewModelDecorations=void 0,e.isModelDecorationVisible=f,e.isModelDecorationInComment=_,e.isModelDecorationInString=v;class y{constructor(s,t,i,o,g){this.editorId=s,this.model=t,this.configuration=i,this._linesCollection=o,this._coordinatesConverter=g,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(s){const t=s.id;let i=this._decorationsCache[t];if(!i){const o=s.range,g=s.options;let u;if(g.isWholeLine){const l=this._coordinatesConverter.convertModelPositionToViewPosition(new c.Position(o.startLineNumber,1),0,!1,!0),r=this._coordinatesConverter.convertModelPositionToViewPosition(new c.Position(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber)),1);u=new k.Range(l.lineNumber,l.column,r.lineNumber,r.column)}else u=this._coordinatesConverter.convertModelRangeToViewRange(o,1);i=new E.ViewModelDecoration(u,g),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(s){return this._getDecorationsInRange(s,!0,!1).decorations}getDecorationsViewportData(s){let t=this._cachedModelDecorationsResolver!==null;return t=t&&s.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(s,!1,!1),this._cachedModelDecorationsResolverViewRange=s),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(s,t=!1,i=!1){const o=new k.Range(s,this._linesCollection.getViewLineMinColumn(s),s,this._linesCollection.getViewLineMaxColumn(s));return this._getDecorationsInRange(o,t,i).inlineDecorations[0]}_getDecorationsInRange(s,t,i){const o=this._linesCollection.getDecorationsInRange(s,this.editorId,(0,L.filterValidationDecorations)(this.configuration.options),t,i),g=s.startLineNumber,u=s.endLineNumber,l=[];let r=0;const a=[];for(let d=g;d<=u;d++)a[d-g]=[];for(let d=0,m=o.length;d<m;d++){const h=o[d],C=h.options;if(!f(this.model,h))continue;const b=this._getOrCreateViewModelDecoration(h),w=b.range;if(l[r++]=b,C.inlineClassName){const S=new E.InlineDecoration(w,C.inlineClassName,C.inlineClassNameAffectsLetterSpacing?3:0),D=Math.max(g,w.startLineNumber),I=Math.min(u,w.endLineNumber);for(let T=D;T<=I;T++)a[T-g].push(S)}if(C.beforeContentClassName&&g<=w.startLineNumber&&w.startLineNumber<=u){const S=new E.InlineDecoration(new k.Range(w.startLineNumber,w.startColumn,w.startLineNumber,w.startColumn),C.beforeContentClassName,1);a[w.startLineNumber-g].push(S)}if(C.afterContentClassName&&g<=w.endLineNumber&&w.endLineNumber<=u){const S=new E.InlineDecoration(new k.Range(w.endLineNumber,w.endColumn,w.endLineNumber,w.endColumn),C.afterContentClassName,2);a[w.endLineNumber-g].push(S)}}return{decorations:l,inlineDecorations:a}}}e.ViewModelDecorations=y;function f(n,s){return!(s.options.hideInCommentTokens&&_(n,s)||s.options.hideInStringTokens&&v(n,s))}function _(n,s){return p(n,s.range,t=>t===1)}function v(n,s){return p(n,s.range,t=>t===2)}function p(n,s,t){for(let i=s.startLineNumber;i<=s.endLineNumber;i++){const o=n.tokenization.getLineTokens(i),g=i===s.startLineNumber,u=i===s.endLineNumber;let l=g?o.findTokenIndexAtOffset(s.startColumn-1):0;for(;l<o.getCount()&&!(u&&o.getStartOffset(l)>s.endColumn-1);){if(!t(o.getStandardTokenType(l)))return!1;l++}}return!0}}),define(oe[208],re([1,0,6,2,16]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClickLinkGesture=e.ClickLinkOptions=e.ClickLinkKeyboardEvent=e.ClickLinkMouseEvent=void 0;function L(n,s){return!!n[s]}class y{constructor(s,t){this.target=s.target,this.isLeftClick=s.event.leftButton,this.isMiddleClick=s.event.middleButton,this.isRightClick=s.event.rightButton,this.hasTriggerModifier=L(s.event,t.triggerModifier),this.hasSideBySideModifier=L(s.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=s.event.detail<=1}}e.ClickLinkMouseEvent=y;class f{constructor(s,t){this.keyCodeIsTriggerKey=s.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=s.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=L(s,t.triggerModifier)}}e.ClickLinkKeyboardEvent=f;class _{constructor(s,t,i,o){this.triggerKey=s,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=o}equals(s){return this.triggerKey===s.triggerKey&&this.triggerModifier===s.triggerModifier&&this.triggerSideBySideKey===s.triggerSideBySideKey&&this.triggerSideBySideModifier===s.triggerSideBySideModifier}}e.ClickLinkOptions=_;function v(n){return n==="altKey"?E.isMacintosh?new _(57,"metaKey",6,"altKey"):new _(5,"ctrlKey",6,"altKey"):E.isMacintosh?new _(6,"altKey",57,"metaKey"):new _(6,"altKey",5,"ctrlKey")}class p extends k.Disposable{constructor(s,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new c.Emitter),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new c.Emitter),this.onExecute=this._onExecute.event,this._onCancel=this._register(new c.Emitter),this.onCancel=this._onCancel.event,this._editor=s,this._extractLineNumberFromMouseEvent=t?.extractLineNumberFromMouseEvent??(i=>i.target.position?i.target.position.lineNumber:0),this._opts=v(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(78)){const o=v(this._editor.getOption(78));if(this._opts.equals(o))return;this._opts=o,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new y(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new y(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new y(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new f(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new f(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(s){s.selection&&s.selection.startColumn!==s.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(s){this._lastMouseMoveEvent=s,this._onMouseMoveOrRelevantKeyDown.fire([s,null])}_onEditorMouseDown(s){this._hasTriggerKeyOnMouseDown=s.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(s)}_onEditorMouseUp(s){const t=this._extractLineNumberFromMouseEvent(s);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(s)}_onEditorKeyDown(s){this._lastMouseMoveEvent&&(s.keyCodeIsTriggerKey||s.keyCodeIsSideBySideKey&&s.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,s]):s.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(s){s.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}e.ClickLinkGesture=p}),define(oe[177],re([1,0,8,6,187,2,45,51,11,4,3]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencesModel=e.FileReferences=e.FilePreview=e.OneReference=void 0;class n{constructor(g,u,l,r){this.isProviderFirst=g,this.parent=u,this.link=l,this._rangeCallback=r,this.id=E.defaultGenerator.nextId()}get uri(){return this.link.uri}get range(){return this._range??this.link.targetSelectionRange??this.link.range}set range(g){this._range=g,this._rangeCallback(this)}get ariaMessage(){const g=this.parent.getPreview(this)?.preview(this.range);return g?(0,p.localize)(704,"{0} in {1} on line {2} at column {3}",g.value,(0,f.basename)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,p.localize)(703,"in {0} on line {1} at column {2}",(0,f.basename)(this.uri),this.range.startLineNumber,this.range.startColumn)}}e.OneReference=n;class s{constructor(g){this._modelReference=g}dispose(){this._modelReference.dispose()}preview(g,u=8){const l=this._modelReference.object.textEditorModel;if(!l)return;const{startLineNumber:r,startColumn:a,endLineNumber:d,endColumn:m}=g,h=l.getWordUntilPosition({lineNumber:r,column:a-u}),C=new v.Range(r,h.startColumn,r,a),b=new v.Range(d,m,d,1073741824),w=l.getValueInRange(C).replace(/^\s+/,""),S=l.getValueInRange(g),D=l.getValueInRange(b).replace(/\s+$/,"");return{value:w+S+D,highlight:{start:w.length,end:w.length+S.length}}}}e.FilePreview=s;class t{constructor(g,u){this.parent=g,this.uri=u,this.children=[],this._previews=new y.ResourceMap}dispose(){(0,L.dispose)(this._previews.values()),this._previews.clear()}getPreview(g){return this._previews.get(g.uri)}get ariaMessage(){const g=this.children.length;return g===1?(0,p.localize)(705,"1 symbol in {0}, full path {1}",(0,f.basename)(this.uri),this.uri.fsPath):(0,p.localize)(706,"{0} symbols in {1}, full path {2}",g,(0,f.basename)(this.uri),this.uri.fsPath)}async resolve(g){if(this._previews.size!==0)return this;for(const u of this.children)if(!this._previews.has(u.uri))try{const l=await g.createModelReference(u.uri);this._previews.set(u.uri,new s(l))}catch(l){(0,c.onUnexpectedError)(l)}return this}}e.FileReferences=t;class i{constructor(g,u){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new k.Emitter,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=g,this._title=u;const[l]=g;g.sort(i._compareReferences);let r;for(const a of g)if((!r||!f.extUri.isEqual(r.uri,a.uri,!0))&&(r=new t(this,a.uri),this.groups.push(r)),r.children.length===0||i._compareReferences(a,r.children[r.children.length-1])!==0){const d=new n(l===a,r,a,m=>this._onDidChangeReferenceRange.fire(m));this.references.push(d),r.children.push(d)}}dispose(){(0,L.dispose)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new i(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?(0,p.localize)(707,"No results found"):this.references.length===1?(0,p.localize)(708,"Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?(0,p.localize)(709,"Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,p.localize)(710,"Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(g,u){const{parent:l}=g;let r=l.children.indexOf(g);const a=l.children.length,d=l.parent.groups.length;return d===1||u&&r+1<a||!u&&r>0?(u?r=(r+1)%a:r=(r+a-1)%a,l.children[r]):(r=l.parent.groups.indexOf(l),u?(r=(r+1)%d,l.parent.groups[r].children[0]):(r=(r+d-1)%d,l.parent.groups[r].children[l.parent.groups[r].children.length-1]))}nearestReference(g,u){const l=this.references.map((r,a)=>({idx:a,prefixLen:_.commonPrefixLength(r.uri.toString(),g.toString()),offsetDist:Math.abs(r.range.startLineNumber-u.lineNumber)*100+Math.abs(r.range.startColumn-u.column)})).sort((r,a)=>r.prefixLen>a.prefixLen?-1:r.prefixLen<a.prefixLen?1:r.offsetDist<a.offsetDist?-1:r.offsetDist>a.offsetDist?1:0)[0];if(l)return this.references[l.idx]}referenceAt(g,u){for(const l of this.references)if(l.uri.toString()===g.toString()&&v.Range.containsPosition(l.range,u))return l}firstReference(){for(const g of this.references)if(g.isProviderFirst)return g;return this.references[0]}static _compareReferences(g,u){return f.extUri.compare(g.uri,u.uri)||v.Range.compareRangesUsingStarts(g.range,u.range)}}e.ReferencesModel=i}),define(oe[663],re([1,0,13,14]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContentHoverComputer=void 0;class E{get anchor(){return this._anchor}set anchor(y){this._anchor=y}get shouldFocus(){return this._shouldFocus}set shouldFocus(y){this._shouldFocus=y}get source(){return this._source}set source(y){this._source=y}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(y){this._insistOnKeepingHoverVisible=y}constructor(y,f){this._editor=y,this._participants=f,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(y,f){if(f.type!==1&&!f.supportsMarkerHover)return[];const _=y.getModel(),v=f.range.startLineNumber;if(v>_.getLineCount())return[];const p=_.getLineMaxColumn(v);return y.getLineDecorations(v).filter(n=>{if(n.options.isWholeLine)return!0;const s=n.range.startLineNumber===v?n.range.startColumn:1,t=n.range.endLineNumber===v?n.range.endColumn:p;if(n.options.showIfCollapsed){if(s>f.range.startColumn+1||f.range.endColumn-1>t)return!1}else if(s>f.range.startColumn||f.range.endColumn>t)return!1;return!0})}computeAsync(y){const f=this._anchor;if(!this._editor.hasModel()||!f)return k.AsyncIterableObject.EMPTY;const _=E._getLineDecorations(this._editor,f);return k.AsyncIterableObject.merge(this._participants.map(v=>v.computeAsync?v.computeAsync(f,_,y):k.AsyncIterableObject.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const y=E._getLineDecorations(this._editor,this._anchor);let f=[];for(const _ of this._participants)f=f.concat(_.computeSync(this._anchor,y));return(0,c.coalesce)(f)}}e.ContentHoverComputer=E}),define(oe[262],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DECREASE_HOVER_VERBOSITY_ACTION_LABEL=e.DECREASE_HOVER_VERBOSITY_ACTION_ID=e.INCREASE_HOVER_VERBOSITY_ACTION_LABEL=e.INCREASE_HOVER_VERBOSITY_ACTION_ID=e.GO_TO_BOTTOM_HOVER_ACTION_ID=e.GO_TO_TOP_HOVER_ACTION_ID=e.PAGE_DOWN_HOVER_ACTION_ID=e.PAGE_UP_HOVER_ACTION_ID=e.SCROLL_RIGHT_HOVER_ACTION_ID=e.SCROLL_LEFT_HOVER_ACTION_ID=e.SCROLL_DOWN_HOVER_ACTION_ID=e.SCROLL_UP_HOVER_ACTION_ID=e.SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID=e.SHOW_OR_FOCUS_HOVER_ACTION_ID=void 0,e.SHOW_OR_FOCUS_HOVER_ACTION_ID="editor.action.showHover",e.SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID="editor.action.showDefinitionPreviewHover",e.SCROLL_UP_HOVER_ACTION_ID="editor.action.scrollUpHover",e.SCROLL_DOWN_HOVER_ACTION_ID="editor.action.scrollDownHover",e.SCROLL_LEFT_HOVER_ACTION_ID="editor.action.scrollLeftHover",e.SCROLL_RIGHT_HOVER_ACTION_ID="editor.action.scrollRightHover",e.PAGE_UP_HOVER_ACTION_ID="editor.action.pageUpHover",e.PAGE_DOWN_HOVER_ACTION_ID="editor.action.pageDownHover",e.GO_TO_TOP_HOVER_ACTION_ID="editor.action.goToTopHover",e.GO_TO_BOTTOM_HOVER_ACTION_ID="editor.action.goToBottomHover",e.INCREASE_HOVER_VERBOSITY_ACTION_ID="editor.action.increaseHoverVerbosityLevel",e.INCREASE_HOVER_VERBOSITY_ACTION_LABEL=c.localize(698,"Increase Hover Verbosity Level"),e.DECREASE_HOVER_VERBOSITY_ACTION_ID="editor.action.decreaseHoverVerbosityLevel",e.DECREASE_HOVER_VERBOSITY_ACTION_LABEL=c.localize(699,"Decrease Hover Verbosity Level")}),define(oe[373],re([1,0,14,8,6,2]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverOperation=e.HoverResult=void 0;class y{constructor(v,p,n){this.value=v,this.isComplete=p,this.hasLoadingMessage=n}}e.HoverResult=y;class f extends L.Disposable{constructor(v,p){super(),this._editor=v,this._computer=p,this._onResult=this._register(new E.Emitter),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new c.RunOnceScheduler(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new c.RunOnceScheduler(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new c.RunOnceScheduler(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(v,p=!0){this._state=v,p&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,c.createCancelableAsyncIterable)(v=>this._computer.computeAsync(v)),(async()=>{try{for await(const v of this._asyncIterable)v&&(this._result.push(v),this._fireResult());this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(v){(0,k.onUnexpectedError)(v)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const v=this._state===0,p=this._state===4;this._onResult.fire(new y(this._result.slice(0),v,p))}start(v){if(v===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}e.HoverOperation=f}),define(oe[664],re([1,0,13,57,40]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginHoverComputer=void 0;class L{get lineNumber(){return this._lineNumber}set lineNumber(f){this._lineNumber=f}get lane(){return this._laneOrLine}set lane(f){this._laneOrLine=f}constructor(f){this._editor=f,this._lineNumber=-1,this._laneOrLine=E.GlyphMarginLane.Center}computeSync(){const f=n=>({value:n}),_=this._editor.getLineDecorations(this._lineNumber),v=[],p=this._laneOrLine==="lineNo";if(!_)return v;for(const n of _){const s=n.options.glyphMargin?.position??E.GlyphMarginLane.Center;if(!p&&s!==this._laneOrLine)continue;const t=p?n.options.lineNumberHoverMessage:n.options.glyphMarginHoverMessage;!t||(0,k.isEmptyMarkdownString)(t)||v.push(...(0,c.asArray)(t).map(f))}return v}}e.MarginHoverComputer=L}),define(oe[665],re([1,0,254,2,9,5]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizableContentWidget=void 0;const y=30,f=24;class _ extends k.Disposable{constructor(p,n=new L.Dimension(10,10)){super(),this._editor=p,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new c.ResizableHTMLElement),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=L.Dimension.lift(n),this._resizableNode.layout(n.height,n.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(s=>{this._resize(new L.Dimension(s.dimension.width,s.dimension.height)),s.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?E.Position.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(p){const n=this._editor.getDomNode(),s=this._editor.getScrolledVisiblePosition(p);return!n||!s?void 0:L.getDomNodePagePosition(n).top+s.top-y}_availableVerticalSpaceBelow(p){const n=this._editor.getDomNode(),s=this._editor.getScrolledVisiblePosition(p);if(!n||!s)return;const t=L.getDomNodePagePosition(n),i=L.getClientArea(n.ownerDocument.body),o=t.top+s.top+s.height;return i.height-o-f}_findPositionPreference(p,n){const s=Math.min(this._availableVerticalSpaceBelow(n)??1/0,p),t=Math.min(this._availableVerticalSpaceAbove(n)??1/0,p),i=Math.min(Math.max(t,s),p),o=Math.min(p,i);let g;return this._editor.getOption(60).above?g=o<=t?1:2:g=o<=s?2:1,g===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),g}_resize(p){this._resizableNode.layout(p.height,p.width)}}e.ResizableContentWidget=_}),define(oe[374],re([1,0,8,2,9,4,47,22]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintsFragments=e.InlayHintItem=e.InlayHintAnchor=void 0,e.asCommandLink=n;class _{constructor(t,i){this.range=t,this.direction=i}}e.InlayHintAnchor=_;class v{constructor(t,i,o){this.hint=t,this.anchor=i,this.provider=o,this._isResolved=!1}with(t){const i=new v(this.hint,t.anchor,this.provider);return i._isResolved=this._isResolved,i._currentResolve=this._currentResolve,i}async resolve(t){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return await this._currentResolve,t.isCancellationRequested?void 0:this.resolve(t);this._isResolved||(this._currentResolve=this._doResolve(t).finally(()=>this._currentResolve=void 0)),await this._currentResolve}}async _doResolve(t){try{const i=await Promise.resolve(this.provider.resolveInlayHint(this.hint,t));this.hint.tooltip=i?.tooltip??this.hint.tooltip,this.hint.label=i?.label??this.hint.label,this.hint.textEdits=i?.textEdits??this.hint.textEdits,this._isResolved=!0}catch(i){(0,c.onUnexpectedExternalError)(i),this._isResolved=!1}}}e.InlayHintItem=v;class p{static{this._emptyInlayHintList=Object.freeze({dispose(){},hints:[]})}static async create(t,i,o,g){const u=[],l=t.ordered(i).reverse().map(r=>o.map(async a=>{try{const d=await r.provideInlayHints(i,a,g);(d?.hints.length||r.onDidChangeInlayHints)&&u.push([d??p._emptyInlayHintList,r])}catch(d){(0,c.onUnexpectedExternalError)(d)}}));if(await Promise.all(l.flat()),g.isCancellationRequested||i.isDisposed())throw new c.CancellationError;return new p(o,u,i)}constructor(t,i,o){this._disposables=new k.DisposableStore,this.ranges=t,this.provider=new Set;const g=[];for(const[u,l]of i){this._disposables.add(u),this.provider.add(l);for(const r of u.hints){const a=o.validatePosition(r.position);let d="before";const m=p._getRangeAtPosition(o,a);let h;m.getStartPosition().isBefore(a)?(h=L.Range.fromPositions(m.getStartPosition(),a),d="after"):(h=L.Range.fromPositions(a,m.getEndPosition()),d="before"),g.push(new v(r,new _(h,d),l))}}this.items=g.sort((u,l)=>E.Position.compare(u.hint.position,l.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(t,i){const o=i.lineNumber,g=t.getWordAtPosition(i);if(g)return new L.Range(o,g.startColumn,o,g.endColumn);t.tokenization.tokenizeIfCheap(o);const u=t.tokenization.getLineTokens(o),l=i.column-1,r=u.findTokenIndexAtOffset(l);let a=u.getStartOffset(r),d=u.getEndOffset(r);return d-a===1&&(a===l&&r>1?(a=u.getStartOffset(r-1),d=u.getEndOffset(r-1)):d===l&&r<u.getCount()-1&&(a=u.getStartOffset(r+1),d=u.getEndOffset(r+1))),new L.Range(o,a+1,o,d+1)}}e.InlayHintsFragments=p;function n(s){return f.URI.from({scheme:y.Schemas.command,path:s.id,query:s.arguments&&encodeURIComponent(JSON.stringify(s.arguments))}).toString()}}),define(oe[375],re([1,0,89,14,18,45,8,9,4,571,103,204,134]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionItem=e.InlineCompletionList=e.InlineCompletionProviderResult=void 0,e.provideInlineCompletions=t;async function t(r,a,d,m,h=E.CancellationToken.None,C){const b=a instanceof f.Position?u(a,d):a,w=r.all(d),S=new L.SetMap;for(const x of w)x.groupId&&S.add(x.groupId,x);function D(x){if(!x.yieldsToGroupIds)return[];const F=[];for(const W of x.yieldsToGroupIds||[]){const z=S.get(W);for(const q of z)F.push(q)}return F}const I=new Map,T=new Set;function M(x,F){if(F=[...F,x],T.has(x))return F;T.add(x);try{const W=D(x);for(const z of W){const q=M(z,F);if(q)return q}}finally{T.delete(x)}}function A(x){const F=I.get(x);if(F)return F;const W=M(x,[]);W&&(0,y.onUnexpectedExternalError)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${W.map(q=>q.toString?q.toString():""+q).join(" -> ")}`));const z=new k.DeferredPromise;return I.set(x,z.p),(async()=>{if(!W){const q=D(x);for(const H of q){const K=await A(H);if(K&&K.items.length>0)return}}try{return a instanceof f.Position?await x.provideInlineCompletions(d,a,m,h):await x.provideInlineEdits?.(d,a,m,h)}catch(q){(0,y.onUnexpectedExternalError)(q);return}})().then(q=>z.complete(q),q=>z.error(q)),z.p}const R=await Promise.all(w.map(async x=>({provider:x,completions:await A(x)}))),N=new Map,O=[];for(const x of R){const F=x.completions;if(!F)continue;const W=new o(F,x.provider);O.push(W);for(const z of F.items){const q=g.from(z,W,b,d,C);N.set(q.hash(),q)}}return new i(Array.from(N.values()),new Set(N.keys()),O)}class i{constructor(a,d,m){this.completions=a,this.hashs=d,this.providerResults=m}has(a){return this.hashs.has(a.hash())}dispose(){for(const a of this.providerResults)a.removeRef()}}e.InlineCompletionProviderResult=i;class o{constructor(a,d){this.inlineCompletions=a,this.provider=d,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,this.refCount===0&&this.provider.freeInlineCompletions(this.inlineCompletions)}}e.InlineCompletionList=o;class g{static from(a,d,m,h,C){let b,w,S=a.range?_.Range.lift(a.range):m;if(typeof a.insertText=="string"){if(b=a.insertText,C&&a.completeBracketPairs){b=l(b,S.getStartPosition(),h,C);const D=b.length-a.insertText.length;D!==0&&(S=new _.Range(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+D))}w=void 0}else if("snippet"in a.insertText){const D=a.insertText.snippet.length;if(C&&a.completeBracketPairs){a.insertText.snippet=l(a.insertText.snippet,S.getStartPosition(),h,C);const T=a.insertText.snippet.length-D;T!==0&&(S=new _.Range(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+T))}const I=new s.SnippetParser().parse(a.insertText.snippet);I.children.length===1&&I.children[0]instanceof s.Text?(b=I.children[0].value,w=void 0):(b=I.toString(),w={snippet:a.insertText.snippet,range:S})}else(0,c.assertNever)(a.insertText);return new g(b,a.command,S,b,w,a.additionalTextEdits||(0,n.getReadonlyEmptyArray)(),a,d)}constructor(a,d,m,h,C,b,w,S){this.filterText=a,this.command=d,this.range=m,this.insertText=h,this.snippetInfo=C,this.additionalTextEdits=b,this.sourceInlineCompletion=w,this.source=S,a=a.replace(/\r\n|\r/g,`
|
|
605
|
+
`&&(this._cr>0||this._crlf>0)))for(let s=0,t=p.length;s<t;s++){const i=p[s].buffer.replace(/\r\n|\r|\n/g,v),o=(0,k.createLineStartsFast)(i);p[s]=new k.StringBuffer(i,o)}const n=new E.PieceTreeTextBuffer(p,this._bom,v,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:n,disposable:n}}}class y{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(_){if(_.length===0)return;this.chunks.length===0&&c.startsWithUTF8BOM(_)&&(this.BOM=c.UTF8_BOM_CHARACTER,_=_.substr(1));const v=_.charCodeAt(_.length-1);v===13||v>=55296&&v<=56319?(this._acceptChunk1(_.substr(0,_.length-1),!1),this._hasPreviousChar=!0,this._previousChar=v):(this._acceptChunk1(_,!1),this._hasPreviousChar=!1,this._previousChar=v)}_acceptChunk1(_,v){!v&&_.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+_):this._acceptChunk2(_))}_acceptChunk2(_){const v=(0,k.createLineStarts)(this._tmpLineStarts,_);this.chunks.push(new k.StringBuffer(_,v.lineStarts)),this.cr+=v.cr,this.lf+=v.lf,this.crlf+=v.crlf,v.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.containsRTL(_)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.containsUnusualLineTerminators(_)))}finish(_=!0){return this._finish(),new L(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,_)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const _=this.chunks[this.chunks.length-1];_.buffer+=String.fromCharCode(this._previousChar);const v=(0,k.createLineStartsFast)(_.buffer);_.lineStarts=v,this._previousChar===13&&this.cr++}}}e.PieceTreeTextBufferBuilder=y}),define(oe[658],re([1,0,14,8,16,59,144,55,68,176,572,328,94]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultBackgroundTokenizer=e.RangePriorityQueueImpl=e.TokenizationStateStore=e.TrackingTokenizationStateStore=e.TokenizerWithStateStoreAndTextModel=e.TokenizerWithStateStore=void 0;class t{constructor(d,m){this.tokenizationSupport=m,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new o(d)}getStartState(d){return this.store.getStartState(d,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}e.TokenizerWithStateStore=t;class i extends t{constructor(d,m,h,C){super(d,m),this._textModel=h,this._languageIdCodec=C}updateTokensUntilLine(d,m){const h=this._textModel.getLanguageId();for(;;){const C=this.getFirstInvalidLine();if(!C||C.lineNumber>m)break;const b=this._textModel.getLineContent(C.lineNumber),w=l(this._languageIdCodec,h,this.tokenizationSupport,b,!0,C.startState);d.add(C.lineNumber,w.tokens),this.store.setEndState(C.lineNumber,w.endState)}}getTokenTypeIfInsertingCharacter(d,m){const h=this.getStartState(d.lineNumber);if(!h)return 0;const C=this._textModel.getLanguageId(),b=this._textModel.getLineContent(d.lineNumber),w=b.substring(0,d.column-1)+m+b.substring(d.column-1),S=l(this._languageIdCodec,C,this.tokenizationSupport,w,!0,h),D=new s.LineTokens(S.tokens,w,this._languageIdCodec);if(D.getCount()===0)return 0;const I=D.findTokenIndexAtOffset(d.column-1);return D.getStandardTokenType(I)}tokenizeLineWithEdit(d,m,h){const C=d.lineNumber,b=d.column,w=this.getStartState(C);if(!w)return null;const S=this._textModel.getLineContent(C),D=S.substring(0,b-1)+h+S.substring(b-1+m),I=this._textModel.getLanguageIdAtPosition(C,0),T=l(this._languageIdCodec,I,this.tokenizationSupport,D,!0,w);return new s.LineTokens(T.tokens,D,this._languageIdCodec)}hasAccurateTokensForLine(d){const m=this.store.getFirstInvalidEndStateLineNumberOrMax();return d<m}isCheapToTokenize(d){const m=this.store.getFirstInvalidEndStateLineNumberOrMax();return d<m||d===m&&this._textModel.getLineLength(d)<2048}tokenizeHeuristically(d,m,h){if(h<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(m<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(d,h),{heuristicTokens:!1};let C=this.guessStartState(m);const b=this._textModel.getLanguageId();for(let w=m;w<=h;w++){const S=this._textModel.getLineContent(w),D=l(this._languageIdCodec,b,this.tokenizationSupport,S,!0,C);d.add(w,D.tokens),C=D.endState}return{heuristicTokens:!0}}guessStartState(d){let m=this._textModel.getLineFirstNonWhitespaceColumn(d);const h=[];let C=null;for(let S=d-1;m>1&&S>=1;S--){const D=this._textModel.getLineFirstNonWhitespaceColumn(S);if(D!==0&&D<m&&(h.push(this._textModel.getLineContent(S)),m=D,C=this.getStartState(S),C))break}C||(C=this.tokenizationSupport.getInitialState()),h.reverse();const b=this._textModel.getLanguageId();let w=C;for(const S of h)w=l(this._languageIdCodec,b,this.tokenizationSupport,S,!1,w).endState;return w}}e.TokenizerWithStateStoreAndTextModel=i;class o{constructor(d){this.lineCount=d,this._tokenizationStateStore=new g,this._invalidEndStatesLineNumbers=new u,this._invalidEndStatesLineNumbers.addRange(new _.OffsetRange(1,d+1))}getEndState(d){return this._tokenizationStateStore.getEndState(d)}setEndState(d,m){if(!m)throw new k.BugIndicatingError("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(d);const h=this._tokenizationStateStore.setEndState(d,m);return h&&d<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new _.OffsetRange(d+1,d+2)),h}acceptChange(d,m){this.lineCount+=m-d.length,this._tokenizationStateStore.acceptChange(d,m),this._invalidEndStatesLineNumbers.addRangeAndResize(new _.OffsetRange(d.startLineNumber,d.endLineNumberExclusive),m)}acceptChanges(d){for(const m of d){const[h]=(0,y.countEOL)(m.text);this.acceptChange(new f.LineRange(m.range.startLineNumber,m.range.endLineNumber+1),h+1)}}invalidateEndStateRange(d){this._invalidEndStatesLineNumbers.addRange(new _.OffsetRange(d.startLineNumber,d.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return this._invalidEndStatesLineNumbers.min===null}getStartState(d,m){return d===1?m:this.getEndState(d-1)}getFirstInvalidLine(d){const m=this.getFirstInvalidEndStateLineNumber();if(m===null)return null;const h=this.getStartState(m,d);if(!h)throw new k.BugIndicatingError("Start state must be defined");return{lineNumber:m,startState:h}}}e.TrackingTokenizationStateStore=o;class g{constructor(){this._lineEndStates=new p.FixedArray(null)}getEndState(d){return this._lineEndStates.get(d)}setEndState(d,m){const h=this._lineEndStates.get(d);return h&&h.equals(m)?!1:(this._lineEndStates.set(d,m),!0)}acceptChange(d,m){let h=d.length;m>0&&h>0&&(h--,m--),this._lineEndStates.replace(d.startLineNumber,h,m)}}e.TokenizationStateStore=g;class u{constructor(){this._ranges=[]}get min(){return this._ranges.length===0?null:this._ranges[0].start}delete(d){const m=this._ranges.findIndex(h=>h.contains(d));if(m!==-1){const h=this._ranges[m];h.start===d?h.endExclusive===d+1?this._ranges.splice(m,1):this._ranges[m]=new _.OffsetRange(d+1,h.endExclusive):h.endExclusive===d+1?this._ranges[m]=new _.OffsetRange(h.start,d):this._ranges.splice(m,1,new _.OffsetRange(h.start,d),new _.OffsetRange(d+1,h.endExclusive))}}addRange(d){_.OffsetRange.addRange(d,this._ranges)}addRangeAndResize(d,m){let h=0;for(;!(h>=this._ranges.length||d.start<=this._ranges[h].endExclusive);)h++;let C=h;for(;!(C>=this._ranges.length||d.endExclusive<this._ranges[C].start);)C++;const b=m-d.length;for(let w=C;w<this._ranges.length;w++)this._ranges[w]=this._ranges[w].delta(b);if(h===C){const w=new _.OffsetRange(d.start,d.start+m);w.isEmpty||this._ranges.splice(h,0,w)}else{const w=Math.min(d.start,this._ranges[h].start),S=Math.max(d.endExclusive,this._ranges[C-1].endExclusive),D=new _.OffsetRange(w,S+b);D.isEmpty?this._ranges.splice(h,C-h):this._ranges.splice(h,C-h,D)}}toString(){return this._ranges.map(d=>d.toString()).join(" + ")}}e.RangePriorityQueueImpl=u;function l(a,d,m,h,C,b){let w=null;if(m)try{w=m.tokenizeEncoded(h,C,b.clone())}catch(S){(0,k.onUnexpectedError)(S)}return w||(w=(0,v.nullTokenizeEncoded)(a.encodeLanguageId(d),b)),s.LineTokens.convertToEndOffset(w.tokens,h.length),w}class r{constructor(d,m){this._tokenizerWithStateStore=d,this._backgroundTokenStore=m,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._isScheduled||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._isScheduled=!0,(0,c.runWhenGlobalIdle)(d=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(d)}))}_backgroundTokenizeWithDeadline(d){const m=Date.now()+d.timeRemaining(),h=()=>{this._isDisposed||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()<m?(0,E.setTimeout0)(h):this._beginBackgroundTokenization())};h()}_backgroundTokenizeForAtLeast1ms(){const d=this._tokenizerWithStateStore._textModel.getLineCount(),m=new n.ContiguousMultilineTokensBuilder,h=L.StopWatch.create(!1);do if(h.elapsed()>1||this._tokenizeOneInvalidLine(m)>=d)break;while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(m.finalize()),this.checkFinished()}_hasLinesToTokenize(){return this._tokenizerWithStateStore?!this._tokenizerWithStateStore.store.allStatesValid():!1}_tokenizeOneInvalidLine(d){const m=this._tokenizerWithStateStore?.getFirstInvalidLine();return m?(this._tokenizerWithStateStore.updateTokensUntilLine(d,m.lineNumber),m.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(d,m){this._tokenizerWithStateStore.store.invalidateEndStateRange(new f.LineRange(d,m))}}e.DefaultBackgroundTokenizer=r}),define(oe[659],re([1,0,13,14,8,6,2,144,55,9,165,28,322,658,328,584,586]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationTextModelPart=void 0;class u extends s.TextModelPart{constructor(d,m,h,C,b,w){super(),this._languageService=d,this._languageConfigurationService=m,this._textModel=h,this._bracketPairsTextModelPart=C,this._languageId=b,this._attachedViews=w,this._semanticTokens=new g.SparseTokensStore(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new L.Emitter),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new L.Emitter),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new L.Emitter),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new l(this._languageService.languageIdCodec,this._textModel,()=>this._languageId,this._attachedViews)),this._register(this.grammarTokens.onDidChangeTokens(S=>{this._emitModelTokensChangedEvent(S)})),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState(S=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))}handleLanguageConfigurationServiceChange(d){d.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(d){if(d.isFlush)this._semanticTokens.flush();else if(!d.isEolChange)for(const m of d.changes){const[h,C,b]=(0,f.countEOL)(m.text);this._semanticTokens.acceptEdit(m.range,h,C,b,m.text.length>0?m.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(d)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(d){this.validateLineNumber(d);const m=this.grammarTokens.getLineTokens(d);return this._semanticTokens.addSparseTokens(d,m)}_emitModelTokensChangedEvent(d){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(d),this._onDidChangeTokens.fire(d))}validateLineNumber(d){if(d<1||d>this._textModel.getLineCount())throw new E.BugIndicatingError("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(d){this.validateLineNumber(d),this.grammarTokens.forceTokenization(d)}hasAccurateTokensForLine(d){return this.validateLineNumber(d),this.grammarTokens.hasAccurateTokensForLine(d)}isCheapToTokenize(d){return this.validateLineNumber(d),this.grammarTokens.isCheapToTokenize(d)}tokenizeIfCheap(d){this.validateLineNumber(d),this.grammarTokens.tokenizeIfCheap(d)}getTokenTypeIfInsertingCharacter(d,m,h){return this.grammarTokens.getTokenTypeIfInsertingCharacter(d,m,h)}tokenizeLineWithEdit(d,m,h){return this.grammarTokens.tokenizeLineWithEdit(d,m,h)}setSemanticTokens(d,m){this._semanticTokens.set(d,m),this._emitModelTokensChangedEvent({semanticTokensApplied:d!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(d,m){if(this.hasCompleteSemanticTokens())return;const h=this._textModel.validateRange(this._semanticTokens.setPartial(d,m));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:h.startLineNumber,toLineNumber:h.endLineNumber}]})}getWordAtPosition(d){this.assertNotDisposed();const m=this._textModel.validatePosition(d),h=this._textModel.getLineContent(m.lineNumber),C=this.getLineTokens(m.lineNumber),b=C.findTokenIndexAtOffset(m.column-1),[w,S]=u._findLanguageBoundaries(C,b),D=(0,p.getWordAtText)(m.column,this.getLanguageConfiguration(C.getLanguageId(b)).getWordDefinition(),h.substring(w,S),w);if(D&&D.startColumn<=d.column&&d.column<=D.endColumn)return D;if(b>0&&w===m.column-1){const[I,T]=u._findLanguageBoundaries(C,b-1),M=(0,p.getWordAtText)(m.column,this.getLanguageConfiguration(C.getLanguageId(b-1)).getWordDefinition(),h.substring(I,T),I);if(M&&M.startColumn<=d.column&&d.column<=M.endColumn)return M}return null}getLanguageConfiguration(d){return this._languageConfigurationService.getLanguageConfiguration(d)}static _findLanguageBoundaries(d,m){const h=d.getLanguageId(m);let C=0;for(let w=m;w>=0&&d.getLanguageId(w)===h;w--)C=d.getStartOffset(w);let b=d.getLineContent().length;for(let w=m,S=d.getCount();w<S&&d.getLanguageId(w)===h;w++)b=d.getEndOffset(w);return[C,b]}getWordUntilPosition(d){const m=this.getWordAtPosition(d);return m?{word:m.word.substr(0,d.column-m.startColumn),startColumn:m.startColumn,endColumn:d.column}:{word:"",startColumn:d.column,endColumn:d.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(d,m){const h=this._textModel.validatePosition(new v.Position(d,m)),C=this.getLineTokens(h.lineNumber);return C.getLanguageId(C.findTokenIndexAtOffset(h.column-1))}setLanguageId(d,m="api"){if(this._languageId===d)return;const h={oldLanguage:this._languageId,newLanguage:d,source:m};this._languageId=d,this._bracketPairsTextModelPart.handleDidChangeLanguage(h),this.grammarTokens.resetTokenization(),this._onDidChangeLanguage.fire(h),this._onDidChangeLanguageConfiguration.fire({})}}e.TokenizationTextModelPart=u;class l extends y.Disposable{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(d,m,h,C){super(),this._languageIdCodec=d,this._textModel=m,this.getLanguageId=h,this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new y.MutableDisposable),this._tokens=new o.ContiguousTokensStore(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new y.MutableDisposable),this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new L.Emitter),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new L.Emitter),this.onDidChangeTokens=this._onDidChangeTokens.event,this._attachedViewStates=this._register(new y.DisposableMap),this._register(n.TokenizationRegistry.onDidChange(b=>{const w=this.getLanguageId();b.changedLanguages.indexOf(w)!==-1&&this.resetTokenization()})),this.resetTokenization(),this._register(C.onDidChangeVisibleRanges(({view:b,state:w})=>{if(w){let S=this._attachedViewStates.get(b);S||(S=new r(()=>this.refreshRanges(S.lineRanges)),this._attachedViewStates.set(b,S)),S.handleStateChange(w)}else this._attachedViewStates.deleteAndDispose(b)}))}resetTokenization(d=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new t.TrackingTokenizationStateStore(this._textModel.getLineCount())),d&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const m=()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const b=n.TokenizationRegistry.get(this.getLanguageId());if(!b)return[null,null];let w;try{w=b.getInitialState()}catch(S){return(0,E.onUnexpectedError)(S),[null,null]}return[b,w]},[h,C]=m();if(h&&C?this._tokenizer=new t.TokenizerWithStateStoreAndTextModel(this._textModel.getLineCount(),h,this._textModel,this._languageIdCodec):this._tokenizer=null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const b={setTokens:w=>{this.setTokens(w)},backgroundTokenizationFinished:()=>{if(this._backgroundTokenizationState===2)return;const w=2;this._backgroundTokenizationState=w,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(w,S)=>{if(!this._tokenizer)return;const D=this._tokenizer.store.getFirstInvalidEndStateLineNumber();D!==null&&w>=D&&this._tokenizer?.store.setEndState(w,S)}};h&&h.createBackgroundTokenizer&&!h.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=h.createBackgroundTokenizer(this._textModel,b)),!this._backgroundTokenizer.value&&!this._textModel.isTooLargeForTokenization()&&(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new t.DefaultBackgroundTokenizer(this._tokenizer,b),this._defaultBackgroundTokenizer.handleChanges()),h?.backgroundTokenizerShouldOnlyVerifyTokens&&h.createBackgroundTokenizer?(this._debugBackgroundTokens=new o.ContiguousTokensStore(this._languageIdCodec),this._debugBackgroundStates=new t.TrackingTokenizationStateStore(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=h.createBackgroundTokenizer(this._textModel,{setTokens:w=>{this._debugBackgroundTokens?.setMultilineTokens(w,this._textModel)},backgroundTokenizationFinished(){},setEndState:(w,S)=>{this._debugBackgroundStates?.setEndState(w,S)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(d){if(d.isFlush)this.resetTokenization(!1);else if(!d.isEolChange){for(const m of d.changes){const[h,C]=(0,f.countEOL)(m.text);this._tokens.acceptEdit(m.range,h,C),this._debugBackgroundTokens?.acceptEdit(m.range,h,C)}this._debugBackgroundStates?.acceptChanges(d.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(d.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(d){const{changes:m}=this._tokens.setMultilineTokens(d,this._textModel);return m.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:m}),{changes:m}}refreshAllVisibleLineTokens(){const d=_.LineRange.joinMany([...this._attachedViewStates].map(([m,h])=>h.lineRanges));this.refreshRanges(d)}refreshRanges(d){for(const m of d)this.refreshRange(m.startLineNumber,m.endLineNumberExclusive-1)}refreshRange(d,m){if(!this._tokenizer)return;d=Math.max(1,Math.min(this._textModel.getLineCount(),d)),m=Math.min(this._textModel.getLineCount(),m);const h=new i.ContiguousMultilineTokensBuilder,{heuristicTokens:C}=this._tokenizer.tokenizeHeuristically(h,d,m),b=this.setTokens(h.finalize());if(C)for(const w of b.changes)this._backgroundTokenizer.value?.requestTokens(w.fromLineNumber,w.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(d){const m=new i.ContiguousMultilineTokensBuilder;this._tokenizer?.updateTokensUntilLine(m,d),this.setTokens(m.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(d){return this._tokenizer?this._tokenizer.hasAccurateTokensForLine(d):!0}isCheapToTokenize(d){return this._tokenizer?this._tokenizer.isCheapToTokenize(d):!0}tokenizeIfCheap(d){this.isCheapToTokenize(d)&&this.forceTokenization(d)}getLineTokens(d){const m=this._textModel.getLineContent(d),h=this._tokens.getTokens(this._textModel.getLanguageId(),d-1,m);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>d&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>d){const C=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),d-1,m);!h.equals(C)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(d)}return h}getTokenTypeIfInsertingCharacter(d,m,h){if(!this._tokenizer)return 0;const C=this._textModel.validatePosition(new v.Position(d,m));return this.forceTokenization(C.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(C,h)}tokenizeLineWithEdit(d,m,h){if(!this._tokenizer)return null;const C=this._textModel.validatePosition(d);return this.forceTokenization(C.lineNumber),this._tokenizer.tokenizeLineWithEdit(C,m,h)}get hasTokens(){return this._tokens.hasTokens}}class r extends y.Disposable{get lineRanges(){return this._lineRanges}constructor(d){super(),this._refreshTokens=d,this.runner=this._register(new k.RunOnceScheduler(()=>this.update(),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,c.equals)(this._computedLineRanges,this._lineRanges,(d,m)=>d.equals(m))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(d){this._lineRanges=d.visibleLineRanges,d.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}}),define(oe[370],re([1,0,18,6,72,22,9,4,23,28,237]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMod=void 0,e.createMonacoBaseAPI=s;class n{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(i,o){return(0,E.KeyChord)(i,o)}}e.KeyMod=n;function s(){return{editor:void 0,languages:void 0,CancellationTokenSource:c.CancellationTokenSource,Emitter:k.Emitter,KeyCode:p.KeyCode,KeyMod:n,Position:y.Position,Range:f.Range,Selection:_.Selection,SelectionDirection:p.SelectionDirection,MarkerSeverity:p.MarkerSeverity,MarkerTag:p.MarkerTag,Uri:L.URI,Token:v.Token}}}),define(oe[660],re([1,0,190,22,9,4,576,165,560,566,370,59,326,557,54,559,578]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorSimpleWorker=void 0,e.create=r;class u extends y.MirrorTextModel{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(d){const m=[];for(let h=0;h<this._lines.length;h++){const C=this._lines[h],b=this.offsetAt(new E.Position(h+1,1)),w=C.matchAll(d);for(const S of w)(S.index||S.index===0)&&(S.index=S.index+b),m.push(S)}return m}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(d){return this._lines[d-1]}getWordAtPosition(d,m){const h=(0,f.getWordAtText)(d.column,(0,f.ensureValidWordDefinition)(m),this._lines[d.lineNumber-1],0);return h?new L.Range(d.lineNumber,h.startColumn,d.lineNumber,h.endColumn):null}words(d){const m=this._lines,h=this._wordenize.bind(this);let C=0,b="",w=0,S=[];return{*[Symbol.iterator](){for(;;)if(w<S.length){const D=b.substring(S[w].start,S[w].end);w+=1,yield D}else if(C<m.length)b=m[C],S=h(b,d),w=0,C+=1;else break}}}getLineWords(d,m){const h=this._lines[d-1],C=this._wordenize(h,m),b=[];for(const w of C)b.push({word:h.substring(w.start,w.end),startColumn:w.start+1,endColumn:w.end+1});return b}_wordenize(d,m){const h=[];let C;for(m.lastIndex=0;(C=m.exec(d))&&C[0].length!==0;)h.push({start:C.index,end:C.index+C[0].length});return h}getValueInRange(d){if(d=this._validateRange(d),d.startLineNumber===d.endLineNumber)return this._lines[d.startLineNumber-1].substring(d.startColumn-1,d.endColumn-1);const m=this._eol,h=d.startLineNumber-1,C=d.endLineNumber-1,b=[];b.push(this._lines[h].substring(d.startColumn-1));for(let w=h+1;w<C;w++)b.push(this._lines[w]);return b.push(this._lines[C].substring(0,d.endColumn-1)),b.join(m)}offsetAt(d){return d=this._validatePosition(d),this._ensureLineStarts(),this._lineStarts.getPrefixSum(d.lineNumber-2)+(d.column-1)}positionAt(d){d=Math.floor(d),d=Math.max(0,d),this._ensureLineStarts();const m=this._lineStarts.getIndexOf(d),h=this._lines[m.index].length;return{lineNumber:1+m.index,column:1+Math.min(m.remainder,h)}}_validateRange(d){const m=this._validatePosition({lineNumber:d.startLineNumber,column:d.startColumn}),h=this._validatePosition({lineNumber:d.endLineNumber,column:d.endColumn});return m.lineNumber!==d.startLineNumber||m.column!==d.startColumn||h.lineNumber!==d.endLineNumber||h.column!==d.endColumn?{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:h.lineNumber,endColumn:h.column}:d}_validatePosition(d){if(!E.Position.isIPosition(d))throw new Error("bad position");let{lineNumber:m,column:h}=d,C=!1;if(m<1)m=1,h=1,C=!0;else if(m>this._lines.length)m=this._lines.length,h=this._lines[m-1].length+1,C=!0;else{const b=this._lines[m-1].length+1;h<1?(h=1,C=!0):h>b&&(h=b,C=!0)}return C?{lineNumber:m,column:h}:d}}class l{constructor(d,m){this._host=d,this._models=Object.create(null),this._foreignModuleFactory=m,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(d){return this._models[d]}_getModels(){const d=[];return Object.keys(this._models).forEach(m=>d.push(this._models[m])),d}acceptNewModel(d){this._models[d.url]=new u(k.URI.parse(d.url),d.lines,d.EOL,d.versionId)}acceptModelChanged(d,m){if(!this._models[d])return;this._models[d].onEvents(m)}acceptRemovedModel(d){this._models[d]&&delete this._models[d]}async computeUnicodeHighlights(d,m,h){const C=this._getModel(d);return C?s.UnicodeTextModelHighlighter.computeUnicodeHighlights(C,m,h):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(d,m){const h=this._getModel(d);return h?(0,g.findSectionHeaders)(h,m):[]}async computeDiff(d,m,h,C){const b=this._getModel(d),w=this._getModel(m);return!b||!w?null:l.computeDiff(b,w,h,C)}static computeDiff(d,m,h,C){const b=C==="advanced"?t.linesDiffComputers.getDefault():t.linesDiffComputers.getLegacy(),w=d.getLinesContent(),S=m.getLinesContent(),D=b.computeDiff(w,S,h),I=D.changes.length>0?!1:this._modelsAreIdentical(d,m);function T(M){return M.map(A=>[A.original.startLineNumber,A.original.endLineNumberExclusive,A.modified.startLineNumber,A.modified.endLineNumberExclusive,A.innerChanges?.map(R=>[R.originalRange.startLineNumber,R.originalRange.startColumn,R.originalRange.endLineNumber,R.originalRange.endColumn,R.modifiedRange.startLineNumber,R.modifiedRange.startColumn,R.modifiedRange.endLineNumber,R.modifiedRange.endColumn])])}return{identical:I,quitEarly:D.hitTimeout,changes:T(D.changes),moves:D.moves.map(M=>[M.lineRangeMapping.original.startLineNumber,M.lineRangeMapping.original.endLineNumberExclusive,M.lineRangeMapping.modified.startLineNumber,M.lineRangeMapping.modified.endLineNumberExclusive,T(M.changes)])}}static _modelsAreIdentical(d,m){const h=d.getLineCount(),C=m.getLineCount();if(h!==C)return!1;for(let b=1;b<=h;b++){const w=d.getLineContent(b),S=m.getLineContent(b);if(w!==S)return!1}return!0}static{this._diffLimit=1e5}async computeMoreMinimalEdits(d,m,h){const C=this._getModel(d);if(!C)return m;const b=[];let w;m=m.slice(0).sort((D,I)=>{if(D.range&&I.range)return L.Range.compareRangesUsingStarts(D.range,I.range);const T=D.range?0:1,M=I.range?0:1;return T-M});let S=0;for(let D=1;D<m.length;D++)L.Range.getEndPosition(m[S].range).equals(L.Range.getStartPosition(m[D].range))?(m[S].range=L.Range.fromPositions(L.Range.getStartPosition(m[S].range),L.Range.getEndPosition(m[D].range)),m[S].text+=m[D].text):(S++,m[S]=m[D]);m.length=S+1;for(let{range:D,text:I,eol:T}of m){if(typeof T=="number"&&(w=T),L.Range.isEmpty(D)&&!I)continue;const M=C.getValueInRange(D);if(I=I.replace(/\r\n|\n|\r/g,C.eol),M===I)continue;if(Math.max(I.length,M.length)>l._diffLimit){b.push({range:D,text:I});continue}const A=(0,c.stringDiff)(M,I,h),R=C.offsetAt(L.Range.lift(D).getStartPosition());for(const N of A){const O=C.positionAt(R+N.originalStart),x=C.positionAt(R+N.originalStart+N.originalLength),F={text:I.substr(N.modifiedStart,N.modifiedLength),range:{startLineNumber:O.lineNumber,startColumn:O.column,endLineNumber:x.lineNumber,endColumn:x.column}};C.getValueInRange(F.range)!==F.text&&b.push(F)}}return typeof w=="number"&&b.push({eol:w,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),b}async computeLinks(d){const m=this._getModel(d);return m?(0,_.computeLinks)(m):null}async computeDefaultDocumentColors(d){const m=this._getModel(d);return m?(0,o.computeDefaultDocumentColors)(m):null}static{this._suggestionsLimit=1e4}async textualSuggest(d,m,h,C){const b=new n.StopWatch,w=new RegExp(h,C),S=new Set;e:for(const D of d){const I=this._getModel(D);if(I){for(const T of I.words(w))if(!(T===m||!isNaN(Number(T)))&&(S.add(T),S.size>l._suggestionsLimit))break e}}return{words:Array.from(S),duration:b.elapsed()}}async computeWordRanges(d,m,h,C){const b=this._getModel(d);if(!b)return Object.create(null);const w=new RegExp(h,C),S=Object.create(null);for(let D=m.startLineNumber;D<m.endLineNumber;D++){const I=b.getLineWords(D,w);for(const T of I){if(!isNaN(Number(T.word)))continue;let M=S[T.word];M||(M=[],S[T.word]=M),M.push({startLineNumber:D,startColumn:T.startColumn,endLineNumber:D,endColumn:T.endColumn})}}return S}async navigateValueSet(d,m,h,C,b){const w=this._getModel(d);if(!w)return null;const S=new RegExp(C,b);m.startColumn===m.endColumn&&(m={startLineNumber:m.startLineNumber,startColumn:m.startColumn,endLineNumber:m.endLineNumber,endColumn:m.endColumn+1});const D=w.getValueInRange(m),I=w.getWordAtPosition({lineNumber:m.startLineNumber,column:m.startColumn},S);if(!I)return null;const T=w.getValueInRange(I);return v.BasicInplaceReplace.INSTANCE.navigateValueSet(m,D,I,T,h)}loadForeignModule(d,m,h){const C=(S,D)=>this._host.fhr(S,D),w={host:(0,i.createProxyObject)(h,C),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(w,m),Promise.resolve((0,i.getAllMethodNames)(this._foreignModule))):new Promise((S,D)=>{ae([d],I=>{this._foreignModule=I.create(w,m),S((0,i.getAllMethodNames)(this._foreignModule))},D)})}fmr(d,m){if(!this._foreignModule||typeof this._foreignModule[d]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+d));try{return Promise.resolve(this._foreignModule[d].apply(this._foreignModule,m))}catch(h){return Promise.reject(h)}}}e.EditorSimpleWorker=l;function r(a){return new l(a,null)}typeof importScripts=="function"&&(globalThis.monaco=(0,p.createMonacoBaseAPI)())}),define(oe[661],re([1,0,158,16]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeSemanticTokensDto=y;function E(_){for(let v=0,p=_.length;v<p;v+=4){const n=_[v+0],s=_[v+1],t=_[v+2],i=_[v+3];_[v+0]=i,_[v+1]=t,_[v+2]=s,_[v+3]=n}}function L(_){const v=new Uint8Array(_.buffer,_.byteOffset,_.length*4);return k.isLittleEndian()||E(v),c.VSBuffer.wrap(v)}function y(_){const v=new Uint32Array(f(_));let p=0;if(v[p++]=_.id,_.type==="full")v[p++]=1,v[p++]=_.data.length,v.set(_.data,p),p+=_.data.length;else{v[p++]=2,v[p++]=_.deltas.length;for(const n of _.deltas)v[p++]=n.start,v[p++]=n.deleteCount,n.data?(v[p++]=n.data.length,v.set(n.data,p),p+=n.data.length):v[p++]=0}return L(v)}function f(_){let v=0;if(v+=2,_.type==="full")v+=1+_.data.length;else{v+=1,v+=3*_.deltas.length;for(const p of _.deltas)p.data&&(v+=p.data.length)}return v}}),define(oe[106],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServicesNLS=e.ToggleHighContrastNLS=e.StandaloneCodeEditorNLS=e.QuickOutlineNLS=e.QuickCommandNLS=e.QuickHelpNLS=e.GoToLineNLS=e.InspectTokensNLS=void 0;var k;(function(n){n.inspectTokensAction=c.localize(1737,"Developer: Inspect Tokens")})(k||(e.InspectTokensNLS=k={}));var E;(function(n){n.gotoLineActionLabel=c.localize(1738,"Go to Line/Column...")})(E||(e.GoToLineNLS=E={}));var L;(function(n){n.helpQuickAccessActionLabel=c.localize(1739,"Show all Quick Access Providers")})(L||(e.QuickHelpNLS=L={}));var y;(function(n){n.quickCommandActionLabel=c.localize(1740,"Command Palette"),n.quickCommandHelp=c.localize(1741,"Show And Run Commands")})(y||(e.QuickCommandNLS=y={}));var f;(function(n){n.quickOutlineActionLabel=c.localize(1742,"Go to Symbol..."),n.quickOutlineByCategoryActionLabel=c.localize(1743,"Go to Symbol by Category...")})(f||(e.QuickOutlineNLS=f={}));var _;(function(n){n.editorViewAccessibleLabel=c.localize(1744,"Editor content"),n.accessibilityHelpMessage=c.localize(1745,"Press Alt+F1 for Accessibility Options.")})(_||(e.StandaloneCodeEditorNLS=_={}));var v;(function(n){n.toggleHighContrast=c.localize(1746,"Toggle High Contrast Theme")})(v||(e.ToggleHighContrastNLS=v={}));var p;(function(n){n.bulkEditServiceSummary=c.localize(1747,"Made {0} edits in {1} files")})(p||(e.StandaloneServicesNLS=p={}))}),define(oe[135],re([1,0,3,11,115,149,594]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenderLineOutput2=e.RenderLineOutput=e.CharacterMapping=e.DomPosition=e.RenderLineInput=e.LineRange=void 0,e.renderViewLine=s,e.renderViewLine2=i;class f{constructor(S,D){this.startOffset=S,this.endOffset=D}equals(S){return this.startOffset===S.startOffset&&this.endOffset===S.endOffset}}e.LineRange=f;class _{constructor(S,D,I,T,M,A,R,N,O,x,F,W,z,q,H,K,U,Y,Q){this.useMonospaceOptimizations=S,this.canUseHalfwidthRightwardsArrow=D,this.lineContent=I,this.continuesWithWrappedLine=T,this.isBasicASCII=M,this.containsRTL=A,this.fauxIndentLength=R,this.lineTokens=N,this.lineDecorations=O.sort(L.LineDecoration.compare),this.tabSize=x,this.startVisibleColumn=F,this.spaceWidth=W,this.stopRenderingLineAfter=H,this.renderWhitespace=K==="all"?4:K==="boundary"?1:K==="selection"?2:K==="trailing"?3:0,this.renderControlCharacters=U,this.fontLigatures=Y,this.selectionsOnLine=Q&&Q.sort((P,te)=>P.startOffset<te.startOffset?-1:1);const X=Math.abs(q-W),G=Math.abs(z-W);X<G?(this.renderSpaceWidth=q,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=z,this.renderSpaceCharCode=183)}sameSelection(S){if(this.selectionsOnLine===null)return S===null;if(S===null||S.length!==this.selectionsOnLine.length)return!1;for(let D=0;D<this.selectionsOnLine.length;D++)if(!this.selectionsOnLine[D].equals(S[D]))return!1;return!0}equals(S){return this.useMonospaceOptimizations===S.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===S.canUseHalfwidthRightwardsArrow&&this.lineContent===S.lineContent&&this.continuesWithWrappedLine===S.continuesWithWrappedLine&&this.isBasicASCII===S.isBasicASCII&&this.containsRTL===S.containsRTL&&this.fauxIndentLength===S.fauxIndentLength&&this.tabSize===S.tabSize&&this.startVisibleColumn===S.startVisibleColumn&&this.spaceWidth===S.spaceWidth&&this.renderSpaceWidth===S.renderSpaceWidth&&this.renderSpaceCharCode===S.renderSpaceCharCode&&this.stopRenderingLineAfter===S.stopRenderingLineAfter&&this.renderWhitespace===S.renderWhitespace&&this.renderControlCharacters===S.renderControlCharacters&&this.fontLigatures===S.fontLigatures&&L.LineDecoration.equalsArr(this.lineDecorations,S.lineDecorations)&&this.lineTokens.equals(S.lineTokens)&&this.sameSelection(S.selectionsOnLine)}}e.RenderLineInput=_;class v{constructor(S,D){this.partIndex=S,this.charIndex=D}}e.DomPosition=v;class p{static getPartIndex(S){return(S&4294901760)>>>16}static getCharIndex(S){return(S&65535)>>>0}constructor(S,D){this.length=S,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(S,D,I,T){const M=(D<<16|I<<0)>>>0;this._data[S-1]=M,this._horizontalOffset[S-1]=T}getHorizontalOffset(S){return this._horizontalOffset.length===0?0:this._horizontalOffset[S-1]}charOffsetToPartData(S){return this.length===0?0:S<0?this._data[0]:S>=this.length?this._data[this.length-1]:this._data[S]}getDomPosition(S){const D=this.charOffsetToPartData(S-1),I=p.getPartIndex(D),T=p.getCharIndex(D);return new v(I,T)}getColumn(S,D){return this.partDataToCharOffset(S.partIndex,D,S.charIndex)+1}partDataToCharOffset(S,D,I){if(this.length===0)return 0;const T=(S<<16|I<<0)>>>0;let M=0,A=this.length-1;for(;M+1<A;){const H=M+A>>>1,K=this._data[H];if(K===T)return H;K>T?A=H:M=H}if(M===A)return M;const R=this._data[M],N=this._data[A];if(R===T)return M;if(N===T)return A;const O=p.getPartIndex(R),x=p.getCharIndex(R),F=p.getPartIndex(N);let W;O!==F?W=D:W=p.getCharIndex(N);const z=I-x,q=W-I;return z<=q?M:A}}e.CharacterMapping=p;class n{constructor(S,D,I){this._renderLineOutputBrand=void 0,this.characterMapping=S,this.containsRTL=D,this.containsForeignElements=I}}e.RenderLineOutput=n;function s(w,S){if(w.lineContent.length===0){if(w.lineDecorations.length>0){S.appendString("<span>");let D=0,I=0,T=0;for(const A of w.lineDecorations)(A.type===1||A.type===2)&&(S.appendString('<span class="'),S.appendString(A.className),S.appendString('"></span>'),A.type===1&&(T|=1,D++),A.type===2&&(T|=2,I++));S.appendString("</span>");const M=new p(1,D+I);return M.setColumnInfo(1,D,0,0),new n(M,!1,T)}return S.appendString("<span><span></span></span>"),new n(new p(0,0),!1,0)}return h(g(w),S)}class t{constructor(S,D,I,T){this.characterMapping=S,this.html=D,this.containsRTL=I,this.containsForeignElements=T}}e.RenderLineOutput2=t;function i(w){const S=new E.StringBuilder(1e4),D=s(w,S);return new t(D.characterMapping,S.build(),D.containsRTL,D.containsForeignElements)}class o{constructor(S,D,I,T,M,A,R,N,O,x,F,W,z,q,H,K){this.fontIsMonospace=S,this.canUseHalfwidthRightwardsArrow=D,this.lineContent=I,this.len=T,this.isOverflowing=M,this.overflowingCharCount=A,this.parts=R,this.containsForeignElements=N,this.fauxIndentLength=O,this.tabSize=x,this.startVisibleColumn=F,this.containsRTL=W,this.spaceWidth=z,this.renderSpaceCharCode=q,this.renderWhitespace=H,this.renderControlCharacters=K}}function g(w){const S=w.lineContent;let D,I,T;w.stopRenderingLineAfter!==-1&&w.stopRenderingLineAfter<S.length?(D=!0,I=S.length-w.stopRenderingLineAfter,T=w.stopRenderingLineAfter):(D=!1,I=0,T=S.length);let M=u(S,w.containsRTL,w.lineTokens,w.fauxIndentLength,T);w.renderControlCharacters&&!w.isBasicASCII&&(M=a(S,M)),(w.renderWhitespace===4||w.renderWhitespace===1||w.renderWhitespace===2&&w.selectionsOnLine||w.renderWhitespace===3&&!w.continuesWithWrappedLine)&&(M=d(w,S,T,M));let A=0;if(w.lineDecorations.length>0){for(let R=0,N=w.lineDecorations.length;R<N;R++){const O=w.lineDecorations[R];O.type===3||O.type===1?A|=1:O.type===2&&(A|=2)}M=m(S,T,M,w.lineDecorations)}return w.containsRTL||(M=l(S,M,!w.isBasicASCII||w.fontLigatures)),new o(w.useMonospaceOptimizations,w.canUseHalfwidthRightwardsArrow,S,T,D,I,M,A,w.fauxIndentLength,w.tabSize,w.startVisibleColumn,w.containsRTL,w.spaceWidth,w.renderSpaceCharCode,w.renderWhitespace,w.renderControlCharacters)}function u(w,S,D,I,T){const M=[];let A=0;I>0&&(M[A++]=new y.LinePart(I,"",0,!1));let R=I;for(let N=0,O=D.getCount();N<O;N++){const x=D.getEndOffset(N);if(x<=I)continue;const F=D.getClassName(N);if(x>=T){const z=S?k.containsRTL(w.substring(R,T)):!1;M[A++]=new y.LinePart(T,F,0,z);break}const W=S?k.containsRTL(w.substring(R,x)):!1;M[A++]=new y.LinePart(x,F,0,W),R=x}return M}function l(w,S,D){let I=0;const T=[];let M=0;if(D)for(let A=0,R=S.length;A<R;A++){const N=S[A],O=N.endIndex;if(I+50<O){const x=N.type,F=N.metadata,W=N.containsRTL;let z=-1,q=I;for(let H=I;H<O;H++)w.charCodeAt(H)===32&&(z=H),z!==-1&&H-q>=50&&(T[M++]=new y.LinePart(z+1,x,F,W),q=z+1,z=-1);q!==O&&(T[M++]=new y.LinePart(O,x,F,W))}else T[M++]=N;I=O}else for(let A=0,R=S.length;A<R;A++){const N=S[A],O=N.endIndex,x=O-I;if(x>50){const F=N.type,W=N.metadata,z=N.containsRTL,q=Math.ceil(x/50);for(let H=1;H<q;H++){const K=I+H*50;T[M++]=new y.LinePart(K,F,W,z)}T[M++]=new y.LinePart(O,F,W,z)}else T[M++]=N;I=O}return T}function r(w){return w<32?w!==9:w===127||w>=8234&&w<=8238||w>=8294&&w<=8297||w>=8206&&w<=8207||w===1564}function a(w,S){const D=[];let I=new y.LinePart(0,"",0,!1),T=0;for(const M of S){const A=M.endIndex;for(;T<A;T++){const R=w.charCodeAt(T);r(R)&&(T>I.endIndex&&(I=new y.LinePart(T,M.type,M.metadata,M.containsRTL),D.push(I)),I=new y.LinePart(T+1,"mtkcontrol",M.metadata,!1),D.push(I))}T>I.endIndex&&(I=new y.LinePart(A,M.type,M.metadata,M.containsRTL),D.push(I))}return D}function d(w,S,D,I){const T=w.continuesWithWrappedLine,M=w.fauxIndentLength,A=w.tabSize,R=w.startVisibleColumn,N=w.useMonospaceOptimizations,O=w.selectionsOnLine,x=w.renderWhitespace===1,F=w.renderWhitespace===3,W=w.renderSpaceWidth!==w.spaceWidth,z=[];let q=0,H=0,K=I[H].type,U=I[H].containsRTL,Y=I[H].endIndex;const Q=I.length;let X=!1,G=k.firstNonWhitespaceIndex(S),P;G===-1?(X=!0,G=D,P=D):P=k.lastNonWhitespaceIndex(S);let te=!1,se=0,ue=O&&O[se],ge=R%A;for(let ce=M;ce<D;ce++){const ie=S.charCodeAt(ce);ue&&ce>=ue.endOffset&&(se++,ue=O&&O[se]);let ne;if(ce<G||ce>P)ne=!0;else if(ie===9)ne=!0;else if(ie===32)if(x)if(te)ne=!0;else{const J=ce+1<D?S.charCodeAt(ce+1):0;ne=J===32||J===9}else ne=!0;else ne=!1;if(ne&&O&&(ne=!!ue&&ue.startOffset<=ce&&ue.endOffset>ce),ne&&F&&(ne=X||ce>P),ne&&U&&ce>=G&&ce<=P&&(ne=!1),te){if(!ne||!N&&ge>=A){if(W){const J=q>0?z[q-1].endIndex:M;for(let B=J+1;B<=ce;B++)z[q++]=new y.LinePart(B,"mtkw",1,!1)}else z[q++]=new y.LinePart(ce,"mtkw",1,!1);ge=ge%A}}else(ce===Y||ne&&ce>M)&&(z[q++]=new y.LinePart(ce,K,0,U),ge=ge%A);for(ie===9?ge=A:k.isFullWidthCharacter(ie)?ge+=2:ge++,te=ne;ce===Y&&(H++,H<Q);)K=I[H].type,U=I[H].containsRTL,Y=I[H].endIndex}let pe=!1;if(te)if(T&&x){const ce=D>0?S.charCodeAt(D-1):0,ie=D>1?S.charCodeAt(D-2):0;ce===32&&ie!==32&&ie!==9||(pe=!0)}else pe=!0;if(pe)if(W){const ce=q>0?z[q-1].endIndex:M;for(let ie=ce+1;ie<=D;ie++)z[q++]=new y.LinePart(ie,"mtkw",1,!1)}else z[q++]=new y.LinePart(D,"mtkw",1,!1);else z[q++]=new y.LinePart(D,K,0,U);return z}function m(w,S,D,I){I.sort(L.LineDecoration.compare);const T=L.LineDecorationsNormalizer.normalize(w,I),M=T.length;let A=0;const R=[];let N=0,O=0;for(let F=0,W=D.length;F<W;F++){const z=D[F],q=z.endIndex,H=z.type,K=z.metadata,U=z.containsRTL;for(;A<M&&T[A].startOffset<q;){const Y=T[A];if(Y.startOffset>O&&(O=Y.startOffset,R[N++]=new y.LinePart(O,H,K,U)),Y.endOffset+1<=q)O=Y.endOffset+1,R[N++]=new y.LinePart(O,H+" "+Y.className,K|Y.metadata,U),A++;else{O=q,R[N++]=new y.LinePart(O,H+" "+Y.className,K|Y.metadata,U);break}}q>O&&(O=q,R[N++]=new y.LinePart(O,H,K,U))}const x=D[D.length-1].endIndex;if(A<M&&T[A].startOffset===x)for(;A<M&&T[A].startOffset===x;){const F=T[A];R[N++]=new y.LinePart(O,F.className,F.metadata,!1),A++}return R}function h(w,S){const D=w.fontIsMonospace,I=w.canUseHalfwidthRightwardsArrow,T=w.containsForeignElements,M=w.lineContent,A=w.len,R=w.isOverflowing,N=w.overflowingCharCount,O=w.parts,x=w.fauxIndentLength,F=w.tabSize,W=w.startVisibleColumn,z=w.containsRTL,q=w.spaceWidth,H=w.renderSpaceCharCode,K=w.renderWhitespace,U=w.renderControlCharacters,Y=new p(A+1,O.length);let Q=!1,X=0,G=W,P=0,te=0,se=0;z?S.appendString('<span dir="ltr">'):S.appendString("<span>");for(let ue=0,ge=O.length;ue<ge;ue++){const pe=O[ue],ce=pe.endIndex,ie=pe.type,ne=pe.containsRTL,J=K!==0&&pe.isWhitespace(),B=J&&!D&&(ie==="mtkw"||!T),j=X===ce&&pe.isPseudoAfter();if(P=0,S.appendString("<span "),ne&&S.appendString('style="unicode-bidi:isolate" '),S.appendString('class="'),S.appendString(B?"mtkz":ie),S.appendASCIICharCode(34),J){let V=0;{let $=X,Z=G;for(;$<ce;$++){const le=(M.charCodeAt($)===9?F-Z%F:1)|0;V+=le,$>=x&&(Z+=le)}}for(B&&(S.appendString(' style="width:'),S.appendString(String(q*V)),S.appendString('px"')),S.appendASCIICharCode(62);X<ce;X++){Y.setColumnInfo(X+1,ue-se,P,te),se=0;const $=M.charCodeAt(X);let Z,ee;if($===9){Z=F-G%F|0,ee=Z,!I||ee>1?S.appendCharCode(8594):S.appendCharCode(65515);for(let le=2;le<=ee;le++)S.appendCharCode(160)}else Z=2,ee=1,S.appendCharCode(H),S.appendCharCode(8204);P+=Z,te+=ee,X>=x&&(G+=ee)}}else for(S.appendASCIICharCode(62);X<ce;X++){Y.setColumnInfo(X+1,ue-se,P,te),se=0;const V=M.charCodeAt(X);let $=1,Z=1;switch(V){case 9:$=F-G%F,Z=$;for(let ee=1;ee<=$;ee++)S.appendCharCode(160);break;case 32:S.appendCharCode(160);break;case 60:S.appendString("<");break;case 62:S.appendString(">");break;case 38:S.appendString("&");break;case 0:U?S.appendCharCode(9216):S.appendString("�");break;case 65279:case 8232:case 8233:case 133:S.appendCharCode(65533);break;default:k.isFullWidthCharacter(V)&&Z++,U&&V<32?S.appendCharCode(9216+V):U&&V===127?S.appendCharCode(9249):U&&r(V)?(S.appendString("[U+"),S.appendString(C(V)),S.appendString("]"),$=8,Z=$):S.appendCharCode(V)}P+=$,te+=Z,X>=x&&(G+=Z)}j?se++:se=0,X>=A&&!Q&&pe.isPseudoAfter()&&(Q=!0,Y.setColumnInfo(X+1,ue,P,te)),S.appendString("</span>")}return Q||Y.setColumnInfo(A+1,O.length-1,P,te),R&&(S.appendString('<span class="mtkoverflow">'),S.appendString(c.localize(1240,"Show more ({0})",b(N))),S.appendString("</span>")),S.appendString("</span>"),new n(Y,z,T)}function C(w){return w.toString(16).toUpperCase().padStart(4,"0")}function b(w){return w<1024?c.localize(1241,"{0} chars",w):w<1024*1024?`${(w/1024).toFixed(1)} KB`:`${(w/1024/1024).toFixed(1)} MB`}}),define(oe[662],re([1,0,102,74,37,115,149,135,95]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenderOptions=e.LineSource=void 0,e.renderLines=p;const v=(0,c.createTrustedTypesPolicy)("diffEditorWidget",{createHTML:i=>i});function p(i,o,g,u){(0,k.applyFontInfo)(u,o.fontInfo);const l=g.length>0,r=new L.StringBuilder(1e4);let a=0,d=0;const m=[];for(let w=0;w<i.lineTokens.length;w++){const S=w+1,D=i.lineTokens[w],I=i.lineBreakData[w],T=y.LineDecoration.filter(g,S,1,Number.MAX_SAFE_INTEGER);if(I){let M=0;for(const A of I.breakOffsets){const R=D.sliceAndInflate(M,A,0);a=Math.max(a,t(d,R,y.LineDecoration.extractWrapped(T,M,A),l,i.mightContainNonBasicASCII,i.mightContainRTL,o,r)),d++,M=A}m.push(I.breakOffsets.length)}else m.push(1),a=Math.max(a,t(d,D,T,l,i.mightContainNonBasicASCII,i.mightContainRTL,o,r)),d++}a+=o.scrollBeyondLastColumn;const h=r.build(),C=v?v.createHTML(h):h;u.innerHTML=C;const b=a*o.typicalHalfwidthCharacterWidth;return{heightInLines:d,minWidthInPx:b,viewLineCounts:m}}class n{constructor(o,g,u,l){this.lineTokens=o,this.lineBreakData=g,this.mightContainNonBasicASCII=u,this.mightContainRTL=l}}e.LineSource=n;class s{static fromEditor(o){const g=o.getOptions(),u=g.get(50),l=g.get(146);return new s(o.getModel()?.getOptions().tabSize||0,u,g.get(33),u.typicalHalfwidthCharacterWidth,g.get(105),g.get(67),l.decorationsWidth,g.get(118),g.get(100),g.get(95),g.get(51))}constructor(o,g,u,l,r,a,d,m,h,C,b){this.tabSize=o,this.fontInfo=g,this.disableMonospaceOptimizations=u,this.typicalHalfwidthCharacterWidth=l,this.scrollBeyondLastColumn=r,this.lineHeight=a,this.lineDecorationsWidth=d,this.stopRenderingLineAfter=m,this.renderWhitespace=h,this.renderControlCharacters=C,this.fontLigatures=b}}e.RenderOptions=s;function t(i,o,g,u,l,r,a,d){d.appendString('<div class="view-line'),u||d.appendString(" char-delete"),d.appendString('" style="top:'),d.appendString(String(i*a.lineHeight)),d.appendString('px;width:1000000px;">');const m=o.getLineContent(),h=_.ViewLineRenderingData.isBasicASCII(m,l),C=_.ViewLineRenderingData.containsRTL(m,h,r),b=(0,f.renderViewLine)(new f.RenderLineInput(a.fontInfo.isMonospace&&!a.disableMonospaceOptimizations,a.fontInfo.canUseHalfwidthRightwardsArrow,m,!1,h,C,0,o,g,a.tabSize,0,a.fontInfo.spaceWidth,a.fontInfo.middotWidth,a.fontInfo.wsmiddotWidth,a.stopRenderingLineAfter,a.renderWhitespace,a.renderControlCharacters,a.fontLigatures!==E.EditorFontLigatures.OFF,null),d);return d.appendString("</div>"),b.characterMapping.getHorizontalOffset(b.characterMapping.length)}}),define(oe[371],re([1,0,6,2,310,28]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MinimapTokensColorTracker=void 0;class y extends k.Disposable{static{this._INSTANCE=null}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,k.markAsSingleton)(new y)),this._INSTANCE}constructor(){super(),this._onDidChange=new c.Emitter,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(L.TokenizationRegistry.onDidChange(_=>{_.changedColorMap&&this._updateColorMap()}))}_updateColorMap(){const _=L.TokenizationRegistry.getColorMap();if(!_){this._colors=[E.RGBA8.Empty],this._backgroundIsLight=!0;return}this._colors=[E.RGBA8.Empty];for(let p=1;p<_.length;p++){const n=_[p].rgba;this._colors[p]=new E.RGBA8(n.r,n.g,n.b,Math.round(n.a*255))}const v=_[2].getRelativeLuminance();this._backgroundIsLight=v>=.5,this._onDidChange.fire(void 0)}getColor(_){return(_<1||_>=this._colors.length)&&(_=2),this._colors[_]}backgroundIsLight(){return this._backgroundIsLight}}e.MinimapTokensColorTracker=y}),define(oe[372],re([1,0,9,4,95,37]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewModelDecorations=void 0,e.isModelDecorationVisible=f,e.isModelDecorationInComment=_,e.isModelDecorationInString=v;class y{constructor(s,t,i,o,g){this.editorId=s,this.model=t,this.configuration=i,this._linesCollection=o,this._coordinatesConverter=g,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(s){const t=s.id;let i=this._decorationsCache[t];if(!i){const o=s.range,g=s.options;let u;if(g.isWholeLine){const l=this._coordinatesConverter.convertModelPositionToViewPosition(new c.Position(o.startLineNumber,1),0,!1,!0),r=this._coordinatesConverter.convertModelPositionToViewPosition(new c.Position(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber)),1);u=new k.Range(l.lineNumber,l.column,r.lineNumber,r.column)}else u=this._coordinatesConverter.convertModelRangeToViewRange(o,1);i=new E.ViewModelDecoration(u,g),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(s){return this._getDecorationsInRange(s,!0,!1).decorations}getDecorationsViewportData(s){let t=this._cachedModelDecorationsResolver!==null;return t=t&&s.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(s,!1,!1),this._cachedModelDecorationsResolverViewRange=s),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(s,t=!1,i=!1){const o=new k.Range(s,this._linesCollection.getViewLineMinColumn(s),s,this._linesCollection.getViewLineMaxColumn(s));return this._getDecorationsInRange(o,t,i).inlineDecorations[0]}_getDecorationsInRange(s,t,i){const o=this._linesCollection.getDecorationsInRange(s,this.editorId,(0,L.filterValidationDecorations)(this.configuration.options),t,i),g=s.startLineNumber,u=s.endLineNumber,l=[];let r=0;const a=[];for(let d=g;d<=u;d++)a[d-g]=[];for(let d=0,m=o.length;d<m;d++){const h=o[d],C=h.options;if(!f(this.model,h))continue;const b=this._getOrCreateViewModelDecoration(h),w=b.range;if(l[r++]=b,C.inlineClassName){const S=new E.InlineDecoration(w,C.inlineClassName,C.inlineClassNameAffectsLetterSpacing?3:0),D=Math.max(g,w.startLineNumber),I=Math.min(u,w.endLineNumber);for(let T=D;T<=I;T++)a[T-g].push(S)}if(C.beforeContentClassName&&g<=w.startLineNumber&&w.startLineNumber<=u){const S=new E.InlineDecoration(new k.Range(w.startLineNumber,w.startColumn,w.startLineNumber,w.startColumn),C.beforeContentClassName,1);a[w.startLineNumber-g].push(S)}if(C.afterContentClassName&&g<=w.endLineNumber&&w.endLineNumber<=u){const S=new E.InlineDecoration(new k.Range(w.endLineNumber,w.endColumn,w.endLineNumber,w.endColumn),C.afterContentClassName,2);a[w.endLineNumber-g].push(S)}}return{decorations:l,inlineDecorations:a}}}e.ViewModelDecorations=y;function f(n,s){return!(s.options.hideInCommentTokens&&_(n,s)||s.options.hideInStringTokens&&v(n,s))}function _(n,s){return p(n,s.range,t=>t===1)}function v(n,s){return p(n,s.range,t=>t===2)}function p(n,s,t){for(let i=s.startLineNumber;i<=s.endLineNumber;i++){const o=n.tokenization.getLineTokens(i),g=i===s.startLineNumber,u=i===s.endLineNumber;let l=g?o.findTokenIndexAtOffset(s.startColumn-1):0;for(;l<o.getCount()&&!(u&&o.getStartOffset(l)>s.endColumn-1);){if(!t(o.getStandardTokenType(l)))return!1;l++}}return!0}}),define(oe[208],re([1,0,6,2,16]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClickLinkGesture=e.ClickLinkOptions=e.ClickLinkKeyboardEvent=e.ClickLinkMouseEvent=void 0;function L(n,s){return!!n[s]}class y{constructor(s,t){this.target=s.target,this.isLeftClick=s.event.leftButton,this.isMiddleClick=s.event.middleButton,this.isRightClick=s.event.rightButton,this.hasTriggerModifier=L(s.event,t.triggerModifier),this.hasSideBySideModifier=L(s.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=s.event.detail<=1}}e.ClickLinkMouseEvent=y;class f{constructor(s,t){this.keyCodeIsTriggerKey=s.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=s.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=L(s,t.triggerModifier)}}e.ClickLinkKeyboardEvent=f;class _{constructor(s,t,i,o){this.triggerKey=s,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=o}equals(s){return this.triggerKey===s.triggerKey&&this.triggerModifier===s.triggerModifier&&this.triggerSideBySideKey===s.triggerSideBySideKey&&this.triggerSideBySideModifier===s.triggerSideBySideModifier}}e.ClickLinkOptions=_;function v(n){return n==="altKey"?E.isMacintosh?new _(57,"metaKey",6,"altKey"):new _(5,"ctrlKey",6,"altKey"):E.isMacintosh?new _(6,"altKey",57,"metaKey"):new _(6,"altKey",5,"ctrlKey")}class p extends k.Disposable{constructor(s,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new c.Emitter),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new c.Emitter),this.onExecute=this._onExecute.event,this._onCancel=this._register(new c.Emitter),this.onCancel=this._onCancel.event,this._editor=s,this._extractLineNumberFromMouseEvent=t?.extractLineNumberFromMouseEvent??(i=>i.target.position?i.target.position.lineNumber:0),this._opts=v(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(78)){const o=v(this._editor.getOption(78));if(this._opts.equals(o))return;this._opts=o,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new y(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new y(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new y(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new f(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new f(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(s){s.selection&&s.selection.startColumn!==s.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(s){this._lastMouseMoveEvent=s,this._onMouseMoveOrRelevantKeyDown.fire([s,null])}_onEditorMouseDown(s){this._hasTriggerKeyOnMouseDown=s.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(s)}_onEditorMouseUp(s){const t=this._extractLineNumberFromMouseEvent(s);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(s)}_onEditorKeyDown(s){this._lastMouseMoveEvent&&(s.keyCodeIsTriggerKey||s.keyCodeIsSideBySideKey&&s.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,s]):s.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(s){s.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}e.ClickLinkGesture=p}),define(oe[177],re([1,0,8,6,187,2,45,51,11,4,3]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencesModel=e.FileReferences=e.FilePreview=e.OneReference=void 0;class n{constructor(g,u,l,r){this.isProviderFirst=g,this.parent=u,this.link=l,this._rangeCallback=r,this.id=E.defaultGenerator.nextId()}get uri(){return this.link.uri}get range(){return this._range??this.link.targetSelectionRange??this.link.range}set range(g){this._range=g,this._rangeCallback(this)}get ariaMessage(){const g=this.parent.getPreview(this)?.preview(this.range);return g?(0,p.localize)(704,"{0} in {1} on line {2} at column {3}",g.value,(0,f.basename)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,p.localize)(703,"in {0} on line {1} at column {2}",(0,f.basename)(this.uri),this.range.startLineNumber,this.range.startColumn)}}e.OneReference=n;class s{constructor(g){this._modelReference=g}dispose(){this._modelReference.dispose()}preview(g,u=8){const l=this._modelReference.object.textEditorModel;if(!l)return;const{startLineNumber:r,startColumn:a,endLineNumber:d,endColumn:m}=g,h=l.getWordUntilPosition({lineNumber:r,column:a-u}),C=new v.Range(r,h.startColumn,r,a),b=new v.Range(d,m,d,1073741824),w=l.getValueInRange(C).replace(/^\s+/,""),S=l.getValueInRange(g),D=l.getValueInRange(b).replace(/\s+$/,"");return{value:w+S+D,highlight:{start:w.length,end:w.length+S.length}}}}e.FilePreview=s;class t{constructor(g,u){this.parent=g,this.uri=u,this.children=[],this._previews=new y.ResourceMap}dispose(){(0,L.dispose)(this._previews.values()),this._previews.clear()}getPreview(g){return this._previews.get(g.uri)}get ariaMessage(){const g=this.children.length;return g===1?(0,p.localize)(705,"1 symbol in {0}, full path {1}",(0,f.basename)(this.uri),this.uri.fsPath):(0,p.localize)(706,"{0} symbols in {1}, full path {2}",g,(0,f.basename)(this.uri),this.uri.fsPath)}async resolve(g){if(this._previews.size!==0)return this;for(const u of this.children)if(!this._previews.has(u.uri))try{const l=await g.createModelReference(u.uri);this._previews.set(u.uri,new s(l))}catch(l){(0,c.onUnexpectedError)(l)}return this}}e.FileReferences=t;class i{constructor(g,u){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new k.Emitter,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=g,this._title=u;const[l]=g;g.sort(i._compareReferences);let r;for(const a of g)if((!r||!f.extUri.isEqual(r.uri,a.uri,!0))&&(r=new t(this,a.uri),this.groups.push(r)),r.children.length===0||i._compareReferences(a,r.children[r.children.length-1])!==0){const d=new n(l===a,r,a,m=>this._onDidChangeReferenceRange.fire(m));this.references.push(d),r.children.push(d)}}dispose(){(0,L.dispose)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new i(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?(0,p.localize)(707,"No results found"):this.references.length===1?(0,p.localize)(708,"Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?(0,p.localize)(709,"Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,p.localize)(710,"Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(g,u){const{parent:l}=g;let r=l.children.indexOf(g);const a=l.children.length,d=l.parent.groups.length;return d===1||u&&r+1<a||!u&&r>0?(u?r=(r+1)%a:r=(r+a-1)%a,l.children[r]):(r=l.parent.groups.indexOf(l),u?(r=(r+1)%d,l.parent.groups[r].children[0]):(r=(r+d-1)%d,l.parent.groups[r].children[l.parent.groups[r].children.length-1]))}nearestReference(g,u){const l=this.references.map((r,a)=>({idx:a,prefixLen:_.commonPrefixLength(r.uri.toString(),g.toString()),offsetDist:Math.abs(r.range.startLineNumber-u.lineNumber)*100+Math.abs(r.range.startColumn-u.column)})).sort((r,a)=>r.prefixLen>a.prefixLen?-1:r.prefixLen<a.prefixLen?1:r.offsetDist<a.offsetDist?-1:r.offsetDist>a.offsetDist?1:0)[0];if(l)return this.references[l.idx]}referenceAt(g,u){for(const l of this.references)if(l.uri.toString()===g.toString()&&v.Range.containsPosition(l.range,u))return l}firstReference(){for(const g of this.references)if(g.isProviderFirst)return g;return this.references[0]}static _compareReferences(g,u){return f.extUri.compare(g.uri,u.uri)||v.Range.compareRangesUsingStarts(g.range,u.range)}}e.ReferencesModel=i}),define(oe[663],re([1,0,13,14]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContentHoverComputer=void 0;class E{get anchor(){return this._anchor}set anchor(y){this._anchor=y}get shouldFocus(){return this._shouldFocus}set shouldFocus(y){this._shouldFocus=y}get source(){return this._source}set source(y){this._source=y}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(y){this._insistOnKeepingHoverVisible=y}constructor(y,f){this._editor=y,this._participants=f,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(y,f){if(f.type!==1&&!f.supportsMarkerHover)return[];const _=y.getModel(),v=f.range.startLineNumber;if(v>_.getLineCount())return[];const p=_.getLineMaxColumn(v);return y.getLineDecorations(v).filter(n=>{if(n.options.isWholeLine)return!0;const s=n.range.startLineNumber===v?n.range.startColumn:1,t=n.range.endLineNumber===v?n.range.endColumn:p;if(n.options.showIfCollapsed){if(s>f.range.startColumn+1||f.range.endColumn-1>t)return!1}else if(s>f.range.startColumn||f.range.endColumn>t)return!1;return!0})}computeAsync(y){const f=this._anchor;if(!this._editor.hasModel()||!f)return k.AsyncIterableObject.EMPTY;const _=E._getLineDecorations(this._editor,f);return k.AsyncIterableObject.merge(this._participants.map(v=>v.computeAsync?v.computeAsync(f,_,y):k.AsyncIterableObject.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const y=E._getLineDecorations(this._editor,this._anchor);let f=[];for(const _ of this._participants)f=f.concat(_.computeSync(this._anchor,y));return(0,c.coalesce)(f)}}e.ContentHoverComputer=E}),define(oe[262],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DECREASE_HOVER_VERBOSITY_ACTION_LABEL=e.DECREASE_HOVER_VERBOSITY_ACTION_ID=e.INCREASE_HOVER_VERBOSITY_ACTION_LABEL=e.INCREASE_HOVER_VERBOSITY_ACTION_ID=e.GO_TO_BOTTOM_HOVER_ACTION_ID=e.GO_TO_TOP_HOVER_ACTION_ID=e.PAGE_DOWN_HOVER_ACTION_ID=e.PAGE_UP_HOVER_ACTION_ID=e.SCROLL_RIGHT_HOVER_ACTION_ID=e.SCROLL_LEFT_HOVER_ACTION_ID=e.SCROLL_DOWN_HOVER_ACTION_ID=e.SCROLL_UP_HOVER_ACTION_ID=e.SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID=e.SHOW_OR_FOCUS_HOVER_ACTION_ID=void 0,e.SHOW_OR_FOCUS_HOVER_ACTION_ID="editor.action.showHover",e.SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID="editor.action.showDefinitionPreviewHover",e.SCROLL_UP_HOVER_ACTION_ID="editor.action.scrollUpHover",e.SCROLL_DOWN_HOVER_ACTION_ID="editor.action.scrollDownHover",e.SCROLL_LEFT_HOVER_ACTION_ID="editor.action.scrollLeftHover",e.SCROLL_RIGHT_HOVER_ACTION_ID="editor.action.scrollRightHover",e.PAGE_UP_HOVER_ACTION_ID="editor.action.pageUpHover",e.PAGE_DOWN_HOVER_ACTION_ID="editor.action.pageDownHover",e.GO_TO_TOP_HOVER_ACTION_ID="editor.action.goToTopHover",e.GO_TO_BOTTOM_HOVER_ACTION_ID="editor.action.goToBottomHover",e.INCREASE_HOVER_VERBOSITY_ACTION_ID="editor.action.increaseHoverVerbosityLevel",e.INCREASE_HOVER_VERBOSITY_ACTION_LABEL=c.localize(698,"Increase Hover Verbosity Level"),e.DECREASE_HOVER_VERBOSITY_ACTION_ID="editor.action.decreaseHoverVerbosityLevel",e.DECREASE_HOVER_VERBOSITY_ACTION_LABEL=c.localize(699,"Decrease Hover Verbosity Level")}),define(oe[373],re([1,0,14,8,6,2]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverOperation=e.HoverResult=void 0;class y{constructor(v,p,n){this.value=v,this.isComplete=p,this.hasLoadingMessage=n}}e.HoverResult=y;class f extends L.Disposable{constructor(v,p){super(),this._editor=v,this._computer=p,this._onResult=this._register(new E.Emitter),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new c.RunOnceScheduler(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new c.RunOnceScheduler(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new c.RunOnceScheduler(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(v,p=!0){this._state=v,p&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,c.createCancelableAsyncIterable)(v=>this._computer.computeAsync(v)),(async()=>{try{for await(const v of this._asyncIterable)v&&(this._result.push(v),this._fireResult());this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(v){(0,k.onUnexpectedError)(v)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const v=this._state===0,p=this._state===4;this._onResult.fire(new y(this._result.slice(0),v,p))}start(v){if(v===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}e.HoverOperation=f}),define(oe[664],re([1,0,13,57,40]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginHoverComputer=void 0;class L{get lineNumber(){return this._lineNumber}set lineNumber(f){this._lineNumber=f}get lane(){return this._laneOrLine}set lane(f){this._laneOrLine=f}constructor(f){this._editor=f,this._lineNumber=-1,this._laneOrLine=E.GlyphMarginLane.Center}computeSync(){const f=n=>({value:n}),_=this._editor.getLineDecorations(this._lineNumber),v=[],p=this._laneOrLine==="lineNo";if(!_)return v;for(const n of _){const s=n.options.glyphMargin?.position??E.GlyphMarginLane.Center;if(!p&&s!==this._laneOrLine)continue;const t=p?n.options.lineNumberHoverMessage:n.options.glyphMarginHoverMessage;!t||(0,k.isEmptyMarkdownString)(t)||v.push(...(0,c.asArray)(t).map(f))}return v}}e.MarginHoverComputer=L}),define(oe[665],re([1,0,254,2,9,5]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizableContentWidget=void 0;const y=30,f=24;class _ extends k.Disposable{constructor(p,n=new L.Dimension(10,10)){super(),this._editor=p,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new c.ResizableHTMLElement),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=L.Dimension.lift(n),this._resizableNode.layout(n.height,n.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(s=>{this._resize(new L.Dimension(s.dimension.width,s.dimension.height)),s.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?E.Position.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(p){const n=this._editor.getDomNode(),s=this._editor.getScrolledVisiblePosition(p);return!n||!s?void 0:L.getDomNodePagePosition(n).top+s.top-y}_availableVerticalSpaceBelow(p){const n=this._editor.getDomNode(),s=this._editor.getScrolledVisiblePosition(p);if(!n||!s)return;const t=L.getDomNodePagePosition(n),i=L.getClientArea(n.ownerDocument.body),o=t.top+s.top+s.height;return i.height-o-f}_findPositionPreference(p,n){const s=Math.min(this._availableVerticalSpaceBelow(n)??1/0,p),t=Math.min(this._availableVerticalSpaceAbove(n)??1/0,p),i=Math.min(Math.max(t,s),p),o=Math.min(p,i);let g;return this._editor.getOption(60).above?g=o<=t?1:2:g=o<=s?2:1,g===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),g}_resize(p){this._resizableNode.layout(p.height,p.width)}}e.ResizableContentWidget=_}),define(oe[374],re([1,0,8,2,9,4,47,22]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintsFragments=e.InlayHintItem=e.InlayHintAnchor=void 0,e.asCommandLink=n;class _{constructor(t,i){this.range=t,this.direction=i}}e.InlayHintAnchor=_;class v{constructor(t,i,o){this.hint=t,this.anchor=i,this.provider=o,this._isResolved=!1}with(t){const i=new v(this.hint,t.anchor,this.provider);return i._isResolved=this._isResolved,i._currentResolve=this._currentResolve,i}async resolve(t){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return await this._currentResolve,t.isCancellationRequested?void 0:this.resolve(t);this._isResolved||(this._currentResolve=this._doResolve(t).finally(()=>this._currentResolve=void 0)),await this._currentResolve}}async _doResolve(t){try{const i=await Promise.resolve(this.provider.resolveInlayHint(this.hint,t));this.hint.tooltip=i?.tooltip??this.hint.tooltip,this.hint.label=i?.label??this.hint.label,this.hint.textEdits=i?.textEdits??this.hint.textEdits,this._isResolved=!0}catch(i){(0,c.onUnexpectedExternalError)(i),this._isResolved=!1}}}e.InlayHintItem=v;class p{static{this._emptyInlayHintList=Object.freeze({dispose(){},hints:[]})}static async create(t,i,o,g){const u=[],l=t.ordered(i).reverse().map(r=>o.map(async a=>{try{const d=await r.provideInlayHints(i,a,g);(d?.hints.length||r.onDidChangeInlayHints)&&u.push([d??p._emptyInlayHintList,r])}catch(d){(0,c.onUnexpectedExternalError)(d)}}));if(await Promise.all(l.flat()),g.isCancellationRequested||i.isDisposed())throw new c.CancellationError;return new p(o,u,i)}constructor(t,i,o){this._disposables=new k.DisposableStore,this.ranges=t,this.provider=new Set;const g=[];for(const[u,l]of i){this._disposables.add(u),this.provider.add(l);for(const r of u.hints){const a=o.validatePosition(r.position);let d="before";const m=p._getRangeAtPosition(o,a);let h;m.getStartPosition().isBefore(a)?(h=L.Range.fromPositions(m.getStartPosition(),a),d="after"):(h=L.Range.fromPositions(a,m.getEndPosition()),d="before"),g.push(new v(r,new _(h,d),l))}}this.items=g.sort((u,l)=>E.Position.compare(u.hint.position,l.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(t,i){const o=i.lineNumber,g=t.getWordAtPosition(i);if(g)return new L.Range(o,g.startColumn,o,g.endColumn);t.tokenization.tokenizeIfCheap(o);const u=t.tokenization.getLineTokens(o),l=i.column-1,r=u.findTokenIndexAtOffset(l);let a=u.getStartOffset(r),d=u.getEndOffset(r);return d-a===1&&(a===l&&r>1?(a=u.getStartOffset(r-1),d=u.getEndOffset(r-1)):d===l&&r<u.getCount()-1&&(a=u.getStartOffset(r+1),d=u.getEndOffset(r+1))),new L.Range(o,a+1,o,d+1)}}e.InlayHintsFragments=p;function n(s){return f.URI.from({scheme:y.Schemas.command,path:s.id,query:s.arguments&&encodeURIComponent(JSON.stringify(s.arguments))}).toString()}}),define(oe[375],re([1,0,89,14,18,45,8,9,4,571,103,204,134]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionItem=e.InlineCompletionList=e.InlineCompletionProviderResult=void 0,e.provideInlineCompletions=t;async function t(r,a,d,m,h=E.CancellationToken.None,C){const b=a instanceof f.Position?u(a,d):a,w=r.all(d),S=new L.SetMap;for(const x of w)x.groupId&&S.add(x.groupId,x);function D(x){if(!x.yieldsToGroupIds)return[];const F=[];for(const W of x.yieldsToGroupIds||[]){const z=S.get(W);for(const q of z)F.push(q)}return F}const I=new Map,T=new Set;function M(x,F){if(F=[...F,x],T.has(x))return F;T.add(x);try{const W=D(x);for(const z of W){const q=M(z,F);if(q)return q}}finally{T.delete(x)}}function A(x){const F=I.get(x);if(F)return F;const W=M(x,[]);W&&(0,y.onUnexpectedExternalError)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${W.map(q=>q.toString?q.toString():""+q).join(" -> ")}`));const z=new k.DeferredPromise;return I.set(x,z.p),(async()=>{if(!W){const q=D(x);for(const H of q){const K=await A(H);if(K&&K.items.length>0)return}}try{return a instanceof f.Position?await x.provideInlineCompletions(d,a,m,h):await x.provideInlineEdits?.(d,a,m,h)}catch(q){(0,y.onUnexpectedExternalError)(q);return}})().then(q=>z.complete(q),q=>z.error(q)),z.p}const R=await Promise.all(w.map(async x=>({provider:x,completions:await A(x)}))),N=new Map,O=[];for(const x of R){const F=x.completions;if(!F)continue;const W=new o(F,x.provider);O.push(W);for(const z of F.items){const q=g.from(z,W,b,d,C);N.set(q.hash(),q)}}return new i(Array.from(N.values()),new Set(N.keys()),O)}class i{constructor(a,d,m){this.completions=a,this.hashs=d,this.providerResults=m}has(a){return this.hashs.has(a.hash())}dispose(){for(const a of this.providerResults)a.removeRef()}}e.InlineCompletionProviderResult=i;class o{constructor(a,d){this.inlineCompletions=a,this.provider=d,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,this.refCount===0&&this.provider.freeInlineCompletions(this.inlineCompletions)}}e.InlineCompletionList=o;class g{static from(a,d,m,h,C){let b,w,S=a.range?_.Range.lift(a.range):m;if(typeof a.insertText=="string"){if(b=a.insertText,C&&a.completeBracketPairs){b=l(b,S.getStartPosition(),h,C);const D=b.length-a.insertText.length;D!==0&&(S=new _.Range(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+D))}w=void 0}else if("snippet"in a.insertText){const D=a.insertText.snippet.length;if(C&&a.completeBracketPairs){a.insertText.snippet=l(a.insertText.snippet,S.getStartPosition(),h,C);const T=a.insertText.snippet.length-D;T!==0&&(S=new _.Range(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+T))}const I=new s.SnippetParser().parse(a.insertText.snippet);I.children.length===1&&I.children[0]instanceof s.Text?(b=I.children[0].value,w=void 0):(b=I.toString(),w={snippet:a.insertText.snippet,range:S})}else(0,c.assertNever)(a.insertText);return new g(b,a.command,S,b,w,a.additionalTextEdits||(0,n.getReadonlyEmptyArray)(),a,d)}constructor(a,d,m,h,C,b,w,S){this.filterText=a,this.command=d,this.range=m,this.insertText=h,this.snippetInfo=C,this.additionalTextEdits=b,this.sourceInlineCompletion=w,this.source=S,a=a.replace(/\r\n|\r/g,`
|
|
606
606
|
`),h=a.replace(/\r\n|\r/g,`
|
|
607
607
|
`)}withRange(a){return new g(this.filterText,this.command,a,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}toSingleTextEdit(){return new p.SingleTextEdit(this.range,this.insertText)}}e.InlineCompletionItem=g;function u(r,a){const d=a.getWordAtPosition(r),m=a.getLineMaxColumn(r.lineNumber);return d?new _.Range(r.lineNumber,d.startColumn,r.lineNumber,m):_.Range.fromPositions(r,r.with(void 0,m))}function l(r,a,d,m){const C=d.getLineContent(a.lineNumber).substring(0,a.column-1)+r,w=d.tokenization.tokenizeLineWithEdit(a,C.length-(a.column-1),r)?.sliceAndInflate(a.column-1,C.length,0);return w?(0,v.fixBracketsInLine)(w,m):r}}),define(oe[376],re([1,0,5,101,2,21,65,111]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlaceholderTextContribution=void 0;class _ extends E.Disposable{static{this.ID="editor.contrib.placeholderText"}constructor(n){super(),this._editor=n,this._editorObs=(0,f.observableCodeEditor)(this._editor),this._placeholderText=this._editorObs.getOption(88),this._state=(0,L.derivedOpts)({owner:this,equalsFn:k.structuralEquals},s=>{const t=this._placeholderText.read(s);if(t&&this._editorObs.valueIsEmpty.read(s))return{placeholder:t}}),this._shouldViewBeAlive=v(this,s=>this._state.read(s)?.placeholder!==void 0),this._view=(0,y.derivedWithStore)((s,t)=>{if(!this._shouldViewBeAlive.read(s))return;const i=(0,c.h)("div.editorPlaceholder");t.add((0,L.autorun)(o=>{const g=this._state.read(o),u=g?.placeholder!==void 0;i.root.style.display=u?"block":"none",i.root.innerText=g?.placeholder??""})),t.add((0,L.autorun)(o=>{const g=this._editorObs.layoutInfo.read(o);i.root.style.left=`${g.contentLeft}px`,i.root.style.width=g.contentWidth-g.verticalScrollbarWidth+"px",i.root.style.top=`${this._editor.getTopForLineNumber(0)}px`})),t.add((0,L.autorun)(o=>{i.root.style.fontFamily=this._editorObs.getOption(49).read(o),i.root.style.fontSize=this._editorObs.getOption(52).read(o)+"px",i.root.style.lineHeight=this._editorObs.getOption(67).read(o)+"px"})),t.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:(0,L.constObservable)(0),position:(0,L.constObservable)(null),domNode:i.root}))}),this._view.recomputeInitiallyAndOnChange(this._store)}}e.PlaceholderTextContribution=_;function v(p,n){return(0,L.derivedObservableWithCache)(p,(s,t)=>t===!0?!0:n(s))}}),define(oe[377],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessibleViewRegistry=void 0,e.AccessibleViewRegistry=new class{constructor(){this._implementations=[]}register(k){return this._implementations.push(k),{dispose:()=>{const E=this._implementations.indexOf(k);E!==-1&&this._implementations.splice(E,1)}}}getImplementations(){return this._implementations}}}),define(oe[378],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLocalizedString=c,e.isICommandActionToggleInfo=k;function c(E){return E&&typeof E=="object"&&typeof E.original=="string"&&typeof E.value=="string"}function k(E){return E?E.condition!==void 0:!1}}),define(oe[666],re([1,0,3]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Categories=void 0,e.Categories=Object.freeze({View:(0,c.localize2)(1185,"View"),Help:(0,c.localize2)(1186,"Help"),Test:(0,c.localize2)(1187,"Test"),File:(0,c.localize2)(1188,"File"),Preferences:(0,c.localize2)(1189,"Preferences"),Developer:(0,c.localize2)(1190,"Developer")})}),define(oe[667],re([1,0,8,3]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scanner=void 0;function E(..._){switch(_.length){case 1:return(0,k.localize)(1131,"Did you mean {0}?",_[0]);case 2:return(0,k.localize)(1132,"Did you mean {0} or {1}?",_[0],_[1]);case 3:return(0,k.localize)(1133,"Did you mean {0}, {1} or {2}?",_[0],_[1],_[2]);default:return}}const L=(0,k.localize)(1134,"Did you forget to open or close the quote?"),y=(0,k.localize)(1135,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class f{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(v){switch(v.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return v.isTripleEq?"===":"==";case 4:return v.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return v.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return v.lexeme;case 18:return v.lexeme;case 19:return v.lexeme;case 20:return"EOF";default:throw(0,c.illegalState)(`unhandled token type: ${JSON.stringify(v)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map(v=>v.charCodeAt(0)))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(v){return this._input=v,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const p=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:p})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const p=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:p})}else this._match(126)?this._addToken(9):this._error(E("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(E("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(E("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(v){return this._isAtEnd()||this._input.charCodeAt(this._current)!==v?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(v){this._tokens.push({type:v,offset:this._start})}_error(v){const p=this._start,n=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:n};this._errors.push({offset:p,lexeme:n,additionalInfo:v}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const v=this.stringRe.exec(this._input);if(v){this._current=this._start+v[0].length;const p=this._input.substring(this._start,this._current),n=f._keywords.get(p);n?this._addToken(n):this._tokens.push({type:17,lexeme:p,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(L);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let v=this._current,p=!1,n=!1;for(;;){if(v>=this._input.length){this._current=v,this._error(y);return}const t=this._input.charCodeAt(v);if(p)p=!1;else if(t===47&&!n){v++;break}else t===91?n=!0:t===92?p=!0:t===93&&(n=!1);v++}for(;v<this._input.length&&f._regexFlags.has(this._input.charCodeAt(v));)v++;this._current=v;const s=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:s,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}e.Scanner=f}),define(oe[668],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOpenSource=void 0;var c;(function(k){k[k.API=0]="API",k[k.USER=1]="USER"})(c||(e.EditorOpenSource=c={}))}),define(oe[669],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionIdentifierSet=e.ExtensionIdentifier=void 0;class c{constructor(L){this.value=L,this._lower=L.toLowerCase()}static toKey(L){return typeof L=="string"?L.toLowerCase():L._lower}}e.ExtensionIdentifier=c;class k{constructor(L){if(this._set=new Set,L)for(const y of L)this.add(y)}add(L){this._set.add(c.toKey(L))}has(L){return this._set.has(c.toKey(L))}}e.ExtensionIdentifierSet=k}),define(oe[379],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileKind=void 0;var c;(function(k){k[k.FILE=0]="FILE",k[k.FOLDER=1]="FOLDER",k[k.ROOT_FOLDER=2]="ROOT_FOLDER"})(c||(e.FileKind=c={}))}),define(oe[670],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showHistoryKeybindingHint=c;function c(k){return k.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()==="Up"&&k.lookupKeybinding("history.showNext")?.getElectronAccelerator()==="Down"}}),define(oe[263],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SyncDescriptor=void 0;class c{constructor(E,L=[],y=!1){this.ctor=E,this.staticArguments=L,this.supportsDelayedInstantiation=y}}e.SyncDescriptor=c}),define(oe[49],re([1,0,263]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerSingleton=E,e.getSingletonServiceDescriptors=L;const k=[];function E(y,f,_){f instanceof c.SyncDescriptor||(f=new c.SyncDescriptor(f,[],!!_)),k.push([y,f])}function L(){return k}}),define(oe[671],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=e.Node=void 0;class c{constructor(L,y){this.key=L,this.data=y,this.incoming=new Map,this.outgoing=new Map}}e.Node=c;class k{constructor(L){this._hashFn=L,this._nodes=new Map}roots(){const L=[];for(const y of this._nodes.values())y.outgoing.size===0&&L.push(y);return L}insertEdge(L,y){const f=this.lookupOrInsertNode(L),_=this.lookupOrInsertNode(y);f.outgoing.set(_.key,_),_.incoming.set(f.key,f)}removeNode(L){const y=this._hashFn(L);this._nodes.delete(y);for(const f of this._nodes.values())f.outgoing.delete(y),f.incoming.delete(y)}lookupOrInsertNode(L){const y=this._hashFn(L);let f=this._nodes.get(y);return f||(f=new c(y,L),this._nodes.set(y,f)),f}isEmpty(){return this._nodes.size===0}toString(){const L=[];for(const[y,f]of this._nodes)L.push(`${y}
|
|
608
608
|
(-> incoming)[${[...f.incoming.keys()].join(", ")}]
|
|
@@ -612,7 +612,7 @@ ${S(t.Codicon.menuSubmenu)}
|
|
|
612
612
|
`:r,w=b.length;let S=d.embeddedLanguageData,D=d.stack,I=0,T=null,M=!0;for(;M||I<w;){const A=I,R=D.depth,N=T?T.groups.length:0,O=D.state;let x=null,F=null,W=null,z=null,q=null;if(T){x=T.matches;const U=T.groups.shift();F=U.matched,W=U.action,z=T.rule,T.groups.length===0&&(T=null)}else{if(!M&&I>=w)break;M=!1;let U=this._lexer.tokenizer[O];if(!U&&(U=L.findRules(this._lexer,O),!U))throw L.createError(this._lexer,"tokenizer state is not defined: "+O);const Y=b.substr(I);for(const Q of U)if((I===0||!Q.matchOnlyAtLineStart)&&(x=Y.match(Q.resolveRegex(O)),x)){F=x[0],W=Q.action;break}}if(x||(x=[""],F=""),W||(I<w&&(x=[b.charAt(I)],F=x[0]),W=this._lexer.defaultToken),F===null)break;for(I+=F.length;L.isFuzzyAction(W)&&L.isIAction(W)&&W.test;)W=W.test(F,x,O,I===w);let H=null;if(typeof W=="string"||Array.isArray(W))H=W;else if(W.group)H=W.group;else if(W.token!==null&&W.token!==void 0){if(W.tokenSubst?H=L.substituteMatches(this._lexer,W.token,F,x,O):H=W.token,W.nextEmbedded)if(W.nextEmbedded==="@pop"){if(!S)throw L.createError(this._lexer,"cannot pop embedded language if not inside one");S=null}else{if(S)throw L.createError(this._lexer,"cannot enter embedded language from within an embedded language");q=L.substituteMatches(this._lexer,W.nextEmbedded,F,x,O)}if(W.goBack&&(I=Math.max(0,I-W.goBack)),W.switchTo&&typeof W.switchTo=="string"){let U=L.substituteMatches(this._lexer,W.switchTo,F,x,O);if(U[0]==="@"&&(U=U.substr(1)),L.findRules(this._lexer,U))D=D.switchTo(U);else throw L.createError(this._lexer,"trying to switch to a state '"+U+"' that is undefined in rule: "+this._safeRuleName(z))}else{if(W.transform&&typeof W.transform=="function")throw L.createError(this._lexer,"action.transform not supported");if(W.next)if(W.next==="@push"){if(D.depth>=this._lexer.maxStack)throw L.createError(this._lexer,"maximum tokenizer stack size reached: ["+D.state+","+D.parent.state+",...]");D=D.push(O)}else if(W.next==="@pop"){if(D.depth<=1)throw L.createError(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(z));D=D.pop()}else if(W.next==="@popall")D=D.popall();else{let U=L.substituteMatches(this._lexer,W.next,F,x,O);if(U[0]==="@"&&(U=U.substr(1)),L.findRules(this._lexer,U))D=D.push(U);else throw L.createError(this._lexer,"trying to set a next state '"+U+"' that is undefined in rule: "+this._safeRuleName(z))}}W.log&&typeof W.log=="string"&&L.log(this._lexer,this._lexer.languageId+": "+L.substituteMatches(this._lexer,W.log,F,x,O))}if(H===null)throw L.createError(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(z));const K=U=>{const Y=this._languageService.getLanguageIdByLanguageName(U)||this._languageService.getLanguageIdByMimeType(U)||U,Q=this._getNestedEmbeddedLanguageData(Y);if(I<w){const X=r.substr(I);return this._nestedTokenize(X,a,s.create(D,Q),m+I,h)}else return s.create(D,Q)};if(Array.isArray(H)){if(T&&T.groups.length>0)throw L.createError(this._lexer,"groups cannot be nested: "+this._safeRuleName(z));if(x.length!==H.length+1)throw L.createError(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(z));let U=0;for(let Y=1;Y<x.length;Y++)U+=x[Y].length;if(U!==F.length)throw L.createError(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(z));T={rule:z,matches:x,groups:[]};for(let Y=0;Y<H.length;Y++)T.groups[Y]={action:H[Y],matched:x[Y+1]};I-=F.length;continue}else{if(H==="@rematch"&&(I-=F.length,F="",x=null,H="",q!==null))return K(q);if(F.length===0){if(w===0||R!==D.depth||O!==D.state||(T?T.groups.length:0)!==N)continue;throw L.createError(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(z))}let U=null;if(L.isString(H)&&H.indexOf("@brackets")===0){const Y=H.substr(9),Q=u(this._lexer,F);if(!Q)throw L.createError(this._lexer,"@brackets token returned but no bracket defined as: "+F);U=L.sanitize(Q.token+Y)}else{const Y=H===""?"":H+this._lexer.tokenPostfix;U=L.sanitize(Y)}A<C&&h.emit(A+m,U)}if(q!==null)return K(q)}return s.create(D,S)}_getNestedEmbeddedLanguageData(r){if(!this._languageService.isRegisteredLanguageId(r))return new n(r,E.NullState);r!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(r),k.TokenizationRegistry.getOrCreate(r),this._embeddedLanguages[r]=!0);const a=k.TokenizationRegistry.get(r);return a?new n(r,a.getInitialState()):new n(r,E.NullState)}};e.MonarchTokenizer=g,e.MonarchTokenizer=g=f=De([he(4,y.IConfigurationService)],g);function u(l,r){if(!r)return null;r=L.fixCase(l,r);const a=l.brackets;for(const d of a){if(d.open===r)return{token:d.token,bracketType:1};if(d.close===r)return{token:d.token,bracketType:-1}}return null}}),define(oe[676],re([1,0,102,11,28,94,135,95,383]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Colorizer=void 0;const v=(0,c.createTrustedTypesPolicy)("standaloneColorizer",{createHTML:i=>i});class p{static colorizeElement(o,g,u,l){l=l||{};const r=l.theme||"vs",a=l.mimeType||u.getAttribute("lang")||u.getAttribute("data-lang");if(!a)return console.error("Mode not detected"),Promise.resolve();const d=g.getLanguageIdByMimeType(a)||a;o.setTheme(r);const m=u.firstChild?u.firstChild.nodeValue:"";u.className+=" "+r;const h=C=>{const b=v?.createHTML(C)??C;u.innerHTML=b};return this.colorize(g,m||"",d,l).then(h,C=>console.error(C))}static async colorize(o,g,u,l){const r=o.languageIdCodec;let a=4;l&&typeof l.tabSize=="number"&&(a=l.tabSize),k.startsWithUTF8BOM(g)&&(g=g.substr(1));const d=k.splitLines(g);if(!o.isRegisteredLanguageId(u))return s(d,a,r);const m=await E.TokenizationRegistry.getOrCreate(u);return m?n(d,a,m,r):s(d,a,r)}static colorizeLine(o,g,u,l,r=4){const a=f.ViewLineRenderingData.isBasicASCII(o,g),d=f.ViewLineRenderingData.containsRTL(o,a,u);return(0,y.renderViewLine2)(new y.RenderLineInput(!1,!0,o,!1,a,d,0,l,[],r,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(o,g,u=4){const l=o.getLineContent(g);o.tokenization.forceTokenization(g);const a=o.tokenization.getLineTokens(g).inflate();return this.colorizeLine(l,o.mightContainNonBasicASCII(),o.mightContainRTL(),a,u)}}e.Colorizer=p;function n(i,o,g,u){return new Promise((l,r)=>{const a=()=>{const d=t(i,o,g,u);if(g instanceof _.MonarchTokenizer){const m=g.getLoadStatus();if(m.loaded===!1){m.promise.then(a,r);return}}l(d)};a()})}function s(i,o,g){let u=[];const r=new Uint32Array(2);r[0]=0,r[1]=33587200;for(let a=0,d=i.length;a<d;a++){const m=i[a];r[0]=m.length;const h=new L.LineTokens(r,m,g),C=f.ViewLineRenderingData.isBasicASCII(m,!0),b=f.ViewLineRenderingData.containsRTL(m,C,!0),w=(0,y.renderViewLine2)(new y.RenderLineInput(!1,!0,m,!1,C,b,0,h,[],o,0,0,0,0,-1,"none",!1,!1,null));u=u.concat(w.html),u.push("<br/>")}return u.join("")}function t(i,o,g,u){let l=[],r=g.getInitialState();for(let a=0,d=i.length;a<d;a++){const m=i[a],h=g.tokenizeEncoded(m,!0,r);L.LineTokens.convertToEndOffset(h.tokens,m.length);const C=new L.LineTokens(h.tokens,m,u),b=f.ViewLineRenderingData.isBasicASCII(m,!0),w=f.ViewLineRenderingData.containsRTL(m,b,!0),S=(0,y.renderViewLine2)(new y.RenderLineInput(!1,!0,m,!1,b,w,0,C.inflate(),[],o,0,0,0,0,-1,"none",!1,!1,null));l=l.concat(S.html),l.push("<br/>"),r=h.endState}return l.join("")}}),define(oe[12],re([1,0,16,11,667,7,3]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IContextKeyService=e.RawContextKey=e.ContextKeyOrExpr=e.ContextKeyAndExpr=e.ContextKeyNotRegexExpr=e.ContextKeyRegexExpr=e.ContextKeySmallerEqualsExpr=e.ContextKeySmallerExpr=e.ContextKeyGreaterEqualsExpr=e.ContextKeyGreaterExpr=e.ContextKeyNotExpr=e.ContextKeyNotEqualsExpr=e.ContextKeyNotInExpr=e.ContextKeyInExpr=e.ContextKeyEqualsExpr=e.ContextKeyDefinedExpr=e.ContextKeyTrueExpr=e.ContextKeyFalseExpr=e.ContextKeyExpr=e.Parser=void 0,e.expressionsAreEqualWithConstantSubstitution=a,e.implies=U;const f=new Map;f.set("false",!1),f.set("true",!0),f.set("isMac",c.isMacintosh),f.set("isLinux",c.isLinux),f.set("isWindows",c.isWindows),f.set("isWeb",c.isWeb),f.set("isMacNative",c.isMacintosh&&!c.isWeb),f.set("isEdge",c.isEdge),f.set("isFirefox",c.isFirefox),f.set("isChrome",c.isChrome),f.set("isSafari",c.isSafari);const _=Object.prototype.hasOwnProperty,v={regexParsingWithErrorRecovery:!0},p=(0,y.localize)(1145,"Empty context key expression"),n=(0,y.localize)(1146,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),s=(0,y.localize)(1147,"'in' after 'not'."),t=(0,y.localize)(1148,"closing parenthesis ')'"),i=(0,y.localize)(1149,"Unexpected token"),o=(0,y.localize)(1150,"Did you forget to put && or || before the token?"),g=(0,y.localize)(1151,"Unexpected end of expression"),u=(0,y.localize)(1152,"Did you forget to put a context key?");class l{static{this._parseError=new Error}constructor(G=v){this._config=G,this._scanner=new E.Scanner,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(G){if(G===""){this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:n});return}this._tokens=this._scanner.reset(G).scan(),this._current=0,this._parsingErrors=[];try{const P=this._expr();if(!this._isAtEnd()){const te=this._peek(),se=te.type===17?o:void 0;throw this._parsingErrors.push({message:i,offset:te.offset,lexeme:E.Scanner.getLexeme(te),additionalInfo:se}),l._parseError}return P}catch(P){if(P!==l._parseError)throw P;return}}_expr(){return this._or()}_or(){const G=[this._and()];for(;this._matchOne(16);){const P=this._and();G.push(P)}return G.length===1?G[0]:r.or(...G)}_and(){const G=[this._term()];for(;this._matchOne(15);){const P=this._term();G.push(P)}return G.length===1?G[0]:r.and(...G)}_term(){if(this._matchOne(2)){const G=this._peek();switch(G.type){case 11:return this._advance(),m.INSTANCE;case 12:return this._advance(),h.INSTANCE;case 0:{this._advance();const P=this._expr();return this._consume(1,t),P?.negate()}case 17:return this._advance(),I.create(G.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",G)}}return this._primary()}_primary(){const G=this._peek();switch(G.type){case 11:return this._advance(),r.true();case 12:return this._advance(),r.false();case 0:{this._advance();const P=this._expr();return this._consume(1,t),P}case 17:{const P=G.lexeme;if(this._advance(),this._matchOne(9)){const se=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),se.type!==10)throw this._errExpectedButGot("REGEX",se);const ue=se.lexeme,ge=ue.lastIndexOf("/"),pe=ge===ue.length-1?void 0:this._removeFlagsGY(ue.substring(ge+1));let ce;try{ce=new RegExp(ue.substring(1,ge),pe)}catch{throw this._errExpectedButGot("REGEX",se)}return O.create(P,ce)}switch(se.type){case 10:case 19:{const ue=[se.lexeme];this._advance();let ge=this._peek(),pe=0;for(let B=0;B<se.lexeme.length;B++)se.lexeme.charCodeAt(B)===40?pe++:se.lexeme.charCodeAt(B)===41&&pe--;for(;!this._isAtEnd()&&ge.type!==15&&ge.type!==16;){switch(ge.type){case 0:pe++;break;case 1:pe--;break;case 10:case 18:for(let B=0;B<ge.lexeme.length;B++)ge.lexeme.charCodeAt(B)===40?pe++:se.lexeme.charCodeAt(B)===41&&pe--}if(pe<0)break;ue.push(E.Scanner.getLexeme(ge)),this._advance(),ge=this._peek()}const ce=ue.join(""),ie=ce.lastIndexOf("/"),ne=ie===ce.length-1?void 0:this._removeFlagsGY(ce.substring(ie+1));let J;try{J=new RegExp(ce.substring(1,ie),ne)}catch{throw this._errExpectedButGot("REGEX",se)}return r.regex(P,J)}case 18:{const ue=se.lexeme;this._advance();let ge=null;if(!(0,k.isFalsyOrWhitespace)(ue)){const pe=ue.indexOf("/"),ce=ue.lastIndexOf("/");if(pe!==ce&&pe>=0){const ie=ue.slice(pe+1,ce),ne=ue[ce+1]==="i"?"i":"";try{ge=new RegExp(ie,ne)}catch{throw this._errExpectedButGot("REGEX",se)}}}if(ge===null)throw this._errExpectedButGot("REGEX",se);return O.create(P,ge)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,s);const se=this._value();return r.notIn(P,se)}switch(this._peek().type){case 3:{this._advance();const se=this._value();if(this._previous().type===18)return r.equals(P,se);switch(se){case"true":return r.has(P);case"false":return r.not(P);default:return r.equals(P,se)}}case 4:{this._advance();const se=this._value();if(this._previous().type===18)return r.notEquals(P,se);switch(se){case"true":return r.not(P);case"false":return r.has(P);default:return r.notEquals(P,se)}}case 5:return this._advance(),R.create(P,this._value());case 6:return this._advance(),N.create(P,this._value());case 7:return this._advance(),M.create(P,this._value());case 8:return this._advance(),A.create(P,this._value());case 13:return this._advance(),r.in(P,this._value());default:return r.has(P)}}case 20:throw this._parsingErrors.push({message:g,offset:G.offset,lexeme:"",additionalInfo:u}),l._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
613
613
|
| KEY '=~' REGEX
|
|
614
614
|
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const G=this._peek();switch(G.type){case 17:case 18:return this._advance(),G.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(G){return G.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(G){return this._check(G)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(G,P){if(this._check(G))return this._advance();throw this._errExpectedButGot(P,this._peek())}_errExpectedButGot(G,P,te){const se=(0,y.localize)(1153,`Expected: {0}
|
|
615
|
-
Received: '{1}'.`,G,E.Scanner.getLexeme(P)),ue=P.offset,ge=E.Scanner.getLexeme(P);return this._parsingErrors.push({message:se,offset:ue,lexeme:ge,additionalInfo:te}),l._parseError}_check(G){return this._peek().type===G}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}}e.Parser=l;class r{static false(){return m.INSTANCE}static true(){return h.INSTANCE}static has(G){return C.create(G)}static equals(G,P){return b.create(G,P)}static notEquals(G,P){return D.create(G,P)}static regex(G,P){return O.create(G,P)}static in(G,P){return w.create(G,P)}static notIn(G,P){return S.create(G,P)}static not(G){return I.create(G)}static and(...G){return W.create(G,null,!0)}static or(...G){return z.create(G,null,!0)}static{this._parser=new l({regexParsingWithErrorRecovery:!1})}static deserialize(G){return G==null?void 0:this._parser.parse(G)}}e.ContextKeyExpr=r;function a(X,G){const P=X?X.substituteConstants():void 0,te=G?G.substituteConstants():void 0;return!P&&!te?!0:!P||!te?!1:P.equals(te)}function d(X,G){return X.cmp(G)}class m{static{this.INSTANCE=new m}constructor(){this.type=0}cmp(G){return this.type-G.type}equals(G){return G.type===this.type}substituteConstants(){return this}evaluate(G){return!1}serialize(){return"false"}keys(){return[]}negate(){return h.INSTANCE}}e.ContextKeyFalseExpr=m;class h{static{this.INSTANCE=new h}constructor(){this.type=1}cmp(G){return this.type-G.type}equals(G){return G.type===this.type}substituteConstants(){return this}evaluate(G){return!0}serialize(){return"true"}keys(){return[]}negate(){return m.INSTANCE}}e.ContextKeyTrueExpr=h;class C{static create(G,P=null){const te=f.get(G);return typeof te=="boolean"?te?h.INSTANCE:m.INSTANCE:new C(G,P)}constructor(G,P){this.key=G,this.negated=P,this.type=2}cmp(G){return G.type!==this.type?this.type-G.type:H(this.key,G.key)}equals(G){return G.type===this.type?this.key===G.key:!1}substituteConstants(){const G=f.get(this.key);return typeof G=="boolean"?G?h.INSTANCE:m.INSTANCE:this}evaluate(G){return!!G.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}e.ContextKeyDefinedExpr=C;class b{static create(G,P,te=null){if(typeof P=="boolean")return P?C.create(G,te):I.create(G,te);const se=f.get(G);return typeof se=="boolean"?P===(se?"true":"false")?h.INSTANCE:m.INSTANCE:new b(G,P,te)}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=4}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){const G=f.get(this.key);if(typeof G=="boolean"){const P=G?"true":"false";return this.value===P?h.INSTANCE:m.INSTANCE}return this}evaluate(G){return G.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}e.ContextKeyEqualsExpr=b;class w{static create(G,P){return new w(G,P)}constructor(G,P){this.key=G,this.valueKey=P,this.type=10,this.negated=null}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.valueKey,G.key,G.valueKey)}equals(G){return G.type===this.type?this.key===G.key&&this.valueKey===G.valueKey:!1}substituteConstants(){return this}evaluate(G){const P=G.getValue(this.valueKey),te=G.getValue(this.key);return Array.isArray(P)?P.includes(te):typeof te=="string"&&typeof P=="object"&&P!==null?_.call(P,te):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=S.create(this.key,this.valueKey)),this.negated}}e.ContextKeyInExpr=w;class S{static create(G,P){return new S(G,P)}constructor(G,P){this.key=G,this.valueKey=P,this.type=11,this._negated=w.create(G,P)}cmp(G){return G.type!==this.type?this.type-G.type:this._negated.cmp(G._negated)}equals(G){return G.type===this.type?this._negated.equals(G._negated):!1}substituteConstants(){return this}evaluate(G){return!this._negated.evaluate(G)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}e.ContextKeyNotInExpr=S;class D{static create(G,P,te=null){if(typeof P=="boolean")return P?I.create(G,te):C.create(G,te);const se=f.get(G);return typeof se=="boolean"?P===(se?"true":"false")?m.INSTANCE:h.INSTANCE:new D(G,P,te)}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=5}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){const G=f.get(this.key);if(typeof G=="boolean"){const P=G?"true":"false";return this.value===P?m.INSTANCE:h.INSTANCE}return this}evaluate(G){return G.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}e.ContextKeyNotEqualsExpr=D;class I{static create(G,P=null){const te=f.get(G);return typeof te=="boolean"?te?m.INSTANCE:h.INSTANCE:new I(G,P)}constructor(G,P){this.key=G,this.negated=P,this.type=3}cmp(G){return G.type!==this.type?this.type-G.type:H(this.key,G.key)}equals(G){return G.type===this.type?this.key===G.key:!1}substituteConstants(){const G=f.get(this.key);return typeof G=="boolean"?G?m.INSTANCE:h.INSTANCE:this}evaluate(G){return!G.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=C.create(this.key,this)),this.negated}}e.ContextKeyNotExpr=I;function T(X,G){if(typeof X=="string"){const P=parseFloat(X);isNaN(P)||(X=P)}return typeof X=="string"||typeof X=="number"?G(X):m.INSTANCE}class M{static create(G,P,te=null){return T(P,se=>new M(G,se,te))}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=12}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){return this}evaluate(G){return typeof this.value=="string"?!1:parseFloat(G.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterExpr=M;class A{static create(G,P,te=null){return T(P,se=>new A(G,se,te))}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=13}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){return this}evaluate(G){return typeof this.value=="string"?!1:parseFloat(G.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterEqualsExpr=A;class R{static create(G,P,te=null){return T(P,se=>new R(G,se,te))}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=14}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){return this}evaluate(G){return typeof this.value=="string"?!1:parseFloat(G.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerExpr=R;class N{static create(G,P,te=null){return T(P,se=>new N(G,se,te))}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=15}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){return this}evaluate(G){return typeof this.value=="string"?!1:parseFloat(G.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerEqualsExpr=N;class O{static create(G,P){return new O(G,P)}constructor(G,P){this.key=G,this.regexp=P,this.type=7,this.negated=null}cmp(G){if(G.type!==this.type)return this.type-G.type;if(this.key<G.key)return-1;if(this.key>G.key)return 1;const P=this.regexp?this.regexp.source:"",te=G.regexp?G.regexp.source:"";return P<te?-1:P>te?1:0}equals(G){if(G.type===this.type){const P=this.regexp?this.regexp.source:"",te=G.regexp?G.regexp.source:"";return this.key===G.key&&P===te}return!1}substituteConstants(){return this}evaluate(G){const P=G.getValue(this.key);return this.regexp?this.regexp.test(P):!1}serialize(){const G=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${G}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this)),this.negated}}e.ContextKeyRegexExpr=O;class x{static create(G){return new x(G)}constructor(G){this._actual=G,this.type=8}cmp(G){return G.type!==this.type?this.type-G.type:this._actual.cmp(G._actual)}equals(G){return G.type===this.type?this._actual.equals(G._actual):!1}substituteConstants(){return this}evaluate(G){return!this._actual.evaluate(G)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}e.ContextKeyNotRegexExpr=x;function F(X){let G=null;for(let P=0,te=X.length;P<te;P++){const se=X[P].substituteConstants();if(X[P]!==se&&G===null){G=[];for(let ue=0;ue<P;ue++)G[ue]=X[ue]}G!==null&&(G[P]=se)}return G===null?X:G}class W{static create(G,P,te){return W._normalizeArr(G,P,te)}constructor(G,P){this.expr=G,this.negated=P,this.type=6}cmp(G){if(G.type!==this.type)return this.type-G.type;if(this.expr.length<G.expr.length)return-1;if(this.expr.length>G.expr.length)return 1;for(let P=0,te=this.expr.length;P<te;P++){const se=d(this.expr[P],G.expr[P]);if(se!==0)return se}return 0}equals(G){if(G.type===this.type){if(this.expr.length!==G.expr.length)return!1;for(let P=0,te=this.expr.length;P<te;P++)if(!this.expr[P].equals(G.expr[P]))return!1;return!0}return!1}substituteConstants(){const G=F(this.expr);return G===this.expr?this:W.create(G,this.negated,!1)}evaluate(G){for(let P=0,te=this.expr.length;P<te;P++)if(!this.expr[P].evaluate(G))return!1;return!0}static _normalizeArr(G,P,te){const se=[];let ue=!1;for(const ge of G)if(ge){if(ge.type===1){ue=!0;continue}if(ge.type===0)return m.INSTANCE;if(ge.type===6){se.push(...ge.expr);continue}se.push(ge)}if(se.length===0&&ue)return h.INSTANCE;if(se.length!==0){if(se.length===1)return se[0];se.sort(d);for(let ge=1;ge<se.length;ge++)se[ge-1].equals(se[ge])&&(se.splice(ge,1),ge--);if(se.length===1)return se[0];for(;se.length>1;){const ge=se[se.length-1];if(ge.type!==9)break;se.pop();const pe=se.pop(),ce=se.length===0,ie=z.create(ge.expr.map(ne=>W.create([ne,pe],null,te)),null,ce);ie&&(se.push(ie),se.sort(d))}if(se.length===1)return se[0];if(te){for(let ge=0;ge<se.length;ge++)for(let pe=ge+1;pe<se.length;pe++)if(se[ge].negate().equals(se[pe]))return m.INSTANCE;if(se.length===1)return se[0]}return new W(se,P)}}serialize(){return this.expr.map(G=>G.serialize()).join(" && ")}keys(){const G=[];for(const P of this.expr)G.push(...P.keys());return G}negate(){if(!this.negated){const G=[];for(const P of this.expr)G.push(P.negate());this.negated=z.create(G,this,!0)}return this.negated}}e.ContextKeyAndExpr=W;class z{static create(G,P,te){return z._normalizeArr(G,P,te)}constructor(G,P){this.expr=G,this.negated=P,this.type=9}cmp(G){if(G.type!==this.type)return this.type-G.type;if(this.expr.length<G.expr.length)return-1;if(this.expr.length>G.expr.length)return 1;for(let P=0,te=this.expr.length;P<te;P++){const se=d(this.expr[P],G.expr[P]);if(se!==0)return se}return 0}equals(G){if(G.type===this.type){if(this.expr.length!==G.expr.length)return!1;for(let P=0,te=this.expr.length;P<te;P++)if(!this.expr[P].equals(G.expr[P]))return!1;return!0}return!1}substituteConstants(){const G=F(this.expr);return G===this.expr?this:z.create(G,this.negated,!1)}evaluate(G){for(let P=0,te=this.expr.length;P<te;P++)if(this.expr[P].evaluate(G))return!0;return!1}static _normalizeArr(G,P,te){let se=[],ue=!1;if(G){for(let ge=0,pe=G.length;ge<pe;ge++){const ce=G[ge];if(ce){if(ce.type===0){ue=!0;continue}if(ce.type===1)return h.INSTANCE;if(ce.type===9){se=se.concat(ce.expr);continue}se.push(ce)}}if(se.length===0&&ue)return m.INSTANCE;se.sort(d)}if(se.length!==0){if(se.length===1)return se[0];for(let ge=1;ge<se.length;ge++)se[ge-1].equals(se[ge])&&(se.splice(ge,1),ge--);if(se.length===1)return se[0];if(te){for(let ge=0;ge<se.length;ge++)for(let pe=ge+1;pe<se.length;pe++)if(se[ge].negate().equals(se[pe]))return h.INSTANCE;if(se.length===1)return se[0]}return new z(se,P)}}serialize(){return this.expr.map(G=>G.serialize()).join(" || ")}keys(){const G=[];for(const P of this.expr)G.push(...P.keys());return G}negate(){if(!this.negated){const G=[];for(const P of this.expr)G.push(P.negate());for(;G.length>1;){const P=G.shift(),te=G.shift(),se=[];for(const ue of Q(P))for(const ge of Q(te))se.push(W.create([ue,ge],null,!1));G.unshift(z.create(se,null,!1))}this.negated=z.create(G,this,!0)}return this.negated}}e.ContextKeyOrExpr=z;class q extends C{static{this._info=[]}static all(){return q._info.values()}constructor(G,P,te){super(G,null),this._defaultValue=P,typeof te=="object"?q._info.push({...te,key:G}):te!==!0&&q._info.push({key:G,description:te,type:P!=null?typeof P:void 0})}bindTo(G){return G.createKey(this.key,this._defaultValue)}getValue(G){return G.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(G){return b.create(this.key,G)}}e.RawContextKey=q,e.IContextKeyService=(0,L.createDecorator)("contextKeyService");function H(X,G){return X<G?-1:X>G?1:0}function K(X,G,P,te){return X<P?-1:X>P?1:G<te?-1:G>te?1:0}function U(X,G){if(X.type===0||G.type===1)return!0;if(X.type===9)return G.type===9?Y(X.expr,G.expr):!1;if(G.type===9){for(const P of G.expr)if(U(X,P))return!0;return!1}if(X.type===6){if(G.type===6)return Y(G.expr,X.expr);for(const P of X.expr)if(U(P,G))return!0;return!1}return X.equals(G)}function Y(X,G){let P=0,te=0;for(;P<X.length&&te<G.length;){const se=X[P].cmp(G[te]);if(se<0)return!1;se===0&&P++,te++}return P===X.length}function Q(X){return X.type===9?X.expr:[X]}}),define(oe[20],re([1,0,3,12]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorContextKeys=void 0;var E;(function(L){L.editorSimpleInput=new k.RawContextKey("editorSimpleInput",!1,!0),L.editorTextFocus=new k.RawContextKey("editorTextFocus",!1,c.localize(1802,"Whether the editor text has focus (cursor is blinking)")),L.focus=new k.RawContextKey("editorFocus",!1,c.localize(1803,"Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),L.textInputFocus=new k.RawContextKey("textInputFocus",!1,c.localize(1804,"Whether an editor or a rich text input has focus (cursor is blinking)")),L.readOnly=new k.RawContextKey("editorReadonly",!1,c.localize(1805,"Whether the editor is read-only")),L.inDiffEditor=new k.RawContextKey("inDiffEditor",!1,c.localize(1806,"Whether the context is a diff editor")),L.isEmbeddedDiffEditor=new k.RawContextKey("isEmbeddedDiffEditor",!1,c.localize(1807,"Whether the context is an embedded diff editor")),L.inMultiDiffEditor=new k.RawContextKey("inMultiDiffEditor",!1,c.localize(1808,"Whether the context is a multi diff editor")),L.multiDiffEditorAllCollapsed=new k.RawContextKey("multiDiffEditorAllCollapsed",void 0,c.localize(1809,"Whether all files in multi diff editor are collapsed")),L.hasChanges=new k.RawContextKey("diffEditorHasChanges",!1,c.localize(1810,"Whether the diff editor has changes")),L.comparingMovedCode=new k.RawContextKey("comparingMovedCode",!1,c.localize(1811,"Whether a moved code block is selected for comparison")),L.accessibleDiffViewerVisible=new k.RawContextKey("accessibleDiffViewerVisible",!1,c.localize(1812,"Whether the accessible diff viewer is visible")),L.diffEditorRenderSideBySideInlineBreakpointReached=new k.RawContextKey("diffEditorRenderSideBySideInlineBreakpointReached",!1,c.localize(1813,"Whether the diff editor render side by side inline breakpoint is reached")),L.diffEditorInlineMode=new k.RawContextKey("diffEditorInlineMode",!1,c.localize(1814,"Whether inline mode is active")),L.diffEditorOriginalWritable=new k.RawContextKey("diffEditorOriginalWritable",!1,c.localize(1815,"Whether modified is writable in the diff editor")),L.diffEditorModifiedWritable=new k.RawContextKey("diffEditorModifiedWritable",!1,c.localize(1816,"Whether modified is writable in the diff editor")),L.diffEditorOriginalUri=new k.RawContextKey("diffEditorOriginalUri","",c.localize(1817,"The uri of the original document")),L.diffEditorModifiedUri=new k.RawContextKey("diffEditorModifiedUri","",c.localize(1818,"The uri of the modified document")),L.columnSelection=new k.RawContextKey("editorColumnSelection",!1,c.localize(1819,"Whether `editor.columnSelection` is enabled")),L.writable=L.readOnly.toNegated(),L.hasNonEmptySelection=new k.RawContextKey("editorHasSelection",!1,c.localize(1820,"Whether the editor has text selected")),L.hasOnlyEmptySelection=L.hasNonEmptySelection.toNegated(),L.hasMultipleSelections=new k.RawContextKey("editorHasMultipleSelections",!1,c.localize(1821,"Whether the editor has multiple selections")),L.hasSingleSelection=L.hasMultipleSelections.toNegated(),L.tabMovesFocus=new k.RawContextKey("editorTabMovesFocus",!1,c.localize(1822,"Whether `Tab` will move focus out of the editor")),L.tabDoesNotMoveFocus=L.tabMovesFocus.toNegated(),L.isInEmbeddedEditor=new k.RawContextKey("isInEmbeddedEditor",!1,!0),L.canUndo=new k.RawContextKey("canUndo",!1,!0),L.canRedo=new k.RawContextKey("canRedo",!1,!0),L.hoverVisible=new k.RawContextKey("editorHoverVisible",!1,c.localize(1823,"Whether the editor hover is visible")),L.hoverFocused=new k.RawContextKey("editorHoverFocused",!1,c.localize(1824,"Whether the editor hover is focused")),L.stickyScrollFocused=new k.RawContextKey("stickyScrollFocused",!1,c.localize(1825,"Whether the sticky scroll is focused")),L.stickyScrollVisible=new k.RawContextKey("stickyScrollVisible",!1,c.localize(1826,"Whether the sticky scroll is visible")),L.standaloneColorPickerVisible=new k.RawContextKey("standaloneColorPickerVisible",!1,c.localize(1827,"Whether the standalone color picker is visible")),L.standaloneColorPickerFocused=new k.RawContextKey("standaloneColorPickerFocused",!1,c.localize(1828,"Whether the standalone color picker is focused")),L.inCompositeEditor=new k.RawContextKey("inCompositeEditor",void 0,c.localize(1829,"Whether the editor is part of a larger editor (e.g. notebooks)")),L.notInCompositeEditor=L.inCompositeEditor.toNegated(),L.languageId=new k.RawContextKey("editorLangId","",c.localize(1830,"The language identifier of the editor")),L.hasCompletionItemProvider=new k.RawContextKey("editorHasCompletionItemProvider",!1,c.localize(1831,"Whether the editor has a completion item provider")),L.hasCodeActionsProvider=new k.RawContextKey("editorHasCodeActionsProvider",!1,c.localize(1832,"Whether the editor has a code actions provider")),L.hasCodeLensProvider=new k.RawContextKey("editorHasCodeLensProvider",!1,c.localize(1833,"Whether the editor has a code lens provider")),L.hasDefinitionProvider=new k.RawContextKey("editorHasDefinitionProvider",!1,c.localize(1834,"Whether the editor has a definition provider")),L.hasDeclarationProvider=new k.RawContextKey("editorHasDeclarationProvider",!1,c.localize(1835,"Whether the editor has a declaration provider")),L.hasImplementationProvider=new k.RawContextKey("editorHasImplementationProvider",!1,c.localize(1836,"Whether the editor has an implementation provider")),L.hasTypeDefinitionProvider=new k.RawContextKey("editorHasTypeDefinitionProvider",!1,c.localize(1837,"Whether the editor has a type definition provider")),L.hasHoverProvider=new k.RawContextKey("editorHasHoverProvider",!1,c.localize(1838,"Whether the editor has a hover provider")),L.hasDocumentHighlightProvider=new k.RawContextKey("editorHasDocumentHighlightProvider",!1,c.localize(1839,"Whether the editor has a document highlight provider")),L.hasDocumentSymbolProvider=new k.RawContextKey("editorHasDocumentSymbolProvider",!1,c.localize(1840,"Whether the editor has a document symbol provider")),L.hasReferenceProvider=new k.RawContextKey("editorHasReferenceProvider",!1,c.localize(1841,"Whether the editor has a reference provider")),L.hasRenameProvider=new k.RawContextKey("editorHasRenameProvider",!1,c.localize(1842,"Whether the editor has a rename provider")),L.hasSignatureHelpProvider=new k.RawContextKey("editorHasSignatureHelpProvider",!1,c.localize(1843,"Whether the editor has a signature help provider")),L.hasInlayHintsProvider=new k.RawContextKey("editorHasInlayHintsProvider",!1,c.localize(1844,"Whether the editor has an inline hints provider")),L.hasDocumentFormattingProvider=new k.RawContextKey("editorHasDocumentFormattingProvider",!1,c.localize(1845,"Whether the editor has a document formatting provider")),L.hasDocumentSelectionFormattingProvider=new k.RawContextKey("editorHasDocumentSelectionFormattingProvider",!1,c.localize(1846,"Whether the editor has a document selection formatting provider")),L.hasMultipleDocumentFormattingProvider=new k.RawContextKey("editorHasMultipleDocumentFormattingProvider",!1,c.localize(1847,"Whether the editor has multiple document formatting providers")),L.hasMultipleDocumentSelectionFormattingProvider=new k.RawContextKey("editorHasMultipleDocumentSelectionFormattingProvider",!1,c.localize(1848,"Whether the editor has multiple document selection formatting providers"))})(E||(e.EditorContextKeys=E={}))}),define(oe[267],re([1,0,21,11,93,12,2,3]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionContextKeys=void 0;class _ extends y.Disposable{static{this.inlineSuggestionVisible=new L.RawContextKey("inlineSuggestionVisible",!1,(0,f.localize)(615,"Whether an inline suggestion is visible"))}static{this.inlineSuggestionHasIndentation=new L.RawContextKey("inlineSuggestionHasIndentation",!1,(0,f.localize)(616,"Whether the inline suggestion starts with whitespace"))}static{this.inlineSuggestionHasIndentationLessThanTabSize=new L.RawContextKey("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,f.localize)(617,"Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"))}static{this.suppressSuggestions=new L.RawContextKey("inlineSuggestionSuppressSuggestions",void 0,(0,f.localize)(618,"Whether suggestions should be suppressed for the current suggestion"))}constructor(p,n){super(),this.contextKeyService=p,this.model=n,this.inlineCompletionVisible=_.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=_.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=_.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=_.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,c.autorun)(s=>{const i=this.model.read(s)?.state.read(s),o=!!i?.inlineCompletion&&i?.primaryGhostText!==void 0&&!i?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(o),i?.primaryGhostText&&i?.inlineCompletion&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register((0,c.autorun)(s=>{const t=this.model.read(s);let i=!1,o=!0;const g=t?.primaryGhostText.read(s);if(t?.selectedSuggestItem&&g&&g.parts.length>0){const{column:u,lines:l}=g.parts[0],r=l[0],a=t.textModel.getLineIndentColumn(g.lineNumber);if(u<=a){let m=(0,k.firstNonWhitespaceIndex)(r);m===-1&&(m=r.length-1),i=m>0;const h=t.textModel.getOptions().tabSize;o=E.CursorColumns.visibleColumnFromColumn(r,m+1,h)<h}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(o)}))}}e.InlineCompletionContextKeys=_}),define(oe[384],re([1,0,3,12]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPinnedContextKey=e.inlineEditVisible=e.showNextInlineEditActionId=e.showPreviousInlineEditActionId=e.inlineEditAcceptId=void 0,e.inlineEditAcceptId="editor.action.inlineEdits.accept",e.showPreviousInlineEditActionId="editor.action.inlineEdits.showPrevious",e.showNextInlineEditActionId="editor.action.inlineEdits.showNext",e.inlineEditVisible=new k.RawContextKey("inlineEditsVisible",!1,(0,c.localize)(601,"Whether an inline edit is visible")),e.isPinnedContextKey=new k.RawContextKey("inlineEditsIsPinned",!1,(0,c.localize)(602,"Whether an inline edit is visible"))}),define(oe[268],re([1,0,18,8,19,22,9,28,17,78,24,12]),function(ae,e,c,k,E,L,y,f,_,v,p,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Context=void 0,e.provideSignatureHelp=s,e.Context={Visible:new n.RawContextKey("parameterHintsVisible",!1),MultipleSignatures:new n.RawContextKey("parameterHintsMultipleSignatures",!1)};async function s(t,i,o,g,u){const l=t.ordered(i);for(const r of l)try{const a=await r.provideSignatureHelp(i,o,u,g);if(a)return a}catch(a){(0,k.onUnexpectedExternalError)(a)}}p.CommandsRegistry.registerCommand("_executeSignatureHelpProvider",async(t,...i)=>{const[o,g,u]=i;(0,E.assertType)(L.URI.isUri(o)),(0,E.assertType)(y.Position.isIPosition(g)),(0,E.assertType)(typeof u=="string"||!u);const l=t.get(_.ILanguageFeaturesService),r=await t.get(v.ITextModelService).createModelReference(o);try{const a=await s(l.signatureHelpProvider,r.object.textEditorModel,y.Position.lift(g),{triggerKind:f.SignatureHelpTriggerKind.Invoke,isRetrigger:!1,triggerCharacter:u},c.CancellationToken.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{r.dispose()}})}),define(oe[677],re([1,0,14,8,6,2,143,28,268]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParameterHintsModel=void 0;var v;(function(s){s.Default={type:0};class t{constructor(g,u){this.request=g,this.previouslyActiveHints=u,this.type=2}}s.Pending=t;class i{constructor(g){this.hints=g,this.type=1}}s.Active=i})(v||(v={}));class p extends L.Disposable{static{this.DEFAULT_DELAY=120}constructor(t,i,o=p.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new E.Emitter),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=v.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new L.MutableDisposable),this.triggerChars=new y.CharacterSet,this.retriggerChars=new y.CharacterSet,this.triggerId=0,this.editor=t,this.providers=i,this.throttledDelayer=new c.Delayer(o),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(g=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(g=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(g=>this.onCursorChange(g))),this._register(this.editor.onDidChangeModelContent(g=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(g=>this.onDidType(g))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(t){this._state.type===2&&this._state.request.cancel(),this._state=t}cancel(t=!1){this.state=v.Default,this.throttledDelayer.cancel(),t||this._onChangedHints.fire(void 0)}trigger(t,i){const o=this.editor.getModel();if(!o||!this.providers.has(o))return;const g=++this.triggerId;this._pendingTriggers.push(t),this.throttledDelayer.trigger(()=>this.doTrigger(g),i).catch(k.onUnexpectedError)}next(){if(this.state.type!==1)return;const t=this.state.hints.signatures.length,i=this.state.hints.activeSignature,o=i%t===t-1,g=this.editor.getOption(86).cycle;if((t<2||o)&&!g){this.cancel();return}this.updateActiveSignature(o&&g?0:i+1)}previous(){if(this.state.type!==1)return;const t=this.state.hints.signatures.length,i=this.state.hints.activeSignature,o=i===0,g=this.editor.getOption(86).cycle;if((t<2||o)&&!g){this.cancel();return}this.updateActiveSignature(o&&g?t-1:i-1)}updateActiveSignature(t){this.state.type===1&&(this.state=new v.Active({...this.state.hints,activeSignature:t}),this._onChangedHints.fire(this.state.hints))}async doTrigger(t){const i=this.state.type===1||this.state.type===2,o=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const g=this._pendingTriggers.reduce(n);this._pendingTriggers=[];const u={triggerKind:g.triggerKind,triggerCharacter:g.triggerCharacter,isRetrigger:i,activeSignatureHelp:o};if(!this.editor.hasModel())return!1;const l=this.editor.getModel(),r=this.editor.getPosition();this.state=new v.Pending((0,c.createCancelablePromise)(a=>(0,_.provideSignatureHelp)(this.providers,l,r,u,a)),o);try{const a=await this.state.request;return t!==this.triggerId?(a?.dispose(),!1):!a||!a.value.signatures||a.value.signatures.length===0?(a?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new v.Active(a.value),this._lastSignatureHelpResult.value=a,this._onChangedHints.fire(this.state.hints),!0)}catch(a){return t===this.triggerId&&(this.state=v.Default),(0,k.onUnexpectedError)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const t=this.editor.getModel();if(t)for(const i of this.providers.ordered(t)){for(const o of i.signatureHelpTriggerCharacters||[])if(o.length){const g=o.charCodeAt(0);this.triggerChars.add(g),this.retriggerChars.add(g)}for(const o of i.signatureHelpRetriggerCharacters||[])o.length&&this.retriggerChars.add(o.charCodeAt(0))}}onDidType(t){if(!this.triggerOnType)return;const i=t.length-1,o=t.charCodeAt(i);(this.triggerChars.has(o)||this.isTriggered&&this.retriggerChars.has(o))&&this.trigger({triggerKind:f.SignatureHelpTriggerKind.TriggerCharacter,triggerCharacter:t.charAt(i)})}onCursorChange(t){t.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:f.SignatureHelpTriggerKind.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:f.SignatureHelpTriggerKind.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}e.ParameterHintsModel=p;function n(s,t){switch(t.triggerKind){case f.SignatureHelpTriggerKind.Invoke:return t;case f.SignatureHelpTriggerKind.ContentChange:return s;case f.SignatureHelpTriggerKind.TriggerCharacter:default:return t}}}),define(oe[678],re([1,0,12]),function(ae,e,c){"use strict";var k;Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestAlternatives=void 0;let E=class{static{k=this}static{this.OtherSuggestions=new c.RawContextKey("hasOtherSuggestions",!1)}constructor(y,f){this._editor=y,this._index=0,this._ckOtherSuggestions=k.OtherSuggestions.bindTo(f)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),this._listener?.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:y,index:f},_){if(y.items.length===0){this.reset();return}if(k._moveIndex(!0,y,f)===f){this.reset();return}this._acceptNext=_,this._model=y,this._index=f,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(y,f,_){let v=_;for(let p=f.items.length;p>0&&(v=(v+f.items.length+(y?1:-1))%f.items.length,!(v===_||!f.items[v].completion.additionalTextEdits));p--);return v}next(){this._move(!0)}prev(){this._move(!1)}_move(y){if(this._model)try{this._ignore=!0,this._index=k._moveIndex(y,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};e.SuggestAlternatives=E,e.SuggestAlternatives=E=k=De([he(1,c.IContextKeyService)],E)}),define(oe[679],re([1,0,12]),function(ae,e,c){"use strict";var k;Object.defineProperty(e,"__esModule",{value:!0}),e.WordContextKey=void 0;let E=class{static{k=this}static{this.AtEnd=new c.RawContextKey("atEndOfWord",!1)}constructor(y,f){this._editor=y,this._enabled=!1,this._ckAtEnd=k.AtEnd.bindTo(f),this._configListener=this._editor.onDidChangeConfiguration(_=>_.hasChanged(124)&&this._update()),this._update()}dispose(){this._configListener.dispose(),this._selectionListener?.dispose(),this._ckAtEnd.reset()}_update(){const y=this._editor.getOption(124)==="on";if(this._enabled!==y)if(this._enabled=y,this._enabled){const f=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const _=this._editor.getModel(),v=this._editor.getSelection(),p=_.getWordAtPosition(v.getStartPosition());if(!p){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(p.endColumn===v.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(f),f()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};e.WordContextKey=E,e.WordContextKey=E=k=De([he(1,c.IContextKeyService)],E)}),define(oe[60],re([1,0,12,7]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=e.IAccessibilityService=void 0,e.IAccessibilityService=(0,k.createDecorator)("accessibilityService"),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=new c.RawContextKey("accessibilityModeEnabled",!1)}),define(oe[680],re([1,0,64,13,6,2,54,16,360,364,542,228,37,163,260,60,5,252]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComputedEditorOptions=e.EditorConfiguration=void 0;let l=class extends L.Disposable{constructor(w,S,D,I,T){super(),this._accessibilityService=T,this._onDidChange=this._register(new E.Emitter),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new E.Emitter),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new s.ComputeOptionsMemory,this.isSimpleWidget=w,this.contextMenuId=S,this._containerObserver=this._register(new _.ElementSizeObserver(I,D.dimension)),this._targetWindowId=(0,g.getWindow)(I).vscodeWindowId,this._rawOptions=C(D),this._validatedOptions=h.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(t.EditorZoom.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(n.TabFocus.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(v.FontMeasurements.onDidChange(()=>this._recomputeOptions())),this._register(u.PixelRatio.getInstance((0,g.getWindow)(I)).onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const w=this._computeOptions(),S=h.checkEquals(this.options,w);S!==null&&(this.options=w,this._onDidChangeFast.fire(S),this._onDidChange.fire(S))}_computeOptions(){const w=this._readEnvConfiguration(),S=i.BareFontInfo.createFromValidatedSettings(this._validatedOptions,w.pixelRatio,this.isSimpleWidget),D=this._readFontInfo(S),I={memory:this._computeOptionsMemory,outerWidth:w.outerWidth,outerHeight:w.outerHeight-this._reservedHeight,fontInfo:D,extraEditorClassName:w.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:w.emptySelectionClipboard,pixelRatio:w.pixelRatio,tabFocusMode:n.TabFocus.getTabFocusMode(),accessibilitySupport:w.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return h.computeOptions(this._validatedOptions,I)}_readEnvConfiguration(){return{extraEditorClassName:a(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:c.isWebKit||c.isFirefox,pixelRatio:u.PixelRatio.getInstance((0,g.getWindowById)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(w){return v.FontMeasurements.readFontInfo((0,g.getWindowById)(this._targetWindowId,!0).window,w)}getRawOptions(){return this._rawOptions}updateOptions(w){const S=C(w);h.applyUpdate(this._rawOptions,S)&&(this._validatedOptions=h.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(w){this._containerObserver.observe(w)}setIsDominatedByLongLines(w){this._isDominatedByLongLines!==w&&(this._isDominatedByLongLines=w,this._recomputeOptions())}setModelLineCount(w){const S=r(w);this._lineNumbersDigitCount!==S&&(this._lineNumbersDigitCount=S,this._recomputeOptions())}setViewLineCount(w){this._viewLineCount!==w&&(this._viewLineCount=w,this._recomputeOptions())}setReservedHeight(w){this._reservedHeight!==w&&(this._reservedHeight=w,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(w){this._glyphMarginDecorationLaneCount!==w&&(this._glyphMarginDecorationLaneCount=w,this._recomputeOptions())}};e.EditorConfiguration=l,e.EditorConfiguration=l=De([he(4,o.IAccessibilityService)],l);function r(b){let w=0;for(;b;)b=Math.floor(b/10),w++;return w||1}function a(){let b="";return!c.isSafari&&!c.isWebkitWebView&&(b+="no-user-select "),c.isSafari&&(b+="no-minimap-shadow ",b+="enable-user-select "),f.isMacintosh&&(b+="mac "),b}class d{constructor(){this._values=[]}_read(w){return this._values[w]}get(w){return this._values[w]}_write(w,S){this._values[w]=S}}class m{constructor(){this._values=[]}_read(w){if(w>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[w]}get(w){return this._read(w)}_write(w,S){this._values[w]=S}}e.ComputedEditorOptions=m;class h{static validateOptions(w){const S=new d;for(const D of s.editorOptionsRegistry){const I=D.name==="_never_"?void 0:w[D.name];S._write(D.id,D.validate(I))}return S}static computeOptions(w,S){const D=new m;for(const I of s.editorOptionsRegistry)D._write(I.id,I.compute(S,D,w._read(I.id)));return D}static _deepEquals(w,S){if(typeof w!="object"||typeof S!="object"||!w||!S)return w===S;if(Array.isArray(w)||Array.isArray(S))return Array.isArray(w)&&Array.isArray(S)?k.equals(w,S):!1;if(Object.keys(w).length!==Object.keys(S).length)return!1;for(const D in w)if(!h._deepEquals(w[D],S[D]))return!1;return!0}static checkEquals(w,S){const D=[];let I=!1;for(const T of s.editorOptionsRegistry){const M=!h._deepEquals(w._read(T.id),S._read(T.id));D[T.id]=M,M&&(I=!0)}return I?new s.ConfigurationChangedEvent(D):null}static applyUpdate(w,S){let D=!1;for(const I of s.editorOptionsRegistry)if(S.hasOwnProperty(I.name)){const T=I.applyUpdate(w[I.name],S[I.name]);w[I.name]=T.newValue,D=D||T.didChange}return D}}function C(b){const w=y.deepClone(b);return(0,p.migrateOptions)(w),w}}),define(oe[681],re([1,0,6,53,2,54,223,22,3,24,27,12]),function(ae,e,c,k,E,L,y,f,_,v,p,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextKeyService=e.AbstractContextKeyService=e.Context=void 0,e.setContext=b;const s="data-keybinding-context";class t{constructor(D,I){this._id=D,this._parent=I,this._value=Object.create(null),this._value._contextId=D}get value(){return{...this._value}}setValue(D,I){return this._value[D]!==I?(this._value[D]=I,!0):!1}removeValue(D){return D in this._value?(delete this._value[D],!0):!1}getValue(D){const I=this._value[D];return typeof I>"u"&&this._parent?this._parent.getValue(D):I}}e.Context=t;class i extends t{static{this.INSTANCE=new i}constructor(){super(-1,null)}setValue(D,I){return!1}removeValue(D){return!1}getValue(D){}}class o extends t{static{this._keyPrefix="config."}constructor(D,I,T){super(D,null),this._configurationService=I,this._values=y.TernarySearchTree.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(M=>{if(M.source===7){const A=Array.from(this._values,([R])=>R);this._values.clear(),T.fire(new l(A))}else{const A=[];for(const R of M.affectedKeys){const N=`config.${R}`,O=this._values.findSuperstr(N);O!==void 0&&(A.push(...k.Iterable.map(O,([x])=>x)),this._values.deleteSuperstr(N)),this._values.has(N)&&(A.push(N),this._values.delete(N))}T.fire(new l(A))}})}dispose(){this._listener.dispose()}getValue(D){if(D.indexOf(o._keyPrefix)!==0)return super.getValue(D);if(this._values.has(D))return this._values.get(D);const I=D.substr(o._keyPrefix.length),T=this._configurationService.getValue(I);let M;switch(typeof T){case"number":case"boolean":case"string":M=T;break;default:Array.isArray(T)?M=JSON.stringify(T):M=T}return this._values.set(D,M),M}setValue(D,I){return super.setValue(D,I)}removeValue(D){return super.removeValue(D)}}class g{constructor(D,I,T){this._service=D,this._key=I,this._defaultValue=T,this.reset()}set(D){this._service.setContext(this._key,D)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class u{constructor(D){this.key=D}affectsSome(D){return D.has(this.key)}allKeysContainedIn(D){return this.affectsSome(D)}}class l{constructor(D){this.keys=D}affectsSome(D){for(const I of this.keys)if(D.has(I))return!0;return!1}allKeysContainedIn(D){return this.keys.every(I=>D.has(I))}}class r{constructor(D){this.events=D}affectsSome(D){for(const I of this.events)if(I.affectsSome(D))return!0;return!1}allKeysContainedIn(D){return this.events.every(I=>I.allKeysContainedIn(D))}}function a(S,D){return S.allKeysContainedIn(new Set(Object.keys(D)))}class d extends E.Disposable{constructor(D){super(),this._onDidChangeContext=this._register(new c.PauseableEmitter({merge:I=>new r(I)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=D}createKey(D,I){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new g(this,D,I)}bufferChangeEvents(D){this._onDidChangeContext.pause();try{D()}finally{this._onDidChangeContext.resume()}}createScoped(D){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new h(this,D)}contextMatchesRules(D){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const I=this.getContextValuesContainer(this._myContextId);return D?D.evaluate(I):!0}getContextKeyValue(D){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(D)}setContext(D,I){if(this._isDisposed)return;const T=this.getContextValuesContainer(this._myContextId);T&&T.setValue(D,I)&&this._onDidChangeContext.fire(new u(D))}removeContext(D){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(D)&&this._onDidChangeContext.fire(new u(D))}getContext(D){return this._isDisposed?i.INSTANCE:this.getContextValuesContainer(C(D))}dispose(){super.dispose(),this._isDisposed=!0}}e.AbstractContextKeyService=d;let m=class extends d{constructor(D){super(0),this._contexts=new Map,this._lastContextId=0;const I=this._register(new o(this._myContextId,D,this._onDidChangeContext));this._contexts.set(this._myContextId,I)}getContextValuesContainer(D){return this._isDisposed?i.INSTANCE:this._contexts.get(D)||i.INSTANCE}createChildContext(D=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const I=++this._lastContextId;return this._contexts.set(I,new t(I,this.getContextValuesContainer(D))),I}disposeContext(D){this._isDisposed||this._contexts.delete(D)}};e.ContextKeyService=m,e.ContextKeyService=m=De([he(0,p.IConfigurationService)],m);class h extends d{constructor(D,I){if(super(D.createChildContext()),this._parentChangeListener=this._register(new E.MutableDisposable),this._parent=D,this._updateParentChangeListener(),this._domNode=I,this._domNode.hasAttribute(s)){let T="";this._domNode.classList&&(T=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${T?": "+T:""}`)}this._domNode.setAttribute(s,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(D=>{const T=this._parent.getContextValuesContainer(this._myContextId).value;a(D,T)||this._onDidChangeContext.fire(D)})}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(s),super.dispose())}getContextValuesContainer(D){return this._isDisposed?i.INSTANCE:this._parent.getContextValuesContainer(D)}createChildContext(D=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(D)}disposeContext(D){this._isDisposed||this._parent.disposeContext(D)}}function C(S){for(;S;){if(S.hasAttribute(s)){const D=S.getAttribute(s);return D?parseInt(D,10):NaN}S=S.parentElement}return 0}function b(S,D,I){S.get(n.IContextKeyService).createKey(String(D),w(I))}function w(S){return(0,L.cloneAndChange)(S,D=>{if(typeof D=="object"&&D.$mid===1)return f.URI.revive(D).toString();if(D instanceof f.URI)return D.toString()})}v.CommandsRegistry.registerCommand("_setContext",b),v.CommandsRegistry.registerCommand({id:"getContextKeyInfo",handler(){return[...n.RawContextKey.all()].sort((S,D)=>S.key.localeCompare(D.key))},metadata:{description:(0,_.localize)(1154,"A command that returns information about context keys"),args:[]}}),v.CommandsRegistry.registerCommand("_generateContextKeyInfo",function(){const S=[],D=new Set;for(const I of n.RawContextKey.all())D.has(I.key)||(D.add(I.key),S.push(I));S.sort((I,T)=>I.key.localeCompare(T.key)),console.log(JSON.stringify(S,void 0,2))})}),define(oe[178],re([1,0,16,3,12]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFocusedContext=e.InputFocusedContextKey=e.ProductQualityContext=e.IsDevelopmentContext=e.IsMobileContext=e.IsIOSContext=e.IsMacNativeContext=e.IsWebContext=e.IsWindowsContext=e.IsLinuxContext=e.IsMacContext=void 0,e.IsMacContext=new E.RawContextKey("isMac",c.isMacintosh,(0,k.localize)(1136,"Whether the operating system is macOS")),e.IsLinuxContext=new E.RawContextKey("isLinux",c.isLinux,(0,k.localize)(1137,"Whether the operating system is Linux")),e.IsWindowsContext=new E.RawContextKey("isWindows",c.isWindows,(0,k.localize)(1138,"Whether the operating system is Windows")),e.IsWebContext=new E.RawContextKey("isWeb",c.isWeb,(0,k.localize)(1139,"Whether the platform is a web browser")),e.IsMacNativeContext=new E.RawContextKey("isMacNative",c.isMacintosh&&!c.isWeb,(0,k.localize)(1140,"Whether the operating system is macOS on a non-browser platform")),e.IsIOSContext=new E.RawContextKey("isIOS",c.isIOS,(0,k.localize)(1141,"Whether the operating system is iOS")),e.IsMobileContext=new E.RawContextKey("isMobile",c.isMobile,(0,k.localize)(1142,"Whether the platform is a mobile web browser")),e.IsDevelopmentContext=new E.RawContextKey("isDevelopment",!1,!0),e.ProductQualityContext=new E.RawContextKey("productQualityType","",(0,k.localize)(1143,"Quality type of VS Code")),e.InputFocusedContextKey="inputFocus",e.InputFocusedContext=new E.RawContextKey(e.InputFocusedContextKey,!1,(0,k.localize)(1144,"Whether keyboard focus is inside an input box"))}),define(oe[58],re([1,0,7]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IContextMenuService=e.IContextViewService=void 0,e.IContextViewService=(0,c.createDecorator)("contextViewService"),e.IContextMenuService=(0,c.createDecorator)("contextMenuService")}),define(oe[179],re([1,0,7]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDialogService=void 0,e.IDialogService=(0,c.createDecorator)("dialogService")}),define(oe[269],re([1,0,7]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEnvironmentService=void 0,e.IEnvironmentService=(0,c.createDecorator)("environmentService")}),define(oe[118],re([1,0,7,2,27,5]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nativeHoverDelegate=e.WorkbenchHoverDelegate=e.IHoverService=void 0,e.IHoverService=(0,c.createDecorator)("hoverService");let y=class extends k.Disposable{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(_,v,p={},n,s){super(),this.placement=_,this.instantHover=v,this.overrideOptions=p,this.configurationService=n,this.hoverService=s,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new k.DisposableStore),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration(t=>{t.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))}))}showHover(_,v){const p=typeof this.overrideOptions=="function"?this.overrideOptions(_,v):this.overrideOptions;this.hoverDisposables.clear();const n=(0,L.isHTMLElement)(_.target)?[_.target]:_.target.targetElements;for(const t of n)this.hoverDisposables.add((0,L.addStandardDisposableListener)(t,"keydown",i=>{i.equals(9)&&this.hoverService.hideHover()}));const s=(0,L.isHTMLElement)(_.content)?void 0:_.content.toString();return this.hoverService.showHover({..._,...p,persistence:{hideOnKeyDown:!0,...p.persistence},id:s,appearance:{..._.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...p.appearance}},v)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};e.WorkbenchHoverDelegate=y,e.WorkbenchHoverDelegate=y=De([he(3,E.IConfigurationService),he(4,e.IHoverService)],y),e.nativeHoverDelegate={showHover:function(){throw new Error("Native hover function not implemented.")},delay:0,showNativeHover:!0}}),define(oe[180],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceCollection=void 0;class c{constructor(...E){this._entries=new Map;for(const[L,y]of E)this.set(L,y)}set(E,L){const y=this._entries.get(E);return this._entries.set(E,L),y}get(E){return this._entries.get(E)}}e.ServiceCollection=c}),define(oe[682],re([1,0,14,8,2,263,671,7,180,73]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trace=e.InstantiationService=void 0;const p=!1;class n extends Error{constructor(o){super("cyclic dependency between services"),this.message=o.findCycleSlow()??`UNABLE to detect cycle, dumping graph:
|
|
615
|
+
Received: '{1}'.`,G,E.Scanner.getLexeme(P)),ue=P.offset,ge=E.Scanner.getLexeme(P);return this._parsingErrors.push({message:se,offset:ue,lexeme:ge,additionalInfo:te}),l._parseError}_check(G){return this._peek().type===G}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}}e.Parser=l;class r{static false(){return m.INSTANCE}static true(){return h.INSTANCE}static has(G){return C.create(G)}static equals(G,P){return b.create(G,P)}static notEquals(G,P){return D.create(G,P)}static regex(G,P){return O.create(G,P)}static in(G,P){return w.create(G,P)}static notIn(G,P){return S.create(G,P)}static not(G){return I.create(G)}static and(...G){return W.create(G,null,!0)}static or(...G){return z.create(G,null,!0)}static{this._parser=new l({regexParsingWithErrorRecovery:!1})}static deserialize(G){return G==null?void 0:this._parser.parse(G)}}e.ContextKeyExpr=r;function a(X,G){const P=X?X.substituteConstants():void 0,te=G?G.substituteConstants():void 0;return!P&&!te?!0:!P||!te?!1:P.equals(te)}function d(X,G){return X.cmp(G)}class m{static{this.INSTANCE=new m}constructor(){this.type=0}cmp(G){return this.type-G.type}equals(G){return G.type===this.type}substituteConstants(){return this}evaluate(G){return!1}serialize(){return"false"}keys(){return[]}negate(){return h.INSTANCE}}e.ContextKeyFalseExpr=m;class h{static{this.INSTANCE=new h}constructor(){this.type=1}cmp(G){return this.type-G.type}equals(G){return G.type===this.type}substituteConstants(){return this}evaluate(G){return!0}serialize(){return"true"}keys(){return[]}negate(){return m.INSTANCE}}e.ContextKeyTrueExpr=h;class C{static create(G,P=null){const te=f.get(G);return typeof te=="boolean"?te?h.INSTANCE:m.INSTANCE:new C(G,P)}constructor(G,P){this.key=G,this.negated=P,this.type=2}cmp(G){return G.type!==this.type?this.type-G.type:H(this.key,G.key)}equals(G){return G.type===this.type?this.key===G.key:!1}substituteConstants(){const G=f.get(this.key);return typeof G=="boolean"?G?h.INSTANCE:m.INSTANCE:this}evaluate(G){return!!G.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}e.ContextKeyDefinedExpr=C;class b{static create(G,P,te=null){if(typeof P=="boolean")return P?C.create(G,te):I.create(G,te);const se=f.get(G);return typeof se=="boolean"?P===(se?"true":"false")?h.INSTANCE:m.INSTANCE:new b(G,P,te)}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=4}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){const G=f.get(this.key);if(typeof G=="boolean"){const P=G?"true":"false";return this.value===P?h.INSTANCE:m.INSTANCE}return this}evaluate(G){return G.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}e.ContextKeyEqualsExpr=b;class w{static create(G,P){return new w(G,P)}constructor(G,P){this.key=G,this.valueKey=P,this.type=10,this.negated=null}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.valueKey,G.key,G.valueKey)}equals(G){return G.type===this.type?this.key===G.key&&this.valueKey===G.valueKey:!1}substituteConstants(){return this}evaluate(G){const P=G.getValue(this.valueKey),te=G.getValue(this.key);return Array.isArray(P)?P.includes(te):typeof te=="string"&&typeof P=="object"&&P!==null?_.call(P,te):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=S.create(this.key,this.valueKey)),this.negated}}e.ContextKeyInExpr=w;class S{static create(G,P){return new S(G,P)}constructor(G,P){this.key=G,this.valueKey=P,this.type=11,this._negated=w.create(G,P)}cmp(G){return G.type!==this.type?this.type-G.type:this._negated.cmp(G._negated)}equals(G){return G.type===this.type?this._negated.equals(G._negated):!1}substituteConstants(){return this}evaluate(G){return!this._negated.evaluate(G)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}e.ContextKeyNotInExpr=S;class D{static create(G,P,te=null){if(typeof P=="boolean")return P?I.create(G,te):C.create(G,te);const se=f.get(G);return typeof se=="boolean"?P===(se?"true":"false")?m.INSTANCE:h.INSTANCE:new D(G,P,te)}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=5}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){const G=f.get(this.key);if(typeof G=="boolean"){const P=G?"true":"false";return this.value===P?m.INSTANCE:h.INSTANCE}return this}evaluate(G){return G.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}e.ContextKeyNotEqualsExpr=D;class I{static create(G,P=null){const te=f.get(G);return typeof te=="boolean"?te?m.INSTANCE:h.INSTANCE:new I(G,P)}constructor(G,P){this.key=G,this.negated=P,this.type=3}cmp(G){return G.type!==this.type?this.type-G.type:H(this.key,G.key)}equals(G){return G.type===this.type?this.key===G.key:!1}substituteConstants(){const G=f.get(this.key);return typeof G=="boolean"?G?m.INSTANCE:h.INSTANCE:this}evaluate(G){return!G.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=C.create(this.key,this)),this.negated}}e.ContextKeyNotExpr=I;function T(X,G){if(typeof X=="string"){const P=parseFloat(X);isNaN(P)||(X=P)}return typeof X=="string"||typeof X=="number"?G(X):m.INSTANCE}class M{static create(G,P,te=null){return T(P,se=>new M(G,se,te))}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=12}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){return this}evaluate(G){return typeof this.value=="string"?!1:parseFloat(G.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterExpr=M;class A{static create(G,P,te=null){return T(P,se=>new A(G,se,te))}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=13}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){return this}evaluate(G){return typeof this.value=="string"?!1:parseFloat(G.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterEqualsExpr=A;class R{static create(G,P,te=null){return T(P,se=>new R(G,se,te))}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=14}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){return this}evaluate(G){return typeof this.value=="string"?!1:parseFloat(G.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerExpr=R;class N{static create(G,P,te=null){return T(P,se=>new N(G,se,te))}constructor(G,P,te){this.key=G,this.value=P,this.negated=te,this.type=15}cmp(G){return G.type!==this.type?this.type-G.type:K(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type?this.key===G.key&&this.value===G.value:!1}substituteConstants(){return this}evaluate(G){return typeof this.value=="string"?!1:parseFloat(G.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerEqualsExpr=N;class O{static create(G,P){return new O(G,P)}constructor(G,P){this.key=G,this.regexp=P,this.type=7,this.negated=null}cmp(G){if(G.type!==this.type)return this.type-G.type;if(this.key<G.key)return-1;if(this.key>G.key)return 1;const P=this.regexp?this.regexp.source:"",te=G.regexp?G.regexp.source:"";return P<te?-1:P>te?1:0}equals(G){if(G.type===this.type){const P=this.regexp?this.regexp.source:"",te=G.regexp?G.regexp.source:"";return this.key===G.key&&P===te}return!1}substituteConstants(){return this}evaluate(G){const P=G.getValue(this.key);return this.regexp?this.regexp.test(P):!1}serialize(){const G=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${G}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this)),this.negated}}e.ContextKeyRegexExpr=O;class x{static create(G){return new x(G)}constructor(G){this._actual=G,this.type=8}cmp(G){return G.type!==this.type?this.type-G.type:this._actual.cmp(G._actual)}equals(G){return G.type===this.type?this._actual.equals(G._actual):!1}substituteConstants(){return this}evaluate(G){return!this._actual.evaluate(G)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}e.ContextKeyNotRegexExpr=x;function F(X){let G=null;for(let P=0,te=X.length;P<te;P++){const se=X[P].substituteConstants();if(X[P]!==se&&G===null){G=[];for(let ue=0;ue<P;ue++)G[ue]=X[ue]}G!==null&&(G[P]=se)}return G===null?X:G}class W{static create(G,P,te){return W._normalizeArr(G,P,te)}constructor(G,P){this.expr=G,this.negated=P,this.type=6}cmp(G){if(G.type!==this.type)return this.type-G.type;if(this.expr.length<G.expr.length)return-1;if(this.expr.length>G.expr.length)return 1;for(let P=0,te=this.expr.length;P<te;P++){const se=d(this.expr[P],G.expr[P]);if(se!==0)return se}return 0}equals(G){if(G.type===this.type){if(this.expr.length!==G.expr.length)return!1;for(let P=0,te=this.expr.length;P<te;P++)if(!this.expr[P].equals(G.expr[P]))return!1;return!0}return!1}substituteConstants(){const G=F(this.expr);return G===this.expr?this:W.create(G,this.negated,!1)}evaluate(G){for(let P=0,te=this.expr.length;P<te;P++)if(!this.expr[P].evaluate(G))return!1;return!0}static _normalizeArr(G,P,te){const se=[];let ue=!1;for(const ge of G)if(ge){if(ge.type===1){ue=!0;continue}if(ge.type===0)return m.INSTANCE;if(ge.type===6){se.push(...ge.expr);continue}se.push(ge)}if(se.length===0&&ue)return h.INSTANCE;if(se.length!==0){if(se.length===1)return se[0];se.sort(d);for(let ge=1;ge<se.length;ge++)se[ge-1].equals(se[ge])&&(se.splice(ge,1),ge--);if(se.length===1)return se[0];for(;se.length>1;){const ge=se[se.length-1];if(ge.type!==9)break;se.pop();const pe=se.pop(),ce=se.length===0,ie=z.create(ge.expr.map(ne=>W.create([ne,pe],null,te)),null,ce);ie&&(se.push(ie),se.sort(d))}if(se.length===1)return se[0];if(te){for(let ge=0;ge<se.length;ge++)for(let pe=ge+1;pe<se.length;pe++)if(se[ge].negate().equals(se[pe]))return m.INSTANCE;if(se.length===1)return se[0]}return new W(se,P)}}serialize(){return this.expr.map(G=>G.serialize()).join(" && ")}keys(){const G=[];for(const P of this.expr)G.push(...P.keys());return G}negate(){if(!this.negated){const G=[];for(const P of this.expr)G.push(P.negate());this.negated=z.create(G,this,!0)}return this.negated}}e.ContextKeyAndExpr=W;class z{static create(G,P,te){return z._normalizeArr(G,P,te)}constructor(G,P){this.expr=G,this.negated=P,this.type=9}cmp(G){if(G.type!==this.type)return this.type-G.type;if(this.expr.length<G.expr.length)return-1;if(this.expr.length>G.expr.length)return 1;for(let P=0,te=this.expr.length;P<te;P++){const se=d(this.expr[P],G.expr[P]);if(se!==0)return se}return 0}equals(G){if(G.type===this.type){if(this.expr.length!==G.expr.length)return!1;for(let P=0,te=this.expr.length;P<te;P++)if(!this.expr[P].equals(G.expr[P]))return!1;return!0}return!1}substituteConstants(){const G=F(this.expr);return G===this.expr?this:z.create(G,this.negated,!1)}evaluate(G){for(let P=0,te=this.expr.length;P<te;P++)if(this.expr[P].evaluate(G))return!0;return!1}static _normalizeArr(G,P,te){let se=[],ue=!1;if(G){for(let ge=0,pe=G.length;ge<pe;ge++){const ce=G[ge];if(ce){if(ce.type===0){ue=!0;continue}if(ce.type===1)return h.INSTANCE;if(ce.type===9){se=se.concat(ce.expr);continue}se.push(ce)}}if(se.length===0&&ue)return m.INSTANCE;se.sort(d)}if(se.length!==0){if(se.length===1)return se[0];for(let ge=1;ge<se.length;ge++)se[ge-1].equals(se[ge])&&(se.splice(ge,1),ge--);if(se.length===1)return se[0];if(te){for(let ge=0;ge<se.length;ge++)for(let pe=ge+1;pe<se.length;pe++)if(se[ge].negate().equals(se[pe]))return h.INSTANCE;if(se.length===1)return se[0]}return new z(se,P)}}serialize(){return this.expr.map(G=>G.serialize()).join(" || ")}keys(){const G=[];for(const P of this.expr)G.push(...P.keys());return G}negate(){if(!this.negated){const G=[];for(const P of this.expr)G.push(P.negate());for(;G.length>1;){const P=G.shift(),te=G.shift(),se=[];for(const ue of Q(P))for(const ge of Q(te))se.push(W.create([ue,ge],null,!1));G.unshift(z.create(se,null,!1))}this.negated=z.create(G,this,!0)}return this.negated}}e.ContextKeyOrExpr=z;class q extends C{static{this._info=[]}static all(){return q._info.values()}constructor(G,P,te){super(G,null),this._defaultValue=P,typeof te=="object"?q._info.push({...te,key:G}):te!==!0&&q._info.push({key:G,description:te,type:P!=null?typeof P:void 0})}bindTo(G){return G.createKey(this.key,this._defaultValue)}getValue(G){return G.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(G){return b.create(this.key,G)}}e.RawContextKey=q,e.IContextKeyService=(0,L.createDecorator)("contextKeyService");function H(X,G){return X<G?-1:X>G?1:0}function K(X,G,P,te){return X<P?-1:X>P?1:G<te?-1:G>te?1:0}function U(X,G){if(X.type===0||G.type===1)return!0;if(X.type===9)return G.type===9?Y(X.expr,G.expr):!1;if(G.type===9){for(const P of G.expr)if(U(X,P))return!0;return!1}if(X.type===6){if(G.type===6)return Y(G.expr,X.expr);for(const P of X.expr)if(U(P,G))return!0;return!1}return X.equals(G)}function Y(X,G){let P=0,te=0;for(;P<X.length&&te<G.length;){const se=X[P].cmp(G[te]);if(se<0)return!1;se===0&&P++,te++}return P===X.length}function Q(X){return X.type===9?X.expr:[X]}}),define(oe[20],re([1,0,3,12]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorContextKeys=void 0;var E;(function(L){L.editorSimpleInput=new k.RawContextKey("editorSimpleInput",!1,!0),L.editorTextFocus=new k.RawContextKey("editorTextFocus",!1,c.localize(1775,"Whether the editor text has focus (cursor is blinking)")),L.focus=new k.RawContextKey("editorFocus",!1,c.localize(1776,"Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),L.textInputFocus=new k.RawContextKey("textInputFocus",!1,c.localize(1777,"Whether an editor or a rich text input has focus (cursor is blinking)")),L.readOnly=new k.RawContextKey("editorReadonly",!1,c.localize(1778,"Whether the editor is read-only")),L.inDiffEditor=new k.RawContextKey("inDiffEditor",!1,c.localize(1779,"Whether the context is a diff editor")),L.isEmbeddedDiffEditor=new k.RawContextKey("isEmbeddedDiffEditor",!1,c.localize(1780,"Whether the context is an embedded diff editor")),L.inMultiDiffEditor=new k.RawContextKey("inMultiDiffEditor",!1,c.localize(1781,"Whether the context is a multi diff editor")),L.multiDiffEditorAllCollapsed=new k.RawContextKey("multiDiffEditorAllCollapsed",void 0,c.localize(1782,"Whether all files in multi diff editor are collapsed")),L.hasChanges=new k.RawContextKey("diffEditorHasChanges",!1,c.localize(1783,"Whether the diff editor has changes")),L.comparingMovedCode=new k.RawContextKey("comparingMovedCode",!1,c.localize(1784,"Whether a moved code block is selected for comparison")),L.accessibleDiffViewerVisible=new k.RawContextKey("accessibleDiffViewerVisible",!1,c.localize(1785,"Whether the accessible diff viewer is visible")),L.diffEditorRenderSideBySideInlineBreakpointReached=new k.RawContextKey("diffEditorRenderSideBySideInlineBreakpointReached",!1,c.localize(1786,"Whether the diff editor render side by side inline breakpoint is reached")),L.diffEditorInlineMode=new k.RawContextKey("diffEditorInlineMode",!1,c.localize(1787,"Whether inline mode is active")),L.diffEditorOriginalWritable=new k.RawContextKey("diffEditorOriginalWritable",!1,c.localize(1788,"Whether modified is writable in the diff editor")),L.diffEditorModifiedWritable=new k.RawContextKey("diffEditorModifiedWritable",!1,c.localize(1789,"Whether modified is writable in the diff editor")),L.diffEditorOriginalUri=new k.RawContextKey("diffEditorOriginalUri","",c.localize(1790,"The uri of the original document")),L.diffEditorModifiedUri=new k.RawContextKey("diffEditorModifiedUri","",c.localize(1791,"The uri of the modified document")),L.columnSelection=new k.RawContextKey("editorColumnSelection",!1,c.localize(1792,"Whether `editor.columnSelection` is enabled")),L.writable=L.readOnly.toNegated(),L.hasNonEmptySelection=new k.RawContextKey("editorHasSelection",!1,c.localize(1793,"Whether the editor has text selected")),L.hasOnlyEmptySelection=L.hasNonEmptySelection.toNegated(),L.hasMultipleSelections=new k.RawContextKey("editorHasMultipleSelections",!1,c.localize(1794,"Whether the editor has multiple selections")),L.hasSingleSelection=L.hasMultipleSelections.toNegated(),L.tabMovesFocus=new k.RawContextKey("editorTabMovesFocus",!1,c.localize(1795,"Whether `Tab` will move focus out of the editor")),L.tabDoesNotMoveFocus=L.tabMovesFocus.toNegated(),L.isInEmbeddedEditor=new k.RawContextKey("isInEmbeddedEditor",!1,!0),L.canUndo=new k.RawContextKey("canUndo",!1,!0),L.canRedo=new k.RawContextKey("canRedo",!1,!0),L.hoverVisible=new k.RawContextKey("editorHoverVisible",!1,c.localize(1796,"Whether the editor hover is visible")),L.hoverFocused=new k.RawContextKey("editorHoverFocused",!1,c.localize(1797,"Whether the editor hover is focused")),L.stickyScrollFocused=new k.RawContextKey("stickyScrollFocused",!1,c.localize(1798,"Whether the sticky scroll is focused")),L.stickyScrollVisible=new k.RawContextKey("stickyScrollVisible",!1,c.localize(1799,"Whether the sticky scroll is visible")),L.standaloneColorPickerVisible=new k.RawContextKey("standaloneColorPickerVisible",!1,c.localize(1800,"Whether the standalone color picker is visible")),L.standaloneColorPickerFocused=new k.RawContextKey("standaloneColorPickerFocused",!1,c.localize(1801,"Whether the standalone color picker is focused")),L.inCompositeEditor=new k.RawContextKey("inCompositeEditor",void 0,c.localize(1802,"Whether the editor is part of a larger editor (e.g. notebooks)")),L.notInCompositeEditor=L.inCompositeEditor.toNegated(),L.languageId=new k.RawContextKey("editorLangId","",c.localize(1803,"The language identifier of the editor")),L.hasCompletionItemProvider=new k.RawContextKey("editorHasCompletionItemProvider",!1,c.localize(1804,"Whether the editor has a completion item provider")),L.hasCodeActionsProvider=new k.RawContextKey("editorHasCodeActionsProvider",!1,c.localize(1805,"Whether the editor has a code actions provider")),L.hasCodeLensProvider=new k.RawContextKey("editorHasCodeLensProvider",!1,c.localize(1806,"Whether the editor has a code lens provider")),L.hasDefinitionProvider=new k.RawContextKey("editorHasDefinitionProvider",!1,c.localize(1807,"Whether the editor has a definition provider")),L.hasDeclarationProvider=new k.RawContextKey("editorHasDeclarationProvider",!1,c.localize(1808,"Whether the editor has a declaration provider")),L.hasImplementationProvider=new k.RawContextKey("editorHasImplementationProvider",!1,c.localize(1809,"Whether the editor has an implementation provider")),L.hasTypeDefinitionProvider=new k.RawContextKey("editorHasTypeDefinitionProvider",!1,c.localize(1810,"Whether the editor has a type definition provider")),L.hasHoverProvider=new k.RawContextKey("editorHasHoverProvider",!1,c.localize(1811,"Whether the editor has a hover provider")),L.hasDocumentHighlightProvider=new k.RawContextKey("editorHasDocumentHighlightProvider",!1,c.localize(1812,"Whether the editor has a document highlight provider")),L.hasDocumentSymbolProvider=new k.RawContextKey("editorHasDocumentSymbolProvider",!1,c.localize(1813,"Whether the editor has a document symbol provider")),L.hasReferenceProvider=new k.RawContextKey("editorHasReferenceProvider",!1,c.localize(1814,"Whether the editor has a reference provider")),L.hasRenameProvider=new k.RawContextKey("editorHasRenameProvider",!1,c.localize(1815,"Whether the editor has a rename provider")),L.hasSignatureHelpProvider=new k.RawContextKey("editorHasSignatureHelpProvider",!1,c.localize(1816,"Whether the editor has a signature help provider")),L.hasInlayHintsProvider=new k.RawContextKey("editorHasInlayHintsProvider",!1,c.localize(1817,"Whether the editor has an inline hints provider")),L.hasDocumentFormattingProvider=new k.RawContextKey("editorHasDocumentFormattingProvider",!1,c.localize(1818,"Whether the editor has a document formatting provider")),L.hasDocumentSelectionFormattingProvider=new k.RawContextKey("editorHasDocumentSelectionFormattingProvider",!1,c.localize(1819,"Whether the editor has a document selection formatting provider")),L.hasMultipleDocumentFormattingProvider=new k.RawContextKey("editorHasMultipleDocumentFormattingProvider",!1,c.localize(1820,"Whether the editor has multiple document formatting providers")),L.hasMultipleDocumentSelectionFormattingProvider=new k.RawContextKey("editorHasMultipleDocumentSelectionFormattingProvider",!1,c.localize(1821,"Whether the editor has multiple document selection formatting providers"))})(E||(e.EditorContextKeys=E={}))}),define(oe[267],re([1,0,21,11,93,12,2,3]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionContextKeys=void 0;class _ extends y.Disposable{static{this.inlineSuggestionVisible=new L.RawContextKey("inlineSuggestionVisible",!1,(0,f.localize)(615,"Whether an inline suggestion is visible"))}static{this.inlineSuggestionHasIndentation=new L.RawContextKey("inlineSuggestionHasIndentation",!1,(0,f.localize)(616,"Whether the inline suggestion starts with whitespace"))}static{this.inlineSuggestionHasIndentationLessThanTabSize=new L.RawContextKey("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,f.localize)(617,"Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"))}static{this.suppressSuggestions=new L.RawContextKey("inlineSuggestionSuppressSuggestions",void 0,(0,f.localize)(618,"Whether suggestions should be suppressed for the current suggestion"))}constructor(p,n){super(),this.contextKeyService=p,this.model=n,this.inlineCompletionVisible=_.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=_.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=_.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=_.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,c.autorun)(s=>{const i=this.model.read(s)?.state.read(s),o=!!i?.inlineCompletion&&i?.primaryGhostText!==void 0&&!i?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(o),i?.primaryGhostText&&i?.inlineCompletion&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register((0,c.autorun)(s=>{const t=this.model.read(s);let i=!1,o=!0;const g=t?.primaryGhostText.read(s);if(t?.selectedSuggestItem&&g&&g.parts.length>0){const{column:u,lines:l}=g.parts[0],r=l[0],a=t.textModel.getLineIndentColumn(g.lineNumber);if(u<=a){let m=(0,k.firstNonWhitespaceIndex)(r);m===-1&&(m=r.length-1),i=m>0;const h=t.textModel.getOptions().tabSize;o=E.CursorColumns.visibleColumnFromColumn(r,m+1,h)<h}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(o)}))}}e.InlineCompletionContextKeys=_}),define(oe[384],re([1,0,3,12]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPinnedContextKey=e.inlineEditVisible=e.showNextInlineEditActionId=e.showPreviousInlineEditActionId=e.inlineEditAcceptId=void 0,e.inlineEditAcceptId="editor.action.inlineEdits.accept",e.showPreviousInlineEditActionId="editor.action.inlineEdits.showPrevious",e.showNextInlineEditActionId="editor.action.inlineEdits.showNext",e.inlineEditVisible=new k.RawContextKey("inlineEditsVisible",!1,(0,c.localize)(601,"Whether an inline edit is visible")),e.isPinnedContextKey=new k.RawContextKey("inlineEditsIsPinned",!1,(0,c.localize)(602,"Whether an inline edit is visible"))}),define(oe[268],re([1,0,18,8,19,22,9,28,17,78,24,12]),function(ae,e,c,k,E,L,y,f,_,v,p,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Context=void 0,e.provideSignatureHelp=s,e.Context={Visible:new n.RawContextKey("parameterHintsVisible",!1),MultipleSignatures:new n.RawContextKey("parameterHintsMultipleSignatures",!1)};async function s(t,i,o,g,u){const l=t.ordered(i);for(const r of l)try{const a=await r.provideSignatureHelp(i,o,u,g);if(a)return a}catch(a){(0,k.onUnexpectedExternalError)(a)}}p.CommandsRegistry.registerCommand("_executeSignatureHelpProvider",async(t,...i)=>{const[o,g,u]=i;(0,E.assertType)(L.URI.isUri(o)),(0,E.assertType)(y.Position.isIPosition(g)),(0,E.assertType)(typeof u=="string"||!u);const l=t.get(_.ILanguageFeaturesService),r=await t.get(v.ITextModelService).createModelReference(o);try{const a=await s(l.signatureHelpProvider,r.object.textEditorModel,y.Position.lift(g),{triggerKind:f.SignatureHelpTriggerKind.Invoke,isRetrigger:!1,triggerCharacter:u},c.CancellationToken.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{r.dispose()}})}),define(oe[677],re([1,0,14,8,6,2,143,28,268]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParameterHintsModel=void 0;var v;(function(s){s.Default={type:0};class t{constructor(g,u){this.request=g,this.previouslyActiveHints=u,this.type=2}}s.Pending=t;class i{constructor(g){this.hints=g,this.type=1}}s.Active=i})(v||(v={}));class p extends L.Disposable{static{this.DEFAULT_DELAY=120}constructor(t,i,o=p.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new E.Emitter),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=v.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new L.MutableDisposable),this.triggerChars=new y.CharacterSet,this.retriggerChars=new y.CharacterSet,this.triggerId=0,this.editor=t,this.providers=i,this.throttledDelayer=new c.Delayer(o),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(g=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(g=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(g=>this.onCursorChange(g))),this._register(this.editor.onDidChangeModelContent(g=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(g=>this.onDidType(g))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(t){this._state.type===2&&this._state.request.cancel(),this._state=t}cancel(t=!1){this.state=v.Default,this.throttledDelayer.cancel(),t||this._onChangedHints.fire(void 0)}trigger(t,i){const o=this.editor.getModel();if(!o||!this.providers.has(o))return;const g=++this.triggerId;this._pendingTriggers.push(t),this.throttledDelayer.trigger(()=>this.doTrigger(g),i).catch(k.onUnexpectedError)}next(){if(this.state.type!==1)return;const t=this.state.hints.signatures.length,i=this.state.hints.activeSignature,o=i%t===t-1,g=this.editor.getOption(86).cycle;if((t<2||o)&&!g){this.cancel();return}this.updateActiveSignature(o&&g?0:i+1)}previous(){if(this.state.type!==1)return;const t=this.state.hints.signatures.length,i=this.state.hints.activeSignature,o=i===0,g=this.editor.getOption(86).cycle;if((t<2||o)&&!g){this.cancel();return}this.updateActiveSignature(o&&g?t-1:i-1)}updateActiveSignature(t){this.state.type===1&&(this.state=new v.Active({...this.state.hints,activeSignature:t}),this._onChangedHints.fire(this.state.hints))}async doTrigger(t){const i=this.state.type===1||this.state.type===2,o=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const g=this._pendingTriggers.reduce(n);this._pendingTriggers=[];const u={triggerKind:g.triggerKind,triggerCharacter:g.triggerCharacter,isRetrigger:i,activeSignatureHelp:o};if(!this.editor.hasModel())return!1;const l=this.editor.getModel(),r=this.editor.getPosition();this.state=new v.Pending((0,c.createCancelablePromise)(a=>(0,_.provideSignatureHelp)(this.providers,l,r,u,a)),o);try{const a=await this.state.request;return t!==this.triggerId?(a?.dispose(),!1):!a||!a.value.signatures||a.value.signatures.length===0?(a?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new v.Active(a.value),this._lastSignatureHelpResult.value=a,this._onChangedHints.fire(this.state.hints),!0)}catch(a){return t===this.triggerId&&(this.state=v.Default),(0,k.onUnexpectedError)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const t=this.editor.getModel();if(t)for(const i of this.providers.ordered(t)){for(const o of i.signatureHelpTriggerCharacters||[])if(o.length){const g=o.charCodeAt(0);this.triggerChars.add(g),this.retriggerChars.add(g)}for(const o of i.signatureHelpRetriggerCharacters||[])o.length&&this.retriggerChars.add(o.charCodeAt(0))}}onDidType(t){if(!this.triggerOnType)return;const i=t.length-1,o=t.charCodeAt(i);(this.triggerChars.has(o)||this.isTriggered&&this.retriggerChars.has(o))&&this.trigger({triggerKind:f.SignatureHelpTriggerKind.TriggerCharacter,triggerCharacter:t.charAt(i)})}onCursorChange(t){t.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:f.SignatureHelpTriggerKind.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:f.SignatureHelpTriggerKind.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}e.ParameterHintsModel=p;function n(s,t){switch(t.triggerKind){case f.SignatureHelpTriggerKind.Invoke:return t;case f.SignatureHelpTriggerKind.ContentChange:return s;case f.SignatureHelpTriggerKind.TriggerCharacter:default:return t}}}),define(oe[678],re([1,0,12]),function(ae,e,c){"use strict";var k;Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestAlternatives=void 0;let E=class{static{k=this}static{this.OtherSuggestions=new c.RawContextKey("hasOtherSuggestions",!1)}constructor(y,f){this._editor=y,this._index=0,this._ckOtherSuggestions=k.OtherSuggestions.bindTo(f)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),this._listener?.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:y,index:f},_){if(y.items.length===0){this.reset();return}if(k._moveIndex(!0,y,f)===f){this.reset();return}this._acceptNext=_,this._model=y,this._index=f,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(y,f,_){let v=_;for(let p=f.items.length;p>0&&(v=(v+f.items.length+(y?1:-1))%f.items.length,!(v===_||!f.items[v].completion.additionalTextEdits));p--);return v}next(){this._move(!0)}prev(){this._move(!1)}_move(y){if(this._model)try{this._ignore=!0,this._index=k._moveIndex(y,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};e.SuggestAlternatives=E,e.SuggestAlternatives=E=k=De([he(1,c.IContextKeyService)],E)}),define(oe[679],re([1,0,12]),function(ae,e,c){"use strict";var k;Object.defineProperty(e,"__esModule",{value:!0}),e.WordContextKey=void 0;let E=class{static{k=this}static{this.AtEnd=new c.RawContextKey("atEndOfWord",!1)}constructor(y,f){this._editor=y,this._enabled=!1,this._ckAtEnd=k.AtEnd.bindTo(f),this._configListener=this._editor.onDidChangeConfiguration(_=>_.hasChanged(124)&&this._update()),this._update()}dispose(){this._configListener.dispose(),this._selectionListener?.dispose(),this._ckAtEnd.reset()}_update(){const y=this._editor.getOption(124)==="on";if(this._enabled!==y)if(this._enabled=y,this._enabled){const f=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const _=this._editor.getModel(),v=this._editor.getSelection(),p=_.getWordAtPosition(v.getStartPosition());if(!p){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(p.endColumn===v.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(f),f()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};e.WordContextKey=E,e.WordContextKey=E=k=De([he(1,c.IContextKeyService)],E)}),define(oe[60],re([1,0,12,7]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=e.IAccessibilityService=void 0,e.IAccessibilityService=(0,k.createDecorator)("accessibilityService"),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=new c.RawContextKey("accessibilityModeEnabled",!1)}),define(oe[680],re([1,0,64,13,6,2,54,16,360,364,542,228,37,163,260,60,5,252]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComputedEditorOptions=e.EditorConfiguration=void 0;let l=class extends L.Disposable{constructor(w,S,D,I,T){super(),this._accessibilityService=T,this._onDidChange=this._register(new E.Emitter),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new E.Emitter),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new s.ComputeOptionsMemory,this.isSimpleWidget=w,this.contextMenuId=S,this._containerObserver=this._register(new _.ElementSizeObserver(I,D.dimension)),this._targetWindowId=(0,g.getWindow)(I).vscodeWindowId,this._rawOptions=C(D),this._validatedOptions=h.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(t.EditorZoom.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(n.TabFocus.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(v.FontMeasurements.onDidChange(()=>this._recomputeOptions())),this._register(u.PixelRatio.getInstance((0,g.getWindow)(I)).onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const w=this._computeOptions(),S=h.checkEquals(this.options,w);S!==null&&(this.options=w,this._onDidChangeFast.fire(S),this._onDidChange.fire(S))}_computeOptions(){const w=this._readEnvConfiguration(),S=i.BareFontInfo.createFromValidatedSettings(this._validatedOptions,w.pixelRatio,this.isSimpleWidget),D=this._readFontInfo(S),I={memory:this._computeOptionsMemory,outerWidth:w.outerWidth,outerHeight:w.outerHeight-this._reservedHeight,fontInfo:D,extraEditorClassName:w.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:w.emptySelectionClipboard,pixelRatio:w.pixelRatio,tabFocusMode:n.TabFocus.getTabFocusMode(),accessibilitySupport:w.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return h.computeOptions(this._validatedOptions,I)}_readEnvConfiguration(){return{extraEditorClassName:a(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:c.isWebKit||c.isFirefox,pixelRatio:u.PixelRatio.getInstance((0,g.getWindowById)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(w){return v.FontMeasurements.readFontInfo((0,g.getWindowById)(this._targetWindowId,!0).window,w)}getRawOptions(){return this._rawOptions}updateOptions(w){const S=C(w);h.applyUpdate(this._rawOptions,S)&&(this._validatedOptions=h.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(w){this._containerObserver.observe(w)}setIsDominatedByLongLines(w){this._isDominatedByLongLines!==w&&(this._isDominatedByLongLines=w,this._recomputeOptions())}setModelLineCount(w){const S=r(w);this._lineNumbersDigitCount!==S&&(this._lineNumbersDigitCount=S,this._recomputeOptions())}setViewLineCount(w){this._viewLineCount!==w&&(this._viewLineCount=w,this._recomputeOptions())}setReservedHeight(w){this._reservedHeight!==w&&(this._reservedHeight=w,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(w){this._glyphMarginDecorationLaneCount!==w&&(this._glyphMarginDecorationLaneCount=w,this._recomputeOptions())}};e.EditorConfiguration=l,e.EditorConfiguration=l=De([he(4,o.IAccessibilityService)],l);function r(b){let w=0;for(;b;)b=Math.floor(b/10),w++;return w||1}function a(){let b="";return!c.isSafari&&!c.isWebkitWebView&&(b+="no-user-select "),c.isSafari&&(b+="no-minimap-shadow ",b+="enable-user-select "),f.isMacintosh&&(b+="mac "),b}class d{constructor(){this._values=[]}_read(w){return this._values[w]}get(w){return this._values[w]}_write(w,S){this._values[w]=S}}class m{constructor(){this._values=[]}_read(w){if(w>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[w]}get(w){return this._read(w)}_write(w,S){this._values[w]=S}}e.ComputedEditorOptions=m;class h{static validateOptions(w){const S=new d;for(const D of s.editorOptionsRegistry){const I=D.name==="_never_"?void 0:w[D.name];S._write(D.id,D.validate(I))}return S}static computeOptions(w,S){const D=new m;for(const I of s.editorOptionsRegistry)D._write(I.id,I.compute(S,D,w._read(I.id)));return D}static _deepEquals(w,S){if(typeof w!="object"||typeof S!="object"||!w||!S)return w===S;if(Array.isArray(w)||Array.isArray(S))return Array.isArray(w)&&Array.isArray(S)?k.equals(w,S):!1;if(Object.keys(w).length!==Object.keys(S).length)return!1;for(const D in w)if(!h._deepEquals(w[D],S[D]))return!1;return!0}static checkEquals(w,S){const D=[];let I=!1;for(const T of s.editorOptionsRegistry){const M=!h._deepEquals(w._read(T.id),S._read(T.id));D[T.id]=M,M&&(I=!0)}return I?new s.ConfigurationChangedEvent(D):null}static applyUpdate(w,S){let D=!1;for(const I of s.editorOptionsRegistry)if(S.hasOwnProperty(I.name)){const T=I.applyUpdate(w[I.name],S[I.name]);w[I.name]=T.newValue,D=D||T.didChange}return D}}function C(b){const w=y.deepClone(b);return(0,p.migrateOptions)(w),w}}),define(oe[681],re([1,0,6,53,2,54,223,22,3,24,27,12]),function(ae,e,c,k,E,L,y,f,_,v,p,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextKeyService=e.AbstractContextKeyService=e.Context=void 0,e.setContext=b;const s="data-keybinding-context";class t{constructor(D,I){this._id=D,this._parent=I,this._value=Object.create(null),this._value._contextId=D}get value(){return{...this._value}}setValue(D,I){return this._value[D]!==I?(this._value[D]=I,!0):!1}removeValue(D){return D in this._value?(delete this._value[D],!0):!1}getValue(D){const I=this._value[D];return typeof I>"u"&&this._parent?this._parent.getValue(D):I}}e.Context=t;class i extends t{static{this.INSTANCE=new i}constructor(){super(-1,null)}setValue(D,I){return!1}removeValue(D){return!1}getValue(D){}}class o extends t{static{this._keyPrefix="config."}constructor(D,I,T){super(D,null),this._configurationService=I,this._values=y.TernarySearchTree.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(M=>{if(M.source===7){const A=Array.from(this._values,([R])=>R);this._values.clear(),T.fire(new l(A))}else{const A=[];for(const R of M.affectedKeys){const N=`config.${R}`,O=this._values.findSuperstr(N);O!==void 0&&(A.push(...k.Iterable.map(O,([x])=>x)),this._values.deleteSuperstr(N)),this._values.has(N)&&(A.push(N),this._values.delete(N))}T.fire(new l(A))}})}dispose(){this._listener.dispose()}getValue(D){if(D.indexOf(o._keyPrefix)!==0)return super.getValue(D);if(this._values.has(D))return this._values.get(D);const I=D.substr(o._keyPrefix.length),T=this._configurationService.getValue(I);let M;switch(typeof T){case"number":case"boolean":case"string":M=T;break;default:Array.isArray(T)?M=JSON.stringify(T):M=T}return this._values.set(D,M),M}setValue(D,I){return super.setValue(D,I)}removeValue(D){return super.removeValue(D)}}class g{constructor(D,I,T){this._service=D,this._key=I,this._defaultValue=T,this.reset()}set(D){this._service.setContext(this._key,D)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class u{constructor(D){this.key=D}affectsSome(D){return D.has(this.key)}allKeysContainedIn(D){return this.affectsSome(D)}}class l{constructor(D){this.keys=D}affectsSome(D){for(const I of this.keys)if(D.has(I))return!0;return!1}allKeysContainedIn(D){return this.keys.every(I=>D.has(I))}}class r{constructor(D){this.events=D}affectsSome(D){for(const I of this.events)if(I.affectsSome(D))return!0;return!1}allKeysContainedIn(D){return this.events.every(I=>I.allKeysContainedIn(D))}}function a(S,D){return S.allKeysContainedIn(new Set(Object.keys(D)))}class d extends E.Disposable{constructor(D){super(),this._onDidChangeContext=this._register(new c.PauseableEmitter({merge:I=>new r(I)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=D}createKey(D,I){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new g(this,D,I)}bufferChangeEvents(D){this._onDidChangeContext.pause();try{D()}finally{this._onDidChangeContext.resume()}}createScoped(D){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new h(this,D)}contextMatchesRules(D){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const I=this.getContextValuesContainer(this._myContextId);return D?D.evaluate(I):!0}getContextKeyValue(D){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(D)}setContext(D,I){if(this._isDisposed)return;const T=this.getContextValuesContainer(this._myContextId);T&&T.setValue(D,I)&&this._onDidChangeContext.fire(new u(D))}removeContext(D){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(D)&&this._onDidChangeContext.fire(new u(D))}getContext(D){return this._isDisposed?i.INSTANCE:this.getContextValuesContainer(C(D))}dispose(){super.dispose(),this._isDisposed=!0}}e.AbstractContextKeyService=d;let m=class extends d{constructor(D){super(0),this._contexts=new Map,this._lastContextId=0;const I=this._register(new o(this._myContextId,D,this._onDidChangeContext));this._contexts.set(this._myContextId,I)}getContextValuesContainer(D){return this._isDisposed?i.INSTANCE:this._contexts.get(D)||i.INSTANCE}createChildContext(D=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const I=++this._lastContextId;return this._contexts.set(I,new t(I,this.getContextValuesContainer(D))),I}disposeContext(D){this._isDisposed||this._contexts.delete(D)}};e.ContextKeyService=m,e.ContextKeyService=m=De([he(0,p.IConfigurationService)],m);class h extends d{constructor(D,I){if(super(D.createChildContext()),this._parentChangeListener=this._register(new E.MutableDisposable),this._parent=D,this._updateParentChangeListener(),this._domNode=I,this._domNode.hasAttribute(s)){let T="";this._domNode.classList&&(T=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${T?": "+T:""}`)}this._domNode.setAttribute(s,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(D=>{const T=this._parent.getContextValuesContainer(this._myContextId).value;a(D,T)||this._onDidChangeContext.fire(D)})}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(s),super.dispose())}getContextValuesContainer(D){return this._isDisposed?i.INSTANCE:this._parent.getContextValuesContainer(D)}createChildContext(D=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(D)}disposeContext(D){this._isDisposed||this._parent.disposeContext(D)}}function C(S){for(;S;){if(S.hasAttribute(s)){const D=S.getAttribute(s);return D?parseInt(D,10):NaN}S=S.parentElement}return 0}function b(S,D,I){S.get(n.IContextKeyService).createKey(String(D),w(I))}function w(S){return(0,L.cloneAndChange)(S,D=>{if(typeof D=="object"&&D.$mid===1)return f.URI.revive(D).toString();if(D instanceof f.URI)return D.toString()})}v.CommandsRegistry.registerCommand("_setContext",b),v.CommandsRegistry.registerCommand({id:"getContextKeyInfo",handler(){return[...n.RawContextKey.all()].sort((S,D)=>S.key.localeCompare(D.key))},metadata:{description:(0,_.localize)(1154,"A command that returns information about context keys"),args:[]}}),v.CommandsRegistry.registerCommand("_generateContextKeyInfo",function(){const S=[],D=new Set;for(const I of n.RawContextKey.all())D.has(I.key)||(D.add(I.key),S.push(I));S.sort((I,T)=>I.key.localeCompare(T.key)),console.log(JSON.stringify(S,void 0,2))})}),define(oe[178],re([1,0,16,3,12]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFocusedContext=e.InputFocusedContextKey=e.ProductQualityContext=e.IsDevelopmentContext=e.IsMobileContext=e.IsIOSContext=e.IsMacNativeContext=e.IsWebContext=e.IsWindowsContext=e.IsLinuxContext=e.IsMacContext=void 0,e.IsMacContext=new E.RawContextKey("isMac",c.isMacintosh,(0,k.localize)(1136,"Whether the operating system is macOS")),e.IsLinuxContext=new E.RawContextKey("isLinux",c.isLinux,(0,k.localize)(1137,"Whether the operating system is Linux")),e.IsWindowsContext=new E.RawContextKey("isWindows",c.isWindows,(0,k.localize)(1138,"Whether the operating system is Windows")),e.IsWebContext=new E.RawContextKey("isWeb",c.isWeb,(0,k.localize)(1139,"Whether the platform is a web browser")),e.IsMacNativeContext=new E.RawContextKey("isMacNative",c.isMacintosh&&!c.isWeb,(0,k.localize)(1140,"Whether the operating system is macOS on a non-browser platform")),e.IsIOSContext=new E.RawContextKey("isIOS",c.isIOS,(0,k.localize)(1141,"Whether the operating system is iOS")),e.IsMobileContext=new E.RawContextKey("isMobile",c.isMobile,(0,k.localize)(1142,"Whether the platform is a mobile web browser")),e.IsDevelopmentContext=new E.RawContextKey("isDevelopment",!1,!0),e.ProductQualityContext=new E.RawContextKey("productQualityType","",(0,k.localize)(1143,"Quality type of VS Code")),e.InputFocusedContextKey="inputFocus",e.InputFocusedContext=new E.RawContextKey(e.InputFocusedContextKey,!1,(0,k.localize)(1144,"Whether keyboard focus is inside an input box"))}),define(oe[58],re([1,0,7]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IContextMenuService=e.IContextViewService=void 0,e.IContextViewService=(0,c.createDecorator)("contextViewService"),e.IContextMenuService=(0,c.createDecorator)("contextMenuService")}),define(oe[179],re([1,0,7]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDialogService=void 0,e.IDialogService=(0,c.createDecorator)("dialogService")}),define(oe[269],re([1,0,7]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEnvironmentService=void 0,e.IEnvironmentService=(0,c.createDecorator)("environmentService")}),define(oe[118],re([1,0,7,2,27,5]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nativeHoverDelegate=e.WorkbenchHoverDelegate=e.IHoverService=void 0,e.IHoverService=(0,c.createDecorator)("hoverService");let y=class extends k.Disposable{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(_,v,p={},n,s){super(),this.placement=_,this.instantHover=v,this.overrideOptions=p,this.configurationService=n,this.hoverService=s,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new k.DisposableStore),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration(t=>{t.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))}))}showHover(_,v){const p=typeof this.overrideOptions=="function"?this.overrideOptions(_,v):this.overrideOptions;this.hoverDisposables.clear();const n=(0,L.isHTMLElement)(_.target)?[_.target]:_.target.targetElements;for(const t of n)this.hoverDisposables.add((0,L.addStandardDisposableListener)(t,"keydown",i=>{i.equals(9)&&this.hoverService.hideHover()}));const s=(0,L.isHTMLElement)(_.content)?void 0:_.content.toString();return this.hoverService.showHover({..._,...p,persistence:{hideOnKeyDown:!0,...p.persistence},id:s,appearance:{..._.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...p.appearance}},v)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};e.WorkbenchHoverDelegate=y,e.WorkbenchHoverDelegate=y=De([he(3,E.IConfigurationService),he(4,e.IHoverService)],y),e.nativeHoverDelegate={showHover:function(){throw new Error("Native hover function not implemented.")},delay:0,showNativeHover:!0}}),define(oe[180],re([1,0]),function(ae,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceCollection=void 0;class c{constructor(...E){this._entries=new Map;for(const[L,y]of E)this.set(L,y)}set(E,L){const y=this._entries.get(E);return this._entries.set(E,L),y}get(E){return this._entries.get(E)}}e.ServiceCollection=c}),define(oe[682],re([1,0,14,8,2,263,671,7,180,73]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trace=e.InstantiationService=void 0;const p=!1;class n extends Error{constructor(o){super("cyclic dependency between services"),this.message=o.findCycleSlow()??`UNABLE to detect cycle, dumping graph:
|
|
616
616
|
${o.toString()}`}}class s{constructor(o=new _.ServiceCollection,g=!1,u,l=p){this._services=o,this._strict=g,this._parent=u,this._enableTracing=l,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(f.IInstantiationService,this),this._globalGraph=l?u?._globalGraph??new y.Graph(r=>r):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,(0,E.dispose)(this._children),this._children.clear();for(const o of this._servicesToMaybeDispose)(0,E.isDisposable)(o)&&o.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(o,g){this._throwIfDisposed();const u=this,l=new class extends s{dispose(){u._children.delete(l),super.dispose()}}(o,this._strict,this,this._enableTracing);return this._children.add(l),g?.add(l),l}invokeFunction(o,...g){this._throwIfDisposed();const u=t.traceInvocation(this._enableTracing,o);let l=!1;try{return o({get:a=>{if(l)throw(0,k.illegalState)("service accessor is only valid during the invocation of its target method");const d=this._getOrCreateServiceInstance(a,u);if(!d)throw new Error(`[invokeFunction] unknown service '${a}'`);return d}},...g)}finally{l=!0,u.stop()}}createInstance(o,...g){this._throwIfDisposed();let u,l;return o instanceof L.SyncDescriptor?(u=t.traceCreation(this._enableTracing,o.ctor),l=this._createInstance(o.ctor,o.staticArguments.concat(g),u)):(u=t.traceCreation(this._enableTracing,o),l=this._createInstance(o,g,u)),u.stop(),l}_createInstance(o,g=[],u){const l=f._util.getServiceDependencies(o).sort((d,m)=>d.index-m.index),r=[];for(const d of l){const m=this._getOrCreateServiceInstance(d.id,u);m||this._throwIfStrict(`[createInstance] ${o.name} depends on UNKNOWN service ${d.id}.`,!1),r.push(m)}const a=l.length>0?l[0].index:g.length;if(g.length!==a){console.trace(`[createInstance] First service dependency of ${o.name} at position ${a+1} conflicts with ${g.length} static arguments`);const d=a-g.length;d>0?g=g.concat(new Array(d)):g=g.slice(0,a)}return Reflect.construct(o,g.concat(r))}_setCreatedServiceInstance(o,g){if(this._services.get(o)instanceof L.SyncDescriptor)this._services.set(o,g);else if(this._parent)this._parent._setCreatedServiceInstance(o,g);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(o){const g=this._services.get(o);return!g&&this._parent?this._parent._getServiceInstanceOrDescriptor(o):g}_getOrCreateServiceInstance(o,g){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(o));const u=this._getServiceInstanceOrDescriptor(o);return u instanceof L.SyncDescriptor?this._safeCreateAndCacheServiceInstance(o,u,g.branch(o,!0)):(g.branch(o,!1),u)}_safeCreateAndCacheServiceInstance(o,g,u){if(this._activeInstantiations.has(o))throw new Error(`illegal state - RECURSIVELY instantiating service '${o}'`);this._activeInstantiations.add(o);try{return this._createAndCacheServiceInstance(o,g,u)}finally{this._activeInstantiations.delete(o)}}_createAndCacheServiceInstance(o,g,u){const l=new y.Graph(m=>m.id.toString());let r=0;const a=[{id:o,desc:g,_trace:u}],d=new Set;for(;a.length;){const m=a.pop();if(!d.has(String(m.id))){if(d.add(String(m.id)),l.lookupOrInsertNode(m),r++>1e3)throw new n(l);for(const h of f._util.getServiceDependencies(m.desc.ctor)){const C=this._getServiceInstanceOrDescriptor(h.id);if(C||this._throwIfStrict(`[createInstance] ${o} depends on ${h.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(m.id),String(h.id)),C instanceof L.SyncDescriptor){const b={id:h.id,desc:C,_trace:m._trace.branch(h.id,!0)};l.insertEdge(m,b),a.push(b)}}}}for(;;){const m=l.roots();if(m.length===0){if(!l.isEmpty())throw new n(l);break}for(const{data:h}of m){if(this._getServiceInstanceOrDescriptor(h.id)instanceof L.SyncDescriptor){const b=this._createServiceInstanceWithOwner(h.id,h.desc.ctor,h.desc.staticArguments,h.desc.supportsDelayedInstantiation,h._trace);this._setCreatedServiceInstance(h.id,b)}l.removeNode(h)}}return this._getServiceInstanceOrDescriptor(o)}_createServiceInstanceWithOwner(o,g,u=[],l,r){if(this._services.get(o)instanceof L.SyncDescriptor)return this._createServiceInstance(o,g,u,l,r,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(o,g,u,l,r);throw new Error(`illegalState - creating UNKNOWN service instance ${g.name}`)}_createServiceInstance(o,g,u=[],l,r,a){if(l){const d=new s(void 0,this._strict,this,this._enableTracing);d._globalGraphImplicitDependency=String(o);const m=new Map,h=new c.GlobalIdleValue(()=>{const C=d._createInstance(g,u,r);for(const[b,w]of m){const S=C[b];if(typeof S=="function")for(const D of w)D.disposable=S.apply(C,D.listener)}return m.clear(),a.add(C),C});return new Proxy(Object.create(null),{get(C,b){if(!h.isInitialized&&typeof b=="string"&&(b.startsWith("onDid")||b.startsWith("onWill"))){let D=m.get(b);return D||(D=new v.LinkedList,m.set(b,D)),(T,M,A)=>{if(h.isInitialized)return h.value[b](T,M,A);{const R={listener:[T,M,A],disposable:void 0},N=D.push(R);return(0,E.toDisposable)(()=>{N(),R.disposable?.dispose()})}}}if(b in C)return C[b];const w=h.value;let S=w[b];return typeof S!="function"||(S=S.bind(w),C[b]=S),S},set(C,b,w){return h.value[b]=w,!0},getPrototypeOf(C){return g.prototype}})}else{const d=this._createInstance(g,u,r);return a.add(d),d}}_throwIfStrict(o,g){if(g&&console.warn(o),this._strict)throw new Error(o)}}e.InstantiationService=s;class t{static{this.all=new Set}static{this._None=new class extends t{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(o,g){return o?new t(2,g.name||new Error().stack.split(`
|
|
617
617
|
`).slice(3,4).join(`
|
|
618
618
|
`)):t._None}static traceCreation(o,g){return o?new t(1,g.name):t._None}static{this._totals=0}constructor(o,g){this.type=o,this.name=g,this._start=Date.now(),this._dep=[]}branch(o,g){const u=new t(3,o.toString());return this._dep.push([o,g,u]),u}stop(){const o=Date.now()-this._start;t._totals+=o;let g=!1;function u(r,a){const d=[],m=new Array(r+1).join(" ");for(const[h,C,b]of a._dep)if(C&&b){g=!0,d.push(`${m}CREATES -> ${h}`);const w=u(r+1,b);w&&d.push(w)}else d.push(`${m}uses -> ${h}`);return d.join(`
|
|
@@ -646,7 +646,7 @@ ${o.toString()}`}}class s{constructor(o=new _.ServiceCollection,g=!1,u,l=p){this
|
|
|
646
646
|
`,d+=`index: ${u.idx}, based on ${u.completion.sortText&&`sortText: "${u.completion.sortText}"`||"label"}
|
|
647
647
|
`,d+=`commit_chars: ${u.completion.commitCharacters?.join("")}
|
|
648
648
|
`,a=new f.MarkdownString().appendCodeblock("empty",d),r=`Provider: ${u.provider._debugDisplayName}`}if(!l&&!t(u)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),r){const d=r.length>1e5?`${r.substr(0,1e5)}\u2026`:r;this._type.textContent=d,this._type.title=d,c.show(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(d))}else c.clearNode(this._type),this._type.title="",c.hide(this._type),this.domNode.classList.add("no-type");if(c.clearNode(this._docs),typeof a=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=a;else if(a){this._docs.classList.add("markdown-docs"),c.clearNode(this._docs);const d=this._markdownRenderer.render(a);this._docs.appendChild(d.element),this._renderDisposeable.add(d),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=d=>{d.preventDefault(),d.stopPropagation()},this._close.onclick=d=>{d.preventDefault(),d.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(u,l){const r=new c.Dimension(u,l);c.Dimension.equals(r,this._size)||(this._size=r,c.size(this.domNode,u,l)),this._scrollbar.scanDomNode()}scrollDown(u=8){this._body.scrollTop+=u}scrollUp(u=8){this._body.scrollTop-=u}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(u){this._borderWidth=u}get borderWidth(){return this._borderWidth}};e.SuggestDetailsWidget=i,e.SuggestDetailsWidget=i=De([he(1,s.IInstantiationService)],i);class o{constructor(u,l){this.widget=u,this._editor=l,this.allowEditorOverflow=!0,this._disposables=new _.DisposableStore,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new p.ResizableHTMLElement,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(u.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let r,a,d=0,m=0;this._disposables.add(this._resizable.onDidWillResize(()=>{r=this._topLeft,a=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(h=>{if(r&&a){this.widget.layout(h.dimension.width,h.dimension.height);let C=!1;h.west&&(m=a.width-h.dimension.width,C=!0),h.north&&(d=a.height-h.dimension.height,C=!0),C&&this._applyTopLeft({top:r.top+d,left:r.left+m})}h.done&&(r=void 0,a=void 0,d=0,m=0,this._userSize=h.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{this._anchorBox&&this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(u=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),u&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(u,l){const r=u.getBoundingClientRect();this._anchorBox=r,this._preferAlignAtTop=l,this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,l)}_placeAtAnchor(u,l,r){const a=c.getClientArea(this.getDomNode().ownerDocument.body),d=this.widget.getLayoutInfo(),m=new c.Dimension(220,2*d.lineHeight),h=u.top,C=function(){const F=a.width-(u.left+u.width+d.borderWidth+d.horizontalPadding),W=-d.borderWidth+u.left+u.width,z=new c.Dimension(F,a.height-u.top-d.borderHeight-d.verticalPadding),q=z.with(void 0,u.top+u.height-d.borderHeight-d.verticalPadding);return{top:h,left:W,fit:F-l.width,maxSizeTop:z,maxSizeBottom:q,minSize:m.with(Math.min(F,m.width))}}(),b=function(){const F=u.left-d.borderWidth-d.horizontalPadding,W=Math.max(d.horizontalPadding,u.left-l.width-d.borderWidth),z=new c.Dimension(F,a.height-u.top-d.borderHeight-d.verticalPadding),q=z.with(void 0,u.top+u.height-d.borderHeight-d.verticalPadding);return{top:h,left:W,fit:F-l.width,maxSizeTop:z,maxSizeBottom:q,minSize:m.with(Math.min(F,m.width))}}(),w=function(){const F=u.left,W=-d.borderWidth+u.top+u.height,z=new c.Dimension(u.width-d.borderHeight,a.height-u.top-u.height-d.verticalPadding);return{top:W,left:F,fit:z.height-l.height,maxSizeBottom:z,maxSizeTop:z,minSize:m.with(z.width)}}(),S=[C,b,w],D=S.find(F=>F.fit>=0)??S.sort((F,W)=>W.fit-F.fit)[0],I=u.top+u.height-d.borderHeight;let T,M=l.height;const A=Math.max(D.maxSizeTop.height,D.maxSizeBottom.height);M>A&&(M=A);let R;r?M<=D.maxSizeTop.height?(T=!0,R=D.maxSizeTop):(T=!1,R=D.maxSizeBottom):M<=D.maxSizeBottom.height?(T=!1,R=D.maxSizeBottom):(T=!0,R=D.maxSizeTop);let{top:N,left:O}=D;!T&&M>u.height&&(N=I-M);const x=this._editor.getDomNode();if(x){const F=x.getBoundingClientRect();N-=F.top,O-=F.left}this._applyTopLeft({left:O,top:N}),this._resizable.enableSashes(!T,D===C,T,D!==C),this._resizable.minSize=D.minSize,this._resizable.maxSize=R,this._resizable.layout(M,Math.min(R.width,l.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(u){this._topLeft=u,this._editor.layoutOverlayWidget(this)}}e.SuggestDetailsOverlay=o}),define(oe[399],re([1,0,13,45,54,19,22,27,108,38]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationChangeEvent=e.Configuration=e.ConfigurationModelParser=e.ConfigurationModel=void 0;function p(g){return Object.isFrozen(g)?g:E.deepFreeze(g)}class n{static createEmptyModel(u){return new n({},[],[],void 0,u)}constructor(u,l,r,a,d){this._contents=u,this._keys=l,this._overrides=r,this.raw=a,this.logService=d,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw?.length){const u=this.raw.map(l=>{if(l instanceof n)return l;const r=new s("",this.logService);return r.parseRaw(l),r.configurationModel});this._rawConfiguration=u.reduce((l,r)=>r===l?r:l.merge(r),u[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(u){return u?(0,f.getConfigurationValue)(this.contents,u):this.contents}inspect(u,l){const r=this;return{get value(){return p(r.rawConfiguration.getValue(u))},get override(){return l?p(r.rawConfiguration.getOverrideValue(u,l)):void 0},get merged(){return p(l?r.rawConfiguration.override(l).getValue(u):r.rawConfiguration.getValue(u))},get overrides(){const a=[];for(const{contents:d,identifiers:m,keys:h}of r.rawConfiguration.overrides){const C=new n(d,h,[],void 0,r.logService).getValue(u);C!==void 0&&a.push({identifiers:m,value:C})}return a.length?p(a):void 0}}}getOverrideValue(u,l){const r=this.getContentsForOverrideIdentifer(l);return r?u?(0,f.getConfigurationValue)(r,u):r:void 0}override(u){let l=this.overrideConfigurations.get(u);return l||(l=this.createOverrideConfigurationModel(u),this.overrideConfigurations.set(u,l)),l}merge(...u){const l=E.deepClone(this.contents),r=E.deepClone(this.overrides),a=[...this.keys],d=this.raw?.length?[...this.raw]:[this];for(const m of u)if(d.push(...m.raw?.length?m.raw:[m]),!m.isEmpty()){this.mergeContents(l,m.contents);for(const h of m.overrides){const[C]=r.filter(b=>c.equals(b.identifiers,h.identifiers));C?(this.mergeContents(C.contents,h.contents),C.keys.push(...h.keys),C.keys=c.distinct(C.keys)):r.push(E.deepClone(h))}for(const h of m.keys)a.indexOf(h)===-1&&a.push(h)}return new n(l,a,r,d.every(m=>m instanceof n)?void 0:d,this.logService)}createOverrideConfigurationModel(u){const l=this.getContentsForOverrideIdentifer(u);if(!l||typeof l!="object"||!Object.keys(l).length)return this;const r={};for(const a of c.distinct([...Object.keys(this.contents),...Object.keys(l)])){let d=this.contents[a];const m=l[a];m&&(typeof d=="object"&&typeof m=="object"?(d=E.deepClone(d),this.mergeContents(d,m)):d=m),r[a]=d}return new n(r,this.keys,this.overrides,void 0,this.logService)}mergeContents(u,l){for(const r of Object.keys(l)){if(r in u&&L.isObject(u[r])&&L.isObject(l[r])){this.mergeContents(u[r],l[r]);continue}u[r]=E.deepClone(l[r])}}getContentsForOverrideIdentifer(u){let l=null,r=null;const a=d=>{d&&(r?this.mergeContents(r,d):r=E.deepClone(d))};for(const d of this.overrides)d.identifiers.length===1&&d.identifiers[0]===u?l=d.contents:d.identifiers.includes(u)&&a(d.contents);return a(l),r}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(u,l){this.updateValue(u,l,!1)}removeValue(u){const l=this.keys.indexOf(u);l!==-1&&(this.keys.splice(l,1),(0,f.removeFromValueTree)(this.contents,u),_.OVERRIDE_PROPERTY_REGEX.test(u)&&this.overrides.splice(this.overrides.findIndex(r=>c.equals(r.identifiers,(0,_.overrideIdentifiersFromKey)(u))),1))}updateValue(u,l,r){if((0,f.addToValueTree)(this.contents,u,l,a=>this.logService.error(a)),r=r||this.keys.indexOf(u)===-1,r&&this.keys.push(u),_.OVERRIDE_PROPERTY_REGEX.test(u)){const a=(0,_.overrideIdentifiersFromKey)(u),d={identifiers:a,keys:Object.keys(this.contents[u]),contents:(0,f.toValuesTree)(this.contents[u],h=>this.logService.error(h))},m=this.overrides.findIndex(h=>c.equals(h.identifiers,a));m!==-1?this.overrides[m]=d:this.overrides.push(d)}}}e.ConfigurationModel=n;class s{constructor(u,l){this._name=u,this.logService=l,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||n.createEmptyModel(this.logService)}parseRaw(u,l){this._raw=u;const{contents:r,keys:a,overrides:d,restricted:m,hasExcludedProperties:h}=this.doParseRaw(u,l);this._configurationModel=new n(r,a,d,h?[u]:void 0,this.logService),this._restrictedConfigurations=m||[]}doParseRaw(u,l){const r=v.Registry.as(_.Extensions.Configuration).getConfigurationProperties(),a=this.filter(u,r,!0,l);u=a.raw;const d=(0,f.toValuesTree)(u,C=>this.logService.error(`Conflict in settings file ${this._name}: ${C}`)),m=Object.keys(u),h=this.toOverrides(u,C=>this.logService.error(`Conflict in settings file ${this._name}: ${C}`));return{contents:d,keys:m,overrides:h,restricted:a.restricted,hasExcludedProperties:a.hasExcludedProperties}}filter(u,l,r,a){let d=!1;if(!a?.scopes&&!a?.skipRestricted&&!a?.exclude?.length)return{raw:u,restricted:[],hasExcludedProperties:d};const m={},h=[];for(const C in u)if(_.OVERRIDE_PROPERTY_REGEX.test(C)&&r){const b=this.filter(u[C],l,!1,a);m[C]=b.raw,d=d||b.hasExcludedProperties,h.push(...b.restricted)}else{const b=l[C],w=b?typeof b.scope<"u"?b.scope:3:void 0;b?.restricted&&h.push(C),!a.exclude?.includes(C)&&(a.include?.includes(C)||(w===void 0||a.scopes===void 0||a.scopes.includes(w))&&!(a.skipRestricted&&b?.restricted))?m[C]=u[C]:d=!0}return{raw:m,restricted:h,hasExcludedProperties:d}}toOverrides(u,l){const r=[];for(const a of Object.keys(u))if(_.OVERRIDE_PROPERTY_REGEX.test(a)){const d={};for(const m in u[a])d[m]=u[a][m];r.push({identifiers:(0,_.overrideIdentifiersFromKey)(a),keys:Object.keys(d),contents:(0,f.toValuesTree)(d,l)})}return r}}e.ConfigurationModelParser=s;class t{constructor(u,l,r,a,d,m,h,C,b,w,S,D,I){this.key=u,this.overrides=l,this._value=r,this.overrideIdentifiers=a,this.defaultConfiguration=d,this.policyConfiguration=m,this.applicationConfiguration=h,this.userConfiguration=C,this.localUserConfiguration=b,this.remoteUserConfiguration=w,this.workspaceConfiguration=S,this.folderConfigurationModel=D,this.memoryConfigurationModel=I}toInspectValue(u){return u?.value!==void 0||u?.override!==void 0||u?.overrides!==void 0?u:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class i{constructor(u,l,r,a,d,m,h,C,b,w){this._defaultConfiguration=u,this._policyConfiguration=l,this._applicationConfiguration=r,this._localUserConfiguration=a,this._remoteUserConfiguration=d,this._workspaceConfiguration=m,this._folderConfigurations=h,this._memoryConfiguration=C,this._memoryConfigurationByResource=b,this.logService=w,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new k.ResourceMap,this._userConfiguration=null}getValue(u,l,r){return this.getConsolidatedConfigurationModel(u,l,r).getValue(u)}updateValue(u,l,r={}){let a;r.resource?(a=this._memoryConfigurationByResource.get(r.resource),a||(a=n.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(r.resource,a))):a=this._memoryConfiguration,l===void 0?a.removeValue(u):a.setValue(u,l),r.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(u,l,r){const a=this.getConsolidatedConfigurationModel(u,l,r),d=this.getFolderConfigurationModelForResource(l.resource,r),m=l.resource?this._memoryConfigurationByResource.get(l.resource)||this._memoryConfiguration:this._memoryConfiguration,h=new Set;for(const C of a.overrides)for(const b of C.identifiers)a.getOverrideValue(u,b)!==void 0&&h.add(b);return new t(u,l,a.getValue(u),h.size?[...h]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,r?this._workspaceConfiguration:void 0,d||void 0,m)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(u,l,r){let a=this.getConsolidatedConfigurationModelForResource(l,r);return l.overrideIdentifier&&(a=a.override(l.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(u)!==void 0&&(a=a.merge(this._policyConfiguration)),a}getConsolidatedConfigurationModelForResource({resource:u},l){let r=this.getWorkspaceConsolidatedConfiguration();if(l&&u){const a=l.getFolder(u);a&&(r=this.getFolderConsolidatedConfiguration(a.uri)||r);const d=this._memoryConfigurationByResource.get(u);d&&(r=r.merge(d))}return r}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(u){let l=this._foldersConsolidatedConfigurations.get(u);if(!l){const r=this.getWorkspaceConsolidatedConfiguration(),a=this._folderConfigurations.get(u);a?(l=r.merge(a),this._foldersConsolidatedConfigurations.set(u,l)):l=r}return l}getFolderConfigurationModelForResource(u,l){if(l&&u){const r=l.getFolder(u);if(r)return this._folderConfigurations.get(r.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((u,l)=>{const{contents:r,overrides:a,keys:d}=this._folderConfigurations.get(l);return u.push([l,{contents:r,overrides:a,keys:d}]),u},[])}}static parse(u,l){const r=this.parseConfigurationModel(u.defaults,l),a=this.parseConfigurationModel(u.policy,l),d=this.parseConfigurationModel(u.application,l),m=this.parseConfigurationModel(u.user,l),h=this.parseConfigurationModel(u.workspace,l),C=u.folders.reduce((b,w)=>(b.set(y.URI.revive(w[0]),this.parseConfigurationModel(w[1],l)),b),new k.ResourceMap);return new i(r,a,d,m,n.createEmptyModel(l),h,C,n.createEmptyModel(l),new k.ResourceMap,l)}static parseConfigurationModel(u,l){return new n(u.contents,u.keys,u.overrides,void 0,l)}}e.Configuration=i;class o{constructor(u,l,r,a,d){this.change=u,this.previous=l,this.currentConfiguraiton=r,this.currentWorkspace=a,this.logService=d,this._marker=`
|
|
649
|
-
`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const m of u.keys)this.affectedKeys.add(m);for(const[,m]of u.overrides)for(const h of m)this.affectedKeys.add(h);this._affectsConfigStr=this._marker;for(const m of this.affectedKeys)this._affectsConfigStr+=m+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=i.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(u,l){const r=this._marker+u,a=this._affectsConfigStr.indexOf(r);if(a<0)return!1;const d=a+r.length;if(d>=this._affectsConfigStr.length)return!1;const m=this._affectsConfigStr.charCodeAt(d);if(m!==this._markerCode1&&m!==this._markerCode2)return!1;if(l){const h=this.previousConfiguration?this.previousConfiguration.getValue(u,l,this.previous?.workspace):void 0,C=this.currentConfiguraiton.getValue(u,l,this.currentWorkspace);return!E.equals(h,C)}return!0}}e.ConfigurationChangeEvent=o}),define(oe[709],re([1,0,2,399,108,38]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultConfiguration=void 0;class y extends c.Disposable{get configurationModel(){return this._configurationModel}constructor(_){super(),this.logService=_,this._configurationModel=k.ConfigurationModel.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=k.ConfigurationModel.createEmptyModel(this.logService);const _=L.Registry.as(E.Extensions.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(_),_)}updateConfigurationModel(_,v){const p=this.getConfigurationDefaultOverrides();for(const n of _){const s=p[n],t=v[n];s!==void 0?this._configurationModel.setValue(n,s):t?this._configurationModel.setValue(n,t.default):this._configurationModel.removeValue(n)}}}e.DefaultConfiguration=y}),define(oe[121],re([1,0,139,16,24,38,2,73]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=e.KeybindingsRegistry=void 0;class _{constructor(){this._coreKeybindings=new f.LinkedList,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(n){if(k.OS===1){if(n&&n.win)return n.win}else if(k.OS===2){if(n&&n.mac)return n.mac}else if(n&&n.linux)return n.linux;return n}registerKeybindingRule(n){const s=_.bindToCurrentPlatform(n),t=new y.DisposableStore;if(s&&s.primary){const i=(0,c.decodeKeybinding)(s.primary,k.OS);i&&t.add(this._registerDefaultKeybinding(i,n.id,n.args,n.weight,0,n.when))}if(s&&Array.isArray(s.secondary))for(let i=0,o=s.secondary.length;i<o;i++){const g=s.secondary[i],u=(0,c.decodeKeybinding)(g,k.OS);u&&t.add(this._registerDefaultKeybinding(u,n.id,n.args,n.weight,-i-1,n.when))}return t}registerCommandAndKeybindingRule(n){return(0,y.combinedDisposable)(this.registerKeybindingRule(n),E.CommandsRegistry.registerCommand(n))}_registerDefaultKeybinding(n,s,t,i,o,g){const u=this._coreKeybindings.push({keybinding:n,command:s,commandArgs:t,when:g,weight1:i,weight2:o,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,y.toDisposable)(()=>{u(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(v)),this._cachedMergedKeybindings.slice(0)}}e.KeybindingsRegistry=new _,e.Extensions={EditorModes:"platform.keybindingsRegistry"},L.Registry.add(e.Extensions.EditorModes,e.KeybindingsRegistry);function v(p,n){if(p.weight1!==n.weight1)return p.weight1-n.weight1;if(p.command&&n.command){if(p.command<n.command)return-1;if(p.command>n.command)return 1}return p.weight2-n.weight2}}),define(oe[29],re([1,0,41,30,6,2,73,24,12,7,121]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Action2=e.MenuItemAction=e.SubmenuItemAction=e.MenuRegistry=e.IMenuService=e.MenuId=void 0,e.isIMenuItem=s,e.isISubmenuItem=t,e.registerAction2=r;function s(a){return a.command!==void 0}function t(a){return a.submenu!==void 0}class i{static{this._instances=new Map}static{this.CommandPalette=new i("CommandPalette")}static{this.DebugBreakpointsContext=new i("DebugBreakpointsContext")}static{this.DebugCallStackContext=new i("DebugCallStackContext")}static{this.DebugConsoleContext=new i("DebugConsoleContext")}static{this.DebugVariablesContext=new i("DebugVariablesContext")}static{this.NotebookVariablesContext=new i("NotebookVariablesContext")}static{this.DebugHoverContext=new i("DebugHoverContext")}static{this.DebugWatchContext=new i("DebugWatchContext")}static{this.DebugToolBar=new i("DebugToolBar")}static{this.DebugToolBarStop=new i("DebugToolBarStop")}static{this.DebugCallStackToolbar=new i("DebugCallStackToolbar")}static{this.EditorContext=new i("EditorContext")}static{this.SimpleEditorContext=new i("SimpleEditorContext")}static{this.EditorContent=new i("EditorContent")}static{this.EditorLineNumberContext=new i("EditorLineNumberContext")}static{this.EditorContextCopy=new i("EditorContextCopy")}static{this.EditorContextPeek=new i("EditorContextPeek")}static{this.EditorContextShare=new i("EditorContextShare")}static{this.EditorTitle=new i("EditorTitle")}static{this.EditorTitleRun=new i("EditorTitleRun")}static{this.EditorTitleContext=new i("EditorTitleContext")}static{this.EditorTitleContextShare=new i("EditorTitleContextShare")}static{this.EmptyEditorGroup=new i("EmptyEditorGroup")}static{this.EmptyEditorGroupContext=new i("EmptyEditorGroupContext")}static{this.EditorTabsBarContext=new i("EditorTabsBarContext")}static{this.EditorTabsBarShowTabsSubmenu=new i("EditorTabsBarShowTabsSubmenu")}static{this.EditorTabsBarShowTabsZenModeSubmenu=new i("EditorTabsBarShowTabsZenModeSubmenu")}static{this.EditorActionsPositionSubmenu=new i("EditorActionsPositionSubmenu")}static{this.ExplorerContext=new i("ExplorerContext")}static{this.ExplorerContextShare=new i("ExplorerContextShare")}static{this.ExtensionContext=new i("ExtensionContext")}static{this.GlobalActivity=new i("GlobalActivity")}static{this.CommandCenter=new i("CommandCenter")}static{this.CommandCenterCenter=new i("CommandCenterCenter")}static{this.LayoutControlMenuSubmenu=new i("LayoutControlMenuSubmenu")}static{this.LayoutControlMenu=new i("LayoutControlMenu")}static{this.MenubarMainMenu=new i("MenubarMainMenu")}static{this.MenubarAppearanceMenu=new i("MenubarAppearanceMenu")}static{this.MenubarDebugMenu=new i("MenubarDebugMenu")}static{this.MenubarEditMenu=new i("MenubarEditMenu")}static{this.MenubarCopy=new i("MenubarCopy")}static{this.MenubarFileMenu=new i("MenubarFileMenu")}static{this.MenubarGoMenu=new i("MenubarGoMenu")}static{this.MenubarHelpMenu=new i("MenubarHelpMenu")}static{this.MenubarLayoutMenu=new i("MenubarLayoutMenu")}static{this.MenubarNewBreakpointMenu=new i("MenubarNewBreakpointMenu")}static{this.PanelAlignmentMenu=new i("PanelAlignmentMenu")}static{this.PanelPositionMenu=new i("PanelPositionMenu")}static{this.ActivityBarPositionMenu=new i("ActivityBarPositionMenu")}static{this.MenubarPreferencesMenu=new i("MenubarPreferencesMenu")}static{this.MenubarRecentMenu=new i("MenubarRecentMenu")}static{this.MenubarSelectionMenu=new i("MenubarSelectionMenu")}static{this.MenubarShare=new i("MenubarShare")}static{this.MenubarSwitchEditorMenu=new i("MenubarSwitchEditorMenu")}static{this.MenubarSwitchGroupMenu=new i("MenubarSwitchGroupMenu")}static{this.MenubarTerminalMenu=new i("MenubarTerminalMenu")}static{this.MenubarViewMenu=new i("MenubarViewMenu")}static{this.MenubarHomeMenu=new i("MenubarHomeMenu")}static{this.OpenEditorsContext=new i("OpenEditorsContext")}static{this.OpenEditorsContextShare=new i("OpenEditorsContextShare")}static{this.ProblemsPanelContext=new i("ProblemsPanelContext")}static{this.SCMInputBox=new i("SCMInputBox")}static{this.SCMChangesSeparator=new i("SCMChangesSeparator")}static{this.SCMChangesContext=new i("SCMChangesContext")}static{this.SCMIncomingChanges=new i("SCMIncomingChanges")}static{this.SCMIncomingChangesContext=new i("SCMIncomingChangesContext")}static{this.SCMIncomingChangesSetting=new i("SCMIncomingChangesSetting")}static{this.SCMOutgoingChanges=new i("SCMOutgoingChanges")}static{this.SCMOutgoingChangesContext=new i("SCMOutgoingChangesContext")}static{this.SCMOutgoingChangesSetting=new i("SCMOutgoingChangesSetting")}static{this.SCMIncomingChangesAllChangesContext=new i("SCMIncomingChangesAllChangesContext")}static{this.SCMIncomingChangesHistoryItemContext=new i("SCMIncomingChangesHistoryItemContext")}static{this.SCMOutgoingChangesAllChangesContext=new i("SCMOutgoingChangesAllChangesContext")}static{this.SCMOutgoingChangesHistoryItemContext=new i("SCMOutgoingChangesHistoryItemContext")}static{this.SCMChangeContext=new i("SCMChangeContext")}static{this.SCMResourceContext=new i("SCMResourceContext")}static{this.SCMResourceContextShare=new i("SCMResourceContextShare")}static{this.SCMResourceFolderContext=new i("SCMResourceFolderContext")}static{this.SCMResourceGroupContext=new i("SCMResourceGroupContext")}static{this.SCMSourceControl=new i("SCMSourceControl")}static{this.SCMSourceControlInline=new i("SCMSourceControlInline")}static{this.SCMSourceControlTitle=new i("SCMSourceControlTitle")}static{this.SCMTitle=new i("SCMTitle")}static{this.SearchContext=new i("SearchContext")}static{this.SearchActionMenu=new i("SearchActionContext")}static{this.StatusBarWindowIndicatorMenu=new i("StatusBarWindowIndicatorMenu")}static{this.StatusBarRemoteIndicatorMenu=new i("StatusBarRemoteIndicatorMenu")}static{this.StickyScrollContext=new i("StickyScrollContext")}static{this.TestItem=new i("TestItem")}static{this.TestItemGutter=new i("TestItemGutter")}static{this.TestProfilesContext=new i("TestProfilesContext")}static{this.TestMessageContext=new i("TestMessageContext")}static{this.TestMessageContent=new i("TestMessageContent")}static{this.TestPeekElement=new i("TestPeekElement")}static{this.TestPeekTitle=new i("TestPeekTitle")}static{this.TestCallStack=new i("TestCallStack")}static{this.TouchBarContext=new i("TouchBarContext")}static{this.TitleBarContext=new i("TitleBarContext")}static{this.TitleBarTitleContext=new i("TitleBarTitleContext")}static{this.TunnelContext=new i("TunnelContext")}static{this.TunnelPrivacy=new i("TunnelPrivacy")}static{this.TunnelProtocol=new i("TunnelProtocol")}static{this.TunnelPortInline=new i("TunnelInline")}static{this.TunnelTitle=new i("TunnelTitle")}static{this.TunnelLocalAddressInline=new i("TunnelLocalAddressInline")}static{this.TunnelOriginInline=new i("TunnelOriginInline")}static{this.ViewItemContext=new i("ViewItemContext")}static{this.ViewContainerTitle=new i("ViewContainerTitle")}static{this.ViewContainerTitleContext=new i("ViewContainerTitleContext")}static{this.ViewTitle=new i("ViewTitle")}static{this.ViewTitleContext=new i("ViewTitleContext")}static{this.CommentEditorActions=new i("CommentEditorActions")}static{this.CommentThreadTitle=new i("CommentThreadTitle")}static{this.CommentThreadActions=new i("CommentThreadActions")}static{this.CommentThreadAdditionalActions=new i("CommentThreadAdditionalActions")}static{this.CommentThreadTitleContext=new i("CommentThreadTitleContext")}static{this.CommentThreadCommentContext=new i("CommentThreadCommentContext")}static{this.CommentTitle=new i("CommentTitle")}static{this.CommentActions=new i("CommentActions")}static{this.CommentsViewThreadActions=new i("CommentsViewThreadActions")}static{this.InteractiveToolbar=new i("InteractiveToolbar")}static{this.InteractiveCellTitle=new i("InteractiveCellTitle")}static{this.InteractiveCellDelete=new i("InteractiveCellDelete")}static{this.InteractiveCellExecute=new i("InteractiveCellExecute")}static{this.InteractiveInputExecute=new i("InteractiveInputExecute")}static{this.InteractiveInputConfig=new i("InteractiveInputConfig")}static{this.ReplInputExecute=new i("ReplInputExecute")}static{this.IssueReporter=new i("IssueReporter")}static{this.NotebookToolbar=new i("NotebookToolbar")}static{this.NotebookStickyScrollContext=new i("NotebookStickyScrollContext")}static{this.NotebookCellTitle=new i("NotebookCellTitle")}static{this.NotebookCellDelete=new i("NotebookCellDelete")}static{this.NotebookCellInsert=new i("NotebookCellInsert")}static{this.NotebookCellBetween=new i("NotebookCellBetween")}static{this.NotebookCellListTop=new i("NotebookCellTop")}static{this.NotebookCellExecute=new i("NotebookCellExecute")}static{this.NotebookCellExecuteGoTo=new i("NotebookCellExecuteGoTo")}static{this.NotebookCellExecutePrimary=new i("NotebookCellExecutePrimary")}static{this.NotebookDiffCellInputTitle=new i("NotebookDiffCellInputTitle")}static{this.NotebookDiffCellMetadataTitle=new i("NotebookDiffCellMetadataTitle")}static{this.NotebookDiffCellOutputsTitle=new i("NotebookDiffCellOutputsTitle")}static{this.NotebookOutputToolbar=new i("NotebookOutputToolbar")}static{this.NotebookOutlineFilter=new i("NotebookOutlineFilter")}static{this.NotebookOutlineActionMenu=new i("NotebookOutlineActionMenu")}static{this.NotebookEditorLayoutConfigure=new i("NotebookEditorLayoutConfigure")}static{this.NotebookKernelSource=new i("NotebookKernelSource")}static{this.BulkEditTitle=new i("BulkEditTitle")}static{this.BulkEditContext=new i("BulkEditContext")}static{this.TimelineItemContext=new i("TimelineItemContext")}static{this.TimelineTitle=new i("TimelineTitle")}static{this.TimelineTitleContext=new i("TimelineTitleContext")}static{this.TimelineFilterSubMenu=new i("TimelineFilterSubMenu")}static{this.AccountsContext=new i("AccountsContext")}static{this.SidebarTitle=new i("SidebarTitle")}static{this.PanelTitle=new i("PanelTitle")}static{this.AuxiliaryBarTitle=new i("AuxiliaryBarTitle")}static{this.AuxiliaryBarHeader=new i("AuxiliaryBarHeader")}static{this.TerminalInstanceContext=new i("TerminalInstanceContext")}static{this.TerminalEditorInstanceContext=new i("TerminalEditorInstanceContext")}static{this.TerminalNewDropdownContext=new i("TerminalNewDropdownContext")}static{this.TerminalTabContext=new i("TerminalTabContext")}static{this.TerminalTabEmptyAreaContext=new i("TerminalTabEmptyAreaContext")}static{this.TerminalStickyScrollContext=new i("TerminalStickyScrollContext")}static{this.WebviewContext=new i("WebviewContext")}static{this.InlineCompletionsActions=new i("InlineCompletionsActions")}static{this.InlineEditsActions=new i("InlineEditsActions")}static{this.InlineEditActions=new i("InlineEditActions")}static{this.NewFile=new i("NewFile")}static{this.MergeInput1Toolbar=new i("MergeToolbar1Toolbar")}static{this.MergeInput2Toolbar=new i("MergeToolbar2Toolbar")}static{this.MergeBaseToolbar=new i("MergeBaseToolbar")}static{this.MergeInputResultToolbar=new i("MergeToolbarResultToolbar")}static{this.InlineSuggestionToolbar=new i("InlineSuggestionToolbar")}static{this.InlineEditToolbar=new i("InlineEditToolbar")}static{this.ChatContext=new i("ChatContext")}static{this.ChatCodeBlock=new i("ChatCodeblock")}static{this.ChatCompareBlock=new i("ChatCompareBlock")}static{this.ChatMessageTitle=new i("ChatMessageTitle")}static{this.ChatExecute=new i("ChatExecute")}static{this.ChatExecuteSecondary=new i("ChatExecuteSecondary")}static{this.ChatInputSide=new i("ChatInputSide")}static{this.AccessibleView=new i("AccessibleView")}static{this.MultiDiffEditorFileToolbar=new i("MultiDiffEditorFileToolbar")}static{this.DiffEditorHunkToolbar=new i("DiffEditorHunkToolbar")}static{this.DiffEditorSelectionToolbar=new i("DiffEditorSelectionToolbar")}constructor(d){if(i._instances.has(d))throw new TypeError(`MenuId with identifier '${d}' already exists. Use MenuId.for(ident) or a unique identifier`);i._instances.set(d,this),this.id=d}}e.MenuId=i,e.IMenuService=(0,v.createDecorator)("menuService");class o{static{this._all=new Map}static for(d){let m=this._all.get(d);return m||(m=new o(d),this._all.set(d,m)),m}static merge(d){const m=new Set;for(const h of d)h instanceof o&&m.add(h.id);return m}constructor(d){this.id=d,this.has=m=>m===d}}e.MenuRegistry=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new E.MicrotaskEmitter({merge:o.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(a){return this._commands.set(a.id,a),this._onDidChangeMenu.fire(o.for(i.CommandPalette)),(0,L.toDisposable)(()=>{this._commands.delete(a.id)&&this._onDidChangeMenu.fire(o.for(i.CommandPalette))})}getCommand(a){return this._commands.get(a)}getCommands(){const a=new Map;return this._commands.forEach((d,m)=>a.set(m,d)),a}appendMenuItem(a,d){let m=this._menuItems.get(a);m||(m=new y.LinkedList,this._menuItems.set(a,m));const h=m.push(d);return this._onDidChangeMenu.fire(o.for(a)),(0,L.toDisposable)(()=>{h(),this._onDidChangeMenu.fire(o.for(a))})}appendMenuItems(a){const d=new L.DisposableStore;for(const{id:m,item:h}of a)d.add(this.appendMenuItem(m,h));return d}getMenuItems(a){let d;return this._menuItems.has(a)?d=[...this._menuItems.get(a)]:d=[],a===i.CommandPalette&&this._appendImplicitItems(d),d}_appendImplicitItems(a){const d=new Set;for(const m of a)s(m)&&(d.add(m.command.id),m.alt&&d.add(m.alt.id));this._commands.forEach((m,h)=>{d.has(h)||a.push({command:m})})}};class g extends c.SubmenuAction{constructor(d,m,h){super(`submenuitem.${d.submenu.id}`,typeof d.title=="string"?d.title:d.title.value,h,"submenu"),this.item=d,this.hideActions=m}}e.SubmenuItemAction=g;let u=n=class{static label(d,m){return m?.renderShortTitle&&d.shortTitle?typeof d.shortTitle=="string"?d.shortTitle:d.shortTitle.value:typeof d.title=="string"?d.title:d.title.value}constructor(d,m,h,C,b,w,S){this.hideActions=C,this.menuKeybinding=b,this._commandService=S,this.id=d.id,this.label=n.label(d,h),this.tooltip=(typeof d.tooltip=="string"?d.tooltip:d.tooltip?.value)??"",this.enabled=!d.precondition||w.contextMatchesRules(d.precondition),this.checked=void 0;let D;if(d.toggled){const I=d.toggled.condition?d.toggled:{condition:d.toggled};this.checked=w.contextMatchesRules(I.condition),this.checked&&I.tooltip&&(this.tooltip=typeof I.tooltip=="string"?I.tooltip:I.tooltip.value),this.checked&&k.ThemeIcon.isThemeIcon(I.icon)&&(D=I.icon),this.checked&&I.title&&(this.label=typeof I.title=="string"?I.title:I.title.value)}D||(D=k.ThemeIcon.isThemeIcon(d.icon)?d.icon:void 0),this.item=d,this.alt=m?new n(m,void 0,h,C,void 0,w,S):void 0,this._options=h,this.class=D&&k.ThemeIcon.asClassName(D)}run(...d){let m=[];return this._options?.arg&&(m=[...m,this._options.arg]),this._options?.shouldForwardArgs&&(m=[...m,...d]),this._commandService.executeCommand(this.id,...m)}};e.MenuItemAction=u,e.MenuItemAction=u=n=De([he(5,_.IContextKeyService),he(6,f.ICommandService)],u);class l{constructor(d){this.desc=d}}e.Action2=l;function r(a){const d=[],m=new a,{f1:h,menu:C,keybinding:b,...w}=m.desc;if(f.CommandsRegistry.getCommand(w.id))throw new Error(`Cannot register two commands with the same id: ${w.id}`);if(d.push(f.CommandsRegistry.registerCommand({id:w.id,handler:(S,...D)=>m.run(S,...D),metadata:w.metadata})),Array.isArray(C))for(const S of C)d.push(e.MenuRegistry.appendMenuItem(S.id,{command:{...w,precondition:S.precondition===null?void 0:w.precondition},...S}));else C&&d.push(e.MenuRegistry.appendMenuItem(C.id,{command:{...w,precondition:C.precondition===null?void 0:w.precondition},...C}));if(h&&(d.push(e.MenuRegistry.appendMenuItem(i.CommandPalette,{command:w,when:w.precondition})),d.push(e.MenuRegistry.addCommand(w))),Array.isArray(b))for(const S of b)d.push(p.KeybindingsRegistry.registerKeybindingRule({...S,id:w.id,when:w.precondition?_.ContextKeyExpr.and(w.precondition,S.when):S.when}));else b&&d.push(p.KeybindingsRegistry.registerKeybindingRule({...b,id:w.id,when:w.precondition?_.ContextKeyExpr.and(w.precondition,b.when):b.when}));return{dispose(){(0,L.dispose)(d)}}}}),define(oe[710],re([1,0,48,228,3,29]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleTabFocusModeAction=void 0;class y extends L.Action2{static{this.ID="editor.action.toggleTabFocusMode"}constructor(){super({id:y.ID,title:E.localize2(323,"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:E.localize2(324,"Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const v=!k.TabFocus.getTabFocusMode();k.TabFocus.setTabFocusMode(v),v?(0,c.alert)(E.localize(321,"Pressing Tab will now move focus to the next focusable element")):(0,c.alert)(E.localize(322,"Pressing Tab will now insert the tab character"))}}e.ToggleTabFocusModeAction=y,(0,L.registerAction2)(y)}),define(oe[400],re([1,0,259,636,12,121,3,2,5]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextScopedReplaceInput=e.ContextScopedFindInput=e.historyNavigationVisible=void 0,e.registerAndCreateHistoryNavigationContext=i,e.historyNavigationVisible=new E.RawContextKey("suggestWidgetVisible",!1,(0,y.localize)(1130,"Whether suggestion are visible"));const v="historyNavigationWidgetFocus",p="historyNavigationForwardsEnabled",n="historyNavigationBackwardsEnabled";let s;const t=[];function i(u,l){if(t.includes(l))throw new Error("Cannot register the same widget multiple times");t.push(l);const r=new f.DisposableStore,a=new E.RawContextKey(v,!1).bindTo(u),d=new E.RawContextKey(p,!0).bindTo(u),m=new E.RawContextKey(n,!0).bindTo(u),h=()=>{a.set(!0),s=l},C=()=>{a.set(!1),s===l&&(s=void 0)};return(0,_.isActiveElement)(l.element)&&h(),r.add(l.onDidFocus(()=>h())),r.add(l.onDidBlur(()=>C())),r.add((0,f.toDisposable)(()=>{t.splice(t.indexOf(l),1),C()})),{historyNavigationForwardsEnablement:d,historyNavigationBackwardsEnablement:m,dispose(){r.dispose()}}}let o=class extends c.FindInput{constructor(l,r,a,d){super(l,r,a);const m=this._register(d.createScoped(this.inputBox.element));this._register(i(m,this.inputBox))}};e.ContextScopedFindInput=o,e.ContextScopedFindInput=o=De([he(3,E.IContextKeyService)],o);let g=class extends k.ReplaceInput{constructor(l,r,a,d,m=!1){super(l,r,m,a);const h=this._register(d.createScoped(this.inputBox.element));this._register(i(h,this.inputBox))}};e.ContextScopedReplaceInput=g,e.ContextScopedReplaceInput=g=De([he(3,E.IContextKeyService)],g),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:E.ContextKeyExpr.and(E.ContextKeyExpr.has(v),E.ContextKeyExpr.equals(n,!0),E.ContextKeyExpr.not("isComposing"),e.historyNavigationVisible.isEqualTo(!1)),primary:16,secondary:[528],handler:u=>{s?.showPreviousValue()}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:E.ContextKeyExpr.and(E.ContextKeyExpr.has(v),E.ContextKeyExpr.equals(p,!0),E.ContextKeyExpr.not("isComposing"),e.historyNavigationVisible.isEqualTo(!1)),primary:18,secondary:[530],handler:u=>{s?.showNextValue()}})}),define(oe[153],re([1,0,18,8,82,2,59,19,22,9,4,78,134,3,29,24,12,17,400]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickSuggestionsOptions=e.CompletionItemModel=e.CompletionOptions=e.CompletionItem=e.suggestWidgetStatusbarMenu=e.Context=void 0,e.getSnippetSuggestSupport=m,e.provideSuggestionItems=C,e.getSuggestionComparator=I,e.showSimpleSuggestions=T,e.Context={Visible:l.historyNavigationVisible,HasFocusedSuggestion:new g.RawContextKey("suggestWidgetHasFocusedSuggestion",!1,(0,t.localize)(388,"Whether any suggestion is focused")),DetailsVisible:new g.RawContextKey("suggestWidgetDetailsVisible",!1,(0,t.localize)(389,"Whether suggestion details are visible")),MultipleSuggestions:new g.RawContextKey("suggestWidgetMultipleSuggestions",!1,(0,t.localize)(390,"Whether there are multiple suggestions to pick from")),MakesTextEdit:new g.RawContextKey("suggestionMakesTextEdit",!0,(0,t.localize)(391,"Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new g.RawContextKey("acceptSuggestionOnEnter",!0,(0,t.localize)(392,"Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new g.RawContextKey("suggestionHasInsertAndReplaceRange",!1,(0,t.localize)(393,"Whether the current suggestion has insert and replace behaviour")),InsertMode:new g.RawContextKey("suggestionInsertMode",void 0,{type:"string",description:(0,t.localize)(394,"Whether the default behaviour is to insert or replace")}),CanResolve:new g.RawContextKey("suggestionCanResolve",!1,(0,t.localize)(395,"Whether the current suggestion supports to resolve further details"))},e.suggestWidgetStatusbarMenu=new i.MenuId("suggestWidgetStatusBar");class r{constructor(R,N,O,x){this.position=R,this.completion=N,this.container=O,this.provider=x,this.isInvalid=!1,this.score=E.FuzzyScore.Default,this.distance=0,this.textLabel=typeof N.label=="string"?N.label:N.label?.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=N.sortText&&N.sortText.toLowerCase(),this.filterTextLow=N.filterText&&N.filterText.toLowerCase(),this.extensionId=N.extensionId,p.Range.isIRange(N.range)?(this.editStart=new v.Position(N.range.startLineNumber,N.range.startColumn),this.editInsertEnd=new v.Position(N.range.endLineNumber,N.range.endColumn),this.editReplaceEnd=new v.Position(N.range.endLineNumber,N.range.endColumn),this.isInvalid=this.isInvalid||p.Range.spansMultipleLines(N.range)||N.range.startLineNumber!==R.lineNumber):(this.editStart=new v.Position(N.range.insert.startLineNumber,N.range.insert.startColumn),this.editInsertEnd=new v.Position(N.range.insert.endLineNumber,N.range.insert.endColumn),this.editReplaceEnd=new v.Position(N.range.replace.endLineNumber,N.range.replace.endColumn),this.isInvalid=this.isInvalid||p.Range.spansMultipleLines(N.range.insert)||p.Range.spansMultipleLines(N.range.replace)||N.range.insert.startLineNumber!==R.lineNumber||N.range.replace.startLineNumber!==R.lineNumber||N.range.insert.startColumn!==N.range.replace.startColumn),typeof x.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return this._resolveDuration!==void 0}get resolveDuration(){return this._resolveDuration!==void 0?this._resolveDuration:-1}async resolve(R){if(!this._resolveCache){const N=R.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),O=new y.StopWatch(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,R)).then(x=>{Object.assign(this.completion,x),this._resolveDuration=O.elapsed()},x=>{(0,k.isCancellationError)(x)&&(this._resolveCache=void 0,this._resolveDuration=void 0)}).finally(()=>{N.dispose()})}return this._resolveCache}}e.CompletionItem=r;class a{static{this.default=new a}constructor(R=2,N=new Set,O=new Set,x=new Map,F=!0){this.snippetSortOrder=R,this.kindFilter=N,this.providerFilter=O,this.providerItemsToReuse=x,this.showDeprecated=F}}e.CompletionOptions=a;let d;function m(){return d}class h{constructor(R,N,O,x){this.items=R,this.needsClipboard=N,this.durations=O,this.disposable=x}}e.CompletionItemModel=h;async function C(A,R,N,O=a.default,x={triggerKind:0},F=c.CancellationToken.None){const W=new y.StopWatch;N=N.clone();const z=R.getWordAtPosition(N),q=z?new p.Range(N.lineNumber,z.startColumn,N.lineNumber,z.endColumn):p.Range.fromPositions(N),H={replace:q,insert:q.setEndPosition(N.lineNumber,N.column)},K=[],U=new L.DisposableStore,Y=[];let Q=!1;const X=(P,te,se)=>{let ue=!1;if(!te)return ue;for(const ge of te.suggestions)if(!O.kindFilter.has(ge.kind)){if(!O.showDeprecated&&ge?.tags?.includes(1))continue;ge.range||(ge.range=H),ge.sortText||(ge.sortText=typeof ge.label=="string"?ge.label:ge.label.label),!Q&&ge.insertTextRules&&ge.insertTextRules&4&&(Q=s.SnippetParser.guessNeedsClipboard(ge.insertText)),K.push(new r(N,ge,te,P)),ue=!0}return(0,L.isDisposable)(te)&&U.add(te),Y.push({providerName:P._debugDisplayName??"unknown_provider",elapsedProvider:te.duration??-1,elapsedOverall:se.elapsed()}),ue},G=(async()=>{if(!d||O.kindFilter.has(27))return;const P=O.providerItemsToReuse.get(d);if(P){P.forEach(ue=>K.push(ue));return}if(O.providerFilter.size>0&&!O.providerFilter.has(d))return;const te=new y.StopWatch,se=await d.provideCompletionItems(R,N,x,F);X(d,se,te)})();for(const P of A.orderedGroups(R)){let te=!1;if(await Promise.all(P.map(async se=>{if(O.providerItemsToReuse.has(se)){const ue=O.providerItemsToReuse.get(se);ue.forEach(ge=>K.push(ge)),te=te||ue.length>0;return}if(!(O.providerFilter.size>0&&!O.providerFilter.has(se)))try{const ue=new y.StopWatch,ge=await se.provideCompletionItems(R,N,x,F);te=X(se,ge,ue)||te}catch(ue){(0,k.onUnexpectedExternalError)(ue)}})),te||F.isCancellationRequested)break}return await G,F.isCancellationRequested?(U.dispose(),Promise.reject(new k.CancellationError)):new h(K.sort(I(O.snippetSortOrder)),Q,{entries:Y,elapsed:W.elapsed()},U)}function b(A,R){if(A.sortTextLow&&R.sortTextLow){if(A.sortTextLow<R.sortTextLow)return-1;if(A.sortTextLow>R.sortTextLow)return 1}return A.textLabel<R.textLabel?-1:A.textLabel>R.textLabel?1:A.completion.kind-R.completion.kind}function w(A,R){if(A.completion.kind!==R.completion.kind){if(A.completion.kind===27)return-1;if(R.completion.kind===27)return 1}return b(A,R)}function S(A,R){if(A.completion.kind!==R.completion.kind){if(A.completion.kind===27)return 1;if(R.completion.kind===27)return-1}return b(A,R)}const D=new Map;D.set(0,w),D.set(2,S),D.set(1,b);function I(A){return D.get(A)}o.CommandsRegistry.registerCommand("_executeCompletionItemProvider",async(A,...R)=>{const[N,O,x,F]=R;(0,f.assertType)(_.URI.isUri(N)),(0,f.assertType)(v.Position.isIPosition(O)),(0,f.assertType)(typeof x=="string"||!x),(0,f.assertType)(typeof F=="number"||!F);const{completionProvider:W}=A.get(u.ILanguageFeaturesService),z=await A.get(n.ITextModelService).createModelReference(N);try{const q={incomplete:!1,suggestions:[]},H=[],K=z.object.textEditorModel.validatePosition(O),U=await C(W,z.object.textEditorModel,K,void 0,{triggerCharacter:x??void 0,triggerKind:x?1:0});for(const Y of U.items)H.length<(F??0)&&H.push(Y.resolve(c.CancellationToken.None)),q.incomplete=q.incomplete||Y.container.incomplete,q.suggestions.push(Y.completion);try{return await Promise.all(H),q}finally{setTimeout(()=>U.disposable.dispose(),100)}}finally{z.dispose()}});function T(A,R){A.getContribution("editor.contrib.suggestController")?.triggerSuggest(new Set().add(R),void 0,!0)}class M{static isAllOff(R){return R.other==="off"&&R.comments==="off"&&R.strings==="off"}static isAllOn(R){return R.other==="on"&&R.comments==="on"&&R.strings==="on"}static valueFor(R,N){switch(N){case 1:return R.comments;case 2:return R.strings;default:return R.other}}}e.QuickSuggestionsOptions=M}),define(oe[711],re([1,0,16,3,12,178,121,270,63]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const v={weight:200,when:E.ContextKeyExpr.and(E.ContextKeyExpr.equals(f.quickInputTypeContextKeyValue,"quickPick"),f.inQuickInputContext),metadata:{description:(0,k.localize)(1078,"Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")}};function p(g,u={}){y.KeybindingsRegistry.registerCommandAndKeybindingRule({...v,...g,secondary:s(g.primary,g.secondary??[],u)})}const n=c.isMacintosh?256:2048;function s(g,u,l={}){return l.withAltMod&&u.push(512+g),l.withCtrlMod&&(u.push(n+g),l.withAltMod&&u.push(512+n+g)),l.withCmdMod&&c.isMacintosh&&(u.push(2048+g),l.withCtrlMod&&u.push(2304+g),l.withAltMod&&(u.push(2560+g),l.withCtrlMod&&u.push(2816+g))),u}function t(g,u){return l=>{const r=l.get(_.IQuickInputService).currentQuickInput;if(r)return u&&r.quickNavigate?r.focus(u):r.focus(g)}}p({id:"quickInput.pageNext",primary:12,handler:t(_.QuickPickFocus.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),p({id:"quickInput.pagePrevious",primary:11,handler:t(_.QuickPickFocus.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),p({id:"quickInput.first",primary:n+14,handler:t(_.QuickPickFocus.First)},{withAltMod:!0,withCmdMod:!0}),p({id:"quickInput.last",primary:n+13,handler:t(_.QuickPickFocus.Last)},{withAltMod:!0,withCmdMod:!0}),p({id:"quickInput.next",primary:18,handler:t(_.QuickPickFocus.Next)},{withCtrlMod:!0}),p({id:"quickInput.previous",primary:16,handler:t(_.QuickPickFocus.Previous)},{withCtrlMod:!0});const i=(0,k.localize)(1079,"If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),o=(0,k.localize)(1080,"If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");c.isMacintosh?(p({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:t(_.QuickPickFocus.NextSeparator,_.QuickPickFocus.Next),metadata:{description:i}}),p({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:t(_.QuickPickFocus.NextSeparator)},{withCtrlMod:!0}),p({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:t(_.QuickPickFocus.PreviousSeparator,_.QuickPickFocus.Previous),metadata:{description:o}}),p({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:t(_.QuickPickFocus.PreviousSeparator)},{withCtrlMod:!0})):(p({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:t(_.QuickPickFocus.NextSeparator,_.QuickPickFocus.Next),metadata:{description:i}}),p({id:"quickInput.nextSeparator",primary:2578,handler:t(_.QuickPickFocus.NextSeparator)}),p({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:t(_.QuickPickFocus.PreviousSeparator,_.QuickPickFocus.Previous),metadata:{description:o}}),p({id:"quickInput.previousSeparator",primary:2576,handler:t(_.QuickPickFocus.PreviousSeparator)})),p({id:"quickInput.acceptInBackground",when:E.ContextKeyExpr.and(v.when,E.ContextKeyExpr.or(L.InputFocusedContext.negate(),f.endOfQuickInputBoxContext)),primary:17,weight:250,handler:g=>{g.get(_.IQuickInputService).currentQuickInput?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0})}),define(oe[154],re([1,0,13,2,38]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessRegistry=e.Extensions=e.DefaultQuickAccessFilterValue=void 0;var L;(function(f){f[f.PRESERVE=0]="PRESERVE",f[f.LAST=1]="LAST"})(L||(e.DefaultQuickAccessFilterValue=L={})),e.Extensions={Quickaccess:"workbench.contributions.quickaccess"};class y{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(_){return _.prefix.length===0?this.defaultProvider=_:this.providers.push(_),this.providers.sort((v,p)=>p.prefix.length-v.prefix.length),(0,k.toDisposable)(()=>{this.providers.splice(this.providers.indexOf(_),1),this.defaultProvider===_&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return(0,c.coalesce)([this.defaultProvider,...this.providers])}getQuickAccessProvider(_){return _&&this.providers.find(p=>_.startsWith(p.prefix))||void 0||this.defaultProvider}}e.QuickAccessRegistry=y,E.Registry.add(e.Extensions.Quickaccess,new y)}),define(oe[712],re([1,0,3,38,2,31,154,63]),function(ae,e,c,k,E,L,y,f){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e.HelpQuickAccessProvider=void 0;let v=class{static{_=this}static{this.PREFIX="?"}constructor(n,s){this.quickInputService=n,this.keybindingService=s,this.registry=k.Registry.as(y.Extensions.Quickaccess)}provide(n){const s=new E.DisposableStore;return s.add(n.onDidAccept(()=>{const[t]=n.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),s.add(n.onDidChangeValue(t=>{const i=this.registry.getQuickAccessProvider(t.substr(_.PREFIX.length));i&&i.prefix&&i.prefix!==_.PREFIX&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),n.items=this.getQuickAccessProviders().filter(t=>t.prefix!==_.PREFIX),s}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((s,t)=>s.prefix.localeCompare(t.prefix)).flatMap(s=>this.createPicks(s))}createPicks(n){return n.helpEntries.map(s=>{const t=s.prefix||n.prefix,i=t||"\u2026";return{prefix:t,label:i,keybinding:s.commandId?this.keybindingService.lookupKeybinding(s.commandId):void 0,ariaLabel:(0,c.localize)(1088,"{0}, {1}",i,s.description),description:s.description}})}};e.HelpQuickAccessProvider=v,e.HelpQuickAccessProvider=v=_=De([he(0,f.IQuickInputService),he(1,L.IKeybindingService)],v)}),define(oe[713],re([1,0,38,154,106,712]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),c.Registry.as(k.Extensions.Quickaccess).registerQuickAccessProvider({ctor:L.HelpQuickAccessProvider,prefix:"",helpEntries:[{description:E.QuickHelpNLS.helpQuickAccessActionLabel}]})}),define(oe[714],re([1,0,14,18,6,2,7,154,63,38]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessController=void 0;let p=class extends L.Disposable{constructor(s,t){super(),this.quickInputService=s,this.instantiationService=t,this.registry=v.Registry.as(f.Extensions.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(s="",t){this.doShowOrPick(s,!1,t)}doShowOrPick(s,t,i){const[o,g]=this.getOrInstantiateProvider(s,i?.enabledProviderPrefixes),u=this.visibleQuickAccess,l=u?.descriptor;if(u&&g&&l===g){s!==g.prefix&&!i?.preserveValue&&(u.picker.value=s),this.adjustValueSelection(u.picker,g,i);return}if(g&&!i?.preserveValue){let b;if(u&&l&&l!==g){const w=u.value.substr(l.prefix.length);w&&(b=`${g.prefix}${w}`)}if(!b){const w=o?.defaultFilterValue;w===f.DefaultQuickAccessFilterValue.LAST?b=this.lastAcceptedPickerValues.get(g):typeof w=="string"&&(b=`${g.prefix}${w}`)}typeof b=="string"&&(s=b)}const r=u?.picker?.valueSelection,a=u?.picker?.value,d=new L.DisposableStore,m=d.add(this.quickInputService.createQuickPick());m.value=s,this.adjustValueSelection(m,g,i),m.placeholder=i?.placeholder??g?.placeholder,m.quickNavigate=i?.quickNavigateConfiguration,m.hideInput=!!m.quickNavigate&&!u,(typeof i?.itemActivation=="number"||i?.quickNavigateConfiguration)&&(m.itemActivation=i?.itemActivation??_.ItemActivation.SECOND),m.contextKey=g?.contextKey,m.filterValue=b=>b.substring(g?g.prefix.length:0);let h;t&&(h=new c.DeferredPromise,d.add(E.Event.once(m.onWillAccept)(b=>{b.veto(),m.hide()}))),d.add(this.registerPickerListeners(m,o,g,s,i));const C=d.add(new k.CancellationTokenSource);if(o&&d.add(o.provide(m,C.token,i?.providerOptions)),E.Event.once(m.onDidHide)(()=>{m.selectedItems.length===0&&C.cancel(),d.dispose(),h?.complete(m.selectedItems.slice(0))}),m.show(),r&&a===s&&(m.valueSelection=r),t)return h?.p}adjustValueSelection(s,t,i){let o;i?.preserveValue?o=[s.value.length,s.value.length]:o=[t?.prefix.length??0,s.value.length],s.valueSelection=o}registerPickerListeners(s,t,i,o,g){const u=new L.DisposableStore,l=this.visibleQuickAccess={picker:s,descriptor:i,value:o};return u.add((0,L.toDisposable)(()=>{l===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),u.add(s.onDidChangeValue(r=>{const[a]=this.getOrInstantiateProvider(r,g?.enabledProviderPrefixes);a!==t?this.show(r,{enabledProviderPrefixes:g?.enabledProviderPrefixes,preserveValue:!0,providerOptions:g?.providerOptions}):l.value=r})),i&&u.add(s.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,s.value)})),u}getOrInstantiateProvider(s,t){const i=this.registry.getQuickAccessProvider(s);if(!i||t&&!t?.includes(i.prefix))return[void 0,void 0];let o=this.mapProviderToDescriptor.get(i);return o||(o=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,o)),[o,i]}};e.QuickAccessController=p,e.QuickAccessController=p=De([he(0,_.IQuickInputService),he(1,y.IInstantiationService)],p)}),define(oe[715],re([1,0,26,30,110,540]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SeverityIcon=void 0;var L;(function(y){function f(_){switch(_){case E.default.Ignore:return"severity-ignore "+k.ThemeIcon.asClassName(c.Codicon.info);case E.default.Info:return k.ThemeIcon.asClassName(c.Codicon.info);case E.default.Warning:return k.ThemeIcon.asClassName(c.Codicon.warning);case E.default.Error:return k.ThemeIcon.asClassName(c.Codicon.error);default:return""}}y.className=f})(L||(e.SeverityIcon=L={}))}),define(oe[100],re([1,0,6,2,19,642,7]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageService=e.AbstractStorageService=e.WillSaveStateReason=e.IStorageService=e.TARGET_KEY=void 0,e.loadKeyTargets=_,e.TARGET_KEY="__$__targetStorageMarker",e.IStorageService=(0,y.createDecorator)("storageService");var f;(function(n){n[n.NONE=0]="NONE",n[n.SHUTDOWN=1]="SHUTDOWN"})(f||(e.WillSaveStateReason=f={}));function _(n){const s=n.get(e.TARGET_KEY);if(s)try{return JSON.parse(s)}catch{}return Object.create(null)}class v extends k.Disposable{static{this.DEFAULT_FLUSH_INTERVAL=60*1e3}constructor(s={flushInterval:v.DEFAULT_FLUSH_INTERVAL}){super(),this.options=s,this._onDidChangeValue=this._register(new c.PauseableEmitter),this._onDidChangeTarget=this._register(new c.PauseableEmitter),this._onWillSaveState=this._register(new c.Emitter),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(s,t,i){return c.Event.filter(this._onDidChangeValue.event,o=>o.scope===s&&(t===void 0||o.key===t),i)}emitDidChangeValue(s,t){const{key:i,external:o}=t;if(i===e.TARGET_KEY){switch(s){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:s})}else this._onDidChangeValue.fire({scope:s,key:i,target:this.getKeyTargets(s)[i],external:o})}get(s,t,i){return this.getStorage(t)?.get(s,i)}getBoolean(s,t,i){return this.getStorage(t)?.getBoolean(s,i)}getNumber(s,t,i){return this.getStorage(t)?.getNumber(s,i)}store(s,t,i,o,g=!1){if((0,E.isUndefinedOrNull)(t)){this.remove(s,i,g);return}this.withPausedEmitters(()=>{this.updateKeyTarget(s,i,o),this.getStorage(i)?.set(s,t,g)})}remove(s,t,i=!1){this.withPausedEmitters(()=>{this.updateKeyTarget(s,t,void 0),this.getStorage(t)?.delete(s,i)})}withPausedEmitters(s){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{s()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(s,t,i,o=!1){const g=this.getKeyTargets(t);typeof i=="number"?g[s]!==i&&(g[s]=i,this.getStorage(t)?.set(e.TARGET_KEY,JSON.stringify(g),o)):typeof g[s]=="number"&&(delete g[s],this.getStorage(t)?.set(e.TARGET_KEY,JSON.stringify(g),o))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(s){switch(s){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(s){const t=this.getStorage(s);return t?_(t):Object.create(null)}}e.AbstractStorageService=v;class p extends v{constructor(){super(),this.applicationStorage=this._register(new L.Storage(new L.InMemoryStorageDatabase,{hint:L.StorageHint.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new L.Storage(new L.InMemoryStorageDatabase,{hint:L.StorageHint.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new L.Storage(new L.InMemoryStorageDatabase,{hint:L.StorageHint.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage(s=>this.emitDidChangeValue(1,s))),this._register(this.profileStorage.onDidChangeStorage(s=>this.emitDidChangeValue(0,s))),this._register(this.applicationStorage.onDidChangeStorage(s=>this.emitDidChangeValue(-1,s)))}getStorage(s){switch(s){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}e.InMemoryStorageService=p}),define(oe[716],re([1,0,6,45,4,381,49,7,100,52,5]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensCache=e.ICodeLensCache=void 0,e.ICodeLensCache=(0,f.createDecorator)("ICodeLensCache");class n{constructor(i,o){this.lineCount=i,this.data=o}}let s=class{constructor(i){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new k.LRUCache(20,.75);const o="codelens/cache";(0,p.runWhenWindowIdle)(v.mainWindow,()=>i.remove(o,1));const g="codelens/cache2",u=i.get(g,1,"{}");this._deserialize(u);const l=c.Event.filter(i.onWillSaveState,r=>r.reason===_.WillSaveStateReason.SHUTDOWN);c.Event.once(l)(r=>{i.store(g,this._serialize(),1,1)})}put(i,o){const g=o.lenses.map(r=>({range:r.symbol.range,command:r.symbol.command&&{id:"",title:r.symbol.command?.title}})),u=new L.CodeLensModel;u.add({lenses:g,dispose:()=>{}},this._fakeProvider);const l=new n(i.getLineCount(),u);this._cache.set(i.uri.toString(),l)}get(i){const o=this._cache.get(i.uri.toString());return o&&o.lineCount===i.getLineCount()?o.data:void 0}delete(i){this._cache.delete(i.uri.toString())}_serialize(){const i=Object.create(null);for(const[o,g]of this._cache){const u=new Set;for(const l of g.data.lenses)u.add(l.symbol.range.startLineNumber);i[o]={lineCount:g.lineCount,lines:[...u.values()]}}return JSON.stringify(i)}_deserialize(i){try{const o=JSON.parse(i);for(const g in o){const u=o[g],l=[];for(const a of u.lines)l.push({range:new E.Range(a,1,a,11)});const r=new L.CodeLensModel;r.add({lenses:l,dispose(){}},this._fakeProvider),this._cache.set(g,new n(u.lineCount,r))}}catch{}}};e.CodeLensCache=s,e.CodeLensCache=s=De([he(0,_.IStorageService)],s),(0,y.registerSingleton)(e.ICodeLensCache,s,1)}),define(oe[401],re([1,0,14,2,45,223,28,27,49,7,100]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ISuggestMemoryService=e.SuggestMemoryService=e.PrefixMemory=e.LRUMemory=e.NoMemory=e.Memory=void 0;class s{constructor(l){this.name=l}select(l,r,a){if(a.length===0)return 0;const d=a[0].score[0];for(let m=0;m<a.length;m++){const{score:h,completion:C}=a[m];if(h[0]!==d)break;if(C.preselect)return m}return 0}}e.Memory=s;class t extends s{constructor(){super("first")}memorize(l,r,a){}toJSON(){}fromJSON(){}}e.NoMemory=t;class i extends s{constructor(){super("recentlyUsed"),this._cache=new E.LRUCache(300,.66),this._seq=0}memorize(l,r,a){const d=`${l.getLanguageId()}/${a.textLabel}`;this._cache.set(d,{touch:this._seq++,type:a.completion.kind,insertText:a.completion.insertText})}select(l,r,a){if(a.length===0)return 0;const d=l.getLineContent(r.lineNumber).substr(r.column-10,r.column-1);if(/\s$/.test(d))return super.select(l,r,a);const m=a[0].score[0];let h=-1,C=-1,b=-1;for(let w=0;w<a.length&&a[w].score[0]===m;w++){const S=`${l.getLanguageId()}/${a[w].textLabel}`,D=this._cache.peek(S);if(D&&D.touch>b&&D.type===a[w].completion.kind&&D.insertText===a[w].completion.insertText&&(b=D.touch,C=w),a[w].completion.preselect&&h===-1)return h=w}return C!==-1?C:h!==-1?h:0}toJSON(){return this._cache.toJSON()}fromJSON(l){this._cache.clear();const r=0;for(const[a,d]of l)d.touch=r,d.type=typeof d.type=="number"?d.type:y.CompletionItemKinds.fromString(d.type),this._cache.set(a,d);this._seq=this._cache.size}}e.LRUMemory=i;class o extends s{constructor(){super("recentlyUsedByPrefix"),this._trie=L.TernarySearchTree.forStrings(),this._seq=0}memorize(l,r,a){const{word:d}=l.getWordUntilPosition(r),m=`${l.getLanguageId()}/${d}`;this._trie.set(m,{type:a.completion.kind,insertText:a.completion.insertText,touch:this._seq++})}select(l,r,a){const{word:d}=l.getWordUntilPosition(r);if(!d)return super.select(l,r,a);const m=`${l.getLanguageId()}/${d}`;let h=this._trie.get(m);if(h||(h=this._trie.findSubstr(m)),h)for(let C=0;C<a.length;C++){const{kind:b,insertText:w}=a[C].completion;if(b===h.type&&w===h.insertText)return C}return super.select(l,r,a)}toJSON(){const l=[];return this._trie.forEach((r,a)=>l.push([a,r])),l.sort((r,a)=>-(r[1].touch-a[1].touch)).forEach((r,a)=>r[1].touch=a),l.slice(0,200)}fromJSON(l){if(this._trie.clear(),l.length>0){this._seq=l[0][1].touch+1;for(const[r,a]of l)a.type=typeof a.type=="number"?a.type:y.CompletionItemKinds.fromString(a.type),this._trie.set(r,a)}}}e.PrefixMemory=o;let g=class{static{n=this}static{this._strategyCtors=new Map([["recentlyUsedByPrefix",o],["recentlyUsed",i],["first",t]])}static{this._storagePrefix="suggest/memories"}constructor(l,r){this._storageService=l,this._configService=r,this._disposables=new k.DisposableStore,this._persistSoon=new c.RunOnceScheduler(()=>this._saveState(),500),this._disposables.add(l.onWillSaveState(a=>{a.reason===p.WillSaveStateReason.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(l,r,a){this._withStrategy(l,r).memorize(l,r,a),this._persistSoon.schedule()}select(l,r,a){return this._withStrategy(l,r).select(l,r,a)}_withStrategy(l,r){const a=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:l.getLanguageIdAtPosition(r.lineNumber,r.column),resource:l.uri});if(this._strategy?.name!==a){this._saveState();const d=n._strategyCtors.get(a)||t;this._strategy=new d;try{const h=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,C=this._storageService.get(`${n._storagePrefix}/${a}`,h);C&&this._strategy.fromJSON(JSON.parse(C))}catch{}}return this._strategy}_saveState(){if(this._strategy){const r=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,a=JSON.stringify(this._strategy);this._storageService.store(`${n._storagePrefix}/${this._strategy.name}`,a,r,1)}}};e.SuggestMemoryService=g,e.SuggestMemoryService=g=n=De([he(0,p.IStorageService),he(1,f.IConfigurationService)],g),e.ISuggestMemoryService=(0,v.createDecorator)("ISuggestMemories"),(0,_.registerSingleton)(e.ISuggestMemoryService,g,1)}),define(oe[402],re([1,0,14,6,2,29,24,12,41,100,13,3,31]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s){"use strict";var t,i;Object.defineProperty(e,"__esModule",{value:!0}),e.MenuService=void 0,e.createConfigureKeybindingAction=d;let o=class{constructor(h,C,b){this._commandService=h,this._keybindingService=C,this._hiddenStates=new g(b)}createMenu(h,C,b){return new r(h,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...b},this._commandService,this._keybindingService,C)}getMenuActions(h,C,b){const w=new r(h,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...b},this._commandService,this._keybindingService,C),S=w.getActions(b);return w.dispose(),S}resetHiddenStates(h){this._hiddenStates.reset(h)}};e.MenuService=o,e.MenuService=o=De([he(0,y.ICommandService),he(1,s.IKeybindingService),he(2,v.IStorageService)],o);let g=class{static{t=this}static{this._key="menu.hiddenCommands"}constructor(h){this._storageService=h,this._disposables=new E.DisposableStore,this._onDidChange=new k.Emitter,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const C=h.get(t._key,0,"{}");this._data=JSON.parse(C)}catch{this._data=Object.create(null)}this._disposables.add(h.onDidChangeValue(0,t._key,this._disposables)(()=>{if(!this._ignoreChangeEvent)try{const C=h.get(t._key,0,"{}");this._data=JSON.parse(C)}catch(C){console.log("FAILED to read storage after UPDATE",C)}this._onDidChange.fire()}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(h,C){return this._hiddenByDefaultCache.get(`${h.id}/${C}`)??!1}setDefaultState(h,C,b){this._hiddenByDefaultCache.set(`${h.id}/${C}`,b)}isHidden(h,C){const b=this._isHiddenByDefault(h,C),w=this._data[h.id]?.includes(C)??!1;return b?!w:w}updateHidden(h,C,b){this._isHiddenByDefault(h,C)&&(b=!b);const S=this._data[h.id];if(b)S?S.indexOf(C)<0&&S.push(C):this._data[h.id]=[C];else if(S){const D=S.indexOf(C);D>=0&&(0,p.removeFastWithoutKeepingOrder)(S,D),S.length===0&&delete this._data[h.id]}this._persist()}reset(h){if(h===void 0)this._data=Object.create(null),this._persist();else{for(const{id:C}of h)this._data[C]&&delete this._data[C];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const h=JSON.stringify(this._data);this._storageService.store(t._key,h,0,0)}finally{this._ignoreChangeEvent=!1}}};g=t=De([he(0,v.IStorageService)],g);class u{constructor(h,C){this._id=h,this._collectContextKeysForSubmenus=C,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const h=this._sort(L.MenuRegistry.getMenuItems(this._id));let C;for(const b of h){const w=b.group||"";(!C||C[0]!==w)&&(C=[w,[]],this._menuGroups.push(C)),C[1].push(b),this._collectContextKeys(b)}}_sort(h){return h}_collectContextKeys(h){if(u._fillInKbExprKeys(h.when,this._structureContextKeys),(0,L.isIMenuItem)(h)){if(h.command.precondition&&u._fillInKbExprKeys(h.command.precondition,this._preconditionContextKeys),h.command.toggled){const C=h.command.toggled.condition||h.command.toggled;u._fillInKbExprKeys(C,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&L.MenuRegistry.getMenuItems(h.submenu).forEach(this._collectContextKeys,this)}static _fillInKbExprKeys(h,C){if(h)for(const b of h.keys())C.add(b)}}let l=i=class extends u{constructor(h,C,b,w,S,D){super(h,b),this._hiddenStates=C,this._commandService=w,this._keybindingService=S,this._contextKeyService=D,this.refresh()}createActionGroups(h){const C=[];for(const b of this._menuGroups){const[w,S]=b;let D;for(const I of S)if(this._contextKeyService.contextMatchesRules(I.when)){const T=(0,L.isIMenuItem)(I);T&&this._hiddenStates.setDefaultState(this._id,I.command.id,!!I.isHiddenByDefault);const M=a(this._id,T?I.command:I,this._hiddenStates);if(T){const A=d(this._commandService,this._keybindingService,I.command.id,I.when);(D??=[]).push(new L.MenuItemAction(I.command,I.alt,h,M,A,this._contextKeyService,this._commandService))}else{const A=new i(I.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(h),R=_.Separator.join(...A.map(N=>N[1]));R.length>0&&(D??=[]).push(new L.SubmenuItemAction(I,M,R))}}D&&D.length>0&&C.push([w,D])}return C}_sort(h){return h.sort(i._compareMenuItems)}static _compareMenuItems(h,C){const b=h.group,w=C.group;if(b!==w){if(b){if(!w)return-1}else return 1;if(b==="navigation")return-1;if(w==="navigation")return 1;const I=b.localeCompare(w);if(I!==0)return I}const S=h.order||0,D=C.order||0;return S<D?-1:S>D?1:i._compareTitles((0,L.isIMenuItem)(h)?h.command.title:h.title,(0,L.isIMenuItem)(C)?C.command.title:C.title)}static _compareTitles(h,C){const b=typeof h=="string"?h:h.original,w=typeof C=="string"?C:C.original;return b.localeCompare(w)}};l=i=De([he(3,y.ICommandService),he(4,s.IKeybindingService),he(5,f.IContextKeyService)],l);let r=class{constructor(h,C,b,w,S,D){this._disposables=new E.DisposableStore,this._menuInfo=new l(h,C,b.emitEventsForSubmenuChanges,w,S,D);const I=new c.RunOnceScheduler(()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})},b.eventDebounceDelay);this._disposables.add(I),this._disposables.add(L.MenuRegistry.onDidChangeMenu(R=>{R.has(h)&&I.schedule()}));const T=this._disposables.add(new E.DisposableStore),M=R=>{let N=!1,O=!1,x=!1;for(const F of R)if(N=N||F.isStructuralChange,O=O||F.isEnablementChange,x=x||F.isToggleChange,N&&O&&x)break;return{menu:this,isStructuralChange:N,isEnablementChange:O,isToggleChange:x}},A=()=>{T.add(D.onDidChangeContext(R=>{const N=R.affectsSome(this._menuInfo.structureContextKeys),O=R.affectsSome(this._menuInfo.preconditionContextKeys),x=R.affectsSome(this._menuInfo.toggledContextKeys);(N||O||x)&&this._onDidChange.fire({menu:this,isStructuralChange:N,isEnablementChange:O,isToggleChange:x})})),T.add(C.onDidChange(R=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})}))};this._onDidChange=new k.DebounceEmitter({onWillAddFirstListener:A,onDidRemoveLastListener:T.clear.bind(T),delay:b.eventDebounceDelay,merge:M}),this.onDidChange=this._onDidChange.event}getActions(h){return this._menuInfo.createActionGroups(h)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};r=De([he(3,y.ICommandService),he(4,s.IKeybindingService),he(5,f.IContextKeyService)],r);function a(m,h,C){const b=(0,L.isISubmenuItem)(h)?h.submenu.id:h.id,w=typeof h.title=="string"?h.title:h.title.value,S=(0,_.toAction)({id:`hide/${m.id}/${b}`,label:(0,n.localize)(1165,"Hide '{0}'",w),run(){C.updateHidden(m,b,!0)}}),D=(0,_.toAction)({id:`toggle/${m.id}/${b}`,label:w,get checked(){return!C.isHidden(m,b)},run(){C.updateHidden(m,b,!!this.checked)}});return{hide:S,toggle:D,get isHidden(){return!D.checked}}}function d(m,h,C,b=void 0,w=!0){return(0,_.toAction)({id:`configureKeybinding/${C}`,label:(0,n.localize)(1166,"Configure Keybinding"),enabled:w,run(){const D=!!!h.lookupKeybinding(C)&&b?b.serialize():void 0;m.executeCommand("workbench.action.openGlobalKeybindings",`@command:${C}`+(D?` +when:${D}`:""))}})}}),define(oe[66],re([1,0,7]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITelemetryService=void 0,e.ITelemetryService=(0,c.createDecorator)("telemetryService")}),define(oe[15],re([1,0,3,22,35,9,44,78,29,24,12,7,121,38,66,19,61,5]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectAllCommand=e.RedoCommand=e.UndoCommand=e.EditorExtensionsRegistry=e.EditorAction2=e.MultiEditorAction=e.EditorAction=e.EditorCommand=e.ProxyCommand=e.MultiCommand=e.Command=void 0,e.registerModelAndPositionCommand=b,e.registerEditorCommand=w,e.registerEditorAction=S,e.registerMultiEditorAction=D,e.registerInstantiatedEditorAction=I,e.registerEditorContribution=T;class l{constructor(x){this.id=x.id,this.precondition=x.precondition,this._kbOpts=x.kbOpts,this._menuOpts=x.menuOpts,this.metadata=x.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const x=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const F of x){let W=F.kbExpr;this.precondition&&(W?W=p.ContextKeyExpr.and(W,this.precondition):W=this.precondition);const z={id:this.id,weight:F.weight,args:F.args,when:W,primary:F.primary,secondary:F.secondary,win:F.win,linux:F.linux,mac:F.mac};s.KeybindingsRegistry.registerKeybindingRule(z)}}v.CommandsRegistry.registerCommand({id:this.id,handler:(x,F)=>this.runCommand(x,F),metadata:this.metadata})}_registerMenuItem(x){_.MenuRegistry.appendMenuItem(x.menuId,{group:x.group,command:{id:this.id,title:x.title,icon:x.icon,precondition:this.precondition},when:x.when,order:x.order})}}e.Command=l;class r extends l{constructor(){super(...arguments),this._implementations=[]}addImplementation(x,F,W,z){return this._implementations.push({priority:x,name:F,implementation:W,when:z}),this._implementations.sort((q,H)=>H.priority-q.priority),{dispose:()=>{for(let q=0;q<this._implementations.length;q++)if(this._implementations[q].implementation===W){this._implementations.splice(q,1);return}}}}runCommand(x,F){const W=x.get(g.ILogService),z=x.get(p.IContextKeyService);W.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const q of this._implementations){if(q.when){const K=z.getContext((0,u.getActiveElement)());if(!q.when.evaluate(K))continue}const H=q.implementation(x,F);if(H)return W.trace(`Command '${this.id}' was handled by '${q.name}'.`),typeof H=="boolean"?void 0:H}W.trace(`The Command '${this.id}' was not handled by any implementation.`)}}e.MultiCommand=r;class a extends l{constructor(x,F){super(F),this.command=x}runCommand(x,F){return this.command.runCommand(x,F)}}e.ProxyCommand=a;class d extends l{static bindToContribution(x){return class extends d{constructor(W){super(W),this._callback=W.handler}runEditorCommand(W,z,q){const H=x(z);H&&this._callback(H,q)}}}static runEditorCommand(x,F,W,z){const q=x.get(E.ICodeEditorService),H=q.getFocusedCodeEditor()||q.getActiveCodeEditor();if(H)return H.invokeWithinContext(K=>{if(K.get(p.IContextKeyService).contextMatchesRules(W??void 0))return z(K,H,F)})}runCommand(x,F){return d.runEditorCommand(x,F,this.precondition,(W,z,q)=>this.runEditorCommand(W,z,q))}}e.EditorCommand=d;class m extends d{static convertOptions(x){let F;Array.isArray(x.menuOpts)?F=x.menuOpts:x.menuOpts?F=[x.menuOpts]:F=[];function W(z){return z.menuId||(z.menuId=_.MenuId.EditorContext),z.title||(z.title=x.label),z.when=p.ContextKeyExpr.and(x.precondition,z.when),z}return Array.isArray(x.contextMenuOpts)?F.push(...x.contextMenuOpts.map(W)):x.contextMenuOpts&&F.push(W(x.contextMenuOpts)),x.menuOpts=F,x}constructor(x){super(m.convertOptions(x)),this.label=x.label,this.alias=x.alias}runEditorCommand(x,F,W){return this.reportTelemetry(x,F),this.run(x,F,W||{})}reportTelemetry(x,F){x.get(i.ITelemetryService).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}e.EditorAction=m;class h extends m{constructor(){super(...arguments),this._implementations=[]}addImplementation(x,F){return this._implementations.push([x,F]),this._implementations.sort((W,z)=>z[0]-W[0]),{dispose:()=>{for(let W=0;W<this._implementations.length;W++)if(this._implementations[W][1]===F){this._implementations.splice(W,1);return}}}}run(x,F,W){for(const z of this._implementations){const q=z[1](x,F,W);if(q)return typeof q=="boolean"?void 0:q}}}e.MultiEditorAction=h;class C extends _.Action2{run(x,...F){const W=x.get(E.ICodeEditorService),z=W.getFocusedCodeEditor()||W.getActiveCodeEditor();if(z)return z.invokeWithinContext(q=>{const H=q.get(p.IContextKeyService),K=q.get(g.ILogService);if(!H.contextMatchesRules(this.desc.precondition??void 0)){K.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize());return}return this.runEditorCommand(q,z,...F)})}}e.EditorAction2=C;function b(O,x){v.CommandsRegistry.registerCommand(O,function(F,...W){const z=F.get(n.IInstantiationService),[q,H]=W;(0,o.assertType)(k.URI.isUri(q)),(0,o.assertType)(L.Position.isIPosition(H));const K=F.get(y.IModelService).getModel(q);if(K){const U=L.Position.lift(H);return z.invokeFunction(x,K,U,...W.slice(2))}return F.get(f.ITextModelService).createModelReference(q).then(U=>new Promise((Y,Q)=>{try{const X=z.invokeFunction(x,U.object.textEditorModel,L.Position.lift(H),W.slice(2));Y(X)}catch(X){Q(X)}}).finally(()=>{U.dispose()}))})}function w(O){return R.INSTANCE.registerEditorCommand(O),O}function S(O){const x=new O;return R.INSTANCE.registerEditorAction(x),x}function D(O){return R.INSTANCE.registerEditorAction(O),O}function I(O){R.INSTANCE.registerEditorAction(O)}function T(O,x,F){R.INSTANCE.registerEditorContribution(O,x,F)}var M;(function(O){function x(H){return R.INSTANCE.getEditorCommand(H)}O.getEditorCommand=x;function F(){return R.INSTANCE.getEditorActions()}O.getEditorActions=F;function W(){return R.INSTANCE.getEditorContributions()}O.getEditorContributions=W;function z(H){return R.INSTANCE.getEditorContributions().filter(K=>H.indexOf(K.id)>=0)}O.getSomeEditorContributions=z;function q(){return R.INSTANCE.getDiffEditorContributions()}O.getDiffEditorContributions=q})(M||(e.EditorExtensionsRegistry=M={}));const A={EditorCommonContributions:"editor.contributions"};class R{static{this.INSTANCE=new R}constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(x,F,W){this.editorContributions.push({id:x,ctor:F,instantiation:W})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(x){x.register(),this.editorActions.push(x)}getEditorActions(){return this.editorActions}registerEditorCommand(x){x.register(),this.editorCommands[x.id]=x}getEditorCommand(x){return this.editorCommands[x]||null}}t.Registry.add(A.EditorCommonContributions,R.INSTANCE);function N(O){return O.register(),O}e.UndoCommand=N(new r({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:_.MenuId.MenubarEditMenu,group:"1_do",title:c.localize(1849,"&&Undo"),order:1},{menuId:_.MenuId.CommandPalette,group:"",title:c.localize(1850,"Undo"),order:1}]})),N(new a(e.UndoCommand,{id:"default:undo",precondition:void 0})),e.RedoCommand=N(new r({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:_.MenuId.MenubarEditMenu,group:"1_do",title:c.localize(1851,"&&Redo"),order:2},{menuId:_.MenuId.CommandPalette,group:"",title:c.localize(1852,"Redo"),order:1}]})),N(new a(e.RedoCommand,{id:"default:redo",precondition:void 0})),e.SelectAllCommand=N(new r({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:_.MenuId.MenubarSelectionMenu,group:"1_basic",title:c.localize(1853,"&&Select All"),order:1},{menuId:_.MenuId.CommandPalette,group:"",title:c.localize(1854,"Select All"),order:1}]}))}),define(oe[212],re([1,0,3,64,19,48,15,35,561,76,233,234,275,9,4,20,12,121,5,211]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoreEditingCommands=e.CoreNavigationCommands=e.RevealLine_=e.EditorScroll_=e.CoreEditorCommand=void 0;const a=0;class d extends y.EditorCommand{runEditorCommand(R,N,O){const x=N._getViewModel();x&&this.runCoreEditorCommand(x,O||{})}}e.CoreEditorCommand=d;var m;(function(A){const R=function(O){if(!E.isObject(O))return!1;const x=O;return!(!E.isString(x.to)||!E.isUndefined(x.by)&&!E.isString(x.by)||!E.isUndefined(x.value)&&!E.isNumber(x.value)||!E.isUndefined(x.revealCursor)&&!E.isBoolean(x.revealCursor))};A.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:R,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},A.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},A.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"};function N(O){let x;switch(O.to){case A.RawDirection.Up:x=1;break;case A.RawDirection.Right:x=2;break;case A.RawDirection.Down:x=3;break;case A.RawDirection.Left:x=4;break;default:return null}let F;switch(O.by){case A.RawUnit.Line:F=1;break;case A.RawUnit.WrappedLine:F=2;break;case A.RawUnit.Page:F=3;break;case A.RawUnit.HalfPage:F=4;break;case A.RawUnit.Editor:F=5;break;case A.RawUnit.Column:F=6;break;default:F=2}const W=Math.floor(O.value||1),z=!!O.revealCursor;return{direction:x,unit:F,value:W,revealCursor:z,select:!!O.select}}A.parse=N})(m||(e.EditorScroll_=m={}));var h;(function(A){const R=function(N){if(!E.isObject(N))return!1;const O=N;return!(!E.isNumber(O.lineNumber)&&!E.isString(O.lineNumber)||!E.isUndefined(O.at)&&!E.isString(O.at))};A.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed.\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:R,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},A.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(h||(e.RevealLine_=h={}));class C{constructor(R){R.addImplementation(1e4,"code-editor",(N,O)=>{const x=N.get(f.ICodeEditorService).getFocusedCodeEditor();return x&&x.hasTextFocus()?this._runEditorCommand(N,x,O):!1}),R.addImplementation(1e3,"generic-dom-input-textarea",(N,O)=>{const x=(0,l.getActiveElement)();return x&&["input","textarea"].indexOf(x.tagName.toLowerCase())>=0?(this.runDOMCommand(x),!0):!1}),R.addImplementation(0,"generic-dom",(N,O)=>{const x=N.get(f.ICodeEditorService).getActiveCodeEditor();return x?(x.focus(),this._runEditorCommand(N,x,O)):!1})}_runEditorCommand(R,N,O){const x=this.runEditorCommand(R,N,O);return x||!0}}var b;(function(A){class R extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){if(!ue.position)return;se.model.pushStackElement(),se.setCursorStates(ue.source,3,[n.CursorMoveCommands.moveTo(se,se.getPrimaryCursorState(),this._inSelectionMode,ue.position,ue.viewPosition)])&&ue.revealType!==2&&se.revealAllCursors(ue.source,!0,!0)}}A.MoveTo=(0,y.registerEditorCommand)(new R({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),A.MoveToSelect=(0,y.registerEditorCommand)(new R({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class N extends d{runCoreEditorCommand(se,ue){se.model.pushStackElement();const ge=this._getColumnSelectResult(se,se.getPrimaryCursorState(),se.getCursorColumnSelectData(),ue);ge!==null&&(se.setCursorStates(ue.source,3,ge.viewStates.map(pe=>v.CursorState.fromViewState(pe))),se.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:ge.fromLineNumber,fromViewVisualColumn:ge.fromVisualColumn,toViewLineNumber:ge.toLineNumber,toViewVisualColumn:ge.toVisualColumn}),ge.reversed?se.revealTopMostCursor(ue.source):se.revealBottomMostCursor(ue.source))}}A.ColumnSelect=(0,y.registerEditorCommand)(new class extends N{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(te,se,ue,ge){if(typeof ge.position>"u"||typeof ge.viewPosition>"u"||typeof ge.mouseColumn>"u")return null;const pe=te.model.validatePosition(ge.position),ce=te.coordinatesConverter.validateViewPosition(new t.Position(ge.viewPosition.lineNumber,ge.viewPosition.column),pe),ie=ge.doColumnSelect?ue.fromViewLineNumber:ce.lineNumber,ne=ge.doColumnSelect?ue.fromViewVisualColumn:ge.mouseColumn-1;return _.ColumnSelection.columnSelect(te.cursorConfig,te,ie,ne,ce.lineNumber,ge.mouseColumn-1)}}),A.CursorColumnSelectLeft=(0,y.registerEditorCommand)(new class extends N{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(te,se,ue,ge){return _.ColumnSelection.columnSelectLeft(te.cursorConfig,te,ue)}}),A.CursorColumnSelectRight=(0,y.registerEditorCommand)(new class extends N{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(te,se,ue,ge){return _.ColumnSelection.columnSelectRight(te.cursorConfig,te,ue)}});class O extends N{constructor(se){super(se),this._isPaged=se.isPaged}_getColumnSelectResult(se,ue,ge,pe){return _.ColumnSelection.columnSelectUp(se.cursorConfig,se,ge,this._isPaged)}}A.CursorColumnSelectUp=(0,y.registerEditorCommand)(new O({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3600,linux:{primary:0}}})),A.CursorColumnSelectPageUp=(0,y.registerEditorCommand)(new O({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3595,linux:{primary:0}}}));class x extends N{constructor(se){super(se),this._isPaged=se.isPaged}_getColumnSelectResult(se,ue,ge,pe){return _.ColumnSelection.columnSelectDown(se.cursorConfig,se,ge,this._isPaged)}}A.CursorColumnSelectDown=(0,y.registerEditorCommand)(new x({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3602,linux:{primary:0}}})),A.CursorColumnSelectPageDown=(0,y.registerEditorCommand)(new x({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3596,linux:{primary:0}}}));class F extends d{constructor(){super({id:"cursorMove",precondition:void 0,metadata:n.CursorMove.metadata})}runCoreEditorCommand(se,ue){const ge=n.CursorMove.parse(ue);ge&&this._runCursorMove(se,ue.source,ge)}_runCursorMove(se,ue,ge){se.model.pushStackElement(),se.setCursorStates(ue,3,F._move(se,se.getCursorStates(),ge)),se.revealAllCursors(ue,!0)}static _move(se,ue,ge){const pe=ge.select,ce=ge.value;switch(ge.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return n.CursorMoveCommands.simpleMove(se,ue,ge.direction,pe,ce,ge.unit);case 11:case 13:case 12:case 14:return n.CursorMoveCommands.viewportMove(se,ue,ge.direction,pe,ce);default:return null}}}A.CursorMoveImpl=F,A.CursorMove=(0,y.registerEditorCommand)(new F);class W extends d{constructor(se){super(se),this._staticArgs=se.args}runCoreEditorCommand(se,ue){let ge=this._staticArgs;this._staticArgs.value===-1&&(ge={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:ue.pageSize||se.cursorConfig.pageSize}),se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.simpleMove(se,se.getCursorStates(),ge.direction,ge.select,ge.value,ge.unit)),se.revealAllCursors(ue.source,!0)}}A.CursorLeft=(0,y.registerEditorCommand)(new W({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),A.CursorLeftSelect=(0,y.registerEditorCommand)(new W({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1039}})),A.CursorRight=(0,y.registerEditorCommand)(new W({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),A.CursorRightSelect=(0,y.registerEditorCommand)(new W({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1041}})),A.CursorUp=(0,y.registerEditorCommand)(new W({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),A.CursorUpSelect=(0,y.registerEditorCommand)(new W({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),A.CursorPageUp=(0,y.registerEditorCommand)(new W({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:11}})),A.CursorPageUpSelect=(0,y.registerEditorCommand)(new W({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1035}})),A.CursorDown=(0,y.registerEditorCommand)(new W({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),A.CursorDownSelect=(0,y.registerEditorCommand)(new W({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),A.CursorPageDown=(0,y.registerEditorCommand)(new W({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:12}})),A.CursorPageDownSelect=(0,y.registerEditorCommand)(new W({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1036}})),A.CreateCursor=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(te,se){if(!se.position)return;let ue;se.wholeLine?ue=n.CursorMoveCommands.line(te,te.getPrimaryCursorState(),!1,se.position,se.viewPosition):ue=n.CursorMoveCommands.moveTo(te,te.getPrimaryCursorState(),!1,se.position,se.viewPosition);const ge=te.getCursorStates();if(ge.length>1){const pe=ue.modelState?ue.modelState.position:null,ce=ue.viewState?ue.viewState.position:null;for(let ie=0,ne=ge.length;ie<ne;ie++){const J=ge[ie];if(!(pe&&!J.modelState.selection.containsPosition(pe))&&!(ce&&!J.viewState.selection.containsPosition(ce))){ge.splice(ie,1),te.model.pushStackElement(),te.setCursorStates(se.source,3,ge);return}}}ge.push(ue),te.model.pushStackElement(),te.setCursorStates(se.source,3,ge)}}),A.LastCursorMoveToSelect=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(te,se){if(!se.position)return;const ue=te.getLastAddedCursorIndex(),ge=te.getCursorStates(),pe=ge.slice(0);pe[ue]=n.CursorMoveCommands.moveTo(te,ge[ue],!0,se.position,se.viewPosition),te.model.pushStackElement(),te.setCursorStates(se.source,3,pe)}});class z extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.moveToBeginningOfLine(se,se.getCursorStates(),this._inSelectionMode)),se.revealAllCursors(ue.source,!0)}}A.CursorHome=(0,y.registerEditorCommand)(new z({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),A.CursorHomeSelect=(0,y.registerEditorCommand)(new z({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class q extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,this._exec(se.getCursorStates())),se.revealAllCursors(ue.source,!0)}_exec(se){const ue=[];for(let ge=0,pe=se.length;ge<pe;ge++){const ce=se[ge],ie=ce.modelState.position.lineNumber;ue[ge]=v.CursorState.fromModelState(ce.modelState.move(this._inSelectionMode,ie,1,0))}return ue}}A.CursorLineStart=(0,y.registerEditorCommand)(new q({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:287}}})),A.CursorLineStartSelect=(0,y.registerEditorCommand)(new q({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1311}}}));class H extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.moveToEndOfLine(se,se.getCursorStates(),this._inSelectionMode,ue.sticky||!1)),se.revealAllCursors(ue.source,!0)}}A.CursorEnd=(0,y.registerEditorCommand)(new H({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:c.localize(1855,"Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),A.CursorEndSelect=(0,y.registerEditorCommand)(new H({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:c.localize(1856,"Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class K extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,this._exec(se,se.getCursorStates())),se.revealAllCursors(ue.source,!0)}_exec(se,ue){const ge=[];for(let pe=0,ce=ue.length;pe<ce;pe++){const ie=ue[pe],ne=ie.modelState.position.lineNumber,J=se.model.getLineMaxColumn(ne);ge[pe]=v.CursorState.fromModelState(ie.modelState.move(this._inSelectionMode,ne,J,0))}return ge}}A.CursorLineEnd=(0,y.registerEditorCommand)(new K({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:291}}})),A.CursorLineEndSelect=(0,y.registerEditorCommand)(new K({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1315}}}));class U extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.moveToBeginningOfBuffer(se,se.getCursorStates(),this._inSelectionMode)),se.revealAllCursors(ue.source,!0)}}A.CursorTop=(0,y.registerEditorCommand)(new U({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2062,mac:{primary:2064}}})),A.CursorTopSelect=(0,y.registerEditorCommand)(new U({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3086,mac:{primary:3088}}}));class Y extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.moveToEndOfBuffer(se,se.getCursorStates(),this._inSelectionMode)),se.revealAllCursors(ue.source,!0)}}A.CursorBottom=(0,y.registerEditorCommand)(new Y({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2061,mac:{primary:2066}}})),A.CursorBottomSelect=(0,y.registerEditorCommand)(new Y({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3085,mac:{primary:3090}}}));class Q extends d{constructor(){super({id:"editorScroll",precondition:void 0,metadata:m.metadata})}determineScrollMethod(se){const ue=[6],ge=[1,2,3,4,5,6],pe=[4,2],ce=[1,3];return ue.includes(se.unit)&&pe.includes(se.direction)?this._runHorizontalEditorScroll.bind(this):ge.includes(se.unit)&&ce.includes(se.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(se,ue){const ge=m.parse(ue);if(!ge)return;const pe=this.determineScrollMethod(ge);pe&&pe(se,ue.source,ge)}_runVerticalEditorScroll(se,ue,ge){const pe=this._computeDesiredScrollTop(se,ge);if(ge.revealCursor){const ce=se.getCompletelyVisibleViewRangeAtScrollTop(pe);se.setCursorStates(ue,3,[n.CursorMoveCommands.findPositionInViewportIfOutside(se,se.getPrimaryCursorState(),ce,ge.select)])}se.viewLayout.setScrollPosition({scrollTop:pe},0)}_computeDesiredScrollTop(se,ue){if(ue.unit===1){const ce=se.viewLayout.getFutureViewport(),ie=se.getCompletelyVisibleViewRangeAtScrollTop(ce.top),ne=se.coordinatesConverter.convertViewRangeToModelRange(ie);let J;ue.direction===1?J=Math.max(1,ne.startLineNumber-ue.value):J=Math.min(se.model.getLineCount(),ne.startLineNumber+ue.value);const B=se.coordinatesConverter.convertModelPositionToViewPosition(new t.Position(J,1));return se.viewLayout.getVerticalOffsetForLineNumber(B.lineNumber)}if(ue.unit===5){let ce=0;return ue.direction===3&&(ce=se.model.getLineCount()-se.cursorConfig.pageSize),se.viewLayout.getVerticalOffsetForLineNumber(ce)}let ge;ue.unit===3?ge=se.cursorConfig.pageSize*ue.value:ue.unit===4?ge=Math.round(se.cursorConfig.pageSize/2)*ue.value:ge=ue.value;const pe=(ue.direction===1?-1:1)*ge;return se.viewLayout.getCurrentScrollTop()+pe*se.cursorConfig.lineHeight}_runHorizontalEditorScroll(se,ue,ge){const pe=this._computeDesiredScrollLeft(se,ge);se.viewLayout.setScrollPosition({scrollLeft:pe},0)}_computeDesiredScrollLeft(se,ue){const ge=(ue.direction===4?-1:1)*ue.value;return se.viewLayout.getCurrentScrollLeft()+ge*se.cursorConfig.typicalHalfwidthCharacterWidth}}A.EditorScrollImpl=Q,A.EditorScroll=(0,y.registerEditorCommand)(new Q),A.ScrollLineUp=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Up,by:m.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollPageUp=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Up,by:m.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollEditorTop=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Up,by:m.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollLineDown=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Down,by:m.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollPageDown=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Down,by:m.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollEditorBottom=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Down,by:m.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollLeft=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Left,by:m.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollRight=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Right,by:m.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:se.source})}});class X extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){ue.position&&(se.model.pushStackElement(),se.setCursorStates(ue.source,3,[n.CursorMoveCommands.word(se,se.getPrimaryCursorState(),this._inSelectionMode,ue.position)]),ue.revealType!==2&&se.revealAllCursors(ue.source,!0,!0))}}A.WordSelect=(0,y.registerEditorCommand)(new X({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),A.WordSelectDrag=(0,y.registerEditorCommand)(new X({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),A.LastCursorWordSelect=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(te,se){if(!se.position)return;const ue=te.getLastAddedCursorIndex(),ge=te.getCursorStates(),pe=ge.slice(0),ce=ge[ue];pe[ue]=n.CursorMoveCommands.word(te,ce,ce.modelState.hasSelection(),se.position),te.model.pushStackElement(),te.setCursorStates(se.source,3,pe)}});class G extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){ue.position&&(se.model.pushStackElement(),se.setCursorStates(ue.source,3,[n.CursorMoveCommands.line(se,se.getPrimaryCursorState(),this._inSelectionMode,ue.position,ue.viewPosition)]),ue.revealType!==2&&se.revealAllCursors(ue.source,!1,!0))}}A.LineSelect=(0,y.registerEditorCommand)(new G({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),A.LineSelectDrag=(0,y.registerEditorCommand)(new G({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class P extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){if(!ue.position)return;const ge=se.getLastAddedCursorIndex(),pe=se.getCursorStates(),ce=pe.slice(0);ce[ge]=n.CursorMoveCommands.line(se,pe[ge],this._inSelectionMode,ue.position,ue.viewPosition),se.model.pushStackElement(),se.setCursorStates(ue.source,3,ce)}}A.LastCursorLineSelect=(0,y.registerEditorCommand)(new P({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),A.LastCursorLineSelectDrag=(0,y.registerEditorCommand)(new P({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),A.CancelSelection=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"cancelSelection",precondition:o.EditorContextKeys.hasNonEmptySelection,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(te,se){te.model.pushStackElement(),te.setCursorStates(se.source,3,[n.CursorMoveCommands.cancelSelection(te,te.getPrimaryCursorState())]),te.revealAllCursors(se.source,!0)}}),A.RemoveSecondaryCursors=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"removeSecondaryCursors",precondition:o.EditorContextKeys.hasMultipleSelections,kbOpts:{weight:a+1,kbExpr:o.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(te,se){te.model.pushStackElement(),te.setCursorStates(se.source,3,[te.getPrimaryCursorState()]),te.revealAllCursors(se.source,!0),(0,L.status)(c.localize(1857,"Removed secondary cursors"))}}),A.RevealLine=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"revealLine",precondition:void 0,metadata:h.metadata})}runCoreEditorCommand(te,se){const ue=se,ge=ue.lineNumber||0;let pe=typeof ge=="number"?ge+1:parseInt(ge)+1;pe<1&&(pe=1);const ce=te.model.getLineCount();pe>ce&&(pe=ce);const ie=new i.Range(pe,1,pe,te.model.getLineMaxColumn(pe));let ne=0;if(ue.at)switch(ue.at){case h.RawAtArgument.Top:ne=3;break;case h.RawAtArgument.Center:ne=1;break;case h.RawAtArgument.Bottom:ne=4;break;default:break}const J=te.coordinatesConverter.convertModelRangeToViewRange(ie);te.revealRange(se.source,!1,J,ne,0)}}),A.SelectAll=new class extends C{constructor(){super(y.SelectAllCommand)}runDOMCommand(te){k.isFirefox&&(te.focus(),te.select()),te.ownerDocument.execCommand("selectAll")}runEditorCommand(te,se,ue){const ge=se._getViewModel();ge&&this.runCoreEditorCommand(ge,ue)}runCoreEditorCommand(te,se){te.model.pushStackElement(),te.setCursorStates("keyboard",3,[n.CursorMoveCommands.selectAll(te,te.getPrimaryCursorState())])}},A.SetSelection=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(te,se){se.selection&&(te.model.pushStackElement(),te.setCursorStates(se.source,3,[v.CursorState.fromModelSelection(se.selection)]))}})})(b||(e.CoreNavigationCommands=b={}));const w=g.ContextKeyExpr.and(o.EditorContextKeys.textInputFocus,o.EditorContextKeys.columnSelection);function S(A,R){u.KeybindingsRegistry.registerKeybindingRule({id:A,primary:R,when:w,weight:a+1})}S(b.CursorColumnSelectLeft.id,1039),S(b.CursorColumnSelectRight.id,1041),S(b.CursorColumnSelectUp.id,1040),S(b.CursorColumnSelectPageUp.id,1035),S(b.CursorColumnSelectDown.id,1042),S(b.CursorColumnSelectPageDown.id,1036);function D(A){return A.register(),A}var I;(function(A){class R extends y.EditorCommand{runEditorCommand(O,x,F){const W=x._getViewModel();W&&this.runCoreEditingCommand(x,W,F||{})}}A.CoreEditingCommand=R,A.LineBreakInsert=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"lineBreakInsert",precondition:o.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(N,O,x){N.pushUndoStop(),N.executeCommands(this.id,r.EnterOperation.lineBreakInsert(O.cursorConfig,O.model,O.getCursorStates().map(F=>F.modelState.selection)))}}),A.Outdent=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"outdent",precondition:o.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:g.ContextKeyExpr.and(o.EditorContextKeys.editorTextFocus,o.EditorContextKeys.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(N,O,x){N.pushUndoStop(),N.executeCommands(this.id,s.TypeOperations.outdent(O.cursorConfig,O.model,O.getCursorStates().map(F=>F.modelState.selection))),N.pushUndoStop()}}),A.Tab=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"tab",precondition:o.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:g.ContextKeyExpr.and(o.EditorContextKeys.editorTextFocus,o.EditorContextKeys.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(N,O,x){N.pushUndoStop(),N.executeCommands(this.id,s.TypeOperations.tab(O.cursorConfig,O.model,O.getCursorStates().map(F=>F.modelState.selection))),N.pushUndoStop()}}),A.DeleteLeft=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(N,O,x){const[F,W]=p.DeleteOperations.deleteLeft(O.getPrevEditOperationType(),O.cursorConfig,O.model,O.getCursorStates().map(z=>z.modelState.selection),O.getCursorAutoClosedCharacters());F&&N.pushUndoStop(),N.executeCommands(this.id,W),O.setPrevEditOperationType(2)}}),A.DeleteRight=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(N,O,x){const[F,W]=p.DeleteOperations.deleteRight(O.getPrevEditOperationType(),O.cursorConfig,O.model,O.getCursorStates().map(z=>z.modelState.selection));F&&N.pushUndoStop(),N.executeCommands(this.id,W),O.setPrevEditOperationType(3)}}),A.Undo=new class extends C{constructor(){super(y.UndoCommand)}runDOMCommand(N){N.ownerDocument.execCommand("undo")}runEditorCommand(N,O,x){if(!(!O.hasModel()||O.getOption(92)===!0))return O.getModel().undo()}},A.Redo=new class extends C{constructor(){super(y.RedoCommand)}runDOMCommand(N){N.ownerDocument.execCommand("redo")}runEditorCommand(N,O,x){if(!(!O.hasModel()||O.getOption(92)===!0))return O.getModel().redo()}}})(I||(e.CoreEditingCommands=I={}));class T extends y.Command{constructor(R,N,O){super({id:R,precondition:void 0,metadata:O}),this._handlerId=N}runCommand(R,N){const O=R.get(f.ICodeEditorService).getFocusedCodeEditor();O&&O.trigger("keyboard",this._handlerId,N)}}function M(A,R){D(new T("default:"+A,A)),D(new T(A,A,R))}M("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),M("replacePreviousChar"),M("compositionType"),M("compositionStart"),M("compositionEnd"),M("paste"),M("cut")}),define(oe[717],re([1,0,264,15]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerDecorationsContribution=void 0;let E=class{static{this.ID="editor.contrib.markerDecorations"}constructor(y,f){}dispose(){}};e.MarkerDecorationsContribution=E,e.MarkerDecorationsContribution=E=De([he(1,c.IMarkerDecorationsService)],E),(0,k.registerEditorContribution)(E.ID,E,0)}),define(oe[718],re([1,0,212,9,16]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewController=void 0;class L{constructor(f,_,v,p){this.configuration=f,this.viewModel=_,this.userInputEvents=v,this.commandDelegate=p}paste(f,_,v,p){this.commandDelegate.paste(f,_,v,p)}type(f){this.commandDelegate.type(f)}compositionType(f,_,v,p){this.commandDelegate.compositionType(f,_,v,p)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(f){c.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:f})}_validateViewColumn(f){const _=this.viewModel.getLineMinColumn(f.lineNumber);return f.column<_?new k.Position(f.lineNumber,_):f}_hasMulticursorModifier(f){switch(this.configuration.options.get(78)){case"altKey":return f.altKey;case"ctrlKey":return f.ctrlKey;case"metaKey":return f.metaKey;default:return!1}}_hasNonMulticursorModifier(f){switch(this.configuration.options.get(78)){case"altKey":return f.ctrlKey||f.metaKey;case"ctrlKey":return f.altKey||f.metaKey;case"metaKey":return f.ctrlKey||f.altKey;default:return!1}}dispatchMouse(f){const _=this.configuration.options,v=E.isLinux&&_.get(108),p=_.get(22);f.middleButton&&!v?this._columnSelect(f.position,f.mouseColumn,f.inSelectionMode):f.startedOnLineNumbers?this._hasMulticursorModifier(f)?f.inSelectionMode?this._lastCursorLineSelect(f.position,f.revealType):this._createCursor(f.position,!0):f.inSelectionMode?this._lineSelectDrag(f.position,f.revealType):this._lineSelect(f.position,f.revealType):f.mouseDownCount>=4?this._selectAll():f.mouseDownCount===3?this._hasMulticursorModifier(f)?f.inSelectionMode?this._lastCursorLineSelectDrag(f.position,f.revealType):this._lastCursorLineSelect(f.position,f.revealType):f.inSelectionMode?this._lineSelectDrag(f.position,f.revealType):this._lineSelect(f.position,f.revealType):f.mouseDownCount===2?f.onInjectedText||(this._hasMulticursorModifier(f)?this._lastCursorWordSelect(f.position,f.revealType):f.inSelectionMode?this._wordSelectDrag(f.position,f.revealType):this._wordSelect(f.position,f.revealType)):this._hasMulticursorModifier(f)?this._hasNonMulticursorModifier(f)||(f.shiftKey?this._columnSelect(f.position,f.mouseColumn,!0):f.inSelectionMode?this._lastCursorMoveToSelect(f.position,f.revealType):this._createCursor(f.position,!1)):f.inSelectionMode?f.altKey?this._columnSelect(f.position,f.mouseColumn,!0):p?this._columnSelect(f.position,f.mouseColumn,!0):this._moveToSelect(f.position,f.revealType):this.moveTo(f.position,f.revealType)}_usualArgs(f,_){return f=this._validateViewColumn(f),{source:"mouse",position:this._convertViewToModelPosition(f),viewPosition:f,revealType:_}}moveTo(f,_){c.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_moveToSelect(f,_){c.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_columnSelect(f,_,v){f=this._validateViewColumn(f),c.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(f),viewPosition:f,mouseColumn:_,doColumnSelect:v})}_createCursor(f,_){f=this._validateViewColumn(f),c.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(f),viewPosition:f,wholeLine:_})}_lastCursorMoveToSelect(f,_){c.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_wordSelect(f,_){c.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_wordSelectDrag(f,_){c.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lastCursorWordSelect(f,_){c.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lineSelect(f,_){c.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lineSelectDrag(f,_){c.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lastCursorLineSelect(f,_){c.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lastCursorLineSelectDrag(f,_){c.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_selectAll(){c.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(f){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(f)}emitKeyDown(f){this.userInputEvents.emitKeyDown(f)}emitKeyUp(f){this.userInputEvents.emitKeyUp(f)}emitContextMenu(f){this.userInputEvents.emitContextMenu(f)}emitMouseMove(f){this.userInputEvents.emitMouseMove(f)}emitMouseLeave(f){this.userInputEvents.emitMouseLeave(f)}emitMouseUp(f){this.userInputEvents.emitMouseUp(f)}emitMouseDown(f){this.userInputEvents.emitMouseDown(f)}emitMouseDrag(f){this.userInputEvents.emitMouseDrag(f)}emitMouseDrop(f){this.userInputEvents.emitMouseDrop(f)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(f){this.userInputEvents.emitMouseWheel(f)}}e.ViewController=L}),define(oe[213],re([1,0,49,7,6,59,55,104,116,66]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBasedDocumentDiffProvider=e.WorkerBasedDiffProviderFactoryService=e.IDiffProviderFactoryService=void 0,e.IDiffProviderFactoryService=(0,k.createDecorator)("diffProviderFactoryService");let n=class{constructor(i){this.instantiationService=i}createDiffProvider(i){return this.instantiationService.createInstance(s,i)}};e.WorkerBasedDiffProviderFactoryService=n,e.WorkerBasedDiffProviderFactoryService=n=De([he(0,k.IInstantiationService)],n),(0,c.registerSingleton)(e.IDiffProviderFactoryService,n,1);let s=class{static{p=this}static{this.diffCache=new Map}constructor(i,o,g){this.editorWorkerService=o,this.telemetryService=g,this.onDidChangeEventEmitter=new E.Emitter,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(i)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(i,o,g,u){if(typeof this.diffAlgorithm!="string")return this.diffAlgorithm.computeDiff(i,o,g,u);if(i.isDisposed()||o.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return o.getLineCount()===1&&o.getLineMaxColumn(1)===1?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new f.DetailedLineRangeMapping(new y.LineRange(1,2),new y.LineRange(1,o.getLineCount()+1),[new f.RangeMapping(i.getFullModelRange(),o.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const l=JSON.stringify([i.uri.toString(),o.uri.toString()]),r=JSON.stringify([i.id,o.id,i.getAlternativeVersionId(),o.getAlternativeVersionId(),JSON.stringify(g)]),a=p.diffCache.get(l);if(a&&a.context===r)return a.result;const d=L.StopWatch.create(),m=await this.editorWorkerService.computeDiff(i.uri,o.uri,g,this.diffAlgorithm),h=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:h,timedOut:m?.quitEarly??!0,detectedMoves:g.computeMoves?m?.moves.length??0:-1}),u.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!m)throw new Error("no diff result available");return p.diffCache.size>10&&p.diffCache.delete(p.diffCache.keys().next().value),p.diffCache.set(l,{result:m,context:r}),m}setOptions(i){let o=!1;i.diffAlgorithm&&this.diffAlgorithm!==i.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=i.diffAlgorithm,typeof i.diffAlgorithm!="string"&&(this.diffAlgorithmOnDidChangeSubscription=i.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),o=!0),o&&this.onDidChangeEventEmitter.fire()}};e.WorkerBasedDocumentDiffProvider=s,e.WorkerBasedDocumentDiffProvider=s=p=De([he(1,_.IEditorWorkerService),he(2,v.ITelemetryService)],s)}),define(oe[403],re([1,0,14,18,2,21,213,87,170,55,316,104,199,318,314,19,13,89]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnchangedRegion=e.DiffMapping=e.DiffState=e.DiffEditorViewModel=void 0;let l=class extends E.Disposable{setActiveMovedText(S){this._activeMovedText.set(S,void 0)}constructor(S,D,I){super(),this.model=S,this._options=D,this._diffProviderFactoryService=I,this._isDiffUpToDate=(0,L.observableValue)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,L.observableValue)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,L.observableValue)(this,void 0),this.unchangedRegions=(0,L.derived)(this,R=>this._options.hideUnchangedRegions.read(R)?this._unchangedRegions.read(R)?.regions??[]:((0,L.transaction)(N=>{for(const O of this._unchangedRegions.get()?.regions||[])O.collapseAll(N)}),[])),this.movedTextToCompare=(0,L.observableValue)(this,void 0),this._activeMovedText=(0,L.observableValue)(this,void 0),this._hoveredMovedText=(0,L.observableValue)(this,void 0),this.activeMovedText=(0,L.derived)(this,R=>this.movedTextToCompare.read(R)??this._hoveredMovedText.read(R)??this._activeMovedText.read(R)),this._cancellationTokenSource=new k.CancellationTokenSource,this._diffProvider=(0,L.derived)(this,R=>{const N=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(R)}),O=(0,L.observableSignalFromEvent)("onDidChange",N.onDidChange);return{diffProvider:N,onChangeSignal:O}}),this._register((0,E.toDisposable)(()=>this._cancellationTokenSource.cancel()));const T=(0,L.observableSignal)("contentChangedSignal"),M=this._register(new c.RunOnceScheduler(()=>T.trigger(void 0),200));this._register((0,L.autorun)(R=>{const N=this._unchangedRegions.read(R);if(!N||N.regions.some(q=>q.isDragged.read(R)))return;const O=N.originalDecorationIds.map(q=>S.original.getDecorationRange(q)).map(q=>q?v.LineRange.fromRangeInclusive(q):void 0),x=N.modifiedDecorationIds.map(q=>S.modified.getDecorationRange(q)).map(q=>q?v.LineRange.fromRangeInclusive(q):void 0),F=N.regions.map((q,H)=>!O[H]||!x[H]?void 0:new h(O[H].startLineNumber,x[H].startLineNumber,O[H].length,q.visibleLineCountTop.read(R),q.visibleLineCountBottom.read(R))).filter(o.isDefined),W=[];let z=!1;for(const q of(0,g.groupAdjacentBy)(F,(H,K)=>H.getHiddenModifiedRange(R).endLineNumberExclusive===K.getHiddenModifiedRange(R).startLineNumber))if(q.length>1){z=!0;const H=q.reduce((U,Y)=>U+Y.lineCount,0),K=new h(q[0].originalLineNumber,q[0].modifiedLineNumber,H,q[0].visibleLineCountTop.get(),q[q.length-1].visibleLineCountBottom.get());W.push(K)}else W.push(q[0]);if(z){const q=S.original.deltaDecorations(N.originalDecorationIds,W.map(K=>({range:K.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),H=S.modified.deltaDecorations(N.modifiedDecorationIds,W.map(K=>({range:K.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));(0,L.transaction)(K=>{this._unchangedRegions.set({regions:W,originalDecorationIds:q,modifiedDecorationIds:H},K)})}}));const A=(R,N,O)=>{const x=h.fromDiffs(R.changes,S.original.getLineCount(),S.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(O),this._options.hideUnchangedRegionsContextLineCount.read(O));let F;const W=this._unchangedRegions.get();if(W){const K=W.originalDecorationIds.map(X=>S.original.getDecorationRange(X)).map(X=>X?v.LineRange.fromRangeInclusive(X):void 0),U=W.modifiedDecorationIds.map(X=>S.modified.getDecorationRange(X)).map(X=>X?v.LineRange.fromRangeInclusive(X):void 0);let Q=(0,f.filterWithPrevious)(W.regions.map((X,G)=>{if(!K[G]||!U[G])return;const P=K[G].length;return new h(K[G].startLineNumber,U[G].startLineNumber,P,Math.min(X.visibleLineCountTop.get(),P),Math.min(X.visibleLineCountBottom.get(),P-X.visibleLineCountTop.get()))}).filter(o.isDefined),(X,G)=>!G||X.modifiedLineNumber>=G.modifiedLineNumber+G.lineCount&&X.originalLineNumber>=G.originalLineNumber+G.lineCount).map(X=>new n.LineRangeMapping(X.getHiddenOriginalRange(O),X.getHiddenModifiedRange(O)));Q=n.LineRangeMapping.clip(Q,v.LineRange.ofLength(1,S.original.getLineCount()),v.LineRange.ofLength(1,S.modified.getLineCount())),F=n.LineRangeMapping.inverse(Q,S.original.getLineCount(),S.modified.getLineCount())}const z=[];if(F)for(const K of x){const U=F.filter(Y=>Y.original.intersectsStrict(K.originalUnchangedRange)&&Y.modified.intersectsStrict(K.modifiedUnchangedRange));z.push(...K.setVisibleRanges(U,N))}else z.push(...x);const q=S.original.deltaDecorations(W?.originalDecorationIds||[],z.map(K=>({range:K.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),H=S.modified.deltaDecorations(W?.modifiedDecorationIds||[],z.map(K=>({range:K.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:z,originalDecorationIds:q,modifiedDecorationIds:H},N)};this._register(S.modified.onDidChangeContent(R=>{if(this._diff.get()){const O=s.TextEditInfo.fromModelContentChanges(R.changes),x=(this._lastDiff,S.original,S.modified,void 0);x&&(this._lastDiff=x,(0,L.transaction)(F=>{this._diff.set(d.fromDiffResult(this._lastDiff),F),A(x,F);const W=this.movedTextToCompare.get();this.movedTextToCompare.set(W?this._lastDiff.moves.find(z=>z.lineRangeMapping.modified.intersect(W.lineRangeMapping.modified)):void 0,F)}))}this._isDiffUpToDate.set(!1,void 0),M.schedule()})),this._register(S.original.onDidChangeContent(R=>{if(this._diff.get()){const O=s.TextEditInfo.fromModelContentChanges(R.changes),x=(this._lastDiff,S.original,S.modified,void 0);x&&(this._lastDiff=x,(0,L.transaction)(F=>{this._diff.set(d.fromDiffResult(this._lastDiff),F),A(x,F);const W=this.movedTextToCompare.get();this.movedTextToCompare.set(W?this._lastDiff.moves.find(z=>z.lineRangeMapping.modified.intersect(W.lineRangeMapping.modified)):void 0,F)}))}this._isDiffUpToDate.set(!1,void 0),M.schedule()})),this._register((0,L.autorunWithStore)(async(R,N)=>{this._options.hideUnchangedRegionsMinimumLineCount.read(R),this._options.hideUnchangedRegionsContextLineCount.read(R),M.cancel(),T.read(R);const O=this._diffProvider.read(R);O.onChangeSignal.read(R),(0,_.readHotReloadableExport)(p.DefaultLinesDiffComputer,R),(0,_.readHotReloadableExport)(i.optimizeSequenceDiffs,R),this._isDiffUpToDate.set(!1,void 0);let x=[];N.add(S.original.onDidChangeContent(z=>{const q=s.TextEditInfo.fromModelContentChanges(z.changes);x=(0,t.combineTextEditInfos)(x,q)}));let F=[];N.add(S.modified.onDidChangeContent(z=>{const q=s.TextEditInfo.fromModelContentChanges(z.changes);F=(0,t.combineTextEditInfos)(F,q)}));let W=await O.diffProvider.computeDiff(S.original,S.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(R),maxComputationTimeMs:this._options.maxComputationTimeMs.read(R),computeMoves:this._options.showMoves.read(R)},this._cancellationTokenSource.token);this._cancellationTokenSource.token.isCancellationRequested||S.original.isDisposed()||S.modified.isDisposed()||(W=r(W,S.original,S.modified),W=(S.original,S.modified,void 0)??W,W=(S.original,S.modified,void 0)??W,(0,L.transaction)(z=>{A(W,z),this._lastDiff=W;const q=d.fromDiffResult(W);this._diff.set(q,z),this._isDiffUpToDate.set(!0,z);const H=this.movedTextToCompare.get();this.movedTextToCompare.set(H?this._lastDiff.moves.find(K=>K.lineRangeMapping.modified.intersect(H.lineRangeMapping.modified)):void 0,z)}))}))}ensureModifiedLineIsVisible(S,D,I){if(this.diff.get()?.mappings.length===0)return;const T=this._unchangedRegions.get()?.regions||[];for(const M of T)if(M.getHiddenModifiedRange(void 0).contains(S)){M.showModifiedLine(S,D,I);return}}ensureOriginalLineIsVisible(S,D,I){if(this.diff.get()?.mappings.length===0)return;const T=this._unchangedRegions.get()?.regions||[];for(const M of T)if(M.getHiddenOriginalRange(void 0).contains(S)){M.showOriginalLine(S,D,I);return}}async waitForDiff(){await(0,L.waitForState)(this.isDiffUpToDate,S=>S)}serializeState(){return{collapsedRegions:this._unchangedRegions.get()?.regions.map(D=>({range:D.getHiddenModifiedRange(void 0).serialize()}))}}restoreSerializedState(S){const D=S.collapsedRegions?.map(T=>v.LineRange.deserialize(T.range)),I=this._unchangedRegions.get();!I||!D||(0,L.transaction)(T=>{for(const M of I.regions)for(const A of D)if(M.modifiedUnchangedRange.intersect(A)){M.setHiddenModifiedRange(A,T);break}})}};e.DiffEditorViewModel=l,e.DiffEditorViewModel=l=De([he(2,y.IDiffProviderFactoryService)],l);function r(w,S,D){return{changes:w.changes.map(I=>new n.DetailedLineRangeMapping(I.original,I.modified,I.innerChanges?I.innerChanges.map(T=>a(T,S,D)):void 0)),moves:w.moves,identical:w.identical,quitEarly:w.quitEarly}}function a(w,S,D){let I=w.originalRange,T=w.modifiedRange;return I.startColumn===1&&T.startColumn===1&&(I.endColumn!==1||T.endColumn!==1)&&I.endColumn===S.getLineMaxColumn(I.endLineNumber)&&T.endColumn===D.getLineMaxColumn(T.endLineNumber)&&I.endLineNumber<S.getLineCount()&&T.endLineNumber<D.getLineCount()&&(I=I.setEndPosition(I.endLineNumber+1,1),T=T.setEndPosition(T.endLineNumber+1,1)),new n.RangeMapping(I,T)}class d{static fromDiffResult(S){return new d(S.changes.map(D=>new m(D)),S.moves||[],S.identical,S.quitEarly)}constructor(S,D,I,T){this.mappings=S,this.movedTexts=D,this.identical=I,this.quitEarly=T}}e.DiffState=d;class m{constructor(S){this.lineRangeMapping=S}}e.DiffMapping=m;class h{static fromDiffs(S,D,I,T,M){const A=n.DetailedLineRangeMapping.inverse(S,D,I),R=[];for(const N of A){let O=N.original.startLineNumber,x=N.modified.startLineNumber,F=N.original.length;const W=O===1&&x===1,z=O+F===D+1&&x+F===I+1;(W||z)&&F>=M+T?(W&&!z&&(F-=M),z&&!W&&(O+=M,x+=M,F-=M),R.push(new h(O,x,F,0,0))):F>=M*2+T&&(O+=M,x+=M,F-=M*2,R.push(new h(O,x,F,0,0)))}return R}get originalUnchangedRange(){return v.LineRange.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return v.LineRange.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(S,D,I,T,M){this.originalLineNumber=S,this.modifiedLineNumber=D,this.lineCount=I,this._visibleLineCountTop=(0,L.observableValue)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,L.observableValue)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,L.derived)(this,N=>this.visibleLineCountTop.read(N)+this.visibleLineCountBottom.read(N)===this.lineCount&&!this.isDragged.read(N)),this.isDragged=(0,L.observableValue)(this,void 0);const A=Math.max(Math.min(T,this.lineCount),0),R=Math.max(Math.min(M,this.lineCount-T),0);(0,u.softAssert)(T===A),(0,u.softAssert)(M===R),this._visibleLineCountTop.set(A,void 0),this._visibleLineCountBottom.set(R,void 0)}setVisibleRanges(S,D){const I=[],T=new v.LineRangeSet(S.map(N=>N.modified)).subtractFrom(this.modifiedUnchangedRange);let M=this.originalLineNumber,A=this.modifiedLineNumber;const R=this.modifiedLineNumber+this.lineCount;if(T.ranges.length===0)this.showAll(D),I.push(this);else{let N=0;for(const O of T.ranges){const x=N===T.ranges.length-1;N++;const F=(x?R:O.endLineNumberExclusive)-A,W=new h(M,A,F,0,0);W.setHiddenModifiedRange(O,D),I.push(W),M=W.originalUnchangedRange.endLineNumberExclusive,A=W.modifiedUnchangedRange.endLineNumberExclusive}}return I}shouldHideControls(S){return this._shouldHideControls.read(S)}getHiddenOriginalRange(S){return v.LineRange.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(S),this.lineCount-this._visibleLineCountTop.read(S)-this._visibleLineCountBottom.read(S))}getHiddenModifiedRange(S){return v.LineRange.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(S),this.lineCount-this._visibleLineCountTop.read(S)-this._visibleLineCountBottom.read(S))}setHiddenModifiedRange(S,D){const I=S.startLineNumber-this.modifiedLineNumber,T=this.modifiedLineNumber+this.lineCount-S.endLineNumberExclusive;this.setState(I,T,D)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(S=10,D){const I=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+S,I),D)}showMoreBelow(S=10,D){const I=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+S,I),D)}showAll(S){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),S)}showModifiedLine(S,D,I){const T=S+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),M=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-S;D===0&&T<M||D===1?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+T,I):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+M,I)}showOriginalLine(S,D,I){const T=S-this.originalLineNumber,M=this.originalLineNumber+this.lineCount-S;D===0&&T<M||D===1?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+M-T,this.getMaxVisibleLineCountTop()),I):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+T-M,this.getMaxVisibleLineCountBottom()),I)}collapseAll(S){this._visibleLineCountTop.set(0,S),this._visibleLineCountBottom.set(0,S)}setState(S,D,I){S=Math.max(Math.min(S,this.lineCount),0),D=Math.max(Math.min(D,this.lineCount-S),0),this._visibleLineCountTop.set(S,I),this._visibleLineCountBottom.set(D,I)}}e.UnchangedRegion=h;function C(w,S,D,I){}function b(w,S,D,I){}}),define(oe[719],re([1,0,48,57,72,15,23,20,3,12,499]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionAnchorSet=void 0,e.SelectionAnchorSet=new v.RawContextKey("selectionAnchorSet",!1);let n=class{static{p=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(u){return u.getContribution(p.ID)}constructor(u,l){this.editor=u,this.selectionAnchorSetContextKey=e.SelectionAnchorSet.bindTo(l),this.modelChangeListener=u.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const u=this.editor.getPosition();this.editor.changeDecorations(l=>{this.decorationId&&l.removeDecoration(this.decorationId),this.decorationId=l.addDecoration(y.Selection.fromPositions(u,u),{description:"selection-anchor",stickiness:1,hoverMessage:new k.MarkdownString().appendText((0,_.localize)(980,"Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,c.alert)((0,_.localize)(981,"Anchor set at {0}:{1}",u.lineNumber,u.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const u=this.editor.getModel().getDecorationRange(this.decorationId);u&&this.editor.setPosition(u.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const u=this.editor.getModel().getDecorationRange(this.decorationId);if(u){const l=this.editor.getPosition();this.editor.setSelection(y.Selection.fromPositions(u.getStartPosition(),l)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const u=this.decorationId;this.editor.changeDecorations(l=>{l.removeDecoration(u),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};n=p=De([he(1,v.IContextKeyService)],n);class s extends L.EditorAction{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,_.localize)(982,"Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:(0,E.KeyChord)(2089,2080),weight:100}})}async run(u,l){n.get(l)?.setSelectionAnchor()}}class t extends L.EditorAction{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,_.localize)(983,"Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:e.SelectionAnchorSet})}async run(u,l){n.get(l)?.goToSelectionAnchor()}}class i extends L.EditorAction{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,_.localize)(984,"Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:e.SelectionAnchorSet,kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:(0,E.KeyChord)(2089,2089),weight:100}})}async run(u,l){n.get(l)?.selectFromAnchorToCursor()}}class o extends L.EditorAction{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,_.localize)(985,"Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:e.SelectionAnchorSet,kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:9,weight:100}})}async run(u,l){n.get(l)?.cancelSelectionAnchor()}}(0,L.registerEditorContribution)(n.ID,n,4),(0,L.registerEditorAction)(s),(0,L.registerEditorAction)(t),(0,L.registerEditorAction)(i),(0,L.registerEditorAction)(o)}),define(oe[720],re([1,0,15,20,603,3]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class y extends c.EditorAction{constructor(p,n){super(n),this.left=p}run(p,n){if(!n.hasModel())return;const s=[],t=n.getSelections();for(const i of t)s.push(new E.MoveCaretCommand(i,this.left));n.pushUndoStop(),n.executeCommands(this.id,s),n.pushUndoStop()}}class f extends y{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:L.localize(972,"Move Selected Text Left"),alias:"Move Selected Text Left",precondition:k.EditorContextKeys.writable})}}class _ extends y{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:L.localize(973,"Move Selected Text Right"),alias:"Move Selected Text Right",precondition:k.EditorContextKeys.writable})}}(0,c.registerEditorAction)(f),(0,c.registerEditorAction)(_)}),define(oe[721],re([1,0,15,145,232,4,20,3]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class _ extends c.EditorAction{constructor(){super({id:"editor.action.transposeLetters",label:f.localize(971,"Transpose Letters"),alias:"Transpose Letters",precondition:y.EditorContextKeys.writable,kbOpts:{kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(p,n){if(!n.hasModel())return;const s=n.getModel(),t=[],i=n.getSelections();for(const o of i){if(!o.isEmpty())continue;const g=o.startLineNumber,u=o.startColumn,l=s.getLineMaxColumn(g);if(g===1&&(u===1||u===2&&l===2))continue;const r=u===l?o.getPosition():E.MoveOperations.rightPosition(s,o.getPosition().lineNumber,o.getPosition().column),a=E.MoveOperations.leftPosition(s,r),d=E.MoveOperations.leftPosition(s,a),m=s.getValueInRange(L.Range.fromPositions(d,a)),h=s.getValueInRange(L.Range.fromPositions(a,r)),C=L.Range.fromPositions(d,r);t.push(new k.ReplaceCommand(C,h+m))}t.length>0&&(n.pushUndoStop(),n.executeCommands(this.id,t),n.pushUndoStop())}}(0,c.registerEditorAction)(_)}),define(oe[722],re([1,0,72,15,4,20,34,331,605,3,29]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends k.EditorAction{constructor(u,l){super(l),this._type=u}run(u,l){const r=u.get(y.ILanguageConfigurationService);if(!l.hasModel())return;const a=l.getModel(),d=[],m=a.getOptions(),h=l.getOption(23),C=l.getSelections().map((w,S)=>({selection:w,index:S,ignoreFirstLine:!1}));C.sort((w,S)=>E.Range.compareRangesUsingStarts(w.selection,S.selection));let b=C[0];for(let w=1;w<C.length;w++){const S=C[w];b.selection.endLineNumber===S.selection.startLineNumber&&(b.index<S.index?S.ignoreFirstLine=!0:(b.ignoreFirstLine=!0,b=S))}for(const w of C)d.push(new _.LineCommentCommand(r,w.selection,m.indentSize,this._type,h.insertSpace,h.ignoreEmptyLines,w.ignoreFirstLine));l.pushUndoStop(),l.executeCommands(this.id,d),l.pushUndoStop()}}class s extends n{constructor(){super(0,{id:"editor.action.commentLine",label:v.localize(885,"Toggle Line Comment"),alias:"Toggle Line Comment",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:p.MenuId.MenubarEditMenu,group:"5_insert",title:v.localize(886,"&&Toggle Line Comment"),order:1}})}}class t extends n{constructor(){super(1,{id:"editor.action.addCommentLine",label:v.localize(887,"Add Line Comment"),alias:"Add Line Comment",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:(0,c.KeyChord)(2089,2081),weight:100}})}}class i extends n{constructor(){super(2,{id:"editor.action.removeCommentLine",label:v.localize(888,"Remove Line Comment"),alias:"Remove Line Comment",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:(0,c.KeyChord)(2089,2099),weight:100}})}}class o extends k.EditorAction{constructor(){super({id:"editor.action.blockComment",label:v.localize(889,"Toggle Block Comment"),alias:"Toggle Block Comment",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:p.MenuId.MenubarEditMenu,group:"5_insert",title:v.localize(890,"Toggle &&Block Comment"),order:2}})}run(u,l){const r=u.get(y.ILanguageConfigurationService);if(!l.hasModel())return;const a=l.getOption(23),d=[],m=l.getSelections();for(const h of m)d.push(new f.BlockCommentCommand(h,a.insertSpace,r));l.pushUndoStop(),l.executeCommands(this.id,d),l.pushUndoStop()}}(0,k.registerEditorAction)(s),(0,k.registerEditorAction)(t),(0,k.registerEditorAction)(i),(0,k.registerEditorAction)(o)}),define(oe[723],re([1,0,2,15,20,3]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorRedo=e.CursorUndo=e.CursorUndoRedoController=void 0;class y{constructor(s){this.selections=s}equals(s){const t=this.selections.length,i=s.selections.length;if(t!==i)return!1;for(let o=0;o<t;o++)if(!this.selections[o].equalsSelection(s.selections[o]))return!1;return!0}}class f{constructor(s,t,i){this.cursorState=s,this.scrollTop=t,this.scrollLeft=i}}class _ extends c.Disposable{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(s){return s.getContribution(_.ID)}constructor(s){super(),this._editor=s,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(s.onDidChangeModel(t=>{this._undoStack=[],this._redoStack=[]})),this._register(s.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(s.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new y(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new f(i,s.getScrollTop(),s.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new f(new y(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new f(new y(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(s){this._isCursorUndoRedo=!0,this._editor.setSelections(s.cursorState.selections),this._editor.setScrollPosition({scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}),this._isCursorUndoRedo=!1}}e.CursorUndoRedoController=_;class v extends k.EditorAction{constructor(){super({id:"cursorUndo",label:L.localize(873,"Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:E.EditorContextKeys.textInputFocus,primary:2099,weight:100}})}run(s,t,i){_.get(t)?.cursorUndo()}}e.CursorUndo=v;class p extends k.EditorAction{constructor(){super({id:"cursorRedo",label:L.localize(874,"Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(s,t,i){_.get(t)?.cursorRedo()}}e.CursorRedo=p,(0,k.registerEditorContribution)(_.ID,_,0),(0,k.registerEditorAction)(v),(0,k.registerEditorAction)(p)}),define(oe[724],re([1,0,15,12,18,73,7,49,3]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorKeybindingCancellationTokenSource=void 0;const v=(0,y.createDecorator)("IEditorCancelService"),p=new k.RawContextKey("cancellableOperation",!1,(0,_.localize)(848,"Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,f.registerSingleton)(v,class{constructor(){this._tokens=new WeakMap}add(s,t){let i=this._tokens.get(s);i||(i=s.invokeWithinContext(g=>{const u=p.bindTo(g.get(k.IContextKeyService)),l=new L.LinkedList;return{key:u,tokens:l}}),this._tokens.set(s,i));let o;return i.key.set(!0),o=i.tokens.push(t),()=>{o&&(o(),i.key.set(!i.tokens.isEmpty()),o=void 0)}}cancel(s){const t=this._tokens.get(s);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class n extends E.CancellationTokenSource{constructor(t,i){super(i),this.editor=t,this._unregister=t.invokeWithinContext(o=>o.get(v).add(t,this))}dispose(){this._unregister(),super.dispose()}}e.EditorKeybindingCancellationTokenSource=n,(0,c.registerEditorCommand)(new class extends c.EditorCommand{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(s,t){s.get(v).cancel(t)}})}),define(oe[122],re([1,0,11,4,18,2,724]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelCancellationTokenSource=e.EditorStateCancellationTokenSource=e.EditorState=void 0;class f{constructor(n,s){if(this.flags=s,this.flags&1){const t=n.getModel();this.modelVersionId=t?c.format("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=n.getPosition():this.position=null,this.flags&2?this.selection=n.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=n.getScrollLeft(),this.scrollTop=n.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(n){if(!(n instanceof f))return!1;const s=n;return!(this.modelVersionId!==s.modelVersionId||this.scrollLeft!==s.scrollLeft||this.scrollTop!==s.scrollTop||!this.position&&s.position||this.position&&!s.position||this.position&&s.position&&!this.position.equals(s.position)||!this.selection&&s.selection||this.selection&&!s.selection||this.selection&&s.selection&&!this.selection.equalsRange(s.selection))}validate(n){return this._equals(new f(n,this.flags))}}e.EditorState=f;class _ extends y.EditorKeybindingCancellationTokenSource{constructor(n,s,t,i){super(n,i),this._listener=new L.DisposableStore,s&4&&this._listener.add(n.onDidChangeCursorPosition(o=>{(!t||!k.Range.containsPosition(t,o.position))&&this.cancel()})),s&2&&this._listener.add(n.onDidChangeCursorSelection(o=>{(!t||!k.Range.containsRange(t,o.selection))&&this.cancel()})),s&8&&this._listener.add(n.onDidScrollChange(o=>this.cancel())),s&1&&(this._listener.add(n.onDidChangeModel(o=>this.cancel())),this._listener.add(n.onDidChangeModelContent(o=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}e.EditorStateCancellationTokenSource=_;class v extends E.CancellationTokenSource{constructor(n,s){super(s),this._listener=n.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}e.TextModelCancellationTokenSource=v}),define(oe[155],re([1,0,13,18,8,2,22,151,4,23,17,44,122,3,24,50,96,66,133,90]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplyCodeActionReason=e.fixAllCommandId=e.organizeImportsCommandId=e.sourceActionCommandId=e.refactorCommandId=e.autoFixCommandId=e.quickFixCommandId=e.codeActionCommandId=void 0,e.getCodeActions=m,e.applyCodeAction=S,e.codeActionCommandId="editor.action.codeAction",e.quickFixCommandId="editor.action.quickFix",e.autoFixCommandId="editor.action.autoFix",e.refactorCommandId="editor.action.refactor",e.sourceActionCommandId="editor.action.sourceAction",e.organizeImportsCommandId="editor.action.organizeImports",e.fixAllCommandId="editor.action.fixAll";class a extends L.Disposable{static codeActionsPreferredComparator(T,M){return T.isPreferred&&!M.isPreferred?-1:!T.isPreferred&&M.isPreferred?1:0}static codeActionsComparator({action:T},{action:M}){return T.isAI&&!M.isAI?1:!T.isAI&&M.isAI?-1:(0,c.isNonEmptyArray)(T.diagnostics)?(0,c.isNonEmptyArray)(M.diagnostics)?a.codeActionsPreferredComparator(T,M):-1:(0,c.isNonEmptyArray)(M.diagnostics)?1:a.codeActionsPreferredComparator(T,M)}constructor(T,M,A){super(),this.documentation=M,this._register(A),this.allActions=[...T].sort(a.codeActionsComparator),this.validActions=this.allActions.filter(({action:R})=>!R.disabled)}get hasAutoFix(){return this.validActions.some(({action:T})=>!!T.kind&&l.CodeActionKind.QuickFix.contains(new r.HierarchicalKind(T.kind))&&!!T.isPreferred)}get hasAIFix(){return this.validActions.some(({action:T})=>!!T.isAI)}get allAIFixes(){return this.validActions.every(({action:T})=>!!T.isAI)}}const d={actions:[],documentation:void 0};async function m(I,T,M,A,R,N){const O=A.filter||{},x={...O,excludes:[...O.excludes||[],l.CodeActionKind.Notebook]},F={only:O.include?.value,trigger:A.type},W=new s.TextModelCancellationTokenSource(T,N),z=A.type===2,q=h(I,T,z?x:O),H=new L.DisposableStore,K=q.map(async Y=>{try{R.report(Y);const Q=await Y.provideCodeActions(T,M,F,W.token);if(Q&&H.add(Q),W.token.isCancellationRequested)return d;const X=(Q?.actions||[]).filter(P=>P&&(0,l.filtersAction)(O,P)),G=b(Y,X,O.include);return{actions:X.map(P=>new l.CodeActionItem(P,Y)),documentation:G}}catch(Q){if((0,E.isCancellationError)(Q))throw Q;return(0,E.onUnexpectedExternalError)(Q),d}}),U=I.onDidChange(()=>{const Y=I.all(T);(0,c.equals)(Y,q)||W.cancel()});try{const Y=await Promise.all(K),Q=Y.map(G=>G.actions).flat(),X=[...(0,c.coalesce)(Y.map(G=>G.documentation)),...C(I,T,A,Q)];return new a(Q,X,H)}finally{U.dispose(),W.dispose()}}function h(I,T,M){return I.all(T).filter(A=>A.providedCodeActionKinds?A.providedCodeActionKinds.some(R=>(0,l.mayIncludeActionsOfKind)(M,new r.HierarchicalKind(R))):!0)}function*C(I,T,M,A){if(T&&A.length)for(const R of I.all(T))R._getAdditionalMenuItems&&(yield*R._getAdditionalMenuItems?.({trigger:M.type,only:M.filter?.include?.value},A.map(N=>N.action)))}function b(I,T,M){if(!I.documentation)return;const A=I.documentation.map(R=>({kind:new r.HierarchicalKind(R.kind),command:R.command}));if(M){let R;for(const N of A)N.kind.contains(M)&&(R?R.kind.contains(N.kind)&&(R=N):R=N);if(R)return R?.command}for(const R of T)if(R.kind){for(const N of A)if(N.kind.contains(new r.HierarchicalKind(R.kind)))return N.command}}var w;(function(I){I.OnSave="onSave",I.FromProblemsView="fromProblemsView",I.FromCodeActions="fromCodeActions",I.FromAILightbulb="fromAILightbulb"})(w||(e.ApplyCodeActionReason=w={}));async function S(I,T,M,A,R=k.CancellationToken.None){const N=I.get(f.IBulkEditService),O=I.get(i.ICommandService),x=I.get(u.ITelemetryService),F=I.get(o.INotificationService);if(x.publicLog2("codeAction.applyCodeAction",{codeActionTitle:T.action.title,codeActionKind:T.action.kind,codeActionIsPreferred:!!T.action.isPreferred,reason:M}),await T.resolve(R),!R.isCancellationRequested&&!(T.action.edit?.edits.length&&!(await N.apply(T.action.edit,{editor:A?.editor,label:T.action.title,quotableLabel:T.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:M!==w.OnSave,showPreview:A?.preview})).isApplied)&&T.action.command)try{await O.executeCommand(T.action.command.id,...T.action.command.arguments||[])}catch(W){const z=D(W);F.error(typeof z=="string"?z:t.localize(953,"An unknown error occurred while applying the code action"))}}function D(I){return typeof I=="string"?I:I instanceof Error&&typeof I.message=="string"?I.message:void 0}i.CommandsRegistry.registerCommand("_executeCodeActionProvider",async function(I,T,M,A,R){if(!(T instanceof y.URI))throw(0,E.illegalArgument)();const{codeActionProvider:N}=I.get(p.ILanguageFeaturesService),O=I.get(n.IModelService).getModel(T);if(!O)throw(0,E.illegalArgument)();const x=v.Selection.isISelection(M)?v.Selection.liftSelection(M):_.Range.isIRange(M)?O.validateRange(M):void 0;if(!x)throw(0,E.illegalArgument)();const F=typeof A=="string"?new r.HierarchicalKind(A):void 0,W=await m(N,O,x,{type:1,triggerAction:l.CodeActionTriggerSource.Default,filter:{includeSourceActions:!0,include:F}},g.Progress.None,k.CancellationToken.None),z=[],q=Math.min(W.validActions.length,typeof R=="number"?R:0);for(let H=0;H<q;H++)z.push(W.validActions[H].resolve(k.CancellationToken.None));try{return await Promise.all(z),W.validActions.map(H=>H.action)}finally{setTimeout(()=>W.dispose(),100)}})}),define(oe[725],re([1,0,90,98,155,133,31]),function(ae,e,c,k,E,L,y){"use strict";var f;Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionKeybindingResolver=void 0;let _=class{static{f=this}static{this.codeActionCommands=[E.refactorCommandId,E.codeActionCommandId,E.sourceActionCommandId,E.organizeImportsCommandId,E.fixAllCommandId]}constructor(p){this.keybindingService=p}getResolver(){const p=new k.Lazy(()=>this.keybindingService.getKeybindings().filter(n=>f.codeActionCommands.indexOf(n.command)>=0).filter(n=>n.resolvedKeybinding).map(n=>{let s=n.commandArgs;return n.command===E.organizeImportsCommandId?s={kind:L.CodeActionKind.SourceOrganizeImports.value}:n.command===E.fixAllCommandId&&(s={kind:L.CodeActionKind.SourceFixAll.value}),{resolvedKeybinding:n.resolvedKeybinding,...L.CodeActionCommandArgs.fromUser(s,{kind:c.HierarchicalKind.None,apply:"never"})}}));return n=>{if(n.kind)return this.bestKeybindingForCodeAction(n,p.value)?.resolvedKeybinding}}bestKeybindingForCodeAction(p,n){if(!p.kind)return;const s=new c.HierarchicalKind(p.kind);return n.filter(t=>t.kind.contains(s)).filter(t=>t.preferred?p.isPreferred:!0).reduceRight((t,i)=>t?t.kind.contains(i.kind)?i:t:i,void 0)}};e.CodeActionKeybindingResolver=_,e.CodeActionKeybindingResolver=_=f=De([he(0,y.IKeybindingService)],_)}),define(oe[404],re([1,0,14,8,6,2,51,37,9,23,12,96,133,155,90]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionModel=e.CodeActionsState=e.APPLY_FIX_ALL_COMMAND_ID=e.SUPPORTED_CODE_ACTIONS=void 0,e.SUPPORTED_CODE_ACTIONS=new p.RawContextKey("supportedCodeAction",""),e.APPLY_FIX_ALL_COMMAND_ID="_typescript.applyFixAllCodeAction";class o extends L.Disposable{constructor(a,d,m,h=250){super(),this._editor=a,this._markerService=d,this._signalChange=m,this._delay=h,this._autoTriggerTimer=this._register(new c.TimeoutTimer),this._register(this._markerService.onMarkerChanged(C=>this._onMarkerChanges(C))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(a){const d=this._getRangeOfSelectionUnlessWhitespaceEnclosed(a);this._signalChange(d?{trigger:a,selection:d}:void 0)}_onMarkerChanges(a){const d=this._editor.getModel();d&&a.some(m=>(0,y.isEqual)(m,d.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:s.CodeActionTriggerSource.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(a){if(!this._editor.hasModel())return;const d=this._editor.getSelection();if(a.type===1)return d;const m=this._editor.getOption(65).enabled;if(m!==f.ShowLightbulbIconMode.Off){{if(m===f.ShowLightbulbIconMode.On)return d;if(m===f.ShowLightbulbIconMode.OnCode){if(!d.isEmpty())return d;const C=this._editor.getModel(),{lineNumber:b,column:w}=d.getPosition(),S=C.getLineContent(b);if(S.length===0)return;if(w===1){if(/\s/.test(S[0]))return}else if(w===C.getLineMaxColumn(b)){if(/\s/.test(S[S.length-1]))return}else if(/\s/.test(S[w-2])&&/\s/.test(S[w-1]))return}}return d}}}var g;(function(r){r.Empty={type:0};class a{constructor(m,h,C){this.trigger=m,this.position=h,this._cancellablePromise=C,this.type=1,this.actions=C.catch(b=>{if((0,k.isCancellationError)(b))return u;throw b})}cancel(){this._cancellablePromise.cancel()}}r.Triggered=a})(g||(e.CodeActionsState=g={}));const u=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class l extends L.Disposable{constructor(a,d,m,h,C,b){super(),this._editor=a,this._registry=d,this._markerService=m,this._progressService=C,this._configurationService=b,this._codeActionOracle=this._register(new L.MutableDisposable),this._state=g.Empty,this._onDidChangeState=this._register(new E.Emitter),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=e.SUPPORTED_CODE_ACTIONS.bindTo(h),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(65)&&this._update()})),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(g.Empty,!0))}_settingEnabledNearbyQuickfixes(){const a=this._editor?.getModel();return this._configurationService?this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:a?.uri}):!1}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(g.Empty);const a=this._editor.getModel();if(a&&this._registry.has(a)&&!this._editor.getOption(92)){const d=this._registry.all(a).flatMap(m=>m.providedCodeActionKinds??[]);this._supportedCodeActions.set(d.join(" ")),this._codeActionOracle.value=new o(this._editor,this._markerService,m=>{if(!m){this.setState(g.Empty);return}const h=m.selection.getStartPosition(),C=(0,c.createCancelablePromise)(async S=>{if(this._settingEnabledNearbyQuickfixes()&&m.trigger.type===1&&(m.trigger.triggerAction===s.CodeActionTriggerSource.QuickFix||m.trigger.filter?.include?.contains(s.CodeActionKind.QuickFix))){const D=await(0,t.getCodeActions)(this._registry,a,m.selection,m.trigger,n.Progress.None,S),I=[...D.allActions];if(S.isCancellationRequested)return u;const T=D.validActions?.some(A=>A.action.kind?s.CodeActionKind.QuickFix.contains(new i.HierarchicalKind(A.action.kind)):!1),M=this._markerService.read({resource:a.uri});if(T){for(const A of D.validActions)A.action.command?.arguments?.some(R=>typeof R=="string"&&R.includes(e.APPLY_FIX_ALL_COMMAND_ID))&&(A.action.diagnostics=[...M.filter(R=>R.relatedInformation)]);return{validActions:D.validActions,allActions:I,documentation:D.documentation,hasAutoFix:D.hasAutoFix,hasAIFix:D.hasAIFix,allAIFixes:D.allAIFixes,dispose:()=>{D.dispose()}}}else if(!T&&M.length>0){const A=m.selection.getPosition();let R=A,N=Number.MAX_VALUE;const O=[...D.validActions];for(const F of M){const W=F.endColumn,z=F.endLineNumber,q=F.startLineNumber;if(z===A.lineNumber||q===A.lineNumber){R=new _.Position(z,W);const H={type:m.trigger.type,triggerAction:m.trigger.triggerAction,filter:{include:m.trigger.filter?.include?m.trigger.filter?.include:s.CodeActionKind.QuickFix},autoApply:m.trigger.autoApply,context:{notAvailableMessage:m.trigger.context?.notAvailableMessage||"",position:R}},K=new v.Selection(R.lineNumber,R.column,R.lineNumber,R.column),U=await(0,t.getCodeActions)(this._registry,a,K,H,n.Progress.None,S);if(U.validActions.length!==0){for(const Y of U.validActions)Y.action.command?.arguments?.some(Q=>typeof Q=="string"&&Q.includes(e.APPLY_FIX_ALL_COMMAND_ID))&&(Y.action.diagnostics=[...M.filter(Q=>Q.relatedInformation)]);D.allActions.length===0&&I.push(...U.allActions),Math.abs(A.column-W)<N?O.unshift(...U.validActions):O.push(...U.validActions)}N=Math.abs(A.column-W)}}const x=O.filter((F,W,z)=>z.findIndex(q=>q.action.title===F.action.title)===W);return x.sort((F,W)=>F.action.isPreferred&&!W.action.isPreferred?-1:!F.action.isPreferred&&W.action.isPreferred||F.action.isAI&&!W.action.isAI?1:!F.action.isAI&&W.action.isAI?-1:0),{validActions:x,allActions:I,documentation:D.documentation,hasAutoFix:D.hasAutoFix,hasAIFix:D.hasAIFix,allAIFixes:D.allAIFixes,dispose:()=>{D.dispose()}}}}return(0,t.getCodeActions)(this._registry,a,m.selection,m.trigger,n.Progress.None,S)});m.trigger.type===1&&this._progressService?.showWhile(C,250);const b=new g.Triggered(m.trigger,h,C);let w=!1;this._state.type===1&&(w=this._state.trigger.type===1&&b.type===1&&b.trigger.type===2&&this._state.position!==b.position),w?setTimeout(()=>{this.setState(b)},500):this.setState(b)},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:s.CodeActionTriggerSource.Default})}else this._supportedCodeActions.reset()}trigger(a){this._codeActionOracle.value?.trigger(a)}setState(a,d){a!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=a,!d&&!this._disposed&&this._onDidChangeState.fire(a))}}e.CodeActionModel=l}),define(oe[726],re([1,0,15,163,3]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class L extends c.EditorAction{constructor(){super({id:"editor.action.fontZoomIn",label:E.localize(774,"Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(v,p){k.EditorZoom.setZoomLevel(k.EditorZoom.getZoomLevel()+1)}}class y extends c.EditorAction{constructor(){super({id:"editor.action.fontZoomOut",label:E.localize(775,"Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(v,p){k.EditorZoom.setZoomLevel(k.EditorZoom.getZoomLevel()-1)}}class f extends c.EditorAction{constructor(){super({id:"editor.action.fontZoomReset",label:E.localize(776,"Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(v,p){k.EditorZoom.setZoomLevel(0)}}(0,c.registerEditorAction)(L),(0,c.registerEditorAction)(y),(0,c.registerEditorAction)(f)}),define(oe[405],re([1,0,13,18,8,53,73,19,22,122,167,9,4,23,116,78,335,24,669,7,17,61,136]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r,a,d,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormattingConflicts=void 0,e.getRealAndSyntheticDocumentFormattersOrdered=h,e.formatDocumentRangesWithSelectedProvider=b,e.formatDocumentRangesWithProvider=w,e.formatDocumentWithSelectedProvider=S,e.formatDocumentWithProvider=D,e.getDocumentRangeFormattingEditsUntilResult=I,e.getDocumentFormattingEditsUntilResult=T,e.getOnTypeFormattingEdits=M;function h(A,R,N){const O=[],x=new l.ExtensionIdentifierSet,F=A.ordered(N);for(const z of F)O.push(z),z.extensionId&&x.add(z.extensionId);const W=R.ordered(N);for(const z of W){if(z.extensionId){if(x.has(z.extensionId))continue;x.add(z.extensionId)}O.push({displayName:z.displayName,extensionId:z.extensionId,provideDocumentFormattingEdits(q,H,K){return z.provideDocumentRangeFormattingEdits(q,q.getFullModelRange(),H,K)}})}return O}class C{static{this._selectors=new y.LinkedList}static setFormatterSelector(R){return{dispose:C._selectors.unshift(R)}}static async select(R,N,O,x){if(R.length===0)return;const F=L.Iterable.first(C._selectors);if(F)return await F(R,N,O,x)}}e.FormattingConflicts=C;async function b(A,R,N,O,x,F,W){const z=A.get(r.IInstantiationService),{documentRangeFormattingEditProvider:q}=A.get(a.ILanguageFeaturesService),H=(0,p.isCodeEditor)(R)?R.getModel():R,K=q.ordered(H),U=await C.select(K,H,O,2);U&&(x.report(U),await z.invokeFunction(w,U,R,N,F,W))}async function w(A,R,N,O,x,F){const W=A.get(i.IEditorWorkerService),z=A.get(d.ILogService),q=A.get(m.IAccessibilitySignalService);let H,K;(0,p.isCodeEditor)(N)?(H=N.getModel(),K=new v.EditorStateCancellationTokenSource(N,5,void 0,x)):(H=N,K=new v.TextModelCancellationTokenSource(N,x));const U=[];let Y=0;for(const te of(0,c.asArray)(O).sort(s.Range.compareRangesUsingStarts))Y>0&&s.Range.areIntersectingOrTouching(U[Y-1],te)?U[Y-1]=s.Range.fromPositions(U[Y-1].getStartPosition(),te.getEndPosition()):Y=U.push(te);const Q=async te=>{z.trace("[format][provideDocumentRangeFormattingEdits] (request)",R.extensionId?.value,te);const se=await R.provideDocumentRangeFormattingEdits(H,te,H.getFormattingOptions(),K.token)||[];return z.trace("[format][provideDocumentRangeFormattingEdits] (response)",R.extensionId?.value,se),se},X=(te,se)=>{if(!te.length||!se.length)return!1;const ue=te.reduce((ge,pe)=>s.Range.plusRange(ge,pe.range),te[0].range);if(!se.some(ge=>s.Range.intersectRanges(ue,ge.range)))return!1;for(const ge of te)for(const pe of se)if(s.Range.intersectRanges(ge.range,pe.range))return!0;return!1},G=[],P=[];try{if(typeof R.provideDocumentRangesFormattingEdits=="function"){z.trace("[format][provideDocumentRangeFormattingEdits] (request)",R.extensionId?.value,U);const te=await R.provideDocumentRangesFormattingEdits(H,U,H.getFormattingOptions(),K.token)||[];z.trace("[format][provideDocumentRangeFormattingEdits] (response)",R.extensionId?.value,te),P.push(te)}else{for(const te of U){if(K.token.isCancellationRequested)return!0;P.push(await Q(te))}for(let te=0;te<U.length;++te)for(let se=te+1;se<U.length;++se){if(K.token.isCancellationRequested)return!0;if(X(P[te],P[se])){const ue=s.Range.plusRange(U[te],U[se]),ge=await Q(ue);U.splice(se,1),U.splice(te,1),U.push(ue),P.splice(se,1),P.splice(te,1),P.push(ge),te=0,se=0}}}for(const te of P){if(K.token.isCancellationRequested)return!0;const se=await W.computeMoreMinimalEdits(H.uri,te);se&&G.push(...se)}}finally{K.dispose()}if(G.length===0)return!1;if((0,p.isCodeEditor)(N))g.FormattingEdit.execute(N,G,!0),N.revealPositionInCenterIfOutsideViewport(N.getPosition(),1);else{const[{range:te}]=G,se=new t.Selection(te.startLineNumber,te.startColumn,te.endLineNumber,te.endColumn);H.pushEditOperations([se],G.map(ue=>({text:ue.text,range:s.Range.lift(ue.range),forceMoveMarkers:!0})),ue=>{for(const{range:ge}of ue)if(s.Range.areIntersectingOrTouching(ge,se))return[new t.Selection(ge.startLineNumber,ge.startColumn,ge.endLineNumber,ge.endColumn)];return null})}return q.playSignal(m.AccessibilitySignal.format,{userGesture:F}),!0}async function S(A,R,N,O,x,F){const W=A.get(r.IInstantiationService),z=A.get(a.ILanguageFeaturesService),q=(0,p.isCodeEditor)(R)?R.getModel():R,H=h(z.documentFormattingEditProvider,z.documentRangeFormattingEditProvider,q),K=await C.select(H,q,N,1);K&&(O.report(K),await W.invokeFunction(D,K,R,N,x,F))}async function D(A,R,N,O,x,F){const W=A.get(i.IEditorWorkerService),z=A.get(m.IAccessibilitySignalService);let q,H;(0,p.isCodeEditor)(N)?(q=N.getModel(),H=new v.EditorStateCancellationTokenSource(N,5,void 0,x)):(q=N,H=new v.TextModelCancellationTokenSource(N,x));let K;try{const U=await R.provideDocumentFormattingEdits(q,q.getFormattingOptions(),H.token);if(K=await W.computeMoreMinimalEdits(q.uri,U),H.token.isCancellationRequested)return!0}finally{H.dispose()}if(!K||K.length===0)return!1;if((0,p.isCodeEditor)(N))g.FormattingEdit.execute(N,K,O!==2),O!==2&&N.revealPositionInCenterIfOutsideViewport(N.getPosition(),1);else{const[{range:U}]=K,Y=new t.Selection(U.startLineNumber,U.startColumn,U.endLineNumber,U.endColumn);q.pushEditOperations([Y],K.map(Q=>({text:Q.text,range:s.Range.lift(Q.range),forceMoveMarkers:!0})),Q=>{for(const{range:X}of Q)if(s.Range.areIntersectingOrTouching(X,Y))return[new t.Selection(X.startLineNumber,X.startColumn,X.endLineNumber,X.endColumn)];return null})}return z.playSignal(m.AccessibilitySignal.format,{userGesture:F}),!0}async function I(A,R,N,O,x,F){const W=R.documentRangeFormattingEditProvider.ordered(N);for(const z of W){const q=await Promise.resolve(z.provideDocumentRangeFormattingEdits(N,O,x,F)).catch(E.onUnexpectedExternalError);if((0,c.isNonEmptyArray)(q))return await A.computeMoreMinimalEdits(N.uri,q)}}async function T(A,R,N,O,x){const F=h(R.documentFormattingEditProvider,R.documentRangeFormattingEditProvider,N);for(const W of F){const z=await Promise.resolve(W.provideDocumentFormattingEdits(N,O,x)).catch(E.onUnexpectedExternalError);if((0,c.isNonEmptyArray)(z))return await A.computeMoreMinimalEdits(N.uri,z)}}function M(A,R,N,O,x,F,W){const z=R.onTypeFormattingEditProvider.ordered(N);return z.length===0||z[0].autoFormatTriggerCharacters.indexOf(x)<0?Promise.resolve(void 0):Promise.resolve(z[0].provideOnTypeFormattingEdits(N,O,x,F,W)).catch(E.onUnexpectedExternalError).then(q=>A.computeMoreMinimalEdits(N.uri,q))}u.CommandsRegistry.registerCommand("_executeFormatRangeProvider",async function(A,...R){const[N,O,x]=R;(0,f.assertType)(_.URI.isUri(N)),(0,f.assertType)(s.Range.isIRange(O));const F=A.get(o.ITextModelService),W=A.get(i.IEditorWorkerService),z=A.get(a.ILanguageFeaturesService),q=await F.createModelReference(N);try{return I(W,z,q.object.textEditorModel,s.Range.lift(O),x,k.CancellationToken.None)}finally{q.dispose()}}),u.CommandsRegistry.registerCommand("_executeFormatDocumentProvider",async function(A,...R){const[N,O]=R;(0,f.assertType)(_.URI.isUri(N));const x=A.get(o.ITextModelService),F=A.get(i.IEditorWorkerService),W=A.get(a.ILanguageFeaturesService),z=await x.createModelReference(N);try{return T(F,W,z.object.textEditorModel,O,k.CancellationToken.None)}finally{z.dispose()}}),u.CommandsRegistry.registerCommand("_executeFormatOnTypeProvider",async function(A,...R){const[N,O,x,F]=R;(0,f.assertType)(_.URI.isUri(N)),(0,f.assertType)(n.Position.isIPosition(O)),(0,f.assertType)(typeof x=="string");const W=A.get(o.ITextModelService),z=A.get(i.IEditorWorkerService),q=A.get(a.ILanguageFeaturesService),H=await W.createModelReference(N);try{return M(z,q,H.object.textEditorModel,n.Position.lift(O),x,F,k.CancellationToken.None)}finally{H.dispose()}})}),define(oe[727],re([1,0,13,18,8,72,2,15,35,143,4,20,116,17,405,335,3,136,24,12,7,96]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r,a,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormatOnType=void 0;let m=class{static{this.ID="editor.contrib.autoFormat"}constructor(S,D,I,T){this._editor=S,this._languageFeaturesService=D,this._workerService=I,this._accessibilitySignalService=T,this._disposables=new y.DisposableStore,this._sessionDisposables=new y.DisposableStore,this._disposables.add(D.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(S.onDidChangeModel(()=>this._update())),this._disposables.add(S.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(S.onDidChangeConfiguration(M=>{M.hasChanged(56)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56)||!this._editor.hasModel())return;const S=this._editor.getModel(),[D]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(S);if(!D||!D.autoFormatTriggerCharacters)return;const I=new v.CharacterSet;for(const T of D.autoFormatTriggerCharacters)I.add(T.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(T=>{const M=T.charCodeAt(T.length-1);I.has(M)&&this._trigger(String.fromCharCode(M))}))}_trigger(S){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const D=this._editor.getModel(),I=this._editor.getPosition(),T=new k.CancellationTokenSource,M=this._editor.onDidChangeModelContent(A=>{if(A.isFlush){T.cancel(),M.dispose();return}for(let R=0,N=A.changes.length;R<N;R++)if(A.changes[R].range.endLineNumber<=I.lineNumber){T.cancel(),M.dispose();return}});(0,i.getOnTypeFormattingEdits)(this._workerService,this._languageFeaturesService,D,I,S,D.getFormattingOptions(),T.token).then(A=>{T.token.isCancellationRequested||(0,c.isNonEmptyArray)(A)&&(this._accessibilitySignalService.playSignal(u.AccessibilitySignal.format,{userGesture:!1}),o.FormattingEdit.execute(this._editor,A,!0))}).finally(()=>{M.dispose()})}};e.FormatOnType=m,e.FormatOnType=m=De([he(1,t.ILanguageFeaturesService),he(2,s.IEditorWorkerService),he(3,u.IAccessibilitySignalService)],m);let h=class{static{this.ID="editor.contrib.formatOnPaste"}constructor(S,D,I){this.editor=S,this._languageFeaturesService=D,this._instantiationService=I,this._callOnDispose=new y.DisposableStore,this._callOnModel=new y.DisposableStore,this._callOnDispose.add(S.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(S.onDidChangeModel(()=>this._update())),this._callOnDispose.add(S.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(D.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:S})=>this._trigger(S)))}_trigger(S){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(i.formatDocumentRangesWithSelectedProvider,this.editor,S,2,d.Progress.None,k.CancellationToken.None,!1).catch(E.onUnexpectedError))}};h=De([he(1,t.ILanguageFeaturesService),he(2,a.IInstantiationService)],h);class C extends f.EditorAction{constructor(){super({id:"editor.action.formatDocument",label:g.localize(772,"Format Document"),alias:"Format Document",precondition:r.ContextKeyExpr.and(n.EditorContextKeys.notInCompositeEditor,n.EditorContextKeys.writable,n.EditorContextKeys.hasDocumentFormattingProvider),kbOpts:{kbExpr:n.EditorContextKeys.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(S,D){if(D.hasModel()){const I=S.get(a.IInstantiationService);await S.get(d.IEditorProgressService).showWhile(I.invokeFunction(i.formatDocumentWithSelectedProvider,D,1,d.Progress.None,k.CancellationToken.None,!0),250)}}}class b extends f.EditorAction{constructor(){super({id:"editor.action.formatSelection",label:g.localize(773,"Format Selection"),alias:"Format Selection",precondition:r.ContextKeyExpr.and(n.EditorContextKeys.writable,n.EditorContextKeys.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:n.EditorContextKeys.editorTextFocus,primary:(0,L.KeyChord)(2089,2084),weight:100},contextMenuOpts:{when:n.EditorContextKeys.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(S,D){if(!D.hasModel())return;const I=S.get(a.IInstantiationService),T=D.getModel(),M=D.getSelections().map(R=>R.isEmpty()?new p.Range(R.startLineNumber,1,R.startLineNumber,T.getLineMaxColumn(R.startLineNumber)):R);await S.get(d.IEditorProgressService).showWhile(I.invokeFunction(i.formatDocumentRangesWithSelectedProvider,D,M,1,d.Progress.None,k.CancellationToken.None,!0),250)}}(0,f.registerEditorContribution)(m.ID,m,2),(0,f.registerEditorContribution)(h.ID,h,2),(0,f.registerEditorAction)(C),(0,f.registerEditorAction)(b),l.CommandsRegistry.registerCommand("editor.action.format",async w=>{const S=w.get(_.ICodeEditorService).getFocusedCodeEditor();if(!S||!S.hasModel())return;const D=w.get(l.ICommandService);S.getSelection().isEmpty()?await D.executeCommand("editor.action.formatDocument"):await D.executeCommand("editor.action.formatSelection")})}),define(oe[276],re([1,0,13,18,8,47,15,17,177]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefinitionsAtPosition=n,e.getDeclarationsAtPosition=s,e.getImplementationsAtPosition=t,e.getTypeDefinitionsAtPosition=i,e.getReferencesAtPosition=o;function v(u,l){return l.uri.scheme===u.uri.scheme?!0:!(0,L.matchesSomeScheme)(l.uri,L.Schemas.walkThroughSnippet,L.Schemas.vscodeChatCodeBlock,L.Schemas.vscodeChatCodeCompareBlock,L.Schemas.vscodeCopilotBackingChatCodeBlock)}async function p(u,l,r,a,d){const h=r.ordered(u,a).map(b=>Promise.resolve(d(b,u,l)).then(void 0,w=>{(0,E.onUnexpectedExternalError)(w)})),C=await Promise.all(h);return(0,c.coalesce)(C.flat()).filter(b=>v(u,b))}function n(u,l,r,a,d){return p(l,r,u,a,(m,h,C)=>m.provideDefinition(h,C,d))}function s(u,l,r,a,d){return p(l,r,u,a,(m,h,C)=>m.provideDeclaration(h,C,d))}function t(u,l,r,a,d){return p(l,r,u,a,(m,h,C)=>m.provideImplementation(h,C,d))}function i(u,l,r,a,d){return p(l,r,u,a,(m,h,C)=>m.provideTypeDefinition(h,C,d))}function o(u,l,r,a,d,m){return p(l,r,u,d,async(h,C,b)=>{const w=(await h.provideReferences(C,b,{includeDeclaration:!0},m))?.filter(D=>v(C,D));if(!a||!w||w.length!==2)return w;const S=(await h.provideReferences(C,b,{includeDeclaration:!1},m))?.filter(D=>v(C,D));return S&&S.length===1?S:w})}async function g(u){const l=await u(),r=new _.ReferencesModel(l,""),a=r.references.map(d=>d.link);return r.dispose(),a}(0,y.registerModelAndPositionCommand)("_executeDefinitionProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=n(a.definitionProvider,l,r,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeDefinitionProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=n(a.definitionProvider,l,r,!0,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeTypeDefinitionProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=i(a.typeDefinitionProvider,l,r,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeTypeDefinitionProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=i(a.typeDefinitionProvider,l,r,!0,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeDeclarationProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=s(a.declarationProvider,l,r,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeDeclarationProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=s(a.declarationProvider,l,r,!0,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeReferenceProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=o(a.referenceProvider,l,r,!1,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeReferenceProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=o(a.referenceProvider,l,r,!1,!0,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeImplementationProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=t(a.implementationProvider,l,r,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeImplementationProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=t(a.implementationProvider,l,r,!0,k.CancellationToken.None);return g(()=>d)})}),define(oe[728],re([1,0,6,2,51,15,35,4,3,12,49,7,31,121,50]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISymbolNavigationService=e.ctxHasSymbols=void 0,e.ctxHasSymbols=new v.RawContextKey("hasSymbols",!1,(0,_.localize)(700,"Whether there are symbol locations that can be navigated via keyboard-only.")),e.ISymbolNavigationService=(0,n.createDecorator)("ISymbolNavigationService");let o=class{constructor(l,r,a,d){this._editorService=r,this._notificationService=a,this._keybindingService=d,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=e.ctxHasSymbols.bindTo(l)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(l){const r=l.parent.parent;if(r.references.length<=1){this.reset();return}this._currentModel=r,this._currentIdx=r.references.indexOf(l),this._ctxHasSymbols.set(!0),this._showMessage();const a=new g(this._editorService),d=a.onDidChange(m=>{if(this._ignoreEditorChange)return;const h=this._editorService.getActiveCodeEditor();if(!h)return;const C=h.getModel(),b=h.getPosition();if(!C||!b)return;let w=!1,S=!1;for(const D of r.references)if((0,E.isEqual)(D.uri,C.uri))w=!0,S=S||f.Range.containsPosition(D.range,b);else if(w)break;(!w||!S)&&this.reset()});this._currentState=(0,k.combinedDisposable)(a,d)}revealNext(l){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const r=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:r.uri,options:{selection:f.Range.collapseToStart(r.range),selectionRevealType:3}},l).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){this._currentMessage?.dispose();const l=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),r=l?(0,_.localize)(701,"Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,l.getLabel()):(0,_.localize)(702,"Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(r)}};o=De([he(0,v.IContextKeyService),he(1,y.ICodeEditorService),he(2,i.INotificationService),he(3,s.IKeybindingService)],o),(0,p.registerSingleton)(e.ISymbolNavigationService,o,1),(0,L.registerEditorCommand)(new class extends L.EditorCommand{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:e.ctxHasSymbols,kbOpts:{weight:100,primary:70}})}runEditorCommand(u,l){return u.get(e.ISymbolNavigationService).revealNext(l)}}),t.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:e.ctxHasSymbols,primary:9,handler(u){u.get(e.ISymbolNavigationService).reset()}});let g=class{constructor(l){this._listener=new Map,this._disposables=new k.DisposableStore,this._onDidChange=new c.Emitter,this.onDidChange=this._onDidChange.event,this._disposables.add(l.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(l.onCodeEditorAdd(this._onDidAddEditor,this)),l.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,k.dispose)(this._listener.values())}_onDidAddEditor(l){this._listener.set(l,(0,k.combinedDisposable)(l.onDidChangeCursorPosition(r=>this._onDidChange.fire({editor:l})),l.onDidChangeModelContent(r=>this._onDidChange.fire({editor:l}))))}_onDidRemoveEditor(l){this._listener.get(l)?.dispose(),this._listener.delete(l)}};g=De([he(0,y.ICodeEditorService)],g)}),define(oe[406],re([1,0,14,18,8,15,17]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverProviderResult=void 0,e.getHoverProviderResultsAsAsyncIterable=v,e.getHoversPromise=p;class f{constructor(t,i,o){this.provider=t,this.hover=i,this.ordinal=o}}e.HoverProviderResult=f;async function _(s,t,i,o,g){const u=await Promise.resolve(s.provideHover(i,o,g)).catch(E.onUnexpectedExternalError);if(!(!u||!n(u)))return new f(s,u,t)}function v(s,t,i,o,g=!1){const l=s.ordered(t,g).map((r,a)=>_(r,a,t,i,o));return c.AsyncIterableObject.fromPromises(l).coalesce()}function p(s,t,i,o,g=!1){return v(s,t,i,o,g).map(u=>u.hover).toPromise()}(0,L.registerModelAndPositionCommand)("_executeHoverProvider",(s,t,i)=>{const o=s.get(y.ILanguageFeaturesService);return p(o.hoverProvider,t,i,k.CancellationToken.None)}),(0,L.registerModelAndPositionCommand)("_executeHoverProvider_recursive",(s,t,i)=>{const o=s.get(y.ILanguageFeaturesService);return p(o.hoverProvider,t,i,k.CancellationToken.None,!0)});function n(s){const t=typeof s.range<"u",i=typeof s.contents<"u"&&s.contents&&s.contents.length>0;return t&&i}}),define(oe[729],re([1,0,2,11,15,183,4,20,34,44,336,3,63,240,706,94]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentationToTabsCommand=e.IndentationToSpacesCommand=e.AutoIndentOnPaste=e.AutoIndentOnPasteCommand=e.ReindentSelectedLinesAction=e.ReindentLinesAction=e.DetectIndentation=e.ChangeTabDisplaySize=e.IndentUsingSpaces=e.IndentUsingTabs=e.ChangeIndentationSizeAction=e.IndentationToTabsAction=e.IndentationToSpacesAction=void 0;class g extends E.EditorAction{static{this.ID="editor.action.indentationToSpaces"}constructor(){super({id:g.ID,label:n.localize(639,"Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:f.EditorContextKeys.writable,metadata:{description:n.localize2(651,"Convert the tab indentation to spaces.")}})}run(A,R){const N=R.getModel();if(!N)return;const O=N.getOptions(),x=R.getSelection();if(!x)return;const F=new I(x,O.tabSize);R.pushUndoStop(),R.executeCommands(this.id,[F]),R.pushUndoStop(),N.updateOptions({insertSpaces:!0})}}e.IndentationToSpacesAction=g;class u extends E.EditorAction{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:u.ID,label:n.localize(640,"Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:f.EditorContextKeys.writable,metadata:{description:n.localize2(652,"Convert the spaces indentation to tabs.")}})}run(A,R){const N=R.getModel();if(!N)return;const O=N.getOptions(),x=R.getSelection();if(!x)return;const F=new T(x,O.tabSize);R.pushUndoStop(),R.executeCommands(this.id,[F]),R.pushUndoStop(),N.updateOptions({insertSpaces:!1})}}e.IndentationToTabsAction=u;class l extends E.EditorAction{constructor(A,R,N){super(N),this.insertSpaces=A,this.displaySizeOnly=R}run(A,R){const N=A.get(s.IQuickInputService),O=A.get(v.IModelService),x=R.getModel();if(!x)return;const F=O.getCreationOptions(x.getLanguageId(),x.uri,x.isForSimpleWidget),W=x.getOptions(),z=[1,2,3,4,5,6,7,8].map(H=>({id:H.toString(),label:H.toString(),description:H===F.tabSize&&H===W.tabSize?n.localize(641,"Configured Tab Size"):H===F.tabSize?n.localize(642,"Default Tab Size"):H===W.tabSize?n.localize(643,"Current Tab Size"):void 0})),q=Math.min(x.getOptions().tabSize-1,7);setTimeout(()=>{N.pick(z,{placeHolder:n.localize(644,"Select Tab Size for Current File"),activeItem:z[q]}).then(H=>{if(H&&x&&!x.isDisposed()){const K=parseInt(H.label,10);this.displaySizeOnly?x.updateOptions({tabSize:K}):x.updateOptions({tabSize:K,indentSize:K,insertSpaces:this.insertSpaces})}})},50)}}e.ChangeIndentationSizeAction=l;class r extends l{static{this.ID="editor.action.indentUsingTabs"}constructor(){super(!1,!1,{id:r.ID,label:n.localize(645,"Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:n.localize2(653,"Use indentation with tabs.")}})}}e.IndentUsingTabs=r;class a extends l{static{this.ID="editor.action.indentUsingSpaces"}constructor(){super(!0,!1,{id:a.ID,label:n.localize(646,"Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:n.localize2(654,"Use indentation with spaces.")}})}}e.IndentUsingSpaces=a;class d extends l{static{this.ID="editor.action.changeTabDisplaySize"}constructor(){super(!0,!0,{id:d.ID,label:n.localize(647,"Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:n.localize2(655,"Change the space size equivalent of the tab.")}})}}e.ChangeTabDisplaySize=d;class m extends E.EditorAction{static{this.ID="editor.action.detectIndentation"}constructor(){super({id:m.ID,label:n.localize(648,"Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:n.localize2(656,"Detect the indentation from content.")}})}run(A,R){const N=A.get(v.IModelService),O=R.getModel();if(!O)return;const x=N.getCreationOptions(O.getLanguageId(),O.uri,O.isForSimpleWidget);O.detectIndentation(x.insertSpaces,x.tabSize)}}e.DetectIndentation=m;class h extends E.EditorAction{constructor(){super({id:"editor.action.reindentlines",label:n.localize(649,"Reindent Lines"),alias:"Reindent Lines",precondition:f.EditorContextKeys.writable,metadata:{description:n.localize2(657,"Reindent the lines of the editor.")}})}run(A,R){const N=A.get(_.ILanguageConfigurationService),O=R.getModel();if(!O)return;const x=(0,i.getReindentEditOperations)(O,N,1,O.getLineCount());x.length>0&&(R.pushUndoStop(),R.executeEdits(this.id,x),R.pushUndoStop())}}e.ReindentLinesAction=h;class C extends E.EditorAction{constructor(){super({id:"editor.action.reindentselectedlines",label:n.localize(650,"Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:f.EditorContextKeys.writable,metadata:{description:n.localize2(658,"Reindent the selected lines of the editor.")}})}run(A,R){const N=A.get(_.ILanguageConfigurationService),O=R.getModel();if(!O)return;const x=R.getSelections();if(x===null)return;const F=[];for(const W of x){let z=W.startLineNumber,q=W.endLineNumber;if(z!==q&&W.endColumn===1&&q--,z===1){if(z===q)continue}else z--;const H=(0,i.getReindentEditOperations)(O,N,z,q);F.push(...H)}F.length>0&&(R.pushUndoStop(),R.executeEdits(this.id,F),R.pushUndoStop())}}e.ReindentSelectedLinesAction=C;class b{constructor(A,R){this._initialSelection=R,this._edits=[],this._selectionId=null;for(const N of A)N.range&&typeof N.text=="string"&&this._edits.push(N)}getEditOperations(A,R){for(const O of this._edits)R.addEditOperation(y.Range.lift(O.range),O.text);let N=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(N=!0,this._selectionId=R.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(N=!0,this._selectionId=R.trackSelection(this._initialSelection,!1))),N||(this._selectionId=R.trackSelection(this._initialSelection))}computeCursorState(A,R){return R.getTrackedSelection(this._selectionId)}}e.AutoIndentOnPasteCommand=b;let w=class{static{this.ID="editor.contrib.autoIndentOnPaste"}constructor(A,R){this.editor=A,this._languageConfigurationService=R,this.callOnDispose=new c.DisposableStore,this.callOnModel=new c.DisposableStore,this.callOnDispose.add(A.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(A.onDidChangeModel(()=>this.update())),this.callOnDispose.add(A.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(12)<4||this.editor.getOption(55))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:A})=>{this.trigger(A)}))}trigger(A){const R=this.editor.getSelections();if(R===null||R.length>1)return;const N=this.editor.getModel();if(!N||this.rangeContainsOnlyWhitespaceCharacters(N,A)||S(N,A)||!N.tokenization.isCheapToTokenize(A.getStartPosition().lineNumber))return;const x=this.editor.getOption(12),{tabSize:F,indentSize:W,insertSpaces:z}=N.getOptions(),q=[],H={shiftIndent:Q=>L.ShiftCommand.shiftIndent(Q,Q.length+1,F,W,z),unshiftIndent:Q=>L.ShiftCommand.unshiftIndent(Q,Q.length+1,F,W,z)};let K=A.startLineNumber;for(;K<=A.endLineNumber;){if(this.shouldIgnoreLine(N,K)){K++;continue}break}if(K>A.endLineNumber)return;let U=N.getLineContent(K);if(!/\S/.test(U.substring(0,A.startColumn-1))){const Q=(0,t.getGoodIndentForLine)(x,N,N.getLanguageId(),K,H,this._languageConfigurationService);if(Q!==null){const X=k.getLeadingWhitespace(U),G=p.getSpaceCnt(Q,F),P=p.getSpaceCnt(X,F);if(G!==P){const te=p.generateIndent(G,F,z);q.push({range:new y.Range(K,1,K,X.length+1),text:te}),U=te+U.substring(X.length)}else{const te=(0,t.getIndentMetadata)(N,K,this._languageConfigurationService);if(te===0||te===8)return}}}const Y=K;for(;K<A.endLineNumber;){if(!/\S/.test(N.getLineContent(K+1))){K++;continue}break}if(K!==A.endLineNumber){const Q={tokenization:{getLineTokens:G=>N.tokenization.getLineTokens(G),getLanguageId:()=>N.getLanguageId(),getLanguageIdAtPosition:(G,P)=>N.getLanguageIdAtPosition(G,P)},getLineContent:G=>G===Y?U:N.getLineContent(G)},X=(0,t.getGoodIndentForLine)(x,Q,N.getLanguageId(),K+1,H,this._languageConfigurationService);if(X!==null){const G=p.getSpaceCnt(X,F),P=p.getSpaceCnt(k.getLeadingWhitespace(N.getLineContent(K+1)),F);if(G!==P){const te=G-P;for(let se=K+1;se<=A.endLineNumber;se++){const ue=N.getLineContent(se),ge=k.getLeadingWhitespace(ue),ce=p.getSpaceCnt(ge,F)+te,ie=p.generateIndent(ce,F,z);ie!==ge&&q.push({range:new y.Range(se,1,se,ge.length+1),text:ie})}}}}if(q.length>0){this.editor.pushUndoStop();const Q=new b(q,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",Q),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(A,R){const N=x=>x.trim().length===0;let O=!0;if(R.startLineNumber===R.endLineNumber){const F=A.getLineContent(R.startLineNumber).substring(R.startColumn-1,R.endColumn-1);O=N(F)}else for(let x=R.startLineNumber;x<=R.endLineNumber;x++){const F=A.getLineContent(x);if(x===R.startLineNumber){const W=F.substring(R.startColumn-1);O=N(W)}else if(x===R.endLineNumber){const W=F.substring(0,R.endColumn-1);O=N(W)}else O=A.getLineFirstNonWhitespaceColumn(x)===0;if(!O)break}return O}shouldIgnoreLine(A,R){A.tokenization.forceTokenization(R);const N=A.getLineFirstNonWhitespaceColumn(R);if(N===0)return!0;const O=A.tokenization.getLineTokens(R);if(O.getCount()>0){const x=O.findTokenIndexAtOffset(N);if(x>=0&&O.getStandardTokenType(x)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};e.AutoIndentOnPaste=w,e.AutoIndentOnPaste=w=De([he(1,_.ILanguageConfigurationService)],w);function S(M,A){const R=N=>(0,o.getStandardTokenTypeAtPosition)(M,N)===2;return R(A.getStartPosition())||R(A.getEndPosition())}function D(M,A,R,N){if(M.getLineCount()===1&&M.getLineMaxColumn(1)===1)return;let O="";for(let F=0;F<R;F++)O+=" ";const x=new RegExp(O,"gi");for(let F=1,W=M.getLineCount();F<=W;F++){let z=M.getLineFirstNonWhitespaceColumn(F);if(z===0&&(z=M.getLineMaxColumn(F)),z===1)continue;const q=new y.Range(F,1,F,z),H=M.getValueInRange(q),K=N?H.replace(/\t/ig,O):H.replace(x," ");A.addEditOperation(q,K)}}class I{constructor(A,R){this.selection=A,this.tabSize=R,this.selectionId=null}getEditOperations(A,R){this.selectionId=R.trackSelection(this.selection),D(A,R,this.tabSize,!0)}computeCursorState(A,R){return R.getTrackedSelection(this.selectionId)}}e.IndentationToSpacesCommand=I;class T{constructor(A,R){this.selection=A,this.tabSize=R,this.selectionId=null}getEditOperations(A,R){this.selectionId=R.trackSelection(this.selection),D(A,R,this.tabSize,!1)}computeCursorState(A,R){return R.getTrackedSelection(this.selectionId)}}e.IndentationToTabsCommand=T,(0,E.registerEditorContribution)(w.ID,w,2),(0,E.registerEditorAction)(g),(0,E.registerEditorAction)(u),(0,E.registerEditorAction)(r),(0,E.registerEditorAction)(a),(0,E.registerEditorAction)(d),(0,E.registerEditorAction)(m),(0,E.registerEditorAction)(h),(0,E.registerEditorAction)(C)}),define(oe[730],re([1,0,15,234,20,3]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExpandLineSelectionAction=void 0;class y extends c.EditorAction{constructor(){super({id:"expandLineSelection",label:L.localize(600,"Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:E.EditorContextKeys.textInputFocus,primary:2090}})}run(_,v,p){if(p=p||{},!v.hasModel())return;const n=v._getViewModel();n.model.pushStackElement(),n.setCursorStates(p.source,3,k.CursorMoveCommands.expandLineSelection(n,n.getCursorStates())),n.revealAllCursors(p.source,!0)}}e.ExpandLineSelectionAction=y,(0,c.registerEditorAction)(y)}),define(oe[731],re([1,0,72,212,15,145,550,275,211,75,9,4,23,20,615,708,616,3,29,34,27]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KebabCaseAction=e.PascalCaseAction=e.CamelCaseAction=e.SnakeCaseAction=e.TitleCaseAction=e.LowerCaseAction=e.UpperCaseAction=e.AbstractCaseAction=e.TransposeAction=e.JoinLinesAction=e.DeleteAllRightAction=e.DeleteAllLeftAction=e.AbstractDeleteAllToBoundaryAction=e.InsertLineAfterAction=e.InsertLineBeforeAction=e.IndentLinesAction=e.DeleteLinesAction=e.TrimTrailingWhitespaceAction=e.DeleteDuplicateLinesAction=e.SortLinesDescendingAction=e.SortLinesAscendingAction=e.AbstractSortLinesAction=e.DuplicateSelectionAction=void 0;class d extends E.EditorAction{constructor(pe,ce){super(ce),this.down=pe}run(pe,ce){if(!ce.hasModel())return;const ie=ce.getSelections().map((B,j)=>({selection:B,index:j,ignore:!1}));ie.sort((B,j)=>n.Range.compareRangesUsingStarts(B.selection,j.selection));let ne=ie[0];for(let B=1;B<ie.length;B++){const j=ie[B];ne.selection.endLineNumber===j.selection.startLineNumber&&(ne.index<j.index?j.ignore=!0:(ne.ignore=!0,ne=j))}const J=[];for(const B of ie)J.push(new i.CopyLinesCommand(B.selection,this.down,B.ignore));ce.pushUndoStop(),ce.executeCommands(this.id,J),ce.pushUndoStop()}}class m extends d{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:u.localize(570,"Copy Line Up"),alias:"Copy Line Up",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(571,"&&Copy Line Up"),order:1}})}}class h extends d{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:u.localize(572,"Copy Line Down"),alias:"Copy Line Down",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(573,"Co&&py Line Down"),order:2}})}}class C extends E.EditorAction{constructor(){super({id:"editor.action.duplicateSelection",label:u.localize(574,"Duplicate Selection"),alias:"Duplicate Selection",precondition:t.EditorContextKeys.writable,menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(575,"&&Duplicate Selection"),order:5}})}run(pe,ce,ie){if(!ce.hasModel())return;const ne=[],J=ce.getSelections(),B=ce.getModel();for(const j of J)if(j.isEmpty())ne.push(new i.CopyLinesCommand(j,!0));else{const V=new s.Selection(j.endLineNumber,j.endColumn,j.endLineNumber,j.endColumn);ne.push(new L.ReplaceCommandThatSelectsText(V,B.getValueInRange(j)))}ce.pushUndoStop(),ce.executeCommands(this.id,ne),ce.pushUndoStop()}}e.DuplicateSelectionAction=C;class b extends E.EditorAction{constructor(pe,ce){super(ce),this.down=pe}run(pe,ce){const ie=pe.get(r.ILanguageConfigurationService),ne=[],J=ce.getSelections()||[],B=ce.getOption(12);for(const j of J)ne.push(new o.MoveLinesCommand(j,this.down,B,ie));ce.pushUndoStop(),ce.executeCommands(this.id,ne),ce.pushUndoStop()}}class w extends b{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:u.localize(576,"Move Line Up"),alias:"Move Line Up",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(577,"Mo&&ve Line Up"),order:3}})}}class S extends b{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:u.localize(578,"Move Line Down"),alias:"Move Line Down",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(579,"Move &&Line Down"),order:4}})}}class D extends E.EditorAction{constructor(pe,ce){super(ce),this.descending=pe}run(pe,ce){if(!ce.hasModel())return;const ie=ce.getModel();let ne=ce.getSelections();ne.length===1&&ne[0].isEmpty()&&(ne=[new s.Selection(1,1,ie.getLineCount(),ie.getLineMaxColumn(ie.getLineCount()))]);for(const B of ne)if(!g.SortLinesCommand.canRun(ce.getModel(),B,this.descending))return;const J=[];for(let B=0,j=ne.length;B<j;B++)J[B]=new g.SortLinesCommand(ne[B],this.descending);ce.pushUndoStop(),ce.executeCommands(this.id,J),ce.pushUndoStop()}}e.AbstractSortLinesAction=D;class I extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:u.localize(580,"Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:t.EditorContextKeys.writable})}}e.SortLinesAscendingAction=I;class T extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:u.localize(581,"Sort Lines Descending"),alias:"Sort Lines Descending",precondition:t.EditorContextKeys.writable})}}e.SortLinesDescendingAction=T;class M extends E.EditorAction{constructor(){super({id:"editor.action.removeDuplicateLines",label:u.localize(582,"Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:t.EditorContextKeys.writable})}run(pe,ce){if(!ce.hasModel())return;const ie=ce.getModel();if(ie.getLineCount()===1&&ie.getLineMaxColumn(1)===1)return;const ne=[],J=[];let B=0,j=!0,V=ce.getSelections();V.length===1&&V[0].isEmpty()&&(V=[new s.Selection(1,1,ie.getLineCount(),ie.getLineMaxColumn(ie.getLineCount()))],j=!1);for(const $ of V){const Z=new Set,ee=[];for(let be=$.startLineNumber;be<=$.endLineNumber;be++){const ve=ie.getLineContent(be);Z.has(ve)||(ee.push(ve),Z.add(ve))}const le=new s.Selection($.startLineNumber,1,$.endLineNumber,ie.getLineMaxColumn($.endLineNumber)),de=$.startLineNumber-B,me=new s.Selection(de,1,de+ee.length-1,ee[ee.length-1].length);ne.push(v.EditOperation.replace(le,ee.join(`
|
|
649
|
+
`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const m of u.keys)this.affectedKeys.add(m);for(const[,m]of u.overrides)for(const h of m)this.affectedKeys.add(h);this._affectsConfigStr=this._marker;for(const m of this.affectedKeys)this._affectsConfigStr+=m+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=i.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(u,l){const r=this._marker+u,a=this._affectsConfigStr.indexOf(r);if(a<0)return!1;const d=a+r.length;if(d>=this._affectsConfigStr.length)return!1;const m=this._affectsConfigStr.charCodeAt(d);if(m!==this._markerCode1&&m!==this._markerCode2)return!1;if(l){const h=this.previousConfiguration?this.previousConfiguration.getValue(u,l,this.previous?.workspace):void 0,C=this.currentConfiguraiton.getValue(u,l,this.currentWorkspace);return!E.equals(h,C)}return!0}}e.ConfigurationChangeEvent=o}),define(oe[709],re([1,0,2,399,108,38]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultConfiguration=void 0;class y extends c.Disposable{get configurationModel(){return this._configurationModel}constructor(_){super(),this.logService=_,this._configurationModel=k.ConfigurationModel.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=k.ConfigurationModel.createEmptyModel(this.logService);const _=L.Registry.as(E.Extensions.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(_),_)}updateConfigurationModel(_,v){const p=this.getConfigurationDefaultOverrides();for(const n of _){const s=p[n],t=v[n];s!==void 0?this._configurationModel.setValue(n,s):t?this._configurationModel.setValue(n,t.default):this._configurationModel.removeValue(n)}}}e.DefaultConfiguration=y}),define(oe[121],re([1,0,139,16,24,38,2,73]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=e.KeybindingsRegistry=void 0;class _{constructor(){this._coreKeybindings=new f.LinkedList,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(n){if(k.OS===1){if(n&&n.win)return n.win}else if(k.OS===2){if(n&&n.mac)return n.mac}else if(n&&n.linux)return n.linux;return n}registerKeybindingRule(n){const s=_.bindToCurrentPlatform(n),t=new y.DisposableStore;if(s&&s.primary){const i=(0,c.decodeKeybinding)(s.primary,k.OS);i&&t.add(this._registerDefaultKeybinding(i,n.id,n.args,n.weight,0,n.when))}if(s&&Array.isArray(s.secondary))for(let i=0,o=s.secondary.length;i<o;i++){const g=s.secondary[i],u=(0,c.decodeKeybinding)(g,k.OS);u&&t.add(this._registerDefaultKeybinding(u,n.id,n.args,n.weight,-i-1,n.when))}return t}registerCommandAndKeybindingRule(n){return(0,y.combinedDisposable)(this.registerKeybindingRule(n),E.CommandsRegistry.registerCommand(n))}_registerDefaultKeybinding(n,s,t,i,o,g){const u=this._coreKeybindings.push({keybinding:n,command:s,commandArgs:t,when:g,weight1:i,weight2:o,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,y.toDisposable)(()=>{u(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(v)),this._cachedMergedKeybindings.slice(0)}}e.KeybindingsRegistry=new _,e.Extensions={EditorModes:"platform.keybindingsRegistry"},L.Registry.add(e.Extensions.EditorModes,e.KeybindingsRegistry);function v(p,n){if(p.weight1!==n.weight1)return p.weight1-n.weight1;if(p.command&&n.command){if(p.command<n.command)return-1;if(p.command>n.command)return 1}return p.weight2-n.weight2}}),define(oe[29],re([1,0,41,30,6,2,73,24,12,7,121]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Action2=e.MenuItemAction=e.SubmenuItemAction=e.MenuRegistry=e.IMenuService=e.MenuId=void 0,e.isIMenuItem=s,e.isISubmenuItem=t,e.registerAction2=r;function s(a){return a.command!==void 0}function t(a){return a.submenu!==void 0}class i{static{this._instances=new Map}static{this.CommandPalette=new i("CommandPalette")}static{this.DebugBreakpointsContext=new i("DebugBreakpointsContext")}static{this.DebugCallStackContext=new i("DebugCallStackContext")}static{this.DebugConsoleContext=new i("DebugConsoleContext")}static{this.DebugVariablesContext=new i("DebugVariablesContext")}static{this.NotebookVariablesContext=new i("NotebookVariablesContext")}static{this.DebugHoverContext=new i("DebugHoverContext")}static{this.DebugWatchContext=new i("DebugWatchContext")}static{this.DebugToolBar=new i("DebugToolBar")}static{this.DebugToolBarStop=new i("DebugToolBarStop")}static{this.DebugCallStackToolbar=new i("DebugCallStackToolbar")}static{this.EditorContext=new i("EditorContext")}static{this.SimpleEditorContext=new i("SimpleEditorContext")}static{this.EditorContent=new i("EditorContent")}static{this.EditorLineNumberContext=new i("EditorLineNumberContext")}static{this.EditorContextCopy=new i("EditorContextCopy")}static{this.EditorContextPeek=new i("EditorContextPeek")}static{this.EditorContextShare=new i("EditorContextShare")}static{this.EditorTitle=new i("EditorTitle")}static{this.EditorTitleRun=new i("EditorTitleRun")}static{this.EditorTitleContext=new i("EditorTitleContext")}static{this.EditorTitleContextShare=new i("EditorTitleContextShare")}static{this.EmptyEditorGroup=new i("EmptyEditorGroup")}static{this.EmptyEditorGroupContext=new i("EmptyEditorGroupContext")}static{this.EditorTabsBarContext=new i("EditorTabsBarContext")}static{this.EditorTabsBarShowTabsSubmenu=new i("EditorTabsBarShowTabsSubmenu")}static{this.EditorTabsBarShowTabsZenModeSubmenu=new i("EditorTabsBarShowTabsZenModeSubmenu")}static{this.EditorActionsPositionSubmenu=new i("EditorActionsPositionSubmenu")}static{this.ExplorerContext=new i("ExplorerContext")}static{this.ExplorerContextShare=new i("ExplorerContextShare")}static{this.ExtensionContext=new i("ExtensionContext")}static{this.GlobalActivity=new i("GlobalActivity")}static{this.CommandCenter=new i("CommandCenter")}static{this.CommandCenterCenter=new i("CommandCenterCenter")}static{this.LayoutControlMenuSubmenu=new i("LayoutControlMenuSubmenu")}static{this.LayoutControlMenu=new i("LayoutControlMenu")}static{this.MenubarMainMenu=new i("MenubarMainMenu")}static{this.MenubarAppearanceMenu=new i("MenubarAppearanceMenu")}static{this.MenubarDebugMenu=new i("MenubarDebugMenu")}static{this.MenubarEditMenu=new i("MenubarEditMenu")}static{this.MenubarCopy=new i("MenubarCopy")}static{this.MenubarFileMenu=new i("MenubarFileMenu")}static{this.MenubarGoMenu=new i("MenubarGoMenu")}static{this.MenubarHelpMenu=new i("MenubarHelpMenu")}static{this.MenubarLayoutMenu=new i("MenubarLayoutMenu")}static{this.MenubarNewBreakpointMenu=new i("MenubarNewBreakpointMenu")}static{this.PanelAlignmentMenu=new i("PanelAlignmentMenu")}static{this.PanelPositionMenu=new i("PanelPositionMenu")}static{this.ActivityBarPositionMenu=new i("ActivityBarPositionMenu")}static{this.MenubarPreferencesMenu=new i("MenubarPreferencesMenu")}static{this.MenubarRecentMenu=new i("MenubarRecentMenu")}static{this.MenubarSelectionMenu=new i("MenubarSelectionMenu")}static{this.MenubarShare=new i("MenubarShare")}static{this.MenubarSwitchEditorMenu=new i("MenubarSwitchEditorMenu")}static{this.MenubarSwitchGroupMenu=new i("MenubarSwitchGroupMenu")}static{this.MenubarTerminalMenu=new i("MenubarTerminalMenu")}static{this.MenubarViewMenu=new i("MenubarViewMenu")}static{this.MenubarHomeMenu=new i("MenubarHomeMenu")}static{this.OpenEditorsContext=new i("OpenEditorsContext")}static{this.OpenEditorsContextShare=new i("OpenEditorsContextShare")}static{this.ProblemsPanelContext=new i("ProblemsPanelContext")}static{this.SCMInputBox=new i("SCMInputBox")}static{this.SCMChangesSeparator=new i("SCMChangesSeparator")}static{this.SCMChangesContext=new i("SCMChangesContext")}static{this.SCMIncomingChanges=new i("SCMIncomingChanges")}static{this.SCMIncomingChangesContext=new i("SCMIncomingChangesContext")}static{this.SCMIncomingChangesSetting=new i("SCMIncomingChangesSetting")}static{this.SCMOutgoingChanges=new i("SCMOutgoingChanges")}static{this.SCMOutgoingChangesContext=new i("SCMOutgoingChangesContext")}static{this.SCMOutgoingChangesSetting=new i("SCMOutgoingChangesSetting")}static{this.SCMIncomingChangesAllChangesContext=new i("SCMIncomingChangesAllChangesContext")}static{this.SCMIncomingChangesHistoryItemContext=new i("SCMIncomingChangesHistoryItemContext")}static{this.SCMOutgoingChangesAllChangesContext=new i("SCMOutgoingChangesAllChangesContext")}static{this.SCMOutgoingChangesHistoryItemContext=new i("SCMOutgoingChangesHistoryItemContext")}static{this.SCMChangeContext=new i("SCMChangeContext")}static{this.SCMResourceContext=new i("SCMResourceContext")}static{this.SCMResourceContextShare=new i("SCMResourceContextShare")}static{this.SCMResourceFolderContext=new i("SCMResourceFolderContext")}static{this.SCMResourceGroupContext=new i("SCMResourceGroupContext")}static{this.SCMSourceControl=new i("SCMSourceControl")}static{this.SCMSourceControlInline=new i("SCMSourceControlInline")}static{this.SCMSourceControlTitle=new i("SCMSourceControlTitle")}static{this.SCMTitle=new i("SCMTitle")}static{this.SearchContext=new i("SearchContext")}static{this.SearchActionMenu=new i("SearchActionContext")}static{this.StatusBarWindowIndicatorMenu=new i("StatusBarWindowIndicatorMenu")}static{this.StatusBarRemoteIndicatorMenu=new i("StatusBarRemoteIndicatorMenu")}static{this.StickyScrollContext=new i("StickyScrollContext")}static{this.TestItem=new i("TestItem")}static{this.TestItemGutter=new i("TestItemGutter")}static{this.TestProfilesContext=new i("TestProfilesContext")}static{this.TestMessageContext=new i("TestMessageContext")}static{this.TestMessageContent=new i("TestMessageContent")}static{this.TestPeekElement=new i("TestPeekElement")}static{this.TestPeekTitle=new i("TestPeekTitle")}static{this.TestCallStack=new i("TestCallStack")}static{this.TouchBarContext=new i("TouchBarContext")}static{this.TitleBarContext=new i("TitleBarContext")}static{this.TitleBarTitleContext=new i("TitleBarTitleContext")}static{this.TunnelContext=new i("TunnelContext")}static{this.TunnelPrivacy=new i("TunnelPrivacy")}static{this.TunnelProtocol=new i("TunnelProtocol")}static{this.TunnelPortInline=new i("TunnelInline")}static{this.TunnelTitle=new i("TunnelTitle")}static{this.TunnelLocalAddressInline=new i("TunnelLocalAddressInline")}static{this.TunnelOriginInline=new i("TunnelOriginInline")}static{this.ViewItemContext=new i("ViewItemContext")}static{this.ViewContainerTitle=new i("ViewContainerTitle")}static{this.ViewContainerTitleContext=new i("ViewContainerTitleContext")}static{this.ViewTitle=new i("ViewTitle")}static{this.ViewTitleContext=new i("ViewTitleContext")}static{this.CommentEditorActions=new i("CommentEditorActions")}static{this.CommentThreadTitle=new i("CommentThreadTitle")}static{this.CommentThreadActions=new i("CommentThreadActions")}static{this.CommentThreadAdditionalActions=new i("CommentThreadAdditionalActions")}static{this.CommentThreadTitleContext=new i("CommentThreadTitleContext")}static{this.CommentThreadCommentContext=new i("CommentThreadCommentContext")}static{this.CommentTitle=new i("CommentTitle")}static{this.CommentActions=new i("CommentActions")}static{this.CommentsViewThreadActions=new i("CommentsViewThreadActions")}static{this.InteractiveToolbar=new i("InteractiveToolbar")}static{this.InteractiveCellTitle=new i("InteractiveCellTitle")}static{this.InteractiveCellDelete=new i("InteractiveCellDelete")}static{this.InteractiveCellExecute=new i("InteractiveCellExecute")}static{this.InteractiveInputExecute=new i("InteractiveInputExecute")}static{this.InteractiveInputConfig=new i("InteractiveInputConfig")}static{this.ReplInputExecute=new i("ReplInputExecute")}static{this.IssueReporter=new i("IssueReporter")}static{this.NotebookToolbar=new i("NotebookToolbar")}static{this.NotebookStickyScrollContext=new i("NotebookStickyScrollContext")}static{this.NotebookCellTitle=new i("NotebookCellTitle")}static{this.NotebookCellDelete=new i("NotebookCellDelete")}static{this.NotebookCellInsert=new i("NotebookCellInsert")}static{this.NotebookCellBetween=new i("NotebookCellBetween")}static{this.NotebookCellListTop=new i("NotebookCellTop")}static{this.NotebookCellExecute=new i("NotebookCellExecute")}static{this.NotebookCellExecuteGoTo=new i("NotebookCellExecuteGoTo")}static{this.NotebookCellExecutePrimary=new i("NotebookCellExecutePrimary")}static{this.NotebookDiffCellInputTitle=new i("NotebookDiffCellInputTitle")}static{this.NotebookDiffCellMetadataTitle=new i("NotebookDiffCellMetadataTitle")}static{this.NotebookDiffCellOutputsTitle=new i("NotebookDiffCellOutputsTitle")}static{this.NotebookOutputToolbar=new i("NotebookOutputToolbar")}static{this.NotebookOutlineFilter=new i("NotebookOutlineFilter")}static{this.NotebookOutlineActionMenu=new i("NotebookOutlineActionMenu")}static{this.NotebookEditorLayoutConfigure=new i("NotebookEditorLayoutConfigure")}static{this.NotebookKernelSource=new i("NotebookKernelSource")}static{this.BulkEditTitle=new i("BulkEditTitle")}static{this.BulkEditContext=new i("BulkEditContext")}static{this.TimelineItemContext=new i("TimelineItemContext")}static{this.TimelineTitle=new i("TimelineTitle")}static{this.TimelineTitleContext=new i("TimelineTitleContext")}static{this.TimelineFilterSubMenu=new i("TimelineFilterSubMenu")}static{this.AccountsContext=new i("AccountsContext")}static{this.SidebarTitle=new i("SidebarTitle")}static{this.PanelTitle=new i("PanelTitle")}static{this.AuxiliaryBarTitle=new i("AuxiliaryBarTitle")}static{this.AuxiliaryBarHeader=new i("AuxiliaryBarHeader")}static{this.TerminalInstanceContext=new i("TerminalInstanceContext")}static{this.TerminalEditorInstanceContext=new i("TerminalEditorInstanceContext")}static{this.TerminalNewDropdownContext=new i("TerminalNewDropdownContext")}static{this.TerminalTabContext=new i("TerminalTabContext")}static{this.TerminalTabEmptyAreaContext=new i("TerminalTabEmptyAreaContext")}static{this.TerminalStickyScrollContext=new i("TerminalStickyScrollContext")}static{this.WebviewContext=new i("WebviewContext")}static{this.InlineCompletionsActions=new i("InlineCompletionsActions")}static{this.InlineEditsActions=new i("InlineEditsActions")}static{this.InlineEditActions=new i("InlineEditActions")}static{this.NewFile=new i("NewFile")}static{this.MergeInput1Toolbar=new i("MergeToolbar1Toolbar")}static{this.MergeInput2Toolbar=new i("MergeToolbar2Toolbar")}static{this.MergeBaseToolbar=new i("MergeBaseToolbar")}static{this.MergeInputResultToolbar=new i("MergeToolbarResultToolbar")}static{this.InlineSuggestionToolbar=new i("InlineSuggestionToolbar")}static{this.InlineEditToolbar=new i("InlineEditToolbar")}static{this.ChatContext=new i("ChatContext")}static{this.ChatCodeBlock=new i("ChatCodeblock")}static{this.ChatCompareBlock=new i("ChatCompareBlock")}static{this.ChatMessageTitle=new i("ChatMessageTitle")}static{this.ChatExecute=new i("ChatExecute")}static{this.ChatExecuteSecondary=new i("ChatExecuteSecondary")}static{this.ChatInputSide=new i("ChatInputSide")}static{this.AccessibleView=new i("AccessibleView")}static{this.MultiDiffEditorFileToolbar=new i("MultiDiffEditorFileToolbar")}static{this.DiffEditorHunkToolbar=new i("DiffEditorHunkToolbar")}static{this.DiffEditorSelectionToolbar=new i("DiffEditorSelectionToolbar")}constructor(d){if(i._instances.has(d))throw new TypeError(`MenuId with identifier '${d}' already exists. Use MenuId.for(ident) or a unique identifier`);i._instances.set(d,this),this.id=d}}e.MenuId=i,e.IMenuService=(0,v.createDecorator)("menuService");class o{static{this._all=new Map}static for(d){let m=this._all.get(d);return m||(m=new o(d),this._all.set(d,m)),m}static merge(d){const m=new Set;for(const h of d)h instanceof o&&m.add(h.id);return m}constructor(d){this.id=d,this.has=m=>m===d}}e.MenuRegistry=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new E.MicrotaskEmitter({merge:o.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(a){return this._commands.set(a.id,a),this._onDidChangeMenu.fire(o.for(i.CommandPalette)),(0,L.toDisposable)(()=>{this._commands.delete(a.id)&&this._onDidChangeMenu.fire(o.for(i.CommandPalette))})}getCommand(a){return this._commands.get(a)}getCommands(){const a=new Map;return this._commands.forEach((d,m)=>a.set(m,d)),a}appendMenuItem(a,d){let m=this._menuItems.get(a);m||(m=new y.LinkedList,this._menuItems.set(a,m));const h=m.push(d);return this._onDidChangeMenu.fire(o.for(a)),(0,L.toDisposable)(()=>{h(),this._onDidChangeMenu.fire(o.for(a))})}appendMenuItems(a){const d=new L.DisposableStore;for(const{id:m,item:h}of a)d.add(this.appendMenuItem(m,h));return d}getMenuItems(a){let d;return this._menuItems.has(a)?d=[...this._menuItems.get(a)]:d=[],a===i.CommandPalette&&this._appendImplicitItems(d),d}_appendImplicitItems(a){const d=new Set;for(const m of a)s(m)&&(d.add(m.command.id),m.alt&&d.add(m.alt.id));this._commands.forEach((m,h)=>{d.has(h)||a.push({command:m})})}};class g extends c.SubmenuAction{constructor(d,m,h){super(`submenuitem.${d.submenu.id}`,typeof d.title=="string"?d.title:d.title.value,h,"submenu"),this.item=d,this.hideActions=m}}e.SubmenuItemAction=g;let u=n=class{static label(d,m){return m?.renderShortTitle&&d.shortTitle?typeof d.shortTitle=="string"?d.shortTitle:d.shortTitle.value:typeof d.title=="string"?d.title:d.title.value}constructor(d,m,h,C,b,w,S){this.hideActions=C,this.menuKeybinding=b,this._commandService=S,this.id=d.id,this.label=n.label(d,h),this.tooltip=(typeof d.tooltip=="string"?d.tooltip:d.tooltip?.value)??"",this.enabled=!d.precondition||w.contextMatchesRules(d.precondition),this.checked=void 0;let D;if(d.toggled){const I=d.toggled.condition?d.toggled:{condition:d.toggled};this.checked=w.contextMatchesRules(I.condition),this.checked&&I.tooltip&&(this.tooltip=typeof I.tooltip=="string"?I.tooltip:I.tooltip.value),this.checked&&k.ThemeIcon.isThemeIcon(I.icon)&&(D=I.icon),this.checked&&I.title&&(this.label=typeof I.title=="string"?I.title:I.title.value)}D||(D=k.ThemeIcon.isThemeIcon(d.icon)?d.icon:void 0),this.item=d,this.alt=m?new n(m,void 0,h,C,void 0,w,S):void 0,this._options=h,this.class=D&&k.ThemeIcon.asClassName(D)}run(...d){let m=[];return this._options?.arg&&(m=[...m,this._options.arg]),this._options?.shouldForwardArgs&&(m=[...m,...d]),this._commandService.executeCommand(this.id,...m)}};e.MenuItemAction=u,e.MenuItemAction=u=n=De([he(5,_.IContextKeyService),he(6,f.ICommandService)],u);class l{constructor(d){this.desc=d}}e.Action2=l;function r(a){const d=[],m=new a,{f1:h,menu:C,keybinding:b,...w}=m.desc;if(f.CommandsRegistry.getCommand(w.id))throw new Error(`Cannot register two commands with the same id: ${w.id}`);if(d.push(f.CommandsRegistry.registerCommand({id:w.id,handler:(S,...D)=>m.run(S,...D),metadata:w.metadata})),Array.isArray(C))for(const S of C)d.push(e.MenuRegistry.appendMenuItem(S.id,{command:{...w,precondition:S.precondition===null?void 0:w.precondition},...S}));else C&&d.push(e.MenuRegistry.appendMenuItem(C.id,{command:{...w,precondition:C.precondition===null?void 0:w.precondition},...C}));if(h&&(d.push(e.MenuRegistry.appendMenuItem(i.CommandPalette,{command:w,when:w.precondition})),d.push(e.MenuRegistry.addCommand(w))),Array.isArray(b))for(const S of b)d.push(p.KeybindingsRegistry.registerKeybindingRule({...S,id:w.id,when:w.precondition?_.ContextKeyExpr.and(w.precondition,S.when):S.when}));else b&&d.push(p.KeybindingsRegistry.registerKeybindingRule({...b,id:w.id,when:w.precondition?_.ContextKeyExpr.and(w.precondition,b.when):b.when}));return{dispose(){(0,L.dispose)(d)}}}}),define(oe[710],re([1,0,48,228,3,29]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleTabFocusModeAction=void 0;class y extends L.Action2{static{this.ID="editor.action.toggleTabFocusMode"}constructor(){super({id:y.ID,title:E.localize2(323,"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:E.localize2(324,"Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const v=!k.TabFocus.getTabFocusMode();k.TabFocus.setTabFocusMode(v),v?(0,c.alert)(E.localize(321,"Pressing Tab will now move focus to the next focusable element")):(0,c.alert)(E.localize(322,"Pressing Tab will now insert the tab character"))}}e.ToggleTabFocusModeAction=y,(0,L.registerAction2)(y)}),define(oe[400],re([1,0,259,636,12,121,3,2,5]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextScopedReplaceInput=e.ContextScopedFindInput=e.historyNavigationVisible=void 0,e.registerAndCreateHistoryNavigationContext=i,e.historyNavigationVisible=new E.RawContextKey("suggestWidgetVisible",!1,(0,y.localize)(1130,"Whether suggestion are visible"));const v="historyNavigationWidgetFocus",p="historyNavigationForwardsEnabled",n="historyNavigationBackwardsEnabled";let s;const t=[];function i(u,l){if(t.includes(l))throw new Error("Cannot register the same widget multiple times");t.push(l);const r=new f.DisposableStore,a=new E.RawContextKey(v,!1).bindTo(u),d=new E.RawContextKey(p,!0).bindTo(u),m=new E.RawContextKey(n,!0).bindTo(u),h=()=>{a.set(!0),s=l},C=()=>{a.set(!1),s===l&&(s=void 0)};return(0,_.isActiveElement)(l.element)&&h(),r.add(l.onDidFocus(()=>h())),r.add(l.onDidBlur(()=>C())),r.add((0,f.toDisposable)(()=>{t.splice(t.indexOf(l),1),C()})),{historyNavigationForwardsEnablement:d,historyNavigationBackwardsEnablement:m,dispose(){r.dispose()}}}let o=class extends c.FindInput{constructor(l,r,a,d){super(l,r,a);const m=this._register(d.createScoped(this.inputBox.element));this._register(i(m,this.inputBox))}};e.ContextScopedFindInput=o,e.ContextScopedFindInput=o=De([he(3,E.IContextKeyService)],o);let g=class extends k.ReplaceInput{constructor(l,r,a,d,m=!1){super(l,r,m,a);const h=this._register(d.createScoped(this.inputBox.element));this._register(i(h,this.inputBox))}};e.ContextScopedReplaceInput=g,e.ContextScopedReplaceInput=g=De([he(3,E.IContextKeyService)],g),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:E.ContextKeyExpr.and(E.ContextKeyExpr.has(v),E.ContextKeyExpr.equals(n,!0),E.ContextKeyExpr.not("isComposing"),e.historyNavigationVisible.isEqualTo(!1)),primary:16,secondary:[528],handler:u=>{s?.showPreviousValue()}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:E.ContextKeyExpr.and(E.ContextKeyExpr.has(v),E.ContextKeyExpr.equals(p,!0),E.ContextKeyExpr.not("isComposing"),e.historyNavigationVisible.isEqualTo(!1)),primary:18,secondary:[530],handler:u=>{s?.showNextValue()}})}),define(oe[153],re([1,0,18,8,82,2,59,19,22,9,4,78,134,3,29,24,12,17,400]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickSuggestionsOptions=e.CompletionItemModel=e.CompletionOptions=e.CompletionItem=e.suggestWidgetStatusbarMenu=e.Context=void 0,e.getSnippetSuggestSupport=m,e.provideSuggestionItems=C,e.getSuggestionComparator=I,e.showSimpleSuggestions=T,e.Context={Visible:l.historyNavigationVisible,HasFocusedSuggestion:new g.RawContextKey("suggestWidgetHasFocusedSuggestion",!1,(0,t.localize)(388,"Whether any suggestion is focused")),DetailsVisible:new g.RawContextKey("suggestWidgetDetailsVisible",!1,(0,t.localize)(389,"Whether suggestion details are visible")),MultipleSuggestions:new g.RawContextKey("suggestWidgetMultipleSuggestions",!1,(0,t.localize)(390,"Whether there are multiple suggestions to pick from")),MakesTextEdit:new g.RawContextKey("suggestionMakesTextEdit",!0,(0,t.localize)(391,"Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new g.RawContextKey("acceptSuggestionOnEnter",!0,(0,t.localize)(392,"Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new g.RawContextKey("suggestionHasInsertAndReplaceRange",!1,(0,t.localize)(393,"Whether the current suggestion has insert and replace behaviour")),InsertMode:new g.RawContextKey("suggestionInsertMode",void 0,{type:"string",description:(0,t.localize)(394,"Whether the default behaviour is to insert or replace")}),CanResolve:new g.RawContextKey("suggestionCanResolve",!1,(0,t.localize)(395,"Whether the current suggestion supports to resolve further details"))},e.suggestWidgetStatusbarMenu=new i.MenuId("suggestWidgetStatusBar");class r{constructor(R,N,O,x){this.position=R,this.completion=N,this.container=O,this.provider=x,this.isInvalid=!1,this.score=E.FuzzyScore.Default,this.distance=0,this.textLabel=typeof N.label=="string"?N.label:N.label?.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=N.sortText&&N.sortText.toLowerCase(),this.filterTextLow=N.filterText&&N.filterText.toLowerCase(),this.extensionId=N.extensionId,p.Range.isIRange(N.range)?(this.editStart=new v.Position(N.range.startLineNumber,N.range.startColumn),this.editInsertEnd=new v.Position(N.range.endLineNumber,N.range.endColumn),this.editReplaceEnd=new v.Position(N.range.endLineNumber,N.range.endColumn),this.isInvalid=this.isInvalid||p.Range.spansMultipleLines(N.range)||N.range.startLineNumber!==R.lineNumber):(this.editStart=new v.Position(N.range.insert.startLineNumber,N.range.insert.startColumn),this.editInsertEnd=new v.Position(N.range.insert.endLineNumber,N.range.insert.endColumn),this.editReplaceEnd=new v.Position(N.range.replace.endLineNumber,N.range.replace.endColumn),this.isInvalid=this.isInvalid||p.Range.spansMultipleLines(N.range.insert)||p.Range.spansMultipleLines(N.range.replace)||N.range.insert.startLineNumber!==R.lineNumber||N.range.replace.startLineNumber!==R.lineNumber||N.range.insert.startColumn!==N.range.replace.startColumn),typeof x.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return this._resolveDuration!==void 0}get resolveDuration(){return this._resolveDuration!==void 0?this._resolveDuration:-1}async resolve(R){if(!this._resolveCache){const N=R.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),O=new y.StopWatch(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,R)).then(x=>{Object.assign(this.completion,x),this._resolveDuration=O.elapsed()},x=>{(0,k.isCancellationError)(x)&&(this._resolveCache=void 0,this._resolveDuration=void 0)}).finally(()=>{N.dispose()})}return this._resolveCache}}e.CompletionItem=r;class a{static{this.default=new a}constructor(R=2,N=new Set,O=new Set,x=new Map,F=!0){this.snippetSortOrder=R,this.kindFilter=N,this.providerFilter=O,this.providerItemsToReuse=x,this.showDeprecated=F}}e.CompletionOptions=a;let d;function m(){return d}class h{constructor(R,N,O,x){this.items=R,this.needsClipboard=N,this.durations=O,this.disposable=x}}e.CompletionItemModel=h;async function C(A,R,N,O=a.default,x={triggerKind:0},F=c.CancellationToken.None){const W=new y.StopWatch;N=N.clone();const z=R.getWordAtPosition(N),q=z?new p.Range(N.lineNumber,z.startColumn,N.lineNumber,z.endColumn):p.Range.fromPositions(N),H={replace:q,insert:q.setEndPosition(N.lineNumber,N.column)},K=[],U=new L.DisposableStore,Y=[];let Q=!1;const X=(P,te,se)=>{let ue=!1;if(!te)return ue;for(const ge of te.suggestions)if(!O.kindFilter.has(ge.kind)){if(!O.showDeprecated&&ge?.tags?.includes(1))continue;ge.range||(ge.range=H),ge.sortText||(ge.sortText=typeof ge.label=="string"?ge.label:ge.label.label),!Q&&ge.insertTextRules&&ge.insertTextRules&4&&(Q=s.SnippetParser.guessNeedsClipboard(ge.insertText)),K.push(new r(N,ge,te,P)),ue=!0}return(0,L.isDisposable)(te)&&U.add(te),Y.push({providerName:P._debugDisplayName??"unknown_provider",elapsedProvider:te.duration??-1,elapsedOverall:se.elapsed()}),ue},G=(async()=>{if(!d||O.kindFilter.has(27))return;const P=O.providerItemsToReuse.get(d);if(P){P.forEach(ue=>K.push(ue));return}if(O.providerFilter.size>0&&!O.providerFilter.has(d))return;const te=new y.StopWatch,se=await d.provideCompletionItems(R,N,x,F);X(d,se,te)})();for(const P of A.orderedGroups(R)){let te=!1;if(await Promise.all(P.map(async se=>{if(O.providerItemsToReuse.has(se)){const ue=O.providerItemsToReuse.get(se);ue.forEach(ge=>K.push(ge)),te=te||ue.length>0;return}if(!(O.providerFilter.size>0&&!O.providerFilter.has(se)))try{const ue=new y.StopWatch,ge=await se.provideCompletionItems(R,N,x,F);te=X(se,ge,ue)||te}catch(ue){(0,k.onUnexpectedExternalError)(ue)}})),te||F.isCancellationRequested)break}return await G,F.isCancellationRequested?(U.dispose(),Promise.reject(new k.CancellationError)):new h(K.sort(I(O.snippetSortOrder)),Q,{entries:Y,elapsed:W.elapsed()},U)}function b(A,R){if(A.sortTextLow&&R.sortTextLow){if(A.sortTextLow<R.sortTextLow)return-1;if(A.sortTextLow>R.sortTextLow)return 1}return A.textLabel<R.textLabel?-1:A.textLabel>R.textLabel?1:A.completion.kind-R.completion.kind}function w(A,R){if(A.completion.kind!==R.completion.kind){if(A.completion.kind===27)return-1;if(R.completion.kind===27)return 1}return b(A,R)}function S(A,R){if(A.completion.kind!==R.completion.kind){if(A.completion.kind===27)return 1;if(R.completion.kind===27)return-1}return b(A,R)}const D=new Map;D.set(0,w),D.set(2,S),D.set(1,b);function I(A){return D.get(A)}o.CommandsRegistry.registerCommand("_executeCompletionItemProvider",async(A,...R)=>{const[N,O,x,F]=R;(0,f.assertType)(_.URI.isUri(N)),(0,f.assertType)(v.Position.isIPosition(O)),(0,f.assertType)(typeof x=="string"||!x),(0,f.assertType)(typeof F=="number"||!F);const{completionProvider:W}=A.get(u.ILanguageFeaturesService),z=await A.get(n.ITextModelService).createModelReference(N);try{const q={incomplete:!1,suggestions:[]},H=[],K=z.object.textEditorModel.validatePosition(O),U=await C(W,z.object.textEditorModel,K,void 0,{triggerCharacter:x??void 0,triggerKind:x?1:0});for(const Y of U.items)H.length<(F??0)&&H.push(Y.resolve(c.CancellationToken.None)),q.incomplete=q.incomplete||Y.container.incomplete,q.suggestions.push(Y.completion);try{return await Promise.all(H),q}finally{setTimeout(()=>U.disposable.dispose(),100)}}finally{z.dispose()}});function T(A,R){A.getContribution("editor.contrib.suggestController")?.triggerSuggest(new Set().add(R),void 0,!0)}class M{static isAllOff(R){return R.other==="off"&&R.comments==="off"&&R.strings==="off"}static isAllOn(R){return R.other==="on"&&R.comments==="on"&&R.strings==="on"}static valueFor(R,N){switch(N){case 1:return R.comments;case 2:return R.strings;default:return R.other}}}e.QuickSuggestionsOptions=M}),define(oe[711],re([1,0,16,3,12,178,121,270,63]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const v={weight:200,when:E.ContextKeyExpr.and(E.ContextKeyExpr.equals(f.quickInputTypeContextKeyValue,"quickPick"),f.inQuickInputContext),metadata:{description:(0,k.localize)(1078,"Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")}};function p(g,u={}){y.KeybindingsRegistry.registerCommandAndKeybindingRule({...v,...g,secondary:s(g.primary,g.secondary??[],u)})}const n=c.isMacintosh?256:2048;function s(g,u,l={}){return l.withAltMod&&u.push(512+g),l.withCtrlMod&&(u.push(n+g),l.withAltMod&&u.push(512+n+g)),l.withCmdMod&&c.isMacintosh&&(u.push(2048+g),l.withCtrlMod&&u.push(2304+g),l.withAltMod&&(u.push(2560+g),l.withCtrlMod&&u.push(2816+g))),u}function t(g,u){return l=>{const r=l.get(_.IQuickInputService).currentQuickInput;if(r)return u&&r.quickNavigate?r.focus(u):r.focus(g)}}p({id:"quickInput.pageNext",primary:12,handler:t(_.QuickPickFocus.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),p({id:"quickInput.pagePrevious",primary:11,handler:t(_.QuickPickFocus.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),p({id:"quickInput.first",primary:n+14,handler:t(_.QuickPickFocus.First)},{withAltMod:!0,withCmdMod:!0}),p({id:"quickInput.last",primary:n+13,handler:t(_.QuickPickFocus.Last)},{withAltMod:!0,withCmdMod:!0}),p({id:"quickInput.next",primary:18,handler:t(_.QuickPickFocus.Next)},{withCtrlMod:!0}),p({id:"quickInput.previous",primary:16,handler:t(_.QuickPickFocus.Previous)},{withCtrlMod:!0});const i=(0,k.localize)(1079,"If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),o=(0,k.localize)(1080,"If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");c.isMacintosh?(p({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:t(_.QuickPickFocus.NextSeparator,_.QuickPickFocus.Next),metadata:{description:i}}),p({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:t(_.QuickPickFocus.NextSeparator)},{withCtrlMod:!0}),p({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:t(_.QuickPickFocus.PreviousSeparator,_.QuickPickFocus.Previous),metadata:{description:o}}),p({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:t(_.QuickPickFocus.PreviousSeparator)},{withCtrlMod:!0})):(p({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:t(_.QuickPickFocus.NextSeparator,_.QuickPickFocus.Next),metadata:{description:i}}),p({id:"quickInput.nextSeparator",primary:2578,handler:t(_.QuickPickFocus.NextSeparator)}),p({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:t(_.QuickPickFocus.PreviousSeparator,_.QuickPickFocus.Previous),metadata:{description:o}}),p({id:"quickInput.previousSeparator",primary:2576,handler:t(_.QuickPickFocus.PreviousSeparator)})),p({id:"quickInput.acceptInBackground",when:E.ContextKeyExpr.and(v.when,E.ContextKeyExpr.or(L.InputFocusedContext.negate(),f.endOfQuickInputBoxContext)),primary:17,weight:250,handler:g=>{g.get(_.IQuickInputService).currentQuickInput?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0})}),define(oe[154],re([1,0,13,2,38]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessRegistry=e.Extensions=e.DefaultQuickAccessFilterValue=void 0;var L;(function(f){f[f.PRESERVE=0]="PRESERVE",f[f.LAST=1]="LAST"})(L||(e.DefaultQuickAccessFilterValue=L={})),e.Extensions={Quickaccess:"workbench.contributions.quickaccess"};class y{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(_){return _.prefix.length===0?this.defaultProvider=_:this.providers.push(_),this.providers.sort((v,p)=>p.prefix.length-v.prefix.length),(0,k.toDisposable)(()=>{this.providers.splice(this.providers.indexOf(_),1),this.defaultProvider===_&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return(0,c.coalesce)([this.defaultProvider,...this.providers])}getQuickAccessProvider(_){return _&&this.providers.find(p=>_.startsWith(p.prefix))||void 0||this.defaultProvider}}e.QuickAccessRegistry=y,E.Registry.add(e.Extensions.Quickaccess,new y)}),define(oe[712],re([1,0,3,38,2,31,154,63]),function(ae,e,c,k,E,L,y,f){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e.HelpQuickAccessProvider=void 0;let v=class{static{_=this}static{this.PREFIX="?"}constructor(n,s){this.quickInputService=n,this.keybindingService=s,this.registry=k.Registry.as(y.Extensions.Quickaccess)}provide(n){const s=new E.DisposableStore;return s.add(n.onDidAccept(()=>{const[t]=n.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),s.add(n.onDidChangeValue(t=>{const i=this.registry.getQuickAccessProvider(t.substr(_.PREFIX.length));i&&i.prefix&&i.prefix!==_.PREFIX&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),n.items=this.getQuickAccessProviders().filter(t=>t.prefix!==_.PREFIX),s}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((s,t)=>s.prefix.localeCompare(t.prefix)).flatMap(s=>this.createPicks(s))}createPicks(n){return n.helpEntries.map(s=>{const t=s.prefix||n.prefix,i=t||"\u2026";return{prefix:t,label:i,keybinding:s.commandId?this.keybindingService.lookupKeybinding(s.commandId):void 0,ariaLabel:(0,c.localize)(1088,"{0}, {1}",i,s.description),description:s.description}})}};e.HelpQuickAccessProvider=v,e.HelpQuickAccessProvider=v=_=De([he(0,f.IQuickInputService),he(1,L.IKeybindingService)],v)}),define(oe[713],re([1,0,38,154,106,712]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),c.Registry.as(k.Extensions.Quickaccess).registerQuickAccessProvider({ctor:L.HelpQuickAccessProvider,prefix:"",helpEntries:[{description:E.QuickHelpNLS.helpQuickAccessActionLabel}]})}),define(oe[714],re([1,0,14,18,6,2,7,154,63,38]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessController=void 0;let p=class extends L.Disposable{constructor(s,t){super(),this.quickInputService=s,this.instantiationService=t,this.registry=v.Registry.as(f.Extensions.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(s="",t){this.doShowOrPick(s,!1,t)}doShowOrPick(s,t,i){const[o,g]=this.getOrInstantiateProvider(s,i?.enabledProviderPrefixes),u=this.visibleQuickAccess,l=u?.descriptor;if(u&&g&&l===g){s!==g.prefix&&!i?.preserveValue&&(u.picker.value=s),this.adjustValueSelection(u.picker,g,i);return}if(g&&!i?.preserveValue){let b;if(u&&l&&l!==g){const w=u.value.substr(l.prefix.length);w&&(b=`${g.prefix}${w}`)}if(!b){const w=o?.defaultFilterValue;w===f.DefaultQuickAccessFilterValue.LAST?b=this.lastAcceptedPickerValues.get(g):typeof w=="string"&&(b=`${g.prefix}${w}`)}typeof b=="string"&&(s=b)}const r=u?.picker?.valueSelection,a=u?.picker?.value,d=new L.DisposableStore,m=d.add(this.quickInputService.createQuickPick());m.value=s,this.adjustValueSelection(m,g,i),m.placeholder=i?.placeholder??g?.placeholder,m.quickNavigate=i?.quickNavigateConfiguration,m.hideInput=!!m.quickNavigate&&!u,(typeof i?.itemActivation=="number"||i?.quickNavigateConfiguration)&&(m.itemActivation=i?.itemActivation??_.ItemActivation.SECOND),m.contextKey=g?.contextKey,m.filterValue=b=>b.substring(g?g.prefix.length:0);let h;t&&(h=new c.DeferredPromise,d.add(E.Event.once(m.onWillAccept)(b=>{b.veto(),m.hide()}))),d.add(this.registerPickerListeners(m,o,g,s,i));const C=d.add(new k.CancellationTokenSource);if(o&&d.add(o.provide(m,C.token,i?.providerOptions)),E.Event.once(m.onDidHide)(()=>{m.selectedItems.length===0&&C.cancel(),d.dispose(),h?.complete(m.selectedItems.slice(0))}),m.show(),r&&a===s&&(m.valueSelection=r),t)return h?.p}adjustValueSelection(s,t,i){let o;i?.preserveValue?o=[s.value.length,s.value.length]:o=[t?.prefix.length??0,s.value.length],s.valueSelection=o}registerPickerListeners(s,t,i,o,g){const u=new L.DisposableStore,l=this.visibleQuickAccess={picker:s,descriptor:i,value:o};return u.add((0,L.toDisposable)(()=>{l===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),u.add(s.onDidChangeValue(r=>{const[a]=this.getOrInstantiateProvider(r,g?.enabledProviderPrefixes);a!==t?this.show(r,{enabledProviderPrefixes:g?.enabledProviderPrefixes,preserveValue:!0,providerOptions:g?.providerOptions}):l.value=r})),i&&u.add(s.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,s.value)})),u}getOrInstantiateProvider(s,t){const i=this.registry.getQuickAccessProvider(s);if(!i||t&&!t?.includes(i.prefix))return[void 0,void 0];let o=this.mapProviderToDescriptor.get(i);return o||(o=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,o)),[o,i]}};e.QuickAccessController=p,e.QuickAccessController=p=De([he(0,_.IQuickInputService),he(1,y.IInstantiationService)],p)}),define(oe[715],re([1,0,26,30,110,540]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SeverityIcon=void 0;var L;(function(y){function f(_){switch(_){case E.default.Ignore:return"severity-ignore "+k.ThemeIcon.asClassName(c.Codicon.info);case E.default.Info:return k.ThemeIcon.asClassName(c.Codicon.info);case E.default.Warning:return k.ThemeIcon.asClassName(c.Codicon.warning);case E.default.Error:return k.ThemeIcon.asClassName(c.Codicon.error);default:return""}}y.className=f})(L||(e.SeverityIcon=L={}))}),define(oe[100],re([1,0,6,2,19,642,7]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageService=e.AbstractStorageService=e.WillSaveStateReason=e.IStorageService=e.TARGET_KEY=void 0,e.loadKeyTargets=_,e.TARGET_KEY="__$__targetStorageMarker",e.IStorageService=(0,y.createDecorator)("storageService");var f;(function(n){n[n.NONE=0]="NONE",n[n.SHUTDOWN=1]="SHUTDOWN"})(f||(e.WillSaveStateReason=f={}));function _(n){const s=n.get(e.TARGET_KEY);if(s)try{return JSON.parse(s)}catch{}return Object.create(null)}class v extends k.Disposable{static{this.DEFAULT_FLUSH_INTERVAL=60*1e3}constructor(s={flushInterval:v.DEFAULT_FLUSH_INTERVAL}){super(),this.options=s,this._onDidChangeValue=this._register(new c.PauseableEmitter),this._onDidChangeTarget=this._register(new c.PauseableEmitter),this._onWillSaveState=this._register(new c.Emitter),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(s,t,i){return c.Event.filter(this._onDidChangeValue.event,o=>o.scope===s&&(t===void 0||o.key===t),i)}emitDidChangeValue(s,t){const{key:i,external:o}=t;if(i===e.TARGET_KEY){switch(s){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:s})}else this._onDidChangeValue.fire({scope:s,key:i,target:this.getKeyTargets(s)[i],external:o})}get(s,t,i){return this.getStorage(t)?.get(s,i)}getBoolean(s,t,i){return this.getStorage(t)?.getBoolean(s,i)}getNumber(s,t,i){return this.getStorage(t)?.getNumber(s,i)}store(s,t,i,o,g=!1){if((0,E.isUndefinedOrNull)(t)){this.remove(s,i,g);return}this.withPausedEmitters(()=>{this.updateKeyTarget(s,i,o),this.getStorage(i)?.set(s,t,g)})}remove(s,t,i=!1){this.withPausedEmitters(()=>{this.updateKeyTarget(s,t,void 0),this.getStorage(t)?.delete(s,i)})}withPausedEmitters(s){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{s()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(s,t,i,o=!1){const g=this.getKeyTargets(t);typeof i=="number"?g[s]!==i&&(g[s]=i,this.getStorage(t)?.set(e.TARGET_KEY,JSON.stringify(g),o)):typeof g[s]=="number"&&(delete g[s],this.getStorage(t)?.set(e.TARGET_KEY,JSON.stringify(g),o))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(s){switch(s){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(s){const t=this.getStorage(s);return t?_(t):Object.create(null)}}e.AbstractStorageService=v;class p extends v{constructor(){super(),this.applicationStorage=this._register(new L.Storage(new L.InMemoryStorageDatabase,{hint:L.StorageHint.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new L.Storage(new L.InMemoryStorageDatabase,{hint:L.StorageHint.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new L.Storage(new L.InMemoryStorageDatabase,{hint:L.StorageHint.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage(s=>this.emitDidChangeValue(1,s))),this._register(this.profileStorage.onDidChangeStorage(s=>this.emitDidChangeValue(0,s))),this._register(this.applicationStorage.onDidChangeStorage(s=>this.emitDidChangeValue(-1,s)))}getStorage(s){switch(s){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}e.InMemoryStorageService=p}),define(oe[716],re([1,0,6,45,4,381,49,7,100,52,5]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensCache=e.ICodeLensCache=void 0,e.ICodeLensCache=(0,f.createDecorator)("ICodeLensCache");class n{constructor(i,o){this.lineCount=i,this.data=o}}let s=class{constructor(i){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new k.LRUCache(20,.75);const o="codelens/cache";(0,p.runWhenWindowIdle)(v.mainWindow,()=>i.remove(o,1));const g="codelens/cache2",u=i.get(g,1,"{}");this._deserialize(u);const l=c.Event.filter(i.onWillSaveState,r=>r.reason===_.WillSaveStateReason.SHUTDOWN);c.Event.once(l)(r=>{i.store(g,this._serialize(),1,1)})}put(i,o){const g=o.lenses.map(r=>({range:r.symbol.range,command:r.symbol.command&&{id:"",title:r.symbol.command?.title}})),u=new L.CodeLensModel;u.add({lenses:g,dispose:()=>{}},this._fakeProvider);const l=new n(i.getLineCount(),u);this._cache.set(i.uri.toString(),l)}get(i){const o=this._cache.get(i.uri.toString());return o&&o.lineCount===i.getLineCount()?o.data:void 0}delete(i){this._cache.delete(i.uri.toString())}_serialize(){const i=Object.create(null);for(const[o,g]of this._cache){const u=new Set;for(const l of g.data.lenses)u.add(l.symbol.range.startLineNumber);i[o]={lineCount:g.lineCount,lines:[...u.values()]}}return JSON.stringify(i)}_deserialize(i){try{const o=JSON.parse(i);for(const g in o){const u=o[g],l=[];for(const a of u.lines)l.push({range:new E.Range(a,1,a,11)});const r=new L.CodeLensModel;r.add({lenses:l,dispose(){}},this._fakeProvider),this._cache.set(g,new n(u.lineCount,r))}}catch{}}};e.CodeLensCache=s,e.CodeLensCache=s=De([he(0,_.IStorageService)],s),(0,y.registerSingleton)(e.ICodeLensCache,s,1)}),define(oe[401],re([1,0,14,2,45,223,28,27,49,7,100]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ISuggestMemoryService=e.SuggestMemoryService=e.PrefixMemory=e.LRUMemory=e.NoMemory=e.Memory=void 0;class s{constructor(l){this.name=l}select(l,r,a){if(a.length===0)return 0;const d=a[0].score[0];for(let m=0;m<a.length;m++){const{score:h,completion:C}=a[m];if(h[0]!==d)break;if(C.preselect)return m}return 0}}e.Memory=s;class t extends s{constructor(){super("first")}memorize(l,r,a){}toJSON(){}fromJSON(){}}e.NoMemory=t;class i extends s{constructor(){super("recentlyUsed"),this._cache=new E.LRUCache(300,.66),this._seq=0}memorize(l,r,a){const d=`${l.getLanguageId()}/${a.textLabel}`;this._cache.set(d,{touch:this._seq++,type:a.completion.kind,insertText:a.completion.insertText})}select(l,r,a){if(a.length===0)return 0;const d=l.getLineContent(r.lineNumber).substr(r.column-10,r.column-1);if(/\s$/.test(d))return super.select(l,r,a);const m=a[0].score[0];let h=-1,C=-1,b=-1;for(let w=0;w<a.length&&a[w].score[0]===m;w++){const S=`${l.getLanguageId()}/${a[w].textLabel}`,D=this._cache.peek(S);if(D&&D.touch>b&&D.type===a[w].completion.kind&&D.insertText===a[w].completion.insertText&&(b=D.touch,C=w),a[w].completion.preselect&&h===-1)return h=w}return C!==-1?C:h!==-1?h:0}toJSON(){return this._cache.toJSON()}fromJSON(l){this._cache.clear();const r=0;for(const[a,d]of l)d.touch=r,d.type=typeof d.type=="number"?d.type:y.CompletionItemKinds.fromString(d.type),this._cache.set(a,d);this._seq=this._cache.size}}e.LRUMemory=i;class o extends s{constructor(){super("recentlyUsedByPrefix"),this._trie=L.TernarySearchTree.forStrings(),this._seq=0}memorize(l,r,a){const{word:d}=l.getWordUntilPosition(r),m=`${l.getLanguageId()}/${d}`;this._trie.set(m,{type:a.completion.kind,insertText:a.completion.insertText,touch:this._seq++})}select(l,r,a){const{word:d}=l.getWordUntilPosition(r);if(!d)return super.select(l,r,a);const m=`${l.getLanguageId()}/${d}`;let h=this._trie.get(m);if(h||(h=this._trie.findSubstr(m)),h)for(let C=0;C<a.length;C++){const{kind:b,insertText:w}=a[C].completion;if(b===h.type&&w===h.insertText)return C}return super.select(l,r,a)}toJSON(){const l=[];return this._trie.forEach((r,a)=>l.push([a,r])),l.sort((r,a)=>-(r[1].touch-a[1].touch)).forEach((r,a)=>r[1].touch=a),l.slice(0,200)}fromJSON(l){if(this._trie.clear(),l.length>0){this._seq=l[0][1].touch+1;for(const[r,a]of l)a.type=typeof a.type=="number"?a.type:y.CompletionItemKinds.fromString(a.type),this._trie.set(r,a)}}}e.PrefixMemory=o;let g=class{static{n=this}static{this._strategyCtors=new Map([["recentlyUsedByPrefix",o],["recentlyUsed",i],["first",t]])}static{this._storagePrefix="suggest/memories"}constructor(l,r){this._storageService=l,this._configService=r,this._disposables=new k.DisposableStore,this._persistSoon=new c.RunOnceScheduler(()=>this._saveState(),500),this._disposables.add(l.onWillSaveState(a=>{a.reason===p.WillSaveStateReason.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(l,r,a){this._withStrategy(l,r).memorize(l,r,a),this._persistSoon.schedule()}select(l,r,a){return this._withStrategy(l,r).select(l,r,a)}_withStrategy(l,r){const a=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:l.getLanguageIdAtPosition(r.lineNumber,r.column),resource:l.uri});if(this._strategy?.name!==a){this._saveState();const d=n._strategyCtors.get(a)||t;this._strategy=new d;try{const h=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,C=this._storageService.get(`${n._storagePrefix}/${a}`,h);C&&this._strategy.fromJSON(JSON.parse(C))}catch{}}return this._strategy}_saveState(){if(this._strategy){const r=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,a=JSON.stringify(this._strategy);this._storageService.store(`${n._storagePrefix}/${this._strategy.name}`,a,r,1)}}};e.SuggestMemoryService=g,e.SuggestMemoryService=g=n=De([he(0,p.IStorageService),he(1,f.IConfigurationService)],g),e.ISuggestMemoryService=(0,v.createDecorator)("ISuggestMemories"),(0,_.registerSingleton)(e.ISuggestMemoryService,g,1)}),define(oe[402],re([1,0,14,6,2,29,24,12,41,100,13,3,31]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s){"use strict";var t,i;Object.defineProperty(e,"__esModule",{value:!0}),e.MenuService=void 0,e.createConfigureKeybindingAction=d;let o=class{constructor(h,C,b){this._commandService=h,this._keybindingService=C,this._hiddenStates=new g(b)}createMenu(h,C,b){return new r(h,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...b},this._commandService,this._keybindingService,C)}getMenuActions(h,C,b){const w=new r(h,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...b},this._commandService,this._keybindingService,C),S=w.getActions(b);return w.dispose(),S}resetHiddenStates(h){this._hiddenStates.reset(h)}};e.MenuService=o,e.MenuService=o=De([he(0,y.ICommandService),he(1,s.IKeybindingService),he(2,v.IStorageService)],o);let g=class{static{t=this}static{this._key="menu.hiddenCommands"}constructor(h){this._storageService=h,this._disposables=new E.DisposableStore,this._onDidChange=new k.Emitter,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const C=h.get(t._key,0,"{}");this._data=JSON.parse(C)}catch{this._data=Object.create(null)}this._disposables.add(h.onDidChangeValue(0,t._key,this._disposables)(()=>{if(!this._ignoreChangeEvent)try{const C=h.get(t._key,0,"{}");this._data=JSON.parse(C)}catch(C){console.log("FAILED to read storage after UPDATE",C)}this._onDidChange.fire()}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(h,C){return this._hiddenByDefaultCache.get(`${h.id}/${C}`)??!1}setDefaultState(h,C,b){this._hiddenByDefaultCache.set(`${h.id}/${C}`,b)}isHidden(h,C){const b=this._isHiddenByDefault(h,C),w=this._data[h.id]?.includes(C)??!1;return b?!w:w}updateHidden(h,C,b){this._isHiddenByDefault(h,C)&&(b=!b);const S=this._data[h.id];if(b)S?S.indexOf(C)<0&&S.push(C):this._data[h.id]=[C];else if(S){const D=S.indexOf(C);D>=0&&(0,p.removeFastWithoutKeepingOrder)(S,D),S.length===0&&delete this._data[h.id]}this._persist()}reset(h){if(h===void 0)this._data=Object.create(null),this._persist();else{for(const{id:C}of h)this._data[C]&&delete this._data[C];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const h=JSON.stringify(this._data);this._storageService.store(t._key,h,0,0)}finally{this._ignoreChangeEvent=!1}}};g=t=De([he(0,v.IStorageService)],g);class u{constructor(h,C){this._id=h,this._collectContextKeysForSubmenus=C,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const h=this._sort(L.MenuRegistry.getMenuItems(this._id));let C;for(const b of h){const w=b.group||"";(!C||C[0]!==w)&&(C=[w,[]],this._menuGroups.push(C)),C[1].push(b),this._collectContextKeys(b)}}_sort(h){return h}_collectContextKeys(h){if(u._fillInKbExprKeys(h.when,this._structureContextKeys),(0,L.isIMenuItem)(h)){if(h.command.precondition&&u._fillInKbExprKeys(h.command.precondition,this._preconditionContextKeys),h.command.toggled){const C=h.command.toggled.condition||h.command.toggled;u._fillInKbExprKeys(C,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&L.MenuRegistry.getMenuItems(h.submenu).forEach(this._collectContextKeys,this)}static _fillInKbExprKeys(h,C){if(h)for(const b of h.keys())C.add(b)}}let l=i=class extends u{constructor(h,C,b,w,S,D){super(h,b),this._hiddenStates=C,this._commandService=w,this._keybindingService=S,this._contextKeyService=D,this.refresh()}createActionGroups(h){const C=[];for(const b of this._menuGroups){const[w,S]=b;let D;for(const I of S)if(this._contextKeyService.contextMatchesRules(I.when)){const T=(0,L.isIMenuItem)(I);T&&this._hiddenStates.setDefaultState(this._id,I.command.id,!!I.isHiddenByDefault);const M=a(this._id,T?I.command:I,this._hiddenStates);if(T){const A=d(this._commandService,this._keybindingService,I.command.id,I.when);(D??=[]).push(new L.MenuItemAction(I.command,I.alt,h,M,A,this._contextKeyService,this._commandService))}else{const A=new i(I.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(h),R=_.Separator.join(...A.map(N=>N[1]));R.length>0&&(D??=[]).push(new L.SubmenuItemAction(I,M,R))}}D&&D.length>0&&C.push([w,D])}return C}_sort(h){return h.sort(i._compareMenuItems)}static _compareMenuItems(h,C){const b=h.group,w=C.group;if(b!==w){if(b){if(!w)return-1}else return 1;if(b==="navigation")return-1;if(w==="navigation")return 1;const I=b.localeCompare(w);if(I!==0)return I}const S=h.order||0,D=C.order||0;return S<D?-1:S>D?1:i._compareTitles((0,L.isIMenuItem)(h)?h.command.title:h.title,(0,L.isIMenuItem)(C)?C.command.title:C.title)}static _compareTitles(h,C){const b=typeof h=="string"?h:h.original,w=typeof C=="string"?C:C.original;return b.localeCompare(w)}};l=i=De([he(3,y.ICommandService),he(4,s.IKeybindingService),he(5,f.IContextKeyService)],l);let r=class{constructor(h,C,b,w,S,D){this._disposables=new E.DisposableStore,this._menuInfo=new l(h,C,b.emitEventsForSubmenuChanges,w,S,D);const I=new c.RunOnceScheduler(()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})},b.eventDebounceDelay);this._disposables.add(I),this._disposables.add(L.MenuRegistry.onDidChangeMenu(R=>{R.has(h)&&I.schedule()}));const T=this._disposables.add(new E.DisposableStore),M=R=>{let N=!1,O=!1,x=!1;for(const F of R)if(N=N||F.isStructuralChange,O=O||F.isEnablementChange,x=x||F.isToggleChange,N&&O&&x)break;return{menu:this,isStructuralChange:N,isEnablementChange:O,isToggleChange:x}},A=()=>{T.add(D.onDidChangeContext(R=>{const N=R.affectsSome(this._menuInfo.structureContextKeys),O=R.affectsSome(this._menuInfo.preconditionContextKeys),x=R.affectsSome(this._menuInfo.toggledContextKeys);(N||O||x)&&this._onDidChange.fire({menu:this,isStructuralChange:N,isEnablementChange:O,isToggleChange:x})})),T.add(C.onDidChange(R=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})}))};this._onDidChange=new k.DebounceEmitter({onWillAddFirstListener:A,onDidRemoveLastListener:T.clear.bind(T),delay:b.eventDebounceDelay,merge:M}),this.onDidChange=this._onDidChange.event}getActions(h){return this._menuInfo.createActionGroups(h)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};r=De([he(3,y.ICommandService),he(4,s.IKeybindingService),he(5,f.IContextKeyService)],r);function a(m,h,C){const b=(0,L.isISubmenuItem)(h)?h.submenu.id:h.id,w=typeof h.title=="string"?h.title:h.title.value,S=(0,_.toAction)({id:`hide/${m.id}/${b}`,label:(0,n.localize)(1165,"Hide '{0}'",w),run(){C.updateHidden(m,b,!0)}}),D=(0,_.toAction)({id:`toggle/${m.id}/${b}`,label:w,get checked(){return!C.isHidden(m,b)},run(){C.updateHidden(m,b,!!this.checked)}});return{hide:S,toggle:D,get isHidden(){return!D.checked}}}function d(m,h,C,b=void 0,w=!0){return(0,_.toAction)({id:`configureKeybinding/${C}`,label:(0,n.localize)(1166,"Configure Keybinding"),enabled:w,run(){const D=!!!h.lookupKeybinding(C)&&b?b.serialize():void 0;m.executeCommand("workbench.action.openGlobalKeybindings",`@command:${C}`+(D?` +when:${D}`:""))}})}}),define(oe[66],re([1,0,7]),function(ae,e,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITelemetryService=void 0,e.ITelemetryService=(0,c.createDecorator)("telemetryService")}),define(oe[15],re([1,0,3,22,35,9,44,78,29,24,12,7,121,38,66,19,61,5]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectAllCommand=e.RedoCommand=e.UndoCommand=e.EditorExtensionsRegistry=e.EditorAction2=e.MultiEditorAction=e.EditorAction=e.EditorCommand=e.ProxyCommand=e.MultiCommand=e.Command=void 0,e.registerModelAndPositionCommand=b,e.registerEditorCommand=w,e.registerEditorAction=S,e.registerMultiEditorAction=D,e.registerInstantiatedEditorAction=I,e.registerEditorContribution=T;class l{constructor(x){this.id=x.id,this.precondition=x.precondition,this._kbOpts=x.kbOpts,this._menuOpts=x.menuOpts,this.metadata=x.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const x=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const F of x){let W=F.kbExpr;this.precondition&&(W?W=p.ContextKeyExpr.and(W,this.precondition):W=this.precondition);const z={id:this.id,weight:F.weight,args:F.args,when:W,primary:F.primary,secondary:F.secondary,win:F.win,linux:F.linux,mac:F.mac};s.KeybindingsRegistry.registerKeybindingRule(z)}}v.CommandsRegistry.registerCommand({id:this.id,handler:(x,F)=>this.runCommand(x,F),metadata:this.metadata})}_registerMenuItem(x){_.MenuRegistry.appendMenuItem(x.menuId,{group:x.group,command:{id:this.id,title:x.title,icon:x.icon,precondition:this.precondition},when:x.when,order:x.order})}}e.Command=l;class r extends l{constructor(){super(...arguments),this._implementations=[]}addImplementation(x,F,W,z){return this._implementations.push({priority:x,name:F,implementation:W,when:z}),this._implementations.sort((q,H)=>H.priority-q.priority),{dispose:()=>{for(let q=0;q<this._implementations.length;q++)if(this._implementations[q].implementation===W){this._implementations.splice(q,1);return}}}}runCommand(x,F){const W=x.get(g.ILogService),z=x.get(p.IContextKeyService);W.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const q of this._implementations){if(q.when){const K=z.getContext((0,u.getActiveElement)());if(!q.when.evaluate(K))continue}const H=q.implementation(x,F);if(H)return W.trace(`Command '${this.id}' was handled by '${q.name}'.`),typeof H=="boolean"?void 0:H}W.trace(`The Command '${this.id}' was not handled by any implementation.`)}}e.MultiCommand=r;class a extends l{constructor(x,F){super(F),this.command=x}runCommand(x,F){return this.command.runCommand(x,F)}}e.ProxyCommand=a;class d extends l{static bindToContribution(x){return class extends d{constructor(W){super(W),this._callback=W.handler}runEditorCommand(W,z,q){const H=x(z);H&&this._callback(H,q)}}}static runEditorCommand(x,F,W,z){const q=x.get(E.ICodeEditorService),H=q.getFocusedCodeEditor()||q.getActiveCodeEditor();if(H)return H.invokeWithinContext(K=>{if(K.get(p.IContextKeyService).contextMatchesRules(W??void 0))return z(K,H,F)})}runCommand(x,F){return d.runEditorCommand(x,F,this.precondition,(W,z,q)=>this.runEditorCommand(W,z,q))}}e.EditorCommand=d;class m extends d{static convertOptions(x){let F;Array.isArray(x.menuOpts)?F=x.menuOpts:x.menuOpts?F=[x.menuOpts]:F=[];function W(z){return z.menuId||(z.menuId=_.MenuId.EditorContext),z.title||(z.title=x.label),z.when=p.ContextKeyExpr.and(x.precondition,z.when),z}return Array.isArray(x.contextMenuOpts)?F.push(...x.contextMenuOpts.map(W)):x.contextMenuOpts&&F.push(W(x.contextMenuOpts)),x.menuOpts=F,x}constructor(x){super(m.convertOptions(x)),this.label=x.label,this.alias=x.alias}runEditorCommand(x,F,W){return this.reportTelemetry(x,F),this.run(x,F,W||{})}reportTelemetry(x,F){x.get(i.ITelemetryService).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}e.EditorAction=m;class h extends m{constructor(){super(...arguments),this._implementations=[]}addImplementation(x,F){return this._implementations.push([x,F]),this._implementations.sort((W,z)=>z[0]-W[0]),{dispose:()=>{for(let W=0;W<this._implementations.length;W++)if(this._implementations[W][1]===F){this._implementations.splice(W,1);return}}}}run(x,F,W){for(const z of this._implementations){const q=z[1](x,F,W);if(q)return typeof q=="boolean"?void 0:q}}}e.MultiEditorAction=h;class C extends _.Action2{run(x,...F){const W=x.get(E.ICodeEditorService),z=W.getFocusedCodeEditor()||W.getActiveCodeEditor();if(z)return z.invokeWithinContext(q=>{const H=q.get(p.IContextKeyService),K=q.get(g.ILogService);if(!H.contextMatchesRules(this.desc.precondition??void 0)){K.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize());return}return this.runEditorCommand(q,z,...F)})}}e.EditorAction2=C;function b(O,x){v.CommandsRegistry.registerCommand(O,function(F,...W){const z=F.get(n.IInstantiationService),[q,H]=W;(0,o.assertType)(k.URI.isUri(q)),(0,o.assertType)(L.Position.isIPosition(H));const K=F.get(y.IModelService).getModel(q);if(K){const U=L.Position.lift(H);return z.invokeFunction(x,K,U,...W.slice(2))}return F.get(f.ITextModelService).createModelReference(q).then(U=>new Promise((Y,Q)=>{try{const X=z.invokeFunction(x,U.object.textEditorModel,L.Position.lift(H),W.slice(2));Y(X)}catch(X){Q(X)}}).finally(()=>{U.dispose()}))})}function w(O){return R.INSTANCE.registerEditorCommand(O),O}function S(O){const x=new O;return R.INSTANCE.registerEditorAction(x),x}function D(O){return R.INSTANCE.registerEditorAction(O),O}function I(O){R.INSTANCE.registerEditorAction(O)}function T(O,x,F){R.INSTANCE.registerEditorContribution(O,x,F)}var M;(function(O){function x(H){return R.INSTANCE.getEditorCommand(H)}O.getEditorCommand=x;function F(){return R.INSTANCE.getEditorActions()}O.getEditorActions=F;function W(){return R.INSTANCE.getEditorContributions()}O.getEditorContributions=W;function z(H){return R.INSTANCE.getEditorContributions().filter(K=>H.indexOf(K.id)>=0)}O.getSomeEditorContributions=z;function q(){return R.INSTANCE.getDiffEditorContributions()}O.getDiffEditorContributions=q})(M||(e.EditorExtensionsRegistry=M={}));const A={EditorCommonContributions:"editor.contributions"};class R{static{this.INSTANCE=new R}constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(x,F,W){this.editorContributions.push({id:x,ctor:F,instantiation:W})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(x){x.register(),this.editorActions.push(x)}getEditorActions(){return this.editorActions}registerEditorCommand(x){x.register(),this.editorCommands[x.id]=x}getEditorCommand(x){return this.editorCommands[x]||null}}t.Registry.add(A.EditorCommonContributions,R.INSTANCE);function N(O){return O.register(),O}e.UndoCommand=N(new r({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:_.MenuId.MenubarEditMenu,group:"1_do",title:c.localize(1822,"&&Undo"),order:1},{menuId:_.MenuId.CommandPalette,group:"",title:c.localize(1823,"Undo"),order:1}]})),N(new a(e.UndoCommand,{id:"default:undo",precondition:void 0})),e.RedoCommand=N(new r({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:_.MenuId.MenubarEditMenu,group:"1_do",title:c.localize(1824,"&&Redo"),order:2},{menuId:_.MenuId.CommandPalette,group:"",title:c.localize(1825,"Redo"),order:1}]})),N(new a(e.RedoCommand,{id:"default:redo",precondition:void 0})),e.SelectAllCommand=N(new r({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:_.MenuId.MenubarSelectionMenu,group:"1_basic",title:c.localize(1826,"&&Select All"),order:1},{menuId:_.MenuId.CommandPalette,group:"",title:c.localize(1827,"Select All"),order:1}]}))}),define(oe[212],re([1,0,3,64,19,48,15,35,561,76,233,234,275,9,4,20,12,121,5,211]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoreEditingCommands=e.CoreNavigationCommands=e.RevealLine_=e.EditorScroll_=e.CoreEditorCommand=void 0;const a=0;class d extends y.EditorCommand{runEditorCommand(R,N,O){const x=N._getViewModel();x&&this.runCoreEditorCommand(x,O||{})}}e.CoreEditorCommand=d;var m;(function(A){const R=function(O){if(!E.isObject(O))return!1;const x=O;return!(!E.isString(x.to)||!E.isUndefined(x.by)&&!E.isString(x.by)||!E.isUndefined(x.value)&&!E.isNumber(x.value)||!E.isUndefined(x.revealCursor)&&!E.isBoolean(x.revealCursor))};A.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:R,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},A.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},A.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"};function N(O){let x;switch(O.to){case A.RawDirection.Up:x=1;break;case A.RawDirection.Right:x=2;break;case A.RawDirection.Down:x=3;break;case A.RawDirection.Left:x=4;break;default:return null}let F;switch(O.by){case A.RawUnit.Line:F=1;break;case A.RawUnit.WrappedLine:F=2;break;case A.RawUnit.Page:F=3;break;case A.RawUnit.HalfPage:F=4;break;case A.RawUnit.Editor:F=5;break;case A.RawUnit.Column:F=6;break;default:F=2}const W=Math.floor(O.value||1),z=!!O.revealCursor;return{direction:x,unit:F,value:W,revealCursor:z,select:!!O.select}}A.parse=N})(m||(e.EditorScroll_=m={}));var h;(function(A){const R=function(N){if(!E.isObject(N))return!1;const O=N;return!(!E.isNumber(O.lineNumber)&&!E.isString(O.lineNumber)||!E.isUndefined(O.at)&&!E.isString(O.at))};A.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed.\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:R,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},A.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(h||(e.RevealLine_=h={}));class C{constructor(R){R.addImplementation(1e4,"code-editor",(N,O)=>{const x=N.get(f.ICodeEditorService).getFocusedCodeEditor();return x&&x.hasTextFocus()?this._runEditorCommand(N,x,O):!1}),R.addImplementation(1e3,"generic-dom-input-textarea",(N,O)=>{const x=(0,l.getActiveElement)();return x&&["input","textarea"].indexOf(x.tagName.toLowerCase())>=0?(this.runDOMCommand(x),!0):!1}),R.addImplementation(0,"generic-dom",(N,O)=>{const x=N.get(f.ICodeEditorService).getActiveCodeEditor();return x?(x.focus(),this._runEditorCommand(N,x,O)):!1})}_runEditorCommand(R,N,O){const x=this.runEditorCommand(R,N,O);return x||!0}}var b;(function(A){class R extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){if(!ue.position)return;se.model.pushStackElement(),se.setCursorStates(ue.source,3,[n.CursorMoveCommands.moveTo(se,se.getPrimaryCursorState(),this._inSelectionMode,ue.position,ue.viewPosition)])&&ue.revealType!==2&&se.revealAllCursors(ue.source,!0,!0)}}A.MoveTo=(0,y.registerEditorCommand)(new R({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),A.MoveToSelect=(0,y.registerEditorCommand)(new R({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class N extends d{runCoreEditorCommand(se,ue){se.model.pushStackElement();const ge=this._getColumnSelectResult(se,se.getPrimaryCursorState(),se.getCursorColumnSelectData(),ue);ge!==null&&(se.setCursorStates(ue.source,3,ge.viewStates.map(pe=>v.CursorState.fromViewState(pe))),se.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:ge.fromLineNumber,fromViewVisualColumn:ge.fromVisualColumn,toViewLineNumber:ge.toLineNumber,toViewVisualColumn:ge.toVisualColumn}),ge.reversed?se.revealTopMostCursor(ue.source):se.revealBottomMostCursor(ue.source))}}A.ColumnSelect=(0,y.registerEditorCommand)(new class extends N{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(te,se,ue,ge){if(typeof ge.position>"u"||typeof ge.viewPosition>"u"||typeof ge.mouseColumn>"u")return null;const pe=te.model.validatePosition(ge.position),ce=te.coordinatesConverter.validateViewPosition(new t.Position(ge.viewPosition.lineNumber,ge.viewPosition.column),pe),ie=ge.doColumnSelect?ue.fromViewLineNumber:ce.lineNumber,ne=ge.doColumnSelect?ue.fromViewVisualColumn:ge.mouseColumn-1;return _.ColumnSelection.columnSelect(te.cursorConfig,te,ie,ne,ce.lineNumber,ge.mouseColumn-1)}}),A.CursorColumnSelectLeft=(0,y.registerEditorCommand)(new class extends N{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(te,se,ue,ge){return _.ColumnSelection.columnSelectLeft(te.cursorConfig,te,ue)}}),A.CursorColumnSelectRight=(0,y.registerEditorCommand)(new class extends N{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(te,se,ue,ge){return _.ColumnSelection.columnSelectRight(te.cursorConfig,te,ue)}});class O extends N{constructor(se){super(se),this._isPaged=se.isPaged}_getColumnSelectResult(se,ue,ge,pe){return _.ColumnSelection.columnSelectUp(se.cursorConfig,se,ge,this._isPaged)}}A.CursorColumnSelectUp=(0,y.registerEditorCommand)(new O({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3600,linux:{primary:0}}})),A.CursorColumnSelectPageUp=(0,y.registerEditorCommand)(new O({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3595,linux:{primary:0}}}));class x extends N{constructor(se){super(se),this._isPaged=se.isPaged}_getColumnSelectResult(se,ue,ge,pe){return _.ColumnSelection.columnSelectDown(se.cursorConfig,se,ge,this._isPaged)}}A.CursorColumnSelectDown=(0,y.registerEditorCommand)(new x({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3602,linux:{primary:0}}})),A.CursorColumnSelectPageDown=(0,y.registerEditorCommand)(new x({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3596,linux:{primary:0}}}));class F extends d{constructor(){super({id:"cursorMove",precondition:void 0,metadata:n.CursorMove.metadata})}runCoreEditorCommand(se,ue){const ge=n.CursorMove.parse(ue);ge&&this._runCursorMove(se,ue.source,ge)}_runCursorMove(se,ue,ge){se.model.pushStackElement(),se.setCursorStates(ue,3,F._move(se,se.getCursorStates(),ge)),se.revealAllCursors(ue,!0)}static _move(se,ue,ge){const pe=ge.select,ce=ge.value;switch(ge.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return n.CursorMoveCommands.simpleMove(se,ue,ge.direction,pe,ce,ge.unit);case 11:case 13:case 12:case 14:return n.CursorMoveCommands.viewportMove(se,ue,ge.direction,pe,ce);default:return null}}}A.CursorMoveImpl=F,A.CursorMove=(0,y.registerEditorCommand)(new F);class W extends d{constructor(se){super(se),this._staticArgs=se.args}runCoreEditorCommand(se,ue){let ge=this._staticArgs;this._staticArgs.value===-1&&(ge={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:ue.pageSize||se.cursorConfig.pageSize}),se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.simpleMove(se,se.getCursorStates(),ge.direction,ge.select,ge.value,ge.unit)),se.revealAllCursors(ue.source,!0)}}A.CursorLeft=(0,y.registerEditorCommand)(new W({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),A.CursorLeftSelect=(0,y.registerEditorCommand)(new W({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1039}})),A.CursorRight=(0,y.registerEditorCommand)(new W({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),A.CursorRightSelect=(0,y.registerEditorCommand)(new W({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1041}})),A.CursorUp=(0,y.registerEditorCommand)(new W({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),A.CursorUpSelect=(0,y.registerEditorCommand)(new W({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),A.CursorPageUp=(0,y.registerEditorCommand)(new W({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:11}})),A.CursorPageUpSelect=(0,y.registerEditorCommand)(new W({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1035}})),A.CursorDown=(0,y.registerEditorCommand)(new W({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),A.CursorDownSelect=(0,y.registerEditorCommand)(new W({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),A.CursorPageDown=(0,y.registerEditorCommand)(new W({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:12}})),A.CursorPageDownSelect=(0,y.registerEditorCommand)(new W({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1036}})),A.CreateCursor=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(te,se){if(!se.position)return;let ue;se.wholeLine?ue=n.CursorMoveCommands.line(te,te.getPrimaryCursorState(),!1,se.position,se.viewPosition):ue=n.CursorMoveCommands.moveTo(te,te.getPrimaryCursorState(),!1,se.position,se.viewPosition);const ge=te.getCursorStates();if(ge.length>1){const pe=ue.modelState?ue.modelState.position:null,ce=ue.viewState?ue.viewState.position:null;for(let ie=0,ne=ge.length;ie<ne;ie++){const J=ge[ie];if(!(pe&&!J.modelState.selection.containsPosition(pe))&&!(ce&&!J.viewState.selection.containsPosition(ce))){ge.splice(ie,1),te.model.pushStackElement(),te.setCursorStates(se.source,3,ge);return}}}ge.push(ue),te.model.pushStackElement(),te.setCursorStates(se.source,3,ge)}}),A.LastCursorMoveToSelect=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(te,se){if(!se.position)return;const ue=te.getLastAddedCursorIndex(),ge=te.getCursorStates(),pe=ge.slice(0);pe[ue]=n.CursorMoveCommands.moveTo(te,ge[ue],!0,se.position,se.viewPosition),te.model.pushStackElement(),te.setCursorStates(se.source,3,pe)}});class z extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.moveToBeginningOfLine(se,se.getCursorStates(),this._inSelectionMode)),se.revealAllCursors(ue.source,!0)}}A.CursorHome=(0,y.registerEditorCommand)(new z({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),A.CursorHomeSelect=(0,y.registerEditorCommand)(new z({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class q extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,this._exec(se.getCursorStates())),se.revealAllCursors(ue.source,!0)}_exec(se){const ue=[];for(let ge=0,pe=se.length;ge<pe;ge++){const ce=se[ge],ie=ce.modelState.position.lineNumber;ue[ge]=v.CursorState.fromModelState(ce.modelState.move(this._inSelectionMode,ie,1,0))}return ue}}A.CursorLineStart=(0,y.registerEditorCommand)(new q({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:287}}})),A.CursorLineStartSelect=(0,y.registerEditorCommand)(new q({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1311}}}));class H extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.moveToEndOfLine(se,se.getCursorStates(),this._inSelectionMode,ue.sticky||!1)),se.revealAllCursors(ue.source,!0)}}A.CursorEnd=(0,y.registerEditorCommand)(new H({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:c.localize(1828,"Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),A.CursorEndSelect=(0,y.registerEditorCommand)(new H({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:c.localize(1829,"Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class K extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,this._exec(se,se.getCursorStates())),se.revealAllCursors(ue.source,!0)}_exec(se,ue){const ge=[];for(let pe=0,ce=ue.length;pe<ce;pe++){const ie=ue[pe],ne=ie.modelState.position.lineNumber,J=se.model.getLineMaxColumn(ne);ge[pe]=v.CursorState.fromModelState(ie.modelState.move(this._inSelectionMode,ne,J,0))}return ge}}A.CursorLineEnd=(0,y.registerEditorCommand)(new K({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:291}}})),A.CursorLineEndSelect=(0,y.registerEditorCommand)(new K({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1315}}}));class U extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.moveToBeginningOfBuffer(se,se.getCursorStates(),this._inSelectionMode)),se.revealAllCursors(ue.source,!0)}}A.CursorTop=(0,y.registerEditorCommand)(new U({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2062,mac:{primary:2064}}})),A.CursorTopSelect=(0,y.registerEditorCommand)(new U({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3086,mac:{primary:3088}}}));class Y extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){se.model.pushStackElement(),se.setCursorStates(ue.source,3,n.CursorMoveCommands.moveToEndOfBuffer(se,se.getCursorStates(),this._inSelectionMode)),se.revealAllCursors(ue.source,!0)}}A.CursorBottom=(0,y.registerEditorCommand)(new Y({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2061,mac:{primary:2066}}})),A.CursorBottomSelect=(0,y.registerEditorCommand)(new Y({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:3085,mac:{primary:3090}}}));class Q extends d{constructor(){super({id:"editorScroll",precondition:void 0,metadata:m.metadata})}determineScrollMethod(se){const ue=[6],ge=[1,2,3,4,5,6],pe=[4,2],ce=[1,3];return ue.includes(se.unit)&&pe.includes(se.direction)?this._runHorizontalEditorScroll.bind(this):ge.includes(se.unit)&&ce.includes(se.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(se,ue){const ge=m.parse(ue);if(!ge)return;const pe=this.determineScrollMethod(ge);pe&&pe(se,ue.source,ge)}_runVerticalEditorScroll(se,ue,ge){const pe=this._computeDesiredScrollTop(se,ge);if(ge.revealCursor){const ce=se.getCompletelyVisibleViewRangeAtScrollTop(pe);se.setCursorStates(ue,3,[n.CursorMoveCommands.findPositionInViewportIfOutside(se,se.getPrimaryCursorState(),ce,ge.select)])}se.viewLayout.setScrollPosition({scrollTop:pe},0)}_computeDesiredScrollTop(se,ue){if(ue.unit===1){const ce=se.viewLayout.getFutureViewport(),ie=se.getCompletelyVisibleViewRangeAtScrollTop(ce.top),ne=se.coordinatesConverter.convertViewRangeToModelRange(ie);let J;ue.direction===1?J=Math.max(1,ne.startLineNumber-ue.value):J=Math.min(se.model.getLineCount(),ne.startLineNumber+ue.value);const B=se.coordinatesConverter.convertModelPositionToViewPosition(new t.Position(J,1));return se.viewLayout.getVerticalOffsetForLineNumber(B.lineNumber)}if(ue.unit===5){let ce=0;return ue.direction===3&&(ce=se.model.getLineCount()-se.cursorConfig.pageSize),se.viewLayout.getVerticalOffsetForLineNumber(ce)}let ge;ue.unit===3?ge=se.cursorConfig.pageSize*ue.value:ue.unit===4?ge=Math.round(se.cursorConfig.pageSize/2)*ue.value:ge=ue.value;const pe=(ue.direction===1?-1:1)*ge;return se.viewLayout.getCurrentScrollTop()+pe*se.cursorConfig.lineHeight}_runHorizontalEditorScroll(se,ue,ge){const pe=this._computeDesiredScrollLeft(se,ge);se.viewLayout.setScrollPosition({scrollLeft:pe},0)}_computeDesiredScrollLeft(se,ue){const ge=(ue.direction===4?-1:1)*ue.value;return se.viewLayout.getCurrentScrollLeft()+ge*se.cursorConfig.typicalHalfwidthCharacterWidth}}A.EditorScrollImpl=Q,A.EditorScroll=(0,y.registerEditorCommand)(new Q),A.ScrollLineUp=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Up,by:m.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollPageUp=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Up,by:m.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollEditorTop=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Up,by:m.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollLineDown=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Down,by:m.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollPageDown=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Down,by:m.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollEditorBottom=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Down,by:m.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollLeft=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Left,by:m.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:se.source})}}),A.ScrollRight=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(te,se){A.EditorScroll.runCoreEditorCommand(te,{to:m.RawDirection.Right,by:m.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:se.source})}});class X extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){ue.position&&(se.model.pushStackElement(),se.setCursorStates(ue.source,3,[n.CursorMoveCommands.word(se,se.getPrimaryCursorState(),this._inSelectionMode,ue.position)]),ue.revealType!==2&&se.revealAllCursors(ue.source,!0,!0))}}A.WordSelect=(0,y.registerEditorCommand)(new X({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),A.WordSelectDrag=(0,y.registerEditorCommand)(new X({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),A.LastCursorWordSelect=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(te,se){if(!se.position)return;const ue=te.getLastAddedCursorIndex(),ge=te.getCursorStates(),pe=ge.slice(0),ce=ge[ue];pe[ue]=n.CursorMoveCommands.word(te,ce,ce.modelState.hasSelection(),se.position),te.model.pushStackElement(),te.setCursorStates(se.source,3,pe)}});class G extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){ue.position&&(se.model.pushStackElement(),se.setCursorStates(ue.source,3,[n.CursorMoveCommands.line(se,se.getPrimaryCursorState(),this._inSelectionMode,ue.position,ue.viewPosition)]),ue.revealType!==2&&se.revealAllCursors(ue.source,!1,!0))}}A.LineSelect=(0,y.registerEditorCommand)(new G({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),A.LineSelectDrag=(0,y.registerEditorCommand)(new G({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class P extends d{constructor(se){super(se),this._inSelectionMode=se.inSelectionMode}runCoreEditorCommand(se,ue){if(!ue.position)return;const ge=se.getLastAddedCursorIndex(),pe=se.getCursorStates(),ce=pe.slice(0);ce[ge]=n.CursorMoveCommands.line(se,pe[ge],this._inSelectionMode,ue.position,ue.viewPosition),se.model.pushStackElement(),se.setCursorStates(ue.source,3,ce)}}A.LastCursorLineSelect=(0,y.registerEditorCommand)(new P({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),A.LastCursorLineSelectDrag=(0,y.registerEditorCommand)(new P({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),A.CancelSelection=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"cancelSelection",precondition:o.EditorContextKeys.hasNonEmptySelection,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(te,se){te.model.pushStackElement(),te.setCursorStates(se.source,3,[n.CursorMoveCommands.cancelSelection(te,te.getPrimaryCursorState())]),te.revealAllCursors(se.source,!0)}}),A.RemoveSecondaryCursors=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"removeSecondaryCursors",precondition:o.EditorContextKeys.hasMultipleSelections,kbOpts:{weight:a+1,kbExpr:o.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(te,se){te.model.pushStackElement(),te.setCursorStates(se.source,3,[te.getPrimaryCursorState()]),te.revealAllCursors(se.source,!0),(0,L.status)(c.localize(1830,"Removed secondary cursors"))}}),A.RevealLine=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"revealLine",precondition:void 0,metadata:h.metadata})}runCoreEditorCommand(te,se){const ue=se,ge=ue.lineNumber||0;let pe=typeof ge=="number"?ge+1:parseInt(ge)+1;pe<1&&(pe=1);const ce=te.model.getLineCount();pe>ce&&(pe=ce);const ie=new i.Range(pe,1,pe,te.model.getLineMaxColumn(pe));let ne=0;if(ue.at)switch(ue.at){case h.RawAtArgument.Top:ne=3;break;case h.RawAtArgument.Center:ne=1;break;case h.RawAtArgument.Bottom:ne=4;break;default:break}const J=te.coordinatesConverter.convertModelRangeToViewRange(ie);te.revealRange(se.source,!1,J,ne,0)}}),A.SelectAll=new class extends C{constructor(){super(y.SelectAllCommand)}runDOMCommand(te){k.isFirefox&&(te.focus(),te.select()),te.ownerDocument.execCommand("selectAll")}runEditorCommand(te,se,ue){const ge=se._getViewModel();ge&&this.runCoreEditorCommand(ge,ue)}runCoreEditorCommand(te,se){te.model.pushStackElement(),te.setCursorStates("keyboard",3,[n.CursorMoveCommands.selectAll(te,te.getPrimaryCursorState())])}},A.SetSelection=(0,y.registerEditorCommand)(new class extends d{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(te,se){se.selection&&(te.model.pushStackElement(),te.setCursorStates(se.source,3,[v.CursorState.fromModelSelection(se.selection)]))}})})(b||(e.CoreNavigationCommands=b={}));const w=g.ContextKeyExpr.and(o.EditorContextKeys.textInputFocus,o.EditorContextKeys.columnSelection);function S(A,R){u.KeybindingsRegistry.registerKeybindingRule({id:A,primary:R,when:w,weight:a+1})}S(b.CursorColumnSelectLeft.id,1039),S(b.CursorColumnSelectRight.id,1041),S(b.CursorColumnSelectUp.id,1040),S(b.CursorColumnSelectPageUp.id,1035),S(b.CursorColumnSelectDown.id,1042),S(b.CursorColumnSelectPageDown.id,1036);function D(A){return A.register(),A}var I;(function(A){class R extends y.EditorCommand{runEditorCommand(O,x,F){const W=x._getViewModel();W&&this.runCoreEditingCommand(x,W,F||{})}}A.CoreEditingCommand=R,A.LineBreakInsert=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"lineBreakInsert",precondition:o.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(N,O,x){N.pushUndoStop(),N.executeCommands(this.id,r.EnterOperation.lineBreakInsert(O.cursorConfig,O.model,O.getCursorStates().map(F=>F.modelState.selection)))}}),A.Outdent=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"outdent",precondition:o.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:g.ContextKeyExpr.and(o.EditorContextKeys.editorTextFocus,o.EditorContextKeys.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(N,O,x){N.pushUndoStop(),N.executeCommands(this.id,s.TypeOperations.outdent(O.cursorConfig,O.model,O.getCursorStates().map(F=>F.modelState.selection))),N.pushUndoStop()}}),A.Tab=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"tab",precondition:o.EditorContextKeys.writable,kbOpts:{weight:a,kbExpr:g.ContextKeyExpr.and(o.EditorContextKeys.editorTextFocus,o.EditorContextKeys.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(N,O,x){N.pushUndoStop(),N.executeCommands(this.id,s.TypeOperations.tab(O.cursorConfig,O.model,O.getCursorStates().map(F=>F.modelState.selection))),N.pushUndoStop()}}),A.DeleteLeft=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(N,O,x){const[F,W]=p.DeleteOperations.deleteLeft(O.getPrevEditOperationType(),O.cursorConfig,O.model,O.getCursorStates().map(z=>z.modelState.selection),O.getCursorAutoClosedCharacters());F&&N.pushUndoStop(),N.executeCommands(this.id,W),O.setPrevEditOperationType(2)}}),A.DeleteRight=(0,y.registerEditorCommand)(new class extends R{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:a,kbExpr:o.EditorContextKeys.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(N,O,x){const[F,W]=p.DeleteOperations.deleteRight(O.getPrevEditOperationType(),O.cursorConfig,O.model,O.getCursorStates().map(z=>z.modelState.selection));F&&N.pushUndoStop(),N.executeCommands(this.id,W),O.setPrevEditOperationType(3)}}),A.Undo=new class extends C{constructor(){super(y.UndoCommand)}runDOMCommand(N){N.ownerDocument.execCommand("undo")}runEditorCommand(N,O,x){if(!(!O.hasModel()||O.getOption(92)===!0))return O.getModel().undo()}},A.Redo=new class extends C{constructor(){super(y.RedoCommand)}runDOMCommand(N){N.ownerDocument.execCommand("redo")}runEditorCommand(N,O,x){if(!(!O.hasModel()||O.getOption(92)===!0))return O.getModel().redo()}}})(I||(e.CoreEditingCommands=I={}));class T extends y.Command{constructor(R,N,O){super({id:R,precondition:void 0,metadata:O}),this._handlerId=N}runCommand(R,N){const O=R.get(f.ICodeEditorService).getFocusedCodeEditor();O&&O.trigger("keyboard",this._handlerId,N)}}function M(A,R){D(new T("default:"+A,A)),D(new T(A,A,R))}M("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),M("replacePreviousChar"),M("compositionType"),M("compositionStart"),M("compositionEnd"),M("paste"),M("cut")}),define(oe[717],re([1,0,264,15]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerDecorationsContribution=void 0;let E=class{static{this.ID="editor.contrib.markerDecorations"}constructor(y,f){}dispose(){}};e.MarkerDecorationsContribution=E,e.MarkerDecorationsContribution=E=De([he(1,c.IMarkerDecorationsService)],E),(0,k.registerEditorContribution)(E.ID,E,0)}),define(oe[718],re([1,0,212,9,16]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewController=void 0;class L{constructor(f,_,v,p){this.configuration=f,this.viewModel=_,this.userInputEvents=v,this.commandDelegate=p}paste(f,_,v,p){this.commandDelegate.paste(f,_,v,p)}type(f){this.commandDelegate.type(f)}compositionType(f,_,v,p){this.commandDelegate.compositionType(f,_,v,p)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(f){c.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:f})}_validateViewColumn(f){const _=this.viewModel.getLineMinColumn(f.lineNumber);return f.column<_?new k.Position(f.lineNumber,_):f}_hasMulticursorModifier(f){switch(this.configuration.options.get(78)){case"altKey":return f.altKey;case"ctrlKey":return f.ctrlKey;case"metaKey":return f.metaKey;default:return!1}}_hasNonMulticursorModifier(f){switch(this.configuration.options.get(78)){case"altKey":return f.ctrlKey||f.metaKey;case"ctrlKey":return f.altKey||f.metaKey;case"metaKey":return f.ctrlKey||f.altKey;default:return!1}}dispatchMouse(f){const _=this.configuration.options,v=E.isLinux&&_.get(108),p=_.get(22);f.middleButton&&!v?this._columnSelect(f.position,f.mouseColumn,f.inSelectionMode):f.startedOnLineNumbers?this._hasMulticursorModifier(f)?f.inSelectionMode?this._lastCursorLineSelect(f.position,f.revealType):this._createCursor(f.position,!0):f.inSelectionMode?this._lineSelectDrag(f.position,f.revealType):this._lineSelect(f.position,f.revealType):f.mouseDownCount>=4?this._selectAll():f.mouseDownCount===3?this._hasMulticursorModifier(f)?f.inSelectionMode?this._lastCursorLineSelectDrag(f.position,f.revealType):this._lastCursorLineSelect(f.position,f.revealType):f.inSelectionMode?this._lineSelectDrag(f.position,f.revealType):this._lineSelect(f.position,f.revealType):f.mouseDownCount===2?f.onInjectedText||(this._hasMulticursorModifier(f)?this._lastCursorWordSelect(f.position,f.revealType):f.inSelectionMode?this._wordSelectDrag(f.position,f.revealType):this._wordSelect(f.position,f.revealType)):this._hasMulticursorModifier(f)?this._hasNonMulticursorModifier(f)||(f.shiftKey?this._columnSelect(f.position,f.mouseColumn,!0):f.inSelectionMode?this._lastCursorMoveToSelect(f.position,f.revealType):this._createCursor(f.position,!1)):f.inSelectionMode?f.altKey?this._columnSelect(f.position,f.mouseColumn,!0):p?this._columnSelect(f.position,f.mouseColumn,!0):this._moveToSelect(f.position,f.revealType):this.moveTo(f.position,f.revealType)}_usualArgs(f,_){return f=this._validateViewColumn(f),{source:"mouse",position:this._convertViewToModelPosition(f),viewPosition:f,revealType:_}}moveTo(f,_){c.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_moveToSelect(f,_){c.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_columnSelect(f,_,v){f=this._validateViewColumn(f),c.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(f),viewPosition:f,mouseColumn:_,doColumnSelect:v})}_createCursor(f,_){f=this._validateViewColumn(f),c.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(f),viewPosition:f,wholeLine:_})}_lastCursorMoveToSelect(f,_){c.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_wordSelect(f,_){c.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_wordSelectDrag(f,_){c.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lastCursorWordSelect(f,_){c.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lineSelect(f,_){c.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lineSelectDrag(f,_){c.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lastCursorLineSelect(f,_){c.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_lastCursorLineSelectDrag(f,_){c.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(f,_))}_selectAll(){c.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(f){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(f)}emitKeyDown(f){this.userInputEvents.emitKeyDown(f)}emitKeyUp(f){this.userInputEvents.emitKeyUp(f)}emitContextMenu(f){this.userInputEvents.emitContextMenu(f)}emitMouseMove(f){this.userInputEvents.emitMouseMove(f)}emitMouseLeave(f){this.userInputEvents.emitMouseLeave(f)}emitMouseUp(f){this.userInputEvents.emitMouseUp(f)}emitMouseDown(f){this.userInputEvents.emitMouseDown(f)}emitMouseDrag(f){this.userInputEvents.emitMouseDrag(f)}emitMouseDrop(f){this.userInputEvents.emitMouseDrop(f)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(f){this.userInputEvents.emitMouseWheel(f)}}e.ViewController=L}),define(oe[213],re([1,0,49,7,6,59,55,104,116,66]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBasedDocumentDiffProvider=e.WorkerBasedDiffProviderFactoryService=e.IDiffProviderFactoryService=void 0,e.IDiffProviderFactoryService=(0,k.createDecorator)("diffProviderFactoryService");let n=class{constructor(i){this.instantiationService=i}createDiffProvider(i){return this.instantiationService.createInstance(s,i)}};e.WorkerBasedDiffProviderFactoryService=n,e.WorkerBasedDiffProviderFactoryService=n=De([he(0,k.IInstantiationService)],n),(0,c.registerSingleton)(e.IDiffProviderFactoryService,n,1);let s=class{static{p=this}static{this.diffCache=new Map}constructor(i,o,g){this.editorWorkerService=o,this.telemetryService=g,this.onDidChangeEventEmitter=new E.Emitter,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(i)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(i,o,g,u){if(typeof this.diffAlgorithm!="string")return this.diffAlgorithm.computeDiff(i,o,g,u);if(i.isDisposed()||o.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return o.getLineCount()===1&&o.getLineMaxColumn(1)===1?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new f.DetailedLineRangeMapping(new y.LineRange(1,2),new y.LineRange(1,o.getLineCount()+1),[new f.RangeMapping(i.getFullModelRange(),o.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const l=JSON.stringify([i.uri.toString(),o.uri.toString()]),r=JSON.stringify([i.id,o.id,i.getAlternativeVersionId(),o.getAlternativeVersionId(),JSON.stringify(g)]),a=p.diffCache.get(l);if(a&&a.context===r)return a.result;const d=L.StopWatch.create(),m=await this.editorWorkerService.computeDiff(i.uri,o.uri,g,this.diffAlgorithm),h=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:h,timedOut:m?.quitEarly??!0,detectedMoves:g.computeMoves?m?.moves.length??0:-1}),u.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!m)throw new Error("no diff result available");return p.diffCache.size>10&&p.diffCache.delete(p.diffCache.keys().next().value),p.diffCache.set(l,{result:m,context:r}),m}setOptions(i){let o=!1;i.diffAlgorithm&&this.diffAlgorithm!==i.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=i.diffAlgorithm,typeof i.diffAlgorithm!="string"&&(this.diffAlgorithmOnDidChangeSubscription=i.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),o=!0),o&&this.onDidChangeEventEmitter.fire()}};e.WorkerBasedDocumentDiffProvider=s,e.WorkerBasedDocumentDiffProvider=s=p=De([he(1,_.IEditorWorkerService),he(2,v.ITelemetryService)],s)}),define(oe[403],re([1,0,14,18,2,21,213,87,170,55,316,104,199,318,314,19,13,89]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnchangedRegion=e.DiffMapping=e.DiffState=e.DiffEditorViewModel=void 0;let l=class extends E.Disposable{setActiveMovedText(S){this._activeMovedText.set(S,void 0)}constructor(S,D,I){super(),this.model=S,this._options=D,this._diffProviderFactoryService=I,this._isDiffUpToDate=(0,L.observableValue)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,L.observableValue)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,L.observableValue)(this,void 0),this.unchangedRegions=(0,L.derived)(this,R=>this._options.hideUnchangedRegions.read(R)?this._unchangedRegions.read(R)?.regions??[]:((0,L.transaction)(N=>{for(const O of this._unchangedRegions.get()?.regions||[])O.collapseAll(N)}),[])),this.movedTextToCompare=(0,L.observableValue)(this,void 0),this._activeMovedText=(0,L.observableValue)(this,void 0),this._hoveredMovedText=(0,L.observableValue)(this,void 0),this.activeMovedText=(0,L.derived)(this,R=>this.movedTextToCompare.read(R)??this._hoveredMovedText.read(R)??this._activeMovedText.read(R)),this._cancellationTokenSource=new k.CancellationTokenSource,this._diffProvider=(0,L.derived)(this,R=>{const N=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(R)}),O=(0,L.observableSignalFromEvent)("onDidChange",N.onDidChange);return{diffProvider:N,onChangeSignal:O}}),this._register((0,E.toDisposable)(()=>this._cancellationTokenSource.cancel()));const T=(0,L.observableSignal)("contentChangedSignal"),M=this._register(new c.RunOnceScheduler(()=>T.trigger(void 0),200));this._register((0,L.autorun)(R=>{const N=this._unchangedRegions.read(R);if(!N||N.regions.some(q=>q.isDragged.read(R)))return;const O=N.originalDecorationIds.map(q=>S.original.getDecorationRange(q)).map(q=>q?v.LineRange.fromRangeInclusive(q):void 0),x=N.modifiedDecorationIds.map(q=>S.modified.getDecorationRange(q)).map(q=>q?v.LineRange.fromRangeInclusive(q):void 0),F=N.regions.map((q,H)=>!O[H]||!x[H]?void 0:new h(O[H].startLineNumber,x[H].startLineNumber,O[H].length,q.visibleLineCountTop.read(R),q.visibleLineCountBottom.read(R))).filter(o.isDefined),W=[];let z=!1;for(const q of(0,g.groupAdjacentBy)(F,(H,K)=>H.getHiddenModifiedRange(R).endLineNumberExclusive===K.getHiddenModifiedRange(R).startLineNumber))if(q.length>1){z=!0;const H=q.reduce((U,Y)=>U+Y.lineCount,0),K=new h(q[0].originalLineNumber,q[0].modifiedLineNumber,H,q[0].visibleLineCountTop.get(),q[q.length-1].visibleLineCountBottom.get());W.push(K)}else W.push(q[0]);if(z){const q=S.original.deltaDecorations(N.originalDecorationIds,W.map(K=>({range:K.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),H=S.modified.deltaDecorations(N.modifiedDecorationIds,W.map(K=>({range:K.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));(0,L.transaction)(K=>{this._unchangedRegions.set({regions:W,originalDecorationIds:q,modifiedDecorationIds:H},K)})}}));const A=(R,N,O)=>{const x=h.fromDiffs(R.changes,S.original.getLineCount(),S.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(O),this._options.hideUnchangedRegionsContextLineCount.read(O));let F;const W=this._unchangedRegions.get();if(W){const K=W.originalDecorationIds.map(X=>S.original.getDecorationRange(X)).map(X=>X?v.LineRange.fromRangeInclusive(X):void 0),U=W.modifiedDecorationIds.map(X=>S.modified.getDecorationRange(X)).map(X=>X?v.LineRange.fromRangeInclusive(X):void 0);let Q=(0,f.filterWithPrevious)(W.regions.map((X,G)=>{if(!K[G]||!U[G])return;const P=K[G].length;return new h(K[G].startLineNumber,U[G].startLineNumber,P,Math.min(X.visibleLineCountTop.get(),P),Math.min(X.visibleLineCountBottom.get(),P-X.visibleLineCountTop.get()))}).filter(o.isDefined),(X,G)=>!G||X.modifiedLineNumber>=G.modifiedLineNumber+G.lineCount&&X.originalLineNumber>=G.originalLineNumber+G.lineCount).map(X=>new n.LineRangeMapping(X.getHiddenOriginalRange(O),X.getHiddenModifiedRange(O)));Q=n.LineRangeMapping.clip(Q,v.LineRange.ofLength(1,S.original.getLineCount()),v.LineRange.ofLength(1,S.modified.getLineCount())),F=n.LineRangeMapping.inverse(Q,S.original.getLineCount(),S.modified.getLineCount())}const z=[];if(F)for(const K of x){const U=F.filter(Y=>Y.original.intersectsStrict(K.originalUnchangedRange)&&Y.modified.intersectsStrict(K.modifiedUnchangedRange));z.push(...K.setVisibleRanges(U,N))}else z.push(...x);const q=S.original.deltaDecorations(W?.originalDecorationIds||[],z.map(K=>({range:K.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),H=S.modified.deltaDecorations(W?.modifiedDecorationIds||[],z.map(K=>({range:K.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:z,originalDecorationIds:q,modifiedDecorationIds:H},N)};this._register(S.modified.onDidChangeContent(R=>{if(this._diff.get()){const O=s.TextEditInfo.fromModelContentChanges(R.changes),x=(this._lastDiff,S.original,S.modified,void 0);x&&(this._lastDiff=x,(0,L.transaction)(F=>{this._diff.set(d.fromDiffResult(this._lastDiff),F),A(x,F);const W=this.movedTextToCompare.get();this.movedTextToCompare.set(W?this._lastDiff.moves.find(z=>z.lineRangeMapping.modified.intersect(W.lineRangeMapping.modified)):void 0,F)}))}this._isDiffUpToDate.set(!1,void 0),M.schedule()})),this._register(S.original.onDidChangeContent(R=>{if(this._diff.get()){const O=s.TextEditInfo.fromModelContentChanges(R.changes),x=(this._lastDiff,S.original,S.modified,void 0);x&&(this._lastDiff=x,(0,L.transaction)(F=>{this._diff.set(d.fromDiffResult(this._lastDiff),F),A(x,F);const W=this.movedTextToCompare.get();this.movedTextToCompare.set(W?this._lastDiff.moves.find(z=>z.lineRangeMapping.modified.intersect(W.lineRangeMapping.modified)):void 0,F)}))}this._isDiffUpToDate.set(!1,void 0),M.schedule()})),this._register((0,L.autorunWithStore)(async(R,N)=>{this._options.hideUnchangedRegionsMinimumLineCount.read(R),this._options.hideUnchangedRegionsContextLineCount.read(R),M.cancel(),T.read(R);const O=this._diffProvider.read(R);O.onChangeSignal.read(R),(0,_.readHotReloadableExport)(p.DefaultLinesDiffComputer,R),(0,_.readHotReloadableExport)(i.optimizeSequenceDiffs,R),this._isDiffUpToDate.set(!1,void 0);let x=[];N.add(S.original.onDidChangeContent(z=>{const q=s.TextEditInfo.fromModelContentChanges(z.changes);x=(0,t.combineTextEditInfos)(x,q)}));let F=[];N.add(S.modified.onDidChangeContent(z=>{const q=s.TextEditInfo.fromModelContentChanges(z.changes);F=(0,t.combineTextEditInfos)(F,q)}));let W=await O.diffProvider.computeDiff(S.original,S.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(R),maxComputationTimeMs:this._options.maxComputationTimeMs.read(R),computeMoves:this._options.showMoves.read(R)},this._cancellationTokenSource.token);this._cancellationTokenSource.token.isCancellationRequested||S.original.isDisposed()||S.modified.isDisposed()||(W=r(W,S.original,S.modified),W=(S.original,S.modified,void 0)??W,W=(S.original,S.modified,void 0)??W,(0,L.transaction)(z=>{A(W,z),this._lastDiff=W;const q=d.fromDiffResult(W);this._diff.set(q,z),this._isDiffUpToDate.set(!0,z);const H=this.movedTextToCompare.get();this.movedTextToCompare.set(H?this._lastDiff.moves.find(K=>K.lineRangeMapping.modified.intersect(H.lineRangeMapping.modified)):void 0,z)}))}))}ensureModifiedLineIsVisible(S,D,I){if(this.diff.get()?.mappings.length===0)return;const T=this._unchangedRegions.get()?.regions||[];for(const M of T)if(M.getHiddenModifiedRange(void 0).contains(S)){M.showModifiedLine(S,D,I);return}}ensureOriginalLineIsVisible(S,D,I){if(this.diff.get()?.mappings.length===0)return;const T=this._unchangedRegions.get()?.regions||[];for(const M of T)if(M.getHiddenOriginalRange(void 0).contains(S)){M.showOriginalLine(S,D,I);return}}async waitForDiff(){await(0,L.waitForState)(this.isDiffUpToDate,S=>S)}serializeState(){return{collapsedRegions:this._unchangedRegions.get()?.regions.map(D=>({range:D.getHiddenModifiedRange(void 0).serialize()}))}}restoreSerializedState(S){const D=S.collapsedRegions?.map(T=>v.LineRange.deserialize(T.range)),I=this._unchangedRegions.get();!I||!D||(0,L.transaction)(T=>{for(const M of I.regions)for(const A of D)if(M.modifiedUnchangedRange.intersect(A)){M.setHiddenModifiedRange(A,T);break}})}};e.DiffEditorViewModel=l,e.DiffEditorViewModel=l=De([he(2,y.IDiffProviderFactoryService)],l);function r(w,S,D){return{changes:w.changes.map(I=>new n.DetailedLineRangeMapping(I.original,I.modified,I.innerChanges?I.innerChanges.map(T=>a(T,S,D)):void 0)),moves:w.moves,identical:w.identical,quitEarly:w.quitEarly}}function a(w,S,D){let I=w.originalRange,T=w.modifiedRange;return I.startColumn===1&&T.startColumn===1&&(I.endColumn!==1||T.endColumn!==1)&&I.endColumn===S.getLineMaxColumn(I.endLineNumber)&&T.endColumn===D.getLineMaxColumn(T.endLineNumber)&&I.endLineNumber<S.getLineCount()&&T.endLineNumber<D.getLineCount()&&(I=I.setEndPosition(I.endLineNumber+1,1),T=T.setEndPosition(T.endLineNumber+1,1)),new n.RangeMapping(I,T)}class d{static fromDiffResult(S){return new d(S.changes.map(D=>new m(D)),S.moves||[],S.identical,S.quitEarly)}constructor(S,D,I,T){this.mappings=S,this.movedTexts=D,this.identical=I,this.quitEarly=T}}e.DiffState=d;class m{constructor(S){this.lineRangeMapping=S}}e.DiffMapping=m;class h{static fromDiffs(S,D,I,T,M){const A=n.DetailedLineRangeMapping.inverse(S,D,I),R=[];for(const N of A){let O=N.original.startLineNumber,x=N.modified.startLineNumber,F=N.original.length;const W=O===1&&x===1,z=O+F===D+1&&x+F===I+1;(W||z)&&F>=M+T?(W&&!z&&(F-=M),z&&!W&&(O+=M,x+=M,F-=M),R.push(new h(O,x,F,0,0))):F>=M*2+T&&(O+=M,x+=M,F-=M*2,R.push(new h(O,x,F,0,0)))}return R}get originalUnchangedRange(){return v.LineRange.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return v.LineRange.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(S,D,I,T,M){this.originalLineNumber=S,this.modifiedLineNumber=D,this.lineCount=I,this._visibleLineCountTop=(0,L.observableValue)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,L.observableValue)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,L.derived)(this,N=>this.visibleLineCountTop.read(N)+this.visibleLineCountBottom.read(N)===this.lineCount&&!this.isDragged.read(N)),this.isDragged=(0,L.observableValue)(this,void 0);const A=Math.max(Math.min(T,this.lineCount),0),R=Math.max(Math.min(M,this.lineCount-T),0);(0,u.softAssert)(T===A),(0,u.softAssert)(M===R),this._visibleLineCountTop.set(A,void 0),this._visibleLineCountBottom.set(R,void 0)}setVisibleRanges(S,D){const I=[],T=new v.LineRangeSet(S.map(N=>N.modified)).subtractFrom(this.modifiedUnchangedRange);let M=this.originalLineNumber,A=this.modifiedLineNumber;const R=this.modifiedLineNumber+this.lineCount;if(T.ranges.length===0)this.showAll(D),I.push(this);else{let N=0;for(const O of T.ranges){const x=N===T.ranges.length-1;N++;const F=(x?R:O.endLineNumberExclusive)-A,W=new h(M,A,F,0,0);W.setHiddenModifiedRange(O,D),I.push(W),M=W.originalUnchangedRange.endLineNumberExclusive,A=W.modifiedUnchangedRange.endLineNumberExclusive}}return I}shouldHideControls(S){return this._shouldHideControls.read(S)}getHiddenOriginalRange(S){return v.LineRange.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(S),this.lineCount-this._visibleLineCountTop.read(S)-this._visibleLineCountBottom.read(S))}getHiddenModifiedRange(S){return v.LineRange.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(S),this.lineCount-this._visibleLineCountTop.read(S)-this._visibleLineCountBottom.read(S))}setHiddenModifiedRange(S,D){const I=S.startLineNumber-this.modifiedLineNumber,T=this.modifiedLineNumber+this.lineCount-S.endLineNumberExclusive;this.setState(I,T,D)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(S=10,D){const I=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+S,I),D)}showMoreBelow(S=10,D){const I=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+S,I),D)}showAll(S){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),S)}showModifiedLine(S,D,I){const T=S+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),M=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-S;D===0&&T<M||D===1?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+T,I):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+M,I)}showOriginalLine(S,D,I){const T=S-this.originalLineNumber,M=this.originalLineNumber+this.lineCount-S;D===0&&T<M||D===1?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+M-T,this.getMaxVisibleLineCountTop()),I):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+T-M,this.getMaxVisibleLineCountBottom()),I)}collapseAll(S){this._visibleLineCountTop.set(0,S),this._visibleLineCountBottom.set(0,S)}setState(S,D,I){S=Math.max(Math.min(S,this.lineCount),0),D=Math.max(Math.min(D,this.lineCount-S),0),this._visibleLineCountTop.set(S,I),this._visibleLineCountBottom.set(D,I)}}e.UnchangedRegion=h;function C(w,S,D,I){}function b(w,S,D,I){}}),define(oe[719],re([1,0,48,57,72,15,23,20,3,12,499]),function(ae,e,c,k,E,L,y,f,_,v){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionAnchorSet=void 0,e.SelectionAnchorSet=new v.RawContextKey("selectionAnchorSet",!1);let n=class{static{p=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(u){return u.getContribution(p.ID)}constructor(u,l){this.editor=u,this.selectionAnchorSetContextKey=e.SelectionAnchorSet.bindTo(l),this.modelChangeListener=u.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const u=this.editor.getPosition();this.editor.changeDecorations(l=>{this.decorationId&&l.removeDecoration(this.decorationId),this.decorationId=l.addDecoration(y.Selection.fromPositions(u,u),{description:"selection-anchor",stickiness:1,hoverMessage:new k.MarkdownString().appendText((0,_.localize)(980,"Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,c.alert)((0,_.localize)(981,"Anchor set at {0}:{1}",u.lineNumber,u.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const u=this.editor.getModel().getDecorationRange(this.decorationId);u&&this.editor.setPosition(u.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const u=this.editor.getModel().getDecorationRange(this.decorationId);if(u){const l=this.editor.getPosition();this.editor.setSelection(y.Selection.fromPositions(u.getStartPosition(),l)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const u=this.decorationId;this.editor.changeDecorations(l=>{l.removeDecoration(u),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};n=p=De([he(1,v.IContextKeyService)],n);class s extends L.EditorAction{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,_.localize)(982,"Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:(0,E.KeyChord)(2089,2080),weight:100}})}async run(u,l){n.get(l)?.setSelectionAnchor()}}class t extends L.EditorAction{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,_.localize)(983,"Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:e.SelectionAnchorSet})}async run(u,l){n.get(l)?.goToSelectionAnchor()}}class i extends L.EditorAction{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,_.localize)(984,"Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:e.SelectionAnchorSet,kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:(0,E.KeyChord)(2089,2089),weight:100}})}async run(u,l){n.get(l)?.selectFromAnchorToCursor()}}class o extends L.EditorAction{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,_.localize)(985,"Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:e.SelectionAnchorSet,kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:9,weight:100}})}async run(u,l){n.get(l)?.cancelSelectionAnchor()}}(0,L.registerEditorContribution)(n.ID,n,4),(0,L.registerEditorAction)(s),(0,L.registerEditorAction)(t),(0,L.registerEditorAction)(i),(0,L.registerEditorAction)(o)}),define(oe[720],re([1,0,15,20,603,3]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class y extends c.EditorAction{constructor(p,n){super(n),this.left=p}run(p,n){if(!n.hasModel())return;const s=[],t=n.getSelections();for(const i of t)s.push(new E.MoveCaretCommand(i,this.left));n.pushUndoStop(),n.executeCommands(this.id,s),n.pushUndoStop()}}class f extends y{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:L.localize(972,"Move Selected Text Left"),alias:"Move Selected Text Left",precondition:k.EditorContextKeys.writable})}}class _ extends y{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:L.localize(973,"Move Selected Text Right"),alias:"Move Selected Text Right",precondition:k.EditorContextKeys.writable})}}(0,c.registerEditorAction)(f),(0,c.registerEditorAction)(_)}),define(oe[721],re([1,0,15,145,232,4,20,3]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class _ extends c.EditorAction{constructor(){super({id:"editor.action.transposeLetters",label:f.localize(971,"Transpose Letters"),alias:"Transpose Letters",precondition:y.EditorContextKeys.writable,kbOpts:{kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(p,n){if(!n.hasModel())return;const s=n.getModel(),t=[],i=n.getSelections();for(const o of i){if(!o.isEmpty())continue;const g=o.startLineNumber,u=o.startColumn,l=s.getLineMaxColumn(g);if(g===1&&(u===1||u===2&&l===2))continue;const r=u===l?o.getPosition():E.MoveOperations.rightPosition(s,o.getPosition().lineNumber,o.getPosition().column),a=E.MoveOperations.leftPosition(s,r),d=E.MoveOperations.leftPosition(s,a),m=s.getValueInRange(L.Range.fromPositions(d,a)),h=s.getValueInRange(L.Range.fromPositions(a,r)),C=L.Range.fromPositions(d,r);t.push(new k.ReplaceCommand(C,h+m))}t.length>0&&(n.pushUndoStop(),n.executeCommands(this.id,t),n.pushUndoStop())}}(0,c.registerEditorAction)(_)}),define(oe[722],re([1,0,72,15,4,20,34,331,605,3,29]),function(ae,e,c,k,E,L,y,f,_,v,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends k.EditorAction{constructor(u,l){super(l),this._type=u}run(u,l){const r=u.get(y.ILanguageConfigurationService);if(!l.hasModel())return;const a=l.getModel(),d=[],m=a.getOptions(),h=l.getOption(23),C=l.getSelections().map((w,S)=>({selection:w,index:S,ignoreFirstLine:!1}));C.sort((w,S)=>E.Range.compareRangesUsingStarts(w.selection,S.selection));let b=C[0];for(let w=1;w<C.length;w++){const S=C[w];b.selection.endLineNumber===S.selection.startLineNumber&&(b.index<S.index?S.ignoreFirstLine=!0:(b.ignoreFirstLine=!0,b=S))}for(const w of C)d.push(new _.LineCommentCommand(r,w.selection,m.indentSize,this._type,h.insertSpace,h.ignoreEmptyLines,w.ignoreFirstLine));l.pushUndoStop(),l.executeCommands(this.id,d),l.pushUndoStop()}}class s extends n{constructor(){super(0,{id:"editor.action.commentLine",label:v.localize(885,"Toggle Line Comment"),alias:"Toggle Line Comment",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:p.MenuId.MenubarEditMenu,group:"5_insert",title:v.localize(886,"&&Toggle Line Comment"),order:1}})}}class t extends n{constructor(){super(1,{id:"editor.action.addCommentLine",label:v.localize(887,"Add Line Comment"),alias:"Add Line Comment",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:(0,c.KeyChord)(2089,2081),weight:100}})}}class i extends n{constructor(){super(2,{id:"editor.action.removeCommentLine",label:v.localize(888,"Remove Line Comment"),alias:"Remove Line Comment",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:(0,c.KeyChord)(2089,2099),weight:100}})}}class o extends k.EditorAction{constructor(){super({id:"editor.action.blockComment",label:v.localize(889,"Toggle Block Comment"),alias:"Toggle Block Comment",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:p.MenuId.MenubarEditMenu,group:"5_insert",title:v.localize(890,"Toggle &&Block Comment"),order:2}})}run(u,l){const r=u.get(y.ILanguageConfigurationService);if(!l.hasModel())return;const a=l.getOption(23),d=[],m=l.getSelections();for(const h of m)d.push(new f.BlockCommentCommand(h,a.insertSpace,r));l.pushUndoStop(),l.executeCommands(this.id,d),l.pushUndoStop()}}(0,k.registerEditorAction)(s),(0,k.registerEditorAction)(t),(0,k.registerEditorAction)(i),(0,k.registerEditorAction)(o)}),define(oe[723],re([1,0,2,15,20,3]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorRedo=e.CursorUndo=e.CursorUndoRedoController=void 0;class y{constructor(s){this.selections=s}equals(s){const t=this.selections.length,i=s.selections.length;if(t!==i)return!1;for(let o=0;o<t;o++)if(!this.selections[o].equalsSelection(s.selections[o]))return!1;return!0}}class f{constructor(s,t,i){this.cursorState=s,this.scrollTop=t,this.scrollLeft=i}}class _ extends c.Disposable{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(s){return s.getContribution(_.ID)}constructor(s){super(),this._editor=s,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(s.onDidChangeModel(t=>{this._undoStack=[],this._redoStack=[]})),this._register(s.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(s.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new y(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new f(i,s.getScrollTop(),s.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new f(new y(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new f(new y(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(s){this._isCursorUndoRedo=!0,this._editor.setSelections(s.cursorState.selections),this._editor.setScrollPosition({scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}),this._isCursorUndoRedo=!1}}e.CursorUndoRedoController=_;class v extends k.EditorAction{constructor(){super({id:"cursorUndo",label:L.localize(873,"Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:E.EditorContextKeys.textInputFocus,primary:2099,weight:100}})}run(s,t,i){_.get(t)?.cursorUndo()}}e.CursorUndo=v;class p extends k.EditorAction{constructor(){super({id:"cursorRedo",label:L.localize(874,"Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(s,t,i){_.get(t)?.cursorRedo()}}e.CursorRedo=p,(0,k.registerEditorContribution)(_.ID,_,0),(0,k.registerEditorAction)(v),(0,k.registerEditorAction)(p)}),define(oe[724],re([1,0,15,12,18,73,7,49,3]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorKeybindingCancellationTokenSource=void 0;const v=(0,y.createDecorator)("IEditorCancelService"),p=new k.RawContextKey("cancellableOperation",!1,(0,_.localize)(848,"Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,f.registerSingleton)(v,class{constructor(){this._tokens=new WeakMap}add(s,t){let i=this._tokens.get(s);i||(i=s.invokeWithinContext(g=>{const u=p.bindTo(g.get(k.IContextKeyService)),l=new L.LinkedList;return{key:u,tokens:l}}),this._tokens.set(s,i));let o;return i.key.set(!0),o=i.tokens.push(t),()=>{o&&(o(),i.key.set(!i.tokens.isEmpty()),o=void 0)}}cancel(s){const t=this._tokens.get(s);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class n extends E.CancellationTokenSource{constructor(t,i){super(i),this.editor=t,this._unregister=t.invokeWithinContext(o=>o.get(v).add(t,this))}dispose(){this._unregister(),super.dispose()}}e.EditorKeybindingCancellationTokenSource=n,(0,c.registerEditorCommand)(new class extends c.EditorCommand{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(s,t){s.get(v).cancel(t)}})}),define(oe[122],re([1,0,11,4,18,2,724]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelCancellationTokenSource=e.EditorStateCancellationTokenSource=e.EditorState=void 0;class f{constructor(n,s){if(this.flags=s,this.flags&1){const t=n.getModel();this.modelVersionId=t?c.format("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=n.getPosition():this.position=null,this.flags&2?this.selection=n.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=n.getScrollLeft(),this.scrollTop=n.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(n){if(!(n instanceof f))return!1;const s=n;return!(this.modelVersionId!==s.modelVersionId||this.scrollLeft!==s.scrollLeft||this.scrollTop!==s.scrollTop||!this.position&&s.position||this.position&&!s.position||this.position&&s.position&&!this.position.equals(s.position)||!this.selection&&s.selection||this.selection&&!s.selection||this.selection&&s.selection&&!this.selection.equalsRange(s.selection))}validate(n){return this._equals(new f(n,this.flags))}}e.EditorState=f;class _ extends y.EditorKeybindingCancellationTokenSource{constructor(n,s,t,i){super(n,i),this._listener=new L.DisposableStore,s&4&&this._listener.add(n.onDidChangeCursorPosition(o=>{(!t||!k.Range.containsPosition(t,o.position))&&this.cancel()})),s&2&&this._listener.add(n.onDidChangeCursorSelection(o=>{(!t||!k.Range.containsRange(t,o.selection))&&this.cancel()})),s&8&&this._listener.add(n.onDidScrollChange(o=>this.cancel())),s&1&&(this._listener.add(n.onDidChangeModel(o=>this.cancel())),this._listener.add(n.onDidChangeModelContent(o=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}e.EditorStateCancellationTokenSource=_;class v extends E.CancellationTokenSource{constructor(n,s){super(s),this._listener=n.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}e.TextModelCancellationTokenSource=v}),define(oe[155],re([1,0,13,18,8,2,22,151,4,23,17,44,122,3,24,50,96,66,133,90]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplyCodeActionReason=e.fixAllCommandId=e.organizeImportsCommandId=e.sourceActionCommandId=e.refactorCommandId=e.autoFixCommandId=e.quickFixCommandId=e.codeActionCommandId=void 0,e.getCodeActions=m,e.applyCodeAction=S,e.codeActionCommandId="editor.action.codeAction",e.quickFixCommandId="editor.action.quickFix",e.autoFixCommandId="editor.action.autoFix",e.refactorCommandId="editor.action.refactor",e.sourceActionCommandId="editor.action.sourceAction",e.organizeImportsCommandId="editor.action.organizeImports",e.fixAllCommandId="editor.action.fixAll";class a extends L.Disposable{static codeActionsPreferredComparator(T,M){return T.isPreferred&&!M.isPreferred?-1:!T.isPreferred&&M.isPreferred?1:0}static codeActionsComparator({action:T},{action:M}){return T.isAI&&!M.isAI?1:!T.isAI&&M.isAI?-1:(0,c.isNonEmptyArray)(T.diagnostics)?(0,c.isNonEmptyArray)(M.diagnostics)?a.codeActionsPreferredComparator(T,M):-1:(0,c.isNonEmptyArray)(M.diagnostics)?1:a.codeActionsPreferredComparator(T,M)}constructor(T,M,A){super(),this.documentation=M,this._register(A),this.allActions=[...T].sort(a.codeActionsComparator),this.validActions=this.allActions.filter(({action:R})=>!R.disabled)}get hasAutoFix(){return this.validActions.some(({action:T})=>!!T.kind&&l.CodeActionKind.QuickFix.contains(new r.HierarchicalKind(T.kind))&&!!T.isPreferred)}get hasAIFix(){return this.validActions.some(({action:T})=>!!T.isAI)}get allAIFixes(){return this.validActions.every(({action:T})=>!!T.isAI)}}const d={actions:[],documentation:void 0};async function m(I,T,M,A,R,N){const O=A.filter||{},x={...O,excludes:[...O.excludes||[],l.CodeActionKind.Notebook]},F={only:O.include?.value,trigger:A.type},W=new s.TextModelCancellationTokenSource(T,N),z=A.type===2,q=h(I,T,z?x:O),H=new L.DisposableStore,K=q.map(async Y=>{try{R.report(Y);const Q=await Y.provideCodeActions(T,M,F,W.token);if(Q&&H.add(Q),W.token.isCancellationRequested)return d;const X=(Q?.actions||[]).filter(P=>P&&(0,l.filtersAction)(O,P)),G=b(Y,X,O.include);return{actions:X.map(P=>new l.CodeActionItem(P,Y)),documentation:G}}catch(Q){if((0,E.isCancellationError)(Q))throw Q;return(0,E.onUnexpectedExternalError)(Q),d}}),U=I.onDidChange(()=>{const Y=I.all(T);(0,c.equals)(Y,q)||W.cancel()});try{const Y=await Promise.all(K),Q=Y.map(G=>G.actions).flat(),X=[...(0,c.coalesce)(Y.map(G=>G.documentation)),...C(I,T,A,Q)];return new a(Q,X,H)}finally{U.dispose(),W.dispose()}}function h(I,T,M){return I.all(T).filter(A=>A.providedCodeActionKinds?A.providedCodeActionKinds.some(R=>(0,l.mayIncludeActionsOfKind)(M,new r.HierarchicalKind(R))):!0)}function*C(I,T,M,A){if(T&&A.length)for(const R of I.all(T))R._getAdditionalMenuItems&&(yield*R._getAdditionalMenuItems?.({trigger:M.type,only:M.filter?.include?.value},A.map(N=>N.action)))}function b(I,T,M){if(!I.documentation)return;const A=I.documentation.map(R=>({kind:new r.HierarchicalKind(R.kind),command:R.command}));if(M){let R;for(const N of A)N.kind.contains(M)&&(R?R.kind.contains(N.kind)&&(R=N):R=N);if(R)return R?.command}for(const R of T)if(R.kind){for(const N of A)if(N.kind.contains(new r.HierarchicalKind(R.kind)))return N.command}}var w;(function(I){I.OnSave="onSave",I.FromProblemsView="fromProblemsView",I.FromCodeActions="fromCodeActions",I.FromAILightbulb="fromAILightbulb"})(w||(e.ApplyCodeActionReason=w={}));async function S(I,T,M,A,R=k.CancellationToken.None){const N=I.get(f.IBulkEditService),O=I.get(i.ICommandService),x=I.get(u.ITelemetryService),F=I.get(o.INotificationService);if(x.publicLog2("codeAction.applyCodeAction",{codeActionTitle:T.action.title,codeActionKind:T.action.kind,codeActionIsPreferred:!!T.action.isPreferred,reason:M}),await T.resolve(R),!R.isCancellationRequested&&!(T.action.edit?.edits.length&&!(await N.apply(T.action.edit,{editor:A?.editor,label:T.action.title,quotableLabel:T.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:M!==w.OnSave,showPreview:A?.preview})).isApplied)&&T.action.command)try{await O.executeCommand(T.action.command.id,...T.action.command.arguments||[])}catch(W){const z=D(W);F.error(typeof z=="string"?z:t.localize(953,"An unknown error occurred while applying the code action"))}}function D(I){return typeof I=="string"?I:I instanceof Error&&typeof I.message=="string"?I.message:void 0}i.CommandsRegistry.registerCommand("_executeCodeActionProvider",async function(I,T,M,A,R){if(!(T instanceof y.URI))throw(0,E.illegalArgument)();const{codeActionProvider:N}=I.get(p.ILanguageFeaturesService),O=I.get(n.IModelService).getModel(T);if(!O)throw(0,E.illegalArgument)();const x=v.Selection.isISelection(M)?v.Selection.liftSelection(M):_.Range.isIRange(M)?O.validateRange(M):void 0;if(!x)throw(0,E.illegalArgument)();const F=typeof A=="string"?new r.HierarchicalKind(A):void 0,W=await m(N,O,x,{type:1,triggerAction:l.CodeActionTriggerSource.Default,filter:{includeSourceActions:!0,include:F}},g.Progress.None,k.CancellationToken.None),z=[],q=Math.min(W.validActions.length,typeof R=="number"?R:0);for(let H=0;H<q;H++)z.push(W.validActions[H].resolve(k.CancellationToken.None));try{return await Promise.all(z),W.validActions.map(H=>H.action)}finally{setTimeout(()=>W.dispose(),100)}})}),define(oe[725],re([1,0,90,98,155,133,31]),function(ae,e,c,k,E,L,y){"use strict";var f;Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionKeybindingResolver=void 0;let _=class{static{f=this}static{this.codeActionCommands=[E.refactorCommandId,E.codeActionCommandId,E.sourceActionCommandId,E.organizeImportsCommandId,E.fixAllCommandId]}constructor(p){this.keybindingService=p}getResolver(){const p=new k.Lazy(()=>this.keybindingService.getKeybindings().filter(n=>f.codeActionCommands.indexOf(n.command)>=0).filter(n=>n.resolvedKeybinding).map(n=>{let s=n.commandArgs;return n.command===E.organizeImportsCommandId?s={kind:L.CodeActionKind.SourceOrganizeImports.value}:n.command===E.fixAllCommandId&&(s={kind:L.CodeActionKind.SourceFixAll.value}),{resolvedKeybinding:n.resolvedKeybinding,...L.CodeActionCommandArgs.fromUser(s,{kind:c.HierarchicalKind.None,apply:"never"})}}));return n=>{if(n.kind)return this.bestKeybindingForCodeAction(n,p.value)?.resolvedKeybinding}}bestKeybindingForCodeAction(p,n){if(!p.kind)return;const s=new c.HierarchicalKind(p.kind);return n.filter(t=>t.kind.contains(s)).filter(t=>t.preferred?p.isPreferred:!0).reduceRight((t,i)=>t?t.kind.contains(i.kind)?i:t:i,void 0)}};e.CodeActionKeybindingResolver=_,e.CodeActionKeybindingResolver=_=f=De([he(0,y.IKeybindingService)],_)}),define(oe[404],re([1,0,14,8,6,2,51,37,9,23,12,96,133,155,90]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeActionModel=e.CodeActionsState=e.APPLY_FIX_ALL_COMMAND_ID=e.SUPPORTED_CODE_ACTIONS=void 0,e.SUPPORTED_CODE_ACTIONS=new p.RawContextKey("supportedCodeAction",""),e.APPLY_FIX_ALL_COMMAND_ID="_typescript.applyFixAllCodeAction";class o extends L.Disposable{constructor(a,d,m,h=250){super(),this._editor=a,this._markerService=d,this._signalChange=m,this._delay=h,this._autoTriggerTimer=this._register(new c.TimeoutTimer),this._register(this._markerService.onMarkerChanged(C=>this._onMarkerChanges(C))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(a){const d=this._getRangeOfSelectionUnlessWhitespaceEnclosed(a);this._signalChange(d?{trigger:a,selection:d}:void 0)}_onMarkerChanges(a){const d=this._editor.getModel();d&&a.some(m=>(0,y.isEqual)(m,d.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:s.CodeActionTriggerSource.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(a){if(!this._editor.hasModel())return;const d=this._editor.getSelection();if(a.type===1)return d;const m=this._editor.getOption(65).enabled;if(m!==f.ShowLightbulbIconMode.Off){{if(m===f.ShowLightbulbIconMode.On)return d;if(m===f.ShowLightbulbIconMode.OnCode){if(!d.isEmpty())return d;const C=this._editor.getModel(),{lineNumber:b,column:w}=d.getPosition(),S=C.getLineContent(b);if(S.length===0)return;if(w===1){if(/\s/.test(S[0]))return}else if(w===C.getLineMaxColumn(b)){if(/\s/.test(S[S.length-1]))return}else if(/\s/.test(S[w-2])&&/\s/.test(S[w-1]))return}}return d}}}var g;(function(r){r.Empty={type:0};class a{constructor(m,h,C){this.trigger=m,this.position=h,this._cancellablePromise=C,this.type=1,this.actions=C.catch(b=>{if((0,k.isCancellationError)(b))return u;throw b})}cancel(){this._cancellablePromise.cancel()}}r.Triggered=a})(g||(e.CodeActionsState=g={}));const u=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class l extends L.Disposable{constructor(a,d,m,h,C,b){super(),this._editor=a,this._registry=d,this._markerService=m,this._progressService=C,this._configurationService=b,this._codeActionOracle=this._register(new L.MutableDisposable),this._state=g.Empty,this._onDidChangeState=this._register(new E.Emitter),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=e.SUPPORTED_CODE_ACTIONS.bindTo(h),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(w=>{w.hasChanged(65)&&this._update()})),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(g.Empty,!0))}_settingEnabledNearbyQuickfixes(){const a=this._editor?.getModel();return this._configurationService?this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:a?.uri}):!1}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(g.Empty);const a=this._editor.getModel();if(a&&this._registry.has(a)&&!this._editor.getOption(92)){const d=this._registry.all(a).flatMap(m=>m.providedCodeActionKinds??[]);this._supportedCodeActions.set(d.join(" ")),this._codeActionOracle.value=new o(this._editor,this._markerService,m=>{if(!m){this.setState(g.Empty);return}const h=m.selection.getStartPosition(),C=(0,c.createCancelablePromise)(async S=>{if(this._settingEnabledNearbyQuickfixes()&&m.trigger.type===1&&(m.trigger.triggerAction===s.CodeActionTriggerSource.QuickFix||m.trigger.filter?.include?.contains(s.CodeActionKind.QuickFix))){const D=await(0,t.getCodeActions)(this._registry,a,m.selection,m.trigger,n.Progress.None,S),I=[...D.allActions];if(S.isCancellationRequested)return u;const T=D.validActions?.some(A=>A.action.kind?s.CodeActionKind.QuickFix.contains(new i.HierarchicalKind(A.action.kind)):!1),M=this._markerService.read({resource:a.uri});if(T){for(const A of D.validActions)A.action.command?.arguments?.some(R=>typeof R=="string"&&R.includes(e.APPLY_FIX_ALL_COMMAND_ID))&&(A.action.diagnostics=[...M.filter(R=>R.relatedInformation)]);return{validActions:D.validActions,allActions:I,documentation:D.documentation,hasAutoFix:D.hasAutoFix,hasAIFix:D.hasAIFix,allAIFixes:D.allAIFixes,dispose:()=>{D.dispose()}}}else if(!T&&M.length>0){const A=m.selection.getPosition();let R=A,N=Number.MAX_VALUE;const O=[...D.validActions];for(const F of M){const W=F.endColumn,z=F.endLineNumber,q=F.startLineNumber;if(z===A.lineNumber||q===A.lineNumber){R=new _.Position(z,W);const H={type:m.trigger.type,triggerAction:m.trigger.triggerAction,filter:{include:m.trigger.filter?.include?m.trigger.filter?.include:s.CodeActionKind.QuickFix},autoApply:m.trigger.autoApply,context:{notAvailableMessage:m.trigger.context?.notAvailableMessage||"",position:R}},K=new v.Selection(R.lineNumber,R.column,R.lineNumber,R.column),U=await(0,t.getCodeActions)(this._registry,a,K,H,n.Progress.None,S);if(U.validActions.length!==0){for(const Y of U.validActions)Y.action.command?.arguments?.some(Q=>typeof Q=="string"&&Q.includes(e.APPLY_FIX_ALL_COMMAND_ID))&&(Y.action.diagnostics=[...M.filter(Q=>Q.relatedInformation)]);D.allActions.length===0&&I.push(...U.allActions),Math.abs(A.column-W)<N?O.unshift(...U.validActions):O.push(...U.validActions)}N=Math.abs(A.column-W)}}const x=O.filter((F,W,z)=>z.findIndex(q=>q.action.title===F.action.title)===W);return x.sort((F,W)=>F.action.isPreferred&&!W.action.isPreferred?-1:!F.action.isPreferred&&W.action.isPreferred||F.action.isAI&&!W.action.isAI?1:!F.action.isAI&&W.action.isAI?-1:0),{validActions:x,allActions:I,documentation:D.documentation,hasAutoFix:D.hasAutoFix,hasAIFix:D.hasAIFix,allAIFixes:D.allAIFixes,dispose:()=>{D.dispose()}}}}return(0,t.getCodeActions)(this._registry,a,m.selection,m.trigger,n.Progress.None,S)});m.trigger.type===1&&this._progressService?.showWhile(C,250);const b=new g.Triggered(m.trigger,h,C);let w=!1;this._state.type===1&&(w=this._state.trigger.type===1&&b.type===1&&b.trigger.type===2&&this._state.position!==b.position),w?setTimeout(()=>{this.setState(b)},500):this.setState(b)},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:s.CodeActionTriggerSource.Default})}else this._supportedCodeActions.reset()}trigger(a){this._codeActionOracle.value?.trigger(a)}setState(a,d){a!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=a,!d&&!this._disposed&&this._onDidChangeState.fire(a))}}e.CodeActionModel=l}),define(oe[726],re([1,0,15,163,3]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class L extends c.EditorAction{constructor(){super({id:"editor.action.fontZoomIn",label:E.localize(774,"Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(v,p){k.EditorZoom.setZoomLevel(k.EditorZoom.getZoomLevel()+1)}}class y extends c.EditorAction{constructor(){super({id:"editor.action.fontZoomOut",label:E.localize(775,"Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(v,p){k.EditorZoom.setZoomLevel(k.EditorZoom.getZoomLevel()-1)}}class f extends c.EditorAction{constructor(){super({id:"editor.action.fontZoomReset",label:E.localize(776,"Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(v,p){k.EditorZoom.setZoomLevel(0)}}(0,c.registerEditorAction)(L),(0,c.registerEditorAction)(y),(0,c.registerEditorAction)(f)}),define(oe[405],re([1,0,13,18,8,53,73,19,22,122,167,9,4,23,116,78,335,24,669,7,17,61,136]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r,a,d,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormattingConflicts=void 0,e.getRealAndSyntheticDocumentFormattersOrdered=h,e.formatDocumentRangesWithSelectedProvider=b,e.formatDocumentRangesWithProvider=w,e.formatDocumentWithSelectedProvider=S,e.formatDocumentWithProvider=D,e.getDocumentRangeFormattingEditsUntilResult=I,e.getDocumentFormattingEditsUntilResult=T,e.getOnTypeFormattingEdits=M;function h(A,R,N){const O=[],x=new l.ExtensionIdentifierSet,F=A.ordered(N);for(const z of F)O.push(z),z.extensionId&&x.add(z.extensionId);const W=R.ordered(N);for(const z of W){if(z.extensionId){if(x.has(z.extensionId))continue;x.add(z.extensionId)}O.push({displayName:z.displayName,extensionId:z.extensionId,provideDocumentFormattingEdits(q,H,K){return z.provideDocumentRangeFormattingEdits(q,q.getFullModelRange(),H,K)}})}return O}class C{static{this._selectors=new y.LinkedList}static setFormatterSelector(R){return{dispose:C._selectors.unshift(R)}}static async select(R,N,O,x){if(R.length===0)return;const F=L.Iterable.first(C._selectors);if(F)return await F(R,N,O,x)}}e.FormattingConflicts=C;async function b(A,R,N,O,x,F,W){const z=A.get(r.IInstantiationService),{documentRangeFormattingEditProvider:q}=A.get(a.ILanguageFeaturesService),H=(0,p.isCodeEditor)(R)?R.getModel():R,K=q.ordered(H),U=await C.select(K,H,O,2);U&&(x.report(U),await z.invokeFunction(w,U,R,N,F,W))}async function w(A,R,N,O,x,F){const W=A.get(i.IEditorWorkerService),z=A.get(d.ILogService),q=A.get(m.IAccessibilitySignalService);let H,K;(0,p.isCodeEditor)(N)?(H=N.getModel(),K=new v.EditorStateCancellationTokenSource(N,5,void 0,x)):(H=N,K=new v.TextModelCancellationTokenSource(N,x));const U=[];let Y=0;for(const te of(0,c.asArray)(O).sort(s.Range.compareRangesUsingStarts))Y>0&&s.Range.areIntersectingOrTouching(U[Y-1],te)?U[Y-1]=s.Range.fromPositions(U[Y-1].getStartPosition(),te.getEndPosition()):Y=U.push(te);const Q=async te=>{z.trace("[format][provideDocumentRangeFormattingEdits] (request)",R.extensionId?.value,te);const se=await R.provideDocumentRangeFormattingEdits(H,te,H.getFormattingOptions(),K.token)||[];return z.trace("[format][provideDocumentRangeFormattingEdits] (response)",R.extensionId?.value,se),se},X=(te,se)=>{if(!te.length||!se.length)return!1;const ue=te.reduce((ge,pe)=>s.Range.plusRange(ge,pe.range),te[0].range);if(!se.some(ge=>s.Range.intersectRanges(ue,ge.range)))return!1;for(const ge of te)for(const pe of se)if(s.Range.intersectRanges(ge.range,pe.range))return!0;return!1},G=[],P=[];try{if(typeof R.provideDocumentRangesFormattingEdits=="function"){z.trace("[format][provideDocumentRangeFormattingEdits] (request)",R.extensionId?.value,U);const te=await R.provideDocumentRangesFormattingEdits(H,U,H.getFormattingOptions(),K.token)||[];z.trace("[format][provideDocumentRangeFormattingEdits] (response)",R.extensionId?.value,te),P.push(te)}else{for(const te of U){if(K.token.isCancellationRequested)return!0;P.push(await Q(te))}for(let te=0;te<U.length;++te)for(let se=te+1;se<U.length;++se){if(K.token.isCancellationRequested)return!0;if(X(P[te],P[se])){const ue=s.Range.plusRange(U[te],U[se]),ge=await Q(ue);U.splice(se,1),U.splice(te,1),U.push(ue),P.splice(se,1),P.splice(te,1),P.push(ge),te=0,se=0}}}for(const te of P){if(K.token.isCancellationRequested)return!0;const se=await W.computeMoreMinimalEdits(H.uri,te);se&&G.push(...se)}}finally{K.dispose()}if(G.length===0)return!1;if((0,p.isCodeEditor)(N))g.FormattingEdit.execute(N,G,!0),N.revealPositionInCenterIfOutsideViewport(N.getPosition(),1);else{const[{range:te}]=G,se=new t.Selection(te.startLineNumber,te.startColumn,te.endLineNumber,te.endColumn);H.pushEditOperations([se],G.map(ue=>({text:ue.text,range:s.Range.lift(ue.range),forceMoveMarkers:!0})),ue=>{for(const{range:ge}of ue)if(s.Range.areIntersectingOrTouching(ge,se))return[new t.Selection(ge.startLineNumber,ge.startColumn,ge.endLineNumber,ge.endColumn)];return null})}return q.playSignal(m.AccessibilitySignal.format,{userGesture:F}),!0}async function S(A,R,N,O,x,F){const W=A.get(r.IInstantiationService),z=A.get(a.ILanguageFeaturesService),q=(0,p.isCodeEditor)(R)?R.getModel():R,H=h(z.documentFormattingEditProvider,z.documentRangeFormattingEditProvider,q),K=await C.select(H,q,N,1);K&&(O.report(K),await W.invokeFunction(D,K,R,N,x,F))}async function D(A,R,N,O,x,F){const W=A.get(i.IEditorWorkerService),z=A.get(m.IAccessibilitySignalService);let q,H;(0,p.isCodeEditor)(N)?(q=N.getModel(),H=new v.EditorStateCancellationTokenSource(N,5,void 0,x)):(q=N,H=new v.TextModelCancellationTokenSource(N,x));let K;try{const U=await R.provideDocumentFormattingEdits(q,q.getFormattingOptions(),H.token);if(K=await W.computeMoreMinimalEdits(q.uri,U),H.token.isCancellationRequested)return!0}finally{H.dispose()}if(!K||K.length===0)return!1;if((0,p.isCodeEditor)(N))g.FormattingEdit.execute(N,K,O!==2),O!==2&&N.revealPositionInCenterIfOutsideViewport(N.getPosition(),1);else{const[{range:U}]=K,Y=new t.Selection(U.startLineNumber,U.startColumn,U.endLineNumber,U.endColumn);q.pushEditOperations([Y],K.map(Q=>({text:Q.text,range:s.Range.lift(Q.range),forceMoveMarkers:!0})),Q=>{for(const{range:X}of Q)if(s.Range.areIntersectingOrTouching(X,Y))return[new t.Selection(X.startLineNumber,X.startColumn,X.endLineNumber,X.endColumn)];return null})}return z.playSignal(m.AccessibilitySignal.format,{userGesture:F}),!0}async function I(A,R,N,O,x,F){const W=R.documentRangeFormattingEditProvider.ordered(N);for(const z of W){const q=await Promise.resolve(z.provideDocumentRangeFormattingEdits(N,O,x,F)).catch(E.onUnexpectedExternalError);if((0,c.isNonEmptyArray)(q))return await A.computeMoreMinimalEdits(N.uri,q)}}async function T(A,R,N,O,x){const F=h(R.documentFormattingEditProvider,R.documentRangeFormattingEditProvider,N);for(const W of F){const z=await Promise.resolve(W.provideDocumentFormattingEdits(N,O,x)).catch(E.onUnexpectedExternalError);if((0,c.isNonEmptyArray)(z))return await A.computeMoreMinimalEdits(N.uri,z)}}function M(A,R,N,O,x,F,W){const z=R.onTypeFormattingEditProvider.ordered(N);return z.length===0||z[0].autoFormatTriggerCharacters.indexOf(x)<0?Promise.resolve(void 0):Promise.resolve(z[0].provideOnTypeFormattingEdits(N,O,x,F,W)).catch(E.onUnexpectedExternalError).then(q=>A.computeMoreMinimalEdits(N.uri,q))}u.CommandsRegistry.registerCommand("_executeFormatRangeProvider",async function(A,...R){const[N,O,x]=R;(0,f.assertType)(_.URI.isUri(N)),(0,f.assertType)(s.Range.isIRange(O));const F=A.get(o.ITextModelService),W=A.get(i.IEditorWorkerService),z=A.get(a.ILanguageFeaturesService),q=await F.createModelReference(N);try{return I(W,z,q.object.textEditorModel,s.Range.lift(O),x,k.CancellationToken.None)}finally{q.dispose()}}),u.CommandsRegistry.registerCommand("_executeFormatDocumentProvider",async function(A,...R){const[N,O]=R;(0,f.assertType)(_.URI.isUri(N));const x=A.get(o.ITextModelService),F=A.get(i.IEditorWorkerService),W=A.get(a.ILanguageFeaturesService),z=await x.createModelReference(N);try{return T(F,W,z.object.textEditorModel,O,k.CancellationToken.None)}finally{z.dispose()}}),u.CommandsRegistry.registerCommand("_executeFormatOnTypeProvider",async function(A,...R){const[N,O,x,F]=R;(0,f.assertType)(_.URI.isUri(N)),(0,f.assertType)(n.Position.isIPosition(O)),(0,f.assertType)(typeof x=="string");const W=A.get(o.ITextModelService),z=A.get(i.IEditorWorkerService),q=A.get(a.ILanguageFeaturesService),H=await W.createModelReference(N);try{return M(z,q,H.object.textEditorModel,n.Position.lift(O),x,F,k.CancellationToken.None)}finally{H.dispose()}})}),define(oe[727],re([1,0,13,18,8,72,2,15,35,143,4,20,116,17,405,335,3,136,24,12,7,96]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r,a,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormatOnType=void 0;let m=class{static{this.ID="editor.contrib.autoFormat"}constructor(S,D,I,T){this._editor=S,this._languageFeaturesService=D,this._workerService=I,this._accessibilitySignalService=T,this._disposables=new y.DisposableStore,this._sessionDisposables=new y.DisposableStore,this._disposables.add(D.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(S.onDidChangeModel(()=>this._update())),this._disposables.add(S.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(S.onDidChangeConfiguration(M=>{M.hasChanged(56)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56)||!this._editor.hasModel())return;const S=this._editor.getModel(),[D]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(S);if(!D||!D.autoFormatTriggerCharacters)return;const I=new v.CharacterSet;for(const T of D.autoFormatTriggerCharacters)I.add(T.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(T=>{const M=T.charCodeAt(T.length-1);I.has(M)&&this._trigger(String.fromCharCode(M))}))}_trigger(S){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const D=this._editor.getModel(),I=this._editor.getPosition(),T=new k.CancellationTokenSource,M=this._editor.onDidChangeModelContent(A=>{if(A.isFlush){T.cancel(),M.dispose();return}for(let R=0,N=A.changes.length;R<N;R++)if(A.changes[R].range.endLineNumber<=I.lineNumber){T.cancel(),M.dispose();return}});(0,i.getOnTypeFormattingEdits)(this._workerService,this._languageFeaturesService,D,I,S,D.getFormattingOptions(),T.token).then(A=>{T.token.isCancellationRequested||(0,c.isNonEmptyArray)(A)&&(this._accessibilitySignalService.playSignal(u.AccessibilitySignal.format,{userGesture:!1}),o.FormattingEdit.execute(this._editor,A,!0))}).finally(()=>{M.dispose()})}};e.FormatOnType=m,e.FormatOnType=m=De([he(1,t.ILanguageFeaturesService),he(2,s.IEditorWorkerService),he(3,u.IAccessibilitySignalService)],m);let h=class{static{this.ID="editor.contrib.formatOnPaste"}constructor(S,D,I){this.editor=S,this._languageFeaturesService=D,this._instantiationService=I,this._callOnDispose=new y.DisposableStore,this._callOnModel=new y.DisposableStore,this._callOnDispose.add(S.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(S.onDidChangeModel(()=>this._update())),this._callOnDispose.add(S.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(D.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:S})=>this._trigger(S)))}_trigger(S){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(i.formatDocumentRangesWithSelectedProvider,this.editor,S,2,d.Progress.None,k.CancellationToken.None,!1).catch(E.onUnexpectedError))}};h=De([he(1,t.ILanguageFeaturesService),he(2,a.IInstantiationService)],h);class C extends f.EditorAction{constructor(){super({id:"editor.action.formatDocument",label:g.localize(772,"Format Document"),alias:"Format Document",precondition:r.ContextKeyExpr.and(n.EditorContextKeys.notInCompositeEditor,n.EditorContextKeys.writable,n.EditorContextKeys.hasDocumentFormattingProvider),kbOpts:{kbExpr:n.EditorContextKeys.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(S,D){if(D.hasModel()){const I=S.get(a.IInstantiationService);await S.get(d.IEditorProgressService).showWhile(I.invokeFunction(i.formatDocumentWithSelectedProvider,D,1,d.Progress.None,k.CancellationToken.None,!0),250)}}}class b extends f.EditorAction{constructor(){super({id:"editor.action.formatSelection",label:g.localize(773,"Format Selection"),alias:"Format Selection",precondition:r.ContextKeyExpr.and(n.EditorContextKeys.writable,n.EditorContextKeys.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:n.EditorContextKeys.editorTextFocus,primary:(0,L.KeyChord)(2089,2084),weight:100},contextMenuOpts:{when:n.EditorContextKeys.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(S,D){if(!D.hasModel())return;const I=S.get(a.IInstantiationService),T=D.getModel(),M=D.getSelections().map(R=>R.isEmpty()?new p.Range(R.startLineNumber,1,R.startLineNumber,T.getLineMaxColumn(R.startLineNumber)):R);await S.get(d.IEditorProgressService).showWhile(I.invokeFunction(i.formatDocumentRangesWithSelectedProvider,D,M,1,d.Progress.None,k.CancellationToken.None,!0),250)}}(0,f.registerEditorContribution)(m.ID,m,2),(0,f.registerEditorContribution)(h.ID,h,2),(0,f.registerEditorAction)(C),(0,f.registerEditorAction)(b),l.CommandsRegistry.registerCommand("editor.action.format",async w=>{const S=w.get(_.ICodeEditorService).getFocusedCodeEditor();if(!S||!S.hasModel())return;const D=w.get(l.ICommandService);S.getSelection().isEmpty()?await D.executeCommand("editor.action.formatDocument"):await D.executeCommand("editor.action.formatSelection")})}),define(oe[276],re([1,0,13,18,8,47,15,17,177]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefinitionsAtPosition=n,e.getDeclarationsAtPosition=s,e.getImplementationsAtPosition=t,e.getTypeDefinitionsAtPosition=i,e.getReferencesAtPosition=o;function v(u,l){return l.uri.scheme===u.uri.scheme?!0:!(0,L.matchesSomeScheme)(l.uri,L.Schemas.walkThroughSnippet,L.Schemas.vscodeChatCodeBlock,L.Schemas.vscodeChatCodeCompareBlock,L.Schemas.vscodeCopilotBackingChatCodeBlock)}async function p(u,l,r,a,d){const h=r.ordered(u,a).map(b=>Promise.resolve(d(b,u,l)).then(void 0,w=>{(0,E.onUnexpectedExternalError)(w)})),C=await Promise.all(h);return(0,c.coalesce)(C.flat()).filter(b=>v(u,b))}function n(u,l,r,a,d){return p(l,r,u,a,(m,h,C)=>m.provideDefinition(h,C,d))}function s(u,l,r,a,d){return p(l,r,u,a,(m,h,C)=>m.provideDeclaration(h,C,d))}function t(u,l,r,a,d){return p(l,r,u,a,(m,h,C)=>m.provideImplementation(h,C,d))}function i(u,l,r,a,d){return p(l,r,u,a,(m,h,C)=>m.provideTypeDefinition(h,C,d))}function o(u,l,r,a,d,m){return p(l,r,u,d,async(h,C,b)=>{const w=(await h.provideReferences(C,b,{includeDeclaration:!0},m))?.filter(D=>v(C,D));if(!a||!w||w.length!==2)return w;const S=(await h.provideReferences(C,b,{includeDeclaration:!1},m))?.filter(D=>v(C,D));return S&&S.length===1?S:w})}async function g(u){const l=await u(),r=new _.ReferencesModel(l,""),a=r.references.map(d=>d.link);return r.dispose(),a}(0,y.registerModelAndPositionCommand)("_executeDefinitionProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=n(a.definitionProvider,l,r,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeDefinitionProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=n(a.definitionProvider,l,r,!0,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeTypeDefinitionProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=i(a.typeDefinitionProvider,l,r,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeTypeDefinitionProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=i(a.typeDefinitionProvider,l,r,!0,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeDeclarationProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=s(a.declarationProvider,l,r,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeDeclarationProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=s(a.declarationProvider,l,r,!0,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeReferenceProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=o(a.referenceProvider,l,r,!1,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeReferenceProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=o(a.referenceProvider,l,r,!1,!0,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeImplementationProvider",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=t(a.implementationProvider,l,r,!1,k.CancellationToken.None);return g(()=>d)}),(0,y.registerModelAndPositionCommand)("_executeImplementationProvider_recursive",(u,l,r)=>{const a=u.get(f.ILanguageFeaturesService),d=t(a.implementationProvider,l,r,!0,k.CancellationToken.None);return g(()=>d)})}),define(oe[728],re([1,0,6,2,51,15,35,4,3,12,49,7,31,121,50]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISymbolNavigationService=e.ctxHasSymbols=void 0,e.ctxHasSymbols=new v.RawContextKey("hasSymbols",!1,(0,_.localize)(700,"Whether there are symbol locations that can be navigated via keyboard-only.")),e.ISymbolNavigationService=(0,n.createDecorator)("ISymbolNavigationService");let o=class{constructor(l,r,a,d){this._editorService=r,this._notificationService=a,this._keybindingService=d,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=e.ctxHasSymbols.bindTo(l)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(l){const r=l.parent.parent;if(r.references.length<=1){this.reset();return}this._currentModel=r,this._currentIdx=r.references.indexOf(l),this._ctxHasSymbols.set(!0),this._showMessage();const a=new g(this._editorService),d=a.onDidChange(m=>{if(this._ignoreEditorChange)return;const h=this._editorService.getActiveCodeEditor();if(!h)return;const C=h.getModel(),b=h.getPosition();if(!C||!b)return;let w=!1,S=!1;for(const D of r.references)if((0,E.isEqual)(D.uri,C.uri))w=!0,S=S||f.Range.containsPosition(D.range,b);else if(w)break;(!w||!S)&&this.reset()});this._currentState=(0,k.combinedDisposable)(a,d)}revealNext(l){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const r=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:r.uri,options:{selection:f.Range.collapseToStart(r.range),selectionRevealType:3}},l).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){this._currentMessage?.dispose();const l=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),r=l?(0,_.localize)(701,"Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,l.getLabel()):(0,_.localize)(702,"Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(r)}};o=De([he(0,v.IContextKeyService),he(1,y.ICodeEditorService),he(2,i.INotificationService),he(3,s.IKeybindingService)],o),(0,p.registerSingleton)(e.ISymbolNavigationService,o,1),(0,L.registerEditorCommand)(new class extends L.EditorCommand{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:e.ctxHasSymbols,kbOpts:{weight:100,primary:70}})}runEditorCommand(u,l){return u.get(e.ISymbolNavigationService).revealNext(l)}}),t.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:e.ctxHasSymbols,primary:9,handler(u){u.get(e.ISymbolNavigationService).reset()}});let g=class{constructor(l){this._listener=new Map,this._disposables=new k.DisposableStore,this._onDidChange=new c.Emitter,this.onDidChange=this._onDidChange.event,this._disposables.add(l.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(l.onCodeEditorAdd(this._onDidAddEditor,this)),l.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,k.dispose)(this._listener.values())}_onDidAddEditor(l){this._listener.set(l,(0,k.combinedDisposable)(l.onDidChangeCursorPosition(r=>this._onDidChange.fire({editor:l})),l.onDidChangeModelContent(r=>this._onDidChange.fire({editor:l}))))}_onDidRemoveEditor(l){this._listener.get(l)?.dispose(),this._listener.delete(l)}};g=De([he(0,y.ICodeEditorService)],g)}),define(oe[406],re([1,0,14,18,8,15,17]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HoverProviderResult=void 0,e.getHoverProviderResultsAsAsyncIterable=v,e.getHoversPromise=p;class f{constructor(t,i,o){this.provider=t,this.hover=i,this.ordinal=o}}e.HoverProviderResult=f;async function _(s,t,i,o,g){const u=await Promise.resolve(s.provideHover(i,o,g)).catch(E.onUnexpectedExternalError);if(!(!u||!n(u)))return new f(s,u,t)}function v(s,t,i,o,g=!1){const l=s.ordered(t,g).map((r,a)=>_(r,a,t,i,o));return c.AsyncIterableObject.fromPromises(l).coalesce()}function p(s,t,i,o,g=!1){return v(s,t,i,o,g).map(u=>u.hover).toPromise()}(0,L.registerModelAndPositionCommand)("_executeHoverProvider",(s,t,i)=>{const o=s.get(y.ILanguageFeaturesService);return p(o.hoverProvider,t,i,k.CancellationToken.None)}),(0,L.registerModelAndPositionCommand)("_executeHoverProvider_recursive",(s,t,i)=>{const o=s.get(y.ILanguageFeaturesService);return p(o.hoverProvider,t,i,k.CancellationToken.None,!0)});function n(s){const t=typeof s.range<"u",i=typeof s.contents<"u"&&s.contents&&s.contents.length>0;return t&&i}}),define(oe[729],re([1,0,2,11,15,183,4,20,34,44,336,3,63,240,706,94]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentationToTabsCommand=e.IndentationToSpacesCommand=e.AutoIndentOnPaste=e.AutoIndentOnPasteCommand=e.ReindentSelectedLinesAction=e.ReindentLinesAction=e.DetectIndentation=e.ChangeTabDisplaySize=e.IndentUsingSpaces=e.IndentUsingTabs=e.ChangeIndentationSizeAction=e.IndentationToTabsAction=e.IndentationToSpacesAction=void 0;class g extends E.EditorAction{static{this.ID="editor.action.indentationToSpaces"}constructor(){super({id:g.ID,label:n.localize(639,"Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:f.EditorContextKeys.writable,metadata:{description:n.localize2(651,"Convert the tab indentation to spaces.")}})}run(A,R){const N=R.getModel();if(!N)return;const O=N.getOptions(),x=R.getSelection();if(!x)return;const F=new I(x,O.tabSize);R.pushUndoStop(),R.executeCommands(this.id,[F]),R.pushUndoStop(),N.updateOptions({insertSpaces:!0})}}e.IndentationToSpacesAction=g;class u extends E.EditorAction{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:u.ID,label:n.localize(640,"Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:f.EditorContextKeys.writable,metadata:{description:n.localize2(652,"Convert the spaces indentation to tabs.")}})}run(A,R){const N=R.getModel();if(!N)return;const O=N.getOptions(),x=R.getSelection();if(!x)return;const F=new T(x,O.tabSize);R.pushUndoStop(),R.executeCommands(this.id,[F]),R.pushUndoStop(),N.updateOptions({insertSpaces:!1})}}e.IndentationToTabsAction=u;class l extends E.EditorAction{constructor(A,R,N){super(N),this.insertSpaces=A,this.displaySizeOnly=R}run(A,R){const N=A.get(s.IQuickInputService),O=A.get(v.IModelService),x=R.getModel();if(!x)return;const F=O.getCreationOptions(x.getLanguageId(),x.uri,x.isForSimpleWidget),W=x.getOptions(),z=[1,2,3,4,5,6,7,8].map(H=>({id:H.toString(),label:H.toString(),description:H===F.tabSize&&H===W.tabSize?n.localize(641,"Configured Tab Size"):H===F.tabSize?n.localize(642,"Default Tab Size"):H===W.tabSize?n.localize(643,"Current Tab Size"):void 0})),q=Math.min(x.getOptions().tabSize-1,7);setTimeout(()=>{N.pick(z,{placeHolder:n.localize(644,"Select Tab Size for Current File"),activeItem:z[q]}).then(H=>{if(H&&x&&!x.isDisposed()){const K=parseInt(H.label,10);this.displaySizeOnly?x.updateOptions({tabSize:K}):x.updateOptions({tabSize:K,indentSize:K,insertSpaces:this.insertSpaces})}})},50)}}e.ChangeIndentationSizeAction=l;class r extends l{static{this.ID="editor.action.indentUsingTabs"}constructor(){super(!1,!1,{id:r.ID,label:n.localize(645,"Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:n.localize2(653,"Use indentation with tabs.")}})}}e.IndentUsingTabs=r;class a extends l{static{this.ID="editor.action.indentUsingSpaces"}constructor(){super(!0,!1,{id:a.ID,label:n.localize(646,"Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:n.localize2(654,"Use indentation with spaces.")}})}}e.IndentUsingSpaces=a;class d extends l{static{this.ID="editor.action.changeTabDisplaySize"}constructor(){super(!0,!0,{id:d.ID,label:n.localize(647,"Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:n.localize2(655,"Change the space size equivalent of the tab.")}})}}e.ChangeTabDisplaySize=d;class m extends E.EditorAction{static{this.ID="editor.action.detectIndentation"}constructor(){super({id:m.ID,label:n.localize(648,"Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:n.localize2(656,"Detect the indentation from content.")}})}run(A,R){const N=A.get(v.IModelService),O=R.getModel();if(!O)return;const x=N.getCreationOptions(O.getLanguageId(),O.uri,O.isForSimpleWidget);O.detectIndentation(x.insertSpaces,x.tabSize)}}e.DetectIndentation=m;class h extends E.EditorAction{constructor(){super({id:"editor.action.reindentlines",label:n.localize(649,"Reindent Lines"),alias:"Reindent Lines",precondition:f.EditorContextKeys.writable,metadata:{description:n.localize2(657,"Reindent the lines of the editor.")}})}run(A,R){const N=A.get(_.ILanguageConfigurationService),O=R.getModel();if(!O)return;const x=(0,i.getReindentEditOperations)(O,N,1,O.getLineCount());x.length>0&&(R.pushUndoStop(),R.executeEdits(this.id,x),R.pushUndoStop())}}e.ReindentLinesAction=h;class C extends E.EditorAction{constructor(){super({id:"editor.action.reindentselectedlines",label:n.localize(650,"Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:f.EditorContextKeys.writable,metadata:{description:n.localize2(658,"Reindent the selected lines of the editor.")}})}run(A,R){const N=A.get(_.ILanguageConfigurationService),O=R.getModel();if(!O)return;const x=R.getSelections();if(x===null)return;const F=[];for(const W of x){let z=W.startLineNumber,q=W.endLineNumber;if(z!==q&&W.endColumn===1&&q--,z===1){if(z===q)continue}else z--;const H=(0,i.getReindentEditOperations)(O,N,z,q);F.push(...H)}F.length>0&&(R.pushUndoStop(),R.executeEdits(this.id,F),R.pushUndoStop())}}e.ReindentSelectedLinesAction=C;class b{constructor(A,R){this._initialSelection=R,this._edits=[],this._selectionId=null;for(const N of A)N.range&&typeof N.text=="string"&&this._edits.push(N)}getEditOperations(A,R){for(const O of this._edits)R.addEditOperation(y.Range.lift(O.range),O.text);let N=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(N=!0,this._selectionId=R.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(N=!0,this._selectionId=R.trackSelection(this._initialSelection,!1))),N||(this._selectionId=R.trackSelection(this._initialSelection))}computeCursorState(A,R){return R.getTrackedSelection(this._selectionId)}}e.AutoIndentOnPasteCommand=b;let w=class{static{this.ID="editor.contrib.autoIndentOnPaste"}constructor(A,R){this.editor=A,this._languageConfigurationService=R,this.callOnDispose=new c.DisposableStore,this.callOnModel=new c.DisposableStore,this.callOnDispose.add(A.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(A.onDidChangeModel(()=>this.update())),this.callOnDispose.add(A.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(12)<4||this.editor.getOption(55))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:A})=>{this.trigger(A)}))}trigger(A){const R=this.editor.getSelections();if(R===null||R.length>1)return;const N=this.editor.getModel();if(!N||this.rangeContainsOnlyWhitespaceCharacters(N,A)||S(N,A)||!N.tokenization.isCheapToTokenize(A.getStartPosition().lineNumber))return;const x=this.editor.getOption(12),{tabSize:F,indentSize:W,insertSpaces:z}=N.getOptions(),q=[],H={shiftIndent:Q=>L.ShiftCommand.shiftIndent(Q,Q.length+1,F,W,z),unshiftIndent:Q=>L.ShiftCommand.unshiftIndent(Q,Q.length+1,F,W,z)};let K=A.startLineNumber;for(;K<=A.endLineNumber;){if(this.shouldIgnoreLine(N,K)){K++;continue}break}if(K>A.endLineNumber)return;let U=N.getLineContent(K);if(!/\S/.test(U.substring(0,A.startColumn-1))){const Q=(0,t.getGoodIndentForLine)(x,N,N.getLanguageId(),K,H,this._languageConfigurationService);if(Q!==null){const X=k.getLeadingWhitespace(U),G=p.getSpaceCnt(Q,F),P=p.getSpaceCnt(X,F);if(G!==P){const te=p.generateIndent(G,F,z);q.push({range:new y.Range(K,1,K,X.length+1),text:te}),U=te+U.substring(X.length)}else{const te=(0,t.getIndentMetadata)(N,K,this._languageConfigurationService);if(te===0||te===8)return}}}const Y=K;for(;K<A.endLineNumber;){if(!/\S/.test(N.getLineContent(K+1))){K++;continue}break}if(K!==A.endLineNumber){const Q={tokenization:{getLineTokens:G=>N.tokenization.getLineTokens(G),getLanguageId:()=>N.getLanguageId(),getLanguageIdAtPosition:(G,P)=>N.getLanguageIdAtPosition(G,P)},getLineContent:G=>G===Y?U:N.getLineContent(G)},X=(0,t.getGoodIndentForLine)(x,Q,N.getLanguageId(),K+1,H,this._languageConfigurationService);if(X!==null){const G=p.getSpaceCnt(X,F),P=p.getSpaceCnt(k.getLeadingWhitespace(N.getLineContent(K+1)),F);if(G!==P){const te=G-P;for(let se=K+1;se<=A.endLineNumber;se++){const ue=N.getLineContent(se),ge=k.getLeadingWhitespace(ue),ce=p.getSpaceCnt(ge,F)+te,ie=p.generateIndent(ce,F,z);ie!==ge&&q.push({range:new y.Range(se,1,se,ge.length+1),text:ie})}}}}if(q.length>0){this.editor.pushUndoStop();const Q=new b(q,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",Q),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(A,R){const N=x=>x.trim().length===0;let O=!0;if(R.startLineNumber===R.endLineNumber){const F=A.getLineContent(R.startLineNumber).substring(R.startColumn-1,R.endColumn-1);O=N(F)}else for(let x=R.startLineNumber;x<=R.endLineNumber;x++){const F=A.getLineContent(x);if(x===R.startLineNumber){const W=F.substring(R.startColumn-1);O=N(W)}else if(x===R.endLineNumber){const W=F.substring(0,R.endColumn-1);O=N(W)}else O=A.getLineFirstNonWhitespaceColumn(x)===0;if(!O)break}return O}shouldIgnoreLine(A,R){A.tokenization.forceTokenization(R);const N=A.getLineFirstNonWhitespaceColumn(R);if(N===0)return!0;const O=A.tokenization.getLineTokens(R);if(O.getCount()>0){const x=O.findTokenIndexAtOffset(N);if(x>=0&&O.getStandardTokenType(x)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};e.AutoIndentOnPaste=w,e.AutoIndentOnPaste=w=De([he(1,_.ILanguageConfigurationService)],w);function S(M,A){const R=N=>(0,o.getStandardTokenTypeAtPosition)(M,N)===2;return R(A.getStartPosition())||R(A.getEndPosition())}function D(M,A,R,N){if(M.getLineCount()===1&&M.getLineMaxColumn(1)===1)return;let O="";for(let F=0;F<R;F++)O+=" ";const x=new RegExp(O,"gi");for(let F=1,W=M.getLineCount();F<=W;F++){let z=M.getLineFirstNonWhitespaceColumn(F);if(z===0&&(z=M.getLineMaxColumn(F)),z===1)continue;const q=new y.Range(F,1,F,z),H=M.getValueInRange(q),K=N?H.replace(/\t/ig,O):H.replace(x," ");A.addEditOperation(q,K)}}class I{constructor(A,R){this.selection=A,this.tabSize=R,this.selectionId=null}getEditOperations(A,R){this.selectionId=R.trackSelection(this.selection),D(A,R,this.tabSize,!0)}computeCursorState(A,R){return R.getTrackedSelection(this.selectionId)}}e.IndentationToSpacesCommand=I;class T{constructor(A,R){this.selection=A,this.tabSize=R,this.selectionId=null}getEditOperations(A,R){this.selectionId=R.trackSelection(this.selection),D(A,R,this.tabSize,!1)}computeCursorState(A,R){return R.getTrackedSelection(this.selectionId)}}e.IndentationToTabsCommand=T,(0,E.registerEditorContribution)(w.ID,w,2),(0,E.registerEditorAction)(g),(0,E.registerEditorAction)(u),(0,E.registerEditorAction)(r),(0,E.registerEditorAction)(a),(0,E.registerEditorAction)(d),(0,E.registerEditorAction)(m),(0,E.registerEditorAction)(h),(0,E.registerEditorAction)(C)}),define(oe[730],re([1,0,15,234,20,3]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExpandLineSelectionAction=void 0;class y extends c.EditorAction{constructor(){super({id:"expandLineSelection",label:L.localize(600,"Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:E.EditorContextKeys.textInputFocus,primary:2090}})}run(_,v,p){if(p=p||{},!v.hasModel())return;const n=v._getViewModel();n.model.pushStackElement(),n.setCursorStates(p.source,3,k.CursorMoveCommands.expandLineSelection(n,n.getCursorStates())),n.revealAllCursors(p.source,!0)}}e.ExpandLineSelectionAction=y,(0,c.registerEditorAction)(y)}),define(oe[731],re([1,0,72,212,15,145,550,275,211,75,9,4,23,20,615,708,616,3,29,34,27]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l,r,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KebabCaseAction=e.PascalCaseAction=e.CamelCaseAction=e.SnakeCaseAction=e.TitleCaseAction=e.LowerCaseAction=e.UpperCaseAction=e.AbstractCaseAction=e.TransposeAction=e.JoinLinesAction=e.DeleteAllRightAction=e.DeleteAllLeftAction=e.AbstractDeleteAllToBoundaryAction=e.InsertLineAfterAction=e.InsertLineBeforeAction=e.IndentLinesAction=e.DeleteLinesAction=e.TrimTrailingWhitespaceAction=e.DeleteDuplicateLinesAction=e.SortLinesDescendingAction=e.SortLinesAscendingAction=e.AbstractSortLinesAction=e.DuplicateSelectionAction=void 0;class d extends E.EditorAction{constructor(pe,ce){super(ce),this.down=pe}run(pe,ce){if(!ce.hasModel())return;const ie=ce.getSelections().map((B,j)=>({selection:B,index:j,ignore:!1}));ie.sort((B,j)=>n.Range.compareRangesUsingStarts(B.selection,j.selection));let ne=ie[0];for(let B=1;B<ie.length;B++){const j=ie[B];ne.selection.endLineNumber===j.selection.startLineNumber&&(ne.index<j.index?j.ignore=!0:(ne.ignore=!0,ne=j))}const J=[];for(const B of ie)J.push(new i.CopyLinesCommand(B.selection,this.down,B.ignore));ce.pushUndoStop(),ce.executeCommands(this.id,J),ce.pushUndoStop()}}class m extends d{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:u.localize(570,"Copy Line Up"),alias:"Copy Line Up",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(571,"&&Copy Line Up"),order:1}})}}class h extends d{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:u.localize(572,"Copy Line Down"),alias:"Copy Line Down",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(573,"Co&&py Line Down"),order:2}})}}class C extends E.EditorAction{constructor(){super({id:"editor.action.duplicateSelection",label:u.localize(574,"Duplicate Selection"),alias:"Duplicate Selection",precondition:t.EditorContextKeys.writable,menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(575,"&&Duplicate Selection"),order:5}})}run(pe,ce,ie){if(!ce.hasModel())return;const ne=[],J=ce.getSelections(),B=ce.getModel();for(const j of J)if(j.isEmpty())ne.push(new i.CopyLinesCommand(j,!0));else{const V=new s.Selection(j.endLineNumber,j.endColumn,j.endLineNumber,j.endColumn);ne.push(new L.ReplaceCommandThatSelectsText(V,B.getValueInRange(j)))}ce.pushUndoStop(),ce.executeCommands(this.id,ne),ce.pushUndoStop()}}e.DuplicateSelectionAction=C;class b extends E.EditorAction{constructor(pe,ce){super(ce),this.down=pe}run(pe,ce){const ie=pe.get(r.ILanguageConfigurationService),ne=[],J=ce.getSelections()||[],B=ce.getOption(12);for(const j of J)ne.push(new o.MoveLinesCommand(j,this.down,B,ie));ce.pushUndoStop(),ce.executeCommands(this.id,ne),ce.pushUndoStop()}}class w extends b{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:u.localize(576,"Move Line Up"),alias:"Move Line Up",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(577,"Mo&&ve Line Up"),order:3}})}}class S extends b{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:u.localize(578,"Move Line Down"),alias:"Move Line Down",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:l.MenuId.MenubarSelectionMenu,group:"2_line",title:u.localize(579,"Move &&Line Down"),order:4}})}}class D extends E.EditorAction{constructor(pe,ce){super(ce),this.descending=pe}run(pe,ce){if(!ce.hasModel())return;const ie=ce.getModel();let ne=ce.getSelections();ne.length===1&&ne[0].isEmpty()&&(ne=[new s.Selection(1,1,ie.getLineCount(),ie.getLineMaxColumn(ie.getLineCount()))]);for(const B of ne)if(!g.SortLinesCommand.canRun(ce.getModel(),B,this.descending))return;const J=[];for(let B=0,j=ne.length;B<j;B++)J[B]=new g.SortLinesCommand(ne[B],this.descending);ce.pushUndoStop(),ce.executeCommands(this.id,J),ce.pushUndoStop()}}e.AbstractSortLinesAction=D;class I extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:u.localize(580,"Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:t.EditorContextKeys.writable})}}e.SortLinesAscendingAction=I;class T extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:u.localize(581,"Sort Lines Descending"),alias:"Sort Lines Descending",precondition:t.EditorContextKeys.writable})}}e.SortLinesDescendingAction=T;class M extends E.EditorAction{constructor(){super({id:"editor.action.removeDuplicateLines",label:u.localize(582,"Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:t.EditorContextKeys.writable})}run(pe,ce){if(!ce.hasModel())return;const ie=ce.getModel();if(ie.getLineCount()===1&&ie.getLineMaxColumn(1)===1)return;const ne=[],J=[];let B=0,j=!0,V=ce.getSelections();V.length===1&&V[0].isEmpty()&&(V=[new s.Selection(1,1,ie.getLineCount(),ie.getLineMaxColumn(ie.getLineCount()))],j=!1);for(const $ of V){const Z=new Set,ee=[];for(let be=$.startLineNumber;be<=$.endLineNumber;be++){const ve=ie.getLineContent(be);Z.has(ve)||(ee.push(ve),Z.add(ve))}const le=new s.Selection($.startLineNumber,1,$.endLineNumber,ie.getLineMaxColumn($.endLineNumber)),de=$.startLineNumber-B,me=new s.Selection(de,1,de+ee.length-1,ee[ee.length-1].length);ne.push(v.EditOperation.replace(le,ee.join(`
|
|
650
650
|
`))),J.push(me),B+=$.endLineNumber-$.startLineNumber+1-ee.length}ce.pushUndoStop(),ce.executeEdits(this.id,ne,j?J:void 0),ce.pushUndoStop()}}e.DeleteDuplicateLinesAction=M;class A extends E.EditorAction{static{this.ID="editor.action.trimTrailingWhitespace"}constructor(){super({id:A.ID,label:u.localize(583,"Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:(0,c.KeyChord)(2089,2102),weight:100}})}run(pe,ce,ie){let ne=[];ie.reason==="auto-save"&&(ne=(ce.getSelections()||[]).map(Z=>new p.Position(Z.positionLineNumber,Z.positionColumn)));const J=ce.getSelection();if(J===null)return;const B=pe.get(a.IConfigurationService),j=ce.getModel(),V=B.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:j?.getLanguageId(),resource:j?.uri}),$=new y.TrimTrailingWhitespaceCommand(J,ne,V);ce.pushUndoStop(),ce.executeCommands(this.id,[$]),ce.pushUndoStop()}}e.TrimTrailingWhitespaceAction=A;class R extends E.EditorAction{constructor(){super({id:"editor.action.deleteLines",label:u.localize(584,"Delete Line"),alias:"Delete Line",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.textInputFocus,primary:3113,weight:100}})}run(pe,ce){if(!ce.hasModel())return;const ie=this._getLinesToRemove(ce),ne=ce.getModel();if(ne.getLineCount()===1&&ne.getLineMaxColumn(1)===1)return;let J=0;const B=[],j=[];for(let V=0,$=ie.length;V<$;V++){const Z=ie[V];let ee=Z.startLineNumber,le=Z.endLineNumber,de=1,me=ne.getLineMaxColumn(le);le<ne.getLineCount()?(le+=1,me=1):ee>1&&(ee-=1,de=ne.getLineMaxColumn(ee)),B.push(v.EditOperation.replace(new s.Selection(ee,de,le,me),"")),j.push(new s.Selection(ee-J,Z.positionColumn,ee-J,Z.positionColumn)),J+=Z.endLineNumber-Z.startLineNumber+1}ce.pushUndoStop(),ce.executeEdits(this.id,B,j),ce.pushUndoStop()}_getLinesToRemove(pe){const ce=pe.getSelections().map(J=>{let B=J.endLineNumber;return J.startLineNumber<J.endLineNumber&&J.endColumn===1&&(B-=1),{startLineNumber:J.startLineNumber,selectionStartColumn:J.selectionStartColumn,endLineNumber:B,positionColumn:J.positionColumn}});ce.sort((J,B)=>J.startLineNumber===B.startLineNumber?J.endLineNumber-B.endLineNumber:J.startLineNumber-B.startLineNumber);const ie=[];let ne=ce[0];for(let J=1;J<ce.length;J++)ne.endLineNumber+1>=ce[J].startLineNumber?ne.endLineNumber=ce[J].endLineNumber:(ie.push(ne),ne=ce[J]);return ie.push(ne),ie}}e.DeleteLinesAction=R;class N extends E.EditorAction{constructor(){super({id:"editor.action.indentLines",label:u.localize(585,"Indent Line"),alias:"Indent Line",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:2142,weight:100}})}run(pe,ce){const ie=ce._getViewModel();ie&&(ce.pushUndoStop(),ce.executeCommands(this.id,f.TypeOperations.indent(ie.cursorConfig,ce.getModel(),ce.getSelections())),ce.pushUndoStop())}}e.IndentLinesAction=N;class O extends E.EditorAction{constructor(){super({id:"editor.action.outdentLines",label:u.localize(586,"Outdent Line"),alias:"Outdent Line",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:2140,weight:100}})}run(pe,ce){k.CoreEditingCommands.Outdent.runEditorCommand(pe,ce,null)}}class x extends E.EditorAction{constructor(){super({id:"editor.action.insertLineBefore",label:u.localize(587,"Insert Line Above"),alias:"Insert Line Above",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:3075,weight:100}})}run(pe,ce){const ie=ce._getViewModel();ie&&(ce.pushUndoStop(),ce.executeCommands(this.id,_.EnterOperation.lineInsertBefore(ie.cursorConfig,ce.getModel(),ce.getSelections())))}}e.InsertLineBeforeAction=x;class F extends E.EditorAction{constructor(){super({id:"editor.action.insertLineAfter",label:u.localize(588,"Insert Line Below"),alias:"Insert Line Below",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:2051,weight:100}})}run(pe,ce){const ie=ce._getViewModel();ie&&(ce.pushUndoStop(),ce.executeCommands(this.id,_.EnterOperation.lineInsertAfter(ie.cursorConfig,ce.getModel(),ce.getSelections())))}}e.InsertLineAfterAction=F;class W extends E.EditorAction{run(pe,ce){if(!ce.hasModel())return;const ie=ce.getSelection(),ne=this._getRangesToDelete(ce),J=[];for(let V=0,$=ne.length-1;V<$;V++){const Z=ne[V],ee=ne[V+1];n.Range.intersectRanges(Z,ee)===null?J.push(Z):ne[V+1]=n.Range.plusRange(Z,ee)}J.push(ne[ne.length-1]);const B=this._getEndCursorState(ie,J),j=J.map(V=>v.EditOperation.replace(V,""));ce.pushUndoStop(),ce.executeEdits(this.id,j,B),ce.pushUndoStop()}}e.AbstractDeleteAllToBoundaryAction=W;class z extends W{constructor(){super({id:"deleteAllLeft",label:u.localize(589,"Delete All Left"),alias:"Delete All Left",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(pe,ce){let ie=null;const ne=[];let J=0;return ce.forEach(B=>{let j;if(B.endColumn===1&&J>0){const V=B.startLineNumber-J;j=new s.Selection(V,B.startColumn,V,B.startColumn)}else j=new s.Selection(B.startLineNumber,B.startColumn,B.startLineNumber,B.startColumn);J+=B.endLineNumber-B.startLineNumber,B.intersectRanges(pe)?ie=j:ne.push(j)}),ie&&ne.unshift(ie),ne}_getRangesToDelete(pe){const ce=pe.getSelections();if(ce===null)return[];let ie=ce;const ne=pe.getModel();return ne===null?[]:(ie.sort(n.Range.compareRangesUsingStarts),ie=ie.map(J=>{if(J.isEmpty())if(J.startColumn===1){const B=Math.max(1,J.startLineNumber-1),j=J.startLineNumber===1?1:ne.getLineLength(B)+1;return new n.Range(B,j,J.startLineNumber,1)}else return new n.Range(J.startLineNumber,1,J.startLineNumber,J.startColumn);else return new n.Range(J.startLineNumber,1,J.endLineNumber,J.endColumn)}),ie)}}e.DeleteAllLeftAction=z;class q extends W{constructor(){super({id:"deleteAllRight",label:u.localize(590,"Delete All Right"),alias:"Delete All Right",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(pe,ce){let ie=null;const ne=[];for(let J=0,B=ce.length,j=0;J<B;J++){const V=ce[J],$=new s.Selection(V.startLineNumber-j,V.startColumn,V.startLineNumber-j,V.startColumn);V.intersectRanges(pe)?ie=$:ne.push($)}return ie&&ne.unshift(ie),ne}_getRangesToDelete(pe){const ce=pe.getModel();if(ce===null)return[];const ie=pe.getSelections();if(ie===null)return[];const ne=ie.map(J=>{if(J.isEmpty()){const B=ce.getLineMaxColumn(J.startLineNumber);return J.startColumn===B?new n.Range(J.startLineNumber,J.startColumn,J.startLineNumber+1,1):new n.Range(J.startLineNumber,J.startColumn,J.startLineNumber,B)}return J});return ne.sort(n.Range.compareRangesUsingStarts),ne}}e.DeleteAllRightAction=q;class H extends E.EditorAction{constructor(){super({id:"editor.action.joinLines",label:u.localize(591,"Join Lines"),alias:"Join Lines",precondition:t.EditorContextKeys.writable,kbOpts:{kbExpr:t.EditorContextKeys.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(pe,ce){const ie=ce.getSelections();if(ie===null)return;let ne=ce.getSelection();if(ne===null)return;ie.sort(n.Range.compareRangesUsingStarts);const J=[],B=ie.reduce((le,de)=>le.isEmpty()?le.endLineNumber===de.startLineNumber?(ne.equalsSelection(le)&&(ne=de),de):de.startLineNumber>le.endLineNumber+1?(J.push(le),de):new s.Selection(le.startLineNumber,le.startColumn,de.endLineNumber,de.endColumn):de.startLineNumber>le.endLineNumber?(J.push(le),de):new s.Selection(le.startLineNumber,le.startColumn,de.endLineNumber,de.endColumn));J.push(B);const j=ce.getModel();if(j===null)return;const V=[],$=[];let Z=ne,ee=0;for(let le=0,de=J.length;le<de;le++){const me=J[le],be=me.startLineNumber,ve=1;let Le=0,Se,ye;const Ee=j.getLineLength(me.endLineNumber)-me.endColumn;if(me.isEmpty()||me.startLineNumber===me.endLineNumber){const Pe=me.getStartPosition();Pe.lineNumber<j.getLineCount()?(Se=be+1,ye=j.getLineMaxColumn(Se)):(Se=Pe.lineNumber,ye=j.getLineMaxColumn(Pe.lineNumber))}else Se=me.endLineNumber,ye=j.getLineMaxColumn(Se);let ke=j.getLineContent(be);for(let Pe=be+1;Pe<=Se;Pe++){const Fe=j.getLineContent(Pe),je=j.getLineFirstNonWhitespaceColumn(Pe);if(je>=1){let Te=!0;ke===""&&(Te=!1),Te&&(ke.charAt(ke.length-1)===" "||ke.charAt(ke.length-1)===" ")&&(Te=!1,ke=ke.replace(/[\s\uFEFF\xA0]+$/g," "));const Ne=Fe.substr(je-1);ke+=(Te?" ":"")+Ne,Te?Le=Ne.length+1:Le=Ne.length}else Le=0}const Re=new n.Range(be,ve,Se,ye);if(!Re.isEmpty()){let Pe;me.isEmpty()?(V.push(v.EditOperation.replace(Re,ke)),Pe=new s.Selection(Re.startLineNumber-ee,ke.length-Le+1,be-ee,ke.length-Le+1)):me.startLineNumber===me.endLineNumber?(V.push(v.EditOperation.replace(Re,ke)),Pe=new s.Selection(me.startLineNumber-ee,me.startColumn,me.endLineNumber-ee,me.endColumn)):(V.push(v.EditOperation.replace(Re,ke)),Pe=new s.Selection(me.startLineNumber-ee,me.startColumn,me.startLineNumber-ee,ke.length-Ee)),n.Range.intersectRanges(Re,ne)!==null?Z=Pe:$.push(Pe)}ee+=Re.endLineNumber-Re.startLineNumber}$.unshift(Z),ce.pushUndoStop(),ce.executeEdits(this.id,V,$),ce.pushUndoStop()}}e.JoinLinesAction=H;class K extends E.EditorAction{constructor(){super({id:"editor.action.transpose",label:u.localize(592,"Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:t.EditorContextKeys.writable})}run(pe,ce){const ie=ce.getSelections();if(ie===null)return;const ne=ce.getModel();if(ne===null)return;const J=[];for(let B=0,j=ie.length;B<j;B++){const V=ie[B];if(!V.isEmpty())continue;const $=V.getStartPosition(),Z=ne.getLineMaxColumn($.lineNumber);if($.column>=Z){if($.lineNumber===ne.getLineCount())continue;const ee=new n.Range($.lineNumber,Math.max(1,$.column-1),$.lineNumber+1,1),le=ne.getValueInRange(ee).split("").reverse().join("");J.push(new L.ReplaceCommand(new s.Selection($.lineNumber,Math.max(1,$.column-1),$.lineNumber+1,1),le))}else{const ee=new n.Range($.lineNumber,Math.max(1,$.column-1),$.lineNumber,$.column+1),le=ne.getValueInRange(ee).split("").reverse().join("");J.push(new L.ReplaceCommandThatPreservesSelection(ee,le,new s.Selection($.lineNumber,$.column+1,$.lineNumber,$.column+1)))}}ce.pushUndoStop(),ce.executeCommands(this.id,J),ce.pushUndoStop()}}e.TransposeAction=K;class U extends E.EditorAction{run(pe,ce){const ie=ce.getSelections();if(ie===null)return;const ne=ce.getModel();if(ne===null)return;const J=ce.getOption(132),B=[];for(const j of ie)if(j.isEmpty()){const V=j.getStartPosition(),$=ce.getConfiguredWordAtPosition(V);if(!$)continue;const Z=new n.Range(V.lineNumber,$.startColumn,V.lineNumber,$.endColumn),ee=ne.getValueInRange(Z);B.push(v.EditOperation.replace(Z,this._modifyText(ee,J)))}else{const V=ne.getValueInRange(j);B.push(v.EditOperation.replace(j,this._modifyText(V,J)))}ce.pushUndoStop(),ce.executeEdits(this.id,B),ce.pushUndoStop()}}e.AbstractCaseAction=U;class Y extends U{constructor(){super({id:"editor.action.transformToUppercase",label:u.localize(593,"Transform to Uppercase"),alias:"Transform to Uppercase",precondition:t.EditorContextKeys.writable})}_modifyText(pe,ce){return pe.toLocaleUpperCase()}}e.UpperCaseAction=Y;class Q extends U{constructor(){super({id:"editor.action.transformToLowercase",label:u.localize(594,"Transform to Lowercase"),alias:"Transform to Lowercase",precondition:t.EditorContextKeys.writable})}_modifyText(pe,ce){return pe.toLocaleLowerCase()}}e.LowerCaseAction=Q;class X{constructor(pe,ce){this._pattern=pe,this._flags=ce,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch{}}return this._actual}isSupported(){return this.get()!==null}}class G extends U{static{this.titleBoundary=new X("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu")}constructor(){super({id:"editor.action.transformToTitlecase",label:u.localize(595,"Transform to Title Case"),alias:"Transform to Title Case",precondition:t.EditorContextKeys.writable})}_modifyText(pe,ce){const ie=G.titleBoundary.get();return ie?pe.toLocaleLowerCase().replace(ie,ne=>ne.toLocaleUpperCase()):pe}}e.TitleCaseAction=G;class P extends U{static{this.caseBoundary=new X("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new X("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu")}constructor(){super({id:"editor.action.transformToSnakecase",label:u.localize(596,"Transform to Snake Case"),alias:"Transform to Snake Case",precondition:t.EditorContextKeys.writable})}_modifyText(pe,ce){const ie=P.caseBoundary.get(),ne=P.singleLetters.get();return!ie||!ne?pe:pe.replace(ie,"$1_$2").replace(ne,"$1_$2$3").toLocaleLowerCase()}}e.SnakeCaseAction=P;class te extends U{static{this.wordBoundary=new X("[_\\s-]","gm")}constructor(){super({id:"editor.action.transformToCamelcase",label:u.localize(597,"Transform to Camel Case"),alias:"Transform to Camel Case",precondition:t.EditorContextKeys.writable})}_modifyText(pe,ce){const ie=te.wordBoundary.get();if(!ie)return pe;const ne=pe.split(ie);return ne.shift()+ne.map(B=>B.substring(0,1).toLocaleUpperCase()+B.substring(1)).join("")}}e.CamelCaseAction=te;class se extends U{static{this.wordBoundary=new X("[_\\s-]","gm")}static{this.wordBoundaryToMaintain=new X("(?<=\\.)","gm")}constructor(){super({id:"editor.action.transformToPascalcase",label:u.localize(598,"Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:t.EditorContextKeys.writable})}_modifyText(pe,ce){const ie=se.wordBoundary.get(),ne=se.wordBoundaryToMaintain.get();return!ie||!ne?pe:pe.split(ne).map(j=>j.split(ie)).flat().map(j=>j.substring(0,1).toLocaleUpperCase()+j.substring(1)).join("")}}e.PascalCaseAction=se;class ue extends U{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(ce=>ce.isSupported())}static{this.caseBoundary=new X("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new X("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu")}static{this.underscoreBoundary=new X("(\\S)(_)(\\S)","gm")}constructor(){super({id:"editor.action.transformToKebabcase",label:u.localize(599,"Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:t.EditorContextKeys.writable})}_modifyText(pe,ce){const ie=ue.caseBoundary.get(),ne=ue.singleLetters.get(),J=ue.underscoreBoundary.get();return!ie||!ne||!J?pe:pe.replace(J,"$1-$3").replace(ie,"$1-$2").replace(ne,"$1-$2").toLocaleLowerCase()}}e.KebabCaseAction=ue,(0,E.registerEditorAction)(m),(0,E.registerEditorAction)(h),(0,E.registerEditorAction)(C),(0,E.registerEditorAction)(w),(0,E.registerEditorAction)(S),(0,E.registerEditorAction)(I),(0,E.registerEditorAction)(T),(0,E.registerEditorAction)(M),(0,E.registerEditorAction)(A),(0,E.registerEditorAction)(R),(0,E.registerEditorAction)(N),(0,E.registerEditorAction)(O),(0,E.registerEditorAction)(x),(0,E.registerEditorAction)(F),(0,E.registerEditorAction)(z),(0,E.registerEditorAction)(q),(0,E.registerEditorAction)(H),(0,E.registerEditorAction)(K),(0,E.registerEditorAction)(Y),(0,E.registerEditorAction)(Q),P.caseBoundary.isSupported()&&P.singleLetters.isSupported()&&(0,E.registerEditorAction)(P),te.wordBoundary.isSupported()&&(0,E.registerEditorAction)(te),se.wordBoundary.isSupported()&&(0,E.registerEditorAction)(se),G.titleBoundary.isSupported()&&(0,E.registerEditorAction)(G),ue.isSupported()&&(0,E.registerEditorAction)(ue)}),define(oe[732],re([1,0,2,15]),function(ae,e,c,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class E extends c.Disposable{static{this.ID="editor.contrib.longLinesHelper"}constructor(y){super(),this._editor=y,this._register(this._editor.onMouseDown(f=>{const _=this._editor.getOption(118);_>=0&&f.target.type===6&&f.target.position.column>=_&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}}(0,k.registerEditorContribution)(E.ID,E,2)}),define(oe[184],re([1,0,206,48,6,57,2,15,4,120,3,12,62,5,521]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.MessageController=void 0;let o=class{static{i=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new n.RawContextKey("messageVisible",!1,p.localize(557,"Whether the editor is currently showing an inline message"))}static get(r){return r.getContribution(i.ID)}constructor(r,a,d){this._openerService=d,this._messageWidget=new y.MutableDisposable,this._messageListeners=new y.DisposableStore,this._mouseOverMessage=!1,this._editor=r,this._visible=i.MESSAGE_VISIBLE.bindTo(a)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(r,a){(0,k.alert)((0,L.isMarkdownString)(r)?r.value:r),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,L.isMarkdownString)(r)?(0,c.renderMarkdown)(r,{actionHandler:{callback:m=>{this.closeMessage(),(0,v.openLinkFromMarkdown)(this._openerService,m,(0,L.isMarkdownString)(r)?r.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new u(this._editor,a,typeof r=="string"?r:this._message.element),this._messageListeners.add(E.Event.debounce(this._editor.onDidBlurEditorText,(m,h)=>h,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&t.isAncestor(t.getActiveElement(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(t.addDisposableListener(this._messageWidget.value.getDomNode(),t.EventType.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(t.addDisposableListener(this._messageWidget.value.getDomNode(),t.EventType.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let d;this._messageListeners.add(this._editor.onMouseMove(m=>{m.target.position&&(d?d.containsPosition(m.target.position)||this.closeMessage():d=new _.Range(a.lineNumber-3,1,m.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(u.fadeOut(this._messageWidget.value))}};e.MessageController=o,e.MessageController=o=i=De([he(1,n.IContextKeyService),he(2,s.IOpenerService)],o);const g=f.EditorCommand.bindToContribution(o.get);(0,f.registerEditorCommand)(new g({id:"leaveEditorMessage",precondition:o.MESSAGE_VISIBLE,handler:l=>l.closeMessage(),kbOpts:{weight:130,primary:9}}));class u{static fadeOut(r){const a=()=>{r.dispose(),clearTimeout(d),r.getDomNode().removeEventListener("animationend",a)},d=setTimeout(a,110);return r.getDomNode().addEventListener("animationend",a),r.getDomNode().classList.add("fadeOut"),{dispose:a}}constructor(r,{lineNumber:a,column:d},m){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=r,this._editor.revealLinesInCenterIfOutsideViewport(a,a,0),this._position={lineNumber:a,column:d},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const h=document.createElement("div");h.classList.add("anchor","top"),this._domNode.appendChild(h);const C=document.createElement("div");typeof m=="string"?(C.classList.add("message"),C.textContent=m):(m.classList.add("message"),C.appendChild(m)),this._domNode.appendChild(C);const b=document.createElement("div");b.classList.add("anchor","below"),this._domNode.appendChild(b),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(r){this._domNode.classList.toggle("below",r===2)}}(0,f.registerEditorContribution)(o.ID,o,4)}),define(oe[733],re([1,0,57,2,15,184,3]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadOnlyMessageController=void 0;class f extends k.Disposable{static{this.ID="editor.contrib.readOnlyMessageController"}constructor(v){super(),this.editor=v,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const v=L.MessageController.get(this.editor);if(v&&this.editor.hasModel()){let p=this.editor.getOptions().get(93);p||(this.editor.isSimpleWidget?p=new c.MarkdownString(y.localize(471,"Cannot edit in read-only input")):p=new c.MarkdownString(y.localize(472,"Cannot edit in read-only editor"))),v.showMessage(p,this.editor.getPosition())}}}e.ReadOnlyMessageController=f,(0,E.registerEditorContribution)(f.ID,f,2)}),define(oe[734],re([1,0,13,18,8,15,9,4,23,20,338,617,3,29,24,17,78,19,22]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.SmartSelectController=void 0,e.provideSelectionRanges=b;class a{constructor(S,D){this.index=S,this.ranges=D}mov(S){const D=this.index+(S?1:-1);if(D<0||D>=this.ranges.length)return this;const I=new a(D,this.ranges);return I.ranges[D].equalsRange(this.ranges[this.index])?I.mov(S):I}}let d=class{static{r=this}static{this.ID="editor.contrib.smartSelectController"}static get(S){return S.getContribution(r.ID)}constructor(S,D){this._editor=S,this._languageFeaturesService=D,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(S){if(!this._editor.hasModel())return;const D=this._editor.getSelections(),I=this._editor.getModel();if(this._state||await b(this._languageFeaturesService.selectionRangeProvider,I,D.map(M=>M.getPosition()),this._editor.getOption(114),k.CancellationToken.None).then(M=>{if(!(!c.isNonEmptyArray(M)||M.length!==D.length)&&!(!this._editor.hasModel()||!c.equals(this._editor.getSelections(),D,(A,R)=>A.equalsSelection(R)))){for(let A=0;A<M.length;A++)M[A]=M[A].filter(R=>R.containsPosition(D[A].getStartPosition())&&R.containsPosition(D[A].getEndPosition())),M[A].unshift(D[A]);this._state=M.map(A=>new a(0,A)),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)})}}),!this._state)return;this._state=this._state.map(M=>M.mov(S));const T=this._state.map(M=>_.Selection.fromPositions(M.ranges[M.index].getStartPosition(),M.ranges[M.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(T)}finally{this._ignoreSelection=!1}}};e.SmartSelectController=d,e.SmartSelectController=d=r=De([he(1,o.ILanguageFeaturesService)],d);class m extends L.EditorAction{constructor(S,D){super(D),this._forward=S}async run(S,D){const I=d.get(D);I&&await I.run(this._forward)}}class h extends m{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:s.localize(449,"Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:t.MenuId.MenubarSelectionMenu,group:"1_basic",title:s.localize(450,"&&Expand Selection"),order:2}})}}i.CommandsRegistry.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class C extends m{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:s.localize(451,"Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:t.MenuId.MenubarSelectionMenu,group:"1_basic",title:s.localize(452,"&&Shrink Selection"),order:3}})}}(0,L.registerEditorContribution)(d.ID,d,4),(0,L.registerEditorAction)(h),(0,L.registerEditorAction)(C);async function b(w,S,D,I,T){const M=w.all(S).concat(new n.WordSelectionRangeProvider(I.selectSubwords));M.length===1&&M.unshift(new p.BracketSelectionRangeProvider);const A=[],R=[];for(const N of M)A.push(Promise.resolve(N.provideSelectionRanges(S,D,T)).then(O=>{if(c.isNonEmptyArray(O)&&O.length===D.length)for(let x=0;x<D.length;x++){R[x]||(R[x]=[]);for(const F of O[x])f.Range.isIRange(F.range)&&f.Range.containsPosition(F.range,D[x])&&R[x].push(f.Range.lift(F.range))}},E.onUnexpectedExternalError));return await Promise.all(A),R.map(N=>{if(N.length===0)return[];N.sort((W,z)=>y.Position.isBefore(W.getStartPosition(),z.getStartPosition())?1:y.Position.isBefore(z.getStartPosition(),W.getStartPosition())||y.Position.isBefore(W.getEndPosition(),z.getEndPosition())?-1:y.Position.isBefore(z.getEndPosition(),W.getEndPosition())?1:0);const O=[];let x;for(const W of N)(!x||f.Range.containsRange(W,x)&&!f.Range.equalsRange(W,x))&&(O.push(W),x=W);if(!I.selectLeadingAndTrailingWhitespace)return O;const F=[O[0]];for(let W=1;W<O.length;W++){const z=O[W-1],q=O[W];if(q.startLineNumber!==z.startLineNumber||q.endLineNumber!==z.endLineNumber){const H=new f.Range(z.startLineNumber,S.getLineFirstNonWhitespaceColumn(z.startLineNumber),z.endLineNumber,S.getLineLastNonWhitespaceColumn(z.endLineNumber));H.containsRange(z)&&!H.equalsRange(z)&&q.containsRange(H)&&!q.equalsRange(H)&&F.push(H);const K=new f.Range(z.startLineNumber,1,z.endLineNumber,S.getLineMaxColumn(z.endLineNumber));K.containsRange(z)&&!K.equalsRange(H)&&q.containsRange(K)&&!q.equalsRange(K)&&F.push(K)}F.push(q)}return F})}i.CommandsRegistry.registerCommand("_executeSelectionRangeProvider",async function(w,...S){const[D,I]=S;(0,u.assertType)(l.URI.isUri(D));const T=w.get(o.ILanguageFeaturesService).selectionRangeProvider,M=await w.get(g.ITextModelService).createModelReference(D);try{return b(T,M.object.textEditorModel,I,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},k.CancellationToken.None)}finally{M.dispose()}})}),define(oe[735],re([1,0,59,15,3]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class L extends k.EditorAction{constructor(){super({id:"editor.action.forceRetokenize",label:E.localize(320,"Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(f,_){if(!_.hasModel())return;const v=_.getModel();v.tokenization.resetTokenization();const p=new c.StopWatch;v.tokenization.forceTokenization(v.getLineCount()),p.stop(),console.log(`tokenization took ${p.elapsed()}`)}}(0,k.registerEditorAction)(L)}),define(oe[736],re([1,0,2,51,15,35,3,179]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnusualLineTerminatorsDetector=void 0;const _="ignoreUnusualLineTerminators";function v(s,t,i){s.setModelProperty(t.uri,_,i)}function p(s,t){return s.getModelProperty(t.uri,_)}let n=class extends c.Disposable{static{this.ID="editor.contrib.unusualLineTerminatorsDetector"}constructor(t,i,o){super(),this._editor=t,this._dialogService=i,this._codeEditorService=o,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration(g=>{g.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(g=>{g.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if(this._config==="off"||!this._editor.hasModel())return;const t=this._editor.getModel();if(!t.mightContainUnusualLineTerminators()||p(this._codeEditorService,t)===!0||this._editor.getOption(92))return;if(this._config==="auto"){t.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let o;try{this._isPresentingDialog=!0,o=await this._dialogService.confirm({title:y.localize(291,"Unusual Line Terminators"),message:y.localize(292,"Detected unusual line terminators"),detail:y.localize(293,"The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,k.basename)(t.uri)),primaryButton:y.localize(294,"&&Remove Unusual Line Terminators"),cancelButton:y.localize(295,"Ignore")})}finally{this._isPresentingDialog=!1}if(!o.confirmed){v(this._codeEditorService,t,!0);return}t.removeUnusualLineTerminators(this._editor.getSelections())}};e.UnusualLineTerminatorsDetector=n,e.UnusualLineTerminatorsDetector=n=De([he(1,f.IDialogService),he(2,L.ICodeEditorService)],n),(0,E.registerEditorContribution)(n.ID,n,1)}),define(oe[407],re([1,0,15,145,37,76,198,164,9,4,23,20,34,3,60,12,178]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeleteInsideWord=e.DeleteWordRight=e.DeleteWordEndRight=e.DeleteWordStartRight=e.DeleteWordLeft=e.DeleteWordEndLeft=e.DeleteWordStartLeft=e.DeleteWordRightCommand=e.DeleteWordLeftCommand=e.DeleteWordCommand=e.CursorWordAccessibilityRightSelect=e.CursorWordAccessibilityRight=e.CursorWordRightSelect=e.CursorWordEndRightSelect=e.CursorWordStartRightSelect=e.CursorWordRight=e.CursorWordEndRight=e.CursorWordStartRight=e.CursorWordAccessibilityLeftSelect=e.CursorWordAccessibilityLeft=e.CursorWordLeftSelect=e.CursorWordEndLeftSelect=e.CursorWordStartLeftSelect=e.CursorWordLeft=e.CursorWordEndLeft=e.CursorWordStartLeft=e.WordRightCommand=e.WordLeftCommand=e.MoveWordCommand=void 0;class u extends c.EditorCommand{constructor(G){super(G),this._inSelectionMode=G.inSelectionMode,this._wordNavigationType=G.wordNavigationType}runEditorCommand(G,P,te){if(!P.hasModel())return;const se=(0,f.getMapForWordSeparators)(P.getOption(132),P.getOption(131)),ue=P.getModel(),ge=P.getSelections(),pe=ge.length>1,ce=ge.map(ie=>{const ne=new _.Position(ie.positionLineNumber,ie.positionColumn),J=this._move(se,ue,ne,this._wordNavigationType,pe);return this._moveTo(ie,J,this._inSelectionMode)});if(ue.pushStackElement(),P._getViewModel().setCursorStates("moveWordCommand",3,ce.map(ie=>L.CursorState.fromModelSelection(ie))),ce.length===1){const ie=new _.Position(ce[0].positionLineNumber,ce[0].positionColumn);P.revealPosition(ie,0)}}_moveTo(G,P,te){return te?new p.Selection(G.selectionStartLineNumber,G.selectionStartColumn,P.lineNumber,P.column):new p.Selection(P.lineNumber,P.column,P.lineNumber,P.column)}}e.MoveWordCommand=u;class l extends u{_move(G,P,te,se,ue){return y.WordOperations.moveWordLeft(G,P,te,se,ue)}}e.WordLeftCommand=l;class r extends u{_move(G,P,te,se,ue){return y.WordOperations.moveWordRight(G,P,te,se)}}e.WordRightCommand=r;class a extends l{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}e.CursorWordStartLeft=a;class d extends l{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}e.CursorWordEndLeft=d;class m extends l{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:o.ContextKeyExpr.and(n.EditorContextKeys.textInputFocus,o.ContextKeyExpr.and(i.CONTEXT_ACCESSIBILITY_MODE_ENABLED,g.IsWindowsContext)?.negate()),primary:2063,mac:{primary:527},weight:100}})}}e.CursorWordLeft=m;class h extends l{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}e.CursorWordStartLeftSelect=h;class C extends l{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}e.CursorWordEndLeftSelect=C;class b extends l{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:o.ContextKeyExpr.and(n.EditorContextKeys.textInputFocus,o.ContextKeyExpr.and(i.CONTEXT_ACCESSIBILITY_MODE_ENABLED,g.IsWindowsContext)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}}e.CursorWordLeftSelect=b;class w extends l{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(G,P,te,se,ue){return super._move((0,f.getMapForWordSeparators)(E.EditorOptions.wordSeparators.defaultValue,G.intlSegmenterLocales),P,te,se,ue)}}e.CursorWordAccessibilityLeft=w;class S extends l{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(G,P,te,se,ue){return super._move((0,f.getMapForWordSeparators)(E.EditorOptions.wordSeparators.defaultValue,G.intlSegmenterLocales),P,te,se,ue)}}e.CursorWordAccessibilityLeftSelect=S;class D extends r{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}e.CursorWordStartRight=D;class I extends r{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:o.ContextKeyExpr.and(n.EditorContextKeys.textInputFocus,o.ContextKeyExpr.and(i.CONTEXT_ACCESSIBILITY_MODE_ENABLED,g.IsWindowsContext)?.negate()),primary:2065,mac:{primary:529},weight:100}})}}e.CursorWordEndRight=I;class T extends r{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}e.CursorWordRight=T;class M extends r{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}e.CursorWordStartRightSelect=M;class A extends r{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:o.ContextKeyExpr.and(n.EditorContextKeys.textInputFocus,o.ContextKeyExpr.and(i.CONTEXT_ACCESSIBILITY_MODE_ENABLED,g.IsWindowsContext)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}}e.CursorWordEndRightSelect=A;class R extends r{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}e.CursorWordRightSelect=R;class N extends r{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(G,P,te,se,ue){return super._move((0,f.getMapForWordSeparators)(E.EditorOptions.wordSeparators.defaultValue,G.intlSegmenterLocales),P,te,se,ue)}}e.CursorWordAccessibilityRight=N;class O extends r{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(G,P,te,se,ue){return super._move((0,f.getMapForWordSeparators)(E.EditorOptions.wordSeparators.defaultValue,G.intlSegmenterLocales),P,te,se,ue)}}e.CursorWordAccessibilityRightSelect=O;class x extends c.EditorCommand{constructor(G){super(G),this._whitespaceHeuristics=G.whitespaceHeuristics,this._wordNavigationType=G.wordNavigationType}runEditorCommand(G,P,te){const se=G.get(s.ILanguageConfigurationService);if(!P.hasModel())return;const ue=(0,f.getMapForWordSeparators)(P.getOption(132),P.getOption(131)),ge=P.getModel(),pe=P.getSelections(),ce=P.getOption(6),ie=P.getOption(11),ne=se.getLanguageConfiguration(ge.getLanguageId()).getAutoClosingPairs(),J=P._getViewModel(),B=pe.map(j=>{const V=this._delete({wordSeparators:ue,model:ge,selection:j,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:P.getOption(9),autoClosingBrackets:ce,autoClosingQuotes:ie,autoClosingPairs:ne,autoClosedCharacters:J.getCursorAutoClosedCharacters()},this._wordNavigationType);return new k.ReplaceCommand(V,"")});P.pushUndoStop(),P.executeCommands(this.id,B),P.pushUndoStop()}}e.DeleteWordCommand=x;class F extends x{_delete(G,P){const te=y.WordOperations.deleteWordLeft(G,P);return te||new v.Range(1,1,1,1)}}e.DeleteWordLeftCommand=F;class W extends x{_delete(G,P){const te=y.WordOperations.deleteWordRight(G,P);if(te)return te;const se=G.model.getLineCount(),ue=G.model.getLineMaxColumn(se);return new v.Range(se,ue,se,ue)}}e.DeleteWordRightCommand=W;class z extends F{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:n.EditorContextKeys.writable})}}e.DeleteWordStartLeft=z;class q extends F{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:n.EditorContextKeys.writable})}}e.DeleteWordEndLeft=q;class H extends F{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:n.EditorContextKeys.writable,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}e.DeleteWordLeft=H;class K extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:n.EditorContextKeys.writable})}}e.DeleteWordStartRight=K;class U extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:n.EditorContextKeys.writable})}}e.DeleteWordEndRight=U;class Y extends W{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:n.EditorContextKeys.writable,kbOpts:{kbExpr:n.EditorContextKeys.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}e.DeleteWordRight=Y;class Q extends c.EditorAction{constructor(){super({id:"deleteInsideWord",precondition:n.EditorContextKeys.writable,label:t.localize(278,"Delete Word"),alias:"Delete Word"})}run(G,P,te){if(!P.hasModel())return;const se=(0,f.getMapForWordSeparators)(P.getOption(132),P.getOption(131)),ue=P.getModel(),pe=P.getSelections().map(ce=>{const ie=y.WordOperations.deleteInsideWord(se,ue,ce);return new k.ReplaceCommand(ie,"")});P.pushUndoStop(),P.executeCommands(this.id,pe),P.pushUndoStop()}}e.DeleteInsideWord=Q,(0,c.registerEditorCommand)(new a),(0,c.registerEditorCommand)(new d),(0,c.registerEditorCommand)(new m),(0,c.registerEditorCommand)(new h),(0,c.registerEditorCommand)(new C),(0,c.registerEditorCommand)(new b),(0,c.registerEditorCommand)(new D),(0,c.registerEditorCommand)(new I),(0,c.registerEditorCommand)(new T),(0,c.registerEditorCommand)(new M),(0,c.registerEditorCommand)(new A),(0,c.registerEditorCommand)(new R),(0,c.registerEditorCommand)(new w),(0,c.registerEditorCommand)(new S),(0,c.registerEditorCommand)(new N),(0,c.registerEditorCommand)(new O),(0,c.registerEditorCommand)(new z),(0,c.registerEditorCommand)(new q),(0,c.registerEditorCommand)(new H),(0,c.registerEditorCommand)(new K),(0,c.registerEditorCommand)(new U),(0,c.registerEditorCommand)(new Y),(0,c.registerEditorAction)(Q)}),define(oe[737],re([1,0,15,198,4,20,407,24]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorWordPartRightSelect=e.CursorWordPartRight=e.WordPartRightCommand=e.CursorWordPartLeftSelect=e.CursorWordPartLeft=e.WordPartLeftCommand=e.DeleteWordPartRight=e.DeleteWordPartLeft=void 0;class _ extends y.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(u,l){const r=k.WordPartOperations.deleteWordPartLeft(u);return r||new E.Range(1,1,1,1)}}e.DeleteWordPartLeft=_;class v extends y.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:L.EditorContextKeys.writable,kbOpts:{kbExpr:L.EditorContextKeys.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(u,l){const r=k.WordPartOperations.deleteWordPartRight(u);if(r)return r;const a=u.model.getLineCount(),d=u.model.getLineMaxColumn(a);return new E.Range(a,d,a,d)}}e.DeleteWordPartRight=v;class p extends y.MoveWordCommand{_move(u,l,r,a,d){return k.WordPartOperations.moveWordPartLeft(u,l,r,d)}}e.WordPartLeftCommand=p;class n extends p{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:L.EditorContextKeys.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}e.CursorWordPartLeft=n,f.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class s extends p{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:L.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}e.CursorWordPartLeftSelect=s,f.CommandsRegistry.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class t extends y.MoveWordCommand{_move(u,l,r,a,d){return k.WordPartOperations.moveWordPartRight(u,l,r)}}e.WordPartRightCommand=t;class i extends t{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:L.EditorContextKeys.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}e.CursorWordPartRight=i;class o extends t{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:L.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}e.CursorWordPartRightSelect=o,(0,c.registerEditorCommand)(new _),(0,c.registerEditorCommand)(new v),(0,c.registerEditorCommand)(new n),(0,c.registerEditorCommand)(new s),(0,c.registerEditorCommand)(new i),(0,c.registerEditorCommand)(new o)}),define(oe[738],re([1,0,5,2,15,16,534]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IPadShowKeyboard=void 0;class y extends k.Disposable{static{this.ID="editor.contrib.iPadShowKeyboard"}constructor(v){super(),this.editor=v,this.widget=null,L.isIOS&&(this._register(v.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const v=!this.editor.getOption(92);!this.widget&&v?this.widget=new f(this.editor):this.widget&&!v&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}e.IPadShowKeyboard=y;class f extends k.Disposable{static{this.ID="editor.contrib.ShowKeyboardWidget"}constructor(v){super(),this.editor=v,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(c.addDisposableListener(this._domNode,"touchstart",p=>{this.editor.focus()})),this._register(c.addDisposableListener(this._domNode,"focus",p=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return f.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}(0,E.registerEditorContribution)(y.ID,y,3)}),define(oe[739],re([1,0,5,33,2,15,28,147,176,42,152,106,535]),function(ae,e,c,k,E,L,y,f,_,v,p,n){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0});let t=class extends E.Disposable{static{s=this}static{this.ID="editor.contrib.inspectTokens"}static get(r){return r.getContribution(s.ID)}constructor(r,a,d){super(),this._editor=r,this._languageService=d,this._widget=null,this._register(this._editor.onDidChangeModel(m=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(m=>this.stop())),this._register(y.TokenizationRegistry.onDidChange(m=>this.stop())),this._register(this._editor.onKeyUp(m=>m.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new u(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};t=s=De([he(1,p.IStandaloneThemeService),he(2,v.ILanguageService)],t);class i extends L.EditorAction{constructor(){super({id:"editor.action.inspectTokens",label:n.InspectTokensNLS.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(r,a){t.get(a)?.launch()}}function o(l){let r="";for(let a=0,d=l.length;a<d;a++){const m=l.charCodeAt(a);switch(m){case 9:r+="\u2192";break;case 32:r+="\xB7";break;default:r+=String.fromCharCode(m)}}return r}function g(l,r){const a=y.TokenizationRegistry.get(r);if(a)return a;const d=l.encodeLanguageId(r);return{getInitialState:()=>_.NullState,tokenize:(m,h,C)=>(0,_.nullTokenize)(r,C),tokenizeEncoded:(m,h,C)=>(0,_.nullTokenizeEncoded)(d,C)}}class u extends E.Disposable{static{this._ID="editor.contrib.inspectTokensWidget"}constructor(r,a){super(),this.allowEditorOverflow=!0,this._editor=r,this._languageService=a,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=g(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(d=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return u._ID}_compute(r){const a=this._getTokensAtLine(r.lineNumber);let d=0;for(let w=a.tokens1.length-1;w>=0;w--){const S=a.tokens1[w];if(r.column-1>=S.offset){d=w;break}}let m=0;for(let w=a.tokens2.length>>>1;w>=0;w--)if(r.column-1>=a.tokens2[w<<1]){m=w;break}const h=this._model.getLineContent(r.lineNumber);let C="";if(d<a.tokens1.length){const w=a.tokens1[d].offset,S=d+1<a.tokens1.length?a.tokens1[d+1].offset:h.length;C=h.substring(w,S)}(0,c.reset)(this._domNode,(0,c.$)("h2.tm-token",void 0,o(C),(0,c.$)("span.tm-token-length",void 0,`${C.length} ${C.length===1?"char":"chars"}`))),(0,c.append)(this._domNode,(0,c.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const b=(m<<1)+1<a.tokens2.length?this._decodeMetadata(a.tokens2[(m<<1)+1]):null;(0,c.append)(this._domNode,(0,c.$)("table.tm-metadata-table",void 0,(0,c.$)("tbody",void 0,(0,c.$)("tr",void 0,(0,c.$)("td.tm-metadata-key",void 0,"language"),(0,c.$)("td.tm-metadata-value",void 0,`${b?b.languageId:"-?-"}`)),(0,c.$)("tr",void 0,(0,c.$)("td.tm-metadata-key",void 0,"token type"),(0,c.$)("td.tm-metadata-value",void 0,`${b?this._tokenTypeToString(b.tokenType):"-?-"}`)),(0,c.$)("tr",void 0,(0,c.$)("td.tm-metadata-key",void 0,"font style"),(0,c.$)("td.tm-metadata-value",void 0,`${b?this._fontStyleToString(b.fontStyle):"-?-"}`)),(0,c.$)("tr",void 0,(0,c.$)("td.tm-metadata-key",void 0,"foreground"),(0,c.$)("td.tm-metadata-value",void 0,`${b?k.Color.Format.CSS.formatHex(b.foreground):"-?-"}`)),(0,c.$)("tr",void 0,(0,c.$)("td.tm-metadata-key",void 0,"background"),(0,c.$)("td.tm-metadata-value",void 0,`${b?k.Color.Format.CSS.formatHex(b.background):"-?-"}`))))),(0,c.append)(this._domNode,(0,c.$)("hr.tokens-inspect-separator")),d<a.tokens1.length&&(0,c.append)(this._domNode,(0,c.$)("span.tm-token-type",void 0,a.tokens1[d].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(r){const a=y.TokenizationRegistry.getColorMap(),d=f.TokenMetadata.getLanguageId(r),m=f.TokenMetadata.getTokenType(r),h=f.TokenMetadata.getFontStyle(r),C=f.TokenMetadata.getForeground(r),b=f.TokenMetadata.getBackground(r);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(d),tokenType:m,fontStyle:h,foreground:a[C],background:a[b]}}_tokenTypeToString(r){switch(r){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(r){let a="";return r&1&&(a+="italic "),r&2&&(a+="bold "),r&4&&(a+="underline "),r&8&&(a+="strikethrough "),a.length===0&&(a="---"),a}_getTokensAtLine(r){const a=this._getStateBeforeLine(r),d=this._tokenizationSupport.tokenize(this._model.getLineContent(r),!0,a),m=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(r),!0,a);return{startState:a,tokens1:d.tokens,tokens2:m.tokens,endState:d.endState}}_getStateBeforeLine(r){let a=this._tokenizationSupport.getInitialState();for(let d=1;d<r;d++)a=this._tokenizationSupport.tokenize(this._model.getLineContent(d),!0,a).endState;return a}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}(0,L.registerEditorContribution)(t.ID,t,4),(0,L.registerEditorAction)(i)}),define(oe[740],re([1,0,344,8,82,127,2,45,452,3,24,27,179,7,31,61,696,100,66]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i,o,g,u,l){"use strict";var r,a;Object.defineProperty(e,"__esModule",{value:!0}),e.CommandsHistory=e.AbstractCommandsQuickAccessProvider=void 0;let d=class extends g.PickerQuickAccessProvider{static{r=this}static{this.PREFIX=">"}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=(0,E.or)(E.matchesPrefix,E.matchesWords,E.matchesContiguousSubString)}constructor(C,b,w,S,D,I){super(r.PREFIX,C),this.instantiationService=b,this.keybindingService=w,this.commandService=S,this.telemetryService=D,this.dialogService=I,this.commandsHistory=this._register(this.instantiationService.createInstance(m)),this.options=C}async _getPicks(C,b,w,S){const D=await this.getCommandPicks(w);if(w.isCancellationRequested)return[];const I=(0,L.createSingleCallFunction)(()=>{const x=new _.TfIdfCalculator;x.updateDocuments(D.map(W=>({key:W.commandId,textChunks:[this.getTfIdfChunk(W)]})));const F=x.calculateScores(C,w);return(0,_.normalizeTfIdfScores)(F).filter(W=>W.score>r.TFIDF_THRESHOLD).slice(0,r.TFIDF_MAX_RESULTS)}),T=[];for(const x of D){const F=r.WORD_FILTER(C,x.label)??void 0,W=x.commandAlias?r.WORD_FILTER(C,x.commandAlias)??void 0:void 0;if(F||W)x.highlights={label:F,detail:this.options.showAlias?W:void 0},T.push(x);else if(C===x.commandId)T.push(x);else if(C.length>=3){const z=I();if(w.isCancellationRequested)return[];const q=z.find(H=>H.key===x.commandId);q&&(x.tfIdfScore=q.score,T.push(x))}}const M=new Map;for(const x of T){const F=M.get(x.label);F?(x.description=x.commandId,F.description=F.commandId):M.set(x.label,x)}T.sort((x,F)=>{if(x.tfIdfScore&&F.tfIdfScore)return x.tfIdfScore===F.tfIdfScore?x.label.localeCompare(F.label):F.tfIdfScore-x.tfIdfScore;if(x.tfIdfScore)return 1;if(F.tfIdfScore)return-1;const W=this.commandsHistory.peek(x.commandId),z=this.commandsHistory.peek(F.commandId);if(W&&z)return W>z?-1:1;if(W)return-1;if(z)return 1;if(this.options.suggestedCommandIds){const q=this.options.suggestedCommandIds.has(x.commandId),H=this.options.suggestedCommandIds.has(F.commandId);if(q&&H)return 0;if(q)return-1;if(H)return 1}return x.label.localeCompare(F.label)});const A=[];let R=!1,N=!0,O=!!this.options.suggestedCommandIds;for(let x=0;x<T.length;x++){const F=T[x];x===0&&this.commandsHistory.peek(F.commandId)&&(A.push({type:"separator",label:(0,v.localize)(1089,"recently used")}),R=!0),N&&F.tfIdfScore!==void 0&&(A.push({type:"separator",label:(0,v.localize)(1090,"similar commands")}),N=!1),O&&F.tfIdfScore===void 0&&!this.commandsHistory.peek(F.commandId)&&this.options.suggestedCommandIds?.has(F.commandId)&&(A.push({type:"separator",label:(0,v.localize)(1091,"commonly used")}),R=!0,O=!1),R&&F.tfIdfScore===void 0&&!this.commandsHistory.peek(F.commandId)&&!this.options.suggestedCommandIds?.has(F.commandId)&&(A.push({type:"separator",label:(0,v.localize)(1092,"other commands")}),R=!1),A.push(this.toCommandPick(F,S))}return this.hasAdditionalCommandPicks(C,w)?{picks:A,additionalPicks:(async()=>{const x=await this.getAdditionalCommandPicks(D,T,C,w);if(w.isCancellationRequested)return[];const F=x.map(W=>this.toCommandPick(W,S));return N&&F[0]?.type!=="separator"&&F.unshift({type:"separator",label:(0,v.localize)(1093,"similar commands")}),F})()}:A}toCommandPick(C,b){if(C.type==="separator")return C;const w=this.keybindingService.lookupKeybinding(C.commandId),S=w?(0,v.localize)(1094,"{0}, {1}",C.label,w.getAriaLabel()):C.label;return{...C,ariaLabel:S,detail:this.options.showAlias&&C.commandAlias!==C.label?C.commandAlias:void 0,keybinding:w,accept:async()=>{this.commandsHistory.push(C.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:C.commandId,from:b?.from??"quick open"});try{C.args?.length?await this.commandService.executeCommand(C.commandId,...C.args):await this.commandService.executeCommand(C.commandId)}catch(D){(0,k.isCancellationError)(D)||this.dialogService.error((0,v.localize)(1095,"Command '{0}' resulted in an error",C.label),(0,c.toErrorMessage)(D))}}}}getTfIdfChunk({label:C,commandAlias:b,commandDescription:w}){let S=C;return b&&b!==C&&(S+=` - ${b}`),w&&w.value!==C&&(S+=` - ${w.value===w.original?w.value:`${w.value} (${w.original})`}`),S}};e.AbstractCommandsQuickAccessProvider=d,e.AbstractCommandsQuickAccessProvider=d=r=De([he(1,t.IInstantiationService),he(2,i.IKeybindingService),he(3,p.ICommandService),he(4,l.ITelemetryService),he(5,s.IDialogService)],d);let m=class extends y.Disposable{static{a=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE="commandPalette.mru.cache"}static{this.PREF_KEY_COUNTER="commandPalette.mru.counter"}static{this.counter=1}static{this.hasChanges=!1}constructor(C,b,w){super(),this.storageService=C,this.configurationService=b,this.logService=w,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(C=>this.updateConfiguration(C))),this._register(this.storageService.onWillSaveState(C=>{C.reason===u.WillSaveStateReason.SHUTDOWN&&this.saveState()}))}updateConfiguration(C){C&&!C.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=a.getConfiguredCommandHistoryLength(this.configurationService),a.cache&&a.cache.limit!==this.configuredCommandsHistoryLength&&(a.cache.limit=this.configuredCommandsHistoryLength,a.hasChanges=!0))}load(){const C=this.storageService.get(a.PREF_KEY_CACHE,0);let b;if(C)try{b=JSON.parse(C)}catch(S){this.logService.error(`[CommandsHistory] invalid data: ${S}`)}const w=a.cache=new f.LRUCache(this.configuredCommandsHistoryLength,1);if(b){let S;b.usesLRU?S=b.entries:S=b.entries.sort((D,I)=>D.value-I.value),S.forEach(D=>w.set(D.key,D.value))}a.counter=this.storageService.getNumber(a.PREF_KEY_COUNTER,0,a.counter)}push(C){a.cache&&(a.cache.set(C,a.counter++),a.hasChanges=!0)}peek(C){return a.cache?.peek(C)}saveState(){if(!a.cache||!a.hasChanges)return;const C={usesLRU:!0,entries:[]};a.cache.forEach((b,w)=>C.entries.push({key:w,value:b})),this.storageService.store(a.PREF_KEY_CACHE,JSON.stringify(C),0,0),this.storageService.store(a.PREF_KEY_COUNTER,a.counter,0,0),a.hasChanges=!1}static getConfiguredCommandHistoryLength(C){const w=C.getValue().workbench?.commandPalette?.history;return typeof w=="number"?w:a.DEFAULT_COMMANDS_HISTORY_LENGTH}};e.CommandsHistory=m,e.CommandsHistory=m=a=De([he(0,u.IStorageService),he(1,n.IConfigurationService),he(2,o.ILogService)],m)}),define(oe[741],re([1,0,141,378,740]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEditorCommandsQuickAccessProvider=void 0;class L extends E.AbstractCommandsQuickAccessProvider{constructor(f,_,v,p,n,s){super(f,_,v,p,n,s)}getCodeEditorCommandPicks(){const f=this.activeTextEditorControl;if(!f)return[];const _=[];for(const v of f.getSupportedActions()){let p;v.metadata?.description&&((0,k.isLocalizedString)(v.metadata.description)?p=v.metadata.description:p={original:v.metadata.description,value:v.metadata.description}),_.push({commandId:v.id,commandAlias:v.alias,commandDescription:p,label:(0,c.stripIcons)(v.label)||v.id})}return _}}e.AbstractEditorCommandsQuickAccessProvider=L}),define(oe[742],re([1,0,38,154,106,35,741,7,31,24,66,179,15,20,63]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GotoLineAction=e.StandaloneCommandsQuickAccessProvider=void 0;let o=class extends y.AbstractEditorCommandsQuickAccessProvider{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(l,r,a,d,m,h){super({showAlias:!1},l,a,d,m,h),this.codeEditorService=r}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};e.StandaloneCommandsQuickAccessProvider=o,e.StandaloneCommandsQuickAccessProvider=o=De([he(0,f.IInstantiationService),he(1,L.ICodeEditorService),he(2,_.IKeybindingService),he(3,v.ICommandService),he(4,p.ITelemetryService),he(5,n.IDialogService)],o);class g extends s.EditorAction{static{this.ID="editor.action.quickCommand"}constructor(){super({id:g.ID,label:E.QuickCommandNLS.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:t.EditorContextKeys.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(l){l.get(i.IQuickInputService).quickAccess.show(o.PREFIX)}}e.GotoLineAction=g,(0,s.registerEditorAction)(g),c.Registry.as(k.Extensions.Quickaccess).registerQuickAccessProvider({ctor:o,prefix:o.PREFIX,helpEntries:[{description:E.QuickCommandNLS.quickCommandHelp,commandId:g.ID}]})}),define(oe[88],re([1,0,89,14,33,6,271,38,3]),function(ae,e,c,k,E,L,y,f,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.workbenchColorsSchemaId=e.DEFAULT_COLOR_CONFIG_VALUE=e.Extensions=void 0,e.asCssVariableName=v,e.asCssVariable=p,e.asCssVariableWithDefault=n,e.isColorDefaults=s,e.registerColor=o,e.executeTransform=g,e.darken=u,e.lighten=l,e.transparent=r,e.oneOf=a,e.ifDefinedThenElse=d,e.lessProminent=m,e.resolveColorValue=h;function v(w){return`--vscode-${w.replace(/\./g,"-")}`}function p(w){return`var(${v(w)})`}function n(w,S){return`var(${v(w)}, ${S})`}function s(w){return w!==null&&typeof w=="object"&&"light"in w&&"dark"in w}e.Extensions={ColorContribution:"base.contributions.colors"},e.DEFAULT_COLOR_CONFIG_VALUE="default";class t{constructor(){this._onDidChangeSchema=new L.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(S,D,I,T=!1,M){const A={id:S,description:I,defaults:D,needsTransparency:T,deprecationMessage:M};this.colorsById[S]=A;const R={type:"string",description:I,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return M&&(R.deprecationMessage=M),T&&(R.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",R.patternErrorMessage=_.localize(1067,"This color must be transparent or it will obscure content")),this.colorSchema.properties[S]={oneOf:[R,{type:"string",const:e.DEFAULT_COLOR_CONFIG_VALUE,description:_.localize(1068,"Use the default color.")}]},this.colorReferenceSchema.enum.push(S),this.colorReferenceSchema.enumDescriptions.push(I),this._onDidChangeSchema.fire(),S}getColors(){return Object.keys(this.colorsById).map(S=>this.colorsById[S])}resolveDefaultColor(S,D){const I=this.colorsById[S];if(I?.defaults){const T=s(I.defaults)?I.defaults[D.type]:I.defaults;return h(T,D)}}getColorSchema(){return this.colorSchema}toString(){const S=(D,I)=>{const T=D.indexOf(".")===-1?0:1,M=I.indexOf(".")===-1?0:1;return T!==M?T-M:D.localeCompare(I)};return Object.keys(this.colorsById).sort(S).map(D=>`- \`${D}\`: ${this.colorsById[D].description}`).join(`
|
|
651
651
|
`)}}const i=new t;f.Registry.add(e.Extensions.ColorContribution,i);function o(w,S,D,I,T){return i.registerColor(w,S,D,I,T)}function g(w,S){switch(w.op){case 0:return h(w.value,S)?.darken(w.factor);case 1:return h(w.value,S)?.lighten(w.factor);case 2:return h(w.value,S)?.transparent(w.factor);case 3:{const D=h(w.background,S);return D?h(w.value,S)?.makeOpaque(D):h(w.value,S)}case 4:for(const D of w.values){const I=h(D,S);if(I)return I}return;case 6:return h(S.defines(w.if)?w.then:w.else,S);case 5:{const D=h(w.value,S);if(!D)return;const I=h(w.background,S);return I?D.isDarkerThan(I)?E.Color.getLighterColor(D,I,w.factor).transparent(w.transparency):E.Color.getDarkerColor(D,I,w.factor).transparent(w.transparency):D.transparent(w.factor*w.transparency)}default:throw(0,c.assertNever)(w)}}function u(w,S){return{op:0,value:w,factor:S}}function l(w,S){return{op:1,value:w,factor:S}}function r(w,S){return{op:2,value:w,factor:S}}function a(...w){return{op:4,values:w}}function d(w,S,D){return{op:6,if:w,then:S,else:D}}function m(w,S,D,I){return{op:5,value:w,background:S,factor:D,transparency:I}}function h(w,S){if(w!==null){if(typeof w=="string")return w[0]==="#"?E.Color.fromHex(w):S.getColor(w);if(w instanceof E.Color)return w;if(typeof w=="object")return g(w,S)}}e.workbenchColorsSchemaId="vscode://schemas/workbench-colors";const C=f.Registry.as(y.Extensions.JSONContribution);C.registerSchema(e.workbenchColorsSchemaId,i.getColorSchema());const b=new k.RunOnceScheduler(()=>C.notifySchemaChanged(e.workbenchColorsSchemaId),200);i.onDidChangeSchema(()=>{b.isScheduled()||b.schedule()})}),define(oe[123],re([1,0,3,33,88]),function(ae,e,c,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.textCodeBlockBackground=e.textBlockQuoteBorder=e.textBlockQuoteBackground=e.textPreformatBackground=e.textPreformatForeground=e.textSeparatorForeground=e.textLinkActiveForeground=e.textLinkForeground=e.selectionBackground=e.activeContrastBorder=e.contrastBorder=e.focusBorder=e.iconForeground=e.descriptionForeground=e.errorForeground=e.disabledForeground=e.foreground=void 0,e.foreground=(0,E.registerColor)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.localize(261,"Overall foreground color. This color is only used if not overridden by a component.")),e.disabledForeground=(0,E.registerColor)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.localize(262,"Overall foreground for disabled elements. This color is only used if not overridden by a component.")),e.errorForeground=(0,E.registerColor)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.localize(263,"Overall foreground color for error messages. This color is only used if not overridden by a component.")),e.descriptionForeground=(0,E.registerColor)("descriptionForeground",{light:"#717171",dark:(0,E.transparent)(e.foreground,.7),hcDark:(0,E.transparent)(e.foreground,.7),hcLight:(0,E.transparent)(e.foreground,.7)},c.localize(264,"Foreground color for description text providing additional information, for example for a label.")),e.iconForeground=(0,E.registerColor)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.localize(265,"The default color for icons in the workbench.")),e.focusBorder=(0,E.registerColor)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.localize(266,"Overall border color for focused elements. This color is only used if not overridden by a component.")),e.contrastBorder=(0,E.registerColor)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.localize(267,"An extra border around elements to separate them from others for greater contrast.")),e.activeContrastBorder=(0,E.registerColor)("contrastActiveBorder",{light:null,dark:null,hcDark:e.focusBorder,hcLight:e.focusBorder},c.localize(268,"An extra border around active elements to separate them from others for greater contrast.")),e.selectionBackground=(0,E.registerColor)("selection.background",null,c.localize(269,"The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),e.textLinkForeground=(0,E.registerColor)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.localize(270,"Foreground color for links in text.")),e.textLinkActiveForeground=(0,E.registerColor)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.localize(271,"Foreground color for links in text when clicked on and on mouse hover.")),e.textSeparatorForeground=(0,E.registerColor)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:k.Color.black,hcLight:"#292929"},c.localize(272,"Color for text separators.")),e.textPreformatForeground=(0,E.registerColor)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.localize(273,"Foreground color for preformatted text segments.")),e.textPreformatBackground=(0,E.registerColor)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.localize(274,"Background color for preformatted text segments.")),e.textBlockQuoteBackground=(0,E.registerColor)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.localize(275,"Background color for block quotes in text.")),e.textBlockQuoteBorder=(0,E.registerColor)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:k.Color.white,hcLight:"#292929"},c.localize(276,"Border color for block quotes in text.")),e.textCodeBlockBackground=(0,E.registerColor)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:k.Color.black,hcLight:"#F2F2F2"},c.localize(277,"Background color for code blocks in text."))}),define(oe[277],re([1,0,3,33,88,123]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.progressBarBackground=e.scrollbarSliderActiveBackground=e.scrollbarSliderHoverBackground=e.scrollbarSliderBackground=e.scrollbarShadow=e.badgeForeground=e.badgeBackground=e.sashHoverBorder=void 0,e.sashHoverBorder=(0,E.registerColor)("sash.hoverBorder",L.focusBorder,c.localize(57,"Border color of active sashes.")),e.badgeBackground=(0,E.registerColor)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:k.Color.black,hcLight:"#0F4A85"},c.localize(58,"Badge background color. Badges are small information labels, e.g. for search results count.")),e.badgeForeground=(0,E.registerColor)("badge.foreground",{dark:k.Color.white,light:"#333",hcDark:k.Color.white,hcLight:k.Color.white},c.localize(59,"Badge foreground color. Badges are small information labels, e.g. for search results count.")),e.scrollbarShadow=(0,E.registerColor)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.localize(60,"Scrollbar shadow to indicate that the view is scrolled.")),e.scrollbarSliderBackground=(0,E.registerColor)("scrollbarSlider.background",{dark:k.Color.fromHex("#797979").transparent(.4),light:k.Color.fromHex("#646464").transparent(.4),hcDark:(0,E.transparent)(L.contrastBorder,.6),hcLight:(0,E.transparent)(L.contrastBorder,.4)},c.localize(61,"Scrollbar slider background color.")),e.scrollbarSliderHoverBackground=(0,E.registerColor)("scrollbarSlider.hoverBackground",{dark:k.Color.fromHex("#646464").transparent(.7),light:k.Color.fromHex("#646464").transparent(.7),hcDark:(0,E.transparent)(L.contrastBorder,.8),hcLight:(0,E.transparent)(L.contrastBorder,.8)},c.localize(62,"Scrollbar slider background color when hovering.")),e.scrollbarSliderActiveBackground=(0,E.registerColor)("scrollbarSlider.activeBackground",{dark:k.Color.fromHex("#BFBFBF").transparent(.4),light:k.Color.fromHex("#000000").transparent(.6),hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(63,"Scrollbar slider background color when clicked on.")),e.progressBarBackground=(0,E.registerColor)("progressBar.background",{dark:k.Color.fromHex("#0E70C0"),light:k.Color.fromHex("#0E70C0"),hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(64,"Background color of the progress bar that can show for long running operations."))}),define(oe[137],re([1,0,3,33,88,123,277]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.problemsInfoIconForeground=e.problemsWarningIconForeground=e.problemsErrorIconForeground=e.overviewRulerSelectionHighlightForeground=e.overviewRulerFindMatchForeground=e.overviewRulerCommonContentForeground=e.overviewRulerIncomingContentForeground=e.overviewRulerCurrentContentForeground=e.mergeBorder=e.mergeCommonContentBackground=e.mergeCommonHeaderBackground=e.mergeIncomingContentBackground=e.mergeIncomingHeaderBackground=e.mergeCurrentContentBackground=e.mergeCurrentHeaderBackground=e.breadcrumbsPickerBackground=e.breadcrumbsActiveSelectionForeground=e.breadcrumbsFocusForeground=e.breadcrumbsBackground=e.breadcrumbsForeground=e.toolbarActiveBackground=e.toolbarHoverOutline=e.toolbarHoverBackground=e.widgetBorder=e.widgetShadow=e.diffUnchangedTextBackground=e.diffUnchangedRegionForeground=e.diffUnchangedRegionBackground=e.diffDiagonalFill=e.diffBorder=e.diffRemovedOutline=e.diffInsertedOutline=e.diffOverviewRulerRemoved=e.diffOverviewRulerInserted=e.diffRemovedLineGutter=e.diffInsertedLineGutter=e.diffRemovedLine=e.diffInsertedLine=e.diffRemoved=e.diffInserted=e.defaultRemoveColor=e.defaultInsertColor=e.snippetFinalTabstopHighlightBorder=e.snippetFinalTabstopHighlightBackground=e.snippetTabstopHighlightBorder=e.snippetTabstopHighlightBackground=e.editorLightBulbAiForeground=e.editorLightBulbAutoFixForeground=e.editorLightBulbForeground=e.editorInlayHintParameterBackground=e.editorInlayHintParameterForeground=e.editorInlayHintTypeBackground=e.editorInlayHintTypeForeground=e.editorInlayHintBackground=e.editorInlayHintForeground=e.editorHoverStatusBarBackground=e.editorHoverBorder=e.editorHoverForeground=e.editorHoverBackground=e.editorHoverHighlight=e.editorFindRangeHighlightBorder=e.editorFindMatchHighlightBorder=e.editorFindMatchBorder=e.editorFindRangeHighlight=e.editorFindMatchHighlightForeground=e.editorFindMatchHighlight=e.editorFindMatchForeground=e.editorFindMatch=e.editorSelectionHighlightBorder=e.editorSelectionHighlight=e.editorInactiveSelection=e.editorSelectionForeground=e.editorSelectionBackground=e.editorActiveLinkForeground=e.editorHintBorder=e.editorHintForeground=e.editorInfoBorder=e.editorInfoForeground=e.editorInfoBackground=e.editorWarningBorder=e.editorWarningForeground=e.editorWarningBackground=e.editorErrorBorder=e.editorErrorForeground=e.editorErrorBackground=e.editorWidgetResizeBorder=e.editorWidgetBorder=e.editorWidgetForeground=e.editorWidgetBackground=e.editorStickyScrollShadow=e.editorStickyScrollBorder=e.editorStickyScrollHoverBackground=e.editorStickyScrollBackground=e.editorForeground=e.editorBackground=void 0,e.editorBackground=(0,E.registerColor)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:k.Color.black,hcLight:k.Color.white},c.localize(160,"Editor background color.")),e.editorForeground=(0,E.registerColor)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:k.Color.white,hcLight:L.foreground},c.localize(161,"Editor default foreground color.")),e.editorStickyScrollBackground=(0,E.registerColor)("editorStickyScroll.background",e.editorBackground,c.localize(162,"Background color of sticky scroll in the editor")),e.editorStickyScrollHoverBackground=(0,E.registerColor)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:k.Color.fromHex("#0F4A85").transparent(.1)},c.localize(163,"Background color of sticky scroll on hover in the editor")),e.editorStickyScrollBorder=(0,E.registerColor)("editorStickyScroll.border",{dark:null,light:null,hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(164,"Border color of sticky scroll in the editor")),e.editorStickyScrollShadow=(0,E.registerColor)("editorStickyScroll.shadow",y.scrollbarShadow,c.localize(165," Shadow color of sticky scroll in the editor")),e.editorWidgetBackground=(0,E.registerColor)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:k.Color.white},c.localize(166,"Background color of editor widgets, such as find/replace.")),e.editorWidgetForeground=(0,E.registerColor)("editorWidget.foreground",L.foreground,c.localize(167,"Foreground color of editor widgets, such as find/replace.")),e.editorWidgetBorder=(0,E.registerColor)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(168,"Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),e.editorWidgetResizeBorder=(0,E.registerColor)("editorWidget.resizeBorder",null,c.localize(169,"Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),e.editorErrorBackground=(0,E.registerColor)("editorError.background",null,c.localize(170,"Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorErrorForeground=(0,E.registerColor)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.localize(171,"Foreground color of error squigglies in the editor.")),e.editorErrorBorder=(0,E.registerColor)("editorError.border",{dark:null,light:null,hcDark:k.Color.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.localize(172,"If set, color of double underlines for errors in the editor.")),e.editorWarningBackground=(0,E.registerColor)("editorWarning.background",null,c.localize(173,"Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorWarningForeground=(0,E.registerColor)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.localize(174,"Foreground color of warning squigglies in the editor.")),e.editorWarningBorder=(0,E.registerColor)("editorWarning.border",{dark:null,light:null,hcDark:k.Color.fromHex("#FFCC00").transparent(.8),hcLight:k.Color.fromHex("#FFCC00").transparent(.8)},c.localize(175,"If set, color of double underlines for warnings in the editor.")),e.editorInfoBackground=(0,E.registerColor)("editorInfo.background",null,c.localize(176,"Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorInfoForeground=(0,E.registerColor)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.localize(177,"Foreground color of info squigglies in the editor.")),e.editorInfoBorder=(0,E.registerColor)("editorInfo.border",{dark:null,light:null,hcDark:k.Color.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.localize(178,"If set, color of double underlines for infos in the editor.")),e.editorHintForeground=(0,E.registerColor)("editorHint.foreground",{dark:k.Color.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.localize(179,"Foreground color of hint squigglies in the editor.")),e.editorHintBorder=(0,E.registerColor)("editorHint.border",{dark:null,light:null,hcDark:k.Color.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.localize(180,"If set, color of double underlines for hints in the editor.")),e.editorActiveLinkForeground=(0,E.registerColor)("editorLink.activeForeground",{dark:"#4E94CE",light:k.Color.blue,hcDark:k.Color.cyan,hcLight:"#292929"},c.localize(181,"Color of active links.")),e.editorSelectionBackground=(0,E.registerColor)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.localize(182,"Color of the editor selection.")),e.editorSelectionForeground=(0,E.registerColor)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:k.Color.white},c.localize(183,"Color of the selected text for high contrast.")),e.editorInactiveSelection=(0,E.registerColor)("editor.inactiveSelectionBackground",{light:(0,E.transparent)(e.editorSelectionBackground,.5),dark:(0,E.transparent)(e.editorSelectionBackground,.5),hcDark:(0,E.transparent)(e.editorSelectionBackground,.7),hcLight:(0,E.transparent)(e.editorSelectionBackground,.5)},c.localize(184,"Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorSelectionHighlight=(0,E.registerColor)("editor.selectionHighlightBackground",{light:(0,E.lessProminent)(e.editorSelectionBackground,e.editorBackground,.3,.6),dark:(0,E.lessProminent)(e.editorSelectionBackground,e.editorBackground,.3,.6),hcDark:null,hcLight:null},c.localize(185,"Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorSelectionHighlightBorder=(0,E.registerColor)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:L.activeContrastBorder,hcLight:L.activeContrastBorder},c.localize(186,"Border color for regions with the same content as the selection.")),e.editorFindMatch=(0,E.registerColor)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.localize(187,"Color of the current search match.")),e.editorFindMatchForeground=(0,E.registerColor)("editor.findMatchForeground",null,c.localize(188,"Text color of the current search match.")),e.editorFindMatchHighlight=(0,E.registerColor)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.localize(189,"Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorFindMatchHighlightForeground=(0,E.registerColor)("editor.findMatchHighlightForeground",null,c.localize(190,"Foreground color of the other search matches."),!0),e.editorFindRangeHighlight=(0,E.registerColor)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.localize(191,"Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorFindMatchBorder=(0,E.registerColor)("editor.findMatchBorder",{light:null,dark:null,hcDark:L.activeContrastBorder,hcLight:L.activeContrastBorder},c.localize(192,"Border color of the current search match.")),e.editorFindMatchHighlightBorder=(0,E.registerColor)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:L.activeContrastBorder,hcLight:L.activeContrastBorder},c.localize(193,"Border color of the other search matches.")),e.editorFindRangeHighlightBorder=(0,E.registerColor)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,E.transparent)(L.activeContrastBorder,.4),hcLight:(0,E.transparent)(L.activeContrastBorder,.4)},c.localize(194,"Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorHoverHighlight=(0,E.registerColor)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.localize(195,"Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),e.editorHoverBackground=(0,E.registerColor)("editorHoverWidget.background",e.editorWidgetBackground,c.localize(196,"Background color of the editor hover.")),e.editorHoverForeground=(0,E.registerColor)("editorHoverWidget.foreground",e.editorWidgetForeground,c.localize(197,"Foreground color of the editor hover.")),e.editorHoverBorder=(0,E.registerColor)("editorHoverWidget.border",e.editorWidgetBorder,c.localize(198,"Border color of the editor hover.")),e.editorHoverStatusBarBackground=(0,E.registerColor)("editorHoverWidget.statusBarBackground",{dark:(0,E.lighten)(e.editorHoverBackground,.2),light:(0,E.darken)(e.editorHoverBackground,.05),hcDark:e.editorWidgetBackground,hcLight:e.editorWidgetBackground},c.localize(199,"Background color of the editor hover status bar.")),e.editorInlayHintForeground=(0,E.registerColor)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:k.Color.white,hcLight:k.Color.black},c.localize(200,"Foreground color of inline hints")),e.editorInlayHintBackground=(0,E.registerColor)("editorInlayHint.background",{dark:(0,E.transparent)(y.badgeBackground,.1),light:(0,E.transparent)(y.badgeBackground,.1),hcDark:(0,E.transparent)(k.Color.white,.1),hcLight:(0,E.transparent)(y.badgeBackground,.1)},c.localize(201,"Background color of inline hints")),e.editorInlayHintTypeForeground=(0,E.registerColor)("editorInlayHint.typeForeground",e.editorInlayHintForeground,c.localize(202,"Foreground color of inline hints for types")),e.editorInlayHintTypeBackground=(0,E.registerColor)("editorInlayHint.typeBackground",e.editorInlayHintBackground,c.localize(203,"Background color of inline hints for types")),e.editorInlayHintParameterForeground=(0,E.registerColor)("editorInlayHint.parameterForeground",e.editorInlayHintForeground,c.localize(204,"Foreground color of inline hints for parameters")),e.editorInlayHintParameterBackground=(0,E.registerColor)("editorInlayHint.parameterBackground",e.editorInlayHintBackground,c.localize(205,"Background color of inline hints for parameters")),e.editorLightBulbForeground=(0,E.registerColor)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.localize(206,"The color used for the lightbulb actions icon.")),e.editorLightBulbAutoFixForeground=(0,E.registerColor)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.localize(207,"The color used for the lightbulb auto fix actions icon.")),e.editorLightBulbAiForeground=(0,E.registerColor)("editorLightBulbAi.foreground",e.editorLightBulbForeground,c.localize(208,"The color used for the lightbulb AI icon.")),e.snippetTabstopHighlightBackground=(0,E.registerColor)("editor.snippetTabstopHighlightBackground",{dark:new k.Color(new k.RGBA(124,124,124,.3)),light:new k.Color(new k.RGBA(10,50,100,.2)),hcDark:new k.Color(new k.RGBA(124,124,124,.3)),hcLight:new k.Color(new k.RGBA(10,50,100,.2))},c.localize(209,"Highlight background color of a snippet tabstop.")),e.snippetTabstopHighlightBorder=(0,E.registerColor)("editor.snippetTabstopHighlightBorder",null,c.localize(210,"Highlight border color of a snippet tabstop.")),e.snippetFinalTabstopHighlightBackground=(0,E.registerColor)("editor.snippetFinalTabstopHighlightBackground",null,c.localize(211,"Highlight background color of the final tabstop of a snippet.")),e.snippetFinalTabstopHighlightBorder=(0,E.registerColor)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new k.Color(new k.RGBA(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.localize(212,"Highlight border color of the final tabstop of a snippet.")),e.defaultInsertColor=new k.Color(new k.RGBA(155,185,85,.2)),e.defaultRemoveColor=new k.Color(new k.RGBA(255,0,0,.2)),e.diffInserted=(0,E.registerColor)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.localize(213,"Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),e.diffRemoved=(0,E.registerColor)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.localize(214,"Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),e.diffInsertedLine=(0,E.registerColor)("diffEditor.insertedLineBackground",{dark:e.defaultInsertColor,light:e.defaultInsertColor,hcDark:null,hcLight:null},c.localize(215,"Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),e.diffRemovedLine=(0,E.registerColor)("diffEditor.removedLineBackground",{dark:e.defaultRemoveColor,light:e.defaultRemoveColor,hcDark:null,hcLight:null},c.localize(216,"Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),e.diffInsertedLineGutter=(0,E.registerColor)("diffEditorGutter.insertedLineBackground",null,c.localize(217,"Background color for the margin where lines got inserted.")),e.diffRemovedLineGutter=(0,E.registerColor)("diffEditorGutter.removedLineBackground",null,c.localize(218,"Background color for the margin where lines got removed.")),e.diffOverviewRulerInserted=(0,E.registerColor)("diffEditorOverview.insertedForeground",null,c.localize(219,"Diff overview ruler foreground for inserted content.")),e.diffOverviewRulerRemoved=(0,E.registerColor)("diffEditorOverview.removedForeground",null,c.localize(220,"Diff overview ruler foreground for removed content.")),e.diffInsertedOutline=(0,E.registerColor)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.localize(221,"Outline color for the text that got inserted.")),e.diffRemovedOutline=(0,E.registerColor)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.localize(222,"Outline color for text that got removed.")),e.diffBorder=(0,E.registerColor)("diffEditor.border",{dark:null,light:null,hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(223,"Border color between the two text editors.")),e.diffDiagonalFill=(0,E.registerColor)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.localize(224,"Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),e.diffUnchangedRegionBackground=(0,E.registerColor)("diffEditor.unchangedRegionBackground","sideBar.background",c.localize(225,"The background color of unchanged blocks in the diff editor.")),e.diffUnchangedRegionForeground=(0,E.registerColor)("diffEditor.unchangedRegionForeground","foreground",c.localize(226,"The foreground color of unchanged blocks in the diff editor.")),e.diffUnchangedTextBackground=(0,E.registerColor)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.localize(227,"The background color of unchanged code in the diff editor.")),e.widgetShadow=(0,E.registerColor)("widget.shadow",{dark:(0,E.transparent)(k.Color.black,.36),light:(0,E.transparent)(k.Color.black,.16),hcDark:null,hcLight:null},c.localize(228,"Shadow color of widgets such as find/replace inside the editor.")),e.widgetBorder=(0,E.registerColor)("widget.border",{dark:null,light:null,hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(229,"Border color of widgets such as find/replace inside the editor.")),e.toolbarHoverBackground=(0,E.registerColor)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.localize(230,"Toolbar background when hovering over actions using the mouse")),e.toolbarHoverOutline=(0,E.registerColor)("toolbar.hoverOutline",{dark:null,light:null,hcDark:L.activeContrastBorder,hcLight:L.activeContrastBorder},c.localize(231,"Toolbar outline when hovering over actions using the mouse")),e.toolbarActiveBackground=(0,E.registerColor)("toolbar.activeBackground",{dark:(0,E.lighten)(e.toolbarHoverBackground,.1),light:(0,E.darken)(e.toolbarHoverBackground,.1),hcDark:null,hcLight:null},c.localize(232,"Toolbar background when holding the mouse over actions")),e.breadcrumbsForeground=(0,E.registerColor)("breadcrumb.foreground",(0,E.transparent)(L.foreground,.8),c.localize(233,"Color of focused breadcrumb items.")),e.breadcrumbsBackground=(0,E.registerColor)("breadcrumb.background",e.editorBackground,c.localize(234,"Background color of breadcrumb items.")),e.breadcrumbsFocusForeground=(0,E.registerColor)("breadcrumb.focusForeground",{light:(0,E.darken)(L.foreground,.2),dark:(0,E.lighten)(L.foreground,.1),hcDark:(0,E.lighten)(L.foreground,.1),hcLight:(0,E.lighten)(L.foreground,.1)},c.localize(235,"Color of focused breadcrumb items.")),e.breadcrumbsActiveSelectionForeground=(0,E.registerColor)("breadcrumb.activeSelectionForeground",{light:(0,E.darken)(L.foreground,.2),dark:(0,E.lighten)(L.foreground,.1),hcDark:(0,E.lighten)(L.foreground,.1),hcLight:(0,E.lighten)(L.foreground,.1)},c.localize(236,"Color of selected breadcrumb items.")),e.breadcrumbsPickerBackground=(0,E.registerColor)("breadcrumbPicker.background",e.editorWidgetBackground,c.localize(237,"Background color of breadcrumb item picker."));const f=.5,_=k.Color.fromHex("#40C8AE").transparent(f),v=k.Color.fromHex("#40A6FF").transparent(f),p=k.Color.fromHex("#606060").transparent(.4),n=.4,s=1;e.mergeCurrentHeaderBackground=(0,E.registerColor)("merge.currentHeaderBackground",{dark:_,light:_,hcDark:null,hcLight:null},c.localize(238,"Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),e.mergeCurrentContentBackground=(0,E.registerColor)("merge.currentContentBackground",(0,E.transparent)(e.mergeCurrentHeaderBackground,n),c.localize(239,"Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),e.mergeIncomingHeaderBackground=(0,E.registerColor)("merge.incomingHeaderBackground",{dark:v,light:v,hcDark:null,hcLight:null},c.localize(240,"Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),e.mergeIncomingContentBackground=(0,E.registerColor)("merge.incomingContentBackground",(0,E.transparent)(e.mergeIncomingHeaderBackground,n),c.localize(241,"Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),e.mergeCommonHeaderBackground=(0,E.registerColor)("merge.commonHeaderBackground",{dark:p,light:p,hcDark:null,hcLight:null},c.localize(242,"Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),e.mergeCommonContentBackground=(0,E.registerColor)("merge.commonContentBackground",(0,E.transparent)(e.mergeCommonHeaderBackground,n),c.localize(243,"Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),e.mergeBorder=(0,E.registerColor)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.localize(244,"Border color on headers and the splitter in inline merge-conflicts.")),e.overviewRulerCurrentContentForeground=(0,E.registerColor)("editorOverviewRuler.currentContentForeground",{dark:(0,E.transparent)(e.mergeCurrentHeaderBackground,s),light:(0,E.transparent)(e.mergeCurrentHeaderBackground,s),hcDark:e.mergeBorder,hcLight:e.mergeBorder},c.localize(245,"Current overview ruler foreground for inline merge-conflicts.")),e.overviewRulerIncomingContentForeground=(0,E.registerColor)("editorOverviewRuler.incomingContentForeground",{dark:(0,E.transparent)(e.mergeIncomingHeaderBackground,s),light:(0,E.transparent)(e.mergeIncomingHeaderBackground,s),hcDark:e.mergeBorder,hcLight:e.mergeBorder},c.localize(246,"Incoming overview ruler foreground for inline merge-conflicts.")),e.overviewRulerCommonContentForeground=(0,E.registerColor)("editorOverviewRuler.commonContentForeground",{dark:(0,E.transparent)(e.mergeCommonHeaderBackground,s),light:(0,E.transparent)(e.mergeCommonHeaderBackground,s),hcDark:e.mergeBorder,hcLight:e.mergeBorder},c.localize(247,"Common ancestor overview ruler foreground for inline merge-conflicts.")),e.overviewRulerFindMatchForeground=(0,E.registerColor)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},c.localize(248,"Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),e.overviewRulerSelectionHighlightForeground=(0,E.registerColor)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.localize(249,"Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),e.problemsErrorIconForeground=(0,E.registerColor)("problemsErrorIcon.foreground",e.editorErrorForeground,c.localize(250,"The color used for the problems error icon.")),e.problemsWarningIconForeground=(0,E.registerColor)("problemsWarningIcon.foreground",e.editorWarningForeground,c.localize(251,"The color used for the problems warning icon.")),e.problemsInfoIconForeground=(0,E.registerColor)("problemsInfoIcon.foreground",e.editorInfoForeground,c.localize(252,"The color used for the problems info icon."))}),define(oe[408],re([1,0,3,33,88,123,137]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keybindingLabelBottomBorder=e.keybindingLabelBorder=e.keybindingLabelForeground=e.keybindingLabelBackground=e.checkboxSelectBorder=e.checkboxBorder=e.checkboxForeground=e.checkboxSelectBackground=e.checkboxBackground=e.radioInactiveHoverBackground=e.radioInactiveBorder=e.radioInactiveBackground=e.radioInactiveForeground=e.radioActiveBorder=e.radioActiveBackground=e.radioActiveForeground=e.buttonSecondaryHoverBackground=e.buttonSecondaryBackground=e.buttonSecondaryForeground=e.buttonBorder=e.buttonHoverBackground=e.buttonBackground=e.buttonSeparator=e.buttonForeground=e.selectBorder=e.selectForeground=e.selectListBackground=e.selectBackground=e.inputValidationErrorBorder=e.inputValidationErrorForeground=e.inputValidationErrorBackground=e.inputValidationWarningBorder=e.inputValidationWarningForeground=e.inputValidationWarningBackground=e.inputValidationInfoBorder=e.inputValidationInfoForeground=e.inputValidationInfoBackground=e.inputPlaceholderForeground=e.inputActiveOptionForeground=e.inputActiveOptionBackground=e.inputActiveOptionHoverBackground=e.inputActiveOptionBorder=e.inputBorder=e.inputForeground=e.inputBackground=void 0,e.inputBackground=(0,E.registerColor)("input.background",{dark:"#3C3C3C",light:k.Color.white,hcDark:k.Color.black,hcLight:k.Color.white},c.localize(115,"Input box background.")),e.inputForeground=(0,E.registerColor)("input.foreground",L.foreground,c.localize(116,"Input box foreground.")),e.inputBorder=(0,E.registerColor)("input.border",{dark:null,light:null,hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(117,"Input box border.")),e.inputActiveOptionBorder=(0,E.registerColor)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(118,"Border color of activated options in input fields.")),e.inputActiveOptionHoverBackground=(0,E.registerColor)("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.localize(119,"Background color of activated options in input fields.")),e.inputActiveOptionBackground=(0,E.registerColor)("inputOption.activeBackground",{dark:(0,E.transparent)(L.focusBorder,.4),light:(0,E.transparent)(L.focusBorder,.2),hcDark:k.Color.transparent,hcLight:k.Color.transparent},c.localize(120,"Background hover color of options in input fields.")),e.inputActiveOptionForeground=(0,E.registerColor)("inputOption.activeForeground",{dark:k.Color.white,light:k.Color.black,hcDark:L.foreground,hcLight:L.foreground},c.localize(121,"Foreground color of activated options in input fields.")),e.inputPlaceholderForeground=(0,E.registerColor)("input.placeholderForeground",{light:(0,E.transparent)(L.foreground,.5),dark:(0,E.transparent)(L.foreground,.5),hcDark:(0,E.transparent)(L.foreground,.7),hcLight:(0,E.transparent)(L.foreground,.7)},c.localize(122,"Input box foreground color for placeholder text.")),e.inputValidationInfoBackground=(0,E.registerColor)("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:k.Color.black,hcLight:k.Color.white},c.localize(123,"Input validation background color for information severity.")),e.inputValidationInfoForeground=(0,E.registerColor)("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:L.foreground},c.localize(124,"Input validation foreground color for information severity.")),e.inputValidationInfoBorder=(0,E.registerColor)("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(125,"Input validation border color for information severity.")),e.inputValidationWarningBackground=(0,E.registerColor)("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:k.Color.black,hcLight:k.Color.white},c.localize(126,"Input validation background color for warning severity.")),e.inputValidationWarningForeground=(0,E.registerColor)("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:L.foreground},c.localize(127,"Input validation foreground color for warning severity.")),e.inputValidationWarningBorder=(0,E.registerColor)("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(128,"Input validation border color for warning severity.")),e.inputValidationErrorBackground=(0,E.registerColor)("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:k.Color.black,hcLight:k.Color.white},c.localize(129,"Input validation background color for error severity.")),e.inputValidationErrorForeground=(0,E.registerColor)("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:L.foreground},c.localize(130,"Input validation foreground color for error severity.")),e.inputValidationErrorBorder=(0,E.registerColor)("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(131,"Input validation border color for error severity.")),e.selectBackground=(0,E.registerColor)("dropdown.background",{dark:"#3C3C3C",light:k.Color.white,hcDark:k.Color.black,hcLight:k.Color.white},c.localize(132,"Dropdown background.")),e.selectListBackground=(0,E.registerColor)("dropdown.listBackground",{dark:null,light:null,hcDark:k.Color.black,hcLight:k.Color.white},c.localize(133,"Dropdown list background.")),e.selectForeground=(0,E.registerColor)("dropdown.foreground",{dark:"#F0F0F0",light:L.foreground,hcDark:k.Color.white,hcLight:L.foreground},c.localize(134,"Dropdown foreground.")),e.selectBorder=(0,E.registerColor)("dropdown.border",{dark:e.selectBackground,light:"#CECECE",hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(135,"Dropdown border.")),e.buttonForeground=(0,E.registerColor)("button.foreground",k.Color.white,c.localize(136,"Button foreground color.")),e.buttonSeparator=(0,E.registerColor)("button.separator",(0,E.transparent)(e.buttonForeground,.4),c.localize(137,"Button separator color.")),e.buttonBackground=(0,E.registerColor)("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.localize(138,"Button background color.")),e.buttonHoverBackground=(0,E.registerColor)("button.hoverBackground",{dark:(0,E.lighten)(e.buttonBackground,.2),light:(0,E.darken)(e.buttonBackground,.2),hcDark:e.buttonBackground,hcLight:e.buttonBackground},c.localize(139,"Button background color when hovering.")),e.buttonBorder=(0,E.registerColor)("button.border",L.contrastBorder,c.localize(140,"Button border color.")),e.buttonSecondaryForeground=(0,E.registerColor)("button.secondaryForeground",{dark:k.Color.white,light:k.Color.white,hcDark:k.Color.white,hcLight:L.foreground},c.localize(141,"Secondary button foreground color.")),e.buttonSecondaryBackground=(0,E.registerColor)("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:k.Color.white},c.localize(142,"Secondary button background color.")),e.buttonSecondaryHoverBackground=(0,E.registerColor)("button.secondaryHoverBackground",{dark:(0,E.lighten)(e.buttonSecondaryBackground,.2),light:(0,E.darken)(e.buttonSecondaryBackground,.2),hcDark:null,hcLight:null},c.localize(143,"Secondary button background color when hovering.")),e.radioActiveForeground=(0,E.registerColor)("radio.activeForeground",e.inputActiveOptionForeground,c.localize(144,"Foreground color of active radio option.")),e.radioActiveBackground=(0,E.registerColor)("radio.activeBackground",e.inputActiveOptionBackground,c.localize(145,"Background color of active radio option.")),e.radioActiveBorder=(0,E.registerColor)("radio.activeBorder",e.inputActiveOptionBorder,c.localize(146,"Border color of the active radio option.")),e.radioInactiveForeground=(0,E.registerColor)("radio.inactiveForeground",null,c.localize(147,"Foreground color of inactive radio option.")),e.radioInactiveBackground=(0,E.registerColor)("radio.inactiveBackground",null,c.localize(148,"Background color of inactive radio option.")),e.radioInactiveBorder=(0,E.registerColor)("radio.inactiveBorder",{light:(0,E.transparent)(e.radioActiveForeground,.2),dark:(0,E.transparent)(e.radioActiveForeground,.2),hcDark:(0,E.transparent)(e.radioActiveForeground,.4),hcLight:(0,E.transparent)(e.radioActiveForeground,.2)},c.localize(149,"Border color of the inactive radio option.")),e.radioInactiveHoverBackground=(0,E.registerColor)("radio.inactiveHoverBackground",e.inputActiveOptionHoverBackground,c.localize(150,"Background color of inactive active radio option when hovering.")),e.checkboxBackground=(0,E.registerColor)("checkbox.background",e.selectBackground,c.localize(151,"Background color of checkbox widget.")),e.checkboxSelectBackground=(0,E.registerColor)("checkbox.selectBackground",y.editorWidgetBackground,c.localize(152,"Background color of checkbox widget when the element it's in is selected.")),e.checkboxForeground=(0,E.registerColor)("checkbox.foreground",e.selectForeground,c.localize(153,"Foreground color of checkbox widget.")),e.checkboxBorder=(0,E.registerColor)("checkbox.border",e.selectBorder,c.localize(154,"Border color of checkbox widget.")),e.checkboxSelectBorder=(0,E.registerColor)("checkbox.selectBorder",L.iconForeground,c.localize(155,"Border color of checkbox widget when the element it's in is selected.")),e.keybindingLabelBackground=(0,E.registerColor)("keybindingLabel.background",{dark:new k.Color(new k.RGBA(128,128,128,.17)),light:new k.Color(new k.RGBA(221,221,221,.4)),hcDark:k.Color.transparent,hcLight:k.Color.transparent},c.localize(156,"Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),e.keybindingLabelForeground=(0,E.registerColor)("keybindingLabel.foreground",{dark:k.Color.fromHex("#CCCCCC"),light:k.Color.fromHex("#555555"),hcDark:k.Color.white,hcLight:L.foreground},c.localize(157,"Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),e.keybindingLabelBorder=(0,E.registerColor)("keybindingLabel.border",{dark:new k.Color(new k.RGBA(51,51,51,.6)),light:new k.Color(new k.RGBA(204,204,204,.4)),hcDark:new k.Color(new k.RGBA(111,195,223)),hcLight:L.contrastBorder},c.localize(158,"Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),e.keybindingLabelBottomBorder=(0,E.registerColor)("keybindingLabel.bottomBorder",{dark:new k.Color(new k.RGBA(68,68,68,.6)),light:new k.Color(new k.RGBA(187,187,187,.4)),hcDark:new k.Color(new k.RGBA(111,195,223)),hcLight:L.foreground},c.localize(159,"Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut."))}),define(oe[278],re([1,0,3,33,88,123,137]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOddRowsBackgroundColor=e.tableColumnsBorder=e.treeInactiveIndentGuidesStroke=e.treeIndentGuidesStroke=e.listDeemphasizedForeground=e.listFilterMatchHighlightBorder=e.listFilterMatchHighlight=e.listFilterWidgetShadow=e.listFilterWidgetNoMatchesOutline=e.listFilterWidgetOutline=e.listFilterWidgetBackground=e.listWarningForeground=e.listErrorForeground=e.listInvalidItemForeground=e.listFocusHighlightForeground=e.listHighlightForeground=e.listDropBetweenBackground=e.listDropOverBackground=e.listHoverForeground=e.listHoverBackground=e.listInactiveFocusOutline=e.listInactiveFocusBackground=e.listInactiveSelectionIconForeground=e.listInactiveSelectionForeground=e.listInactiveSelectionBackground=e.listActiveSelectionIconForeground=e.listActiveSelectionForeground=e.listActiveSelectionBackground=e.listFocusAndSelectionOutline=e.listFocusOutline=e.listFocusForeground=e.listFocusBackground=void 0,e.listFocusBackground=(0,E.registerColor)("list.focusBackground",null,c.localize(83,"List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),e.listFocusForeground=(0,E.registerColor)("list.focusForeground",null,c.localize(84,"List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),e.listFocusOutline=(0,E.registerColor)("list.focusOutline",{dark:L.focusBorder,light:L.focusBorder,hcDark:L.activeContrastBorder,hcLight:L.activeContrastBorder},c.localize(85,"List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),e.listFocusAndSelectionOutline=(0,E.registerColor)("list.focusAndSelectionOutline",null,c.localize(86,"List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),e.listActiveSelectionBackground=(0,E.registerColor)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:k.Color.fromHex("#0F4A85").transparent(.1)},c.localize(87,"List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),e.listActiveSelectionForeground=(0,E.registerColor)("list.activeSelectionForeground",{dark:k.Color.white,light:k.Color.white,hcDark:null,hcLight:null},c.localize(88,"List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),e.listActiveSelectionIconForeground=(0,E.registerColor)("list.activeSelectionIconForeground",null,c.localize(89,"List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),e.listInactiveSelectionBackground=(0,E.registerColor)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:k.Color.fromHex("#0F4A85").transparent(.1)},c.localize(90,"List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),e.listInactiveSelectionForeground=(0,E.registerColor)("list.inactiveSelectionForeground",null,c.localize(91,"List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),e.listInactiveSelectionIconForeground=(0,E.registerColor)("list.inactiveSelectionIconForeground",null,c.localize(92,"List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),e.listInactiveFocusBackground=(0,E.registerColor)("list.inactiveFocusBackground",null,c.localize(93,"List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),e.listInactiveFocusOutline=(0,E.registerColor)("list.inactiveFocusOutline",null,c.localize(94,"List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),e.listHoverBackground=(0,E.registerColor)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:k.Color.white.transparent(.1),hcLight:k.Color.fromHex("#0F4A85").transparent(.1)},c.localize(95,"List/Tree background when hovering over items using the mouse.")),e.listHoverForeground=(0,E.registerColor)("list.hoverForeground",null,c.localize(96,"List/Tree foreground when hovering over items using the mouse.")),e.listDropOverBackground=(0,E.registerColor)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.localize(97,"List/Tree drag and drop background when moving items over other items when using the mouse.")),e.listDropBetweenBackground=(0,E.registerColor)("list.dropBetweenBackground",{dark:L.iconForeground,light:L.iconForeground,hcDark:null,hcLight:null},c.localize(98,"List/Tree drag and drop border color when moving items between items when using the mouse.")),e.listHighlightForeground=(0,E.registerColor)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:L.focusBorder,hcLight:L.focusBorder},c.localize(99,"List/Tree foreground color of the match highlights when searching inside the list/tree.")),e.listFocusHighlightForeground=(0,E.registerColor)("list.focusHighlightForeground",{dark:e.listHighlightForeground,light:(0,E.ifDefinedThenElse)(e.listActiveSelectionBackground,e.listHighlightForeground,"#BBE7FF"),hcDark:e.listHighlightForeground,hcLight:e.listHighlightForeground},c.localize(100,"List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),e.listInvalidItemForeground=(0,E.registerColor)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.localize(101,"List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),e.listErrorForeground=(0,E.registerColor)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.localize(102,"Foreground color of list items containing errors.")),e.listWarningForeground=(0,E.registerColor)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.localize(103,"Foreground color of list items containing warnings.")),e.listFilterWidgetBackground=(0,E.registerColor)("listFilterWidget.background",{light:(0,E.darken)(y.editorWidgetBackground,0),dark:(0,E.lighten)(y.editorWidgetBackground,0),hcDark:y.editorWidgetBackground,hcLight:y.editorWidgetBackground},c.localize(104,"Background color of the type filter widget in lists and trees.")),e.listFilterWidgetOutline=(0,E.registerColor)("listFilterWidget.outline",{dark:k.Color.transparent,light:k.Color.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.localize(105,"Outline color of the type filter widget in lists and trees.")),e.listFilterWidgetNoMatchesOutline=(0,E.registerColor)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:L.contrastBorder,hcLight:L.contrastBorder},c.localize(106,"Outline color of the type filter widget in lists and trees, when there are no matches.")),e.listFilterWidgetShadow=(0,E.registerColor)("listFilterWidget.shadow",y.widgetShadow,c.localize(107,"Shadow color of the type filter widget in lists and trees.")),e.listFilterMatchHighlight=(0,E.registerColor)("list.filterMatchBackground",{dark:y.editorFindMatchHighlight,light:y.editorFindMatchHighlight,hcDark:null,hcLight:null},c.localize(108,"Background color of the filtered match.")),e.listFilterMatchHighlightBorder=(0,E.registerColor)("list.filterMatchBorder",{dark:y.editorFindMatchHighlightBorder,light:y.editorFindMatchHighlightBorder,hcDark:L.contrastBorder,hcLight:L.activeContrastBorder},c.localize(109,"Border color of the filtered match.")),e.listDeemphasizedForeground=(0,E.registerColor)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.localize(110,"List/Tree foreground color for items that are deemphasized.")),e.treeIndentGuidesStroke=(0,E.registerColor)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.localize(111,"Tree stroke color for the indentation guides.")),e.treeInactiveIndentGuidesStroke=(0,E.registerColor)("tree.inactiveIndentGuidesStroke",(0,E.transparent)(e.treeIndentGuidesStroke,.4),c.localize(112,"Tree stroke color for the indentation guides that are not active.")),e.tableColumnsBorder=(0,E.registerColor)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.localize(113,"Table border color between columns.")),e.tableOddRowsBackgroundColor=(0,E.registerColor)("tree.tableOddRowsBackground",{dark:(0,E.transparent)(L.foreground,.04),light:(0,E.transparent)(L.foreground,.04),hcDark:null,hcLight:null},c.localize(114,"Background color for odd table rows."))}),define(oe[743],re([1,0,3,88,123,408,278]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.menuSeparatorBackground=e.menuSelectionBorder=e.menuSelectionBackground=e.menuSelectionForeground=e.menuBackground=e.menuForeground=e.menuBorder=void 0,e.menuBorder=(0,k.registerColor)("menu.border",{dark:null,light:null,hcDark:E.contrastBorder,hcLight:E.contrastBorder},c.localize(76,"Border color of menus.")),e.menuForeground=(0,k.registerColor)("menu.foreground",L.selectForeground,c.localize(77,"Foreground color of menu items.")),e.menuBackground=(0,k.registerColor)("menu.background",L.selectBackground,c.localize(78,"Background color of menu items.")),e.menuSelectionForeground=(0,k.registerColor)("menu.selectionForeground",y.listActiveSelectionForeground,c.localize(79,"Foreground color of the selected menu item in menus.")),e.menuSelectionBackground=(0,k.registerColor)("menu.selectionBackground",y.listActiveSelectionBackground,c.localize(80,"Background color of the selected menu item in menus.")),e.menuSelectionBorder=(0,k.registerColor)("menu.selectionBorder",{dark:null,light:null,hcDark:E.activeContrastBorder,hcLight:E.activeContrastBorder},c.localize(81,"Border color of the selected menu item in menus.")),e.menuSeparatorBackground=(0,k.registerColor)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:E.contrastBorder,hcLight:E.contrastBorder},c.localize(82,"Color of a separator menu item in menus."))}),define(oe[409],re([1,0,3,33,88,137,277]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.minimapSliderActiveBackground=e.minimapSliderHoverBackground=e.minimapSliderBackground=e.minimapForegroundOpacity=e.minimapBackground=e.minimapError=e.minimapWarning=e.minimapInfo=e.minimapSelection=e.minimapSelectionOccurrenceHighlight=e.minimapFindMatch=void 0,e.minimapFindMatch=(0,E.registerColor)("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.localize(65,"Minimap marker color for find matches."),!0),e.minimapSelectionOccurrenceHighlight=(0,E.registerColor)("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.localize(66,"Minimap marker color for repeating editor selections."),!0),e.minimapSelection=(0,E.registerColor)("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.localize(67,"Minimap marker color for the editor selection."),!0),e.minimapInfo=(0,E.registerColor)("minimap.infoHighlight",{dark:L.editorInfoForeground,light:L.editorInfoForeground,hcDark:L.editorInfoBorder,hcLight:L.editorInfoBorder},c.localize(68,"Minimap marker color for infos.")),e.minimapWarning=(0,E.registerColor)("minimap.warningHighlight",{dark:L.editorWarningForeground,light:L.editorWarningForeground,hcDark:L.editorWarningBorder,hcLight:L.editorWarningBorder},c.localize(69,"Minimap marker color for warnings.")),e.minimapError=(0,E.registerColor)("minimap.errorHighlight",{dark:new k.Color(new k.RGBA(255,18,18,.7)),light:new k.Color(new k.RGBA(255,18,18,.7)),hcDark:new k.Color(new k.RGBA(255,50,50,1)),hcLight:"#B5200D"},c.localize(70,"Minimap marker color for errors.")),e.minimapBackground=(0,E.registerColor)("minimap.background",null,c.localize(71,"Minimap background color.")),e.minimapForegroundOpacity=(0,E.registerColor)("minimap.foregroundOpacity",k.Color.fromHex("#000f"),c.localize(72,'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),e.minimapSliderBackground=(0,E.registerColor)("minimapSlider.background",(0,E.transparent)(y.scrollbarSliderBackground,.5),c.localize(73,"Minimap slider background color.")),e.minimapSliderHoverBackground=(0,E.registerColor)("minimapSlider.hoverBackground",(0,E.transparent)(y.scrollbarSliderHoverBackground,.5),c.localize(74,"Minimap slider background color when hovering.")),e.minimapSliderActiveBackground=(0,E.registerColor)("minimapSlider.activeBackground",(0,E.transparent)(y.scrollbarSliderActiveBackground,.5),c.localize(75,"Minimap slider background color when clicked on."))}),define(oe[744],re([1,0,3,88,123,137,409]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.chartsPurple=e.chartsGreen=e.chartsOrange=e.chartsYellow=e.chartsBlue=e.chartsRed=e.chartsLines=e.chartsForeground=void 0,e.chartsForeground=(0,k.registerColor)("charts.foreground",E.foreground,c.localize(253,"The foreground color used in charts.")),e.chartsLines=(0,k.registerColor)("charts.lines",(0,k.transparent)(E.foreground,.5),c.localize(254,"The color used for horizontal lines in charts.")),e.chartsRed=(0,k.registerColor)("charts.red",L.editorErrorForeground,c.localize(255,"The red color used in chart visualizations.")),e.chartsBlue=(0,k.registerColor)("charts.blue",L.editorInfoForeground,c.localize(256,"The blue color used in chart visualizations.")),e.chartsYellow=(0,k.registerColor)("charts.yellow",L.editorWarningForeground,c.localize(257,"The yellow color used in chart visualizations.")),e.chartsOrange=(0,k.registerColor)("charts.orange",y.minimapFindMatch,c.localize(258,"The orange color used in chart visualizations.")),e.chartsGreen=(0,k.registerColor)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.localize(259,"The green color used in chart visualizations.")),e.chartsPurple=(0,k.registerColor)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.localize(260,"The purple color used in chart visualizations."))}),define(oe[745],re([1,0,3,33,88,137,278]),function(ae,e,c,k,E,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quickInputListFocusBackground=e.quickInputListFocusIconForeground=e.quickInputListFocusForeground=e._deprecatedQuickInputListFocusBackground=e.pickerGroupBorder=e.pickerGroupForeground=e.quickInputTitleBackground=e.quickInputForeground=e.quickInputBackground=void 0,e.quickInputBackground=(0,E.registerColor)("quickInput.background",L.editorWidgetBackground,c.localize(48,"Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),e.quickInputForeground=(0,E.registerColor)("quickInput.foreground",L.editorWidgetForeground,c.localize(49,"Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),e.quickInputTitleBackground=(0,E.registerColor)("quickInputTitle.background",{dark:new k.Color(new k.RGBA(255,255,255,.105)),light:new k.Color(new k.RGBA(0,0,0,.06)),hcDark:"#000000",hcLight:k.Color.white},c.localize(50,"Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),e.pickerGroupForeground=(0,E.registerColor)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:k.Color.white,hcLight:"#0F4A85"},c.localize(51,"Quick picker color for grouping labels.")),e.pickerGroupBorder=(0,E.registerColor)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:k.Color.white,hcLight:"#0F4A85"},c.localize(52,"Quick picker color for grouping borders.")),e._deprecatedQuickInputListFocusBackground=(0,E.registerColor)("quickInput.list.focusBackground",null,"",void 0,c.localize(53,"Please use quickInputList.focusBackground instead")),e.quickInputListFocusForeground=(0,E.registerColor)("quickInputList.focusForeground",y.listActiveSelectionForeground,c.localize(54,"Quick picker foreground color for the focused item.")),e.quickInputListFocusIconForeground=(0,E.registerColor)("quickInputList.focusIconForeground",y.listActiveSelectionIconForeground,c.localize(55,"Quick picker icon foreground color for the focused item.")),e.quickInputListFocusBackground=(0,E.registerColor)("quickInputList.focusBackground",{dark:(0,E.oneOf)(e._deprecatedQuickInputListFocusBackground,y.listActiveSelectionBackground),light:(0,E.oneOf)(e._deprecatedQuickInputListFocusBackground,y.listActiveSelectionBackground),hcDark:null,hcLight:null},c.localize(56,"Quick picker background color for the focused item."))}),define(oe[746],re([1,0,3,88,123,137]),function(ae,e,c,k,E,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.searchEditorFindMatchBorder=e.searchEditorFindMatch=e.searchResultsInfoForeground=void 0,e.searchResultsInfoForeground=(0,k.registerColor)("search.resultsInfoForeground",{light:E.foreground,dark:(0,k.transparent)(E.foreground,.65),hcDark:E.foreground,hcLight:E.foreground},c.localize(45,"Color of the text in the search viewlet's completion message.")),e.searchEditorFindMatch=(0,k.registerColor)("searchEditor.findMatchBackground",{light:(0,k.transparent)(L.editorFindMatchHighlight,.66),dark:(0,k.transparent)(L.editorFindMatchHighlight,.66),hcDark:L.editorFindMatchHighlight,hcLight:L.editorFindMatchHighlight},c.localize(46,"Color of the Search Editor query matches.")),e.searchEditorFindMatchBorder=(0,k.registerColor)("searchEditor.findMatchBorder",{light:(0,k.transparent)(L.editorFindMatchHighlightBorder,.66),dark:(0,k.transparent)(L.editorFindMatchHighlightBorder,.66),hcDark:L.editorFindMatchHighlightBorder,hcLight:L.editorFindMatchHighlightBorder},c.localize(47,"Border color of the Search Editor query matches."))});var ti=this&&this.__createBinding||(Object.create?function(ae,e,c,k){k===void 0&&(k=c);var E=Object.getOwnPropertyDescriptor(e,c);(!E||("get"in E?!e.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return e[c]}}),Object.defineProperty(ae,k,E)}:function(ae,e,c,k){k===void 0&&(k=c),ae[k]=e[c]}),bt=this&&this.__exportStar||function(ae,e){for(var c in ae)c!=="default"&&!Object.prototype.hasOwnProperty.call(e,c)&&ti(e,ae,c)};define(oe[32],re([1,0,88,123,744,137,408,278,743,409,277,745,746]),function(ae,e,c,k,E,L,y,f,_,v,p,n,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),bt(c,e),bt(k,e),bt(E,e),bt(L,e),bt(y,e),bt(f,e),bt(_,e),bt(v,e),bt(p,e),bt(n,e),bt(s,e)}),define(oe[185],re([1,0,5,171,77,14,2,32]),function(ae,e,c,k,E,L,y,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicCssRules=e.GlobalEditorPointerMoveMonitor=e.EditorPointerEventFactory=e.EditorMouseEventFactory=e.EditorMouseEvent=e.CoordinatesRelativeToEditor=e.EditorPagePosition=e.ClientCoordinates=e.PageCoordinates=void 0,e.createEditorPagePosition=s,e.createCoordinatesRelativeToEditor=t;class _{constructor(m,h){this.x=m,this.y=h,this._pageCoordinatesBrand=void 0}toClientCoordinates(m){return new v(this.x-m.scrollX,this.y-m.scrollY)}}e.PageCoordinates=_;class v{constructor(m,h){this.clientX=m,this.clientY=h,this._clientCoordinatesBrand=void 0}toPageCoordinates(m){return new _(this.clientX+m.scrollX,this.clientY+m.scrollY)}}e.ClientCoordinates=v;class p{constructor(m,h,C,b){this.x=m,this.y=h,this.width=C,this.height=b,this._editorPagePositionBrand=void 0}}e.EditorPagePosition=p;class n{constructor(m,h){this.x=m,this.y=h,this._positionRelativeToEditorBrand=void 0}}e.CoordinatesRelativeToEditor=n;function s(d){const m=c.getDomNodePagePosition(d);return new p(m.left,m.top,m.width,m.height)}function t(d,m,h){const C=m.width/d.offsetWidth,b=m.height/d.offsetHeight,w=(h.x-m.x)/C,S=(h.y-m.y)/b;return new n(w,S)}class i extends E.StandardMouseEvent{constructor(m,h,C){super(c.getWindow(C),m),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=h,this.pos=new _(this.posx,this.posy),this.editorPos=s(C),this.relativePos=t(C,this.editorPos,this.pos)}}e.EditorMouseEvent=i;class o{constructor(m){this._editorViewDomNode=m}_create(m){return new i(m,!1,this._editorViewDomNode)}onContextMenu(m,h){return c.addDisposableListener(m,"contextmenu",C=>{h(this._create(C))})}onMouseUp(m,h){return c.addDisposableListener(m,"mouseup",C=>{h(this._create(C))})}onMouseDown(m,h){return c.addDisposableListener(m,c.EventType.MOUSE_DOWN,C=>{h(this._create(C))})}onPointerDown(m,h){return c.addDisposableListener(m,c.EventType.POINTER_DOWN,C=>{h(this._create(C),C.pointerId)})}onMouseLeave(m,h){return c.addDisposableListener(m,c.EventType.MOUSE_LEAVE,C=>{h(this._create(C))})}onMouseMove(m,h){return c.addDisposableListener(m,"mousemove",C=>h(this._create(C)))}}e.EditorMouseEventFactory=o;class g{constructor(m){this._editorViewDomNode=m}_create(m){return new i(m,!1,this._editorViewDomNode)}onPointerUp(m,h){return c.addDisposableListener(m,"pointerup",C=>{h(this._create(C))})}onPointerDown(m,h){return c.addDisposableListener(m,c.EventType.POINTER_DOWN,C=>{h(this._create(C),C.pointerId)})}onPointerLeave(m,h){return c.addDisposableListener(m,c.EventType.POINTER_LEAVE,C=>{h(this._create(C))})}onPointerMove(m,h){return c.addDisposableListener(m,"pointermove",C=>h(this._create(C)))}}e.EditorPointerEventFactory=g;class u extends y.Disposable{constructor(m){super(),this._editorViewDomNode=m,this._globalPointerMoveMonitor=this._register(new k.GlobalPointerMoveMonitor),this._keydownListener=null}startMonitoring(m,h,C,b,w){this._keydownListener=c.addStandardDisposableListener(m.ownerDocument,"keydown",S=>{S.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,S.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(m,h,C,S=>{b(new i(S,!0,this._editorViewDomNode))},S=>{this._keydownListener.dispose(),w(S)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}e.GlobalEditorPointerMoveMonitor=u;class l{static{this._idPool=0}constructor(m){this._editor=m,this._instanceId=++l._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new L.RunOnceScheduler(()=>this.garbageCollect(),1e3)}createClassNameRef(m){const h=this.getOrCreateRule(m);return h.increaseRefCount(),{className:h.className,dispose:()=>{h.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(m){const h=this.computeUniqueKey(m);let C=this._rules.get(h);if(!C){const b=this._counter++;C=new r(h,`dyn-rule-${this._instanceId}-${b}`,c.isInShadowDOM(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,m),this._rules.set(h,C)}return C}computeUniqueKey(m){return JSON.stringify(m)}garbageCollect(){for(const m of this._rules.values())m.hasReferences()||(this._rules.delete(m.key),m.dispose())}}e.DynamicCssRules=l;class r{constructor(m,h,C,b){this.key=m,this.className=h,this.properties=b,this._referenceCount=0,this._styleElementDisposables=new y.DisposableStore,this._styleElement=c.createStyleSheet(C,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(m,h){let C=`.${m} {`;for(const b in h){const w=h[b];let S;typeof w=="object"?S=(0,f.asCssVariable)(w.id):S=w;const D=a(b);C+=`
|
|
652
652
|
${D}: ${S};`}return C+=`
|